@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
|
+
- Listbox
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Listbox: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Listbox: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Listbox
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Listbox: Overview
|
|
2
14
|
|
|
3
15
|
A widget that presents a list of options and allows a user to select one or more of them.
|
|
4
16
|
A listbox that allows a single option to be chosen is a `single-select listbox`; one that allows
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Listbox
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Listbox: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Listbox: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Listbox
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Listbox: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -139,4 +151,4 @@ Navigation will skip over disabled options. Let's disable Artichoke and Brussel
|
|
|
139
151
|
|
|
140
152
|
## Validation
|
|
141
153
|
|
|
142
|
-
A validator can be used to make it e.g. `required`. If you want to know how to do that, please take a look at our [validation examples](https://github.com/ing-bank/lion/blob/
|
|
154
|
+
A validator can be used to make it e.g. `required`. If you want to know how to do that, please take a look at our [validation examples](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/fundamentals/systems/form/validate.md).
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Pagination
|
|
5
|
+
title: 'Pagination: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Pagination
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Pagination
|
|
11
|
+
---
|
|
12
|
+
# Pagination: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionPagination`, `lion-pagination`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Pagination
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Pagination: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Pagination: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Pagination
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Pagination: Overview
|
|
2
14
|
|
|
3
15
|
A web component that handles pagination.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Pagination
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Pagination: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Pagination: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Pagination
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Pagination: 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
|
+
- Progress Indicator
|
|
5
|
+
title: 'Progress Indicator: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Progress Indicator
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Progress Indicator
|
|
11
|
+
---
|
|
12
|
+
# Progress Indicator: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionProgressIndicator`, `lion-progress-indicator`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Progress Indicator
|
|
4
|
+
- Examples
|
|
5
|
+
title: 'Progress Indicator: Examples'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Progress Indicator: Examples'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Progress Indicator
|
|
10
|
+
title: Examples
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Progress Indicator: Examples
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Progress Indicator
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Progress Indicator: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Progress Indicator: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Progress Indicator
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Progress Indicator: Overview
|
|
2
14
|
|
|
3
15
|
A web component that implements accessibility requirements for progress indicators.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Radio Group
|
|
5
|
+
title: 'Radio Group: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Radio Group
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Radio Group
|
|
11
|
+
---
|
|
12
|
+
# Radio Group: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionRadio`, `lion-radio`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Radio Group
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Radio Group: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Radio Group: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Radio Group
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Radio Group: Overview
|
|
2
14
|
|
|
3
15
|
A web component that enhances the functionality of the native `<input type="radio">` element. Its purpose is to provide a way for users to check a **single** option amongst a set of choices.
|
|
4
16
|
|
|
@@ -20,12 +32,12 @@ export const main = () => html`
|
|
|
20
32
|
`;
|
|
21
33
|
```
|
|
22
34
|
|
|
23
|
-
- Make sure that to use a name attribute as it is necessary for our [form](https://github.com/ing-bank/lion/blob/
|
|
24
|
-
- If you have many options for a user to pick from, consider using our [select](https://github.com/ing-bank/lion/blob/
|
|
35
|
+
- Make sure that to use a name attribute as it is necessary for our [form](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/form/overview.md)'s serialization result.
|
|
36
|
+
- If you have many options for a user to pick from, consider using our [select](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/select/overview.md) instead.
|
|
25
37
|
|
|
26
38
|
## Features
|
|
27
39
|
|
|
28
|
-
Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/
|
|
40
|
+
Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/fieldset/overview.md), it has all the features a fieldset has.
|
|
29
41
|
|
|
30
42
|
- Get or set the checked value of the group:
|
|
31
43
|
- modelValue (default) - `checkedValue()`
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Radio Group
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Radio Group: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Radio Group: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Radio Group
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Radio Group: 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
|
+
- Select
|
|
5
|
+
title: 'Select: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Select
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Select
|
|
11
|
+
---
|
|
12
|
+
# Select: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionSelect`, `lion-select`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Select
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Select: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Select: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Select
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Select: Overview
|
|
2
14
|
|
|
3
15
|
A web component that works as a wrapper around the native `select`.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Select
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Select: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Select: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Select
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Select: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -53,7 +65,7 @@ Or by setting the `disabled` attribute on the entire `lion-select` field.
|
|
|
53
65
|
|
|
54
66
|
## Validation
|
|
55
67
|
|
|
56
|
-
A validator can be used to make it e.g. `required`. If you want to know how to do that, please take a look at our [validation examples](https://github.com/ing-bank/lion/blob/
|
|
68
|
+
A validator can be used to make it e.g. `required`. If you want to know how to do that, please take a look at our [validation examples](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/fundamentals/systems/form/validate.md).
|
|
57
69
|
|
|
58
70
|
## Rendering and updating select options
|
|
59
71
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Select Rich
|
|
5
|
+
title: 'Select Rich: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Select Rich
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Select Rich
|
|
11
|
+
---
|
|
12
|
+
# Select Rich: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionSelectInvoker`, `lion-select-invoker`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Select Rich
|
|
4
|
+
- Examples
|
|
5
|
+
title: 'Select Rich: Examples'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Select Rich: Examples'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Select Rich
|
|
10
|
+
title: Examples
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Select Rich: Examples
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Select Rich
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Select Rich: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Select Rich: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Select Rich
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Select Rich: Overview
|
|
2
14
|
|
|
3
15
|
This web component is a 'rich' version of the native `<select>` element.
|
|
4
16
|
It allows providing fully customized options and a fully customized invoker button and is meant to be used whenever the native `<select>` doesn't provide enough styling, theming or user interaction opportunities.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Select Rich
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Select Rich: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Select Rich: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Select Rich
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Select Rich: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { LitElement, html } from '@mdjs/mdjs-preview';
|
|
@@ -302,7 +314,7 @@ LionSelectRich will give it acces to:
|
|
|
302
314
|
- LionSelectRich itself, via `.hostElement`
|
|
303
315
|
|
|
304
316
|
Code of an advanced custom invoker is shown below (this is the code for the
|
|
305
|
-
invoker used in [IntlSelectRich](https://github.com/ing-bank/lion/blob/
|
|
317
|
+
invoker used in [IntlSelectRich](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/select-rich/examples.md)).
|
|
306
318
|
The invoker is usually added in the invoker slot of the LionSelectRich subclass.
|
|
307
319
|
However, it would also be possible for an application developer to provide the invoker
|
|
308
320
|
by putting it in light dom:
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Steps
|
|
5
|
+
title: 'Steps: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Steps
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Steps
|
|
11
|
+
---
|
|
12
|
+
# Steps: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionStep`, `lion-step`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Steps
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Steps: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Steps: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Steps
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Steps: Overview
|
|
2
14
|
|
|
3
15
|
A web component that can be used to break a single goal down into dependable sub-tasks.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Steps
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Steps: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Steps: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Steps
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Steps: 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
|
+
- Switch
|
|
5
|
+
title: 'Switch: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Switch
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Switch
|
|
11
|
+
---
|
|
12
|
+
# Switch: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionSwitch`, `lion-switch`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Switch
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Switch: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Switch: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Switch
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Switch: Overview
|
|
2
14
|
|
|
3
15
|
<p class="lion-paragraph--emphasis">The Switch is used to toggle a property or feature on or off.</p>
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Switch
|
|
4
|
+
- Reference
|
|
5
|
+
title: 'Switch: Reference'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Switch: Reference'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Switch
|
|
10
|
+
title: Reference
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Switch: Reference
|
|
2
14
|
|
|
3
15
|
<p class="lion-paragraph--emphasis">Everything you need to re-use the switch.</p>
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Switch
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Switch: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Switch: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Switch
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Switch: 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
|
+
- Tabs
|
|
5
|
+
title: 'Tabs: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Tabs
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Tabs
|
|
11
|
+
---
|
|
12
|
+
# Tabs: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionTabs`, `lion-tabs`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Tabs
|
|
4
|
+
- Examples
|
|
5
|
+
title: 'Tabs: Examples'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Tabs: Examples'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Tabs
|
|
10
|
+
title: Examples
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Tabs: Examples
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { LitElement, html } from '@mdjs/mdjs-preview';
|
|
@@ -9,7 +21,7 @@ import './src/lea-tab-panel.js';
|
|
|
9
21
|
|
|
10
22
|
## Lea Tabs
|
|
11
23
|
|
|
12
|
-
Learn how to create the `lea tabs` in our ["introducing lion" blogpost](https://github.com/ing-bank/lion/blob/
|
|
24
|
+
Learn how to create the `lea tabs` in our ["introducing lion" blogpost](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/blog/ing-open-sources-lion.md).
|
|
13
25
|
|
|
14
26
|
```js preview-story
|
|
15
27
|
export const main = () => html`
|