@lion/ui 0.15.0 → 0.15.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 +38 -12
- package/components/combobox/test/lion-combobox.test.js +50 -2
- package/components/core/src/SlotMixin.js +52 -0
- package/components/core/test/SlotMixin.test.js +85 -0
- package/components/dialog/test/lion-dialog.integration.test.js +170 -0
- package/components/input-amount-dropdown/src/localizeNamespaceLoader.js +53 -0
- package/components/input-amount-dropdown/translations/bg.js +5 -0
- package/components/input-amount-dropdown/translations/cs.js +5 -0
- package/components/input-amount-dropdown/translations/de.js +5 -0
- package/components/input-amount-dropdown/translations/es.js +5 -0
- package/components/input-amount-dropdown/translations/fr.js +5 -0
- package/components/input-amount-dropdown/translations/hu.js +5 -0
- package/components/input-amount-dropdown/translations/id.js +5 -0
- package/components/input-amount-dropdown/translations/it.js +5 -0
- package/components/input-amount-dropdown/translations/nl.js +5 -0
- package/components/input-amount-dropdown/translations/pl.js +5 -0
- package/components/input-amount-dropdown/translations/ro.js +5 -0
- package/components/input-amount-dropdown/translations/ru.js +5 -0
- package/components/input-amount-dropdown/translations/sk.js +5 -0
- package/components/input-amount-dropdown/translations/uk.js +5 -0
- package/components/input-amount-dropdown/translations/zh.js +5 -0
- package/components/listbox/src/ListboxMixin.js +3 -35
- package/components/overlays/src/ArrowMixin.js +10 -4
- package/components/overlays/src/OverlayController.js +34 -7
- package/components/overlays/test/OverlayController.test.js +4 -1
- package/components/overlays/test/OverlayMixin.test.js +2 -2
- package/components/overlays/test-suites/OverlayMixin.suite.js +57 -0
- package/custom-elements.json +2969 -207
- package/dist-types/components/core/src/ScopedElementsMixin.d.ts.map +1 -1
- package/dist-types/components/core/src/SlotMixin.d.ts +35 -0
- package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
- package/dist-types/components/core/test/SlotMixin.test.d.ts.map +1 -1
- package/dist-types/components/dialog/test/lion-dialog.integration.test.d.ts +3 -0
- package/dist-types/components/dialog/test/lion-dialog.integration.test.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts +1 -1
- package/dist-types/components/input-amount-dropdown/src/localizeNamespaceLoader.d.ts.map +1 -1
- package/dist-types/components/input-amount-dropdown/translations/bg.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/bg.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/cs.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/cs.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/de.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/de.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/es.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/es.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/fr.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/fr.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/hu.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/hu.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/id.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/id.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/it.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/it.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/nl.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/nl.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/pl.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/pl.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/ro.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/ro.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/ru.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/ru.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/sk.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/sk.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/uk.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/uk.d.ts.map +1 -0
- package/dist-types/components/input-amount-dropdown/translations/zh.d.ts +7 -0
- package/dist-types/components/input-amount-dropdown/translations/zh.d.ts.map +1 -0
- package/dist-types/components/listbox/src/ListboxMixin.d.ts.map +1 -1
- package/dist-types/components/overlays/src/ArrowMixin.d.ts.map +1 -1
- package/dist-types/components/overlays/src/OverlayController.d.ts +13 -4
- package/dist-types/components/overlays/src/OverlayController.d.ts.map +1 -1
- package/dist-types/components/overlays/test-suites/OverlayMixin.suite.d.ts.map +1 -1
- package/dist-types/tsconfig.tsbuildinfo +1 -1
- package/docs/components/accordion/index.md +1 -1
- package/docs/components/accordion/overview.md +1 -1
- package/docs/components/accordion/reference.md +1 -1
- package/docs/components/accordion/use-cases.md +1 -1
- package/docs/components/button/{extensions/bootstrap-button.mjs → assets/bootstrap-button.js} +10 -5
- package/docs/components/button/examples.md +1 -1
- package/docs/components/button/extensions.md +2 -2
- package/docs/components/button/index.md +2 -2
- package/docs/components/button/overview.md +4 -4
- package/docs/components/button/use-cases.md +6 -6
- package/docs/components/calendar/index.md +1 -1
- package/docs/components/calendar/overview.md +1 -1
- package/docs/components/calendar/use-cases.md +2 -2
- package/docs/components/checkbox-group/index.md +1 -1
- package/docs/components/checkbox-group/overview.md +3 -3
- package/docs/components/checkbox-group/use-cases.md +1 -1
- package/docs/components/collapsible/examples.md +1 -1
- package/docs/components/collapsible/index.md +1 -1
- package/docs/components/collapsible/overview.md +2 -2
- package/docs/components/collapsible/use-cases.md +1 -1
- package/docs/components/combobox/extensions.md +2 -1
- package/docs/components/combobox/index.md +1 -1
- package/docs/components/combobox/overview.md +2 -2
- package/docs/components/combobox/use-cases.md +2 -2
- package/docs/components/dialog/index.md +1 -1
- package/docs/components/dialog/overview.md +2 -2
- package/docs/components/dialog/use-cases.md +3 -3
- package/docs/components/drawer/index.md +1 -1
- package/docs/components/drawer/overview.md +1 -1
- package/docs/components/drawer/use-cases.md +1 -1
- package/docs/components/fieldset/index.md +1 -1
- package/docs/components/fieldset/overview.md +6 -6
- package/docs/components/fieldset/use-cases.md +1 -1
- package/docs/components/form/index.md +1 -1
- package/docs/components/form/overview.md +4 -4
- package/docs/components/form/use-cases.md +3 -3
- package/docs/components/icon/index.md +1 -1
- package/docs/components/icon/overview.md +1 -1
- package/docs/components/icon/use-cases.md +2 -15
- package/docs/components/index.md +1 -1
- package/docs/components/input/index.md +1 -1
- package/docs/components/input/overview.md +2 -2
- package/docs/components/input/use-cases.md +1 -1
- package/docs/components/input-amount/index.md +1 -1
- package/docs/components/input-amount/overview.md +4 -4
- package/docs/components/input-amount/use-cases.md +1 -1
- package/docs/components/input-amount-dropdown/index.md +1 -1
- package/docs/components/input-amount-dropdown/use-cases.md +1 -1
- package/docs/components/input-date/index.md +1 -1
- package/docs/components/input-date/overview.md +4 -4
- package/docs/components/input-date/use-cases.md +1 -1
- package/docs/components/input-datepicker/index.md +1 -1
- package/docs/components/input-datepicker/overview.md +6 -6
- package/docs/components/input-datepicker/use-cases.md +1 -1
- package/docs/components/input-email/index.md +1 -1
- package/docs/components/input-email/overview.md +3 -3
- package/docs/components/input-email/use-cases.md +1 -1
- package/docs/components/input-file/index.md +1 -1
- package/docs/components/input-file/overview.md +2 -2
- package/docs/components/input-file/use-cases.md +1 -1
- package/docs/components/input-iban/index.md +1 -1
- package/docs/components/input-iban/overview.md +3 -3
- package/docs/components/input-iban/use-cases.md +1 -1
- package/docs/components/input-range/index.md +1 -1
- package/docs/components/input-range/overview.md +3 -3
- package/docs/components/input-range/use-cases.md +1 -1
- package/docs/components/input-stepper/index.md +1 -1
- package/docs/components/input-stepper/overview.md +2 -2
- package/docs/components/input-stepper/use-cases.md +1 -1
- package/docs/components/input-tel/index.md +1 -1
- package/docs/components/input-tel/overview.md +2 -2
- package/docs/components/input-tel/use-cases.md +7 -7
- package/docs/components/input-tel-dropdown/extensions.md +1 -1
- package/docs/components/input-tel-dropdown/index.md +1 -1
- package/docs/components/input-tel-dropdown/overview.md +2 -2
- package/docs/components/input-tel-dropdown/use-cases.md +1 -1
- package/docs/components/listbox/index.md +1 -1
- package/docs/components/listbox/overview.md +1 -1
- package/docs/components/listbox/use-cases.md +2 -2
- package/docs/components/pagination/index.md +1 -1
- package/docs/components/pagination/overview.md +1 -1
- package/docs/components/pagination/use-cases.md +1 -1
- package/docs/components/progress-indicator/examples.md +1 -1
- package/docs/components/progress-indicator/index.md +1 -1
- package/docs/components/progress-indicator/overview.md +1 -1
- package/docs/components/radio-group/index.md +1 -1
- package/docs/components/radio-group/overview.md +4 -4
- package/docs/components/radio-group/use-cases.md +1 -1
- package/docs/components/select/index.md +1 -1
- package/docs/components/select/overview.md +1 -1
- package/docs/components/select/use-cases.md +2 -2
- package/docs/components/select-rich/examples.md +1 -1
- package/docs/components/select-rich/index.md +1 -1
- package/docs/components/select-rich/overview.md +1 -1
- package/docs/components/select-rich/use-cases.md +3 -3
- package/docs/components/steps/index.md +1 -1
- package/docs/components/steps/overview.md +1 -1
- package/docs/components/steps/use-cases.md +1 -1
- package/docs/components/switch/index.md +1 -1
- package/docs/components/switch/overview.md +1 -1
- package/docs/components/switch/reference.md +1 -1
- package/docs/components/switch/use-cases.md +1 -1
- package/docs/components/tabs/examples.md +2 -2
- package/docs/components/tabs/index.md +1 -1
- package/docs/components/tabs/overview.md +1 -1
- package/docs/components/tabs/use-cases.md +1 -1
- package/docs/components/textarea/index.md +1 -1
- package/docs/components/textarea/overview.md +1 -1
- package/docs/components/textarea/use-cases.md +1 -1
- package/docs/components/tooltip/examples.md +1 -1
- package/docs/components/tooltip/index.md +1 -1
- package/docs/components/tooltip/overview.md +1 -1
- package/docs/components/tooltip/use-cases.md +1 -1
- package/docs/fundamentals/index.md +4 -4
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +1 -1
- package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +1 -1
- package/docs/fundamentals/node-tools/index.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/index.md +1 -1
- package/docs/fundamentals/node-tools/providence-analytics/overview.md +1 -1
- package/docs/fundamentals/node-tools/publish-docs/index.md +1 -1
- package/docs/fundamentals/node-tools/publish-docs/overview.md +4 -4
- package/docs/fundamentals/node-tools/remark-extend/index.md +1 -1
- package/docs/fundamentals/node-tools/remark-extend/overview.md +1 -1
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +1 -1
- package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +3 -3
- package/docs/fundamentals/rationales/TypeScript.md +1 -1
- package/docs/fundamentals/rationales/accessibility.md +2 -2
- package/docs/fundamentals/rationales/index.md +1 -1
- package/docs/fundamentals/rationales/side-effects.md +1 -1
- package/docs/fundamentals/rationales/versioning.md +1 -1
- package/docs/fundamentals/systems/core/SlotMixin.md +2 -2
- package/docs/fundamentals/systems/core/index.md +1 -1
- package/docs/fundamentals/systems/core/overview.md +2 -2
- package/docs/fundamentals/systems/form/formatting-and-parsing.md +5 -5
- package/docs/fundamentals/systems/form/index.md +1 -1
- package/docs/fundamentals/systems/form/interaction-states.md +1 -1
- package/docs/fundamentals/systems/form/model-value.md +2 -2
- package/docs/fundamentals/systems/form/overview.md +29 -29
- package/docs/fundamentals/systems/form/styling.md +1 -1
- package/docs/fundamentals/systems/form/use-cases.md +1 -1
- package/docs/fundamentals/systems/form/validate.md +3 -3
- package/docs/fundamentals/systems/icon/index.md +1 -1
- package/docs/fundamentals/systems/icon/overview.md +1 -1
- package/docs/fundamentals/systems/index.md +1 -1
- package/docs/fundamentals/systems/localize/api-table.md +3 -0
- package/docs/fundamentals/systems/localize/dates.md +1 -1
- package/docs/fundamentals/systems/localize/index.md +1 -1
- package/docs/fundamentals/systems/localize/numbers.md +1 -1
- package/docs/fundamentals/systems/localize/overview.md +5 -5
- package/docs/fundamentals/systems/localize/rationale.md +1 -1
- package/docs/fundamentals/systems/localize/text.md +5 -4
- package/docs/fundamentals/systems/localize/use-cases.md +1 -1
- package/docs/fundamentals/systems/overlays/_configuration-positioning.md +3 -3
- package/docs/fundamentals/systems/overlays/_edge-cases.md +3 -3
- package/docs/fundamentals/systems/overlays/api-table.md +3 -0
- package/docs/fundamentals/systems/overlays/assets/demo-overlay-positioning.mjs +1 -1
- package/docs/fundamentals/systems/overlays/configuration.md +5 -5
- package/docs/fundamentals/systems/overlays/index.md +1 -1
- package/docs/fundamentals/systems/overlays/overview.md +6 -6
- package/docs/fundamentals/systems/overlays/rationale.md +1 -1
- package/docs/fundamentals/systems/overlays/use-cases.md +6 -6
- package/docs/fundamentals/tools/ajax/index.md +1 -1
- package/docs/fundamentals/tools/ajax/overview.md +2 -2
- package/docs/fundamentals/tools/ajax/use-cases.md +3 -3
- package/docs/fundamentals/tools/helpers/action-logger.md +1 -1
- package/docs/fundamentals/tools/helpers/index.md +2 -2
- package/docs/fundamentals/tools/helpers/overview.md +2 -2
- package/docs/fundamentals/tools/index.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +1 -1
- package/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js +4 -4
- package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-a/page-a.js → page-c/page-c.js} +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b/page-b.js → page-d/page-d.js} +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js +4 -4
- package/docs/fundamentals/tools/singleton-manager/example-success/index.md +2 -2
- package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-a/page-a.js → page-e/page-e.js} +2 -3
- package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b/page-b.js → page-f/page-f.js} +2 -2
- package/docs/fundamentals/tools/singleton-manager/index.md +2 -2
- package/docs/fundamentals/tools/singleton-manager/overview.md +5 -5
- package/docs/guides/how-to/create-a-custom-field.md +5 -5
- package/docs/guides/how-to/create-a-form.md +4 -4
- package/docs/guides/how-to/extend-a-native-input.md +2 -2
- package/docs/guides/index.md +8 -8
- package/docs/guides/principles/index.md +5 -5
- package/docs/guides/principles/styling.md +1 -1
- package/package.json +1 -1
- /package/docs/fundamentals/systems/overlays/assets/{applyDemoOverlayStyles.mjs → applyDemoOverlayStyles.js} +0 -0
- /package/docs/fundamentals/systems/overlays/assets/{demo-el-using-overlaymixin.mjs → demo-el-using-overlaymixin.js} +0 -0
- /package/docs/fundamentals/systems/overlays/assets/{demo-overlay-backdrop.mjs → demo-overlay-backdrop.js} +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/index.js +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/instance.js +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/index.js +0 -0
- /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/instance.js +0 -0
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Form
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Form: Formatting and Parsing
|
|
15
15
|
|
|
16
16
|
```js script
|
|
17
17
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -36,7 +36,7 @@ Our fields can automatically format/parse/serialize user input or an input set i
|
|
|
36
36
|
|
|
37
37
|
Below are some concrete examples of implementations of formatters and parsers mimicking a (basic) amount input.
|
|
38
38
|
|
|
39
|
-
> For an actual amount input, check out [lion-input-amount](https://github.com/ing-bank/lion/blob/
|
|
39
|
+
> For an actual amount input, check out [lion-input-amount](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-amount/overview.md).
|
|
40
40
|
> This comes with its own formatter, parser, serializer.
|
|
41
41
|
|
|
42
42
|
### Parsers & modelValue
|
|
@@ -243,16 +243,16 @@ Below we show three flow diagrams to show the flow of formatting, serializing an
|
|
|
243
243
|
|
|
244
244
|
Where a user changes the input with their keyboard:
|
|
245
245
|
|
|
246
|
-

|
|
247
247
|
|
|
248
248
|
### Unparseable flow
|
|
249
249
|
|
|
250
250
|
Where a user sets the input to something that is not parseable by the parser:
|
|
251
251
|
|
|
252
|
-

|
|
253
253
|
|
|
254
254
|
### Imperative / programmatic flow
|
|
255
255
|
|
|
256
256
|
Where the developer sets the modelValue of the input programmatically:
|
|
257
257
|
|
|
258
|
-

|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Form
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Form: ModelValue
|
|
15
15
|
|
|
16
16
|
The modelValue or model can be considered as the ‘aorta’ of our form system.
|
|
17
17
|
It is the single source of truth; not only for the current state
|
|
@@ -34,7 +34,7 @@ level, via:
|
|
|
34
34
|
> Internal/private concepts like viewValue, formattedValue, serializedValue are therefore not
|
|
35
35
|
> recommended as a means of interaction.
|
|
36
36
|
|
|
37
|
-
For more information about parsing and the Unparseable type, see [Formatting and Parsing](https://github.com/ing-bank/lion/blob/
|
|
37
|
+
For more information about parsing and the Unparseable type, see [Formatting and Parsing](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/formatting-and-parsing.md)
|
|
38
38
|
|
|
39
39
|
### Event meta
|
|
40
40
|
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Form
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Form: Overview
|
|
15
15
|
|
|
16
16
|
This page should be used as a starting point when first using the Form System.
|
|
17
17
|
It provides an overview of its essential building blocks and provides links to detailed explanations of most of its core concepts.
|
|
@@ -33,9 +33,9 @@ Fields (think of an input, textarea, select) are the actual form controls the en
|
|
|
33
33
|
|
|
34
34
|
On top of this, they feature:
|
|
35
35
|
|
|
36
|
-
- [formatting/parsing/serializing](https://github.com/ing-bank/lion/blob/
|
|
37
|
-
- Advanced [validation](https://github.com/ing-bank/lion/blob/
|
|
38
|
-
- Creation of advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/
|
|
36
|
+
- [formatting/parsing/serializing](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/formatting-and-parsing.md) of view values.
|
|
37
|
+
- Advanced [validation](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/validate.md) possibilities.
|
|
38
|
+
- Creation of advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/interaction-states.md).
|
|
39
39
|
- Provision of labels and help texts in an easy, declarative manner.
|
|
40
40
|
- Accessibility out of the box.
|
|
41
41
|
- Advanced styling possibilities: map your own Design System to the internal HTML structure.
|
|
@@ -44,33 +44,33 @@ On top of this, they feature:
|
|
|
44
44
|
|
|
45
45
|
### Platform fields (wrappers)
|
|
46
46
|
|
|
47
|
-
- [LionInput](https://github.com/ing-bank/lion/blob/
|
|
48
|
-
- [LionTextarea](https://github.com/ing-bank/lion/blob/
|
|
49
|
-
- [LionSelect](https://github.com/ing-bank/lion/blob/
|
|
47
|
+
- [LionInput](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input/overview.md), a wrapper for `<input>`.
|
|
48
|
+
- [LionTextarea](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/textarea/overview.md), a wrapper for `<textarea>`.
|
|
49
|
+
- [LionSelect](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/select/overview.md), a wrapper for `<select>`.
|
|
50
50
|
|
|
51
51
|
### Custom fields (wrappers)
|
|
52
52
|
|
|
53
|
-
Whenever a native form control doesn't exist or is not sufficient, a [custom form field](https://github.com/ing-bank/lion/blob/
|
|
53
|
+
Whenever a native form control doesn't exist or is not sufficient, a [custom form field](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/guides/how-to/create-a-custom-field.md) should be created. One could think of components like:
|
|
54
54
|
|
|
55
|
-
- [LionCombobox](https://github.com/ing-bank/lion/blob/
|
|
56
|
-
- [LionDate](https://github.com/ing-bank/lion/blob/
|
|
57
|
-
- [LionDatepicker](https://github.com/ing-bank/lion/blob/
|
|
58
|
-
- [LionListbox](https://github.com/ing-bank/lion/blob/
|
|
59
|
-
- [LionInputAmount](https://github.com/ing-bank/lion/blob/
|
|
60
|
-
- [LionInputEmail](https://github.com/ing-bank/lion/blob/
|
|
61
|
-
- [LionInputIban](https://github.com/ing-bank/lion/blob/
|
|
62
|
-
- [LionInputRange](https://github.com/ing-bank/lion/blob/
|
|
63
|
-
- [LionInputStepper](https://github.com/ing-bank/lion/blob/
|
|
64
|
-
- [LionSelectRich](https://github.com/ing-bank/lion/blob/
|
|
55
|
+
- [LionCombobox](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/combobox/overview.md), a custom implementation of a combobox.
|
|
56
|
+
- [LionDate](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-date/overview.md), an alternative for `<input type="date">`.
|
|
57
|
+
- [LionDatepicker](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-datepicker/overview.md), an alternative for `<input type="date">` including a calendar dropdown.
|
|
58
|
+
- [LionListbox](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/listbox/overview.md), a custom implementation of a listbox.
|
|
59
|
+
- [LionInputAmount](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-amount/overview.md), an alternative for `<input type="number">` special for amounts.
|
|
60
|
+
- [LionInputEmail](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-email/overview.md), an alternative for `<input type="email">`.
|
|
61
|
+
- [LionInputIban](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-iban/overview.md), an ING specific for an input with IBAN numbers.
|
|
62
|
+
- [LionInputRange](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-range/overview.md), an alternative for `<input type="range">`.
|
|
63
|
+
- [LionInputStepper](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/input-stepper/overview.md), an alternative for `<input type="number">`.
|
|
64
|
+
- [LionSelectRich](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/select-rich/overview.md), an alternative for `<select>` with multiline options.
|
|
65
65
|
|
|
66
66
|
### Choice Input Fields
|
|
67
67
|
|
|
68
68
|
For form controls which return a `checked-state` you can use the `lion-choice-input` mixin. It is used in:
|
|
69
69
|
|
|
70
|
-
- [LionCheckbox](https://github.com/ing-bank/lion/blob/
|
|
70
|
+
- [LionCheckbox](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/checkbox-group/overview.md), a wrapper for `<input type="checkbox">`.
|
|
71
71
|
- LionOption, an alternative for `<option>`.
|
|
72
|
-
- [LionRadio](https://github.com/ing-bank/lion/blob/
|
|
73
|
-
- [LionSwitch](https://github.com/ing-bank/lion/blob/
|
|
72
|
+
- [LionRadio](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/radio-group/overview.md), a wrapper for `<input type="radio">`.
|
|
73
|
+
- [LionSwitch](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/switch/overview.md), a custom implementation of a switch.
|
|
74
74
|
|
|
75
75
|
Which contains the following features:
|
|
76
76
|
|
|
@@ -82,14 +82,14 @@ Which contains the following features:
|
|
|
82
82
|
|
|
83
83
|
Fieldsets are groups of fields. They can be considered fields on their own as well, since they partly share the normalized API via `FormControlMixin`. Fieldsets are the basis for:
|
|
84
84
|
|
|
85
|
-
- [LionFieldset](https://github.com/ing-bank/lion/blob/
|
|
86
|
-
- [LionForm](https://github.com/ing-bank/lion/blob/
|
|
87
|
-
- [LionCheckboxGroup](https://github.com/ing-bank/lion/blob/
|
|
88
|
-
- [LionRadioGroup](https://github.com/ing-bank/lion/blob/
|
|
85
|
+
- [LionFieldset](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/fieldset/overview.md), a wrapper around multiple input fields or other fieldsets.
|
|
86
|
+
- [LionForm](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/form/overview.md), enhances the functionality of the native `<form>` component.
|
|
87
|
+
- [LionCheckboxGroup](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/checkbox-group/overview.md), a wrapper component for multiple checkboxes.
|
|
88
|
+
- [LionRadioGroup](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/radio-group/overview.md), a wrapper component for multiple radio inputs.
|
|
89
89
|
|
|
90
90
|
## Other Resources
|
|
91
91
|
|
|
92
|
-
- [Model Value](https://github.com/ing-bank/lion/blob/
|
|
93
|
-
- [Formatting and parsing](https://github.com/ing-bank/lion/blob/
|
|
94
|
-
- [Interaction states](https://github.com/ing-bank/lion/blob/
|
|
95
|
-
- [Validation System](https://github.com/ing-bank/lion/blob/
|
|
92
|
+
- [Model Value](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/model-value.md)
|
|
93
|
+
- [Formatting and parsing](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/formatting-and-parsing.md)
|
|
94
|
+
- [Interaction states](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/interaction-states.md)
|
|
95
|
+
- [Validation System](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/validate.md)
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Form
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Form: Use Cases
|
|
15
15
|
|
|
16
16
|
This is a meta package to show interaction between various form elements.
|
|
17
17
|
For usage and installation please see the appropriate packages.
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Form
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Form: Validate
|
|
15
15
|
|
|
16
16
|
```js script
|
|
17
17
|
import { html } from '@mdjs/mdjs-preview';
|
|
@@ -70,7 +70,7 @@ Validation happens on every change of `modelValue`. A change in modelValue can b
|
|
|
70
70
|
|
|
71
71
|
## When validation feedback will be shown
|
|
72
72
|
|
|
73
|
-
Although validation happens realtime under the hood, displaying validity feedback in realtime may not always lead to the desired User Experience. Together with [interaction states](https://github.com/ing-bank/lion/blob/
|
|
73
|
+
Although validation happens realtime under the hood, displaying validity feedback in realtime may not always lead to the desired User Experience. Together with [interaction states](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/interaction-states.md),
|
|
74
74
|
validity states can determine whether a validation message should be shown along the input field.
|
|
75
75
|
|
|
76
76
|
## Assessing field validation state programmatically
|
|
@@ -245,7 +245,7 @@ export const requiredValidator = () => html`
|
|
|
245
245
|
`;
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
The default `Required` validation message is "Please, enter a(n) {fieldName}". In which the "fieldName" can be provided separately via the `fieldName` attribute, with a fallback to the label. See [override fieldname](https://github.com/ing-bank/lion/blob/
|
|
248
|
+
The default `Required` validation message is "Please, enter a(n) {fieldName}". In which the "fieldName" can be provided separately via the `fieldName` attribute, with a fallback to the label. See [override fieldname](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/form/#override-fieldname) for more information.
|
|
249
249
|
|
|
250
250
|
Specific required messages for a select and file-upload are created.
|
|
251
251
|
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Icon
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Icon: Overview
|
|
15
15
|
|
|
16
16
|
The icon system provides a way of defining icon sets which are lazily loaded on demand when
|
|
17
17
|
icons are rendered on the page. This way icon imports do not block the initial render of your
|
|
@@ -34,9 +34,12 @@ eleventyNavigation:
|
|
|
34
34
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
35
35
|
| ------------------------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | ----------------------- | -------------- |
|
|
36
36
|
| `addData` | public | | `locale: string, namespace: string, data: object` | | |
|
|
37
|
+
| `addEventListener` | public | | `type, callback, options` | | EventTarget |
|
|
38
|
+
| `dispatchEvent` | public | | `event` | | EventTarget |
|
|
37
39
|
| `loadNamespace` | public | | `namespaceObj: NamespaceObject, { locale = this.locale }, options: @param {string} [options.locale] * ` | `Promise<Object\|void>` | |
|
|
38
40
|
| `loadNamespaces` | public | | `namespaces: NamespaceObject[], { locale }, options: @param {string} [options.locale] * ` | `Promise<Object>` | |
|
|
39
41
|
| `msg` | public | | `keys: string \| string[], vars: Object<string,?>, opts: @param {string} [opts.locale] * ` | `string` | |
|
|
42
|
+
| `removeEventListener` | public | | `type, callback, options` | | EventTarget |
|
|
40
43
|
| `reset` | public | | | | |
|
|
41
44
|
| `setDatePostProcessorForLocale` | public | | `{ locale, postProcessor }, options: {locale:string, postProcessor:DatePostProcessor}` | | |
|
|
42
45
|
| `setNumberPostProcessorForLocale` | public | | `{ locale, postProcessor }, options: {locale:string, postProcessor:NumberPostProcessor}` | | |
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Localize
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Localize: Overview
|
|
15
15
|
|
|
16
16
|
Is meant to translate text into multiple languages.
|
|
17
17
|
In it's simplest form it is a function that returns the translated text for a namespace + key.
|
|
@@ -22,15 +22,15 @@ In it's simplest form it is a function that returns the translated text for a na
|
|
|
22
22
|
- Formatting of numbers, amounts
|
|
23
23
|
- Formatting of dates
|
|
24
24
|
|
|
25
|
-
Further examples and a more in depth description can be found at the [Use Cases Page](https://github.com/ing-bank/lion/blob/
|
|
25
|
+
Further examples and a more in depth description can be found at the [Use Cases Page](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/localize/use-cases.md).
|
|
26
26
|
|
|
27
27
|
## Content
|
|
28
28
|
|
|
29
29
|
| Feature | Description |
|
|
30
30
|
| ---------------------------------------- | --------------------------------------------- |
|
|
31
|
-
| [Translate Text](https://github.com/ing-bank/lion/blob/
|
|
32
|
-
| [Format Numbers](https://github.com/ing-bank/lion/blob/
|
|
33
|
-
| [Format Dates](https://github.com/ing-bank/lion/blob/
|
|
31
|
+
| [Translate Text](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/localize/text.md) | Load and translate text in multiple languages |
|
|
32
|
+
| [Format Numbers](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/localize/numbers.md) | Format numbers in multiple languages |
|
|
33
|
+
| [Format Dates](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/localize/dates.md) | Format dates in multiple languages |
|
|
34
34
|
|
|
35
35
|
## Installation
|
|
36
36
|
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Localize
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Localize: Translate Text
|
|
15
15
|
|
|
16
16
|
## As a function
|
|
17
17
|
|
|
@@ -36,9 +36,10 @@ export const asFunction = () => {
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
localize
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})
|
|
39
|
+
// TODO: look for Astro fix...
|
|
40
|
+
// .loadNamespace({
|
|
41
|
+
// 'lit-html-example': locale => import(`./assets/${locale}.js`),
|
|
42
|
+
// })
|
|
42
43
|
.then(() => {
|
|
43
44
|
update();
|
|
44
45
|
});
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Localize
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Localize: Use Cases
|
|
15
15
|
|
|
16
16
|
The localization system helps to manage localization data split into locales and automate its loading.
|
|
17
17
|
The loading of data tries to be as unobtrusive as possible for a typical workflow while providing a flexible and controllable mechanism for non-trivial use cases.
|
|
@@ -13,13 +13,13 @@ eleventyNavigation:
|
|
|
13
13
|
parent: Systems >> Overlays >> Configuration
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
#
|
|
16
|
+
# Configuration: Positioning
|
|
17
17
|
|
|
18
18
|
```js script
|
|
19
19
|
import { html, render, LitElement } from '@mdjs/mdjs-preview';
|
|
20
20
|
import { ref, createRef } from 'lit/directives/ref.js';
|
|
21
|
-
import './assets/demo-el-using-overlaymixin.
|
|
22
|
-
import './assets/applyDemoOverlayStyles.
|
|
21
|
+
import './assets/demo-el-using-overlaymixin.js';
|
|
22
|
+
import './assets/applyDemoOverlayStyles.js';
|
|
23
23
|
import './assets/demo-overlay-positioning.mjs';
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -12,13 +12,13 @@ eleventyNavigation:
|
|
|
12
12
|
parent: Systems >> Overlays
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
#
|
|
15
|
+
# Overlays: Edge cases
|
|
16
16
|
|
|
17
17
|
```js script
|
|
18
18
|
import { html, render, LitElement } from '@mdjs/mdjs-preview';
|
|
19
19
|
import { ref, createRef } from 'lit/directives/ref.js';
|
|
20
|
-
import './assets/demo-el-using-overlaymixin.
|
|
21
|
-
import './assets/applyDemoOverlayStyles.
|
|
20
|
+
import './assets/demo-el-using-overlaymixin.js';
|
|
21
|
+
import './assets/applyDemoOverlayStyles.js';
|
|
22
22
|
import './assets/demo-overlay-positioning.mjs';
|
|
23
23
|
```
|
|
24
24
|
|
|
@@ -57,9 +57,12 @@ eleventyNavigation:
|
|
|
57
57
|
|
|
58
58
|
| Name | Privacy | Description | Parameters | Return | Inherited From |
|
|
59
59
|
| ------------------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------ | -------------- |
|
|
60
|
+
| `addEventListener` | public | | `type, callback, options` | | EventTarget |
|
|
60
61
|
| `disableTrapsKeyboardFocus` | public | | `{ findNewTrap = true }` | | |
|
|
62
|
+
| `dispatchEvent` | public | | `event` | | EventTarget |
|
|
61
63
|
| `enableTrapsKeyboardFocus` | public | | | | |
|
|
62
64
|
| `hide` | public | | | | |
|
|
65
|
+
| `removeEventListener` | public | | `type, callback, options` | | EventTarget |
|
|
63
66
|
| `show` | public | | `elementToFocusAfterHide: HTMLElement` | | |
|
|
64
67
|
| `teardown` | public | | | | |
|
|
65
68
|
| `toggle` | public | | | | |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { html, LitElement, css } from 'lit';
|
|
4
4
|
import { ref, createRef } from 'lit/directives/ref.js';
|
|
5
5
|
import { OverlayMixin } from '@lion/ui/overlays.js';
|
|
6
|
-
import './demo-el-using-overlaymixin.
|
|
6
|
+
import './demo-el-using-overlaymixin.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @typedef {import('@lion/ui/types/overlays.js').OverlayConfig} OverlayConfig
|
|
@@ -11,12 +11,12 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Overlays
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Overlays: Configuration
|
|
15
15
|
|
|
16
16
|
```js script
|
|
17
17
|
import { html } from '@mdjs/mdjs-preview';
|
|
18
|
-
import './assets/demo-el-using-overlaymixin.
|
|
19
|
-
import './assets/applyDemoOverlayStyles.
|
|
18
|
+
import './assets/demo-el-using-overlaymixin.js';
|
|
19
|
+
import './assets/applyDemoOverlayStyles.js';
|
|
20
20
|
import { withDropdownConfig, withModalDialogConfig, withTooltipConfig } from '@lion/ui/overlays.js';
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -112,7 +112,7 @@ export const alertDialog = () => {
|
|
|
112
112
|
|
|
113
113
|
## isTooltip (placementMode: 'local')
|
|
114
114
|
|
|
115
|
-
As specified in the [overlay rationale](https://github.com/ing-bank/lion/blob/
|
|
115
|
+
As specified in the [overlay rationale](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/overlays/rationale.md) there are only two official types of overlays: dialogs and tooltips. And their main differences are:
|
|
116
116
|
|
|
117
117
|
- Dialogs have a modal option, tooltips don’t
|
|
118
118
|
- Dialogs have interactive content, tooltips don’t
|
|
@@ -443,7 +443,7 @@ Features:
|
|
|
443
443
|
|
|
444
444
|
> Popper strictly is scoped on positioning. **It does not change the dimensions of the content node nor the invoker node**.
|
|
445
445
|
> This also means that if you use the arrow feature, you are in charge of styling it properly, use the data-popper-placement attribute for this.
|
|
446
|
-
> An example implementation can be found in [lion-tooltip](https://github.com/ing-bank/lion/blob/
|
|
446
|
+
> An example implementation can be found in [lion-tooltip](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/tooltip/overview.md), where an arrow is set by default.
|
|
447
447
|
|
|
448
448
|
To override the default options we set for local mode, you add a `popperConfig` object to the config passed to the OverlayController.
|
|
449
449
|
Here's a succinct overview of some often used popper properties:
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Overlays
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Overlays: Overview
|
|
15
15
|
|
|
16
16
|
Supports different types of overlays like dialogs, toasts, tooltips, dropdown, etc.
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ Manages their position on the screen relative to other elements, including other
|
|
|
19
19
|
|
|
20
20
|
Its purpose is to make it easy to use our Overlay System declaratively. It can be easily extended where needed, to override event listeners and more.
|
|
21
21
|
|
|
22
|
-
See [lion-dialog](../../../components/dialog/overview.md) and [lion-tooltip](https://github.com/ing-bank/lion/blob/
|
|
22
|
+
See [lion-dialog](../../../components/dialog/overview.md) and [lion-tooltip](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/components/tooltip/overview.md) for example Web Component implementations using the Overlay System.
|
|
23
23
|
|
|
24
24
|
## Features
|
|
25
25
|
|
|
@@ -31,9 +31,9 @@ See [lion-dialog](../../../components/dialog/overview.md) and [lion-tooltip](htt
|
|
|
31
31
|
- lion-overlay web component:
|
|
32
32
|
- Show content when clicking the invoker
|
|
33
33
|
- Have a `.config` object to set or update the OverlayController's configuration
|
|
34
|
-
- [**OverlaysManager**](https://github.com/ing-bank/lion/blob/
|
|
35
|
-
- [**OverlayController**](https://github.com/ing-bank/lion/blob/
|
|
36
|
-
- [**OverlayMixin**](https://github.com/ing-bank/lion/blob/
|
|
34
|
+
- [**OverlaysManager**](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/overlays/use-cases.md#overlaysmanager), a global repository keeping track of all different types of overlays
|
|
35
|
+
- [**OverlayController**](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/overlays/use-cases.md#overlaycontroller), a single controller class for handling overlays
|
|
36
|
+
- [**OverlayMixin**](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/overlays/use-cases.md#overlaymixin), a mixin that can be used to create webcomponents that use the OverlayController under the hood
|
|
37
37
|
|
|
38
38
|
Usually you will use `lion-dialog` (or `lion-tooltip` if this makes more sense).
|
|
39
39
|
|
|
@@ -123,4 +123,4 @@ class MyOverlayComponent extends OverlayMixin(LitElement) {
|
|
|
123
123
|
|
|
124
124
|
## Rationales
|
|
125
125
|
|
|
126
|
-
Please check the [system rationals](https://github.com/ing-bank/lion/blob/
|
|
126
|
+
Please check the [system rationals](https://github.com/ing-bank/lion/blob/014a136cb197f258d6ec53188e1fb64e286a59ba/docs/fundamentals/systems/overlays/rationale.md) folder, where we go more in-depth.
|
|
@@ -11,7 +11,7 @@ eleventyNavigation:
|
|
|
11
11
|
parent: Systems >> Overlays
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# Overlays: Rationale
|
|
15
15
|
|
|
16
16
|
This page describes the goal and duties of the overlay system, mainly by identifying all different
|
|
17
17
|
appearances and types of overlays.
|