@lion/ui 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/components/combobox/src/LionCombobox.js +1 -3
- package/components/combobox/test/lion-combobox.test.js +126 -1
- package/components/localize/src/date/parseDate.js +6 -1
- package/components/localize/src/date/utils/checkYearFormat.js +8 -0
- package/components/localize/test/date/parseDate.test.js +6 -0
- package/custom-elements.json +33 -0
- package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/parseDate.d.ts.map +1 -1
- package/dist-types/components/localize/src/date/utils/checkYearFormat.d.ts +7 -0
- package/dist-types/components/localize/src/date/utils/checkYearFormat.d.ts.map +1 -0
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/api-table.md +13 -1
- package/docs/components/accordion/index.md +10 -0
- package/docs/components/accordion/overview.md +13 -1
- package/docs/components/accordion/reference.md +13 -1
- package/docs/components/accordion/use-cases.md +13 -1
- package/docs/components/button/api-table.md +13 -1
- package/docs/components/button/examples.md +13 -1
- package/docs/components/button/extensions.md +13 -1
- package/docs/components/button/index.md +11 -1
- package/docs/components/button/overview.md +13 -1
- package/docs/components/button/use-cases.md +13 -1
- package/docs/components/calendar/api-table.md +13 -1
- package/docs/components/calendar/index.md +11 -1
- package/docs/components/calendar/overview.md +13 -1
- package/docs/components/calendar/use-cases.md +13 -1
- package/docs/components/checkbox-group/api-table.md +13 -1
- package/docs/components/checkbox-group/index.md +11 -1
- package/docs/components/checkbox-group/overview.md +15 -3
- package/docs/components/checkbox-group/use-cases.md +13 -1
- package/docs/components/collapsible/api-table.md +13 -1
- package/docs/components/collapsible/examples.md +13 -1
- package/docs/components/collapsible/index.md +11 -1
- package/docs/components/collapsible/overview.md +14 -2
- package/docs/components/collapsible/use-cases.md +13 -1
- package/docs/components/combobox/api-table.md +13 -1
- package/docs/components/combobox/extensions.md +13 -1
- package/docs/components/combobox/index.md +11 -1
- package/docs/components/combobox/overview.md +14 -2
- package/docs/components/combobox/use-cases.md +14 -2
- package/docs/components/dialog/api-table.md +13 -1
- package/docs/components/dialog/index.md +11 -1
- package/docs/components/dialog/overview.md +14 -2
- package/docs/components/dialog/use-cases.md +13 -1
- package/docs/components/drawer/api-table.md +13 -1
- package/docs/components/drawer/index.md +11 -1
- package/docs/components/drawer/overview.md +13 -1
- package/docs/components/drawer/use-cases.md +13 -1
- package/docs/components/fieldset/api-table.md +13 -1
- package/docs/components/fieldset/index.md +11 -1
- package/docs/components/fieldset/overview.md +18 -6
- package/docs/components/fieldset/use-cases.md +13 -1
- package/docs/components/form/api-table.md +12 -1
- package/docs/components/form/index.md +11 -1
- package/docs/components/form/overview.md +16 -4
- package/docs/components/form/use-cases.md +15 -3
- package/docs/components/icon/api-table.md +13 -1
- package/docs/components/icon/index.md +11 -1
- package/docs/components/icon/overview.md +13 -1
- package/docs/components/icon/use-cases.md +14 -2
- package/docs/components/index.md +11 -1
- package/docs/components/input/api-table.md +13 -1
- package/docs/components/input/index.md +11 -1
- package/docs/components/input/overview.md +14 -2
- package/docs/components/input/use-cases.md +13 -1
- package/docs/components/input-amount/api-table.md +13 -1
- package/docs/components/input-amount/index.md +11 -1
- package/docs/components/input-amount/overview.md +16 -4
- package/docs/components/input-amount/use-cases.md +13 -1
- package/docs/components/input-date/api-table.md +13 -1
- package/docs/components/input-date/index.md +11 -1
- package/docs/components/input-date/overview.md +16 -4
- package/docs/components/input-date/use-cases.md +13 -1
- package/docs/components/input-datepicker/api-table.md +13 -1
- package/docs/components/input-datepicker/index.md +11 -1
- package/docs/components/input-datepicker/overview.md +18 -6
- package/docs/components/input-datepicker/use-cases.md +13 -1
- package/docs/components/input-email/api-table.md +13 -1
- package/docs/components/input-email/index.md +11 -1
- package/docs/components/input-email/overview.md +15 -3
- package/docs/components/input-email/use-cases.md +13 -1
- package/docs/components/input-file/api-table.md +13 -1
- package/docs/components/input-file/index.md +11 -1
- package/docs/components/input-file/overview.md +14 -2
- package/docs/components/input-file/use-cases.md +13 -1
- package/docs/components/input-iban/api-table.md +13 -1
- package/docs/components/input-iban/index.md +11 -1
- package/docs/components/input-iban/overview.md +15 -3
- package/docs/components/input-iban/use-cases.md +13 -1
- package/docs/components/input-range/api-table.md +13 -1
- package/docs/components/input-range/index.md +11 -1
- package/docs/components/input-range/overview.md +15 -3
- package/docs/components/input-range/use-cases.md +13 -1
- package/docs/components/input-stepper/api-table.md +13 -1
- package/docs/components/input-stepper/index.md +11 -1
- package/docs/components/input-stepper/overview.md +14 -2
- package/docs/components/input-stepper/use-cases.md +13 -1
- package/docs/components/input-tel/api-table.md +13 -1
- package/docs/components/input-tel/index.md +11 -1
- package/docs/components/input-tel/overview.md +14 -2
- package/docs/components/input-tel/use-cases.md +19 -7
- package/docs/components/input-tel-dropdown/api-table.md +13 -1
- package/docs/components/input-tel-dropdown/extensions.md +13 -1
- package/docs/components/input-tel-dropdown/index.md +11 -1
- package/docs/components/input-tel-dropdown/overview.md +14 -2
- package/docs/components/input-tel-dropdown/use-cases.md +13 -1
- package/docs/components/listbox/api-table.md +13 -1
- package/docs/components/listbox/index.md +11 -1
- package/docs/components/listbox/overview.md +13 -1
- package/docs/components/listbox/use-cases.md +14 -2
- package/docs/components/pagination/api-table.md +13 -1
- package/docs/components/pagination/index.md +11 -1
- package/docs/components/pagination/overview.md +13 -1
- package/docs/components/pagination/use-cases.md +13 -1
- package/docs/components/progress-indicator/api-table.md +13 -1
- package/docs/components/progress-indicator/examples.md +13 -1
- package/docs/components/progress-indicator/index.md +11 -1
- package/docs/components/progress-indicator/overview.md +13 -1
- package/docs/components/radio-group/api-table.md +13 -1
- package/docs/components/radio-group/index.md +11 -1
- package/docs/components/radio-group/overview.md +16 -4
- package/docs/components/radio-group/use-cases.md +13 -1
- package/docs/components/select/api-table.md +13 -1
- package/docs/components/select/index.md +11 -1
- package/docs/components/select/overview.md +13 -1
- package/docs/components/select/use-cases.md +14 -2
- package/docs/components/select-rich/api-table.md +13 -1
- package/docs/components/select-rich/examples.md +13 -1
- package/docs/components/select-rich/index.md +11 -1
- package/docs/components/select-rich/overview.md +13 -1
- package/docs/components/select-rich/use-cases.md +14 -2
- package/docs/components/steps/api-table.md +13 -1
- package/docs/components/steps/index.md +11 -1
- package/docs/components/steps/overview.md +13 -1
- package/docs/components/steps/use-cases.md +13 -1
- package/docs/components/switch/api-table.md +13 -1
- package/docs/components/switch/index.md +11 -1
- package/docs/components/switch/overview.md +13 -1
- package/docs/components/switch/reference.md +13 -1
- package/docs/components/switch/use-cases.md +13 -1
- package/docs/components/tabs/api-table.md +13 -1
- package/docs/components/tabs/examples.md +14 -2
- package/docs/components/tabs/index.md +11 -1
- package/docs/components/tabs/overview.md +13 -1
- package/docs/components/tabs/use-cases.md +13 -1
- package/docs/components/textarea/api-table.md +13 -1
- package/docs/components/textarea/index.md +11 -1
- package/docs/components/textarea/overview.md +13 -1
- package/docs/components/textarea/use-cases.md +13 -1
- package/docs/components/tooltip/api-table.md +13 -1
- package/docs/components/tooltip/examples.md +13 -1
- package/docs/components/tooltip/index.md +11 -1
- package/docs/components/tooltip/overview.md +13 -1
- package/docs/components/tooltip/use-cases.md +13 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +12 -0
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +13 -0
- package/docs/fundamentals/node-tools/index.md +10 -0
- package/docs/fundamentals/node-tools/providence-analytics/index.md +12 -0
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +13 -0
- package/docs/fundamentals/node-tools/publish-docs/index.md +12 -0
- package/docs/fundamentals/node-tools/publish-docs/overview.md +16 -3
- package/docs/fundamentals/node-tools/remark-extend/index.md +12 -0
- package/docs/fundamentals/node-tools/remark-extend/overview.md +13 -0
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +12 -0
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +15 -2
- package/docs/fundamentals/rationales/TypeScript.md +12 -0
- package/docs/fundamentals/rationales/accessibility.md +13 -1
- package/docs/fundamentals/rationales/index.md +10 -0
- package/docs/fundamentals/rationales/side-effects.md +12 -0
- package/docs/fundamentals/rationales/versioning.md +12 -0
- package/docs/fundamentals/systems/core/SlotMixin.md +14 -1
- package/docs/fundamentals/systems/core/api-table.md +14 -1
- package/docs/fundamentals/systems/core/index.md +12 -0
- package/docs/fundamentals/systems/core/overview.md +14 -1
- package/docs/fundamentals/systems/form/api-table.md +14 -1
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +17 -4
- package/docs/fundamentals/systems/form/index.md +12 -0
- package/docs/fundamentals/systems/form/interaction-states.md +13 -0
- package/docs/fundamentals/systems/form/model-value.md +14 -1
- package/docs/fundamentals/systems/form/overview.md +41 -28
- package/docs/fundamentals/systems/form/styling.md +13 -0
- package/docs/fundamentals/systems/form/use-cases.md +13 -0
- package/docs/fundamentals/systems/form/validate.md +15 -2
- package/docs/fundamentals/systems/icon/index.md +12 -0
- package/docs/fundamentals/systems/icon/overview.md +13 -0
- package/docs/fundamentals/systems/index.md +10 -0
- package/docs/fundamentals/systems/localize/api-table.md +14 -1
- package/docs/fundamentals/systems/localize/dates.md +13 -0
- package/docs/fundamentals/systems/localize/index.md +12 -0
- package/docs/fundamentals/systems/localize/numbers.md +13 -0
- package/docs/fundamentals/systems/localize/overview.md +17 -4
- package/docs/fundamentals/systems/localize/rationale.md +13 -0
- package/docs/fundamentals/systems/localize/text.md +13 -0
- package/docs/fundamentals/systems/localize/use-cases.md +13 -0
- package/docs/fundamentals/systems/overlays/_configuration-positioning.md +11 -0
- package/docs/fundamentals/systems/overlays/_edge-cases.md +10 -0
- package/docs/fundamentals/systems/overlays/api-table.md +14 -1
- package/docs/fundamentals/systems/overlays/configuration.md +15 -2
- package/docs/fundamentals/systems/overlays/index.md +12 -0
- package/docs/fundamentals/systems/overlays/overview.md +18 -5
- package/docs/fundamentals/systems/overlays/rationale.md +13 -0
- package/docs/fundamentals/systems/overlays/use-cases.md +15 -2
- package/docs/fundamentals/tools/ajax/index.md +12 -0
- package/docs/fundamentals/tools/ajax/overview.md +13 -0
- package/docs/fundamentals/tools/ajax/use-cases.md +13 -0
- package/docs/fundamentals/tools/helpers/action-logger.md +13 -0
- package/docs/fundamentals/tools/helpers/index.md +12 -0
- package/docs/fundamentals/tools/helpers/overview.md +14 -1
- package/docs/fundamentals/tools/index.md +10 -0
- package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +13 -0
- package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +13 -0
- package/docs/fundamentals/tools/singleton-manager/example-success/index.md +13 -0
- package/docs/fundamentals/tools/singleton-manager/index.md +12 -0
- package/docs/fundamentals/tools/singleton-manager/overview.md +17 -4
- package/docs/guides/how-to/create-a-custom-field.md +18 -6
- package/docs/guides/how-to/create-a-form.md +17 -5
- package/docs/guides/how-to/extend-a-native-input.md +15 -3
- package/docs/guides/how-to/get-started.md +13 -1
- package/docs/guides/how-to/index.md +11 -1
- package/docs/guides/index.md +19 -9
- package/docs/guides/principles/definitions-and-terms.md +13 -1
- package/docs/guides/principles/index.md +16 -6
- package/docs/guides/principles/scoped-elements.md +13 -1
- package/docs/guides/principles/styling.md +14 -2
- package/docs/guides/principles/subclasser-apis.md +13 -1
- package/package.json +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Datepicker
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Datepicker: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Datepicker: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Datepicker
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Datepicker: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input Email
|
|
5
|
+
title: 'Input Email: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input Email
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input Email
|
|
11
|
+
---
|
|
12
|
+
# Input Email: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionInputEmail`, `lion-input-email`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Email
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input Email: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Email: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input Email
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Email: Overview
|
|
2
14
|
|
|
3
15
|
A web component based on the generic text input field. Its purpose is to provide a way for users to fill in an email.
|
|
4
16
|
|
|
@@ -15,8 +27,8 @@ export const main = () => {
|
|
|
15
27
|
|
|
16
28
|
## Features
|
|
17
29
|
|
|
18
|
-
- Based on our [input](https://github.com/ing-bank/lion/blob/
|
|
19
|
-
- Makes use of email [validators](https://github.com/ing-bank/lion/blob/
|
|
30
|
+
- Based on our [input](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input/overview.md)
|
|
31
|
+
- Makes use of email [validators](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
|
|
20
32
|
- IsEmail (default)
|
|
21
33
|
|
|
22
34
|
## Installation
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Email
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Email: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Email: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Email
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Email: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input File
|
|
5
|
+
title: 'Input File: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input File
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input File
|
|
11
|
+
---
|
|
12
|
+
# Input File: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `FileHandle`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input File
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input File: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input File: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input File
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input File: Overview
|
|
2
14
|
|
|
3
15
|
A web component based on the file input field.
|
|
4
16
|
|
|
@@ -15,7 +27,7 @@ export const main = () => {
|
|
|
15
27
|
|
|
16
28
|
## Features
|
|
17
29
|
|
|
18
|
-
- Based on our [input](https://github.com/ing-bank/lion/blob/
|
|
30
|
+
- Based on our [input](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input/overview.md)
|
|
19
31
|
- Default labels and validation messages in different languages
|
|
20
32
|
- Options for multi file upload and drop-zone.
|
|
21
33
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input File
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input File: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input File: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input File
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input File: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { Required, Validator } from '@lion/ui/form-core.js';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input Iban
|
|
5
|
+
title: 'Input Iban: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input Iban
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input Iban
|
|
11
|
+
---
|
|
12
|
+
# Input Iban: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionInputIban`, `lion-input-iban`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Iban
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input Iban: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Iban: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input Iban
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Iban: Overview
|
|
2
14
|
|
|
3
15
|
A web component based on the generic text input field.
|
|
4
16
|
Its purpose is to provide a way for users to fill in an IBAN (International Bank Account Number).
|
|
@@ -16,9 +28,9 @@ export const main = () => {
|
|
|
16
28
|
|
|
17
29
|
## Features
|
|
18
30
|
|
|
19
|
-
- Based on our [input](https://github.com/ing-bank/lion/blob/
|
|
31
|
+
- Based on our [input](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input/overview.md)
|
|
20
32
|
- Default label in different languages
|
|
21
|
-
- Makes use of IBAN specific [validate](https://github.com/ing-bank/lion/blob/
|
|
33
|
+
- Makes use of IBAN specific [validate](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
|
|
22
34
|
- IsIBAN (default)
|
|
23
35
|
- IsCountryIBAN
|
|
24
36
|
- Parses IBANs automatically
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Iban
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Iban: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Iban: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Iban
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Iban: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input Range
|
|
5
|
+
title: 'Input Range: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input Range
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input Range
|
|
11
|
+
---
|
|
12
|
+
# Input Range: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionInputRange`, `lion-input-range`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Range
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input Range: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Range: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input Range
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Range: Overview
|
|
2
14
|
|
|
3
15
|
A web component based on the native range input. Its purpose is to provide a way for users to select one value from a range of values.
|
|
4
16
|
|
|
@@ -13,11 +25,11 @@ import '@lion/ui/define/lion-input-range.js';
|
|
|
13
25
|
|
|
14
26
|
## Features
|
|
15
27
|
|
|
16
|
-
- Based on our [input](https://github.com/ing-bank/lion/blob/
|
|
28
|
+
- Based on our [input](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input/overview.md).
|
|
17
29
|
- Shows `modelValue` and `unit` above the range input.
|
|
18
30
|
- Shows `min` and `max` value after the range input.
|
|
19
31
|
- Can hide the `min` and `max` value via `no-min-max-labels`.
|
|
20
|
-
- Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/
|
|
32
|
+
- Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
|
|
21
33
|
|
|
22
34
|
## Installation
|
|
23
35
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Range
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Range: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Range: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Range
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Range: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input Stepper
|
|
5
|
+
title: 'Input Stepper: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input Stepper
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input Stepper
|
|
11
|
+
---
|
|
12
|
+
# Input Stepper: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionInputStepper`, `lion-input-stepper`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Stepper
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input Stepper: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Stepper: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input Stepper
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Stepper: Overview
|
|
2
14
|
|
|
3
15
|
A web component that enables the user to increase and decrease a numeric value by predefined range. It is a combination of two buttons and a number input field with an optional slot `after` to suffix the extra information.
|
|
4
16
|
|
|
@@ -18,7 +30,7 @@ loadDefaultFeedbackMessages();
|
|
|
18
30
|
|
|
19
31
|
## Features
|
|
20
32
|
|
|
21
|
-
- Based on our [input](https://github.com/ing-bank/lion/blob/
|
|
33
|
+
- Based on our [input](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input/overview.md).
|
|
22
34
|
- Set `min` and `max` value to define the range.
|
|
23
35
|
- Set `step` value in integer or decimal to increase and decrease the value.
|
|
24
36
|
- Use `ArrowUp` or `ArrowDown` to update the value.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Stepper
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Stepper: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Stepper: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Stepper
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Stepper: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input Tel
|
|
5
|
+
title: 'Input Tel: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input Tel
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input Tel
|
|
11
|
+
---
|
|
12
|
+
# Input Tel: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionInputTel`, `lion-input-tel`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Tel
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input Tel: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Tel: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input Tel
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Tel: Overview
|
|
2
14
|
|
|
3
15
|
Input field for entering phone numbers, including validation, formatting and mobile keyboard support.
|
|
4
16
|
|
|
@@ -39,7 +51,7 @@ export const main = () => {
|
|
|
39
51
|
|
|
40
52
|
## Features
|
|
41
53
|
|
|
42
|
-
- Extends our [input](https://github.com/ing-bank/lion/blob/
|
|
54
|
+
- Extends our [input](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input/overview.md)
|
|
43
55
|
- Shows a mobile telephone keypad on mobile (by having a native `<input inputmode="tel">` inside)
|
|
44
56
|
- Can be configured with a list of allowed region codes
|
|
45
57
|
- Will be preconfigured with region derived from locale
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Tel
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Tel: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Tel: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Tel
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Tel: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -22,7 +34,7 @@ Say we have the following telephone number from Madrid, Spain: `+34919930432`.
|
|
|
22
34
|
It contains a [country code](https://en.wikipedia.org/wiki/Country_code) (34), an [area code](https://en.wikipedia.org/wiki/Telephone_numbering_plan#Area_code) (91) and a [dial code](https://en.wikipedia.org/wiki/Mobile_dial_code) (+34 91).
|
|
23
35
|
Input Tel interprets phone numbers based on their [region code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2): a two character long region representation('ES' in the telephone number above).
|
|
24
36
|
|
|
25
|
-
The table below lists all possible regions worldwide. When [allowed regions](https://github.com/ing-bank/lion/blob/
|
|
37
|
+
The table below lists all possible regions worldwide. When [allowed regions](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel/#allowed-regions) are not configured,
|
|
26
38
|
all of them will be supported as values of Input Tel.
|
|
27
39
|
|
|
28
40
|
```js story
|
|
@@ -37,11 +49,11 @@ export const regionCodesTable = () => {
|
|
|
37
49
|
The active region (accessible via readonly accessor `.activeRegion`) determines how validation and formatting
|
|
38
50
|
should be applied. It is dependent on the following factors:
|
|
39
51
|
|
|
40
|
-
- [allowed regions](https://github.com/ing-bank/lion/blob/
|
|
41
|
-
[.allowedRegions has only one entry](https://github.com/ing-bank/lion/blob/
|
|
52
|
+
- [allowed regions](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel/#allowed-regions): a list that determines what is allowed to become .activeRegion. If
|
|
53
|
+
[.allowedRegions has only one entry](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel/#restrict-to-one-region), .activeRegion will always be this value.
|
|
42
54
|
- the modelValue or viewValue: once it contains sufficient info to derive its region code (and
|
|
43
|
-
the derived code is inside [allowed regions](https://github.com/ing-bank/lion/blob/
|
|
44
|
-
- active locale (and the derived locale is inside [allowed regions](https://github.com/ing-bank/lion/blob/
|
|
55
|
+
the derived code is inside [allowed regions](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel/#allowed-regions) if configured)
|
|
56
|
+
- active locale (and the derived locale is inside [allowed regions](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel/#allowed-regions) if configured)
|
|
45
57
|
|
|
46
58
|
What follows from the list above is that .activeRegion can change dynamically, after a value
|
|
47
59
|
change in the text box by the user (or when locales or allowed regions would be changed by the
|
|
@@ -130,7 +142,7 @@ export const heuristic = () => {
|
|
|
130
142
|
Once it is configured, validation and formatting will be restricted to those
|
|
131
143
|
values that are present in this list.
|
|
132
144
|
|
|
133
|
-
> Note that for [InputTelDropdown](https://github.com/ing-bank/lion/blob/
|
|
145
|
+
> Note that for [InputTelDropdown](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel-dropdown/index.md), only allowed regions will
|
|
134
146
|
> be shown in the dropdown list.
|
|
135
147
|
|
|
136
148
|
```js preview-story
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Input Tel Dropdown
|
|
5
|
+
title: 'Input Tel Dropdown: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Input Tel Dropdown
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Input Tel Dropdown
|
|
11
|
+
---
|
|
12
|
+
# Input Tel Dropdown: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionInputTelDropdown`, `lion-input-tel-dropdown`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Tel Dropdown
|
|
4
|
+
- Extensions
|
|
5
|
+
title: 'Input Tel Dropdown: Extensions'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Tel Dropdown: Extensions'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Input Tel Dropdown
|
|
10
|
+
title: Extensions
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Tel Dropdown: Extensions
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Tel Dropdown
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Input Tel Dropdown: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Tel Dropdown: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Input Tel Dropdown
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Tel Dropdown: Overview
|
|
2
14
|
|
|
3
15
|
Extension of Input Tel that prefixes a dropdown list that shows all possible regions / countries.
|
|
4
16
|
|
|
@@ -19,7 +31,7 @@ export const main = () => {
|
|
|
19
31
|
|
|
20
32
|
## Features
|
|
21
33
|
|
|
22
|
-
- Extends our [input-tel](https://github.com/ing-bank/lion/blob/
|
|
34
|
+
- Extends our [input-tel](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/input-tel/overview.md)
|
|
23
35
|
- Shows dropdown list with all possible regions
|
|
24
36
|
- Shows only allowed regions in dropdown list when .allowedRegions is configured
|
|
25
37
|
- Highlights regions on top of dropdown list when .preferredRegions is configured
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Input Tel Dropdown
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Input Tel Dropdown: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Input Tel Dropdown: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Input Tel Dropdown
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Input Tel Dropdown: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Listbox
|
|
5
|
+
title: 'Listbox: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Listbox
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Listbox
|
|
11
|
+
---
|
|
12
|
+
# Listbox: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionListbox`, `lion-listbox`
|
|
4
16
|
|