@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
|
+
- API Table
|
|
4
|
+
- Accordion
|
|
5
|
+
title: 'Accordion: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Accordion
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Accordion
|
|
11
|
+
---
|
|
12
|
+
# Accordion: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionAccordion`, `lion-accordion`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Accordion
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Accordion: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Accordion: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Accordion
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Accordion: Overview
|
|
2
14
|
|
|
3
15
|
<p class="lion-paragraph--emphasis">An accordion is a vertically stacked set of interactive headings that each contain a title representing a section of content. It allows users to toggle the display of sections of content.</p>
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Accordion
|
|
4
|
+
- Reference
|
|
5
|
+
title: 'Accordion: Reference'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Accordion: Reference'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Accordion
|
|
10
|
+
title: Reference
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Accordion: Reference
|
|
2
14
|
|
|
3
15
|
<p class="lion-paragraph--emphasis">Everything you need to re-use the accordion.</p>
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Accordion
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Accordion: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Accordion: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Accordion
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Accordion: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html as previewHtml } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Button
|
|
5
|
+
title: 'Button: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Button
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Button
|
|
11
|
+
---
|
|
12
|
+
# Button: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionButton`, `lion-button`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Examples
|
|
5
|
+
title: 'Button: Examples'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Examples'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Examples
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Examples
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Extensions
|
|
5
|
+
title: 'Button: Extensions'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Extensions'
|
|
8
|
+
order: 90
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Extensions
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Extensions
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Button: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: Overview
|
|
2
14
|
|
|
3
15
|
A button web component that is easily stylable and accessible.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Button
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Button: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Button: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Button
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Button: 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
|
+
- Calendar
|
|
5
|
+
title: 'Calendar: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Calendar
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Calendar
|
|
11
|
+
---
|
|
12
|
+
# Calendar: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionCalendar`, `lion-calendar`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Calendar
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Calendar: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Calendar: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Calendar
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Calendar: Overview
|
|
2
14
|
|
|
3
15
|
A reusable and accessible calendar view web component.
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Calendar
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Calendar: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Calendar: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Calendar
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Calendar: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html, css } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Checkbox Group
|
|
5
|
+
title: 'Checkbox Group: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Checkbox Group
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Checkbox Group
|
|
11
|
+
---
|
|
12
|
+
# Checkbox Group: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionCheckbox`, `lion-checkbox`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Checkbox Group
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Checkbox Group: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Checkbox Group: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Checkbox Group
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Checkbox Group: Overview
|
|
2
14
|
|
|
3
15
|
A checkbox group enhances the functionality of the native `<input type="checkbox">` element.
|
|
4
16
|
Its purpose is to provide a way for users to check **multiple** options amongst a set of choices, or to function as a single toggle.
|
|
@@ -19,11 +31,11 @@ import '@lion/ui/define/lion-checkbox.js';
|
|
|
19
31
|
</lion-checkbox-group>
|
|
20
32
|
```
|
|
21
33
|
|
|
22
|
-
> Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/
|
|
34
|
+
> Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/form/overview.md)'s serialization result.
|
|
23
35
|
|
|
24
36
|
## Features
|
|
25
37
|
|
|
26
|
-
Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/
|
|
38
|
+
Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/fieldset/overview.md),
|
|
27
39
|
it has all the features a fieldset has.
|
|
28
40
|
|
|
29
41
|
## Installation
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Checkbox Group
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Checkbox Group: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Checkbox Group: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Checkbox Group
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Checkbox 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
|
+
- Collapsible
|
|
5
|
+
title: 'Collapsible: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Collapsible
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Collapsible
|
|
11
|
+
---
|
|
12
|
+
# Collapsible: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionCollapsible`, `lion-collapsible`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Collapsible
|
|
4
|
+
- Examples
|
|
5
|
+
title: 'Collapsible: Examples'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Collapsible: Examples'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Collapsible
|
|
10
|
+
title: Examples
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Collapsible: Examples
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Collapsible
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Collapsible: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Collapsible: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Collapsible
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Collapsible: Overview
|
|
2
14
|
|
|
3
15
|
A combination of a button (the invoker) and a chunk of 'extra content'. This web component can be extended with an animation to disclose the extra content. There are two slots available respectively; `invoker` to specify the collapsible's invoker and `content` for the extra content of the collapsible.
|
|
4
16
|
|
|
@@ -22,7 +34,7 @@ export const main = () => html`
|
|
|
22
34
|
## Features
|
|
23
35
|
|
|
24
36
|
- Use `opened` attribute or `toggle()` method to render default open.
|
|
25
|
-
- `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/
|
|
37
|
+
- `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/button/overview.md) or native `button` with custom styling.
|
|
26
38
|
- Observe the state with the help of `@opened-changed` event.
|
|
27
39
|
- `show()` and `hide()` are helper methods to hide or show the content from outside.
|
|
28
40
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Collapsible
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Collapsible: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Collapsible: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Collapsible
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Collapsible: 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
|
+
- Combobox
|
|
5
|
+
title: 'Combobox: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Combobox
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Combobox
|
|
11
|
+
---
|
|
12
|
+
# Combobox: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionCombobox`, `lion-combobox`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Combobox
|
|
4
|
+
- Extensions
|
|
5
|
+
title: 'Combobox: Extensions'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Combobox: Extensions'
|
|
8
|
+
order: 30
|
|
9
|
+
parent: Combobox
|
|
10
|
+
title: Extensions
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Combobox: Extensions
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Combobox
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Combobox: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Combobox: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Combobox
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Combobox: Overview
|
|
2
14
|
|
|
3
15
|
A combobox is a widget made up of the combination of two distinct elements:
|
|
4
16
|
|
|
@@ -34,7 +46,7 @@ export const main = () => html`
|
|
|
34
46
|
`;
|
|
35
47
|
```
|
|
36
48
|
|
|
37
|
-
[...show more](https://github.com/ing-bank/lion/blob/
|
|
49
|
+
[...show more](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/combobox/extensions.md)
|
|
38
50
|
|
|
39
51
|
## Features
|
|
40
52
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Combobox
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Combobox: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Combobox: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Combobox
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Combobox: Use Cases
|
|
2
14
|
|
|
3
15
|
A combobox is a widget made up of the combination of two distinct elements:
|
|
4
16
|
|
|
@@ -457,4 +469,4 @@ export const complexObjectChoiceValue = () =>
|
|
|
457
469
|
## Listbox compatibility
|
|
458
470
|
|
|
459
471
|
All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
|
|
460
|
-
See the [listbox documentation](https://github.com/ing-bank/lion/blob/
|
|
472
|
+
See the [listbox documentation](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/components/listbox/overview.md) for more information.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Dialog
|
|
5
|
+
title: 'Dialog: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Dialog
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Dialog
|
|
11
|
+
---
|
|
12
|
+
# Dialog: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionDialog`, `lion-dialog`
|
|
4
16
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Dialog
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Dialog: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Dialog: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Dialog
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Dialog: Overview
|
|
2
14
|
|
|
3
15
|
A web component that wraps a modal dialog controller.
|
|
4
16
|
Its purpose is to make it easy to use our Overlay System declaratively.
|
|
@@ -54,6 +66,6 @@ import '@lion/ui/define/lion-dialog.js';
|
|
|
54
66
|
## Changing the configuration
|
|
55
67
|
|
|
56
68
|
You can use the `.config` property on the dialog to change the configuration.
|
|
57
|
-
The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/
|
|
69
|
+
The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/0c3425c2b9f0cbb8c2680b033ba775170b92c641/docs/fundamentals/systems/overlays/configuration.md).
|
|
58
70
|
|
|
59
71
|
The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Dialog
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Dialog: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Dialog: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Dialog
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Dialog: Use Cases
|
|
2
14
|
|
|
3
15
|
`lion-dialog` is a component wrapping a modal dialog controller.
|
|
4
16
|
Its purpose is to make it easy to use our Overlay System declaratively.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- API Table
|
|
4
|
+
- Drawer
|
|
5
|
+
title: 'Drawer: API Table'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: API Table >> Drawer
|
|
8
|
+
title: API Table
|
|
9
|
+
order: 90
|
|
10
|
+
parent: Drawer
|
|
11
|
+
---
|
|
12
|
+
# Drawer: API Table
|
|
13
|
+
|
|
2
14
|
|
|
3
15
|
## class: `LionDrawer`, `lion-drawer`
|
|
4
16
|
|