@lion/ui 0.5.2 → 0.5.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 (311) hide show
  1. package/components/checkbox-group/src/LionCheckboxIndeterminate.js +17 -2
  2. package/components/checkbox-group/test/lion-checkbox-indeterminate-integrations.test.js +3 -0
  3. package/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.js +435 -396
  4. package/components/form-core/src/FormControlMixin.js +17 -1
  5. package/components/form-core/src/form-group/FormGroupMixin.js +5 -6
  6. package/components/form-core/test/FormControlMixin.test.js +39 -20
  7. package/components/form-core/test-suites/FormRegistrationMixins.suite.js +7 -7
  8. package/components/form-core/test-suites/form-group/FormGroupMixin-input.suite.js +0 -47
  9. package/components/form-core/test-suites/form-group/FormGroupMixin.suite.js +21 -3
  10. package/components/input-range/src/LionInputRange.js +36 -4
  11. package/components/input-range/src/localizeNamespaceLoader.js +75 -0
  12. package/components/input-range/test/lion-input-range.test.js +6 -6
  13. package/components/input-range/translations/bg-BG.js +5 -0
  14. package/components/input-range/translations/bg.js +4 -0
  15. package/components/input-range/translations/cs-CZ.js +5 -0
  16. package/components/input-range/translations/cs.js +4 -0
  17. package/components/input-range/translations/de-DE.js +5 -0
  18. package/components/input-range/translations/de.js +4 -0
  19. package/components/input-range/translations/en-AU.js +5 -0
  20. package/components/input-range/translations/en-GB.js +5 -0
  21. package/components/input-range/translations/en-PH.js +5 -0
  22. package/components/input-range/translations/en-US.js +5 -0
  23. package/components/input-range/translations/en.js +4 -0
  24. package/components/input-range/translations/es-ES.js +5 -0
  25. package/components/input-range/translations/es.js +4 -0
  26. package/components/input-range/translations/fr-BE.js +5 -0
  27. package/components/input-range/translations/fr-FR.js +5 -0
  28. package/components/input-range/translations/fr.js +4 -0
  29. package/components/input-range/translations/hu-HU.js +5 -0
  30. package/components/input-range/translations/hu.js +4 -0
  31. package/components/input-range/translations/it-IT.js +5 -0
  32. package/components/input-range/translations/it.js +4 -0
  33. package/components/input-range/translations/nl-BE.js +5 -0
  34. package/components/input-range/translations/nl-NL.js +5 -0
  35. package/components/input-range/translations/nl.js +4 -0
  36. package/components/input-range/translations/pl-PL.js +5 -0
  37. package/components/input-range/translations/pl.js +4 -0
  38. package/components/input-range/translations/ro-RO.js +5 -0
  39. package/components/input-range/translations/ro.js +4 -0
  40. package/components/input-range/translations/ru-RU.js +5 -0
  41. package/components/input-range/translations/ru.js +4 -0
  42. package/components/input-range/translations/sk-SK.js +5 -0
  43. package/components/input-range/translations/sk.js +4 -0
  44. package/components/input-range/translations/uk-UA.js +5 -0
  45. package/components/input-range/translations/uk.js +4 -0
  46. package/components/input-range/translations/zh-CN.js +5 -0
  47. package/components/input-range/translations/zh.js +4 -0
  48. package/components/input-stepper/src/LionInputStepper.js +53 -33
  49. package/components/input-stepper/src/localizeNamespaceLoader.js +75 -0
  50. package/components/input-stepper/test/lion-input-stepper.test.js +61 -8
  51. package/components/input-stepper/translations/bg-BG.js +5 -0
  52. package/components/input-stepper/translations/bg.js +4 -0
  53. package/components/input-stepper/translations/cs-CZ.js +5 -0
  54. package/components/input-stepper/translations/cs.js +4 -0
  55. package/components/input-stepper/translations/de-DE.js +5 -0
  56. package/components/input-stepper/translations/de.js +4 -0
  57. package/components/input-stepper/translations/en-AU.js +5 -0
  58. package/components/input-stepper/translations/en-GB.js +5 -0
  59. package/components/input-stepper/translations/en-US.js +5 -0
  60. package/components/input-stepper/translations/en.js +4 -0
  61. package/components/input-stepper/translations/es-ES.js +5 -0
  62. package/components/input-stepper/translations/es.js +4 -0
  63. package/components/input-stepper/translations/fr-BE.js +5 -0
  64. package/components/input-stepper/translations/fr-FR.js +5 -0
  65. package/components/input-stepper/translations/fr.js +4 -0
  66. package/components/input-stepper/translations/hu-HU.js +5 -0
  67. package/components/input-stepper/translations/hu.js +4 -0
  68. package/components/input-stepper/translations/it-IT.js +5 -0
  69. package/components/input-stepper/translations/it.js +4 -0
  70. package/components/input-stepper/translations/nl-BE.js +5 -0
  71. package/components/input-stepper/translations/nl-NL.js +5 -0
  72. package/components/input-stepper/translations/nl.js +4 -0
  73. package/components/input-stepper/translations/pl-PL.js +5 -0
  74. package/components/input-stepper/translations/pl.js +4 -0
  75. package/components/input-stepper/translations/ro-RO.js +5 -0
  76. package/components/input-stepper/translations/ro.js +4 -0
  77. package/components/input-stepper/translations/ru-RU.js +5 -0
  78. package/components/input-stepper/translations/ru.js +4 -0
  79. package/components/input-stepper/translations/sk-SK.js +5 -0
  80. package/components/input-stepper/translations/sk.js +4 -0
  81. package/components/input-stepper/translations/uk-UA.js +5 -0
  82. package/components/input-stepper/translations/uk.js +4 -0
  83. package/components/input-stepper/translations/zh.js +4 -0
  84. package/components/localize/src/LocalizeMixin.js +2 -2
  85. package/components/validate-messages/src/getLocalizedMessage.js +111 -0
  86. package/components/validate-messages/src/loadDefaultFeedbackMessagesNoSideEffects.js +9 -179
  87. package/components/validate-messages/src/per-entrypoint/README.md +16 -0
  88. package/components/validate-messages/src/per-entrypoint/loadComboboxMessagesNoSideEffects.js +22 -0
  89. package/components/validate-messages/src/per-entrypoint/loadFormCoreMessagesNoSideEffects.js +77 -0
  90. package/components/validate-messages/src/per-entrypoint/loadInputTelMessagesNoSideEffects.js +39 -0
  91. package/components/validate-messages/translations/fr.js +2 -2
  92. package/custom-elements.json +1652 -26
  93. package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts +7 -1
  94. package/dist-types/components/checkbox-group/src/LionCheckboxIndeterminate.d.ts.map +1 -1
  95. package/dist-types/components/checkbox-group/test-suites/CheckboxIndeterminate.suite.d.ts.map +1 -1
  96. package/dist-types/components/form-core/src/FormControlMixin.d.ts.map +1 -1
  97. package/dist-types/components/form-core/src/form-group/FormGroupMixin.d.ts.map +1 -1
  98. package/dist-types/components/form-core/test-suites/form-group/FormGroupMixin-input.suite.d.ts.map +1 -1
  99. package/dist-types/components/form-core/test-suites/form-group/FormGroupMixin.suite.d.ts.map +1 -1
  100. package/dist-types/components/input-range/src/LionInputRange.d.ts +7 -1
  101. package/dist-types/components/input-range/src/LionInputRange.d.ts.map +1 -1
  102. package/dist-types/components/input-range/src/localizeNamespaceLoader.d.ts +2 -0
  103. package/dist-types/components/input-range/src/localizeNamespaceLoader.d.ts.map +1 -0
  104. package/dist-types/components/input-range/translations/bg-BG.d.ts +6 -0
  105. package/dist-types/components/input-range/translations/bg-BG.d.ts.map +1 -0
  106. package/dist-types/components/input-range/translations/bg.d.ts +6 -0
  107. package/dist-types/components/input-range/translations/bg.d.ts.map +1 -0
  108. package/dist-types/components/input-range/translations/cs-CZ.d.ts +6 -0
  109. package/dist-types/components/input-range/translations/cs-CZ.d.ts.map +1 -0
  110. package/dist-types/components/input-range/translations/cs.d.ts +6 -0
  111. package/dist-types/components/input-range/translations/cs.d.ts.map +1 -0
  112. package/dist-types/components/input-range/translations/de-DE.d.ts +6 -0
  113. package/dist-types/components/input-range/translations/de-DE.d.ts.map +1 -0
  114. package/dist-types/components/input-range/translations/de.d.ts +6 -0
  115. package/dist-types/components/input-range/translations/de.d.ts.map +1 -0
  116. package/dist-types/components/input-range/translations/en-AU.d.ts +6 -0
  117. package/dist-types/components/input-range/translations/en-AU.d.ts.map +1 -0
  118. package/dist-types/components/input-range/translations/en-GB.d.ts +6 -0
  119. package/dist-types/components/input-range/translations/en-GB.d.ts.map +1 -0
  120. package/dist-types/components/input-range/translations/en-PH.d.ts +6 -0
  121. package/dist-types/components/input-range/translations/en-PH.d.ts.map +1 -0
  122. package/dist-types/components/input-range/translations/en-US.d.ts +6 -0
  123. package/dist-types/components/input-range/translations/en-US.d.ts.map +1 -0
  124. package/dist-types/components/input-range/translations/en.d.ts +6 -0
  125. package/dist-types/components/input-range/translations/en.d.ts.map +1 -0
  126. package/dist-types/components/input-range/translations/es-ES.d.ts +6 -0
  127. package/dist-types/components/input-range/translations/es-ES.d.ts.map +1 -0
  128. package/dist-types/components/input-range/translations/es.d.ts +6 -0
  129. package/dist-types/components/input-range/translations/es.d.ts.map +1 -0
  130. package/dist-types/components/input-range/translations/fr-BE.d.ts +6 -0
  131. package/dist-types/components/input-range/translations/fr-BE.d.ts.map +1 -0
  132. package/dist-types/components/input-range/translations/fr-FR.d.ts +6 -0
  133. package/dist-types/components/input-range/translations/fr-FR.d.ts.map +1 -0
  134. package/dist-types/components/input-range/translations/fr.d.ts +6 -0
  135. package/dist-types/components/input-range/translations/fr.d.ts.map +1 -0
  136. package/dist-types/components/input-range/translations/hu-HU.d.ts +6 -0
  137. package/dist-types/components/input-range/translations/hu-HU.d.ts.map +1 -0
  138. package/dist-types/components/input-range/translations/hu.d.ts +6 -0
  139. package/dist-types/components/input-range/translations/hu.d.ts.map +1 -0
  140. package/dist-types/components/input-range/translations/it-IT.d.ts +6 -0
  141. package/dist-types/components/input-range/translations/it-IT.d.ts.map +1 -0
  142. package/dist-types/components/input-range/translations/it.d.ts +6 -0
  143. package/dist-types/components/input-range/translations/it.d.ts.map +1 -0
  144. package/dist-types/components/input-range/translations/nl-BE.d.ts +6 -0
  145. package/dist-types/components/input-range/translations/nl-BE.d.ts.map +1 -0
  146. package/dist-types/components/input-range/translations/nl-NL.d.ts +6 -0
  147. package/dist-types/components/input-range/translations/nl-NL.d.ts.map +1 -0
  148. package/dist-types/components/input-range/translations/nl.d.ts +6 -0
  149. package/dist-types/components/input-range/translations/nl.d.ts.map +1 -0
  150. package/dist-types/components/input-range/translations/pl-PL.d.ts +6 -0
  151. package/dist-types/components/input-range/translations/pl-PL.d.ts.map +1 -0
  152. package/dist-types/components/input-range/translations/pl.d.ts +6 -0
  153. package/dist-types/components/input-range/translations/pl.d.ts.map +1 -0
  154. package/dist-types/components/input-range/translations/ro-RO.d.ts +6 -0
  155. package/dist-types/components/input-range/translations/ro-RO.d.ts.map +1 -0
  156. package/dist-types/components/input-range/translations/ro.d.ts +6 -0
  157. package/dist-types/components/input-range/translations/ro.d.ts.map +1 -0
  158. package/dist-types/components/input-range/translations/ru-RU.d.ts +6 -0
  159. package/dist-types/components/input-range/translations/ru-RU.d.ts.map +1 -0
  160. package/dist-types/components/input-range/translations/ru.d.ts +6 -0
  161. package/dist-types/components/input-range/translations/ru.d.ts.map +1 -0
  162. package/dist-types/components/input-range/translations/sk-SK.d.ts +6 -0
  163. package/dist-types/components/input-range/translations/sk-SK.d.ts.map +1 -0
  164. package/dist-types/components/input-range/translations/sk.d.ts +6 -0
  165. package/dist-types/components/input-range/translations/sk.d.ts.map +1 -0
  166. package/dist-types/components/input-range/translations/uk-UA.d.ts +6 -0
  167. package/dist-types/components/input-range/translations/uk-UA.d.ts.map +1 -0
  168. package/dist-types/components/input-range/translations/uk.d.ts +6 -0
  169. package/dist-types/components/input-range/translations/uk.d.ts.map +1 -0
  170. package/dist-types/components/input-range/translations/zh-CN.d.ts +6 -0
  171. package/dist-types/components/input-range/translations/zh-CN.d.ts.map +1 -0
  172. package/dist-types/components/input-range/translations/zh.d.ts +6 -0
  173. package/dist-types/components/input-range/translations/zh.d.ts.map +1 -0
  174. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts +22 -3
  175. package/dist-types/components/input-stepper/src/LionInputStepper.d.ts.map +1 -1
  176. package/dist-types/components/input-stepper/src/localizeNamespaceLoader.d.ts +2 -0
  177. package/dist-types/components/input-stepper/src/localizeNamespaceLoader.d.ts.map +1 -0
  178. package/dist-types/components/input-stepper/translations/bg-BG.d.ts +6 -0
  179. package/dist-types/components/input-stepper/translations/bg-BG.d.ts.map +1 -0
  180. package/dist-types/components/input-stepper/translations/bg.d.ts +6 -0
  181. package/dist-types/components/input-stepper/translations/bg.d.ts.map +1 -0
  182. package/dist-types/components/input-stepper/translations/cs-CZ.d.ts +6 -0
  183. package/dist-types/components/input-stepper/translations/cs-CZ.d.ts.map +1 -0
  184. package/dist-types/components/input-stepper/translations/cs.d.ts +6 -0
  185. package/dist-types/components/input-stepper/translations/cs.d.ts.map +1 -0
  186. package/dist-types/components/input-stepper/translations/de-DE.d.ts +6 -0
  187. package/dist-types/components/input-stepper/translations/de-DE.d.ts.map +1 -0
  188. package/dist-types/components/input-stepper/translations/de.d.ts +6 -0
  189. package/dist-types/components/input-stepper/translations/de.d.ts.map +1 -0
  190. package/dist-types/components/input-stepper/translations/en-AU.d.ts +6 -0
  191. package/dist-types/components/input-stepper/translations/en-AU.d.ts.map +1 -0
  192. package/dist-types/components/input-stepper/translations/en-GB.d.ts +6 -0
  193. package/dist-types/components/input-stepper/translations/en-GB.d.ts.map +1 -0
  194. package/dist-types/components/input-stepper/translations/en-US.d.ts +6 -0
  195. package/dist-types/components/input-stepper/translations/en-US.d.ts.map +1 -0
  196. package/dist-types/components/input-stepper/translations/en.d.ts +6 -0
  197. package/dist-types/components/input-stepper/translations/en.d.ts.map +1 -0
  198. package/dist-types/components/input-stepper/translations/es-ES.d.ts +6 -0
  199. package/dist-types/components/input-stepper/translations/es-ES.d.ts.map +1 -0
  200. package/dist-types/components/input-stepper/translations/es.d.ts +6 -0
  201. package/dist-types/components/input-stepper/translations/es.d.ts.map +1 -0
  202. package/dist-types/components/input-stepper/translations/fr-BE.d.ts +6 -0
  203. package/dist-types/components/input-stepper/translations/fr-BE.d.ts.map +1 -0
  204. package/dist-types/components/input-stepper/translations/fr-FR.d.ts +6 -0
  205. package/dist-types/components/input-stepper/translations/fr-FR.d.ts.map +1 -0
  206. package/dist-types/components/input-stepper/translations/fr.d.ts +6 -0
  207. package/dist-types/components/input-stepper/translations/fr.d.ts.map +1 -0
  208. package/dist-types/components/input-stepper/translations/hu-HU.d.ts +6 -0
  209. package/dist-types/components/input-stepper/translations/hu-HU.d.ts.map +1 -0
  210. package/dist-types/components/input-stepper/translations/hu.d.ts +6 -0
  211. package/dist-types/components/input-stepper/translations/hu.d.ts.map +1 -0
  212. package/dist-types/components/input-stepper/translations/it-IT.d.ts +6 -0
  213. package/dist-types/components/input-stepper/translations/it-IT.d.ts.map +1 -0
  214. package/dist-types/components/input-stepper/translations/it.d.ts +6 -0
  215. package/dist-types/components/input-stepper/translations/it.d.ts.map +1 -0
  216. package/dist-types/components/input-stepper/translations/nl-BE.d.ts +6 -0
  217. package/dist-types/components/input-stepper/translations/nl-BE.d.ts.map +1 -0
  218. package/dist-types/components/input-stepper/translations/nl-NL.d.ts +6 -0
  219. package/dist-types/components/input-stepper/translations/nl-NL.d.ts.map +1 -0
  220. package/dist-types/components/input-stepper/translations/nl.d.ts +6 -0
  221. package/dist-types/components/input-stepper/translations/nl.d.ts.map +1 -0
  222. package/dist-types/components/input-stepper/translations/pl-PL.d.ts +6 -0
  223. package/dist-types/components/input-stepper/translations/pl-PL.d.ts.map +1 -0
  224. package/dist-types/components/input-stepper/translations/pl.d.ts +6 -0
  225. package/dist-types/components/input-stepper/translations/pl.d.ts.map +1 -0
  226. package/dist-types/components/input-stepper/translations/ro-RO.d.ts +6 -0
  227. package/dist-types/components/input-stepper/translations/ro-RO.d.ts.map +1 -0
  228. package/dist-types/components/input-stepper/translations/ro.d.ts +6 -0
  229. package/dist-types/components/input-stepper/translations/ro.d.ts.map +1 -0
  230. package/dist-types/components/input-stepper/translations/ru-RU.d.ts +6 -0
  231. package/dist-types/components/input-stepper/translations/ru-RU.d.ts.map +1 -0
  232. package/dist-types/components/input-stepper/translations/ru.d.ts +6 -0
  233. package/dist-types/components/input-stepper/translations/ru.d.ts.map +1 -0
  234. package/dist-types/components/input-stepper/translations/sk-SK.d.ts +6 -0
  235. package/dist-types/components/input-stepper/translations/sk-SK.d.ts.map +1 -0
  236. package/dist-types/components/input-stepper/translations/sk.d.ts +6 -0
  237. package/dist-types/components/input-stepper/translations/sk.d.ts.map +1 -0
  238. package/dist-types/components/input-stepper/translations/uk-UA.d.ts +6 -0
  239. package/dist-types/components/input-stepper/translations/uk-UA.d.ts.map +1 -0
  240. package/dist-types/components/input-stepper/translations/uk.d.ts +6 -0
  241. package/dist-types/components/input-stepper/translations/uk.d.ts.map +1 -0
  242. package/dist-types/components/input-stepper/translations/zh.d.ts +6 -0
  243. package/dist-types/components/input-stepper/translations/zh.d.ts.map +1 -0
  244. package/dist-types/components/validate-messages/src/getLocalizedMessage.d.ts +13 -0
  245. package/dist-types/components/validate-messages/src/getLocalizedMessage.d.ts.map +1 -0
  246. package/dist-types/components/validate-messages/src/loadDefaultFeedbackMessagesNoSideEffects.d.ts.map +1 -1
  247. package/dist-types/components/validate-messages/src/per-entrypoint/loadComboboxMessagesNoSideEffects.d.ts +9 -0
  248. package/dist-types/components/validate-messages/src/per-entrypoint/loadComboboxMessagesNoSideEffects.d.ts.map +1 -0
  249. package/dist-types/components/validate-messages/src/per-entrypoint/loadFormCoreMessagesNoSideEffects.d.ts +9 -0
  250. package/dist-types/components/validate-messages/src/per-entrypoint/loadFormCoreMessagesNoSideEffects.d.ts.map +1 -0
  251. package/dist-types/components/validate-messages/src/per-entrypoint/loadInputTelMessagesNoSideEffects.d.ts +9 -0
  252. package/dist-types/components/validate-messages/src/per-entrypoint/loadInputTelMessagesNoSideEffects.d.ts.map +1 -0
  253. package/dist-types/exports/validate-messages-no-side-effects.d.ts +3 -0
  254. package/dist-types/tsconfig.tsbuildinfo +1 -1
  255. package/docs/components/checkbox-group/overview.md +2 -2
  256. package/docs/components/collapsible/overview.md +1 -1
  257. package/docs/components/combobox/overview.md +1 -1
  258. package/docs/components/combobox/use-cases.md +1 -1
  259. package/docs/components/dialog/overview.md +1 -1
  260. package/docs/components/fieldset/overview.md +5 -5
  261. package/docs/components/form/overview.md +3 -3
  262. package/docs/components/icon/use-cases.md +1 -1
  263. package/docs/components/input/overview.md +1 -1
  264. package/docs/components/input-amount/overview.md +3 -3
  265. package/docs/components/input-date/overview.md +3 -3
  266. package/docs/components/input-datepicker/overview.md +5 -5
  267. package/docs/components/input-email/overview.md +2 -2
  268. package/docs/components/input-file/overview.md +1 -1
  269. package/docs/components/input-iban/overview.md +2 -2
  270. package/docs/components/input-range/overview.md +4 -6
  271. package/docs/components/input-range/use-cases.md +40 -48
  272. package/docs/components/input-stepper/overview.md +8 -8
  273. package/docs/components/input-stepper/use-cases.md +30 -21
  274. package/docs/components/input-tel/overview.md +1 -1
  275. package/docs/components/input-tel/use-cases.md +6 -6
  276. package/docs/components/input-tel-dropdown/overview.md +1 -1
  277. package/docs/components/radio-group/overview.md +3 -3
  278. package/docs/components/select-rich/use-cases.md +1 -1
  279. package/docs/components/tabs/examples.md +1 -1
  280. package/docs/fundamentals/index.md +4 -4
  281. package/docs/fundamentals/node-tools/providence-analytics/LocalConfiguration.md +1 -1
  282. package/docs/fundamentals/node-tools/providence-analytics/QueryResult.md +1 -1
  283. package/docs/fundamentals/node-tools/providence-analytics/analyzer.md +1 -1
  284. package/docs/fundamentals/node-tools/providence-analytics/dashboard.md +1 -1
  285. package/docs/fundamentals/node-tools/providence-analytics/overview.md +3 -3
  286. package/docs/fundamentals/node-tools/publish-docs/overview.md +3 -3
  287. package/docs/fundamentals/node-tools/rocket-preset-extend-lion-docs/overview.md +2 -2
  288. package/docs/fundamentals/rationales/accessibility.md +1 -1
  289. package/docs/fundamentals/systems/core/SlotMixin.md +1 -1
  290. package/docs/fundamentals/systems/core/overview.md +1 -1
  291. package/docs/fundamentals/systems/form/formatting-and-parsing.md +4 -4
  292. package/docs/fundamentals/systems/form/model-value.md +1 -1
  293. package/docs/fundamentals/systems/form/overview.md +28 -28
  294. package/docs/fundamentals/systems/form/validate.md +1 -1
  295. package/docs/fundamentals/systems/localize/overview.md +4 -4
  296. package/docs/fundamentals/systems/overlays/assets/demo-el-using-overlaymixin.mjs +2 -1
  297. package/docs/fundamentals/systems/overlays/configuration.md +2 -2
  298. package/docs/fundamentals/systems/overlays/overview.md +5 -5
  299. package/docs/fundamentals/systems/overlays/use-cases.md +2 -2
  300. package/docs/fundamentals/tools/ajax/overview.md +2 -1
  301. package/docs/fundamentals/tools/helpers/overview.md +1 -1
  302. package/docs/fundamentals/tools/singleton-manager/overview.md +4 -4
  303. package/docs/guides/how-to/create-a-custom-field.md +5 -5
  304. package/docs/guides/how-to/create-a-form.md +4 -4
  305. package/docs/guides/how-to/extend-a-native-input.md +2 -2
  306. package/docs/guides/index.md +8 -8
  307. package/docs/guides/principles/index.md +5 -5
  308. package/docs/guides/principles/styling.md +1 -1
  309. package/exports/validate-messages-no-side-effects.js +3 -0
  310. package/package.json +3 -1
  311. package/validate-messages-no-side-effects.js +3 -0
@@ -19,11 +19,11 @@ import '@lion/ui/define/lion-checkbox.js';
19
19
  </lion-checkbox-group>
20
20
  ```
21
21
 
22
- > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/form/overview.md)'s serialization result.
22
+ > Make sure that the checkbox-group also has a name attribute, this is necessary for our [form](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/form/overview.md)'s serialization result.
23
23
 
24
24
  ## Features
25
25
 
26
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/fieldset/overview.md),
26
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/fieldset/overview.md),
27
27
  it has all the features a fieldset has.
28
28
 
29
29
  ## Installation
@@ -22,7 +22,7 @@ export const main = () => html`
22
22
  ## Features
23
23
 
24
24
  - Use `opened` attribute or `toggle()` method to render default open.
25
- - `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/button/overview.md) or native `button` with custom styling.
25
+ - `invoker` slot can be custom template e.g. our [button](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/button/overview.md) or native `button` with custom styling.
26
26
  - Observe the state with the help of `@opened-changed` event.
27
27
  - `show()` and `hide()` are helper methods to hide or show the content from outside.
28
28
 
@@ -33,7 +33,7 @@ export const main = () => html`
33
33
  `;
34
34
  ```
35
35
 
36
- [...show more](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/combobox/extensions.md)
36
+ [...show more](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/combobox/extensions.md)
37
37
 
38
38
  ## Features
39
39
 
@@ -456,4 +456,4 @@ export const complexObjectChoiceValue = () => html` <complex-object-combobox
456
456
  ## Listbox compatibility
457
457
 
458
458
  All configurations that can be applied to `lion-listbox`, can be applied to `lion-combobox` as well.
459
- See the [listbox documentation](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/listbox/overview.md) for more information.
459
+ See the [listbox documentation](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/listbox/overview.md) for more information.
@@ -54,6 +54,6 @@ import '@lion/ui/define/lion-dialog.js';
54
54
  ## Changing the configuration
55
55
 
56
56
  You can use the `.config` property on the dialog to change the configuration.
57
- The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/overlays/configuration.md).
57
+ The documentation of the full config object can be found in the `overlays` folder or here in [Overlay System - Configuration](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/overlays/configuration.md).
58
58
 
59
59
  The `config` property uses a setter to merge the passed configuration with the current, so you only **overwrite what you pass** when updating `config`.
@@ -20,9 +20,9 @@ export const main = () => html`
20
20
 
21
21
  We have three specific fieldset implementations:
22
22
 
23
- - [form](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/form/overview.md)
24
- - [checkbox-group](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/checkbox-group/overview.md)
25
- - [radio-group](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/radio-group/overview.md)
23
+ - [form](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/form/overview.md)
24
+ - [checkbox-group](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/checkbox-group/overview.md)
25
+ - [radio-group](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/radio-group/overview.md)
26
26
 
27
27
  A native fieldset element should always have a legend-element for a11y purposes.
28
28
  However, our fieldset element is not native and should not have a legend-element.
@@ -31,8 +31,8 @@ Our fieldset instead has a label attribute or you can add a label with a div- or
31
31
  ## Features
32
32
 
33
33
  - Easy retrieval of form data based on field names
34
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/interaction-states.md)
35
- - Can have [validate](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
34
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/interaction-states.md)
35
+ - Can have [validate](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md) on fieldset level and shows the validation feedback below the fieldset
36
36
  - Can disable input fields on fieldset level
37
37
  - Accessible out of the box
38
38
 
@@ -8,7 +8,7 @@ import '@lion/ui/define/lion-form.js';
8
8
  ```
9
9
 
10
10
  A web component that enhances the functionality of the native `form` component.
11
- It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/overview.md).
11
+ It is designed to interact with (instances of) the [form controls](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/overview.md).
12
12
 
13
13
  ```js preview-story
14
14
  export const main = () => html`
@@ -26,11 +26,11 @@ export const main = () => html`
26
26
  - Data synchronization with models
27
27
  - Easy retrieval of form data based on field names
28
28
  - Advanced validation possibilities
29
- - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/interaction-states.md)
29
+ - Advanced user interaction scenarios via [interaction states](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/interaction-states.md)
30
30
  - Registration mechanism for form controls
31
31
  - Accessible out of the box
32
32
 
33
- For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/overview.md).
33
+ For more information about fields that are designed for our `form`, please read [form system](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/overview.md).
34
34
 
35
35
  ## Installation
36
36
 
@@ -26,7 +26,7 @@ icons.addIconResolver('lion', (iconset, name) => {
26
26
  ## Icon sets
27
27
 
28
28
  Icons are displayed using icon sets. These are collections of icons, lazily loaded on demand for performance.
29
- See the [system documentation](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
29
+ See the [system documentation](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/icon/overview.md) to learn more about icon sets.
30
30
 
31
31
  ```js preview-story
32
32
  export const iconSets = () => html`
@@ -23,7 +23,7 @@ export const main = () => html`<lion-input label="First Name"></lion-input>`;
23
23
  - **before**: does not have an active use case yet, but the option is in place.
24
24
  - **after**: can be used to show a currency or percentage.
25
25
  - Delegates attributes like `type`, `disabled`, `placeholder` and `readonly` to the native input.
26
- - Can make use of [validation](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md).
26
+ - Can make use of [validation](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md).
27
27
 
28
28
  ## Installation
29
29
 
@@ -24,13 +24,13 @@ export const main = () => {
24
24
 
25
25
  ## Features
26
26
 
27
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md)
28
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
27
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md)
28
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
29
29
  - Option to show currency as a suffix
30
30
  - Option to override locale to change the formatting and parsing
31
31
  - Option to provide additional format options overrides
32
32
  - Default label in different languages
33
- - Can make use of number specific [validators](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
33
+ - Can make use of number specific [validators](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
34
34
  - IsNumber (default)
35
35
  - MinNumber
36
36
  - MaxNumber
@@ -16,11 +16,11 @@ export const main = () => html` <lion-input-date label="Date"></lion-input-date>
16
16
 
17
17
  ## Features
18
18
 
19
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md)
20
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md)
20
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
21
  - Option to override locale to change the formatting and parsing
22
22
  - Default label in different languages
23
- - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
23
+ - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
24
24
  - IsDate (default)
25
25
  - MinDate
26
26
  - MaxDate
@@ -2,7 +2,7 @@
2
2
 
3
3
  A web component based on the date text input field. Its purpose is to provide a way for users to fill in a date with a datepicker.
4
4
  For an input field with a big range, such as `birthday-input`, a datepicker is not the best choice due to the high variance between possible inputs.
5
- We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-date/overview.md) for this.
5
+ We encourage using our standard [input-date](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-date/overview.md) for this.
6
6
 
7
7
  ```js script
8
8
  import { html } from '@mdjs/mdjs-preview';
@@ -18,11 +18,11 @@ export const main = () => {
18
18
  ## Features
19
19
 
20
20
  - Input field with a datepicker to help to choose a date
21
- - Based on our [input-date](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-date/overview.md)
22
- - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/calendar/overview.md) inside the datepicker
23
- - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
21
+ - Based on our [input-date](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-date/overview.md)
22
+ - Makes use of our [calendar](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/calendar/overview.md) inside the datepicker
23
+ - Makes use of [formatDate](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/localize/dates.md) for formatting and parsing.
24
24
  - Option to overwrite locale to change the formatting and parsing
25
- - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
25
+ - Can make use of date specific [validators](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
26
26
  - IsDate (default)
27
27
  - MinDate
28
28
  - MaxDate
@@ -15,8 +15,8 @@ export const main = () => {
15
15
 
16
16
  ## Features
17
17
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md)
19
- - Makes use of email [validators](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md)
19
+ - Makes use of email [validators](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
20
20
  - IsEmail (default)
21
21
 
22
22
  ## Installation
@@ -15,7 +15,7 @@ export const main = () => {
15
15
 
16
16
  ## Features
17
17
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md)
18
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md)
19
19
  - Default labels and validation messages in different languages
20
20
  - Options for multi file upload and drop-zone.
21
21
 
@@ -16,9 +16,9 @@ export const main = () => {
16
16
 
17
17
  ## Features
18
18
 
19
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md)
19
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md)
20
20
  - Default label in different languages
21
- - Makes use of IBAN specific [validate](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
21
+ - Makes use of IBAN specific [validate](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/form/validate.md) with corresponding error messages in different languages
22
22
  - IsIBAN (default)
23
23
  - IsCountryIBAN
24
24
  - Parses IBANs automatically
@@ -7,19 +7,17 @@ import { html } from '@mdjs/mdjs-preview';
7
7
  import '@lion/ui/define/lion-input-range.js';
8
8
  ```
9
9
 
10
- ```js preview-story
11
- export const main = () => html`
12
- <lion-input-range min="200" max="500" .modelValue="${300}" label="Input range"></lion-input-range>
13
- `;
10
+ ```html preview-story
11
+ <lion-input-range min="200" max="500" .modelValue="${300}" label="Input range"></lion-input-range>
14
12
  ```
15
13
 
16
14
  ## Features
17
15
 
18
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md).
16
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md).
19
17
  - Shows `modelValue` and `unit` above the range input.
20
18
  - Shows `min` and `max` value after the range input.
21
19
  - Can hide the `min` and `max` value via `no-min-max-labels`.
22
- - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
20
+ - Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.
23
21
 
24
22
  ## Installation
25
23
 
@@ -7,66 +7,58 @@ import '@lion/ui/define/lion-input-range.js';
7
7
 
8
8
  ## Units
9
9
 
10
- ```js preview-story
11
- export const units = () => html`
12
- <style>
13
- lion-input-range {
14
- max-width: 400px;
15
- }
16
- </style>
17
- <lion-input-range
18
- min="0"
19
- max="100"
20
- .modelValue="${50}"
21
- unit="%"
22
- label="Percentage"
23
- ></lion-input-range>
24
- `;
10
+ ```html preview-story
11
+ <style>
12
+ lion-input-range {
13
+ max-width: 400px;
14
+ }
15
+ </style>
16
+ <lion-input-range
17
+ min="0"
18
+ max="100"
19
+ .modelValue="${50}"
20
+ unit="%"
21
+ label="Percentage"
22
+ ></lion-input-range>
25
23
  ```
26
24
 
27
25
  ## Steps
28
26
 
29
- ```js preview-story
30
- export const steps = () => html`
31
- <lion-input-range
32
- style="max-width: 400px;"
33
- min="200"
34
- max="500"
35
- step="50"
36
- .modelValue="${300}"
37
- label="Input range"
38
- help-text="This slider uses increments of 50"
39
- ></lion-input-range>
40
- `;
27
+ ```html preview-story
28
+ <lion-input-range
29
+ style="max-width: 400px;"
30
+ min="200"
31
+ max="500"
32
+ step="50"
33
+ .modelValue="${300}"
34
+ label="Input range"
35
+ help-text="This slider uses increments of 50"
36
+ ></lion-input-range>
41
37
  ```
42
38
 
43
39
  ## Without Min Max Labels
44
40
 
45
- ```js preview-story
46
- export const noMinMaxLabels = () => html`
47
- <lion-input-range
48
- style="max-width: 400px;"
49
- no-min-max-labels
50
- min="0"
51
- max="100"
52
- label="Input range"
53
- ></lion-input-range>
54
- `;
41
+ ```html preview-story
42
+ <lion-input-range
43
+ style="max-width: 400px;"
44
+ no-min-max-labels
45
+ min="0"
46
+ max="100"
47
+ label="Input range"
48
+ ></lion-input-range>
55
49
  ```
56
50
 
57
51
  ## Disabled
58
52
 
59
- ```js preview-story
60
- export const disabled = () => html`
61
- <lion-input-range
62
- style="max-width: 400px;"
63
- disabled
64
- min="200"
65
- max="500"
66
- .modelValue="${300}"
67
- label="Input range"
68
- ></lion-input-range>
69
- `;
53
+ ```html preview-story
54
+ <lion-input-range
55
+ style="max-width: 400px;"
56
+ disabled
57
+ min="200"
58
+ max="500"
59
+ .modelValue="${300}"
60
+ label="Input range"
61
+ ></lion-input-range>
70
62
  ```
71
63
 
72
64
  ## Range Styles
@@ -4,21 +4,21 @@ A web component that enables the user to increase and decrease a numeric value b
4
4
 
5
5
  ```js script
6
6
  import { html } from '@mdjs/mdjs-preview';
7
+ import { loadDefaultFeedbackMessages } from '@lion/ui/validate-messages.js';
7
8
  import '@lion/ui/define/lion-input-stepper.js';
9
+ loadDefaultFeedbackMessages();
8
10
  ```
9
11
 
10
- ```js preview-story
11
- export const main = () => html`
12
- <lion-input-stepper max="5" min="0" name="count">
13
- <label slot="label">RSVP</label>
14
- <div slot="help-text">Max. 5 guests</div>
15
- </lion-input-stepper>
16
- `;
12
+ ```html preview-story
13
+ <lion-input-stepper max="5" min="0" name="count">
14
+ <label slot="label">RSVP</label>
15
+ <div slot="help-text">Max. 5 guests</div>
16
+ </lion-input-stepper>
17
17
  ```
18
18
 
19
19
  ## Features
20
20
 
21
- - Based on our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md).
21
+ - Based on our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md).
22
22
  - Set `min` and `max` value to define the range.
23
23
  - Set `step` value in integer or decimal to increase and decrease the value.
24
24
  - Use `ArrowUp` or `ArrowDown` to update the value.
@@ -2,40 +2,49 @@
2
2
 
3
3
  ```js script
4
4
  import { html } from '@mdjs/mdjs-preview';
5
+ import { loadDefaultFeedbackMessages } from '@lion/ui/validate-messages.js';
5
6
  import '@lion/ui/define/lion-input-stepper.js';
7
+ loadDefaultFeedbackMessages();
6
8
  ```
7
9
 
8
- ## Default with no specification
10
+ ## Default
9
11
 
10
12
  When no range or step is defined, it can go infinite with default step value as `1`. You can also specify prefix content using `after` slot.
11
13
 
12
- ```js preview-story
13
- export const defaultMode = () => html`
14
- <label>How old is the existence?</label>
15
- <lion-input-stepper name="year">
16
- <div slot="after">In Billion Years</div>
17
- </lion-input-stepper>
18
- `;
14
+ ```html preview-story
15
+ <lion-input-stepper name="year">
16
+ <label slot="label">How old is the existence?</label>
17
+ <div slot="after" data-description>In Billion Years</div>
18
+ </lion-input-stepper>
19
19
  ```
20
20
 
21
- ## Step and Value
21
+ ## Attributes & Properties
22
+
23
+ ### Step and Value
22
24
 
23
25
  Use `step` attribute to specify the incrementor or decrementor difference and `value` to set the default value.
24
26
 
25
- ```js preview-story
26
- export const steps = () => html`
27
- <p><strong>Min:</strong> 100, <strong>Value:</strong> 200, <strong>Step:</strong> 100</p>
28
- <lion-input-stepper min="100" step="100" name="value" value="200"></lion-input-stepper>
29
- `;
27
+ ```html preview-story
28
+ <lion-input-stepper
29
+ label="Amount of oranges"
30
+ min="100"
31
+ step="100"
32
+ name="value"
33
+ value="200"
34
+ ></lion-input-stepper>
30
35
  ```
31
36
 
32
- ## Range
37
+ ### Range
33
38
 
34
- Use `min` and `max` attribute to specify range.
39
+ Use `min` and `max` attribute to specify a range.
35
40
 
36
- ```js preview-story
37
- export const range = () => html`
38
- <p><strong>Min:</strong> 200, <strong>Max:</strong> 500, <strong>Step:</strong> 100</p>
39
- <lion-input-stepper min="200" max="500" name="value" step="100" value="200"></lion-input-stepper>
40
- `;
41
+ ```html preview-story
42
+ <lion-input-stepper
43
+ label="Amount of oranges"
44
+ min="200"
45
+ max="500"
46
+ name="value"
47
+ step="100"
48
+ value="200"
49
+ ></lion-input-stepper>
41
50
  ```
@@ -39,7 +39,7 @@ export const main = () => {
39
39
 
40
40
  ## Features
41
41
 
42
- - Extends our [input](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input/overview.md)
42
+ - Extends our [input](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input/overview.md)
43
43
  - Shows a mobile telephone keypad on mobile (by having a native `<input inputmode="tel">` inside)
44
44
  - Can be configured with a list of allowed region codes
45
45
  - Will be preconfigured with region derived from locale
@@ -22,7 +22,7 @@ Say we have the following telephone number from Madrid, Spain: `+34919930432`.
22
22
  It contains a [country code](https://en.wikipedia.org/wiki/Country_code) (34), an [area code](https://en.wikipedia.org/wiki/Telephone_numbering_plan#Area_code) (91) and a [dial code](https://en.wikipedia.org/wiki/Mobile_dial_code) (+34 91).
23
23
  Input Tel interprets phone numbers based on their [region code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2): a two character long region representation('ES' in the telephone number above).
24
24
 
25
- The table below lists all possible regions worldwide. When [allowed regions](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel/#allowed-regions) are not configured,
25
+ The table below lists all possible regions worldwide. When [allowed regions](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel/#allowed-regions) are not configured,
26
26
  all of them will be supported as values of Input Tel.
27
27
 
28
28
  ```js story
@@ -37,11 +37,11 @@ export const regionCodesTable = () => {
37
37
  The active region (accessible via readonly accessor `.activeRegion`) determines how validation and formatting
38
38
  should be applied. It is dependent on the following factors:
39
39
 
40
- - [allowed regions](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel/#allowed-regions): a list that determines what is allowed to become .activeRegion. If
41
- [.allowedRegions has only one entry](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel/#restrict-to-one-region), .activeRegion will always be this value.
40
+ - [allowed regions](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel/#allowed-regions): a list that determines what is allowed to become .activeRegion. If
41
+ [.allowedRegions has only one entry](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel/#restrict-to-one-region), .activeRegion will always be this value.
42
42
  - the modelValue or viewValue: once it contains sufficient info to derive its region code (and
43
- the derived code is inside [allowed regions](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel/#allowed-regions) if configured)
44
- - active locale (and the derived locale is inside [allowed regions](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel/#allowed-regions) if configured)
43
+ the derived code is inside [allowed regions](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel/#allowed-regions) if configured)
44
+ - active locale (and the derived locale is inside [allowed regions](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel/#allowed-regions) if configured)
45
45
 
46
46
  What follows from the list above is that .activeRegion can change dynamically, after a value
47
47
  change in the text box by the user (or when locales or allowed regions would be changed by the
@@ -130,7 +130,7 @@ export const heuristic = () => {
130
130
  Once it is configured, validation and formatting will be restricted to those
131
131
  values that are present in this list.
132
132
 
133
- > Note that for [InputTelDropdown](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel-dropdown/index.md), only allowed regions will
133
+ > Note that for [InputTelDropdown](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel-dropdown/index.md), only allowed regions will
134
134
  > be shown in the dropdown list.
135
135
 
136
136
  ```js preview-story
@@ -19,7 +19,7 @@ export const main = () => {
19
19
 
20
20
  ## Features
21
21
 
22
- - Extends our [input-tel](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/input-tel/overview.md)
22
+ - Extends our [input-tel](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/input-tel/overview.md)
23
23
  - Shows dropdown list with all possible regions
24
24
  - Shows only allowed regions in dropdown list when .allowedRegions is configured
25
25
  - Highlights regions on top of dropdown list when .preferredRegions is configured
@@ -20,12 +20,12 @@ export const main = () => html`
20
20
  `;
21
21
  ```
22
22
 
23
- - Make sure that to use a name attribute as it is necessary for our [form](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/form/overview.md)'s serialization result.
24
- - If you have many options for a user to pick from, consider using our [select](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/select/overview.md) instead.
23
+ - Make sure that to use a name attribute as it is necessary for our [form](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/form/overview.md)'s serialization result.
24
+ - If you have many options for a user to pick from, consider using our [select](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/select/overview.md) instead.
25
25
 
26
26
  ## Features
27
27
 
28
- Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/fieldset/overview.md), it has all the features a fieldset has.
28
+ Since it extends from our [fieldset](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/fieldset/overview.md), it has all the features a fieldset has.
29
29
 
30
30
  - Get or set the checked value of the group:
31
31
  - modelValue (default) - `checkedValue()`
@@ -302,7 +302,7 @@ LionSelectRich will give it acces to:
302
302
  - LionSelectRich itself, via `.hostElement`
303
303
 
304
304
  Code of an advanced custom invoker is shown below (this is the code for the
305
- invoker used in [IntlSelectRich](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/components/select-rich/examples.md)).
305
+ invoker used in [IntlSelectRich](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/components/select-rich/examples.md)).
306
306
  The invoker is usually added in the invoker slot of the LionSelectRich subclass.
307
307
  However, it would also be possible for an application developer to provide the invoker
308
308
  by putting it in light dom:
@@ -9,7 +9,7 @@ import './src/lea-tab-panel.js';
9
9
 
10
10
  ## Lea Tabs
11
11
 
12
- Learn how to create the `lea tabs` in our ["introducing lion" blogpost](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/blog/ing-open-sources-lion.md).
12
+ Learn how to create the `lea tabs` in our ["introducing lion" blogpost](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/blog/ing-open-sources-lion.md).
13
13
 
14
14
  ```js preview-story
15
15
  export const main = () => html`
@@ -9,11 +9,11 @@ Here you find more details about what we offer.
9
9
 
10
10
  Let's see what each section describes.
11
11
 
12
- 1. [Systems](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/systems/core/overview.md) <br>
12
+ 1. [Systems](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/systems/core/overview.md) <br>
13
13
  These are the fundamental systems that power all of our components.
14
- 2. [Tools](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/tools/helpers/overview.md) <br>
14
+ 2. [Tools](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/tools/helpers/overview.md) <br>
15
15
  Frontend Tools useful for web development but are not visual and therefore are not components.
16
- 3. [Node Tools](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md) <br>
16
+ 3. [Node Tools](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/node-tools/babel-plugin-extend-docs/overview.md) <br>
17
17
  Node tools to analyse the code and for extending the documentation.
18
- 4. [Rationales](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/rationales/side-effects.md) <br>
18
+ 4. [Rationales](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/rationales/side-effects.md) <br>
19
19
  The reasoning behind some of our decisions.
@@ -45,7 +45,7 @@ export default {
45
45
  ### referenceCollections
46
46
 
47
47
  A list of file system paths. They can be defined relative from the current project root or they can be full paths.
48
- When a [MatchAnalyzer](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/node-tools/providence-analytics/analyzer.md) like `match-imports` or `match-subclasses` is used, the default reference(s) can be configured here. For instance: ['/path/to/@lion/ui/form.js']
48
+ When a [MatchAnalyzer](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/node-tools/providence-analytics/analyzer.md) like `match-imports` or `match-subclasses` is used, the default reference(s) can be configured here. For instance: ['/path/to/@lion/ui/form.js']
49
49
 
50
50
  An example:
51
51
 
@@ -108,4 +108,4 @@ QueryOutput structure could be simplified in the future.
108
108
 
109
109
  The output files stored in the file system always need to be machine independent:
110
110
  this means that all machine specific information, like a complete filepath, needs to be removed from a QueryOutput (paths relative from project root are still allowed).
111
- In that way, the caching mechanism (based on hash comparisons) as described in [Analyzer](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/node-tools/providence-analytics/analyzer.md) is guaranteed to work across different machines.
111
+ In that way, the caching mechanism (based on hash comparisons) as described in [Analyzer](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/node-tools/providence-analytics/analyzer.md) is guaranteed to work across different machines.
@@ -7,7 +7,7 @@ A few examples are:
7
7
  - find-exports
8
8
  - match-imports
9
9
 
10
- An analyzer will give back a [QueryResult](https://github.com/ing-bank/lion/blob/e930b7b667ceaf66c2fab86a76044d0260b934fa/docs/fundamentals/node-tools/providence-analytics/QueryResult.md) that will be written to the file system by Providence.
10
+ An analyzer will give back a [QueryResult](https://github.com/ing-bank/lion/blob/e97a4adf05b6dd1929a3155f1834fce81d810bbe/docs/fundamentals/node-tools/providence-analytics/QueryResult.md) that will be written to the file system by Providence.
11
11
  All analyzers need to extend from the `Analyzer` base class, found in `src/program/analyzers/helpers`.
12
12
 
13
13
  ## Public api