@lion/ui 0.7.2 → 0.7.4

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 (325) hide show
  1. package/components/button/test-suites/LionButtonReset.suite.js +7 -9
  2. package/components/calendar/test/lion-calendar.test.js +26 -30
  3. package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +3 -0
  4. package/components/combobox/src/LionCombobox.js +35 -22
  5. package/components/combobox/test/lion-combobox.test.js +141 -98
  6. package/components/core/src/SlotMixin.js +7 -1
  7. package/components/form/test/lion-form.test.js +4 -4
  8. package/components/form-core/src/FormControlMixin.js +0 -9
  9. package/components/form-core/src/localizeNamespaceLoader.js +75 -0
  10. package/components/form-core/src/registration/FormRegisteringMixin.js +28 -0
  11. package/components/form-core/src/validate/LionValidationFeedback.js +36 -2
  12. package/components/form-core/test/validate/lion-validation-feedback.test.js +30 -2
  13. package/components/form-core/test-suites/FormRegistrationMixins.suite.js +17 -0
  14. package/components/form-core/test-suites/ValidateMixin.suite.js +2 -1
  15. package/components/form-core/test-suites/form-group/FormGroupMixin.suite.js +18 -18
  16. package/components/form-core/translations/bg-BG.js +5 -0
  17. package/components/form-core/translations/bg.js +6 -0
  18. package/components/form-core/translations/cs-CZ.js +5 -0
  19. package/components/form-core/translations/cs.js +6 -0
  20. package/components/form-core/translations/de-DE.js +5 -0
  21. package/components/form-core/translations/de.js +6 -0
  22. package/components/form-core/translations/en-AU.js +5 -0
  23. package/components/form-core/translations/en-GB.js +5 -0
  24. package/components/form-core/translations/en-US.js +5 -0
  25. package/components/form-core/translations/en.js +6 -0
  26. package/components/form-core/translations/es-ES.js +5 -0
  27. package/components/form-core/translations/es.js +6 -0
  28. package/components/form-core/translations/fr-BE.js +5 -0
  29. package/components/form-core/translations/fr-FR.js +5 -0
  30. package/components/form-core/translations/fr.js +6 -0
  31. package/components/form-core/translations/hu-HU.js +5 -0
  32. package/components/form-core/translations/hu.js +6 -0
  33. package/components/form-core/translations/it-IT.js +5 -0
  34. package/components/form-core/translations/it.js +6 -0
  35. package/components/form-core/translations/nl-BE.js +5 -0
  36. package/components/form-core/translations/nl-NL.js +5 -0
  37. package/components/form-core/translations/nl.js +6 -0
  38. package/components/form-core/translations/pl-PL.js +5 -0
  39. package/components/form-core/translations/pl.js +6 -0
  40. package/components/form-core/translations/ro-RO.js +5 -0
  41. package/components/form-core/translations/ro.js +6 -0
  42. package/components/form-core/translations/ru-RU.js +5 -0
  43. package/components/form-core/translations/ru.js +6 -0
  44. package/components/form-core/translations/sk-SK.js +5 -0
  45. package/components/form-core/translations/sk.js +6 -0
  46. package/components/form-core/translations/uk-UA.js +5 -0
  47. package/components/form-core/translations/uk.js +6 -0
  48. package/components/form-core/translations/zh.js +6 -0
  49. package/components/form-core/types/FormControlMixinTypes.ts +0 -4
  50. package/components/form-core/types/registration/FormRegisteringMixinTypes.ts +17 -4
  51. package/components/form-integrations/test/dialog-integrations.test.js +6 -4
  52. package/components/helpers/src/SbActionLogger.js +11 -2
  53. package/components/icon/test/lion-icon.test.js +12 -14
  54. package/components/input-amount/test/lion-input-amount.test.js +13 -14
  55. package/components/input-datepicker/test/lion-input-datepicker.test.js +4 -4
  56. package/components/input-file/src/LionInputFile.js +88 -30
  57. package/components/input-file/test/lion-input-file.test.js +105 -9
  58. package/components/input-file/test/lion-selected-file-list.test.js +2 -1
  59. package/components/input-file/translations/bg.js +3 -0
  60. package/components/input-file/translations/cs.js +3 -0
  61. package/components/input-file/translations/de.js +3 -0
  62. package/components/input-file/translations/en.js +3 -0
  63. package/components/input-file/translations/es.js +3 -0
  64. package/components/input-file/translations/fr.js +3 -0
  65. package/components/input-file/translations/hu.js +3 -0
  66. package/components/input-file/translations/it.js +3 -0
  67. package/components/input-file/translations/nl.js +3 -0
  68. package/components/input-file/translations/pl.js +3 -0
  69. package/components/input-file/translations/ro.js +3 -0
  70. package/components/input-file/translations/ru.js +3 -0
  71. package/components/input-file/translations/sk.js +3 -0
  72. package/components/input-file/translations/uk.js +3 -0
  73. package/components/input-file/translations/zh.js +3 -0
  74. package/components/input-tel-dropdown/test/LionInputTelDropdown.test.js +23 -23
  75. package/components/listbox/test-suites/ListboxMixin.suite.js +10 -3
  76. package/components/localize/src/date/utils/normalizeIntlDate.js +13 -2
  77. package/components/overlays/src/OverlayMixin.js +8 -1
  78. package/components/progress-indicator/test/lion-progress-indicator.test.js +42 -46
  79. package/components/select-rich/test/lion-select-rich.test.js +6 -8
  80. package/components/steps/test/lion-step.test.js +5 -7
  81. package/components/switch/src/LionSwitch.js +10 -0
  82. package/components/switch/test/lion-switch.test.js +5 -7
  83. package/components/tabs/src/LionTabs.js +10 -0
  84. package/components/tabs/test/lion-tabs.test.js +49 -38
  85. package/custom-elements.json +83073 -76992
  86. package/dist-types/components/button/test-suites/LionButtonReset.suite.d.ts.map +1 -1
  87. package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
  88. package/dist-types/components/combobox/src/LionCombobox.d.ts +12 -8
  89. package/dist-types/components/combobox/src/LionCombobox.d.ts.map +1 -1
  90. package/dist-types/components/core/src/SlotMixin.d.ts.map +1 -1
  91. package/dist-types/components/form-core/src/FormControlMixin.d.ts.map +1 -1
  92. package/dist-types/components/form-core/src/LionField.d.ts +1 -1
  93. package/dist-types/components/form-core/src/localizeNamespaceLoader.d.ts +2 -0
  94. package/dist-types/components/form-core/src/localizeNamespaceLoader.d.ts.map +1 -0
  95. package/dist-types/components/form-core/src/registration/FormRegisteringMixin.d.ts.map +1 -1
  96. package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts +5 -6
  97. package/dist-types/components/form-core/src/validate/LionValidationFeedback.d.ts.map +1 -1
  98. package/dist-types/components/form-core/test-suites/FormRegistrationMixins.suite.d.ts.map +1 -1
  99. package/dist-types/components/form-core/test-suites/ValidateMixin.suite.d.ts.map +1 -1
  100. package/dist-types/components/form-core/translations/bg-BG.d.ts +8 -0
  101. package/dist-types/components/form-core/translations/bg-BG.d.ts.map +1 -0
  102. package/dist-types/components/form-core/translations/bg.d.ts +8 -0
  103. package/dist-types/components/form-core/translations/bg.d.ts.map +1 -0
  104. package/dist-types/components/form-core/translations/cs-CZ.d.ts +8 -0
  105. package/dist-types/components/form-core/translations/cs-CZ.d.ts.map +1 -0
  106. package/dist-types/components/form-core/translations/cs.d.ts +8 -0
  107. package/dist-types/components/form-core/translations/cs.d.ts.map +1 -0
  108. package/dist-types/components/form-core/translations/de-DE.d.ts +8 -0
  109. package/dist-types/components/form-core/translations/de-DE.d.ts.map +1 -0
  110. package/dist-types/components/form-core/translations/de.d.ts +8 -0
  111. package/dist-types/components/form-core/translations/de.d.ts.map +1 -0
  112. package/dist-types/components/form-core/translations/en-AU.d.ts +8 -0
  113. package/dist-types/components/form-core/translations/en-AU.d.ts.map +1 -0
  114. package/dist-types/components/form-core/translations/en-GB.d.ts +8 -0
  115. package/dist-types/components/form-core/translations/en-GB.d.ts.map +1 -0
  116. package/dist-types/components/form-core/translations/en-US.d.ts +8 -0
  117. package/dist-types/components/form-core/translations/en-US.d.ts.map +1 -0
  118. package/dist-types/components/form-core/translations/en.d.ts +8 -0
  119. package/dist-types/components/form-core/translations/en.d.ts.map +1 -0
  120. package/dist-types/components/form-core/translations/es-ES.d.ts +8 -0
  121. package/dist-types/components/form-core/translations/es-ES.d.ts.map +1 -0
  122. package/dist-types/components/form-core/translations/es.d.ts +8 -0
  123. package/dist-types/components/form-core/translations/es.d.ts.map +1 -0
  124. package/dist-types/components/form-core/translations/fr-BE.d.ts +8 -0
  125. package/dist-types/components/form-core/translations/fr-BE.d.ts.map +1 -0
  126. package/dist-types/components/form-core/translations/fr-FR.d.ts +8 -0
  127. package/dist-types/components/form-core/translations/fr-FR.d.ts.map +1 -0
  128. package/dist-types/components/form-core/translations/fr.d.ts +8 -0
  129. package/dist-types/components/form-core/translations/fr.d.ts.map +1 -0
  130. package/dist-types/components/form-core/translations/hu-HU.d.ts +8 -0
  131. package/dist-types/components/form-core/translations/hu-HU.d.ts.map +1 -0
  132. package/dist-types/components/form-core/translations/hu.d.ts +8 -0
  133. package/dist-types/components/form-core/translations/hu.d.ts.map +1 -0
  134. package/dist-types/components/form-core/translations/it-IT.d.ts +8 -0
  135. package/dist-types/components/form-core/translations/it-IT.d.ts.map +1 -0
  136. package/dist-types/components/form-core/translations/it.d.ts +8 -0
  137. package/dist-types/components/form-core/translations/it.d.ts.map +1 -0
  138. package/dist-types/components/form-core/translations/nl-BE.d.ts +8 -0
  139. package/dist-types/components/form-core/translations/nl-BE.d.ts.map +1 -0
  140. package/dist-types/components/form-core/translations/nl-NL.d.ts +8 -0
  141. package/dist-types/components/form-core/translations/nl-NL.d.ts.map +1 -0
  142. package/dist-types/components/form-core/translations/nl.d.ts +8 -0
  143. package/dist-types/components/form-core/translations/nl.d.ts.map +1 -0
  144. package/dist-types/components/form-core/translations/pl-PL.d.ts +8 -0
  145. package/dist-types/components/form-core/translations/pl-PL.d.ts.map +1 -0
  146. package/dist-types/components/form-core/translations/pl.d.ts +8 -0
  147. package/dist-types/components/form-core/translations/pl.d.ts.map +1 -0
  148. package/dist-types/components/form-core/translations/ro-RO.d.ts +8 -0
  149. package/dist-types/components/form-core/translations/ro-RO.d.ts.map +1 -0
  150. package/dist-types/components/form-core/translations/ro.d.ts +8 -0
  151. package/dist-types/components/form-core/translations/ro.d.ts.map +1 -0
  152. package/dist-types/components/form-core/translations/ru-RU.d.ts +8 -0
  153. package/dist-types/components/form-core/translations/ru-RU.d.ts.map +1 -0
  154. package/dist-types/components/form-core/translations/ru.d.ts +8 -0
  155. package/dist-types/components/form-core/translations/ru.d.ts.map +1 -0
  156. package/dist-types/components/form-core/translations/sk-SK.d.ts +8 -0
  157. package/dist-types/components/form-core/translations/sk-SK.d.ts.map +1 -0
  158. package/dist-types/components/form-core/translations/sk.d.ts +8 -0
  159. package/dist-types/components/form-core/translations/sk.d.ts.map +1 -0
  160. package/dist-types/components/form-core/translations/uk-UA.d.ts +8 -0
  161. package/dist-types/components/form-core/translations/uk-UA.d.ts.map +1 -0
  162. package/dist-types/components/form-core/translations/uk.d.ts +8 -0
  163. package/dist-types/components/form-core/translations/uk.d.ts.map +1 -0
  164. package/dist-types/components/form-core/translations/zh.d.ts +8 -0
  165. package/dist-types/components/form-core/translations/zh.d.ts.map +1 -0
  166. package/dist-types/components/form-core/types/FormControlMixinTypes.d.ts +0 -4
  167. package/dist-types/components/form-core/types/FormControlMixinTypes.d.ts.map +1 -1
  168. package/dist-types/components/form-core/types/registration/FormRegisteringMixinTypes.d.ts +14 -4
  169. package/dist-types/components/form-core/types/registration/FormRegisteringMixinTypes.d.ts.map +1 -1
  170. package/dist-types/components/helpers/src/SbActionLogger.d.ts.map +1 -1
  171. package/dist-types/components/input-file/src/LionInputFile.d.ts +12 -6
  172. package/dist-types/components/input-file/src/LionInputFile.d.ts.map +1 -1
  173. package/dist-types/components/input-file/translations/bg-BG.d.ts +3 -0
  174. package/dist-types/components/input-file/translations/bg.d.ts +3 -0
  175. package/dist-types/components/input-file/translations/cs-CZ.d.ts +3 -0
  176. package/dist-types/components/input-file/translations/cs.d.ts +3 -0
  177. package/dist-types/components/input-file/translations/de-DE.d.ts +3 -0
  178. package/dist-types/components/input-file/translations/de.d.ts +3 -0
  179. package/dist-types/components/input-file/translations/en-AU.d.ts +3 -0
  180. package/dist-types/components/input-file/translations/en-GB.d.ts +3 -0
  181. package/dist-types/components/input-file/translations/en-PH.d.ts +3 -0
  182. package/dist-types/components/input-file/translations/en-US.d.ts +3 -0
  183. package/dist-types/components/input-file/translations/en.d.ts +3 -0
  184. package/dist-types/components/input-file/translations/es-ES.d.ts +3 -0
  185. package/dist-types/components/input-file/translations/es.d.ts +3 -0
  186. package/dist-types/components/input-file/translations/fr-BE.d.ts +3 -0
  187. package/dist-types/components/input-file/translations/fr-FR.d.ts +3 -0
  188. package/dist-types/components/input-file/translations/fr.d.ts +3 -0
  189. package/dist-types/components/input-file/translations/hu-HU.d.ts +3 -0
  190. package/dist-types/components/input-file/translations/hu.d.ts +3 -0
  191. package/dist-types/components/input-file/translations/it-IT.d.ts +3 -0
  192. package/dist-types/components/input-file/translations/it.d.ts +3 -0
  193. package/dist-types/components/input-file/translations/nl-BE.d.ts +3 -0
  194. package/dist-types/components/input-file/translations/nl-NL.d.ts +3 -0
  195. package/dist-types/components/input-file/translations/nl.d.ts +3 -0
  196. package/dist-types/components/input-file/translations/pl-PL.d.ts +3 -0
  197. package/dist-types/components/input-file/translations/pl.d.ts +3 -0
  198. package/dist-types/components/input-file/translations/ro-RO.d.ts +3 -0
  199. package/dist-types/components/input-file/translations/ro.d.ts +3 -0
  200. package/dist-types/components/input-file/translations/ru-RU.d.ts +3 -0
  201. package/dist-types/components/input-file/translations/ru.d.ts +3 -0
  202. package/dist-types/components/input-file/translations/sk-SK.d.ts +3 -0
  203. package/dist-types/components/input-file/translations/sk.d.ts +3 -0
  204. package/dist-types/components/input-file/translations/uk-UA.d.ts +3 -0
  205. package/dist-types/components/input-file/translations/uk.d.ts +3 -0
  206. package/dist-types/components/input-file/translations/zh-CN.d.ts +3 -0
  207. package/dist-types/components/input-file/translations/zh.d.ts +3 -0
  208. package/dist-types/components/input-tel-dropdown/test/LionInputTelDropdown.test.d.ts.map +1 -1
  209. package/dist-types/components/listbox/src/LionOption.d.ts +1 -1
  210. package/dist-types/components/listbox/test-suites/ListboxMixin.suite.d.ts.map +1 -1
  211. package/dist-types/components/localize/src/date/utils/normalizeIntlDate.d.ts.map +1 -1
  212. package/dist-types/components/overlays/src/OverlayMixin.d.ts.map +1 -1
  213. package/dist-types/components/switch/src/LionSwitch.d.ts.map +1 -1
  214. package/dist-types/components/tabs/src/LionTabs.d.ts.map +1 -1
  215. package/dist-types/tsconfig.tsbuildinfo +1 -1
  216. package/docs/components/accordion/api-table.md +31 -0
  217. package/docs/components/button/api-table.md +104 -0
  218. package/docs/components/button/use-cases.md +11 -10
  219. package/docs/components/calendar/api-table.md +44 -0
  220. package/docs/components/checkbox-group/api-table.md +564 -0
  221. package/docs/components/checkbox-group/overview.md +2 -2
  222. package/docs/components/collapsible/api-table.md +36 -0
  223. package/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js +6 -2
  224. package/docs/components/collapsible/overview.md +1 -1
  225. package/docs/components/combobox/api-table.md +256 -0
  226. package/docs/components/combobox/overview.md +4 -3
  227. package/docs/components/combobox/src/gh-combobox/gh-button.js +3 -1
  228. package/docs/components/combobox/src/gh-combobox/gh-combobox.js +9 -2
  229. package/docs/components/combobox/src/google-combobox/google-combobox.js +6 -8
  230. package/docs/components/combobox/src/md-combobox/MdFieldMixin.js +7 -3
  231. package/docs/components/combobox/src/md-combobox/style/md-ripple.js +1 -0
  232. package/docs/components/combobox/src/wa-combobox/wa-combobox.js +15 -3
  233. package/docs/components/combobox/use-cases.md +19 -17
  234. package/docs/components/dialog/api-table.md +45 -0
  235. package/docs/components/dialog/overview.md +1 -1
  236. package/docs/components/drawer/api-table.md +45 -0
  237. package/docs/components/fieldset/api-table.md +163 -0
  238. package/docs/components/fieldset/overview.md +5 -5
  239. package/docs/components/form/api-table.md +1 -0
  240. package/docs/components/form/overview.md +3 -3
  241. package/docs/components/icon/api-table.md +29 -0
  242. package/docs/components/icon/use-cases.md +1 -1
  243. package/docs/components/input/api-table.md +187 -0
  244. package/docs/components/input/overview.md +1 -1
  245. package/docs/components/input/use-cases.md +3 -2
  246. package/docs/components/input-amount/api-table.md +196 -0
  247. package/docs/components/input-amount/overview.md +3 -3
  248. package/docs/components/input-date/api-table.md +188 -0
  249. package/docs/components/input-date/overview.md +3 -3
  250. package/docs/components/input-datepicker/api-table.md +234 -0
  251. package/docs/components/input-datepicker/overview.md +5 -5
  252. package/docs/components/input-email/api-table.md +187 -0
  253. package/docs/components/input-email/overview.md +2 -2
  254. package/docs/components/input-file/api-table.md +272 -0
  255. package/docs/components/input-file/overview.md +1 -1
  256. package/docs/components/input-iban/api-table.md +187 -0
  257. package/docs/components/input-iban/overview.md +2 -2
  258. package/docs/components/input-range/api-table.md +198 -0
  259. package/docs/components/input-range/overview.md +2 -2
  260. package/docs/components/input-stepper/api-table.md +205 -0
  261. package/docs/components/input-stepper/overview.md +1 -1
  262. package/docs/components/input-tel/api-table.md +202 -0
  263. package/docs/components/input-tel/overview.md +1 -1
  264. package/docs/components/input-tel/use-cases.md +6 -6
  265. package/docs/components/input-tel-dropdown/api-table.md +213 -0
  266. package/docs/components/input-tel-dropdown/overview.md +1 -1
  267. package/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js +15 -5
  268. package/docs/components/listbox/api-table.md +293 -0
  269. package/docs/components/listbox/use-cases.md +1 -1
  270. package/docs/components/pagination/api-table.md +33 -0
  271. package/docs/components/progress-indicator/api-table.md +36 -0
  272. package/docs/components/progress-indicator/examples.md +11 -11
  273. package/docs/components/radio-group/api-table.md +378 -0
  274. package/docs/components/radio-group/overview.md +3 -3
  275. package/docs/components/select/api-table.md +181 -0
  276. package/docs/components/select/use-cases.md +1 -1
  277. package/docs/components/select-rich/api-table.md +288 -0
  278. package/docs/components/select-rich/use-cases.md +1 -1
  279. package/docs/components/steps/api-table.md +80 -0
  280. package/docs/components/switch/api-table.md +229 -0
  281. package/docs/components/tabs/api-table.md +32 -0
  282. package/docs/components/tabs/examples.md +1 -1
  283. package/docs/components/tabs/src/lea-tab-panel.js +3 -1
  284. package/docs/components/tabs/src/lea-tab.js +7 -2
  285. package/docs/components/textarea/api-table.md +192 -0
  286. package/docs/components/tooltip/api-table.md +53 -0
  287. package/docs/fundamentals/index.md +4 -4
  288. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  289. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  290. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  291. package/docs/fundamentals/node-tools/providence-analytics/assets/_mermaid.svg.js +32 -8
  292. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  293. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  294. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  295. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  296. package/docs/fundamentals/rationales/accessibility.md +1 -1
  297. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  298. package/docs/fundamentals/systems/core/api-table.md +34 -0
  299. package/docs/fundamentals/systems/core/overview.md +1 -1
  300. package/docs/fundamentals/systems/form/api-table.md +166 -0
  301. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  302. package/docs/fundamentals/systems/form/model-value.md +1 -1
  303. package/docs/fundamentals/systems/form/overview.md +28 -28
  304. package/docs/fundamentals/systems/form/validate.md +3 -3
  305. package/docs/fundamentals/systems/localize/api-table.md +65 -0
  306. package/docs/fundamentals/systems/localize/overview.md +4 -4
  307. package/docs/fundamentals/systems/overlays/_configuration-positioning.md +0 -9
  308. package/docs/fundamentals/systems/overlays/_edge-cases.md +74 -80
  309. package/docs/fundamentals/systems/overlays/api-table.md +168 -0
  310. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  311. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  312. package/docs/fundamentals/systems/overlays/use-cases.md +5 -8
  313. package/docs/fundamentals/tools/helpers/action-logger.md +3 -6
  314. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  315. package/docs/fundamentals/tools/singleton-manager/example-complex/demo-app.js +3 -1
  316. package/docs/fundamentals/tools/singleton-manager/example-fail/demo-app.js +3 -1
  317. package/docs/fundamentals/tools/singleton-manager/example-success/demo-app.js +3 -1
  318. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  319. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  320. package/docs/guides/how-to/create-a-form.md +4 -4
  321. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  322. package/docs/guides/index.md +8 -8
  323. package/docs/guides/principles/index.md +5 -5
  324. package/docs/guides/principles/styling.md +1 -1
  325. package/package.json +6 -5
@@ -57,7 +57,7 @@ Validation happens on every change of `modelValue`. A change in modelValue can b
57
57
 
58
58
  ## When validation feedback will be shown
59
59
 
60
- 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/8fd9ec4df166dd45f230eb032e3b1c151fd6240d/docs/fundamentals/systems/form/interaction-states.md),
60
+ 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/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/form/interaction-states.md),
61
61
  validity states can determine whether a validation message should be shown along the input field.
62
62
 
63
63
  ## Assessing field validation state programmatically
@@ -232,7 +232,7 @@ export const requiredValidator = () => html`
232
232
  `;
233
233
  ```
234
234
 
235
- 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/8fd9ec4df166dd45f230eb032e3b1c151fd6240d/docs/fundamentals/systems/form/#override-fieldname) for more information.
235
+ 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/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/form/#override-fieldname) for more information.
236
236
 
237
237
  Specific required messages for a select and file-upload are created.
238
238
 
@@ -612,7 +612,7 @@ However, the validation system also supports three non blocking validation feedb
612
612
  - **error**: blocking the field from being submitted to the server. For example:
613
613
  "Please enter an amount higher than 1000,00 euro."
614
614
  - **warning**: something looks wrong, but it is not blocking. For example an optional email input:
615
- "Please enter a valid e-mail address in the format "name@example.com"."
615
+ "Please enter a valid e-mail address in the format `name@example.com`."
616
616
  - **info**: shows extra information. For example a message of a scheduled payment planner:
617
617
  "Ends on 15/05/2020 after 5 payments."
618
618
  - **success**: will only be triggered if there was a Message from one of the above validation types and is now correct. For example: "Ok, correct."
@@ -0,0 +1,65 @@
1
+ # Systems >> Localize >> API Table ||90
2
+
3
+ ## class: `LocalizeManager`
4
+
5
+ ### Fields
6
+
7
+ | Name | Privacy | Type | Default | Description | Inherited From |
8
+ | ---------------------------------- | --------- | --------- | -------------------------------------------------------------------------------------------------------------------- | ----------- | -------------- |
9
+ | `locale` | public | | | | |
10
+ | `loadingComplete` | public | | | | |
11
+ | `_autoLoadOnLocaleChange` | protected | `boolean` | `!!autoLoadOnLocaleChange` | | |
12
+ | `_fallbackLocale` | protected | | `fallbackLocale` | | |
13
+ | `_showKeyAsFallback` | protected | | `showKeyAsFallback` | | |
14
+ | `formatNumberOptions` | public | `object` | `{
15
+ returnIfNaN: '',
16
+ /** @type {Map<string,DatePostProcessor>} */
17
+ postProcessors: new Map(),
18
+ }` | | |
19
+ | `formatDateOptions` | public | `object` | `{
20
+ /** @type {Map<string,DatePostProcessor>} */
21
+ postProcessors: new Map(),
22
+ }` | | |
23
+ | `_supportExternalTranslationTools` | protected | | | | |
24
+
25
+ ### Methods
26
+
27
+ | Name | Privacy | Description | Parameters | Return | Inherited From |
28
+ | ------------------------------------ | --------- | ----------- | ---------------------------------------------------------------------------------------------------------- | ------------------------ | -------------- |
29
+ | `_setupTranslationToolSupport` | protected | | | | |
30
+ | `teardown` | public | | | | |
31
+ | `_setHtmlLangAttribute` | protected | | `locale: string` | | |
32
+ | `reset` | public | | | | |
33
+ | `addData` | public | | `locale: string, namespace: string, data: object` | | |
34
+ | `setupNamespaceLoader` | public | | `pattern: RegExp\|string, loader: function` | | |
35
+ | `loadNamespaces` | public | | `namespaces: NamespaceObject[], { locale }, options: @param {string} [options.locale] * ` | `Promise.<Object>` | |
36
+ | `loadNamespace` | public | | `namespaceObj: NamespaceObject, { locale = this.locale }, options: @param {string} [options.locale] * ` | `Promise.<Object\|void>` | |
37
+ | `msg` | public | | `keys: string \| string[], vars: Object.<string,?>, opts: @param {string} [opts.locale] * ` | `string` | |
38
+ | `_setupHtmlLangAttributeObserver` | protected | | | | |
39
+ | `_teardownHtmlLangAttributeObserver` | protected | | | | |
40
+ | `_isNamespaceInCache` | protected | | `locale: string, namespace: string` | | |
41
+ | `_getCachedNamespaceLoaderPromise` | protected | | `locale: string, namespace: string` | | |
42
+ | `_loadNamespaceData` | protected | | `locale: string, namespaceObj: NamespaceObject, isDynamicImport: boolean, namespace: string` | `Promise.<Object\|void>` | |
43
+ | `_getNamespaceLoader` | protected | | `namespaceObj: NamespaceObject, isDynamicImport: boolean, namespace: string` | | |
44
+ | `_getNamespaceLoaderPromise` | protected | | `loader: function, locale: string, namespace: string, fallbackLocale: string` | `Promise.<any>` | |
45
+ | `_cacheNamespaceLoaderPromise` | protected | | `locale: string, namespace: string, promise: Promise.<Object\|void>` | | |
46
+ | `_lookupNamespaceLoader` | protected | | `namespace: string` | `function\|null` | |
47
+ | `_getLangFromLocale` | protected | | `locale: string` | `string` | |
48
+ | `addEventListener` | public | | `type: string, listener: EventListener, options: ...Object` | | |
49
+ | `removeEventListener` | public | | `type: string, listener: EventListener, options: ...Object` | | |
50
+ | `dispatchEvent` | public | | `event: CustomEvent` | | |
51
+ | `_onLocaleChanged` | protected | | `newLocale: string, oldLocale: string` | `undefined` | |
52
+ | `_loadAllMissing` | protected | | `newLocale: string, oldLocale: string` | | |
53
+ | `_getMessageForKeys` | protected | | `keys: string \| string[], locale: string` | `string \| undefined` | |
54
+ | `_getMessageForKey` | protected | | `key: string \| undefined, locale: string` | `string` | |
55
+ | `setDatePostProcessorForLocale` | public | | `{ locale, postProcessor }, options: {locale:string, postProcessor:DatePostProcessor}` | | |
56
+ | `setNumberPostProcessorForLocale` | public | | `{ locale, postProcessor }, options: {locale:string, postProcessor:NumberPostProcessor}` | | |
57
+
58
+ ### Events
59
+
60
+ | Name | Type | Description | Inherited From |
61
+ | ------------------ | ------------- | ----------- | -------------- |
62
+ | `__localeChanging` | `CustomEvent` | | |
63
+ | `localeChanged` | `CustomEvent` | | |
64
+
65
+ <hr/>
@@ -9,15 +9,15 @@ In it's simplest form it is a function that returns the translated text for a na
9
9
  - Formatting of numbers, amounts
10
10
  - Formatting of dates
11
11
 
12
- Further examples and a more in depth description can be found at the [Use Cases Page](https://github.com/ing-bank/lion/blob/8fd9ec4df166dd45f230eb032e3b1c151fd6240d/docs/fundamentals/systems/localize/use-cases.md).
12
+ Further examples and a more in depth description can be found at the [Use Cases Page](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/localize/use-cases.md).
13
13
 
14
14
  ## Content
15
15
 
16
16
  | Feature | Description |
17
17
  | ---------------------------------------- | --------------------------------------------- |
18
- | [Translate Text](https://github.com/ing-bank/lion/blob/8fd9ec4df166dd45f230eb032e3b1c151fd6240d/docs/fundamentals/systems/localize/text.md) | Load and translate text in multiple languages |
19
- | [Format Numbers](https://github.com/ing-bank/lion/blob/8fd9ec4df166dd45f230eb032e3b1c151fd6240d/docs/fundamentals/systems/localize/numbers.md) | Format numbers in multiple languages |
20
- | [Format Dates](https://github.com/ing-bank/lion/blob/8fd9ec4df166dd45f230eb032e3b1c151fd6240d/docs/fundamentals/systems/localize/dates.md) | Format dates in multiple languages |
18
+ | [Translate Text](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/localize/text.md) | Load and translate text in multiple languages |
19
+ | [Format Numbers](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/localize/numbers.md) | Format numbers in multiple languages |
20
+ | [Format Dates](https://github.com/ing-bank/lion/blob/15a9d70cb690d26e6a2af8a6b5dbdda7e7b0112e/docs/fundamentals/systems/localize/dates.md) | Format dates in multiple languages |
21
21
 
22
22
  ## Installation
23
23
 
@@ -99,15 +99,6 @@ export const placementGlobal = () => {
99
99
 
100
100
  ## popperConfig
101
101
 
102
- /** Viewport configuration. Will be used when placementMode is 'global' \*/
103
- viewportConfig?: ViewportConfig;
104
- /** Hides other overlays when multiple are opened (currently exclusive to globalOverlayController) _/
105
- isBlocking?: boolean;
106
- /\*\* Will align contentNode with referenceNode (invokerNode by default) for local overlays. Usually needed for dropdowns. 'max' will prevent contentNode from exceeding width of referenceNode, 'min' guarantees that contentNode will be at least as wide as referenceNode. 'full' will make sure that the invoker width always is the same. _/
107
- inheritsReferenceWidth?: 'max' | 'full' | 'min' | 'none';
108
- /\*_ Change the default of 9999 _/
109
- zIndex?: number;
110
-
111
102
  | Prop | Description | Type | | | |
112
103
  | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | --- | --- | --- |
113
104
  | placementMode | Determines the positioning anchor (viewport vs invokerNode/referenceNode) | 'global'\|'local' | | | |
@@ -33,21 +33,20 @@ See [css-tricks: popping-hidden-overflow](https://css-tricks.com/popping-hidden-
33
33
  #### Overflow: the problem
34
34
 
35
35
  ```js preview-story
36
- export const edgeCaseOverflowProblem = () =>
37
- html`
38
- <div style="padding: 54px 24px 36px;">
39
- <div
40
- style="overflow: hidden; border: 1px black dashed; padding-top: 44px; padding-bottom: 16px;"
41
- >
42
- <div style="display: flex; justify-content: space-evenly; position: relative;">
43
- <demo-overlay-el opened use-absolute>
44
- <button slot="invoker" aria-label="local, non modal"></button>
45
- <div slot="content">absolute (for&nbsp;demo)</div>
46
- </demo-overlay-el>
47
- </div>
36
+ export const edgeCaseOverflowProblem = () => html`
37
+ <div style="padding: 54px 24px 36px;">
38
+ <div
39
+ style="overflow: hidden; border: 1px black dashed; padding-top: 44px; padding-bottom: 16px;"
40
+ >
41
+ <div style="display: flex; justify-content: space-evenly; position: relative;">
42
+ <demo-overlay-el opened use-absolute>
43
+ <button slot="invoker" aria-label="local, non modal"></button>
44
+ <div slot="content">absolute (for&nbsp;demo)</div>
45
+ </demo-overlay-el>
48
46
  </div>
49
47
  </div>
50
- `;
48
+ </div>
49
+ `;
51
50
  ```
52
51
 
53
52
  #### Overflow: the solution
@@ -60,50 +59,46 @@ Two solutions are thinkable:
60
59
  Our overlay system makes sure that there's always a fixed layer that pops out of the hidden parent.
61
60
 
62
61
  ```js preview-story
63
- export const edgeCaseOverflowSolution = () =>
64
- html`
65
- <div style="padding: 54px 24px 36px;">
66
- <div
67
- style="overflow: hidden; border: 1px black dashed; padding-top: 36px; padding-bottom: 16px;"
68
- >
69
- <div style="display: flex; justify-content: space-evenly; position: relative;">
70
- <demo-overlay-el
71
- opened
72
- .config="${{ placementMode: 'local', trapsKeyboardFocus: false }}"
73
- >
74
- <button slot="invoker" aria-label="local, non modal"></button>
75
- <div slot="content">no matter</div>
76
- </demo-overlay-el>
77
-
78
- <demo-overlay-el opened .config="${{ placementMode: 'local', trapsKeyboardFocus: true }}">
79
- <button slot="invoker" aria-label="local, modal"></button>
80
- <div slot="content">what configuration</div>
81
- </demo-overlay-el>
82
-
83
- <demo-overlay-el
84
- opened
85
- .config="${{ placementMode: 'local', popperConfig: { strategy: 'absolute' } }}"
86
- >
87
- <button slot="invoker" aria-label="local, absolute"></button>
88
- <div slot="content">...it</div>
89
- </demo-overlay-el>
90
-
91
- <demo-overlay-el
92
- opened
93
- .config="${{ placementMode: 'local', popperConfig: { strategy: 'fixed' } }}"
94
- >
95
- <button slot="invoker" aria-label="local, fixed"></button>
96
- <div slot="content">just</div>
97
- </demo-overlay-el>
98
-
99
- <demo-overlay-el opened .config="${{ placementMode: 'global' }}">
100
- <button slot="invoker" aria-label="global"></button>
101
- <div slot="content">works</div>
102
- </demo-overlay-el>
103
- </div>
62
+ export const edgeCaseOverflowSolution = () => html`
63
+ <div style="padding: 54px 24px 36px;">
64
+ <div
65
+ style="overflow: hidden; border: 1px black dashed; padding-top: 36px; padding-bottom: 16px;"
66
+ >
67
+ <div style="display: flex; justify-content: space-evenly; position: relative;">
68
+ <demo-overlay-el opened .config="${{ placementMode: 'local', trapsKeyboardFocus: false }}">
69
+ <button slot="invoker" aria-label="local, non modal"></button>
70
+ <div slot="content">no matter</div>
71
+ </demo-overlay-el>
72
+
73
+ <demo-overlay-el opened .config="${{ placementMode: 'local', trapsKeyboardFocus: true }}">
74
+ <button slot="invoker" aria-label="local, modal"></button>
75
+ <div slot="content">what configuration</div>
76
+ </demo-overlay-el>
77
+
78
+ <demo-overlay-el
79
+ opened
80
+ .config="${{ placementMode: 'local', popperConfig: { strategy: 'absolute' } }}"
81
+ >
82
+ <button slot="invoker" aria-label="local, absolute"></button>
83
+ <div slot="content">...it</div>
84
+ </demo-overlay-el>
85
+
86
+ <demo-overlay-el
87
+ opened
88
+ .config="${{ placementMode: 'local', popperConfig: { strategy: 'fixed' } }}"
89
+ >
90
+ <button slot="invoker" aria-label="local, fixed"></button>
91
+ <div slot="content">just</div>
92
+ </demo-overlay-el>
93
+
94
+ <demo-overlay-el opened .config="${{ placementMode: 'global' }}">
95
+ <button slot="invoker" aria-label="global"></button>
96
+ <div slot="content">works</div>
97
+ </demo-overlay-el>
104
98
  </div>
105
99
  </div>
106
- `;
100
+ </div>
101
+ `;
107
102
  ```
108
103
 
109
104
  ### Stacking context
@@ -114,32 +109,31 @@ The example below shows the difference between a modal and non-modal overlay pla
114
109
  #### Stacking context: the problem
115
110
 
116
111
  ```js preview-story
117
- export const edgeCaseStackProblem = () =>
118
- html`
119
- <div style="width: 300px; height: 300px; position: relative;">
120
- <div
121
- id="stacking-context-a"
122
- style="position: absolute; z-index: 2; top: 0; width: 100px; height: 200px;"
123
- >
124
- I am on top and I don't care about your 9999
125
- </div>
112
+ export const edgeCaseStackProblem = () => html`
113
+ <div style="width: 300px; height: 300px; position: relative;">
114
+ <div
115
+ id="stacking-context-a"
116
+ style="position: absolute; z-index: 2; top: 0; width: 100px; height: 200px;"
117
+ >
118
+ I am on top and I don't care about your 9999
119
+ </div>
126
120
 
127
- <div
128
- id="stacking-context-b"
129
- style="position: absolute; z-index: 1; top: 0; width: 200px; height: 200px;"
130
- >
131
- <demo-overlay-el no-dialog-el style="overflow:hidden; position: relative;">
132
- <button slot="invoker">invoke</button>
133
- <div slot="content">
134
- The overlay can never be in front, since the parent stacking context has a lower
135
- priority than its sibling.
136
- <div id="stacking-context-b-inner" style="position: absolute; z-index: 9999;">
137
- So, even if we add a new stacking context in our overlay with z-index 9999, it will
138
- never be painted on top.
139
- </div>
121
+ <div
122
+ id="stacking-context-b"
123
+ style="position: absolute; z-index: 1; top: 0; width: 200px; height: 200px;"
124
+ >
125
+ <demo-overlay-el no-dialog-el style="overflow:hidden; position: relative;">
126
+ <button slot="invoker">invoke</button>
127
+ <div slot="content">
128
+ The overlay can never be in front, since the parent stacking context has a lower priority
129
+ than its sibling.
130
+ <div id="stacking-context-b-inner" style="position: absolute; z-index: 9999;">
131
+ So, even if we add a new stacking context in our overlay with z-index 9999, it will
132
+ never be painted on top.
140
133
  </div>
141
- </demo-overlay-el>
142
- </div>
134
+ </div>
135
+ </demo-overlay-el>
143
136
  </div>
144
- `;
137
+ </div>
138
+ `;
145
139
  ```