dap-design-system 0.62.4 → 0.63.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (660) hide show
  1. package/README.md +5 -1
  2. package/dist/common/utils.js +46 -46
  3. package/dist/common/utils.js.map +1 -1
  4. package/dist/components/accordion/accordion-base-element.js +15 -19
  5. package/dist/components/accordion/accordion-base-element.js.map +1 -1
  6. package/dist/components/accordion/accordion.component.d.ts +1 -0
  7. package/dist/components/accordion/accordion.component.js.map +1 -1
  8. package/dist/components/accordion-group/accordion-group.component.js +20 -24
  9. package/dist/components/accordion-group/accordion-group.component.js.map +1 -1
  10. package/dist/components/anchor-heading/anchor-heading.component.d.ts +1 -0
  11. package/dist/components/anchor-heading/anchor-heading.component.js +20 -23
  12. package/dist/components/anchor-heading/anchor-heading.component.js.map +1 -1
  13. package/dist/components/avatar/avatar.component.js +51 -55
  14. package/dist/components/avatar/avatar.component.js.map +1 -1
  15. package/dist/components/avatar-group/avatar-group.component.js +18 -22
  16. package/dist/components/avatar-group/avatar-group.component.js.map +1 -1
  17. package/dist/components/badge/badge.component.js +17 -20
  18. package/dist/components/badge/badge.component.js.map +1 -1
  19. package/dist/components/banner/banner.component.d.ts +1 -1
  20. package/dist/components/banner/banner.component.js +18 -24
  21. package/dist/components/banner/banner.component.js.map +1 -1
  22. package/dist/components/breadcrumb/breadcrumb.component.d.ts +2 -1
  23. package/dist/components/breadcrumb/breadcrumb.component.js +32 -32
  24. package/dist/components/breadcrumb/breadcrumb.component.js.map +1 -1
  25. package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +8 -0
  26. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +33 -28
  27. package/dist/components/breadcrumb-item/breadcrumb-item.component.js.map +1 -1
  28. package/dist/components/button/_styles/button.scss.js +1 -1
  29. package/dist/components/button/button.component.js +18 -22
  30. package/dist/components/button/button.component.js.map +1 -1
  31. package/dist/components/button-group/_styles/button-group-separator.scss.js +5 -0
  32. package/dist/components/button-group/_styles/button-group-separator.scss.js.map +1 -0
  33. package/dist/components/button-group/_styles/button-group-text.scss.js +5 -0
  34. package/dist/components/button-group/_styles/button-group-text.scss.js.map +1 -0
  35. package/dist/components/button-group/_styles/button-group.scss.js +5 -0
  36. package/dist/components/button-group/_styles/button-group.scss.js.map +1 -0
  37. package/dist/components/button-group/button-group-separator.component.d.ts +28 -0
  38. package/dist/components/button-group/button-group-separator.component.js +18 -0
  39. package/dist/components/button-group/button-group-separator.component.js.map +1 -0
  40. package/dist/components/button-group/button-group-separator.d.ts +8 -0
  41. package/dist/components/button-group/button-group-separator.js +6 -0
  42. package/dist/components/button-group/button-group-separator.js.map +1 -0
  43. package/dist/components/button-group/button-group-text.component.d.ts +33 -0
  44. package/dist/components/button-group/button-group-text.component.js +17 -0
  45. package/dist/components/button-group/button-group-text.component.js.map +1 -0
  46. package/dist/components/button-group/button-group-text.d.ts +8 -0
  47. package/dist/components/button-group/button-group-text.js +6 -0
  48. package/dist/components/button-group/button-group-text.js.map +1 -0
  49. package/dist/components/button-group/button-group.component.d.ts +52 -0
  50. package/dist/components/button-group/button-group.component.js +30 -0
  51. package/dist/components/button-group/button-group.component.js.map +1 -0
  52. package/dist/components/button-group/button-group.d.ts +8 -0
  53. package/dist/components/button-group/button-group.js +6 -0
  54. package/dist/components/button-group/button-group.js.map +1 -0
  55. package/dist/components/calendar/calendar-cell.component.js +26 -29
  56. package/dist/components/calendar/calendar-cell.component.js.map +1 -1
  57. package/dist/components/calendar/calendar.component.d.ts +10 -1
  58. package/dist/components/calendar/calendar.component.js +37 -46
  59. package/dist/components/calendar/calendar.component.js.map +1 -1
  60. package/dist/components/callout/callout.component.d.ts +4 -0
  61. package/dist/components/callout/callout.component.js +71 -69
  62. package/dist/components/callout/callout.component.js.map +1 -1
  63. package/dist/components/card/card-actions.component.js +8 -11
  64. package/dist/components/card/card-actions.component.js.map +1 -1
  65. package/dist/components/card/card-content.component.js +20 -23
  66. package/dist/components/card/card-content.component.js.map +1 -1
  67. package/dist/components/card/card-image.component.js +18 -21
  68. package/dist/components/card/card-image.component.js.map +1 -1
  69. package/dist/components/card/card-subtitle.component.js +18 -21
  70. package/dist/components/card/card-subtitle.component.js.map +1 -1
  71. package/dist/components/card/card-title.component.js +18 -21
  72. package/dist/components/card/card-title.component.js.map +1 -1
  73. package/dist/components/card/card.component.d.ts +1 -0
  74. package/dist/components/card/card.component.js +25 -28
  75. package/dist/components/card/card.component.js.map +1 -1
  76. package/dist/components/checkbox/_styles/checkbox.scss.js +1 -1
  77. package/dist/components/checkbox/checkbox.component.d.ts +7 -1
  78. package/dist/components/checkbox/checkbox.component.js +71 -74
  79. package/dist/components/checkbox/checkbox.component.js.map +1 -1
  80. package/dist/components/chip/chip.component.d.ts +1 -0
  81. package/dist/components/chip/chip.component.js +21 -26
  82. package/dist/components/chip/chip.component.js.map +1 -1
  83. package/dist/components/code-puncher/code-puncher-slot.component.js +34 -38
  84. package/dist/components/code-puncher/code-puncher-slot.component.js.map +1 -1
  85. package/dist/components/code-puncher/code-puncher.component.d.ts +4 -0
  86. package/dist/components/code-puncher/code-puncher.component.js +97 -102
  87. package/dist/components/code-puncher/code-puncher.component.js.map +1 -1
  88. package/dist/components/code-puncher/code-puncher.context.js +1 -1
  89. package/dist/components/code-puncher/code-puncher.context.js.map +1 -1
  90. package/dist/components/code-puncher/code-puncher.scss.js +1 -1
  91. package/dist/components/combobox/combobox.component.d.ts +9 -1
  92. package/dist/components/combobox/combobox.component.js.map +1 -1
  93. package/dist/components/combobox/combobox.scss.js +1 -1
  94. package/dist/components/combobox/comboboxBase.d.ts +21 -0
  95. package/dist/components/combobox/comboboxBase.js +176 -139
  96. package/dist/components/combobox/comboboxBase.js.map +1 -1
  97. package/dist/components/command/command-group.component.js +19 -23
  98. package/dist/components/command/command-group.component.js.map +1 -1
  99. package/dist/components/command/command-item.component.js +17 -22
  100. package/dist/components/command/command-item.component.js.map +1 -1
  101. package/dist/components/command/command.component.d.ts +3 -0
  102. package/dist/components/command/command.component.js +28 -33
  103. package/dist/components/command/command.component.js.map +1 -1
  104. package/dist/components/content-switcher/content-switcher-item.component.js +16 -19
  105. package/dist/components/content-switcher/content-switcher-item.component.js.map +1 -1
  106. package/dist/components/content-switcher/content-switcher.component.js +19 -22
  107. package/dist/components/content-switcher/content-switcher.component.js.map +1 -1
  108. package/dist/components/copybox-input/copybox-input.component.d.ts +11 -0
  109. package/dist/components/copybox-input/copybox-input.component.js +12 -16
  110. package/dist/components/copybox-input/copybox-input.component.js.map +1 -1
  111. package/dist/components/dap-badge/dap-badge.component.js +13 -18
  112. package/dist/components/dap-badge/dap-badge.component.js.map +1 -1
  113. package/dist/components/datatable/datatable.component.d.ts +17 -0
  114. package/dist/components/datatable/datatable.component.js +38 -42
  115. package/dist/components/datatable/datatable.component.js.map +1 -1
  116. package/dist/components/datatable/utils/cell-renderer.js +6 -8
  117. package/dist/components/datatable/utils/cell-renderer.js.map +1 -1
  118. package/dist/components/datepicker/datepicker.component.d.ts +11 -0
  119. package/dist/components/datepicker/datepicker.component.js +89 -82
  120. package/dist/components/datepicker/datepicker.component.js.map +1 -1
  121. package/dist/components/datepicker/datepicker.scss.js +1 -1
  122. package/dist/components/divider/divider.component.js +18 -21
  123. package/dist/components/divider/divider.component.js.map +1 -1
  124. package/dist/components/feedback/feedback.component.js +8 -11
  125. package/dist/components/feedback/feedback.component.js.map +1 -1
  126. package/dist/components/file-input/file-input-list-item.component.d.ts +1 -0
  127. package/dist/components/file-input/file-input-list-item.component.js +36 -40
  128. package/dist/components/file-input/file-input-list-item.component.js.map +1 -1
  129. package/dist/components/file-input/file-input-list.component.js +15 -20
  130. package/dist/components/file-input/file-input-list.component.js.map +1 -1
  131. package/dist/components/file-input/file-input-list.scss.js +1 -1
  132. package/dist/components/file-input/file-input.component.d.ts +3 -0
  133. package/dist/components/file-input/file-input.component.js +135 -142
  134. package/dist/components/file-input/file-input.component.js.map +1 -1
  135. package/dist/components/file-input/file-input.scss.js +1 -1
  136. package/dist/components/form/form-label/form-label.component.d.ts +1 -1
  137. package/dist/components/form/form-label/form-label.component.js +20 -23
  138. package/dist/components/form/form-label/form-label.component.js.map +1 -1
  139. package/dist/components/form/input-group/input-group.component.d.ts +4 -0
  140. package/dist/components/form/input-group/input-group.component.js +42 -42
  141. package/dist/components/form/input-group/input-group.component.js.map +1 -1
  142. package/dist/components/form/input-group/input-group.scss.js +2 -2
  143. package/dist/components/form/radio-group/radio-group.component.d.ts +5 -0
  144. package/dist/components/form/radio-group/radio-group.component.js +54 -55
  145. package/dist/components/form/radio-group/radio-group.component.js.map +1 -1
  146. package/dist/components/icon/icon.component.js +25 -28
  147. package/dist/components/icon/icon.component.js.map +1 -1
  148. package/dist/components/icon-button/icon-button.component.d.ts +1 -0
  149. package/dist/components/icon-button/icon-button.component.js +11 -14
  150. package/dist/components/icon-button/icon-button.component.js.map +1 -1
  151. package/dist/components/icon-button/icon-button.scss.js +1 -1
  152. package/dist/components/icons/arrows/arrows-arrow-down-line/arrows-arrow-down-line.component.js +9 -12
  153. package/dist/components/icons/arrows/arrows-arrow-down-line/arrows-arrow-down-line.component.js.map +1 -1
  154. package/dist/components/icons/arrows/arrows-arrow-down-s-fill/arrows-arrow-down-s-fill.component.js +7 -10
  155. package/dist/components/icons/arrows/arrows-arrow-down-s-fill/arrows-arrow-down-s-fill.component.js.map +1 -1
  156. package/dist/components/icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js +12 -15
  157. package/dist/components/icons/arrows/arrows-arrow-down-s-line/arrows-arrow-down-s-line.component.js.map +1 -1
  158. package/dist/components/icons/arrows/arrows-arrow-left-down-line/arrows-arrow-left-down-line.component.js +8 -11
  159. package/dist/components/icons/arrows/arrows-arrow-left-down-line/arrows-arrow-left-down-line.component.js.map +1 -1
  160. package/dist/components/icons/arrows/arrows-arrow-left-l-line/arrows-arrow-left-l-line.component.js +15 -18
  161. package/dist/components/icons/arrows/arrows-arrow-left-l-line/arrows-arrow-left-l-line.component.js.map +1 -1
  162. package/dist/components/icons/arrows/arrows-arrow-left-line/arrows-arrow-left-line.component.js +7 -10
  163. package/dist/components/icons/arrows/arrows-arrow-left-line/arrows-arrow-left-line.component.js.map +1 -1
  164. package/dist/components/icons/arrows/arrows-arrow-left-s-fill/arrows-arrow-left-s-fill.component.js +10 -13
  165. package/dist/components/icons/arrows/arrows-arrow-left-s-fill/arrows-arrow-left-s-fill.component.js.map +1 -1
  166. package/dist/components/icons/arrows/arrows-arrow-left-s-line/arrows-arrow-left-s-line.component.js +7 -10
  167. package/dist/components/icons/arrows/arrows-arrow-left-s-line/arrows-arrow-left-s-line.component.js.map +1 -1
  168. package/dist/components/icons/arrows/arrows-arrow-left-up-line/arrows-arrow-left-up-line.component.js +6 -9
  169. package/dist/components/icons/arrows/arrows-arrow-left-up-line/arrows-arrow-left-up-line.component.js.map +1 -1
  170. package/dist/components/icons/arrows/arrows-arrow-right-down-line/arrows-arrow-right-down-line.component.js +18 -21
  171. package/dist/components/icons/arrows/arrows-arrow-right-down-line/arrows-arrow-right-down-line.component.js.map +1 -1
  172. package/dist/components/icons/arrows/arrows-arrow-right-l-line/arrows-arrow-right-l-line.component.js +15 -18
  173. package/dist/components/icons/arrows/arrows-arrow-right-l-line/arrows-arrow-right-l-line.component.js.map +1 -1
  174. package/dist/components/icons/arrows/arrows-arrow-right-line/arrows-arrow-right-line.component.js +17 -20
  175. package/dist/components/icons/arrows/arrows-arrow-right-line/arrows-arrow-right-line.component.js.map +1 -1
  176. package/dist/components/icons/arrows/arrows-arrow-right-s-fill/arrows-arrow-right-s-fill.component.js +17 -20
  177. package/dist/components/icons/arrows/arrows-arrow-right-s-fill/arrows-arrow-right-s-fill.component.js.map +1 -1
  178. package/dist/components/icons/arrows/arrows-arrow-right-s-line/arrows-arrow-right-s-line.component.js +17 -20
  179. package/dist/components/icons/arrows/arrows-arrow-right-s-line/arrows-arrow-right-s-line.component.js.map +1 -1
  180. package/dist/components/icons/arrows/arrows-arrow-right-up-line/arrows-arrow-right-up-line.component.js +18 -21
  181. package/dist/components/icons/arrows/arrows-arrow-right-up-line/arrows-arrow-right-up-line.component.js.map +1 -1
  182. package/dist/components/icons/arrows/arrows-arrow-up-line/arrows-arrow-up-line.component.js +9 -12
  183. package/dist/components/icons/arrows/arrows-arrow-up-line/arrows-arrow-up-line.component.js.map +1 -1
  184. package/dist/components/icons/arrows/arrows-arrow-up-s-fill/arrows-arrow-up-s-fill.component.js +8 -11
  185. package/dist/components/icons/arrows/arrows-arrow-up-s-fill/arrows-arrow-up-s-fill.component.js.map +1 -1
  186. package/dist/components/icons/arrows/arrows-arrow-up-s-line/arrows-arrow-up-s-line.component.js +9 -12
  187. package/dist/components/icons/arrows/arrows-arrow-up-s-line/arrows-arrow-up-s-line.component.js.map +1 -1
  188. package/dist/components/icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js +11 -14
  189. package/dist/components/icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js.map +1 -1
  190. package/dist/components/icons/buildings/buildings-home-6-line/buildings-home-6-line.component.js +10 -13
  191. package/dist/components/icons/buildings/buildings-home-6-line/buildings-home-6-line.component.js.map +1 -1
  192. package/dist/components/icons/business/business-calendar-line/business-calendar-line.component.js +11 -14
  193. package/dist/components/icons/business/business-calendar-line/business-calendar-line.component.js.map +1 -1
  194. package/dist/components/icons/design/design-edit-line/design-edit-line.component.js +6 -9
  195. package/dist/components/icons/design/design-edit-line/design-edit-line.component.js.map +1 -1
  196. package/dist/components/icons/design/design-tools-line/design-tools-line.component.js +12 -15
  197. package/dist/components/icons/design/design-tools-line/design-tools-line.component.js.map +1 -1
  198. package/dist/components/icons/device/device-computer-line/device-computer-line.component.js +16 -19
  199. package/dist/components/icons/device/device-computer-line/device-computer-line.component.js.map +1 -1
  200. package/dist/components/icons/document/document-clipboard-line/document-clipboard-line.component.js +11 -14
  201. package/dist/components/icons/document/document-clipboard-line/document-clipboard-line.component.js.map +1 -1
  202. package/dist/components/icons/document/document-file-copy-line/document-file-copy-line.component.js +10 -13
  203. package/dist/components/icons/document/document-file-copy-line/document-file-copy-line.component.js.map +1 -1
  204. package/dist/components/icons/document/document-file-image-line/document-file-image-line.component.js +11 -14
  205. package/dist/components/icons/document/document-file-image-line/document-file-image-line.component.js.map +1 -1
  206. package/dist/components/icons/document/document-file-music-line/document-file-music-line.component.js +11 -14
  207. package/dist/components/icons/document/document-file-music-line/document-file-music-line.component.js.map +1 -1
  208. package/dist/components/icons/document/document-file-text-line/document-file-text-line.component.js +10 -13
  209. package/dist/components/icons/document/document-file-text-line/document-file-text-line.component.js.map +1 -1
  210. package/dist/components/icons/document/document-file-video-line/document-file-video-line.component.js +11 -14
  211. package/dist/components/icons/document/document-file-video-line/document-file-video-line.component.js.map +1 -1
  212. package/dist/components/icons/document/document-folder-line/document-folder-line.component.js +11 -14
  213. package/dist/components/icons/document/document-folder-line/document-folder-line.component.js.map +1 -1
  214. package/dist/components/icons/document/document-folder-open-line/document-folder-open-line.component.js +10 -13
  215. package/dist/components/icons/document/document-folder-open-line/document-folder-open-line.component.js.map +1 -1
  216. package/dist/components/icons/editor/editor-separator/editor-separator.component.js +10 -13
  217. package/dist/components/icons/editor/editor-separator/editor-separator.component.js.map +1 -1
  218. package/dist/components/icons/health/health-heart-fill/health-heart-fill.component.js +8 -11
  219. package/dist/components/icons/health/health-heart-fill/health-heart-fill.component.js.map +1 -1
  220. package/dist/components/icons/health/health-heart-line/health-heart-line.component.js +10 -13
  221. package/dist/components/icons/health/health-heart-line/health-heart-line.component.js.map +1 -1
  222. package/dist/components/icons/others/others-cookie-line/others-cookie-line.component.js +6 -9
  223. package/dist/components/icons/others/others-cookie-line/others-cookie-line.component.js.map +1 -1
  224. package/dist/components/icons/system/system-add-line/system-add-line.component.js +11 -14
  225. package/dist/components/icons/system/system-add-line/system-add-line.component.js.map +1 -1
  226. package/dist/components/icons/system/system-alert-fill/system-alert-fill.component.js +9 -12
  227. package/dist/components/icons/system/system-alert-fill/system-alert-fill.component.js.map +1 -1
  228. package/dist/components/icons/system/system-alert-line/system-alert-line.component.js +11 -14
  229. package/dist/components/icons/system/system-alert-line/system-alert-line.component.js.map +1 -1
  230. package/dist/components/icons/system/system-check-line/system-check-line.component.js +9 -12
  231. package/dist/components/icons/system/system-check-line/system-check-line.component.js.map +1 -1
  232. package/dist/components/icons/system/system-check-line2/system-check-line2.component.js +11 -14
  233. package/dist/components/icons/system/system-check-line2/system-check-line2.component.js.map +1 -1
  234. package/dist/components/icons/system/system-checkbox-blank-circle-fill/system-checkbox-blank-circle-fill.component.js +9 -12
  235. package/dist/components/icons/system/system-checkbox-blank-circle-fill/system-checkbox-blank-circle-fill.component.js.map +1 -1
  236. package/dist/components/icons/system/system-checkbox-blank-circle-fill-check/system-checkbox-blank-circle-fill-check.component.js +12 -15
  237. package/dist/components/icons/system/system-checkbox-blank-circle-fill-check/system-checkbox-blank-circle-fill-check.component.js.map +1 -1
  238. package/dist/components/icons/system/system-checkbox-blank-circle-line/system-checkbox-blank-circle-line.component.js +13 -16
  239. package/dist/components/icons/system/system-checkbox-blank-circle-line/system-checkbox-blank-circle-line.component.js.map +1 -1
  240. package/dist/components/icons/system/system-checkbox-circle-fill/system-checkbox-circle-fill.component.js +11 -14
  241. package/dist/components/icons/system/system-checkbox-circle-fill/system-checkbox-circle-fill.component.js.map +1 -1
  242. package/dist/components/icons/system/system-checkbox-circle-line/system-checkbox-circle-line.component.js +11 -14
  243. package/dist/components/icons/system/system-checkbox-circle-line/system-checkbox-circle-line.component.js.map +1 -1
  244. package/dist/components/icons/system/system-close-circle-fill/system-close-circle-fill.component.js +11 -14
  245. package/dist/components/icons/system/system-close-circle-fill/system-close-circle-fill.component.js.map +1 -1
  246. package/dist/components/icons/system/system-close-circle-line/system-close-circle-line.component.js +7 -10
  247. package/dist/components/icons/system/system-close-circle-line/system-close-circle-line.component.js.map +1 -1
  248. package/dist/components/icons/system/system-close-fill/system-close-fill.component.js +11 -14
  249. package/dist/components/icons/system/system-close-fill/system-close-fill.component.js.map +1 -1
  250. package/dist/components/icons/system/system-close-line/system-close-line.component.js +11 -14
  251. package/dist/components/icons/system/system-close-line/system-close-line.component.js.map +1 -1
  252. package/dist/components/icons/system/system-delete-bin-fill/system-delete-bin-fill.component.js +7 -10
  253. package/dist/components/icons/system/system-delete-bin-fill/system-delete-bin-fill.component.js.map +1 -1
  254. package/dist/components/icons/system/system-delete-bin-line/system-delete-bin-line.component.js +9 -12
  255. package/dist/components/icons/system/system-delete-bin-line/system-delete-bin-line.component.js.map +1 -1
  256. package/dist/components/icons/system/system-download-line/system-download-line.component.js +9 -12
  257. package/dist/components/icons/system/system-download-line/system-download-line.component.js.map +1 -1
  258. package/dist/components/icons/system/system-error-warning-fill/system-error-warning-fill.component.js +7 -10
  259. package/dist/components/icons/system/system-error-warning-fill/system-error-warning-fill.component.js.map +1 -1
  260. package/dist/components/icons/system/system-error-warning-line/system-error-warning-line.component.js +11 -14
  261. package/dist/components/icons/system/system-error-warning-line/system-error-warning-line.component.js.map +1 -1
  262. package/dist/components/icons/system/system-external-link-line/system-external-link-line.component.js +9 -12
  263. package/dist/components/icons/system/system-external-link-line/system-external-link-line.component.js.map +1 -1
  264. package/dist/components/icons/system/system-eye-line/system-eye-line.component.js +11 -14
  265. package/dist/components/icons/system/system-eye-line/system-eye-line.component.js.map +1 -1
  266. package/dist/components/icons/system/system-eye-off-line/system-eye-off-line.component.js +6 -9
  267. package/dist/components/icons/system/system-eye-off-line/system-eye-off-line.component.js.map +1 -1
  268. package/dist/components/icons/system/system-forbid-fill/system-forbid-fill.component.js +9 -12
  269. package/dist/components/icons/system/system-forbid-fill/system-forbid-fill.component.js.map +1 -1
  270. package/dist/components/icons/system/system-information-2-fill/system-information-2-fill.component.js +9 -12
  271. package/dist/components/icons/system/system-information-2-fill/system-information-2-fill.component.js.map +1 -1
  272. package/dist/components/icons/system/system-information-fill/system-information-fill.component.js +9 -12
  273. package/dist/components/icons/system/system-information-fill/system-information-fill.component.js.map +1 -1
  274. package/dist/components/icons/system/system-information-line/system-information-line.component.js +9 -12
  275. package/dist/components/icons/system/system-information-line/system-information-line.component.js.map +1 -1
  276. package/dist/components/icons/system/system-lightbulb-fill/system-lightbulb-fill.component.js +9 -12
  277. package/dist/components/icons/system/system-lightbulb-fill/system-lightbulb-fill.component.js.map +1 -1
  278. package/dist/components/icons/system/system-loading-spinner/system-loading-spinner.component.js +9 -12
  279. package/dist/components/icons/system/system-loading-spinner/system-loading-spinner.component.js.map +1 -1
  280. package/dist/components/icons/system/system-lock-fill/system-lock-fill.component.js +13 -16
  281. package/dist/components/icons/system/system-lock-fill/system-lock-fill.component.js.map +1 -1
  282. package/dist/components/icons/system/system-lock-line/system-lock-line.component.js +10 -13
  283. package/dist/components/icons/system/system-lock-line/system-lock-line.component.js.map +1 -1
  284. package/dist/components/icons/system/system-menu-line/system-menu-line.component.js +9 -12
  285. package/dist/components/icons/system/system-menu-line/system-menu-line.component.js.map +1 -1
  286. package/dist/components/icons/system/system-menu-line-s/system-menu-line-s.component.js +9 -12
  287. package/dist/components/icons/system/system-menu-line-s/system-menu-line-s.component.js.map +1 -1
  288. package/dist/components/icons/system/system-more-2-line/system-more-2-line.component.js +10 -13
  289. package/dist/components/icons/system/system-more-2-line/system-more-2-line.component.js.map +1 -1
  290. package/dist/components/icons/system/system-more-line/system-more-line.component.js +16 -19
  291. package/dist/components/icons/system/system-more-line/system-more-line.component.js.map +1 -1
  292. package/dist/components/icons/system/system-search-line/system-search-line.component.js +11 -14
  293. package/dist/components/icons/system/system-search-line/system-search-line.component.js.map +1 -1
  294. package/dist/components/icons/system/system-share-line/system-share-line.component.js +9 -12
  295. package/dist/components/icons/system/system-share-line/system-share-line.component.js.map +1 -1
  296. package/dist/components/icons/system/system-shield-check-fill/system-shield-check-fill.component.js +8 -11
  297. package/dist/components/icons/system/system-shield-check-fill/system-shield-check-fill.component.js.map +1 -1
  298. package/dist/components/icons/system/system-shield-check-line/system-shield-check-line.component.js +6 -9
  299. package/dist/components/icons/system/system-shield-check-line/system-shield-check-line.component.js.map +1 -1
  300. package/dist/components/icons/system/system-star-fill/system-star-fill.component.js +13 -16
  301. package/dist/components/icons/system/system-star-fill/system-star-fill.component.js.map +1 -1
  302. package/dist/components/icons/system/system-subtract-line/system-subtract-line.component.js +11 -14
  303. package/dist/components/icons/system/system-subtract-line/system-subtract-line.component.js.map +1 -1
  304. package/dist/components/icons/system/system-subtract-line2/system-subtract-line2.component.js +7 -10
  305. package/dist/components/icons/system/system-subtract-line2/system-subtract-line2.component.js.map +1 -1
  306. package/dist/components/icons/system/system-time-fill/system-time-fill.component.js +11 -14
  307. package/dist/components/icons/system/system-time-fill/system-time-fill.component.js.map +1 -1
  308. package/dist/components/icons/system/system-time-line/system-time-line.component.js +11 -14
  309. package/dist/components/icons/system/system-time-line/system-time-line.component.js.map +1 -1
  310. package/dist/components/icons/system/system-upload-2-fill/system-upload-2-fill.component.js +5 -8
  311. package/dist/components/icons/system/system-upload-2-fill/system-upload-2-fill.component.js.map +1 -1
  312. package/dist/components/icons/system/system-upload-2-line/system-upload-2-line.component.js +7 -10
  313. package/dist/components/icons/system/system-upload-2-line/system-upload-2-line.component.js.map +1 -1
  314. package/dist/components/icons/system/system-upload-line/system-upload-line.component.js +9 -12
  315. package/dist/components/icons/system/system-upload-line/system-upload-line.component.js.map +1 -1
  316. package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.js +9 -12
  317. package/dist/components/icons/system/system-zoom-in-line/system-zoom-in-line.component.js.map +1 -1
  318. package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.js +11 -14
  319. package/dist/components/icons/system/system-zoom-out-line/system-zoom-out-line.component.js.map +1 -1
  320. package/dist/components/icons/user/user-account-circle-fill/user-account-circle-fill.component.js +16 -19
  321. package/dist/components/icons/user/user-account-circle-fill/user-account-circle-fill.component.js.map +1 -1
  322. package/dist/components/icons/user/user-account-circle-line/user-account-circle-line.component.js +13 -16
  323. package/dist/components/icons/user/user-account-circle-line/user-account-circle-line.component.js.map +1 -1
  324. package/dist/components/icons/user/user-user-fill/user-user-fill.component.js +8 -11
  325. package/dist/components/icons/user/user-user-fill/user-user-fill.component.js.map +1 -1
  326. package/dist/components/icons/user/user-user-line/user-user-line.component.js +11 -14
  327. package/dist/components/icons/user/user-user-line/user-user-line.component.js.map +1 -1
  328. package/dist/components/image-zoom/image-zoom.component.js +12 -17
  329. package/dist/components/image-zoom/image-zoom.component.js.map +1 -1
  330. package/dist/components/input/_styles/input.scss.js +1 -1
  331. package/dist/components/input/input-base-element.js +41 -47
  332. package/dist/components/input/input-base-element.js.map +1 -1
  333. package/dist/components/label/_styles/label.scss.js +1 -1
  334. package/dist/components/label/label.component.js +8 -11
  335. package/dist/components/label/label.component.js.map +1 -1
  336. package/dist/components/link/link.component.js +23 -27
  337. package/dist/components/link/link.component.js.map +1 -1
  338. package/dist/components/list-item/list-item.component.d.ts +2 -0
  339. package/dist/components/list-item/list-item.component.js +24 -29
  340. package/dist/components/list-item/list-item.component.js.map +1 -1
  341. package/dist/components/modal/modal-base-element.js +36 -42
  342. package/dist/components/modal/modal-base-element.js.map +1 -1
  343. package/dist/components/navigation-menu/navigation-menu-item.component.d.ts +9 -1
  344. package/dist/components/navigation-menu/navigation-menu-item.component.js +36 -31
  345. package/dist/components/navigation-menu/navigation-menu-item.component.js.map +1 -1
  346. package/dist/components/navigation-menu/navigation-menu.component.js +20 -24
  347. package/dist/components/navigation-menu/navigation-menu.component.js.map +1 -1
  348. package/dist/components/notification-badge/notification-badge.component.js +28 -32
  349. package/dist/components/notification-badge/notification-badge.component.js.map +1 -1
  350. package/dist/components/number-input/number-input.component.d.ts +7 -0
  351. package/dist/components/number-input/number-input.component.js +23 -29
  352. package/dist/components/number-input/number-input.component.js.map +1 -1
  353. package/dist/components/official-website-banner/official-website-banner.component.d.ts +1 -0
  354. package/dist/components/official-website-banner/official-website-banner.component.js +19 -24
  355. package/dist/components/official-website-banner/official-website-banner.component.js.map +1 -1
  356. package/dist/components/option-group/option-group.component.js +17 -20
  357. package/dist/components/option-group/option-group.component.js.map +1 -1
  358. package/dist/components/option-item/option-item.component.d.ts +10 -0
  359. package/dist/components/option-item/option-item.component.js +66 -60
  360. package/dist/components/option-item/option-item.component.js.map +1 -1
  361. package/dist/components/option-item/option-item.scss.js +1 -1
  362. package/dist/components/option-list/__test__/listbox-harness.d.ts +129 -0
  363. package/dist/components/option-list/listbox-state.d.ts +230 -0
  364. package/dist/components/option-list/listbox-state.js +312 -0
  365. package/dist/components/option-list/listbox-state.js.map +1 -0
  366. package/dist/components/option-list/option-data.d.ts +35 -0
  367. package/dist/components/option-list/option-data.js +34 -0
  368. package/dist/components/option-list/option-data.js.map +1 -0
  369. package/dist/components/option-list/option-list.component.d.ts +66 -14
  370. package/dist/components/option-list/option-list.component.js +381 -294
  371. package/dist/components/option-list/option-list.component.js.map +1 -1
  372. package/dist/components/overlay/overlay.component.js +10 -13
  373. package/dist/components/overlay/overlay.component.js.map +1 -1
  374. package/dist/components/pager/pager.component.js +31 -37
  375. package/dist/components/pager/pager.component.js.map +1 -1
  376. package/dist/components/password-input/password-input.component.d.ts +12 -5
  377. package/dist/components/password-input/password-input.component.js +24 -30
  378. package/dist/components/password-input/password-input.component.js.map +1 -1
  379. package/dist/components/popup/popup-base-element.js +21 -25
  380. package/dist/components/popup/popup-base-element.js.map +1 -1
  381. package/dist/components/progress/progress.component.js +17 -21
  382. package/dist/components/progress/progress.component.js.map +1 -1
  383. package/dist/components/radio-button/_styles/radio-button.scss.js +1 -1
  384. package/dist/components/radio-button/radio-button.component.d.ts +5 -0
  385. package/dist/components/radio-button/radio-button.component.js +58 -62
  386. package/dist/components/radio-button/radio-button.component.js.map +1 -1
  387. package/dist/components/rating/_styles/rating.scss.js +2 -2
  388. package/dist/components/rating/rating.component.js +37 -41
  389. package/dist/components/rating/rating.component.js.map +1 -1
  390. package/dist/components/scroll-area/scroll-area.component.d.ts +2 -1
  391. package/dist/components/scroll-area/scroll-area.component.js +25 -28
  392. package/dist/components/scroll-area/scroll-area.component.js.map +1 -1
  393. package/dist/components/scroll-progress/scroll-progress.component.js +13 -17
  394. package/dist/components/scroll-progress/scroll-progress.component.js.map +1 -1
  395. package/dist/components/search/search.component.d.ts +6 -1
  396. package/dist/components/search/search.component.js.map +1 -1
  397. package/dist/components/select/select.component.d.ts +47 -0
  398. package/dist/components/select/select.component.js +268 -157
  399. package/dist/components/select/select.component.js.map +1 -1
  400. package/dist/components/select/select.scss.js +1 -1
  401. package/dist/components/sidenav/sidenav-group.component.d.ts +1 -0
  402. package/dist/components/sidenav/sidenav-group.component.js +11 -14
  403. package/dist/components/sidenav/sidenav-group.component.js.map +1 -1
  404. package/dist/components/sidenav/sidenav-item.component.js +20 -23
  405. package/dist/components/sidenav/sidenav-item.component.js.map +1 -1
  406. package/dist/components/sidenav/sidenav.component.js +17 -20
  407. package/dist/components/sidenav/sidenav.component.js.map +1 -1
  408. package/dist/components/skeleton/skeleton.component.js +9 -12
  409. package/dist/components/skeleton/skeleton.component.js.map +1 -1
  410. package/dist/components/skip-link/skip-link.component.js +13 -16
  411. package/dist/components/skip-link/skip-link.component.js.map +1 -1
  412. package/dist/components/snackbar/snackbar-message.component.d.ts +3 -1
  413. package/dist/components/snackbar/snackbar-message.component.js +39 -44
  414. package/dist/components/snackbar/snackbar-message.component.js.map +1 -1
  415. package/dist/components/snackbar/snackbar.component.d.ts +0 -1
  416. package/dist/components/snackbar/snackbar.component.js +36 -42
  417. package/dist/components/snackbar/snackbar.component.js.map +1 -1
  418. package/dist/components/spinner/spinner.component.js +33 -38
  419. package/dist/components/spinner/spinner.component.js.map +1 -1
  420. package/dist/components/stack/stack.component.d.ts +2 -1
  421. package/dist/components/stack/stack.component.js +16 -19
  422. package/dist/components/stack/stack.component.js.map +1 -1
  423. package/dist/components/switch/switch.component.d.ts +6 -0
  424. package/dist/components/switch/switch.component.js +48 -51
  425. package/dist/components/switch/switch.component.js.map +1 -1
  426. package/dist/components/switch/switch.scss.js +1 -1
  427. package/dist/components/tab/tab-group.component.d.ts +8 -3
  428. package/dist/components/tab/tab-group.component.js +43 -33
  429. package/dist/components/tab/tab-group.component.js.map +1 -1
  430. package/dist/components/tab/tab.component.js +22 -25
  431. package/dist/components/tab/tab.component.js.map +1 -1
  432. package/dist/components/table/table-cell.component.d.ts +1 -1
  433. package/dist/components/table/table-cell.component.js +16 -19
  434. package/dist/components/table/table-cell.component.js.map +1 -1
  435. package/dist/components/table/table-header.component.js +21 -24
  436. package/dist/components/table/table-header.component.js.map +1 -1
  437. package/dist/components/table/table-row.component.js +15 -18
  438. package/dist/components/table/table-row.component.js.map +1 -1
  439. package/dist/components/table/table.component.d.ts +2 -0
  440. package/dist/components/table/table.component.js +18 -22
  441. package/dist/components/table/table.component.js.map +1 -1
  442. package/dist/components/textarea/textarea.component.d.ts +2 -0
  443. package/dist/components/textarea/textarea.component.js +42 -46
  444. package/dist/components/textarea/textarea.component.js.map +1 -1
  445. package/dist/components/textarea/textarea.scss.js +1 -1
  446. package/dist/components/timeline/timeline-item.component.js +7 -10
  447. package/dist/components/timeline/timeline-item.component.js.map +1 -1
  448. package/dist/components/timeline/timeline.component.js +5 -8
  449. package/dist/components/timeline/timeline.component.js.map +1 -1
  450. package/dist/components/timepicker/time-grid.component.d.ts +3 -0
  451. package/dist/components/timepicker/time-grid.component.js +12 -15
  452. package/dist/components/timepicker/time-grid.component.js.map +1 -1
  453. package/dist/components/timepicker/timepicker.component.d.ts +7 -0
  454. package/dist/components/timepicker/timepicker.component.js +83 -85
  455. package/dist/components/timepicker/timepicker.component.js.map +1 -1
  456. package/dist/components/timepicker/timepicker.scss.js +1 -1
  457. package/dist/components/toc/toc.component.d.ts +2 -0
  458. package/dist/components/toc/toc.component.js +58 -61
  459. package/dist/components/toc/toc.component.js.map +1 -1
  460. package/dist/components/toggle-button/toggle-button.component.js +9 -12
  461. package/dist/components/toggle-button/toggle-button.component.js.map +1 -1
  462. package/dist/components/tooltip/tooltip.component.d.ts +2 -0
  463. package/dist/components/tooltip/tooltip.component.js +16 -18
  464. package/dist/components/tooltip/tooltip.component.js.map +1 -1
  465. package/dist/components/tray/tray.component.d.ts +4 -1
  466. package/dist/components/tray/tray.component.js +13 -16
  467. package/dist/components/tray/tray.component.js.map +1 -1
  468. package/dist/components/typography/typography.component.js +38 -41
  469. package/dist/components/typography/typography.component.js.map +1 -1
  470. package/dist/components.d.ts +3 -0
  471. package/dist/components.js +204 -195
  472. package/dist/components.js.map +1 -1
  473. package/dist/components.native.css +5 -2
  474. package/dist/components.native.css.map +1 -1
  475. package/dist/dap-design-system.d.ts +3 -0
  476. package/dist/dds-preupgrade.css +57 -0
  477. package/dist/dds.js +383 -374
  478. package/dist/dds.js.map +1 -1
  479. package/dist/internal/dds-hu-element.d.ts +8 -0
  480. package/dist/internal/dds-hu-element.js +40 -41
  481. package/dist/internal/dds-hu-element.js.map +1 -1
  482. package/dist/internal/mixin/choiceElementMixin.js +7 -7
  483. package/dist/internal/mixin/feedbackMixin.js +13 -15
  484. package/dist/internal/mixin/feedbackMixin.js.map +1 -1
  485. package/dist/internal/mixin/focusableMixin.js +6 -6
  486. package/dist/internal/mixin/formElementMixin.d.ts +1 -0
  487. package/dist/internal/mixin/formElementMixin.js +1 -1
  488. package/dist/internal/mixin/formElementMixin.js.map +1 -1
  489. package/dist/internal/mixin/labelPositionedMixin.js +1 -1
  490. package/dist/internal/mixin/labelableMixin.d.ts +1 -1
  491. package/dist/internal/mixin/labelableMixin.js +61 -63
  492. package/dist/internal/mixin/labelableMixin.js.map +1 -1
  493. package/dist/internal/mixin/sizedMixin.js +29 -27
  494. package/dist/internal/mixin/sizedMixin.js.map +1 -1
  495. package/dist/internal/templates/formLabel.d.ts +41 -0
  496. package/dist/internal/templates/formLabel.js +47 -0
  497. package/dist/internal/templates/formLabel.js.map +1 -0
  498. package/dist/localization/localization.d.ts +1 -2
  499. package/dist/localization/localization.js +77 -76
  500. package/dist/localization/localization.js.map +1 -1
  501. package/dist/localization/localize-controller.d.ts +12 -0
  502. package/dist/localization/localize-controller.js +51 -0
  503. package/dist/localization/localize-controller.js.map +1 -0
  504. package/dist/manifest/types/vue/index.d.ts +436 -221
  505. package/dist/manifest/vscode.html-custom-data.json +271 -217
  506. package/dist/manifest/web-types.json +549 -445
  507. package/dist/react/dap-ds-accordion/index.d.ts +1 -0
  508. package/dist/react/dap-ds-accordion/index.js.map +1 -1
  509. package/dist/react/dap-ds-anchor-heading/index.d.ts +1 -0
  510. package/dist/react/dap-ds-anchor-heading/index.js.map +1 -1
  511. package/dist/react/dap-ds-banner/index.d.ts +1 -1
  512. package/dist/react/dap-ds-banner/index.js.map +1 -1
  513. package/dist/react/dap-ds-breadcrumb/index.d.ts +1 -1
  514. package/dist/react/dap-ds-breadcrumb/index.js.map +1 -1
  515. package/dist/react/dap-ds-button-group/index.d.ts +45 -0
  516. package/dist/react/dap-ds-button-group/index.js +15 -0
  517. package/dist/react/dap-ds-button-group/index.js.map +1 -0
  518. package/dist/react/dap-ds-button-group-separator/index.d.ts +24 -0
  519. package/dist/react/dap-ds-button-group-separator/index.js +15 -0
  520. package/dist/react/dap-ds-button-group-separator/index.js.map +1 -0
  521. package/dist/react/dap-ds-button-group-text/index.d.ts +30 -0
  522. package/dist/react/dap-ds-button-group-text/index.js +15 -0
  523. package/dist/react/dap-ds-button-group-text/index.js.map +1 -0
  524. package/dist/react/dap-ds-calendar/index.d.ts +3 -0
  525. package/dist/react/dap-ds-calendar/index.js.map +1 -1
  526. package/dist/react/dap-ds-callout/index.d.ts +1 -0
  527. package/dist/react/dap-ds-callout/index.js.map +1 -1
  528. package/dist/react/dap-ds-card/index.d.ts +1 -0
  529. package/dist/react/dap-ds-card/index.js.map +1 -1
  530. package/dist/react/dap-ds-checkbox/index.d.ts +7 -1
  531. package/dist/react/dap-ds-checkbox/index.js.map +1 -1
  532. package/dist/react/dap-ds-chip/index.d.ts +1 -0
  533. package/dist/react/dap-ds-chip/index.js.map +1 -1
  534. package/dist/react/dap-ds-code-puncher/index.d.ts +4 -0
  535. package/dist/react/dap-ds-code-puncher/index.js.map +1 -1
  536. package/dist/react/dap-ds-combobox/index.d.ts +9 -1
  537. package/dist/react/dap-ds-combobox/index.js.map +1 -1
  538. package/dist/react/dap-ds-command/index.d.ts +3 -0
  539. package/dist/react/dap-ds-command/index.js.map +1 -1
  540. package/dist/react/dap-ds-copybox-input/index.d.ts +11 -0
  541. package/dist/react/dap-ds-copybox-input/index.js.map +1 -1
  542. package/dist/react/dap-ds-datatable/index.d.ts +17 -0
  543. package/dist/react/dap-ds-datatable/index.js.map +1 -1
  544. package/dist/react/dap-ds-datepicker/index.d.ts +8 -0
  545. package/dist/react/dap-ds-datepicker/index.js.map +1 -1
  546. package/dist/react/dap-ds-file-input/index.d.ts +3 -0
  547. package/dist/react/dap-ds-file-input/index.js.map +1 -1
  548. package/dist/react/dap-ds-file-input-list-item/index.d.ts +1 -0
  549. package/dist/react/dap-ds-file-input-list-item/index.js.map +1 -1
  550. package/dist/react/dap-ds-form-label/index.d.ts +1 -1
  551. package/dist/react/dap-ds-form-label/index.js.map +1 -1
  552. package/dist/react/dap-ds-icon-button/index.d.ts +1 -0
  553. package/dist/react/dap-ds-icon-button/index.js.map +1 -1
  554. package/dist/react/dap-ds-input-group/index.d.ts +4 -0
  555. package/dist/react/dap-ds-input-group/index.js.map +1 -1
  556. package/dist/react/dap-ds-list-item/index.d.ts +2 -0
  557. package/dist/react/dap-ds-list-item/index.js.map +1 -1
  558. package/dist/react/dap-ds-number-input/index.d.ts +7 -0
  559. package/dist/react/dap-ds-number-input/index.js.map +1 -1
  560. package/dist/react/dap-ds-official-website-banner/index.d.ts +1 -0
  561. package/dist/react/dap-ds-official-website-banner/index.js.map +1 -1
  562. package/dist/react/dap-ds-option-item/index.d.ts +1 -0
  563. package/dist/react/dap-ds-option-item/index.js.map +1 -1
  564. package/dist/react/dap-ds-option-list/index.d.ts +1 -1
  565. package/dist/react/dap-ds-option-list/index.js.map +1 -1
  566. package/dist/react/dap-ds-password-input/index.d.ts +12 -5
  567. package/dist/react/dap-ds-password-input/index.js.map +1 -1
  568. package/dist/react/dap-ds-radio-button/index.d.ts +5 -0
  569. package/dist/react/dap-ds-radio-button/index.js.map +1 -1
  570. package/dist/react/dap-ds-radio-group/index.d.ts +5 -0
  571. package/dist/react/dap-ds-radio-group/index.js.map +1 -1
  572. package/dist/react/dap-ds-scroll-area/index.d.ts +2 -1
  573. package/dist/react/dap-ds-scroll-area/index.js.map +1 -1
  574. package/dist/react/dap-ds-search/index.d.ts +6 -1
  575. package/dist/react/dap-ds-search/index.js.map +1 -1
  576. package/dist/react/dap-ds-select/index.d.ts +6 -0
  577. package/dist/react/dap-ds-select/index.js.map +1 -1
  578. package/dist/react/dap-ds-sidenav-group/index.d.ts +1 -0
  579. package/dist/react/dap-ds-sidenav-group/index.js.map +1 -1
  580. package/dist/react/dap-ds-snackbar/index.d.ts +0 -1
  581. package/dist/react/dap-ds-snackbar/index.js.map +1 -1
  582. package/dist/react/dap-ds-snackbar-message/index.d.ts +3 -1
  583. package/dist/react/dap-ds-snackbar-message/index.js.map +1 -1
  584. package/dist/react/dap-ds-stack/index.d.ts +2 -1
  585. package/dist/react/dap-ds-stack/index.js.map +1 -1
  586. package/dist/react/dap-ds-switch/index.d.ts +6 -0
  587. package/dist/react/dap-ds-switch/index.js.map +1 -1
  588. package/dist/react/dap-ds-tab-group/index.d.ts +4 -2
  589. package/dist/react/dap-ds-tab-group/index.js.map +1 -1
  590. package/dist/react/dap-ds-table/index.d.ts +2 -0
  591. package/dist/react/dap-ds-table/index.js.map +1 -1
  592. package/dist/react/dap-ds-table-cell/index.d.ts +1 -1
  593. package/dist/react/dap-ds-table-cell/index.js.map +1 -1
  594. package/dist/react/dap-ds-textarea/index.d.ts +2 -0
  595. package/dist/react/dap-ds-textarea/index.js.map +1 -1
  596. package/dist/react/dap-ds-time-grid/index.d.ts +3 -0
  597. package/dist/react/dap-ds-time-grid/index.js.map +1 -1
  598. package/dist/react/dap-ds-timepicker/index.d.ts +5 -0
  599. package/dist/react/dap-ds-timepicker/index.js.map +1 -1
  600. package/dist/react/dap-ds-toc/index.d.ts +2 -0
  601. package/dist/react/dap-ds-toc/index.js.map +1 -1
  602. package/dist/react/dap-ds-tooltip/index.d.ts +2 -0
  603. package/dist/react/dap-ds-tooltip/index.js.map +1 -1
  604. package/dist/react/dap-ds-tray/index.d.ts +4 -1
  605. package/dist/react/dap-ds-tray/index.js.map +1 -1
  606. package/dist/react/index.d.ts +8 -5
  607. package/dist/react-types.ts +8 -5
  608. package/dist/react.js +368 -362
  609. package/dist/react.js.map +1 -1
  610. package/package.json +14 -3
  611. package/dist/node_modules/@lit/context/lib/context-request-event.js +0 -14
  612. package/dist/node_modules/@lit/context/lib/context-request-event.js.map +0 -1
  613. package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js +0 -31
  614. package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js.map +0 -1
  615. package/dist/node_modules/@lit/context/lib/controllers/context-provider.js +0 -40
  616. package/dist/node_modules/@lit/context/lib/controllers/context-provider.js.map +0 -1
  617. package/dist/node_modules/@lit/context/lib/create-context.js +0 -12
  618. package/dist/node_modules/@lit/context/lib/create-context.js.map +0 -1
  619. package/dist/node_modules/@lit/context/lib/value-notifier.js +0 -37
  620. package/dist/node_modules/@lit/context/lib/value-notifier.js.map +0 -1
  621. package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -51
  622. package/dist/node_modules/@lit/reactive-element/css-tag.js.map +0 -1
  623. package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -10
  624. package/dist/node_modules/@lit/reactive-element/decorators/base.js.map +0 -1
  625. package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -38
  626. package/dist/node_modules/@lit/reactive-element/decorators/property.js.map +0 -1
  627. package/dist/node_modules/@lit/reactive-element/decorators/query-all.js +0 -17
  628. package/dist/node_modules/@lit/reactive-element/decorators/query-all.js.map +0 -1
  629. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -20
  630. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map +0 -1
  631. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +0 -20
  632. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map +0 -1
  633. package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -21
  634. package/dist/node_modules/@lit/reactive-element/decorators/query.js.map +0 -1
  635. package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -25
  636. package/dist/node_modules/@lit/reactive-element/decorators/state.js.map +0 -1
  637. package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -276
  638. package/dist/node_modules/@lit/reactive-element/reactive-element.js.map +0 -1
  639. package/dist/node_modules/lit-element/lit-element.js +0 -53
  640. package/dist/node_modules/lit-element/lit-element.js.map +0 -1
  641. package/dist/node_modules/lit-html/async-directive.js +0 -71
  642. package/dist/node_modules/lit-html/async-directive.js.map +0 -1
  643. package/dist/node_modules/lit-html/directive-helpers.js +0 -46
  644. package/dist/node_modules/lit-html/directive-helpers.js.map +0 -1
  645. package/dist/node_modules/lit-html/directive.js +0 -28
  646. package/dist/node_modules/lit-html/directive.js.map +0 -1
  647. package/dist/node_modules/lit-html/directives/if-defined.js +0 -11
  648. package/dist/node_modules/lit-html/directives/if-defined.js.map +0 -1
  649. package/dist/node_modules/lit-html/directives/map.js +0 -15
  650. package/dist/node_modules/lit-html/directives/map.js.map +0 -1
  651. package/dist/node_modules/lit-html/directives/repeat.js +0 -63
  652. package/dist/node_modules/lit-html/directives/repeat.js.map +0 -1
  653. package/dist/node_modules/lit-html/directives/style-map.js +0 -37
  654. package/dist/node_modules/lit-html/directives/style-map.js.map +0 -1
  655. package/dist/node_modules/lit-html/lit-html.js +0 -249
  656. package/dist/node_modules/lit-html/lit-html.js.map +0 -1
  657. package/dist/node_modules/lit-html/static.js +0 -34
  658. package/dist/node_modules/lit-html/static.js.map +0 -1
  659. package/dist/node_modules/lit-i18n/src/lit-i18n.js +0 -95
  660. package/dist/node_modules/lit-i18n/src/lit-i18n.js.map +0 -1
@@ -1,22 +1,18 @@
1
- import { ContextConsumer as p } from "../../node_modules/@lit/context/lib/controllers/context-consumer.js";
1
+ import { ContextConsumer as p } from "@lit/context";
2
2
  import { clsx as u } from "../../node_modules/clsx/dist/clsx.js";
3
- import "../../node_modules/@lit/reactive-element/reactive-element.js";
4
- import { nothing as c, html as h } from "../../node_modules/lit-html/lit-html.js";
5
- import "../../node_modules/lit-element/lit-element.js";
6
- import { state as a } from "../../node_modules/@lit/reactive-element/decorators/state.js";
7
- import { query as x } from "../../node_modules/@lit/reactive-element/decorators/query.js";
8
- import { DdsElement as f } from "../../internal/dds-hu-element.js";
3
+ import { unsafeCSS as x, nothing as h, html as o } from "lit";
4
+ import { query as f, state as d } from "lit/decorators.js";
5
+ import { DdsElement as m } from "../../internal/dds-hu-element.js";
9
6
  import "../../localization/localization.js";
10
- import { codePuncherContext as m } from "./code-puncher.context.js";
11
- import v from "./code-puncher-slot.scss.js";
12
- import { t as $ } from "../../node_modules/i18next/dist/esm/i18next.js";
13
- import { unsafeCSS as b } from "../../node_modules/@lit/reactive-element/css-tag.js";
14
- var y = Object.defineProperty, n = (d, t, s, l) => {
15
- for (var e = void 0, o = d.length - 1, _; o >= 0; o--)
16
- (_ = d[o]) && (e = _(t, s, e) || e);
17
- return e && y(t, s, e), e;
7
+ import { codePuncherContext as v } from "./code-puncher.context.js";
8
+ import b from "./code-puncher-slot.scss.js";
9
+ import { t as y } from "../../node_modules/i18next/dist/esm/i18next.js";
10
+ var $ = Object.defineProperty, n = (l, t, e, a) => {
11
+ for (var s = void 0, c = l.length - 1, _; c >= 0; c--)
12
+ (_ = l[c]) && (s = _(t, e, s) || s);
13
+ return s && $(t, e, s), s;
18
14
  };
19
- const r = class r extends f {
15
+ const r = class r extends m {
20
16
  constructor() {
21
17
  super(...arguments), this._index = -1, this._isActive = !1, this._registered = !1, this._onInput = () => {
22
18
  if (!this._input || !this._ctx) return;
@@ -27,9 +23,9 @@ const r = class r extends f {
27
23
  }, this._handlePaste = (t) => {
28
24
  this._ctx && this._ctx.handlePaste(t);
29
25
  }, this._onFocus = () => {
30
- var s;
26
+ var e;
31
27
  if (!this._ctx) return;
32
- this._isActive = !0, (s = this._input) != null && s.value && this._input.select();
28
+ this._isActive = !0, (e = this._input) != null && e.value && this._input.select();
33
29
  const t = this.closest("dap-ds-code-puncher");
34
30
  t == null || t.setActiveIndex(this._index), this.requestUpdate();
35
31
  }, this._onBlur = () => {
@@ -38,7 +34,7 @@ const r = class r extends f {
38
34
  }
39
35
  connectedCallback() {
40
36
  super.connectedCallback(), this._consumer = new p(this, {
41
- context: m,
37
+ context: v,
42
38
  subscribe: !0,
43
39
  callback: (t) => {
44
40
  this._ctx = t, t && !this._registered && (this._index = t.registerSlot(this), this._registered = !0), this.requestUpdate();
@@ -53,16 +49,16 @@ const r = class r extends f {
53
49
  }
54
50
  // Get properties from context
55
51
  get disabled() {
56
- var t, s;
57
- return (s = (t = this._ctx) == null ? void 0 : t.disabled) != null ? s : !1;
52
+ var t, e;
53
+ return (e = (t = this._ctx) == null ? void 0 : t.disabled) != null ? e : !1;
58
54
  }
59
55
  get readonly() {
60
- var t, s;
61
- return (s = (t = this._ctx) == null ? void 0 : t.readonly) != null ? s : !1;
56
+ var t, e;
57
+ return (e = (t = this._ctx) == null ? void 0 : t.readonly) != null ? e : !1;
62
58
  }
63
59
  get size() {
64
- var t, s;
65
- return (s = (t = this._ctx) == null ? void 0 : t.size) != null ? s : "sm";
60
+ var t, e;
61
+ return (e = (t = this._ctx) == null ? void 0 : t.size) != null ? e : "sm";
66
62
  }
67
63
  // Focus the internal input
68
64
  focus() {
@@ -71,9 +67,9 @@ const r = class r extends f {
71
67
  }
72
68
  render() {
73
69
  if (!this._ctx || this._index < 0)
74
- return c;
75
- const t = this._ctx.getCharAt(this._index), s = !t && this._ctx.placeholder && !this._isActive, l = this._ctx.slotCount;
76
- return h`
70
+ return h;
71
+ const t = this._ctx.getCharAt(this._index), e = !t && this._ctx.placeholder && !this._isActive, a = this._ctx.slotCount;
72
+ return o`
77
73
  <div
78
74
  part="base"
79
75
  class=${u("code-puncher-slot", `code-puncher-slot--${this.size}`, {
@@ -99,36 +95,36 @@ const r = class r extends f {
99
95
  ?disabled=${this.disabled}
100
96
  ?readonly=${this.readonly}
101
97
  autocomplete=${this._index === 0 ? this._ctx.autocomplete : "off"}
102
- aria-label=${$("code-puncher.slot.aria-label", {
98
+ aria-label=${y("code-puncher.slot.aria-label", {
103
99
  index: this._index + 1,
104
- count: l
100
+ count: a
105
101
  })}
106
102
  @input=${this._onInput}
107
103
  @keydown=${this._onKeydown}
108
104
  @focus=${this._onFocus}
109
105
  @blur=${this._onBlur}
110
106
  @paste=${this._handlePaste} />
111
- ${s ? h`<span class="code-puncher-slot__placeholder"
107
+ ${e ? o`<span class="code-puncher-slot__placeholder"
112
108
  >${this._ctx.placeholder}</span
113
- >` : c}
114
- ${this._isActive && !t ? h`<span class="code-puncher-slot__caret"></span>` : c}
109
+ >` : h}
110
+ ${this._isActive && !t ? o`<span class="code-puncher-slot__caret"></span>` : h}
115
111
  </div>
116
112
  `;
117
113
  }
118
114
  };
119
- r.tagName = "dap-ds-code-puncher-slot", r.styles = b(v);
115
+ r.tagName = "dap-ds-code-puncher-slot", r.styles = x(b);
120
116
  let i = r;
121
117
  n([
122
- x("#input")
118
+ f("#input")
123
119
  ], i.prototype, "_input");
124
120
  n([
125
- a()
121
+ d()
126
122
  ], i.prototype, "_index");
127
123
  n([
128
- a()
124
+ d()
129
125
  ], i.prototype, "_isActive");
130
126
  n([
131
- a()
127
+ d()
132
128
  ], i.prototype, "_registered");
133
129
  export {
134
130
  i as default
@@ -1 +1 @@
1
- {"version":3,"file":"code-puncher-slot.component.js","sources":["../../../src/components/code-puncher/code-puncher-slot.component.ts"],"sourcesContent":["import { ContextConsumer } from '@lit/context'\nimport clsx from 'clsx'\nimport { html, nothing, unsafeCSS } from 'lit'\nimport { query, state } from 'lit/decorators.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { t } from '@/localization/localization'\n\nimport { CodePuncherContext, codePuncherContext } from './code-puncher.context'\nimport styles from './code-puncher-slot.scss?inline'\n\n/**\n * `dap-ds-code-puncher-slot`\n * @summary Individual digit input slot for code puncher.\n * @element dap-ds-code-puncher-slot\n * @title - Code puncher slot\n *\n * @csspart base - The slot container.\n * @csspart input - The input element.\n */\nexport default class DapDSCodePuncherSlot extends DdsElement {\n static tagName = 'dap-ds-code-puncher-slot'\n\n static readonly styles = unsafeCSS(styles)\n\n // Context consumer - kept alive to maintain subscription\n // @ts-expect-error - Consumer is needed to maintain subscription, but not directly accessed\n private _consumer!: ContextConsumer<typeof codePuncherContext, this>\n private _ctx: CodePuncherContext | undefined\n\n @query('#input') private _input!: HTMLInputElement\n\n @state() private _index = -1\n @state() private _isActive = false\n @state() private _registered = false\n\n connectedCallback(): void {\n super.connectedCallback()\n // Create context consumer\n this._consumer = new ContextConsumer(this, {\n context: codePuncherContext,\n subscribe: true,\n callback: ctx => {\n this._ctx = ctx\n // Register slot when context first becomes available\n if (ctx && !this._registered) {\n this._index = ctx.registerSlot(this)\n this._registered = true\n }\n this.requestUpdate()\n },\n })\n }\n\n disconnectedCallback(): void {\n if (this._ctx && this._registered) {\n this._ctx.unregisterSlot(this)\n this._registered = false\n }\n super.disconnectedCallback()\n }\n\n protected willUpdate(_changedProperties: Map<string, unknown>): void {\n super.willUpdate(_changedProperties)\n // Update active state from context\n if (this._ctx) {\n this._isActive = this._ctx.activeIndex === this._index\n }\n }\n\n // Get properties from context\n get disabled(): boolean {\n return this._ctx?.disabled ?? false\n }\n\n get readonly(): boolean {\n return this._ctx?.readonly ?? false\n }\n\n get size(): 'xs' | 'sm' | 'lg' {\n return (this._ctx?.size as 'xs' | 'sm' | 'lg') ?? 'sm'\n }\n\n // Focus the internal input\n focus(): void {\n this._input?.focus()\n }\n\n // Input handler to validate and notify parent\n private _onInput = (): void => {\n if (!this._input || !this._ctx) return\n\n const char = this._input.value\n\n if (char === '') {\n this._ctx.setCharAt(this._index, '')\n } else if (this._ctx.pattern.test(char)) {\n this._ctx.setCharAt(this._index, char)\n // Auto-advance to next slot\n if (this._index < this._ctx.slotCount - 1) {\n this._ctx.focusSlot(this._index + 1)\n }\n } else {\n // Reject invalid character, restore previous value\n this._input.value = this._ctx.getCharAt(this._index)\n }\n }\n\n // Keydown handler for navigation\n private _onKeydown = (event: KeyboardEvent): void => {\n if (!this._ctx) return\n this._ctx.handleKeydown(this._index, event)\n }\n\n // Handle paste at slot level\n private _handlePaste = (event: ClipboardEvent): void => {\n if (!this._ctx) return\n this._ctx.handlePaste(event)\n }\n\n // Focus handler\n private _onFocus = (): void => {\n if (!this._ctx) return\n this._isActive = true\n // Select existing content so typing replaces it\n if (this._input?.value) {\n this._input.select()\n }\n // Notify parent of focus\n const parent = this.closest('dap-ds-code-puncher') as HTMLElement & {\n setActiveIndex: (i: number) => void\n }\n parent?.setActiveIndex(this._index)\n this.requestUpdate()\n }\n\n // Blur handler\n private _onBlur = (): void => {\n this._isActive = false\n this.requestUpdate()\n }\n\n render() {\n if (!this._ctx || this._index < 0) {\n return nothing\n }\n\n const char = this._ctx.getCharAt(this._index)\n const showPlaceholder = !char && this._ctx.placeholder && !this._isActive\n const slotCount = this._ctx.slotCount\n\n return html`\n <div\n part=\"base\"\n class=${clsx('code-puncher-slot', `code-puncher-slot--${this.size}`, {\n 'code-puncher-slot--filled': !!char,\n })}>\n <input\n id=\"input\"\n part=\"input\"\n class=${clsx(\n 'code-puncher-slot__input',\n `code-puncher-slot__input--${this.size}`,\n {\n 'code-puncher-slot__input--disabled': this.disabled,\n 'code-puncher-slot__input--readonly': this.readonly,\n 'code-puncher-slot__input--success':\n this._ctx.status === 'success',\n 'code-puncher-slot__input--error': this._ctx.status === 'error',\n },\n )}\n type=${this._ctx.mask ? 'password' : 'text'}\n inputmode=\"numeric\"\n maxlength=\"1\"\n .value=${char}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n autocomplete=${(this._index === 0\n ? this._ctx.autocomplete\n : 'off') as any}\n aria-label=${t('code-puncher.slot.aria-label', {\n index: this._index + 1,\n count: slotCount,\n })}\n @input=${this._onInput}\n @keydown=${this._onKeydown}\n @focus=${this._onFocus}\n @blur=${this._onBlur}\n @paste=${this._handlePaste} />\n ${showPlaceholder\n ? html`<span class=\"code-puncher-slot__placeholder\"\n >${this._ctx.placeholder}</span\n >`\n : nothing}\n ${this._isActive && !char\n ? html`<span class=\"code-puncher-slot__caret\"></span>`\n : nothing}\n </div>\n `\n }\n}\n"],"names":["_DapDSCodePuncherSlot","DdsElement","char","event","_a","parent","ContextConsumer","codePuncherContext","ctx","_changedProperties","_b","nothing","showPlaceholder","slotCount","html","clsx","t","unsafeCSS","styles","DapDSCodePuncherSlot","__decorateClass","query","state"],"mappings":"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"}
1
+ {"version":3,"file":"code-puncher-slot.component.js","sources":["../../../src/components/code-puncher/code-puncher-slot.component.ts"],"sourcesContent":["import { ContextConsumer } from '@lit/context'\nimport clsx from 'clsx'\nimport { html, nothing, unsafeCSS } from 'lit'\nimport { query, state } from 'lit/decorators.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { t } from '@/localization/localization'\n\nimport { CodePuncherContext, codePuncherContext } from './code-puncher.context'\nimport styles from './code-puncher-slot.scss?inline'\n\n/**\n * `dap-ds-code-puncher-slot`\n * @summary Individual digit input slot for code puncher.\n * @element dap-ds-code-puncher-slot\n * @title - Code puncher slot\n *\n * @csspart base - The slot container.\n * @csspart input - The input element.\n */\nexport default class DapDSCodePuncherSlot extends DdsElement {\n static tagName = 'dap-ds-code-puncher-slot'\n\n static readonly styles = unsafeCSS(styles)\n\n // Context consumer - kept alive to maintain subscription\n // @ts-expect-error - Consumer is needed to maintain subscription, but not directly accessed\n private _consumer!: ContextConsumer<typeof codePuncherContext, this>\n private _ctx: CodePuncherContext | undefined\n\n @query('#input') private _input!: HTMLInputElement\n\n @state() private _index = -1\n @state() private _isActive = false\n @state() private _registered = false\n\n connectedCallback(): void {\n super.connectedCallback()\n // Create context consumer\n this._consumer = new ContextConsumer(this, {\n context: codePuncherContext,\n subscribe: true,\n callback: ctx => {\n this._ctx = ctx\n // Register slot when context first becomes available\n if (ctx && !this._registered) {\n this._index = ctx.registerSlot(this)\n this._registered = true\n }\n this.requestUpdate()\n },\n })\n }\n\n disconnectedCallback(): void {\n if (this._ctx && this._registered) {\n this._ctx.unregisterSlot(this)\n this._registered = false\n }\n super.disconnectedCallback()\n }\n\n protected willUpdate(_changedProperties: Map<string, unknown>): void {\n super.willUpdate(_changedProperties)\n // Update active state from context\n if (this._ctx) {\n this._isActive = this._ctx.activeIndex === this._index\n }\n }\n\n // Get properties from context\n get disabled(): boolean {\n return this._ctx?.disabled ?? false\n }\n\n get readonly(): boolean {\n return this._ctx?.readonly ?? false\n }\n\n get size(): 'xs' | 'sm' | 'lg' {\n return (this._ctx?.size as 'xs' | 'sm' | 'lg') ?? 'sm'\n }\n\n // Focus the internal input\n focus(): void {\n this._input?.focus()\n }\n\n // Input handler to validate and notify parent\n private _onInput = (): void => {\n if (!this._input || !this._ctx) return\n\n const char = this._input.value\n\n if (char === '') {\n this._ctx.setCharAt(this._index, '')\n } else if (this._ctx.pattern.test(char)) {\n this._ctx.setCharAt(this._index, char)\n // Auto-advance to next slot\n if (this._index < this._ctx.slotCount - 1) {\n this._ctx.focusSlot(this._index + 1)\n }\n } else {\n // Reject invalid character, restore previous value\n this._input.value = this._ctx.getCharAt(this._index)\n }\n }\n\n // Keydown handler for navigation\n private _onKeydown = (event: KeyboardEvent): void => {\n if (!this._ctx) return\n this._ctx.handleKeydown(this._index, event)\n }\n\n // Handle paste at slot level\n private _handlePaste = (event: ClipboardEvent): void => {\n if (!this._ctx) return\n this._ctx.handlePaste(event)\n }\n\n // Focus handler\n private _onFocus = (): void => {\n if (!this._ctx) return\n this._isActive = true\n // Select existing content so typing replaces it\n if (this._input?.value) {\n this._input.select()\n }\n // Notify parent of focus\n const parent = this.closest('dap-ds-code-puncher') as HTMLElement & {\n setActiveIndex: (i: number) => void\n }\n parent?.setActiveIndex(this._index)\n this.requestUpdate()\n }\n\n // Blur handler\n private _onBlur = (): void => {\n this._isActive = false\n this.requestUpdate()\n }\n\n render() {\n if (!this._ctx || this._index < 0) {\n return nothing\n }\n\n const char = this._ctx.getCharAt(this._index)\n const showPlaceholder = !char && this._ctx.placeholder && !this._isActive\n const slotCount = this._ctx.slotCount\n\n return html`\n <div\n part=\"base\"\n class=${clsx('code-puncher-slot', `code-puncher-slot--${this.size}`, {\n 'code-puncher-slot--filled': !!char,\n })}>\n <input\n id=\"input\"\n part=\"input\"\n class=${clsx(\n 'code-puncher-slot__input',\n `code-puncher-slot__input--${this.size}`,\n {\n 'code-puncher-slot__input--disabled': this.disabled,\n 'code-puncher-slot__input--readonly': this.readonly,\n 'code-puncher-slot__input--success':\n this._ctx.status === 'success',\n 'code-puncher-slot__input--error': this._ctx.status === 'error',\n },\n )}\n type=${this._ctx.mask ? 'password' : 'text'}\n inputmode=\"numeric\"\n maxlength=\"1\"\n .value=${char}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n autocomplete=${(this._index === 0\n ? this._ctx.autocomplete\n : 'off') as any}\n aria-label=${t('code-puncher.slot.aria-label', {\n index: this._index + 1,\n count: slotCount,\n })}\n @input=${this._onInput}\n @keydown=${this._onKeydown}\n @focus=${this._onFocus}\n @blur=${this._onBlur}\n @paste=${this._handlePaste} />\n ${showPlaceholder\n ? html`<span class=\"code-puncher-slot__placeholder\"\n >${this._ctx.placeholder}</span\n >`\n : nothing}\n ${this._isActive && !char\n ? html`<span class=\"code-puncher-slot__caret\"></span>`\n : nothing}\n </div>\n `\n }\n}\n"],"names":["_DapDSCodePuncherSlot","DdsElement","char","event","_a","parent","ContextConsumer","codePuncherContext","ctx","_changedProperties","_b","nothing","showPlaceholder","slotCount","html","clsx","t","unsafeCSS","styles","DapDSCodePuncherSlot","__decorateClass","query","state"],"mappings":"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"}
@@ -45,6 +45,10 @@ import { default as DapDSTypography } from '../typography/typography.component';
45
45
  * @csspart label - The label element.
46
46
  * @csspart description - The description element.
47
47
  * @csspart feedback - The feedback element.
48
+ * @csspart tooltip - The tooltip of the code puncher.
49
+ * @csspart label-base - The base of the label.
50
+ * @csspart label-required - The required indicator of the label.
51
+ * @csspart label-optional - The optional indicator of the label.
48
52
  */
49
53
  export default class DapDSCodePuncher extends GenericFormElement {
50
54
  static tagName: string;
@@ -1,27 +1,24 @@
1
- import { ContextProvider as g } from "../../node_modules/@lit/context/lib/controllers/context-provider.js";
2
- import { clsx as f } from "../../node_modules/clsx/dist/clsx.js";
3
- import "../../node_modules/@lit/reactive-element/reactive-element.js";
4
- import { nothing as p, html as h } from "../../node_modules/lit-html/lit-html.js";
5
- import "../../node_modules/lit-element/lit-element.js";
6
- import { property as u } from "../../node_modules/@lit/reactive-element/decorators/property.js";
7
- import { state as _ } from "../../node_modules/@lit/reactive-element/decorators/state.js";
8
- import { ifDefined as d } from "../../node_modules/lit-html/directives/if-defined.js";
9
- import { GenericFormElement as v } from "../../internal/mixin/genericFormElement.js";
10
- import y from "../feedback/feedback.component.js";
11
- import $ from "../form/form-label/form-label.component.js";
12
- import k from "../icon/icon.component.js";
13
- import x from "../icon-button/icon-button.component.js";
14
- import S from "../tooltip/tooltip.component.js";
15
- import C from "../typography/typography.component.js";
16
- import { codePuncherContext as F } from "./code-puncher.context.js";
17
- import I from "./code-puncher.scss.js";
18
- import { unsafeCSS as V } from "../../node_modules/@lit/reactive-element/css-tag.js";
19
- var A = Object.defineProperty, r = (m, t, s, e) => {
20
- for (var i = void 0, a = m.length - 1, n; a >= 0; a--)
21
- (n = m[a]) && (i = n(t, s, i) || i);
22
- return i && A(t, s, i), i;
1
+ import { ContextProvider as g } from "@lit/context";
2
+ import { clsx as m } from "../../node_modules/clsx/dist/clsx.js";
3
+ import { unsafeCSS as v, nothing as _, html as n } from "lit";
4
+ import { property as p, state as u } from "lit/decorators.js";
5
+ import { ifDefined as c } from "lit/directives/if-defined.js";
6
+ import { GenericFormElement as y } from "../../internal/mixin/genericFormElement.js";
7
+ import { formLabelTemplate as k } from "../../internal/templates/formLabel.js";
8
+ import x from "../feedback/feedback.component.js";
9
+ import S from "../form/form-label/form-label.component.js";
10
+ import $ from "../icon/icon.component.js";
11
+ import C from "../icon-button/icon-button.component.js";
12
+ import F from "../tooltip/tooltip.component.js";
13
+ import I from "../typography/typography.component.js";
14
+ import { codePuncherContext as V } from "./code-puncher.context.js";
15
+ import A from "./code-puncher.scss.js";
16
+ var D = Object.defineProperty, r = (f, t, e, s) => {
17
+ for (var i = void 0, a = f.length - 1, l; a >= 0; a--)
18
+ (l = f[a]) && (i = l(t, e, i) || i);
19
+ return i && D(t, e, i), i;
23
20
  };
24
- const c = class c extends v {
21
+ const d = class d extends y {
25
22
  constructor() {
26
23
  super(...arguments), this.mask = !1, this.pattern = "[0-9]", this.placeholder = "", this.autocomplete = "one-time-code", this._slots = [], this._activeIndex = -1, this._chars = [], this._hasFocus = !1, this._rawValue = "", this._patternRegex = /^[0-9]$/;
27
24
  }
@@ -48,7 +45,7 @@ const c = class c extends v {
48
45
  }
49
46
  connectedCallback() {
50
47
  super.connectedCallback(), this._provider = new g(this, {
51
- context: F,
48
+ context: V,
52
49
  initialValue: this._getContextValue()
53
50
  });
54
51
  }
@@ -60,12 +57,12 @@ const c = class c extends v {
60
57
  }
61
58
  set value(t) {
62
59
  if (this._rawValue = t, this._slots.length === 0) return;
63
- const s = t.split("");
60
+ const e = t.split("");
64
61
  this._chars = Array.from(
65
62
  { length: this._slots.length },
66
- (e, i) => {
63
+ (s, i) => {
67
64
  var a;
68
- return (a = s[i]) != null ? a : "";
65
+ return (a = e[i]) != null ? a : "";
69
66
  }
70
67
  ), this.internals.setFormValue(this.value), this.requestUpdate();
71
68
  }
@@ -73,67 +70,67 @@ const c = class c extends v {
73
70
  super.willUpdate(t), t.has("pattern") && (this._patternRegex = new RegExp(`^${this.pattern}$`)), this._updateContext();
74
71
  }
75
72
  _registerSlot(t) {
76
- var e;
77
- const s = this._slots.length;
78
- return this._slots = [...this._slots, t], this._chars = [...this._chars, (e = this._rawValue[s]) != null ? e : ""], this.internals.setFormValue(this.value), this.requestUpdate(), s;
73
+ var s;
74
+ const e = this._slots.length;
75
+ return this._slots = [...this._slots, t], this._chars = [...this._chars, (s = this._rawValue[e]) != null ? s : ""], this.internals.setFormValue(this.value), this.requestUpdate(), e;
79
76
  }
80
77
  _unregisterSlot(t) {
81
- const s = this._slots.indexOf(t);
82
- s > -1 && (this._slots = this._slots.filter((e) => e !== t), this._chars = this._chars.filter((e, i) => i !== s), this.requestUpdate());
78
+ const e = this._slots.indexOf(t);
79
+ e > -1 && (this._slots = this._slots.filter((s) => s !== t), this._chars = this._chars.filter((s, i) => i !== e), this.requestUpdate());
83
80
  }
84
81
  _getCharAt(t) {
85
82
  return this._chars[t] || "";
86
83
  }
87
- _setCharAt(t, s) {
88
- const e = this.value;
89
- this._chars = this._chars.map((i, a) => a === t ? s : i), this.internals.setFormValue(this.value), this.emit("dds-input", { value: this.value, index: t }), this.value !== e && this.emit("dds-change", { value: this.value }), this._chars.length > 0 && this._chars.every((i) => i !== "") && s !== "" && this.emit("dds-complete", { value: this.value }), this.requestUpdate(), this.setValidity();
84
+ _setCharAt(t, e) {
85
+ const s = this.value;
86
+ this._chars = this._chars.map((i, a) => a === t ? e : i), this.internals.setFormValue(this.value), this.emit("dds-input", { value: this.value, index: t }), this.value !== s && this.emit("dds-change", { value: this.value }), this._chars.length > 0 && this._chars.every((i) => i !== "") && e !== "" && this.emit("dds-complete", { value: this.value }), this.requestUpdate(), this.setValidity();
90
87
  }
91
88
  _focusSlot(t) {
92
- var s;
93
- t >= 0 && t < this._slots.length && (this._activeIndex = t, (s = this._slots[t]) == null || s.focus(), this.requestUpdate());
89
+ var e;
90
+ t >= 0 && t < this._slots.length && (this._activeIndex = t, (e = this._slots[t]) == null || e.focus(), this.requestUpdate());
94
91
  }
95
- _handleKeydown(t, s) {
96
- const e = this._chars[t] || "";
97
- switch (s.key) {
92
+ _handleKeydown(t, e) {
93
+ const s = this._chars[t] || "";
94
+ switch (e.key) {
98
95
  case "Backspace":
99
- e === "" && t > 0 ? (this._setCharAt(t - 1, ""), this._focusSlot(t - 1)) : this._setCharAt(t, ""), s.preventDefault();
96
+ s === "" && t > 0 ? (this._setCharAt(t - 1, ""), this._focusSlot(t - 1)) : this._setCharAt(t, ""), e.preventDefault();
100
97
  break;
101
98
  case "Delete":
102
- this._setCharAt(t, ""), s.preventDefault();
99
+ this._setCharAt(t, ""), e.preventDefault();
103
100
  break;
104
101
  case "ArrowLeft":
105
- t > 0 && this._focusSlot(t - 1), s.preventDefault();
102
+ t > 0 && this._focusSlot(t - 1), e.preventDefault();
106
103
  break;
107
104
  case "ArrowRight":
108
- t < this._slots.length - 1 && this._focusSlot(t + 1), s.preventDefault();
105
+ t < this._slots.length - 1 && this._focusSlot(t + 1), e.preventDefault();
109
106
  break;
110
107
  case "Home":
111
- this._focusSlot(0), s.preventDefault();
108
+ this._focusSlot(0), e.preventDefault();
112
109
  break;
113
110
  case "End":
114
- this._focusSlot(this._slots.length - 1), s.preventDefault();
111
+ this._focusSlot(this._slots.length - 1), e.preventDefault();
115
112
  break;
116
113
  }
117
114
  }
118
115
  _handlePaste(t) {
119
- var n;
116
+ var l;
120
117
  t.preventDefault();
121
- const e = (((n = t.clipboardData) == null ? void 0 : n.getData("text")) || "").replace(/[-·\s]/g, "").split("").filter((l) => this._patternRegex.test(l));
122
- e.slice(0, this._slots.length).forEach((l, b) => {
123
- this._chars[b] = l;
118
+ const s = (((l = t.clipboardData) == null ? void 0 : l.getData("text")) || "").replace(/[-·\s]/g, "").split("").filter((h) => this._patternRegex.test(h));
119
+ s.slice(0, this._slots.length).forEach((h, b) => {
120
+ this._chars[b] = h;
124
121
  }), this.internals.setFormValue(this.value), this.emit("dds-change", { value: this.value });
125
122
  const i = Math.min(
126
- e.length - 1,
123
+ s.length - 1,
127
124
  this._slots.length - 1
128
- ), a = this._chars.findIndex((l) => l === "");
129
- a > -1 ? this._focusSlot(a) : this._focusSlot(i), this._chars.every((l) => l !== "") && this.emit("dds-complete", { value: this.value }), this.requestUpdate();
125
+ ), a = this._chars.findIndex((h) => h === "");
126
+ a > -1 ? this._focusSlot(a) : this._focusSlot(i), this._chars.every((h) => h !== "") && this.emit("dds-complete", { value: this.value }), this.requestUpdate();
130
127
  }
131
128
  _handleFocusIn() {
132
129
  this._hasFocus || (this._hasFocus = !0, this.emit("dds-focus"));
133
130
  }
134
131
  _handleFocusOut(t) {
135
- const s = t.relatedTarget;
136
- this.contains(s) || (this._hasFocus = !1, this._activeIndex = -1, this.emit("dds-blur"), this.requestUpdate());
132
+ const e = t.relatedTarget;
133
+ this.contains(e) || (this._hasFocus = !1, this._activeIndex = -1, this.emit("dds-blur"), this.requestUpdate());
137
134
  }
138
135
  setActiveIndex(t) {
139
136
  this._activeIndex = t, this.requestUpdate();
@@ -142,8 +139,8 @@ const c = class c extends v {
142
139
  return this._slots[0] || this;
143
140
  }
144
141
  focus() {
145
- const t = this._chars.findIndex((e) => e === ""), s = t > -1 ? t : 0;
146
- this._focusSlot(s);
142
+ const t = this._chars.findIndex((s) => s === ""), e = t > -1 ? t : 0;
143
+ this._focusSlot(e);
147
144
  }
148
145
  setValidity() {
149
146
  this.required && this._chars.some((t) => t === "") ? this.internals.setValidity(
@@ -153,10 +150,10 @@ const c = class c extends v {
153
150
  ) : this.internals.setValidity({});
154
151
  }
155
152
  render() {
156
- return h`
153
+ return n`
157
154
  <div
158
155
  part="base"
159
- class=${f("code-puncher", `code-puncher--${this.size}`, {
156
+ class=${m("code-puncher", `code-puncher--${this.size}`, {
160
157
  "code-puncher--disabled": this.disabled,
161
158
  "code-puncher--readonly": this.readonly,
162
159
  "code-puncher--success": this.status === "success",
@@ -164,26 +161,24 @@ const c = class c extends v {
164
161
  "code-puncher--focused": this._hasFocus
165
162
  })}
166
163
  role="group"
167
- aria-label=${d(this.label || "Code input")}
164
+ aria-label=${c(this.label || "Code input")}
168
165
  @focusin=${this._handleFocusIn}
169
166
  @focusout=${this._handleFocusOut}>
170
- ${this.label || this.tooltip ? h`
167
+ ${this.label || this.tooltip ? n`
171
168
  <div class="label-container">
172
- ${this.label ? h`<dap-ds-form-label
173
- part="label"
174
- id="label"
175
- .size=${this.size}
176
- .required=${this.required}
177
- .requiredLabel=${this.requiredLabel}
178
- .optional=${this.optional}
179
- .optionalLabel=${this.optionalLabel}
180
- .disabled=${this.disabled}
181
- class=${f("label")}
182
- .noMargin=${!!this.description}
183
- .hideLabel=${this.hideLabel}
184
- label=${d(this.label)}>
185
- </dap-ds-form-label>` : p}
186
- ${this.tooltip ? h`<dap-ds-tooltip
169
+ ${k({
170
+ label: this.label,
171
+ id: "label",
172
+ size: this.size,
173
+ required: this.required,
174
+ requiredLabel: this.requiredLabel,
175
+ optional: this.optional,
176
+ optionalLabel: this.optionalLabel,
177
+ disabled: this.disabled,
178
+ noMargin: !!this.description,
179
+ hideLabel: this.hideLabel
180
+ })}
181
+ ${this.tooltip ? n`<dap-ds-tooltip
187
182
  part="tooltip"
188
183
  content=${this.tooltip}
189
184
  mode="toggle"
@@ -200,19 +195,19 @@ const c = class c extends v {
200
195
  name="information-line"
201
196
  class="info-button"></dap-ds-icon>
202
197
  </dap-ds-icon-button>
203
- </dap-ds-tooltip>` : p}
198
+ </dap-ds-tooltip>` : _}
204
199
  </div>
205
- ` : p}
206
- ${this.description ? h`
200
+ ` : _}
201
+ ${this.description ? n`
207
202
  <dap-ds-typography
208
203
  part="description"
209
204
  variant="description"
210
- class=${f("input-description")}
211
- size=${d(this.size)}
205
+ class=${m("input-description")}
206
+ size=${c(this.size)}
212
207
  id="description">
213
208
  ${this.description}
214
209
  </dap-ds-typography>
215
- ` : p}
210
+ ` : _}
216
211
  <div part="slots" class="code-puncher__slots">
217
212
  <slot></slot>
218
213
  </div>
@@ -221,12 +216,12 @@ const c = class c extends v {
221
216
  `;
222
217
  }
223
218
  _renderFeedback() {
224
- return h`
219
+ return n`
225
220
  <dap-ds-feedback
226
221
  part="feedback"
227
222
  role="alert"
228
- feedbackType=${d(this.feedbackType)}
229
- feedbackSize="${d(this.size)}"
223
+ feedbackType=${c(this.feedbackType)}
224
+ feedbackSize="${c(this.size)}"
230
225
  .subtle=${this.subtle}
231
226
  id="feedback">
232
227
  <slot
@@ -240,38 +235,38 @@ const c = class c extends v {
240
235
  (t == null ? void 0 : t.target).setAttribute("slot", "icon");
241
236
  }
242
237
  };
243
- c.tagName = "dap-ds-code-puncher", c.dependencies = {
244
- "dap-ds-form-label": $,
245
- "dap-ds-tooltip": S,
246
- "dap-ds-icon-button": x,
247
- "dap-ds-icon": k,
248
- "dap-ds-typography": C,
249
- "dap-ds-feedback": y
250
- }, c.styles = V(I);
251
- let o = c;
238
+ d.tagName = "dap-ds-code-puncher", d.dependencies = {
239
+ "dap-ds-form-label": S,
240
+ "dap-ds-tooltip": F,
241
+ "dap-ds-icon-button": C,
242
+ "dap-ds-icon": $,
243
+ "dap-ds-typography": I,
244
+ "dap-ds-feedback": x
245
+ }, d.styles = v(A);
246
+ let o = d;
252
247
  r([
253
- u({ type: Boolean, reflect: !0 })
248
+ p({ type: Boolean, reflect: !0 })
254
249
  ], o.prototype, "mask");
255
250
  r([
256
- u()
251
+ p()
257
252
  ], o.prototype, "pattern");
258
253
  r([
259
- u()
254
+ p()
260
255
  ], o.prototype, "placeholder");
261
256
  r([
262
- u()
257
+ p()
263
258
  ], o.prototype, "autocomplete");
264
259
  r([
265
- _()
260
+ u()
266
261
  ], o.prototype, "_slots");
267
262
  r([
268
- _()
263
+ u()
269
264
  ], o.prototype, "_activeIndex");
270
265
  r([
271
- _()
266
+ u()
272
267
  ], o.prototype, "_chars");
273
268
  r([
274
- _()
269
+ u()
275
270
  ], o.prototype, "_hasFocus");
276
271
  export {
277
272
  o as default