@lion/ui 0.14.3 → 0.15.1

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.
Files changed (235) hide show
  1. package/README.md +38 -12
  2. package/components/combobox/test/lion-combobox.test.js +50 -2
  3. package/components/core/src/SlotMixin.js +52 -0
  4. package/components/core/test/SlotMixin.test.js +85 -0
  5. package/components/icon/src/icons.js +14 -2
  6. package/components/icon/test/hammer.svg.js +5 -2
  7. package/components/icon/test/heart.svg.js +5 -2
  8. package/components/icon/test/lion-icon.test.js +10 -4
  9. package/components/input-stepper/src/LionInputStepper.js +10 -10
  10. package/components/listbox/src/ListboxMixin.js +3 -35
  11. package/components/localize/src/getLocalizeManager.js +16 -10
  12. package/components/localize/test/getLocalizeManager.test.js +15 -7
  13. package/components/localize/test/side-effect-free-entrypoint.test.js +9 -3
  14. package/components/overlays/src/ArrowMixin.js +10 -4
  15. package/components/overlays/src/singleton.js +14 -4
  16. package/components/overlays/test/OverlayController.test.js +4 -1
  17. package/custom-elements.json +3014 -220
  18. package/dist-types/components/core/src/ScopedElementsMixin.d.ts.map +1 -1
  19. package/dist-types/components/core/src/SlotMixin.d.ts +35 -0
  20. package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
  21. package/dist-types/components/core/test/SlotMixin.test.d.ts.map +1 -1
  22. package/dist-types/components/icon/src/LionIcon.d.ts +1 -1
  23. package/dist-types/components/icon/src/LionIcon.d.ts.map +1 -1
  24. package/dist-types/components/icon/src/icons.d.ts +2 -1
  25. package/dist-types/components/icon/src/icons.d.ts.map +1 -1
  26. package/dist-types/components/icon/test/hammer.svg.d.ts +1 -1
  27. package/dist-types/components/icon/test/hammer.svg.d.ts.map +1 -1
  28. package/dist-types/components/icon/test/heart.svg.d.ts +1 -1
  29. package/dist-types/components/icon/test/heart.svg.d.ts.map +1 -1
  30. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts +4 -4
  31. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
  32. package/dist-types/components/listbox/src/ListboxMixin.d.ts.map +1 -1
  33. package/dist-types/components/localize/src/getLocalizeManager.d.ts +2 -58
  34. package/dist-types/components/localize/src/getLocalizeManager.d.ts.map +1 -1
  35. package/dist-types/components/localize/test/getLocalizeManager.test.d.ts +4 -1
  36. package/dist-types/components/localize/test/getLocalizeManager.test.d.ts.map +1 -1
  37. package/dist-types/components/localize/test/side-effect-free-entrypoint.test.d.ts +4 -0
  38. package/dist-types/components/localize/test/side-effect-free-entrypoint.test.d.ts.map +1 -1
  39. package/dist-types/components/overlays/src/ArrowMixin.d.ts.map +1 -1
  40. package/dist-types/components/overlays/src/singleton.d.ts.map +1 -1
  41. package/dist-types/tsconfig.tsbuildinfo +1 -1
  42. package/docs/components/accordion/index.md +1 -1
  43. package/docs/components/accordion/overview.md +1 -1
  44. package/docs/components/accordion/reference.md +1 -1
  45. package/docs/components/accordion/use-cases.md +1 -1
  46. package/docs/components/button/{extensions/bootstrap-button.mjs → assets/bootstrap-button.js} +10 -5
  47. package/docs/components/button/examples.md +1 -1
  48. package/docs/components/button/extensions.md +2 -2
  49. package/docs/components/button/index.md +2 -2
  50. package/docs/components/button/overview.md +4 -4
  51. package/docs/components/button/use-cases.md +6 -6
  52. package/docs/components/calendar/index.md +1 -1
  53. package/docs/components/calendar/overview.md +1 -1
  54. package/docs/components/calendar/use-cases.md +2 -2
  55. package/docs/components/checkbox-group/index.md +1 -1
  56. package/docs/components/checkbox-group/overview.md +3 -3
  57. package/docs/components/checkbox-group/use-cases.md +1 -1
  58. package/docs/components/collapsible/examples.md +1 -1
  59. package/docs/components/collapsible/index.md +1 -1
  60. package/docs/components/collapsible/overview.md +2 -2
  61. package/docs/components/collapsible/use-cases.md +1 -1
  62. package/docs/components/combobox/extensions.md +2 -1
  63. package/docs/components/combobox/index.md +1 -1
  64. package/docs/components/combobox/overview.md +2 -2
  65. package/docs/components/combobox/use-cases.md +2 -2
  66. package/docs/components/dialog/index.md +1 -1
  67. package/docs/components/dialog/overview.md +2 -2
  68. package/docs/components/dialog/use-cases.md +1 -1
  69. package/docs/components/drawer/index.md +1 -1
  70. package/docs/components/drawer/overview.md +1 -1
  71. package/docs/components/drawer/use-cases.md +1 -1
  72. package/docs/components/fieldset/index.md +1 -1
  73. package/docs/components/fieldset/overview.md +6 -6
  74. package/docs/components/fieldset/use-cases.md +1 -1
  75. package/docs/components/form/index.md +1 -1
  76. package/docs/components/form/overview.md +4 -4
  77. package/docs/components/form/use-cases.md +3 -3
  78. package/docs/components/icon/index.md +1 -1
  79. package/docs/components/icon/overview.md +1 -1
  80. package/docs/components/icon/use-cases.md +2 -15
  81. package/docs/components/index.md +1 -1
  82. package/docs/components/input/index.md +1 -1
  83. package/docs/components/input/overview.md +2 -2
  84. package/docs/components/input/use-cases.md +1 -1
  85. package/docs/components/input-amount/index.md +1 -1
  86. package/docs/components/input-amount/overview.md +4 -4
  87. package/docs/components/input-amount/use-cases.md +1 -1
  88. package/docs/components/input-amount-dropdown/index.md +1 -1
  89. package/docs/components/input-amount-dropdown/use-cases.md +1 -1
  90. package/docs/components/input-date/index.md +1 -1
  91. package/docs/components/input-date/overview.md +4 -4
  92. package/docs/components/input-date/use-cases.md +1 -1
  93. package/docs/components/input-datepicker/index.md +1 -1
  94. package/docs/components/input-datepicker/overview.md +6 -6
  95. package/docs/components/input-datepicker/use-cases.md +1 -1
  96. package/docs/components/input-email/index.md +1 -1
  97. package/docs/components/input-email/overview.md +3 -3
  98. package/docs/components/input-email/use-cases.md +1 -1
  99. package/docs/components/input-file/index.md +1 -1
  100. package/docs/components/input-file/overview.md +2 -2
  101. package/docs/components/input-file/use-cases.md +1 -1
  102. package/docs/components/input-iban/index.md +1 -1
  103. package/docs/components/input-iban/overview.md +3 -3
  104. package/docs/components/input-iban/use-cases.md +1 -1
  105. package/docs/components/input-range/index.md +1 -1
  106. package/docs/components/input-range/overview.md +3 -3
  107. package/docs/components/input-range/use-cases.md +1 -1
  108. package/docs/components/input-stepper/api-table.md +2 -0
  109. package/docs/components/input-stepper/index.md +1 -1
  110. package/docs/components/input-stepper/overview.md +2 -2
  111. package/docs/components/input-stepper/use-cases.md +1 -1
  112. package/docs/components/input-tel/index.md +1 -1
  113. package/docs/components/input-tel/overview.md +2 -2
  114. package/docs/components/input-tel/use-cases.md +7 -7
  115. package/docs/components/input-tel-dropdown/extensions.md +1 -1
  116. package/docs/components/input-tel-dropdown/index.md +1 -1
  117. package/docs/components/input-tel-dropdown/overview.md +2 -2
  118. package/docs/components/input-tel-dropdown/use-cases.md +1 -1
  119. package/docs/components/listbox/index.md +1 -1
  120. package/docs/components/listbox/overview.md +1 -1
  121. package/docs/components/listbox/use-cases.md +2 -2
  122. package/docs/components/pagination/index.md +1 -1
  123. package/docs/components/pagination/overview.md +1 -1
  124. package/docs/components/pagination/use-cases.md +1 -1
  125. package/docs/components/progress-indicator/examples.md +1 -1
  126. package/docs/components/progress-indicator/index.md +1 -1
  127. package/docs/components/progress-indicator/overview.md +1 -1
  128. package/docs/components/radio-group/index.md +1 -1
  129. package/docs/components/radio-group/overview.md +4 -4
  130. package/docs/components/radio-group/use-cases.md +1 -1
  131. package/docs/components/select/index.md +1 -1
  132. package/docs/components/select/overview.md +1 -1
  133. package/docs/components/select/use-cases.md +2 -2
  134. package/docs/components/select-rich/examples.md +1 -1
  135. package/docs/components/select-rich/index.md +1 -1
  136. package/docs/components/select-rich/overview.md +1 -1
  137. package/docs/components/select-rich/use-cases.md +3 -3
  138. package/docs/components/steps/index.md +1 -1
  139. package/docs/components/steps/overview.md +1 -1
  140. package/docs/components/steps/use-cases.md +1 -1
  141. package/docs/components/switch/index.md +1 -1
  142. package/docs/components/switch/overview.md +1 -1
  143. package/docs/components/switch/reference.md +1 -1
  144. package/docs/components/switch/use-cases.md +1 -1
  145. package/docs/components/tabs/examples.md +2 -2
  146. package/docs/components/tabs/index.md +1 -1
  147. package/docs/components/tabs/overview.md +1 -1
  148. package/docs/components/tabs/use-cases.md +1 -1
  149. package/docs/components/textarea/index.md +1 -1
  150. package/docs/components/textarea/overview.md +1 -1
  151. package/docs/components/textarea/use-cases.md +1 -1
  152. package/docs/components/tooltip/examples.md +1 -1
  153. package/docs/components/tooltip/index.md +1 -1
  154. package/docs/components/tooltip/overview.md +1 -1
  155. package/docs/components/tooltip/use-cases.md +1 -1
  156. package/docs/fundamentals/index.md +4 -4
  157. package/docs/fundamentals/node-tools/babel-plugin-extend-docs/index.md +1 -1
  158. package/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md +1 -1
  159. package/docs/fundamentals/node-tools/index.md +1 -1
  160. package/docs/fundamentals/node-tools/providence-analytics/index.md +1 -1
  161. package/docs/fundamentals/node-tools/providence-analytics/overview.md +1 -1
  162. package/docs/fundamentals/node-tools/publish-docs/index.md +1 -1
  163. package/docs/fundamentals/node-tools/publish-docs/overview.md +4 -4
  164. package/docs/fundamentals/node-tools/remark-extend/index.md +1 -1
  165. package/docs/fundamentals/node-tools/remark-extend/overview.md +1 -1
  166. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/index.md +1 -1
  167. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +3 -3
  168. package/docs/fundamentals/rationales/TypeScript.md +1 -1
  169. package/docs/fundamentals/rationales/accessibility.md +2 -2
  170. package/docs/fundamentals/rationales/index.md +1 -1
  171. package/docs/fundamentals/rationales/side-effects.md +1 -1
  172. package/docs/fundamentals/rationales/versioning.md +1 -1
  173. package/docs/fundamentals/systems/core/SlotMixin.md +2 -2
  174. package/docs/fundamentals/systems/core/index.md +1 -1
  175. package/docs/fundamentals/systems/core/overview.md +2 -2
  176. package/docs/fundamentals/systems/form/formatting-and-parsing.md +5 -5
  177. package/docs/fundamentals/systems/form/index.md +1 -1
  178. package/docs/fundamentals/systems/form/interaction-states.md +1 -1
  179. package/docs/fundamentals/systems/form/model-value.md +2 -2
  180. package/docs/fundamentals/systems/form/overview.md +29 -29
  181. package/docs/fundamentals/systems/form/styling.md +1 -1
  182. package/docs/fundamentals/systems/form/use-cases.md +1 -1
  183. package/docs/fundamentals/systems/form/validate.md +3 -3
  184. package/docs/fundamentals/systems/icon/index.md +1 -1
  185. package/docs/fundamentals/systems/icon/overview.md +1 -1
  186. package/docs/fundamentals/systems/index.md +1 -1
  187. package/docs/fundamentals/systems/localize/api-table.md +3 -0
  188. package/docs/fundamentals/systems/localize/dates.md +1 -1
  189. package/docs/fundamentals/systems/localize/index.md +1 -1
  190. package/docs/fundamentals/systems/localize/numbers.md +1 -1
  191. package/docs/fundamentals/systems/localize/overview.md +5 -5
  192. package/docs/fundamentals/systems/localize/rationale.md +1 -1
  193. package/docs/fundamentals/systems/localize/text.md +5 -4
  194. package/docs/fundamentals/systems/localize/use-cases.md +1 -1
  195. package/docs/fundamentals/systems/overlays/_configuration-positioning.md +3 -3
  196. package/docs/fundamentals/systems/overlays/_edge-cases.md +3 -3
  197. package/docs/fundamentals/systems/overlays/api-table.md +3 -0
  198. package/docs/fundamentals/systems/overlays/assets/demo-overlay-positioning.mjs +1 -1
  199. package/docs/fundamentals/systems/overlays/configuration.md +5 -5
  200. package/docs/fundamentals/systems/overlays/index.md +1 -1
  201. package/docs/fundamentals/systems/overlays/overview.md +6 -6
  202. package/docs/fundamentals/systems/overlays/rationale.md +1 -1
  203. package/docs/fundamentals/systems/overlays/use-cases.md +6 -6
  204. package/docs/fundamentals/tools/ajax/index.md +1 -1
  205. package/docs/fundamentals/tools/ajax/overview.md +2 -2
  206. package/docs/fundamentals/tools/ajax/use-cases.md +3 -3
  207. package/docs/fundamentals/tools/helpers/action-logger.md +1 -1
  208. package/docs/fundamentals/tools/helpers/index.md +2 -2
  209. package/docs/fundamentals/tools/helpers/overview.md +2 -2
  210. package/docs/fundamentals/tools/index.md +1 -1
  211. package/docs/fundamentals/tools/singleton-manager/example-complex/index.md +1 -1
  212. package/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js +4 -4
  213. package/docs/fundamentals/tools/singleton-manager/example-fail/index.md +2 -2
  214. package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-a/page-a.js → page-c/page-c.js} +2 -2
  215. package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b/page-b.js → page-d/page-d.js} +2 -2
  216. package/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js +4 -4
  217. package/docs/fundamentals/tools/singleton-manager/example-success/index.md +2 -2
  218. package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-a/page-a.js → page-e/page-e.js} +2 -3
  219. package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b/page-b.js → page-f/page-f.js} +2 -2
  220. package/docs/fundamentals/tools/singleton-manager/index.md +2 -2
  221. package/docs/fundamentals/tools/singleton-manager/overview.md +5 -5
  222. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  223. package/docs/guides/how-to/create-a-form.md +4 -4
  224. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  225. package/docs/guides/index.md +8 -8
  226. package/docs/guides/principles/index.md +5 -5
  227. package/docs/guides/principles/styling.md +1 -1
  228. package/package.json +2 -2
  229. /package/docs/fundamentals/systems/overlays/assets/{applyDemoOverlayStyles.mjs → applyDemoOverlayStyles.js} +0 -0
  230. /package/docs/fundamentals/systems/overlays/assets/{demo-el-using-overlaymixin.mjs → demo-el-using-overlaymixin.js} +0 -0
  231. /package/docs/fundamentals/systems/overlays/assets/{demo-overlay-backdrop.mjs → demo-overlay-backdrop.js} +0 -0
  232. /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/index.js +0 -0
  233. /package/docs/fundamentals/tools/singleton-manager/example-fail/node_modules/{page-b → page-d}/node_modules/overlays/instance.js +0 -0
  234. /package/docs/fundamentals/tools/singleton-manager/example-success/node_modules/{page-b → page-f}/node_modules/overlays/index.js +0 -0
  235. /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 >> Core
12
12
  ---
13
13
 
14
- # Systems >> Core >> SlotMixin ||20
14
+ # Core: SlotMixin
15
15
 
16
16
  The SlotMixin is made for solving accessibility challenges that inherently come with the usage of shadow dom.
17
17
  Until [AOM](https://wicg.github.io/aom/explainer.html) is in place, it is not possible to create relations between different shadow doms.
@@ -165,4 +165,4 @@ This will make sure that the slot provided by the user always takes precedence a
165
165
 
166
166
  ### Default slot
167
167
 
168
- As can be seen in the example of [SlotFunctionResults](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/core/#slotfunctionresults), '' can be used to add content to the default slot
168
+ As can be seen in the example of [SlotFunctionResults](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/core/#slotfunctionresults), '' can be used to add content to the default slot
@@ -10,6 +10,6 @@ eleventyNavigation:
10
10
  parent: Systems
11
11
  ---
12
12
 
13
- # Systems >> Core ||10
13
+ # Systems: Core
14
14
 
15
15
  -> go to Overview
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Core
12
12
  ---
13
13
 
14
- # Systems >> Core >> Overview ||10
14
+ # Core: Overview
15
15
 
16
16
  The core package is mostly for in-depth usage.
17
17
  It handles the version of `lit-element` and `lit-html`.
@@ -28,7 +28,7 @@ import { LitElement, html, render } from 'lit-element';
28
28
 
29
29
  ## Features
30
30
 
31
- - [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/core/#deduping-of-mixins)
31
+ - [function to deduplicate mixins (dedupeMixin)](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/core/#deduping-of-mixins)
32
32
  - Mixin to handle disabled (DisabledMixin)
33
33
  - Mixin to handle disabled AND tabIndex (DisabledWithTabIndexMixin)
34
34
  - Mixin to manage auto-generated needed slot elements in light dom (SlotMixin)
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Form
12
12
  ---
13
13
 
14
- # Systems >> Form >> Formatting and Parsing ||21
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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-amount/overview.md).
39
+ > For an actual amount input, check out [lion-input-amount](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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
- ![Standard flow](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/assets/FormatMixinDiagram-1.svg 'Standard flow')
246
+ ![Standard flow](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/assets/FormatMixinDiagram-1.svg 'Standard flow')
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
- ![Unparseable flow](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/assets/FormatMixinDiagram-2.svg 'Unparseable flow')
252
+ ![Unparseable flow](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/assets/FormatMixinDiagram-2.svg 'Unparseable flow')
253
253
 
254
254
  ### Imperative / programmatic flow
255
255
 
256
256
  Where the developer sets the modelValue of the input programmatically:
257
257
 
258
- ![Imperative flow](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/assets/FormatMixinDiagram-3.svg 'Imperative flow')
258
+ ![Imperative flow](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/assets/FormatMixinDiagram-3.svg 'Imperative flow')
@@ -10,6 +10,6 @@ eleventyNavigation:
10
10
  parent: Systems
11
11
  ---
12
12
 
13
- # Systems >> Form ||20
13
+ # Systems: Form
14
14
 
15
15
  -> go to Overview
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Form
12
12
  ---
13
13
 
14
- # Systems >> Form >> Interaction States ||22
14
+ # Form: Interaction States
15
15
 
16
16
  ```js script
17
17
  import { html, render } from '@mdjs/mdjs-preview';
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Form
12
12
  ---
13
13
 
14
- # Systems >> Form >> ModelValue ||20
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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/formatting-and-parsing.md)
37
+ For more information about parsing and the Unparseable type, see [Formatting and Parsing](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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
- # Systems >> Form >> Overview ||10
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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/formatting-and-parsing.md) of view values.
37
- - Advanced [validation](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/validate.md) possibilities.
38
- - Creation of advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/interaction-states.md).
36
+ - [formatting/parsing/serializing](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/formatting-and-parsing.md) of view values.
37
+ - Advanced [validation](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/validate.md) possibilities.
38
+ - Creation of advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input/overview.md), a wrapper for `<input>`.
48
- - [LionTextarea](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/textarea/overview.md), a wrapper for `<textarea>`.
49
- - [LionSelect](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/select/overview.md), a wrapper for `<select>`.
47
+ - [LionInput](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input/overview.md), a wrapper for `<input>`.
48
+ - [LionTextarea](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/textarea/overview.md), a wrapper for `<textarea>`.
49
+ - [LionSelect](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/guides/how-to/create-a-custom-field.md) should be created. One could think of components like:
53
+ Whenever a native form control doesn't exist or is not sufficient, a [custom form field](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/combobox/overview.md), a custom implementation of a combobox.
56
- - [LionDate](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-date/overview.md), an alternative for `<input type="date">`.
57
- - [LionDatepicker](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/listbox/overview.md), a custom implementation of a listbox.
59
- - [LionInputAmount](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-amount/overview.md), an alternative for `<input type="number">` special for amounts.
60
- - [LionInputEmail](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-email/overview.md), an alternative for `<input type="email">`.
61
- - [LionInputIban](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-iban/overview.md), an ING specific for an input with IBAN numbers.
62
- - [LionInputRange](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-range/overview.md), an alternative for `<input type="range">`.
63
- - [LionInputStepper](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/input-stepper/overview.md), an alternative for `<input type="number">`.
64
- - [LionSelectRich](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/select-rich/overview.md), an alternative for `<select>` with multiline options.
55
+ - [LionCombobox](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/combobox/overview.md), a custom implementation of a combobox.
56
+ - [LionDate](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input-date/overview.md), an alternative for `<input type="date">`.
57
+ - [LionDatepicker](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/listbox/overview.md), a custom implementation of a listbox.
59
+ - [LionInputAmount](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input-amount/overview.md), an alternative for `<input type="number">` special for amounts.
60
+ - [LionInputEmail](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input-email/overview.md), an alternative for `<input type="email">`.
61
+ - [LionInputIban](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input-iban/overview.md), an ING specific for an input with IBAN numbers.
62
+ - [LionInputRange](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input-range/overview.md), an alternative for `<input type="range">`.
63
+ - [LionInputStepper](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/input-stepper/overview.md), an alternative for `<input type="number">`.
64
+ - [LionSelectRich](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/checkbox-group/overview.md), a wrapper for `<input type="checkbox">`.
70
+ - [LionCheckbox](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/radio-group/overview.md), a wrapper for `<input type="radio">`.
73
- - [LionSwitch](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/switch/overview.md), a custom implementation of a switch.
72
+ - [LionRadio](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/radio-group/overview.md), a wrapper for `<input type="radio">`.
73
+ - [LionSwitch](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/fieldset/overview.md), a wrapper around multiple input fields or other fieldsets.
86
- - [LionForm](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/form/overview.md), enhances the functionality of the native `<form>` component.
87
- - [LionCheckboxGroup](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/checkbox-group/overview.md), a wrapper component for multiple checkboxes.
88
- - [LionRadioGroup](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/radio-group/overview.md), a wrapper component for multiple radio inputs.
85
+ - [LionFieldset](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/fieldset/overview.md), a wrapper around multiple input fields or other fieldsets.
86
+ - [LionForm](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/form/overview.md), enhances the functionality of the native `<form>` component.
87
+ - [LionCheckboxGroup](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/components/checkbox-group/overview.md), a wrapper component for multiple checkboxes.
88
+ - [LionRadioGroup](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/model-value.md)
93
- - [Formatting and parsing](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/formatting-and-parsing.md)
94
- - [Interaction states](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/interaction-states.md)
95
- - [Validation System](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/validate.md)
92
+ - [Model Value](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/model-value.md)
93
+ - [Formatting and parsing](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/formatting-and-parsing.md)
94
+ - [Interaction states](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/interaction-states.md)
95
+ - [Validation System](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/form/validate.md)
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Form
12
12
  ---
13
13
 
14
- # Systems >> Form >> Styling ||40
14
+ # Form: Styling
15
15
 
16
16
  ```js script
17
17
  import { html } from '@mdjs/mdjs-preview';
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Form
12
12
  ---
13
13
 
14
- # Systems >> Form >> Use Cases ||50
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
- # Systems >> Form >> Validate ||30
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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/interaction-states.md),
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/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/form/#override-fieldname) for more information.
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/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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
 
@@ -10,6 +10,6 @@ eleventyNavigation:
10
10
  parent: Systems
11
11
  ---
12
12
 
13
- # Systems >> Icon ||40
13
+ # Systems: Icon
14
14
 
15
15
  -> go to Overview
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Icon
12
12
  ---
13
13
 
14
- # Systems >> Icon >> Overview ||10
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
@@ -8,4 +8,4 @@ eleventyNavigation:
8
8
  order: 20
9
9
  ---
10
10
 
11
- # Systems ||20
11
+ # Systems
@@ -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
- # Systems >> Localize >> Format Dates ||40
14
+ # Localize: Format Dates
15
15
 
16
16
  ## Features
17
17
 
@@ -10,6 +10,6 @@ eleventyNavigation:
10
10
  parent: Systems
11
11
  ---
12
12
 
13
- # Systems >> Localize ||30
13
+ # Systems: Localize
14
14
 
15
15
  -> go to Overview
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Localize
12
12
  ---
13
13
 
14
- # Systems >> Localize >> Format Numbers ||30
14
+ # Localize: Format Numbers
15
15
 
16
16
  ## Features
17
17
 
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Localize
12
12
  ---
13
13
 
14
- # Systems >> Localize >> Overview ||10
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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/localize/use-cases.md).
25
+ Further examples and a more in depth description can be found at the [Use Cases Page](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/localize/text.md) | Load and translate text in multiple languages |
32
- | [Format Numbers](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/localize/numbers.md) | Format numbers in multiple languages |
33
- | [Format Dates](https://github.com/ing-bank/lion/blob/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/localize/dates.md) | Format dates in multiple languages |
31
+ | [Translate Text](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/localize/text.md) | Load and translate text in multiple languages |
32
+ | [Format Numbers](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/docs/fundamentals/systems/localize/numbers.md) | Format numbers in multiple languages |
33
+ | [Format Dates](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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
- # Systems >> Localize >> Rationale ||60
14
+ # Localize: Rationale
15
15
 
16
16
  ## Requirements
17
17
 
@@ -11,7 +11,7 @@ eleventyNavigation:
11
11
  parent: Systems >> Localize
12
12
  ---
13
13
 
14
- # Systems >> Localize >> Translate Text ||20
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
- .loadNamespace({
40
- 'lit-html-example': locale => import(`./assets/${locale}.js`),
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
- # Systems >> Localize >> Use Cases ||50
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
- # Systems >> Overlays >> Configuration >> Positioning ||40
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.mjs';
22
- import './assets/applyDemoOverlayStyles.mjs';
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
- # Systems >> Overlays >> Edge cases ||10
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.mjs';
21
- import './assets/applyDemoOverlayStyles.mjs';
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.mjs';
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
- # Systems >> Overlays >> Configuration ||40
14
+ # Overlays: Configuration
15
15
 
16
16
  ```js script
17
17
  import { html } from '@mdjs/mdjs-preview';
18
- import './assets/demo-el-using-overlaymixin.mjs';
19
- import './assets/applyDemoOverlayStyles.mjs';
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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/fundamentals/systems/overlays/rationale.md) there are only two official types of overlays: dialogs and tooltips. And their main differences are:
115
+ As specified in the [overlay rationale](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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/b80c6f41b02bf4dbee5f93ff16a451507cc11b04/docs/components/tooltip/overview.md), where an arrow is set by default.
446
+ > An example implementation can be found in [lion-tooltip](https://github.com/ing-bank/lion/blob/bfc0ad112f12d036e943829a2bdeeae9e0cac480/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:
@@ -10,6 +10,6 @@ eleventyNavigation:
10
10
  parent: Systems
11
11
  ---
12
12
 
13
- # Systems >> Overlays ||40
13
+ # Systems: Overlays
14
14
 
15
15
  -> go to Overview