@lion/ui 0.11.0 → 0.11.2
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 +4 -4
- package/components/checkbox-group/src/LionCheckboxIndeterminate.js +39 -16
- package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +189 -1
- package/components/combobox/test/lion-combobox.test.js +75 -1
- package/components/form-core/src/FocusMixin.js +4 -4
- package/components/form-core/src/LionField.js +1 -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/components/localize/types/LocalizeMixinTypes.ts +0 -5
- package/components/select-rich/src/LionSelectRich.js +1 -1
- package/components/select-rich/test/lion-select-rich.test.js +13 -1
- package/custom-elements.json +47758 -47690
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +10 -0
- package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
- package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.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/components/localize/types/LocalizeMixinTypes.d.ts +0 -4
- package/dist-types/components/localize/types/LocalizeMixinTypes.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/api-table.md +19 -7
- 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 +40 -31
- 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 +26 -14
- 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 +318 -330
- 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 +18 -6
- 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 +163 -155
- 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 +25 -13
- 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 +22 -11
- 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 +117 -119
- 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 +16 -4
- 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 +123 -121
- 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 +142 -143
- 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 +123 -121
- 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 +161 -161
- 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 +123 -121
- 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 +145 -144
- 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 +123 -121
- 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 +129 -127
- 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 +136 -134
- 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 +131 -129
- 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 +138 -136
- 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 +139 -132
- 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 +18 -6
- 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 +22 -11
- 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 +247 -259
- 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 +119 -117
- 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 +182 -179
- 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 +19 -7
- 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 +130 -129
- 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 +14 -2
- 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 +127 -125
- 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 +26 -14
- 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 +22 -12
- 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 +91 -83
- 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 +33 -20
- 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 +59 -47
- 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
|
+
- 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/87a1cb4d5bec301af6688be2c7bf778344d2ae42/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/87a1cb4d5bec301af6688be2c7bf778344d2ae42/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
|
|
|
@@ -6,31 +18,31 @@
|
|
|
6
18
|
|
|
7
19
|
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
20
|
| ---------------------------- | --------- | ------------------------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
|
|
9
|
-
| `isAlertDialog` | public | `boolean` | `false` | | |
|
|
10
21
|
| `config` | public | `Partial<OverlayConfig>` | `{}` | Configure the many options of the \`OverlayController\` | OverlayMixin |
|
|
11
|
-
| `
|
|
12
|
-
| `
|
|
22
|
+
| `isAlertDialog` | public | `boolean` | `false` | | |
|
|
23
|
+
| `opened` | public | `boolean` | `false` | If you add the opened attribute a dialog will be opened on page load. The invoker can be left out
in case the user does not need to be able to reopen the dialog. | OverlayMixin |
|
|
13
24
|
| `_overlayBackdropNode` | protected | | | | OverlayMixin |
|
|
14
25
|
| `_overlayContentNode` | protected | | | | OverlayMixin |
|
|
15
26
|
| `_overlayContentWrapperNode` | protected | | | | OverlayMixin |
|
|
16
|
-
| `
|
|
27
|
+
| `_overlayInvokerNode` | protected | | | | OverlayMixin |
|
|
28
|
+
| `_overlayReferenceNode` | protected | | | | OverlayMixin |
|
|
17
29
|
|
|
18
30
|
### Methods
|
|
19
31
|
|
|
20
32
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
21
33
|
| ---------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------- | -------------- |
|
|
22
|
-
| `
|
|
34
|
+
| `close` | public | Hides the overlay | | | OverlayMixin |
|
|
35
|
+
| `open` | public | Shows the overlay | | | OverlayMixin |
|
|
36
|
+
| `repositionOverlay` | public | Sometimes it's needed to recompute Popper position of an overlay, for instance when we have
an opened combobox and the surrounding context changes (the space consumed by the textbox
increases vertically) | | | OverlayMixin |
|
|
37
|
+
| `toggle` | public | Toggles the overlay | | | OverlayMixin |
|
|
23
38
|
| `_defineOverlay` | protected | | `{ contentNode, invokerNode, referenceNode, backdropNode, contentWrapperNode }, config: DefineOverlayConfig` | `OverlayController` | OverlayMixin |
|
|
39
|
+
| `_defineOverlayConfig` | protected | | | `OverlayConfig` | OverlayMixin |
|
|
40
|
+
| `_isPermanentlyDisconnected` | protected | When we're moving around in dom, disconnectedCallback gets called.
Before we decide to teardown, let's wait to see if we were not just moving nodes around. | | `Promise<boolean>` | OverlayMixin |
|
|
41
|
+
| `_setOpenedWithoutPropertyEffects` | protected | When the opened state is changed by an Application Developer,cthe OverlayController is
requested to show/hide. It might happen that this request is not honoured
(intercepted in before-hide for instance), so that we need to sync the controller state
to this webcomponent again, preventing eternal loops. | `newOpened: boolean` | | OverlayMixin |
|
|
24
42
|
| `_setupOpenCloseListeners` | protected | | | | OverlayMixin |
|
|
25
|
-
| `_teardownOpenCloseListeners` | protected | | | | OverlayMixin |
|
|
26
43
|
| `_setupOverlayCtrl` | protected | | | | OverlayMixin |
|
|
44
|
+
| `_teardownOpenCloseListeners` | protected | | | | OverlayMixin |
|
|
27
45
|
| `_teardownOverlayCtrl` | protected | | | | OverlayMixin |
|
|
28
|
-
| `_setOpenedWithoutPropertyEffects` | protected | When the opened state is changed by an Application Developer,cthe OverlayController is
requested to show/hide. It might happen that this request is not honoured
(intercepted in before-hide for instance), so that we need to sync the controller state
to this webcomponent again, preventing eternal loops. | `newOpened: boolean` | | OverlayMixin |
|
|
29
|
-
| `toggle` | public | Toggles the overlay | | | OverlayMixin |
|
|
30
|
-
| `open` | public | Shows the overlay | | | OverlayMixin |
|
|
31
|
-
| `close` | public | Hides the overlay | | | OverlayMixin |
|
|
32
|
-
| `repositionOverlay` | public | Sometimes it's needed to recompute Popper position of an overlay, for instance when we have
an opened combobox and the surrounding context changes (the space consumed by the textbox
increases vertically) | | | OverlayMixin |
|
|
33
|
-
| `_isPermanentlyDisconnected` | protected | When we're moving around in dom, disconnectedCallback gets called.
Before we decide to teardown, let's wait to see if we were not just moving nodes around. | | `Promise<boolean>` | OverlayMixin |
|
|
34
46
|
|
|
35
47
|
### Events
|
|
36
48
|
|
|
@@ -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/87a1cb4d5bec301af6688be2c7bf778344d2ae42/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
|
|
|
@@ -6,27 +18,26 @@
|
|
|
6
18
|
|
|
7
19
|
| Name | Privacy | Type | Default | Description | Inherited From |
|
|
8
20
|
| ---------------- | --------- | --------- | ------- | ---------------------------------------------------------------------------- | --------------- |
|
|
21
|
+
| `opened` | public | `boolean` | `false` | | LionCollapsible |
|
|
9
22
|
| `position` | public | `string` | | Setter for position property, available values are 'top', 'left' and 'right' | |
|
|
10
|
-
| `_contentWidth` | protected | | | | |
|
|
11
|
-
| `_contentHeight` | protected | | | | LionCollapsible |
|
|
12
23
|
| `transitioning` | public | `boolean` | | | |
|
|
13
|
-
| `
|
|
14
|
-
| `_invokerNode` | protected | | | | LionCollapsible |
|
|
24
|
+
| `_contentHeight` | protected | | | | LionCollapsible |
|
|
15
25
|
| `_contentNode` | protected | | | | LionCollapsible |
|
|
26
|
+
| `_contentWidth` | protected | | | | |
|
|
27
|
+
| `_invokerNode` | protected | | | | LionCollapsible |
|
|
16
28
|
|
|
17
29
|
### Methods
|
|
18
30
|
|
|
19
31
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
20
32
|
| -------------------- | --------- | -------------------------------------------------------------- | -------------------------------------------------------------------------- | --------------- | --------------- |
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
33
|
+
| `hide` | public | Hide extra content. | | | LionCollapsible |
|
|
34
|
+
| `show` | public | Show extra content. | | | LionCollapsible |
|
|
35
|
+
| `toggle` | public | Toggle the current(opened/closed) state. | | | LionCollapsible |
|
|
23
36
|
| `_hideAnimation` | protected | Trigger hide animation and wait for transition to be finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | | LionCollapsible |
|
|
24
|
-
| `_waitForTransition` | protected | Wait until the transition event is finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | `Promise<void>` | |
|
|
25
37
|
| `_openedChanged` | protected | | | | |
|
|
38
|
+
| `_showAnimation` | protected | Trigger show animation and wait for transition to be finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | | LionCollapsible |
|
|
26
39
|
| `_updateContentSize` | protected | | | | |
|
|
27
|
-
| `
|
|
28
|
-
| `hide` | public | Hide extra content. | | | LionCollapsible |
|
|
29
|
-
| `toggle` | public | Toggle the current(opened/closed) state. | | | LionCollapsible |
|
|
40
|
+
| `_waitForTransition` | protected | Wait until the transition event is finished. | `{ contentNode }, options: @param {HTMLElement} options.contentNode * ` | `Promise<void>` | |
|
|
30
41
|
|
|
31
42
|
### Events
|
|
32
43
|
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Drawer
|
|
4
|
+
- Overview
|
|
5
|
+
title: 'Drawer: Overview'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Drawer: Overview'
|
|
8
|
+
order: 10
|
|
9
|
+
parent: Drawer
|
|
10
|
+
title: Overview
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Drawer: 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
|
|
4
16
|
animation to disclose the extra content.
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
parts:
|
|
3
|
+
- Drawer
|
|
4
|
+
- Use Cases
|
|
5
|
+
title: 'Drawer: Use Cases'
|
|
6
|
+
eleventyNavigation:
|
|
7
|
+
key: 'Drawer: Use Cases'
|
|
8
|
+
order: 20
|
|
9
|
+
parent: Drawer
|
|
10
|
+
title: Use Cases
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Drawer: Use Cases
|
|
2
14
|
|
|
3
15
|
```js script
|
|
4
16
|
import { html } from '@mdjs/mdjs-preview';
|