@nldd/design-system 0.8.82 → 0.8.84

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 (487) hide show
  1. package/custom-elements.json +3849 -542
  2. package/dist/components/actions/button/button.d.ts +9 -2
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.js +15 -2
  5. package/dist/components/actions/button/button.js.map +1 -1
  6. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  7. package/dist/components/actions/button/button.template.js +2 -0
  8. package/dist/components/actions/button/button.template.js.map +1 -1
  9. package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
  10. package/dist/components/actions/icon-button/icon-button.js +2 -2
  11. package/dist/components/actions/menu/menu.d.ts +3 -1
  12. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  13. package/dist/components/actions/menu/menu.js +22 -11
  14. package/dist/components/actions/menu/menu.js.map +1 -1
  15. package/dist/components/actions/toolbar/toolbar.styles.js +2 -2
  16. package/dist/components/components.js +2911 -1157
  17. package/dist/components/content/avatar/avatar.d.ts +6 -0
  18. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  19. package/dist/components/content/avatar/avatar.js +9 -0
  20. package/dist/components/content/avatar/avatar.js.map +1 -1
  21. package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
  22. package/dist/components/content/avatar/avatar.styles.js +5 -1
  23. package/dist/components/content/avatar/avatar.styles.js.map +1 -1
  24. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  25. package/dist/components/content/avatar/avatar.template.js +2 -0
  26. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  27. package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
  28. package/dist/components/content/avatar-group/avatar-group.styles.js +6 -16
  29. package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
  30. package/dist/components/content/blockquote/blockquote.d.ts +3 -4
  31. package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
  32. package/dist/components/content/blockquote/blockquote.js +3 -4
  33. package/dist/components/content/blockquote/blockquote.js.map +1 -1
  34. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  35. package/dist/components/content/icon/icon-aliases.js +80 -6
  36. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  37. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  38. package/dist/components/content/icon/icon-gallery-status.js +57 -94
  39. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  40. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  41. package/dist/components/content/icon/icon-registry.js +36 -4
  42. package/dist/components/content/icon/icon-registry.js.map +1 -1
  43. package/dist/components/content/icon/icon.d.ts +8 -2
  44. package/dist/components/content/icon/icon.d.ts.map +1 -1
  45. package/dist/components/content/icon/icon.js +17 -2
  46. package/dist/components/content/icon/icon.js.map +1 -1
  47. package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
  48. package/dist/components/content/icon/icon.styles.js +8 -0
  49. package/dist/components/content/icon/icon.styles.js.map +1 -1
  50. package/dist/components/content/image/image.d.ts +1 -1
  51. package/dist/components/content/image/image.js +1 -1
  52. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  53. package/dist/components/content/image/image.styles.js +11 -0
  54. package/dist/components/content/image/image.styles.js.map +1 -1
  55. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +30 -30
  56. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +30 -30
  57. package/dist/components/content/rich-text/rich-text.d.ts +20 -20
  58. package/dist/components/content/rich-text/rich-text.js +20 -20
  59. package/dist/components/content/text/text.d.ts +50 -0
  60. package/dist/components/content/text/text.d.ts.map +1 -0
  61. package/dist/components/content/text/text.js +81 -0
  62. package/dist/components/content/text/text.js.map +1 -0
  63. package/dist/components/content/text/text.styles.d.ts +2 -0
  64. package/dist/components/content/text/text.styles.d.ts.map +1 -0
  65. package/dist/components/content/text/text.styles.js +116 -0
  66. package/dist/components/content/text/text.styles.js.map +1 -0
  67. package/dist/components/content/text/text.template.d.ts +3 -0
  68. package/dist/components/content/text/text.template.d.ts.map +1 -0
  69. package/dist/components/content/text/text.template.js +7 -0
  70. package/dist/components/content/text/text.template.js.map +1 -0
  71. package/dist/components/content/title/title.d.ts +4 -4
  72. package/dist/components/content/title/title.js +4 -4
  73. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  74. package/dist/components/content/title/title.styles.js +9 -13
  75. package/dist/components/content/title/title.styles.js.map +1 -1
  76. package/dist/components/content/tooltip/tooltip.d.ts +1 -1
  77. package/dist/components/content/tooltip/tooltip.js +1 -1
  78. package/dist/components/{decorate-BKn10QQi.js → decorate-lwt_OrAG.js} +1 -1
  79. package/dist/components/{dist-TpIL8G4G.js → dist-762GHPyH.js} +3 -3
  80. package/dist/components/{dist-OBifyiJS.js → dist-BB7TxeMK.js} +2 -2
  81. package/dist/components/{dist-CJR_Rwhh.js → dist-BJI4-6iQ.js} +1 -1
  82. package/dist/components/{dist-C400RcFU.js → dist-B_3OW7pC.js} +1 -1
  83. package/dist/components/{dist-afrAoubg.js → dist-C09E9-dJ.js} +34 -34
  84. package/dist/components/{dist-Ccw7ZfsU.js → dist-C6gnorjP.js} +4 -3
  85. package/dist/components/{dist-bO14jlsr.js → dist-CRsR6ckU.js} +1 -1
  86. package/dist/components/{dist-C0PiB1dr.js → dist-CjaG8dOI.js} +2 -2
  87. package/dist/components/{dist-CCg5Mso_.js → dist-DZoFKUO-.js} +1 -1
  88. package/dist/components/{dist-Bq4xc7Bm.js → dist-DaavuU6W.js} +14 -3
  89. package/dist/components/{dist-BYVOPNHp.js → dist-la_b3ZSq.js} +1 -1
  90. package/dist/components/forms/form/form.d.ts +76 -22
  91. package/dist/components/forms/form/form.d.ts.map +1 -1
  92. package/dist/components/forms/form/form.js +127 -22
  93. package/dist/components/forms/form/form.js.map +1 -1
  94. package/dist/components/forms/form-actions/form-actions.d.ts +14 -15
  95. package/dist/components/forms/form-actions/form-actions.d.ts.map +1 -1
  96. package/dist/components/forms/form-actions/form-actions.js +14 -15
  97. package/dist/components/forms/form-actions/form-actions.js.map +1 -1
  98. package/dist/components/forms/form-field/form-field.d.ts +42 -39
  99. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  100. package/dist/components/forms/form-field/form-field.js +79 -111
  101. package/dist/components/forms/form-field/form-field.js.map +1 -1
  102. package/dist/components/forms/form-field/form-field.styles.d.ts +0 -1
  103. package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  104. package/dist/components/forms/form-field/form-field.styles.js +7 -73
  105. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  106. package/dist/components/forms/form-field/form-field.template.d.ts +0 -2
  107. package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
  108. package/dist/components/forms/form-field/form-field.template.js +0 -15
  109. package/dist/components/forms/form-field/form-field.template.js.map +1 -1
  110. package/dist/components/forms/form-section/form-section.d.ts +26 -28
  111. package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
  112. package/dist/components/forms/form-section/form-section.js +27 -29
  113. package/dist/components/forms/form-section/form-section.js.map +1 -1
  114. package/dist/components/forms/validation-list/validation-list.d.ts +193 -0
  115. package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -0
  116. package/dist/components/forms/validation-list/validation-list.js +358 -0
  117. package/dist/components/forms/validation-list/validation-list.js.map +1 -0
  118. package/dist/components/forms/validation-list/validation-list.styles.d.ts +3 -0
  119. package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -0
  120. package/dist/components/forms/validation-list/validation-list.styles.js +58 -0
  121. package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -0
  122. package/dist/components/forms/validation-list/validation-list.template.d.ts +5 -0
  123. package/dist/components/forms/validation-list/validation-list.template.d.ts.map +1 -0
  124. package/dist/components/forms/validation-list/validation-list.template.js +16 -0
  125. package/dist/components/forms/validation-list/validation-list.template.js.map +1 -0
  126. package/dist/components/{icon-CIpJq_cf.js → icon-VTLbdcvZ.js} +104 -11
  127. package/dist/components/{icon-button-BAkUJTn6.js → icon-button-Sne5TwRG.js} +6 -6
  128. package/dist/components/index.d.ts +3 -1
  129. package/dist/components/index.d.ts.map +1 -1
  130. package/dist/components/index.js +3 -1
  131. package/dist/components/index.js.map +1 -1
  132. package/dist/components/inputs/checkbox/checkbox.d.ts +20 -1
  133. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  134. package/dist/components/inputs/checkbox/checkbox.js +32 -2
  135. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  136. package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
  137. package/dist/components/inputs/checkbox/checkbox.template.js +2 -0
  138. package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
  139. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +16 -1
  140. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  141. package/dist/components/inputs/checkbox-field/checkbox-field.js +27 -2
  142. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  143. package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
  144. package/dist/components/inputs/checkbox-field/checkbox-field.template.js +2 -0
  145. package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
  146. package/dist/components/inputs/code-editor/code-editor.d.ts +14 -1
  147. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  148. package/dist/components/inputs/code-editor/code-editor.js +21 -2
  149. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  150. package/dist/components/inputs/combo-box/combo-box.d.ts +15 -2
  151. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  152. package/dist/components/inputs/combo-box/combo-box.js +54 -5
  153. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  154. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  155. package/dist/components/inputs/combo-box/combo-box.styles.js +14 -0
  156. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  157. package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
  158. package/dist/components/inputs/combo-box/combo-box.template.js +27 -20
  159. package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
  160. package/dist/components/inputs/date-field/date-field.d.ts +29 -31
  161. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  162. package/dist/components/inputs/date-field/date-field.js +40 -37
  163. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  164. package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
  165. package/dist/components/inputs/date-field/date-field.styles.js +11 -0
  166. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  167. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  168. package/dist/components/inputs/date-field/date-field.template.js +7 -2
  169. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  170. package/dist/components/inputs/date-picker/date-picker.d.ts +34 -21
  171. package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
  172. package/dist/components/inputs/date-picker/date-picker.js +42 -22
  173. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  174. package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
  175. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  176. package/dist/components/inputs/dropdown/dropdown.js +36 -3
  177. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  178. package/dist/components/inputs/file-field/file-field.d.ts +4 -3
  179. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  180. package/dist/components/inputs/file-field/file-field.js +8 -7
  181. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  182. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  183. package/dist/components/inputs/file-field/file-field.template.js +0 -1
  184. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  185. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +15 -4
  186. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  187. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +20 -8
  188. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  189. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
  190. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +4 -1
  191. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
  192. package/dist/components/inputs/number-field/number-field.d.ts +12 -1
  193. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  194. package/dist/components/inputs/number-field/number-field.js +18 -3
  195. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  196. package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
  197. package/dist/components/inputs/number-field/number-field.styles.js +8 -16
  198. package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
  199. package/dist/components/inputs/password-field/password-field.d.ts +10 -3
  200. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  201. package/dist/components/inputs/password-field/password-field.js +18 -8
  202. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  203. package/dist/components/inputs/password-field/password-field.template.d.ts.map +1 -1
  204. package/dist/components/inputs/password-field/password-field.template.js +3 -1
  205. package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
  206. package/dist/components/inputs/radio-button/radio-button.d.ts +18 -1
  207. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  208. package/dist/components/inputs/radio-button/radio-button.js +27 -2
  209. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  210. package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
  211. package/dist/components/inputs/radio-button/radio-button.template.js +1 -0
  212. package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
  213. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +14 -1
  214. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
  215. package/dist/components/inputs/radio-button-field/radio-button-field.js +22 -2
  216. package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
  217. package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
  218. package/dist/components/inputs/radio-button-field/radio-button-field.template.js +1 -0
  219. package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
  220. package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +11 -0
  221. package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
  222. package/dist/components/inputs/radio-button-group/radio-button-group.js +21 -0
  223. package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
  224. package/dist/components/inputs/search-field/search-field.d.ts +23 -1
  225. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  226. package/dist/components/inputs/search-field/search-field.js +37 -3
  227. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  228. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  229. package/dist/components/inputs/search-field/search-field.template.js +4 -0
  230. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  231. package/dist/components/inputs/segmented-control/segmented-control.d.ts +28 -0
  232. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  233. package/dist/components/inputs/segmented-control/segmented-control.js +52 -2
  234. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  235. package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
  236. package/dist/components/inputs/segmented-control/segmented-control.template.js +1 -0
  237. package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
  238. package/dist/components/inputs/stepper/stepper.d.ts +14 -1
  239. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  240. package/dist/components/inputs/stepper/stepper.js +21 -2
  241. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  242. package/dist/components/inputs/switch/switch.d.ts +20 -1
  243. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  244. package/dist/components/inputs/switch/switch.js +31 -2
  245. package/dist/components/inputs/switch/switch.js.map +1 -1
  246. package/dist/components/inputs/switch/switch.template.d.ts.map +1 -1
  247. package/dist/components/inputs/switch/switch.template.js +2 -0
  248. package/dist/components/inputs/switch/switch.template.js.map +1 -1
  249. package/dist/components/inputs/switch-field/switch-field.d.ts +18 -1
  250. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  251. package/dist/components/inputs/switch-field/switch-field.js +25 -1
  252. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  253. package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
  254. package/dist/components/inputs/switch-field/switch-field.template.js +2 -0
  255. package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
  256. package/dist/components/inputs/text-editor/text-editor.d.ts +14 -1
  257. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  258. package/dist/components/inputs/text-editor/text-editor.js +21 -2
  259. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  260. package/dist/components/inputs/text-field/text-field.d.ts +31 -3
  261. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  262. package/dist/components/inputs/text-field/text-field.js +65 -7
  263. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  264. package/dist/components/inputs/text-field/text-field.template.d.ts.map +1 -1
  265. package/dist/components/inputs/text-field/text-field.template.js +5 -1
  266. package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
  267. package/dist/components/inputs/time-field/time-field.d.ts +33 -35
  268. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  269. package/dist/components/inputs/time-field/time-field.js +43 -40
  270. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  271. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  272. package/dist/components/inputs/time-field/time-field.styles.js +12 -0
  273. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  274. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  275. package/dist/components/inputs/time-field/time-field.template.js +7 -2
  276. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  277. package/dist/components/inputs/time-picker/time-picker.d.ts +34 -19
  278. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  279. package/dist/components/inputs/time-picker/time-picker.js +42 -22
  280. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  281. package/dist/components/inputs/toggle-button/toggle-button.d.ts +22 -1
  282. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  283. package/dist/components/inputs/toggle-button/toggle-button.js +35 -2
  284. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  285. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  286. package/dist/components/inputs/toggle-button/toggle-button.template.js +3 -0
  287. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  288. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +27 -0
  289. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  290. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +46 -0
  291. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  292. package/dist/components/inputs/token-field/token-field.d.ts +7 -1
  293. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  294. package/dist/components/inputs/token-field/token-field.js +14 -1
  295. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  296. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  297. package/dist/components/layout/app-view/app-view.js +12 -0
  298. package/dist/components/layout/app-view/app-view.js.map +1 -1
  299. package/dist/components/layout/box/box.d.ts +4 -4
  300. package/dist/components/layout/box/box.d.ts.map +1 -1
  301. package/dist/components/layout/box/box.js +4 -4
  302. package/dist/components/layout/box/box.js.map +1 -1
  303. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  304. package/dist/components/layout/box/box.styles.js +4 -6
  305. package/dist/components/layout/box/box.styles.js.map +1 -1
  306. package/dist/components/layout/card/card.d.ts +18 -19
  307. package/dist/components/layout/card/card.d.ts.map +1 -1
  308. package/dist/components/layout/card/card.js +18 -19
  309. package/dist/components/layout/card/card.js.map +1 -1
  310. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  311. package/dist/components/layout/card/card.styles.js +1 -0
  312. package/dist/components/layout/card/card.styles.js.map +1 -1
  313. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  314. package/dist/components/layout/collection/collection.js +6 -2
  315. package/dist/components/layout/collection/collection.js.map +1 -1
  316. package/dist/components/layout/divider/divider.d.ts +1 -1
  317. package/dist/components/layout/divider/divider.js +1 -1
  318. package/dist/components/layout/popover/popover.d.ts +1 -1
  319. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  320. package/dist/components/layout/popover/popover.js +15 -2
  321. package/dist/components/layout/popover/popover.js.map +1 -1
  322. package/dist/components/layout/sheet/sheet.d.ts +1 -1
  323. package/dist/components/layout/sheet/sheet.js +2 -2
  324. package/dist/components/layout/sheet/sheet.js.map +1 -1
  325. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  326. package/dist/components/layout/sheet/sheet.styles.js +15 -3
  327. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  328. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +8 -0
  329. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
  330. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +29 -11
  331. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  332. package/dist/components/layout/window/window.d.ts +20 -21
  333. package/dist/components/layout/window/window.d.ts.map +1 -1
  334. package/dist/components/layout/window/window.js +21 -22
  335. package/dist/components/layout/window/window.js.map +1 -1
  336. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +41 -12
  337. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  338. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +47 -17
  339. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  340. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -1
  341. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +42 -13
  342. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -1
  343. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -1
  344. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +12 -4
  345. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -1
  346. package/dist/components/lists-and-tables/list/list.d.ts +168 -61
  347. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  348. package/dist/components/lists-and-tables/list/list.i18n.d.ts +0 -1
  349. package/dist/components/lists-and-tables/list/list.i18n.d.ts.map +1 -1
  350. package/dist/components/lists-and-tables/list/list.i18n.js +0 -1
  351. package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
  352. package/dist/components/lists-and-tables/list/list.js +361 -122
  353. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  354. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  355. package/dist/components/lists-and-tables/list/list.styles.js +5 -0
  356. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  357. package/dist/components/lists-and-tables/list/list.template.d.ts +1 -3
  358. package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
  359. package/dist/components/lists-and-tables/list/list.template.js +2 -7
  360. package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
  361. package/dist/components/lists-and-tables/list-item/list-item.d.ts +134 -23
  362. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  363. package/dist/components/lists-and-tables/list-item/list-item.js +354 -61
  364. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  365. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  366. package/dist/components/lists-and-tables/list-item/list-item.styles.js +116 -34
  367. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  368. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  369. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  370. package/dist/components/lists-and-tables/list-item/list-item.template.js +5 -2
  371. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  372. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +116 -0
  373. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -0
  374. package/dist/components/lists-and-tables/{list-item-action/list-item-action.js → list-item-segment/list-item-segment.js} +85 -56
  375. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -0
  376. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts +2 -0
  377. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -0
  378. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +179 -0
  379. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -0
  380. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +3 -0
  381. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -0
  382. package/dist/components/lists-and-tables/{list-item-action/list-item-action.template.js → list-item-segment/list-item-segment.template.js} +5 -4
  383. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -0
  384. package/dist/components/lists-and-tables/table/table.d.ts +12 -9
  385. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  386. package/dist/components/lists-and-tables/table/table.i18n.d.ts +0 -1
  387. package/dist/components/lists-and-tables/table/table.i18n.d.ts.map +1 -1
  388. package/dist/components/lists-and-tables/table/table.i18n.js +0 -1
  389. package/dist/components/lists-and-tables/table/table.i18n.js.map +1 -1
  390. package/dist/components/lists-and-tables/table/table.js +26 -16
  391. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  392. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  393. package/dist/components/lists-and-tables/table/table.styles.js +5 -0
  394. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  395. package/dist/components/lists-and-tables/table/table.template.d.ts +1 -1
  396. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  397. package/dist/components/lists-and-tables/table/table.template.js +5 -9
  398. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  399. package/dist/components/navigation/link/link.d.ts +30 -24
  400. package/dist/components/navigation/link/link.d.ts.map +1 -1
  401. package/dist/components/navigation/link/link.js +33 -24
  402. package/dist/components/navigation/link/link.js.map +1 -1
  403. package/dist/components/navigation/link/link.template.js +1 -1
  404. package/dist/components/navigation/link/link.template.js.map +1 -1
  405. package/dist/components/navigation/menu-bar/menu-bar.d.ts +7 -7
  406. package/dist/components/navigation/menu-bar/menu-bar.js +7 -7
  407. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +23 -23
  408. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +23 -23
  409. package/dist/components/navigation/pagination/pagination.d.ts +4 -4
  410. package/dist/components/navigation/pagination/pagination.js +4 -4
  411. package/dist/components/navigation/skip-link/skip-link.d.ts +7 -7
  412. package/dist/components/navigation/skip-link/skip-link.js +7 -7
  413. package/dist/components/navigation/tab-bar/tab-bar.d.ts +5 -3
  414. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  415. package/dist/components/navigation/tab-bar/tab-bar.js +18 -13
  416. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  417. package/dist/components/navigation/tab-bar/tab-bar.styles.js +8 -8
  418. package/dist/components/navigation/tab-bar/tab-bar.template.js +5 -5
  419. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  420. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +15 -15
  421. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +15 -15
  422. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  423. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +14 -2
  424. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  425. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +2 -2
  426. package/dist/components/navigation/top-title-bar/top-title-bar.js +2 -2
  427. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
  428. package/dist/components/status-and-feedback/badge/badge.d.ts +8 -2
  429. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  430. package/dist/components/status-and-feedback/badge/badge.js +17 -1
  431. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  432. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  433. package/dist/components/status-and-feedback/badge/badge.styles.js +41 -10
  434. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  435. package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
  436. package/dist/components/status-and-feedback/badge/badge.template.js.map +1 -1
  437. package/dist/components/status-and-feedback/banner/banner.styles.js +2 -2
  438. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +37 -36
  439. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  440. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +37 -36
  441. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  442. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
  443. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +2 -2
  444. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  445. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  446. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +7 -0
  447. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  448. package/dist/components/status-and-feedback/notification/notification-region.js +1 -1
  449. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +29 -28
  450. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  451. package/dist/components/status-and-feedback/status-bar/status-bar.js +29 -28
  452. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  453. package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +1 -1
  454. package/dist/components/{visibility-mixin-GxbwkBb1.js → visibility-mixin-vbfhyo7f.js} +1 -1
  455. package/dist/components/{with-translations-DzAdFTK8.js → with-translations-CqUV9S5g.js} +1 -1
  456. package/dist/css/form-section.css +28 -46
  457. package/dist/css/form.css +7 -13
  458. package/dist/css/rich-text.css +5 -5
  459. package/dist/css/variables.css +133 -8
  460. package/dist/nldd.min.js +1382 -875
  461. package/dist/types/vue.d.ts +530 -336
  462. package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
  463. package/dist/utilities/codemirror/codemirror-element.js +5 -0
  464. package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
  465. package/dist/utilities/described-by-mixin.d.ts +49 -0
  466. package/dist/utilities/described-by-mixin.d.ts.map +1 -0
  467. package/dist/utilities/described-by-mixin.js +109 -0
  468. package/dist/utilities/described-by-mixin.js.map +1 -0
  469. package/dist/utilities/form-associated-mixin.d.ts +5 -0
  470. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  471. package/dist/utilities/form-associated-mixin.js +69 -0
  472. package/dist/utilities/form-associated-mixin.js.map +1 -1
  473. package/dist/utilities/scroll-mode-controller.d.ts +9 -1
  474. package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
  475. package/dist/utilities/scroll-mode-controller.js +10 -2
  476. package/dist/utilities/scroll-mode-controller.js.map +1 -1
  477. package/package.json +21 -9
  478. package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +0 -108
  479. package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +0 -1
  480. package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +0 -1
  481. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +0 -2
  482. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +0 -1
  483. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +0 -145
  484. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +0 -1
  485. package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +0 -3
  486. package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +0 -1
  487. package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +0 -1
@@ -0,0 +1,358 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ /**
8
+ * Nederlandse Digitale Dienst Validation List (Lit + TypeScript)
9
+ *
10
+ * Everything a value has to satisfy, in one list. A requirement you can state
11
+ * up front is an item with a rule, and it checks itself while you type. One
12
+ * only a server can decide is an item without a rule, and the app names it in
13
+ * `unmet` on the control.
14
+ *
15
+ * The list has two modes and `judging` is the switch. Before a verdict it shows
16
+ * its hints, which are the requirements of the field. After one it shows
17
+ * everything the value does not satisfy, and the hints are gone. It throws that
18
+ * switch itself the moment its control turns `invalid`, so when the field is
19
+ * judged is the consumer's decision, and the right moment is on submit.
20
+ *
21
+ * Hints are off by default. A phone number does not need its format spelled out
22
+ * before anyone has typed, while the rules for a password do.
23
+ *
24
+ * There are no checkmarks. The control already shows a validation icon of its
25
+ * own, and repeating that per line says the same thing three times.
26
+ *
27
+ * @element nldd-validation-list
28
+ *
29
+ * @attr {string} for - Id of the control this list is about. Not needed inside an nldd-form-field, which hands its own control over.
30
+ * @attr {boolean} hint - Show every item before there is a verdict, as the requirements of the field. Overridable per item.
31
+ * @attr {boolean} judging - Drop the hints, because this field has been judged. Turned on by the list itself once its control is `invalid`, and settable by hand. What turns red follows `invalid`, not this.
32
+ *
33
+ * @slot - nldd-validation-item elements.
34
+ *
35
+ * ─────────────────────────────────────────────────────────────────────────
36
+ *
37
+ * @element nldd-validation-item
38
+ *
39
+ * @attr {string} match - Regular expression the value has to contain. Not anchored, unlike the native `pattern`: `[A-Z]` means "has a capital in it".
40
+ * @attr {number} minlength - Fewest characters the value may have.
41
+ * @attr {number} maxlength - Most characters the value may have.
42
+ * @attr {boolean} required - The value may not be empty. Use it on a field whose other rules would pass an empty value.
43
+ * @attr {boolean} hint - Show this item before there is a verdict, whatever the list says.
44
+ * @attr {boolean} unmet - Whether the value fails this item. Managed by the list; do not set it yourself.
45
+ * @attr {boolean} visible - Whether the item is on screen. Managed by the list.
46
+ *
47
+ * @slot - The text of the requirement.
48
+ *
49
+ * ─────────────────────────────────────────────────────────────────────────
50
+ *
51
+ * Give every item an id that names its field as well as its rule. An id has to
52
+ * be unique in the whole document, and `length` is the first thing three fields
53
+ * in one form will all reach for.
54
+ *
55
+ * @example
56
+ * <nldd-form-field label="Wachtwoord">
57
+ * <nldd-password-field name="password" invalid unmet="password-breach"></nldd-password-field>
58
+ * <nldd-validation-list hint>
59
+ * <nldd-validation-item id="password-length" minlength="8">Minimaal 8 tekens</nldd-validation-item>
60
+ * <nldd-validation-item id="password-capital" match="[A-Z]">Een hoofdletter</nldd-validation-item>
61
+ * <nldd-validation-item id="password-breach">Dit wachtwoord staat in een bekend datalek</nldd-validation-item>
62
+ * </nldd-validation-list>
63
+ * </nldd-form-field>
64
+ */
65
+ import { LitElement } from 'lit';
66
+ import { customElement, property, state } from 'lit/decorators.js';
67
+ import { validationListStyles, validationItemStyles } from './validation-list.styles.js';
68
+ import { validationListTemplate, validationItemTemplate } from './validation-list.template.js';
69
+ /* ============================================================
70
+ nldd-validation-item
71
+ ============================================================ */
72
+ let NLDDValidationItem = class NLDDValidationItem extends LitElement {
73
+ constructor() {
74
+ super(...arguments);
75
+ /** Not anchored, unlike the native `pattern`. See the note at the top. */
76
+ this.match = '';
77
+ /** For a field whose other rules would pass an empty value. See `test`. */
78
+ this.required = false;
79
+ this.hint = false;
80
+ this.unmet = false;
81
+ this.visible = false;
82
+ }
83
+ /** Whether this item judges itself, or waits for the app to name it. */
84
+ get hasRule() {
85
+ return this.required
86
+ || Boolean(this.match)
87
+ || this.minlength !== undefined
88
+ || this.maxlength !== undefined;
89
+ }
90
+ /**
91
+ * Whether `value` satisfies this item, or null when there is nothing to
92
+ * satisfy because the item carries no rule.
93
+ *
94
+ * An empty value is held against the rules like any other, so "minimaal 8
95
+ * tekens" fails on it, because it does. What keeps a fresh field from
96
+ * lighting up all of its requirements is not this method but the verdict: an
97
+ * item only turns critical once the control says `invalid`, and an untouched
98
+ * field has not been judged yet.
99
+ */
100
+ test(value) {
101
+ if (!this.hasRule)
102
+ return null;
103
+ if (this.required && !value)
104
+ return false;
105
+ if (this.minlength !== undefined && value.length < this.minlength)
106
+ return false;
107
+ if (this.maxlength !== undefined && value.length > this.maxlength)
108
+ return false;
109
+ if (this.match && !new RegExp(this.match, 'u').test(value))
110
+ return false;
111
+ return true;
112
+ }
113
+ connectedCallback() {
114
+ super.connectedCallback();
115
+ this.setAttribute('role', 'listitem');
116
+ }
117
+ render() {
118
+ return validationItemTemplate(this);
119
+ }
120
+ };
121
+ NLDDValidationItem.styles = validationItemStyles;
122
+ __decorate([
123
+ property({ type: String })
124
+ ], NLDDValidationItem.prototype, "match", void 0);
125
+ __decorate([
126
+ property({ type: Number })
127
+ ], NLDDValidationItem.prototype, "minlength", void 0);
128
+ __decorate([
129
+ property({ type: Number })
130
+ ], NLDDValidationItem.prototype, "maxlength", void 0);
131
+ __decorate([
132
+ property({ type: Boolean, reflect: true })
133
+ ], NLDDValidationItem.prototype, "required", void 0);
134
+ __decorate([
135
+ property({ type: Boolean, reflect: true })
136
+ ], NLDDValidationItem.prototype, "hint", void 0);
137
+ __decorate([
138
+ property({ type: Boolean, reflect: true })
139
+ ], NLDDValidationItem.prototype, "unmet", void 0);
140
+ __decorate([
141
+ property({ type: Boolean, reflect: true })
142
+ ], NLDDValidationItem.prototype, "visible", void 0);
143
+ NLDDValidationItem = __decorate([
144
+ customElement('nldd-validation-item')
145
+ ], NLDDValidationItem);
146
+ export { NLDDValidationItem };
147
+ /* ============================================================
148
+ nldd-validation-list
149
+ ============================================================ */
150
+ let NLDDValidationList = class NLDDValidationList extends LitElement {
151
+ constructor() {
152
+ super(...arguments);
153
+ /** Id of the control, for a list that sits outside an nldd-form-field. */
154
+ this.for = '';
155
+ this.hint = false;
156
+ /**
157
+ * Whether the list is judging the value or explaining what the field wants.
158
+ *
159
+ * The switch between the two modes. Off, the hints state the requirements;
160
+ * on, they are gone and what is left is whatever the value fails. It goes on
161
+ * the moment the control is `invalid`, and then stays on. A field that has
162
+ * been judged does not become unjudged: repair the value and the control
163
+ * turns valid again, but the question the hints answered has been asked and
164
+ * settled, so bringing them back would undo the one thing the verdict
165
+ * achieved.
166
+ *
167
+ * What it does not decide is what turns red. That follows `invalid` on the
168
+ * control and nothing else, so a line never goes critical under a field that
169
+ * looks fine.
170
+ *
171
+ * So when a field starts being judged is decided by whoever writes `invalid`
172
+ * on the control, and the moment to do that is on submit. Writing it while
173
+ * someone is still typing turns a field red about a value that is not
174
+ * finished, which is the one thing this list is built to avoid.
175
+ *
176
+ * Set it yourself to flip the mode without a control saying anything, and
177
+ * clear it to put the field back the way it started, which is what a reset
178
+ * wants.
179
+ */
180
+ this.judging = false;
181
+ /**
182
+ * The control this list is about.
183
+ *
184
+ * Set by the wrapping nldd-form-field, which already answers "which control
185
+ * is this field about" for the label and the description. A `for` of its own
186
+ * wins, and setting this property directly is what a test or a story does.
187
+ */
188
+ this.control = null;
189
+ this._resolved = null;
190
+ this._observer = null;
191
+ this._onInput = () => this._evaluate();
192
+ }
193
+ connectedCallback() {
194
+ super.connectedCallback();
195
+ this._resolve();
196
+ }
197
+ disconnectedCallback() {
198
+ super.disconnectedCallback();
199
+ this._detach();
200
+ }
201
+ /**
202
+ * Resolving and latching happen before the render, not after it.
203
+ *
204
+ * Both write a reactive property, `_resolved` and `judging`, and writing one
205
+ * from `updated()` asks for a second render on top of the one that just
206
+ * finished. That is a dev-mode warning on every field that arrives already
207
+ * invalid. Reading what they need does not take a render: the control is
208
+ * found by id or handed over as a property, and the items are light DOM.
209
+ */
210
+ willUpdate(changed) {
211
+ if (changed.has('for') || changed.has('control'))
212
+ this._resolve();
213
+ this._latchJudging();
214
+ }
215
+ updated() {
216
+ this._evaluate();
217
+ }
218
+ /**
219
+ * A field that has been judged does not become unjudged, so this only ever
220
+ * goes on. What turns red is `invalid` and nothing else; this decides only
221
+ * whether the hints are still on screen.
222
+ */
223
+ _latchJudging() {
224
+ if (this._resolved?.hasAttribute('invalid'))
225
+ this.judging = true;
226
+ }
227
+ render() {
228
+ return validationListTemplate(this);
229
+ }
230
+ get _items() {
231
+ return Array.from(this.children)
232
+ .filter((el) => el instanceof NLDDValidationItem);
233
+ }
234
+ /**
235
+ * Finds the control and starts listening to it.
236
+ *
237
+ * `getRootNode()` and not `document`: an IDREF only resolves inside its own
238
+ * tree, and a consumer who puts this form inside a component of their own
239
+ * would otherwise find nothing.
240
+ */
241
+ _resolve() {
242
+ const root = this.getRootNode();
243
+ const next = this.for ? root.getElementById?.(this.for) ?? null : this.control;
244
+ // `_observer` and not just the control: taking this element out of the DOM
245
+ // and putting it back, which is what a consumer portalling a sheet to the
246
+ // body does, runs disconnectedCallback and takes the listener with it. The
247
+ // control never changed, so comparing only that would find no work to do
248
+ // and the list would sit there reacting to nothing.
249
+ if (next === this._resolved && this._observer)
250
+ return;
251
+ this._detach();
252
+ this._resolved = next;
253
+ if (!next)
254
+ return;
255
+ next.addEventListener('input', this._onInput);
256
+ this._observer = new MutationObserver(() => {
257
+ this._latchJudging();
258
+ this._evaluate();
259
+ });
260
+ this._observer.observe(next, { attributes: true, attributeFilter: ['invalid', 'unmet'] });
261
+ }
262
+ _detach() {
263
+ this._resolved?.removeEventListener('input', this._onInput);
264
+ this._observer?.disconnect();
265
+ this._observer = null;
266
+ }
267
+ _currentValue() {
268
+ if (this.value !== undefined)
269
+ return this.value;
270
+ const control = this._resolved;
271
+ return control?.value === undefined || control.value === null ? '' : String(control.value);
272
+ }
273
+ /**
274
+ * Decides per item whether it is met, and what that makes visible.
275
+ *
276
+ * An item with a rule judges itself; one without waits to be named in
277
+ * `unmet` on the control. Never both: a rule is held against the value as it
278
+ * is now, while `unmet` is a snapshot of the last check and therefore older,
279
+ * so letting the snapshot win would show a mistake that has been fixed.
280
+ */
281
+ _evaluate() {
282
+ const control = this._resolved;
283
+ // The two attributes answer two questions and are kept apart on purpose.
284
+ // `invalid` decides what turns critical, so a line never goes red under a
285
+ // field that looks fine; `judging` only decides whether the hints are
286
+ // still on screen, and unlike `invalid` it does not come back off.
287
+ const invalid = control?.hasAttribute('invalid') ?? false;
288
+ const named = (control?.getAttribute('unmet') ?? '').split(' ').filter(Boolean);
289
+ const value = this._currentValue();
290
+ let anyVisible = false;
291
+ let anyRuleFails = false;
292
+ const messages = [];
293
+ for (const item of this._items) {
294
+ const rule = item.test(value);
295
+ const failing = rule === null ? named.includes(item.id) : !rule;
296
+ if (import.meta.env?.DEV && rule !== null && named.includes(item.id)) {
297
+ console.warn(`<nldd-validation-list>: item "${item.id}" has a rule of its own and is also named in \`unmet\`. `
298
+ + 'The rule decides, and the name is ignored: it is a snapshot of the previous check and cannot be newer '
299
+ + 'than the value. Drop it from `unmet`, or take the rule off the item.');
300
+ }
301
+ item.unmet = invalid && failing;
302
+ item.visible = item.unmet || (!this.judging && (item.hint || this.hint));
303
+ if (item.visible)
304
+ anyVisible = true;
305
+ if (rule === false) {
306
+ anyRuleFails = true;
307
+ messages.push(item.textContent?.trim() ?? '');
308
+ }
309
+ }
310
+ this.classList.toggle('has-items', anyVisible);
311
+ this._reportValidity(anyRuleFails, messages);
312
+ }
313
+ /**
314
+ * Hands the verdict to the control, so a form with a failing rule does not
315
+ * submit.
316
+ *
317
+ * Only the rules. What the app named in `unmet` it already knows, and
318
+ * reporting that back would be this list telling the app what the app told
319
+ * it.
320
+ *
321
+ * Through `setCustomValidity` and not into `internals` directly. A control
322
+ * reports its own `required` and `pattern` through the same channel, and
323
+ * `setValidity` writes the whole set of flags at once: writing here would
324
+ * erase those on the way in, and they would erase this on the next render.
325
+ * The platform's own name for a reason of your own is the one both sides
326
+ * understand, and a plain native input answers to it too.
327
+ */
328
+ _reportValidity(fails, messages) {
329
+ const control = this._resolved;
330
+ if (!control?.setCustomValidity)
331
+ return;
332
+ control.setCustomValidity(fails ? messages.filter(Boolean).join('. ') : '');
333
+ }
334
+ };
335
+ NLDDValidationList.styles = validationListStyles;
336
+ __decorate([
337
+ property({ type: String })
338
+ ], NLDDValidationList.prototype, "for", void 0);
339
+ __decorate([
340
+ property({ type: Boolean, reflect: true })
341
+ ], NLDDValidationList.prototype, "hint", void 0);
342
+ __decorate([
343
+ property({ type: Boolean, reflect: true })
344
+ ], NLDDValidationList.prototype, "judging", void 0);
345
+ __decorate([
346
+ property({ attribute: false })
347
+ ], NLDDValidationList.prototype, "control", void 0);
348
+ __decorate([
349
+ property({ attribute: false })
350
+ ], NLDDValidationList.prototype, "value", void 0);
351
+ __decorate([
352
+ state()
353
+ ], NLDDValidationList.prototype, "_resolved", void 0);
354
+ NLDDValidationList = __decorate([
355
+ customElement('nldd-validation-list')
356
+ ], NLDDValidationList);
357
+ export { NLDDValidationList };
358
+ //# sourceMappingURL=validation-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-list.js","sourceRoot":"","sources":["../../../../src/components/forms/validation-list/validation-list.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;iDAChB;AAGP;IADP,KAAK,EAAE;qDACiC;AApD7B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAmN9B"}
@@ -0,0 +1,3 @@
1
+ export declare const validationListStyles: import("lit").CSSResult;
2
+ export declare const validationItemStyles: import("lit").CSSResult;
3
+ //# sourceMappingURL=validation-list.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-list.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/validation-list/validation-list.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,yBA2BhC,CAAC;AAGF,eAAO,MAAM,oBAAoB,yBA2BhC,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { css } from 'lit';
2
+ export const validationListStyles = css `
3
+
4
+
5
+ /* # Host */
6
+
7
+ :host {
8
+ --_gap: var(--primitives-space-2);
9
+
10
+ display: block;
11
+ }
12
+
13
+ :host(:not(.has-items)) {
14
+ display: none;
15
+ }
16
+
17
+ :host([hidden]) {
18
+ display: none;
19
+ }
20
+
21
+
22
+ /* # List */
23
+
24
+ .validation-list {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: var(--_gap);
28
+ }
29
+ `;
30
+ export const validationItemStyles = css `
31
+
32
+
33
+ /* # Host */
34
+
35
+ :host {
36
+ --_content-color: var(--semantics-content-color);
37
+ --_font: var(--primitives-font-body-sm-regular-tight);
38
+
39
+ display: none;
40
+ color: var(--_content-color);
41
+ font: var(--_font);
42
+ }
43
+
44
+ :host([visible]) {
45
+ display: block;
46
+ }
47
+
48
+ :host([unmet]) {
49
+ --_content-color: var(--semantics-content-critical-color);
50
+ }
51
+
52
+ /* After the visible rule at equal specificity: hidden must also win on an
53
+ item that is currently shown. */
54
+ :host([hidden]) {
55
+ display: none;
56
+ }
57
+ `;
58
+ //# sourceMappingURL=validation-list.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-list.styles.js","sourceRoot":"","sources":["../../../../src/components/forms/validation-list/validation-list.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtC,CAAC;AAGF,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { TemplateResult } from 'lit';
2
+ import type { NLDDValidationList, NLDDValidationItem } from './validation-list.js';
3
+ export declare function validationListTemplate(_component: NLDDValidationList): TemplateResult;
4
+ export declare function validationItemTemplate(_component: NLDDValidationItem): TemplateResult;
5
+ //# sourceMappingURL=validation-list.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-list.template.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/validation-list/validation-list.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,kBAAkB,GAAG,cAAc,CAQrF;AAED,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,kBAAkB,GAAG,cAAc,CAIrF"}
@@ -0,0 +1,16 @@
1
+ import { html } from 'lit';
2
+ export function validationListTemplate(_component) {
3
+ return html `
4
+ <div class="validation-list"
5
+ role="list"
6
+ >
7
+ <slot></slot>
8
+ </div>
9
+ `;
10
+ }
11
+ export function validationItemTemplate(_component) {
12
+ return html `
13
+ <slot></slot>
14
+ `;
15
+ }
16
+ //# sourceMappingURL=validation-list.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation-list.template.js","sourceRoot":"","sources":["../../../../src/components/forms/validation-list/validation-list.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,MAAM,UAAU,sBAAsB,CAAC,UAA8B;IACpE,OAAO,IAAI,CAAA;;;;;;EAMV,CAAC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,UAA8B;IACpE,OAAO,IAAI,CAAA;;EAEV,CAAC;AACH,CAAC"}