chore: cleanup references
This commit is contained in:
parent
0e77624b02
commit
25e7b6d17b
6 changed files with 8 additions and 11 deletions
|
|
@ -24,7 +24,6 @@ class FormRegistrarManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
||||||
// issue: https://gitlab.ing.net/TheGuideComponents/lion-element/issues/12
|
|
||||||
_fakeExtendsEventTarget() {
|
_fakeExtendsEventTarget() {
|
||||||
const delegate = document.createDocumentFragment();
|
const delegate = document.createDocumentFragment();
|
||||||
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
||||||
|
|
|
||||||
|
|
@ -18,18 +18,18 @@ storiesOf('Forms|Input Email', module)
|
||||||
`,
|
`,
|
||||||
)
|
)
|
||||||
.add('Use own validator', () => {
|
.add('Use own validator', () => {
|
||||||
const ingOnly = modelValue => ({ ingOnly: modelValue.indexOf('ing.com') !== -1 });
|
const gmailOnly = modelValue => ({ gmailOnly: modelValue.indexOf('gmail.com') !== -1 });
|
||||||
localize.locale = 'en';
|
localize.locale = 'en';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
localize.addData('en', 'lion-validate+ingOnly', {
|
localize.addData('en', 'lion-validate+gmailOnly', {
|
||||||
error: {
|
error: {
|
||||||
ingOnly: 'You can only use ing.com email addresses.',
|
gmailOnly: 'You can only use gmail.com email addresses.',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
localize.addData('nl', 'lion-validate+ingOnly', {
|
localize.addData('nl', 'lion-validate+gmailOnly', {
|
||||||
error: {
|
error: {
|
||||||
ingOnly: 'Je mag hier alleen ing.com e-mailadressen gebruiken.',
|
gmailOnly: 'Je mag hier alleen gmail.com e-mailadressen gebruiken.',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -39,7 +39,7 @@ storiesOf('Forms|Input Email', module)
|
||||||
return html`
|
return html`
|
||||||
<lion-input-email
|
<lion-input-email
|
||||||
.modelValue=${'foo@bar.com'}
|
.modelValue=${'foo@bar.com'}
|
||||||
.errorValidators=${[[ingOnly]]}
|
.errorValidators=${[[gmailOnly]]}
|
||||||
></lion-input-email>
|
></lion-input-email>
|
||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,6 @@ export class LocalizeManager extends LionSingleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
||||||
// issue: https://gitlab.ing.net/TheGuideComponents/lion-element/issues/12
|
|
||||||
_fakeExtendsEventTarget() {
|
_fakeExtendsEventTarget() {
|
||||||
const delegate = document.createDocumentFragment();
|
const delegate = document.createDocumentFragment();
|
||||||
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
||||||
|
|
|
||||||
|
|
@ -313,7 +313,6 @@ export class LocalOverlayController {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
// TODO: this method has to be removed when EventTarget polyfill is available on IE11
|
||||||
// issue: https://gitlab.ing.net/TheGuideComponents/lion-element/issues/12
|
|
||||||
__fakeExtendsEventTarget() {
|
__fakeExtendsEventTarget() {
|
||||||
const delegate = document.createDocumentFragment();
|
const delegate = document.createDocumentFragment();
|
||||||
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
['addEventListener', 'dispatchEvent', 'removeEventListener'].forEach(funcName => {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import '@lion/popup/lion-popup.js';
|
||||||
```html
|
```html
|
||||||
<lion-popup>
|
<lion-popup>
|
||||||
<div slot="content" class="tooltip">This is a popup<div>
|
<div slot="content" class="tooltip">This is a popup<div>
|
||||||
<a slot="invoker" href="https://www.ing.com/Newsroom/All-news/Uslion-AI-to-assess-credit-risk.htm">
|
<a slot="invoker" href="https://www.google.com/">
|
||||||
Popup on link
|
Popup on link
|
||||||
</a>
|
</a>
|
||||||
</lion-popup>
|
</lion-popup>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import '@lion/tooltip/lion-tooltip.js';
|
||||||
```html
|
```html
|
||||||
<lion-tooltip>
|
<lion-tooltip>
|
||||||
<div slot="content" class="tooltip">This is a popup<div>
|
<div slot="content" class="tooltip">This is a popup<div>
|
||||||
<a slot="invoker" href="https://www.ing.com/Newsroom/All-news/Uslion-AI-to-assess-credit-risk.htm">
|
<a slot="invoker" href="https://www.google.com/">
|
||||||
Popup on link
|
Popup on link
|
||||||
</a>
|
</a>
|
||||||
</lion-tooltip>
|
</lion-tooltip>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue