Co-authored-by: Alex Ghiu <alex.ghiu@ing.com> Co-authored-by: Gerjan van Geest <Gerjan.van.Geest@ing.com> Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com> Co-authored-by: Joren Broekema <joren.broekema@ing.com> Co-authored-by: Erik Kroes <erik.kroes@ing.com>
43 lines
930 B
JavaScript
43 lines
930 B
JavaScript
import { storiesOf, html } from '@open-wc/demoing-storybook';
|
|
|
|
import { IsCountryIBAN } from '../index.js';
|
|
import '../lion-input-iban.js';
|
|
|
|
storiesOf('Forms|Input IBAN', module)
|
|
.add(
|
|
'Default',
|
|
() => html`
|
|
<lion-input-iban name="iban" label="IBAN"></lion-input-iban>
|
|
`,
|
|
)
|
|
.add(
|
|
'Prefilled',
|
|
() => html`
|
|
<lion-input-iban
|
|
.modelValue=${'NL20INGB0001234567'}
|
|
name="iban"
|
|
label="IBAN"
|
|
></lion-input-iban>
|
|
`,
|
|
)
|
|
.add(
|
|
'Faulty prefilled',
|
|
() => html`
|
|
<lion-input-iban
|
|
.modelValue=${'NL20INGB0001234567XXXX'}
|
|
name="iban"
|
|
label="IBAN"
|
|
></lion-input-iban>
|
|
`,
|
|
)
|
|
.add(
|
|
'Country restrictions',
|
|
() => html`
|
|
<lion-input-iban
|
|
.modelValue=${'DE89370400440532013000'}
|
|
.validators=${[new IsCountryIBAN('NL')]}
|
|
name="iban"
|
|
label="IBAN"
|
|
></lion-input-iban>
|
|
`,
|
|
);
|