dap-design-system 0.62.4 → 0.63.0

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 (658) 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 +8 -0
  119. package/dist/components/datepicker/datepicker.component.js +76 -81
  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 +5 -0
  454. package/dist/components/timepicker/timepicker.component.js +90 -95
  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.js +1 -1
  487. package/dist/internal/mixin/labelPositionedMixin.js +1 -1
  488. package/dist/internal/mixin/labelableMixin.d.ts +1 -1
  489. package/dist/internal/mixin/labelableMixin.js +61 -63
  490. package/dist/internal/mixin/labelableMixin.js.map +1 -1
  491. package/dist/internal/mixin/sizedMixin.js +29 -27
  492. package/dist/internal/mixin/sizedMixin.js.map +1 -1
  493. package/dist/internal/templates/formLabel.d.ts +41 -0
  494. package/dist/internal/templates/formLabel.js +47 -0
  495. package/dist/internal/templates/formLabel.js.map +1 -0
  496. package/dist/localization/localization.d.ts +1 -2
  497. package/dist/localization/localization.js +77 -76
  498. package/dist/localization/localization.js.map +1 -1
  499. package/dist/localization/localize-controller.d.ts +12 -0
  500. package/dist/localization/localize-controller.js +51 -0
  501. package/dist/localization/localize-controller.js.map +1 -0
  502. package/dist/manifest/types/vue/index.d.ts +527 -312
  503. package/dist/manifest/vscode.html-custom-data.json +333 -279
  504. package/dist/manifest/web-types.json +723 -619
  505. package/dist/react/dap-ds-accordion/index.d.ts +1 -0
  506. package/dist/react/dap-ds-accordion/index.js.map +1 -1
  507. package/dist/react/dap-ds-anchor-heading/index.d.ts +1 -0
  508. package/dist/react/dap-ds-anchor-heading/index.js.map +1 -1
  509. package/dist/react/dap-ds-banner/index.d.ts +1 -1
  510. package/dist/react/dap-ds-banner/index.js.map +1 -1
  511. package/dist/react/dap-ds-breadcrumb/index.d.ts +1 -1
  512. package/dist/react/dap-ds-breadcrumb/index.js.map +1 -1
  513. package/dist/react/dap-ds-button-group/index.d.ts +45 -0
  514. package/dist/react/dap-ds-button-group/index.js +15 -0
  515. package/dist/react/dap-ds-button-group/index.js.map +1 -0
  516. package/dist/react/dap-ds-button-group-separator/index.d.ts +24 -0
  517. package/dist/react/dap-ds-button-group-separator/index.js +15 -0
  518. package/dist/react/dap-ds-button-group-separator/index.js.map +1 -0
  519. package/dist/react/dap-ds-button-group-text/index.d.ts +30 -0
  520. package/dist/react/dap-ds-button-group-text/index.js +15 -0
  521. package/dist/react/dap-ds-button-group-text/index.js.map +1 -0
  522. package/dist/react/dap-ds-calendar/index.d.ts +3 -0
  523. package/dist/react/dap-ds-calendar/index.js.map +1 -1
  524. package/dist/react/dap-ds-callout/index.d.ts +1 -0
  525. package/dist/react/dap-ds-callout/index.js.map +1 -1
  526. package/dist/react/dap-ds-card/index.d.ts +1 -0
  527. package/dist/react/dap-ds-card/index.js.map +1 -1
  528. package/dist/react/dap-ds-checkbox/index.d.ts +7 -1
  529. package/dist/react/dap-ds-checkbox/index.js.map +1 -1
  530. package/dist/react/dap-ds-chip/index.d.ts +1 -0
  531. package/dist/react/dap-ds-chip/index.js.map +1 -1
  532. package/dist/react/dap-ds-code-puncher/index.d.ts +4 -0
  533. package/dist/react/dap-ds-code-puncher/index.js.map +1 -1
  534. package/dist/react/dap-ds-combobox/index.d.ts +9 -1
  535. package/dist/react/dap-ds-combobox/index.js.map +1 -1
  536. package/dist/react/dap-ds-command/index.d.ts +3 -0
  537. package/dist/react/dap-ds-command/index.js.map +1 -1
  538. package/dist/react/dap-ds-copybox-input/index.d.ts +11 -0
  539. package/dist/react/dap-ds-copybox-input/index.js.map +1 -1
  540. package/dist/react/dap-ds-datatable/index.d.ts +17 -0
  541. package/dist/react/dap-ds-datatable/index.js.map +1 -1
  542. package/dist/react/dap-ds-datepicker/index.d.ts +8 -0
  543. package/dist/react/dap-ds-datepicker/index.js.map +1 -1
  544. package/dist/react/dap-ds-file-input/index.d.ts +3 -0
  545. package/dist/react/dap-ds-file-input/index.js.map +1 -1
  546. package/dist/react/dap-ds-file-input-list-item/index.d.ts +1 -0
  547. package/dist/react/dap-ds-file-input-list-item/index.js.map +1 -1
  548. package/dist/react/dap-ds-form-label/index.d.ts +1 -1
  549. package/dist/react/dap-ds-form-label/index.js.map +1 -1
  550. package/dist/react/dap-ds-icon-button/index.d.ts +1 -0
  551. package/dist/react/dap-ds-icon-button/index.js.map +1 -1
  552. package/dist/react/dap-ds-input-group/index.d.ts +4 -0
  553. package/dist/react/dap-ds-input-group/index.js.map +1 -1
  554. package/dist/react/dap-ds-list-item/index.d.ts +2 -0
  555. package/dist/react/dap-ds-list-item/index.js.map +1 -1
  556. package/dist/react/dap-ds-number-input/index.d.ts +7 -0
  557. package/dist/react/dap-ds-number-input/index.js.map +1 -1
  558. package/dist/react/dap-ds-official-website-banner/index.d.ts +1 -0
  559. package/dist/react/dap-ds-official-website-banner/index.js.map +1 -1
  560. package/dist/react/dap-ds-option-item/index.d.ts +1 -0
  561. package/dist/react/dap-ds-option-item/index.js.map +1 -1
  562. package/dist/react/dap-ds-option-list/index.d.ts +1 -1
  563. package/dist/react/dap-ds-option-list/index.js.map +1 -1
  564. package/dist/react/dap-ds-password-input/index.d.ts +12 -5
  565. package/dist/react/dap-ds-password-input/index.js.map +1 -1
  566. package/dist/react/dap-ds-radio-button/index.d.ts +5 -0
  567. package/dist/react/dap-ds-radio-button/index.js.map +1 -1
  568. package/dist/react/dap-ds-radio-group/index.d.ts +5 -0
  569. package/dist/react/dap-ds-radio-group/index.js.map +1 -1
  570. package/dist/react/dap-ds-scroll-area/index.d.ts +2 -1
  571. package/dist/react/dap-ds-scroll-area/index.js.map +1 -1
  572. package/dist/react/dap-ds-search/index.d.ts +6 -1
  573. package/dist/react/dap-ds-search/index.js.map +1 -1
  574. package/dist/react/dap-ds-select/index.d.ts +6 -0
  575. package/dist/react/dap-ds-select/index.js.map +1 -1
  576. package/dist/react/dap-ds-sidenav-group/index.d.ts +1 -0
  577. package/dist/react/dap-ds-sidenav-group/index.js.map +1 -1
  578. package/dist/react/dap-ds-snackbar/index.d.ts +0 -1
  579. package/dist/react/dap-ds-snackbar/index.js.map +1 -1
  580. package/dist/react/dap-ds-snackbar-message/index.d.ts +3 -1
  581. package/dist/react/dap-ds-snackbar-message/index.js.map +1 -1
  582. package/dist/react/dap-ds-stack/index.d.ts +2 -1
  583. package/dist/react/dap-ds-stack/index.js.map +1 -1
  584. package/dist/react/dap-ds-switch/index.d.ts +6 -0
  585. package/dist/react/dap-ds-switch/index.js.map +1 -1
  586. package/dist/react/dap-ds-tab-group/index.d.ts +4 -2
  587. package/dist/react/dap-ds-tab-group/index.js.map +1 -1
  588. package/dist/react/dap-ds-table/index.d.ts +2 -0
  589. package/dist/react/dap-ds-table/index.js.map +1 -1
  590. package/dist/react/dap-ds-table-cell/index.d.ts +1 -1
  591. package/dist/react/dap-ds-table-cell/index.js.map +1 -1
  592. package/dist/react/dap-ds-textarea/index.d.ts +2 -0
  593. package/dist/react/dap-ds-textarea/index.js.map +1 -1
  594. package/dist/react/dap-ds-time-grid/index.d.ts +3 -0
  595. package/dist/react/dap-ds-time-grid/index.js.map +1 -1
  596. package/dist/react/dap-ds-timepicker/index.d.ts +5 -0
  597. package/dist/react/dap-ds-timepicker/index.js.map +1 -1
  598. package/dist/react/dap-ds-toc/index.d.ts +2 -0
  599. package/dist/react/dap-ds-toc/index.js.map +1 -1
  600. package/dist/react/dap-ds-tooltip/index.d.ts +2 -0
  601. package/dist/react/dap-ds-tooltip/index.js.map +1 -1
  602. package/dist/react/dap-ds-tray/index.d.ts +4 -1
  603. package/dist/react/dap-ds-tray/index.js.map +1 -1
  604. package/dist/react/index.d.ts +11 -8
  605. package/dist/react-types.ts +11 -8
  606. package/dist/react.js +366 -360
  607. package/dist/react.js.map +1 -1
  608. package/package.json +14 -3
  609. package/dist/node_modules/@lit/context/lib/context-request-event.js +0 -14
  610. package/dist/node_modules/@lit/context/lib/context-request-event.js.map +0 -1
  611. package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js +0 -31
  612. package/dist/node_modules/@lit/context/lib/controllers/context-consumer.js.map +0 -1
  613. package/dist/node_modules/@lit/context/lib/controllers/context-provider.js +0 -40
  614. package/dist/node_modules/@lit/context/lib/controllers/context-provider.js.map +0 -1
  615. package/dist/node_modules/@lit/context/lib/create-context.js +0 -12
  616. package/dist/node_modules/@lit/context/lib/create-context.js.map +0 -1
  617. package/dist/node_modules/@lit/context/lib/value-notifier.js +0 -37
  618. package/dist/node_modules/@lit/context/lib/value-notifier.js.map +0 -1
  619. package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -51
  620. package/dist/node_modules/@lit/reactive-element/css-tag.js.map +0 -1
  621. package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -10
  622. package/dist/node_modules/@lit/reactive-element/decorators/base.js.map +0 -1
  623. package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -38
  624. package/dist/node_modules/@lit/reactive-element/decorators/property.js.map +0 -1
  625. package/dist/node_modules/@lit/reactive-element/decorators/query-all.js +0 -17
  626. package/dist/node_modules/@lit/reactive-element/decorators/query-all.js.map +0 -1
  627. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -20
  628. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js.map +0 -1
  629. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +0 -20
  630. package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js.map +0 -1
  631. package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -21
  632. package/dist/node_modules/@lit/reactive-element/decorators/query.js.map +0 -1
  633. package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -25
  634. package/dist/node_modules/@lit/reactive-element/decorators/state.js.map +0 -1
  635. package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -276
  636. package/dist/node_modules/@lit/reactive-element/reactive-element.js.map +0 -1
  637. package/dist/node_modules/lit-element/lit-element.js +0 -53
  638. package/dist/node_modules/lit-element/lit-element.js.map +0 -1
  639. package/dist/node_modules/lit-html/async-directive.js +0 -71
  640. package/dist/node_modules/lit-html/async-directive.js.map +0 -1
  641. package/dist/node_modules/lit-html/directive-helpers.js +0 -46
  642. package/dist/node_modules/lit-html/directive-helpers.js.map +0 -1
  643. package/dist/node_modules/lit-html/directive.js +0 -28
  644. package/dist/node_modules/lit-html/directive.js.map +0 -1
  645. package/dist/node_modules/lit-html/directives/if-defined.js +0 -11
  646. package/dist/node_modules/lit-html/directives/if-defined.js.map +0 -1
  647. package/dist/node_modules/lit-html/directives/map.js +0 -15
  648. package/dist/node_modules/lit-html/directives/map.js.map +0 -1
  649. package/dist/node_modules/lit-html/directives/repeat.js +0 -63
  650. package/dist/node_modules/lit-html/directives/repeat.js.map +0 -1
  651. package/dist/node_modules/lit-html/directives/style-map.js +0 -37
  652. package/dist/node_modules/lit-html/directives/style-map.js.map +0 -1
  653. package/dist/node_modules/lit-html/lit-html.js +0 -249
  654. package/dist/node_modules/lit-html/lit-html.js.map +0 -1
  655. package/dist/node_modules/lit-html/static.js +0 -34
  656. package/dist/node_modules/lit-html/static.js.map +0 -1
  657. package/dist/node_modules/lit-i18n/src/lit-i18n.js +0 -95
  658. package/dist/node_modules/lit-i18n/src/lit-i18n.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ import { DdsElement } from '../../internal/dds-hu-element';
2
+ /**
3
+ * `dap-ds-button-group-text` shows static text (a label, a unit, an icon) inside a `dap-ds-button-group`.
4
+ * It joins the group's connected styling like a button does.
5
+ * @element dap-ds-button-group-text
6
+ * @summary Non-interactive text displayed inside a button group.
7
+ * @title - Button Group Text
8
+ * @group button-group
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <dap-ds-button-group aria-label="Page size">
13
+ * <dap-ds-button-group-text>Per page</dap-ds-button-group-text>
14
+ * <dap-ds-button variant="outline">10</dap-ds-button>
15
+ * <dap-ds-button variant="outline">50</dap-ds-button>
16
+ * </dap-ds-button-group>
17
+ * ```
18
+ *
19
+ * @slot - The text content. Can also hold an icon or a `<label>` for a grouped input.
20
+ *
21
+ * @csspart base - The text container.
22
+ *
23
+ * @cssproperty --dds-button-group-text-background - Background color (default: var(--dds-background-neutral-subtle))
24
+ * @cssproperty --dds-button-group-text-border-color - Border color (default: var(--dds-border-neutral-subtle))
25
+ * @cssproperty --dds-button-group-text-color - Text color (default: var(--dds-text-neutral-strong))
26
+ * @cssproperty --dds-button-group-text-padding-x - Horizontal padding (default: var(--dds-spacing-300))
27
+ * @cssproperty --dds-button-group-text-border-radius - Corner radius outside a group (default: var(--dds-radius-rounded))
28
+ */
29
+ export default class DapDSButtonGroupText extends DdsElement {
30
+ static tagName: string;
31
+ static readonly styles: import('lit').CSSResult;
32
+ render(): import('lit-html').TemplateResult;
33
+ }
@@ -0,0 +1,17 @@
1
+ import { unsafeCSS as e } from "lit";
2
+ import { html as r } from "lit/static-html.js";
3
+ import { DdsElement as m } from "../../internal/dds-hu-element.js";
4
+ import i from "./_styles/button-group-text.scss.js";
5
+ const t = class t extends m {
6
+ render() {
7
+ return r`<div part="base" class="button-group-text">
8
+ <slot></slot>
9
+ </div>`;
10
+ }
11
+ };
12
+ t.tagName = "dap-ds-button-group-text", t.styles = e(i);
13
+ let s = t;
14
+ export {
15
+ s as default
16
+ };
17
+ //# sourceMappingURL=button-group-text.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group-text.component.js","sources":["../../../src/components/button-group/button-group-text.component.ts"],"sourcesContent":["import { unsafeCSS } from 'lit'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './_styles/button-group-text.scss?inline'\n\n/**\n * `dap-ds-button-group-text` shows static text (a label, a unit, an icon) inside a `dap-ds-button-group`.\n * It joins the group's connected styling like a button does.\n * @element dap-ds-button-group-text\n * @summary Non-interactive text displayed inside a button group.\n * @title - Button Group Text\n * @group button-group\n *\n * @example\n * ```html\n * <dap-ds-button-group aria-label=\"Page size\">\n * <dap-ds-button-group-text>Per page</dap-ds-button-group-text>\n * <dap-ds-button variant=\"outline\">10</dap-ds-button>\n * <dap-ds-button variant=\"outline\">50</dap-ds-button>\n * </dap-ds-button-group>\n * ```\n *\n * @slot - The text content. Can also hold an icon or a `<label>` for a grouped input.\n *\n * @csspart base - The text container.\n *\n * @cssproperty --dds-button-group-text-background - Background color (default: var(--dds-background-neutral-subtle))\n * @cssproperty --dds-button-group-text-border-color - Border color (default: var(--dds-border-neutral-subtle))\n * @cssproperty --dds-button-group-text-color - Text color (default: var(--dds-text-neutral-strong))\n * @cssproperty --dds-button-group-text-padding-x - Horizontal padding (default: var(--dds-spacing-300))\n * @cssproperty --dds-button-group-text-border-radius - Corner radius outside a group (default: var(--dds-radius-rounded))\n */\nexport default class DapDSButtonGroupText extends DdsElement {\n static tagName = 'dap-ds-button-group-text'\n\n static readonly styles = unsafeCSS(styles)\n\n render() {\n return html`<div part=\"base\" class=\"button-group-text\">\n <slot></slot>\n </div>`\n }\n}\n"],"names":["_DapDSButtonGroupText","DdsElement","html","unsafeCSS","styles","DapDSButtonGroupText"],"mappings":";;;;AAiCA,MAAqBA,IAArB,MAAqBA,UAA6BC,EAAW;AAAA,EAK3D,SAAS;AACA,WAAAC;AAAA;AAAA;AAAA,EAAA;AAIX;AATEF,EAAO,UAAU,4BAEDA,EAAA,SAASG,EAAUC,CAAM;AAH3C,IAAqBC,IAArBL;"}
@@ -0,0 +1,8 @@
1
+ import { default as DapDSButtonGroupText } from './button-group-text.component';
2
+ export * from './button-group-text.component';
3
+ export default DapDSButtonGroupText;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'dap-ds-button-group-text': DapDSButtonGroupText;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ import t from "./button-group-text.component.js";
2
+ t.define();
3
+ export {
4
+ t as default
5
+ };
6
+ //# sourceMappingURL=button-group-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group-text.js","sources":["../../../src/components/button-group/button-group-text.ts"],"sourcesContent":["import DapDSButtonGroupText from './button-group-text.component'\n\nexport * from './button-group-text.component'\nexport default DapDSButtonGroupText\n\nDapDSButtonGroupText.define()\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'dap-ds-button-group-text': DapDSButtonGroupText\n }\n}\n"],"names":["DapDSButtonGroupText"],"mappings":";AAKAA,EAAqB,OAAO;"}
@@ -0,0 +1,52 @@
1
+ import { DdsElement } from '../../internal/dds-hu-element';
2
+ export type ButtonGroupOrientation = 'horizontal' | 'vertical';
3
+ /**
4
+ * `dap-ds-button-group` visually joins related buttons into a single control.
5
+ * Inner corners are squared off and adjacent borders collapse into one.
6
+ * @element dap-ds-button-group
7
+ * @summary A container that groups related buttons with consistent, connected styling.
8
+ * @title - Button Group
9
+ *
10
+ * @example Basic Usage
11
+ * ```html
12
+ * <dap-ds-button-group aria-label="Text alignment">
13
+ * <dap-ds-button variant="outline">Left</dap-ds-button>
14
+ * <dap-ds-button variant="outline">Center</dap-ds-button>
15
+ * <dap-ds-button variant="outline">Right</dap-ds-button>
16
+ * </dap-ds-button-group>
17
+ * ```
18
+ *
19
+ * @example Separator
20
+ * ```html
21
+ * <dap-ds-button-group aria-label="Clipboard">
22
+ * <dap-ds-button>Copy</dap-ds-button>
23
+ * <dap-ds-button-group-separator></dap-ds-button-group-separator>
24
+ * <dap-ds-button>Paste</dap-ds-button>
25
+ * </dap-ds-button-group>
26
+ * ```
27
+ *
28
+ * @example Nested groups
29
+ * ```html
30
+ * <dap-ds-button-group aria-label="Editor toolbar">
31
+ * <dap-ds-button-group>...</dap-ds-button-group>
32
+ * <dap-ds-button-group>...</dap-ds-button-group>
33
+ * </dap-ds-button-group>
34
+ * ```
35
+ *
36
+ * @slot - The grouped items: `dap-ds-button`, `dap-ds-icon-button`, `dap-ds-button-group-text`, `dap-ds-button-group-separator` or nested `dap-ds-button-group` elements.
37
+ *
38
+ * @cssproperty --dds-button-group-gap - Spacing between nested button groups (default: var(--dds-spacing-200))
39
+ * @cssproperty --dds-button-group-overlap - How much adjacent items overlap so their borders collapse into one (default: var(--dds-border-width-large))
40
+ * @cssproperty --dds-button-group-start-start-radius - Set on grouped items to square off their start-start corner. Read by `dap-ds-button`, `dap-ds-icon-button` and `dap-ds-button-group-text`.
41
+ * @cssproperty --dds-button-group-start-end-radius - Set on grouped items to square off their start-end corner.
42
+ * @cssproperty --dds-button-group-end-start-radius - Set on grouped items to square off their end-start corner.
43
+ * @cssproperty --dds-button-group-end-end-radius - Set on grouped items to square off their end-end corner.
44
+ */
45
+ export default class DapDSButtonGroup extends DdsElement {
46
+ static tagName: string;
47
+ /** The layout direction of the group */
48
+ orientation: ButtonGroupOrientation;
49
+ static readonly styles: import('lit').CSSResult;
50
+ connectedCallback(): void;
51
+ render(): import('lit-html').TemplateResult;
52
+ }
@@ -0,0 +1,30 @@
1
+ import { unsafeCSS as n } from "lit";
2
+ import { property as f } from "lit/decorators.js";
3
+ import { html as m } from "lit/static-html.js";
4
+ import { DdsElement as c } from "../../internal/dds-hu-element.js";
5
+ import d from "./_styles/button-group.scss.js";
6
+ var p = Object.defineProperty, h = (o, i, l, u) => {
7
+ for (var t = void 0, r = o.length - 1, a; r >= 0; r--)
8
+ (a = o[r]) && (t = a(i, l, t) || t);
9
+ return t && p(i, l, t), t;
10
+ };
11
+ const e = class e extends c {
12
+ constructor() {
13
+ super(...arguments), this.orientation = "horizontal";
14
+ }
15
+ connectedCallback() {
16
+ super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "group");
17
+ }
18
+ render() {
19
+ return m`<slot></slot>`;
20
+ }
21
+ };
22
+ e.tagName = "dap-ds-button-group", e.styles = n(d);
23
+ let s = e;
24
+ h([
25
+ f({ reflect: !0 })
26
+ ], s.prototype, "orientation");
27
+ export {
28
+ s as default
29
+ };
30
+ //# sourceMappingURL=button-group.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.component.js","sources":["../../../src/components/button-group/button-group.component.ts"],"sourcesContent":["import { unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '../../internal/dds-hu-element'\nimport styles from './_styles/button-group.scss?inline'\n\nexport type ButtonGroupOrientation = 'horizontal' | 'vertical'\n\n/**\n * `dap-ds-button-group` visually joins related buttons into a single control.\n * Inner corners are squared off and adjacent borders collapse into one.\n * @element dap-ds-button-group\n * @summary A container that groups related buttons with consistent, connected styling.\n * @title - Button Group\n *\n * @example Basic Usage\n * ```html\n * <dap-ds-button-group aria-label=\"Text alignment\">\n * <dap-ds-button variant=\"outline\">Left</dap-ds-button>\n * <dap-ds-button variant=\"outline\">Center</dap-ds-button>\n * <dap-ds-button variant=\"outline\">Right</dap-ds-button>\n * </dap-ds-button-group>\n * ```\n *\n * @example Separator\n * ```html\n * <dap-ds-button-group aria-label=\"Clipboard\">\n * <dap-ds-button>Copy</dap-ds-button>\n * <dap-ds-button-group-separator></dap-ds-button-group-separator>\n * <dap-ds-button>Paste</dap-ds-button>\n * </dap-ds-button-group>\n * ```\n *\n * @example Nested groups\n * ```html\n * <dap-ds-button-group aria-label=\"Editor toolbar\">\n * <dap-ds-button-group>...</dap-ds-button-group>\n * <dap-ds-button-group>...</dap-ds-button-group>\n * </dap-ds-button-group>\n * ```\n *\n * @slot - The grouped items: `dap-ds-button`, `dap-ds-icon-button`, `dap-ds-button-group-text`, `dap-ds-button-group-separator` or nested `dap-ds-button-group` elements.\n *\n * @cssproperty --dds-button-group-gap - Spacing between nested button groups (default: var(--dds-spacing-200))\n * @cssproperty --dds-button-group-overlap - How much adjacent items overlap so their borders collapse into one (default: var(--dds-border-width-large))\n * @cssproperty --dds-button-group-start-start-radius - Set on grouped items to square off their start-start corner. Read by `dap-ds-button`, `dap-ds-icon-button` and `dap-ds-button-group-text`.\n * @cssproperty --dds-button-group-start-end-radius - Set on grouped items to square off their start-end corner.\n * @cssproperty --dds-button-group-end-start-radius - Set on grouped items to square off their end-start corner.\n * @cssproperty --dds-button-group-end-end-radius - Set on grouped items to square off their end-end corner.\n */\nexport default class DapDSButtonGroup extends DdsElement {\n static tagName = 'dap-ds-button-group'\n\n /** The layout direction of the group */\n @property({ reflect: true }) orientation: ButtonGroupOrientation =\n 'horizontal'\n\n static readonly styles = unsafeCSS(styles)\n\n connectedCallback() {\n super.connectedCallback()\n // Keyboard users still Tab between the items; the group role only names\n // the set. Label it with aria-label or aria-labelledby on the host.\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'group')\n }\n }\n\n render() {\n return html`<slot></slot>`\n }\n}\n"],"names":["_DapDSButtonGroup","DdsElement","html","unsafeCSS","styles","DapDSButtonGroup","__decorateClass","property"],"mappings":";;;;;;;;;;AAmDA,MAAqBA,IAArB,MAAqBA,UAAyBC,EAAW;AAAA,EAAzD,cAAA;AAAA,UAAA,GAAA,SAAA,GAKI,KAAA,cAAA;AAAA,EAAA;AAAA,EAIF,oBAAoB;AAClB,UAAM,kBAAkB,GAGnB,KAAK,aAAa,MAAM,KACtB,KAAA,aAAa,QAAQ,OAAO;AAAA,EACnC;AAAA,EAGF,SAAS;AACA,WAAAC;AAAA,EAAA;AAEX;AApBEF,EAAO,UAAU,uBAMDA,EAAA,SAASG,EAAUC,CAAM;AAP3C,IAAqBC,IAArBL;AAI+BM,EAAA;AAAA,EAA5BC,EAAS,EAAE,SAAS,GAAM,CAAA;AAAA,GAJRF,EAIU,WAAA,aAAA;"}
@@ -0,0 +1,8 @@
1
+ import { default as DapDSButtonGroup } from './button-group.component';
2
+ export * from './button-group.component';
3
+ export default DapDSButtonGroup;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'dap-ds-button-group': DapDSButtonGroup;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ import o from "./button-group.component.js";
2
+ o.define();
3
+ export {
4
+ o as default
5
+ };
6
+ //# sourceMappingURL=button-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.js","sources":["../../../src/components/button-group/button-group.ts"],"sourcesContent":["import DapDSButtonGroup from './button-group.component'\n\nexport * from './button-group.component'\nexport default DapDSButtonGroup\n\nDapDSButtonGroup.define()\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'dap-ds-button-group': DapDSButtonGroup\n }\n}\n"],"names":["DapDSButtonGroup"],"mappings":";AAKAA,EAAiB,OAAO;"}
@@ -1,22 +1,19 @@
1
1
  import { clsx as u } from "../../node_modules/clsx/dist/clsx.js";
2
2
  import h from "../../_virtual/dayjs.min.js";
3
- import "../../node_modules/@lit/reactive-element/reactive-element.js";
4
- import { nothing as y } from "../../node_modules/lit-html/lit-html.js";
5
- import "../../node_modules/lit-element/lit-element.js";
6
- import { property as a } from "../../node_modules/@lit/reactive-element/decorators/property.js";
7
- import { html as p } from "../../node_modules/lit-html/static.js";
8
- import { DdsElement as b } from "../../internal/dds-hu-element.js";
9
- import { FocusableMixin as m } from "../../internal/mixin/focusableMixin.js";
3
+ import { unsafeCSS as y, nothing as b } from "lit";
4
+ import { property as a } from "lit/decorators.js";
5
+ import { html as p } from "lit/static-html.js";
6
+ import { DdsElement as m } from "../../internal/dds-hu-element.js";
7
+ import { FocusableMixin as g } from "../../internal/mixin/focusableMixin.js";
10
8
  import "../../localization/localization.js";
11
- import g from "./calendar-cell.scss.js";
9
+ import L from "./calendar-cell.scss.js";
12
10
  import { t as f } from "../../node_modules/i18next/dist/esm/i18next.js";
13
- import { unsafeCSS as L } from "../../node_modules/@lit/reactive-element/css-tag.js";
14
- var v = Object.defineProperty, s = (c, e, o, i) => {
15
- for (var l = void 0, d = c.length - 1, n; d >= 0; d--)
16
- (n = c[d]) && (l = n(e, o, l) || l);
17
- return l && v(e, o, l), l;
11
+ var v = Object.defineProperty, l = (c, e, o, i) => {
12
+ for (var s = void 0, d = c.length - 1, n; d >= 0; d--)
13
+ (n = c[d]) && (s = n(e, o, s) || s);
14
+ return s && v(e, o, s), s;
18
15
  };
19
- const r = class r extends m(b) {
16
+ const r = class r extends g(m) {
20
17
  constructor() {
21
18
  super(...arguments), this.selected = !1, this.disabledDay = !1, this.today = !1, this.outOfRange = !1, this.header = !1, this.focused = !1, this.rangestart = !1, this.rangeend = !1, this.inrange = !1, this.locale = h.locale(), this._cachedLabel = "", this._lastLabelUpdate = 0, this._lastLocale = "";
22
19
  }
@@ -24,8 +21,8 @@ const r = class r extends m(b) {
24
21
  if (this.value) {
25
22
  const e = Date.now();
26
23
  if (this._cachedLabel === "" || this._lastLabelUpdate === 0 || this._lastLocale !== this.locale || e - this._lastLabelUpdate > 100) {
27
- const o = h(this.value).locale(this.locale).format("LL, dddd"), i = this.today ? f("calendar.today", { lng: this.locale }) : "", l = this.selected ? f("selected", { lng: this.locale }) : "";
28
- this._cachedLabel = `${o} ${i} ${l}`.trim(), this._lastLabelUpdate = e, this._lastLocale = this.locale;
24
+ const o = h(this.value).locale(this.locale).format("LL, dddd"), i = this.today ? f("calendar.today", { lng: this.locale }) : "", s = this.selected ? f("selected", { lng: this.locale }) : "";
25
+ this._cachedLabel = `${o} ${i} ${s}`.trim(), this._lastLabelUpdate = e, this._lastLocale = this.locale;
29
26
  }
30
27
  return this._cachedLabel;
31
28
  }
@@ -62,44 +59,44 @@ const r = class r extends m(b) {
62
59
  <slot></slot>
63
60
  ${this.today ? p`<span
64
61
  part="today-mark"
65
- class="calendar-cell__today-mark"></span>` : y}
62
+ class="calendar-cell__today-mark"></span>` : b}
66
63
  </div>
67
64
  `;
68
65
  }
69
66
  };
70
- r.tagName = "dap-ds-calendar-cell", r.styles = L(g);
67
+ r.tagName = "dap-ds-calendar-cell", r.styles = y(L);
71
68
  let t = r;
72
- s([
69
+ l([
73
70
  a({ attribute: !1 })
74
71
  ], t.prototype, "value");
75
- s([
72
+ l([
76
73
  a({ type: Boolean })
77
74
  ], t.prototype, "selected");
78
- s([
75
+ l([
79
76
  a({ type: Boolean })
80
77
  ], t.prototype, "disabledDay");
81
- s([
78
+ l([
82
79
  a({ type: Boolean })
83
80
  ], t.prototype, "today");
84
- s([
81
+ l([
85
82
  a({ type: Boolean })
86
83
  ], t.prototype, "outOfRange");
87
- s([
84
+ l([
88
85
  a({ type: Boolean })
89
86
  ], t.prototype, "header");
90
- s([
87
+ l([
91
88
  a({ type: Boolean })
92
89
  ], t.prototype, "focused");
93
- s([
90
+ l([
94
91
  a({ type: Boolean })
95
92
  ], t.prototype, "rangestart");
96
- s([
93
+ l([
97
94
  a({ type: Boolean })
98
95
  ], t.prototype, "rangeend");
99
- s([
96
+ l([
100
97
  a({ type: Boolean })
101
98
  ], t.prototype, "inrange");
102
- s([
99
+ l([
103
100
  a({ reflect: !0 })
104
101
  ], t.prototype, "locale");
105
102
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-cell.component.js","sources":["../../../src/components/calendar/calendar-cell.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport dayjs, { Dayjs } from 'dayjs'\nimport { nothing, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { FocusableMixin } from '@/internal/mixin/focusableMixin'\nimport { t } from '@/localization/localization'\n\nimport styles from './calendar-cell.scss?inline'\n\n/**\n * `dap-ds-calendar-cell`\n * @summary Calendar cell represents a single cell in the calendar.\n * @element dap-ds-calendar-cell\n * @title - Calendar cell\n * @group calendar\n *\n * @slot - The content of the calendar cell.\n *\n * @csspart base - The main calendar cell container.\n * @csspart today-mark - The today mark of the calendar cell.\n *\n * @cssproperty --dds-calendar-cell-display - The display property of the calendar cell host (default: flex)\n * @cssproperty --dds-calendar-cell-position - The position property of the calendar cell host (default: relative)\n * @cssproperty --dds-calendar-cell-border-radius - The border radius of the calendar cell (default: var(--dds-radius-rounded))\n * @cssproperty --dds-calendar-cell-min-width - The minimum width of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-height - The height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-min-height - The minimum height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-color - The text color of the calendar cell (default: var(--dds-button-subtle-text-neutral-enabled))\n * @cssproperty --dds-calendar-cell-font-size - The font size of the calendar cell (default: var(--dds-font-sm))\n * @cssproperty --dds-calendar-cell-font-weight - The font weight of the calendar cell (default: var(--dds-font-weight-medium))\n * @cssproperty --dds-calendar-cell-text-align - The text alignment of the calendar cell (default: center)\n * @cssproperty --dds-calendar-cell-cursor - The cursor style of the calendar cell (default: pointer)\n * @cssproperty --dds-calendar-cell-background-hover - The background color of the calendar cell on hover (default: var(--dds-background-neutral-medium))\n * @cssproperty --dds-calendar-cell-background-active - The background color of the calendar cell when active (default: var(--dds-background-neutral-strong))\n *\n * @cssproperty --dds-calendar-cell-selected-background - The background color of the selected calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-selected-color - The text color of the selected calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-selected-background-hover - The background color of the selected calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-selected-background-pressed - The background color of the selected calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n * @cssproperty --dds-calendar-cell-selected-today-mark-background - The background color of the today mark in selected calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-disabled-color - The text color of the disabled calendar cell (default: var(--dds-text-neutral-disabled))\n * @cssproperty --dds-calendar-cell-disabled-cursor - The cursor style of the disabled calendar cell (default: not-allowed)\n *\n * @cssproperty --dds-calendar-cell-out-of-range-color - The text color of the out-of-range calendar cell (default: var(--dds-text-neutral-placeholder))\n *\n * @cssproperty --dds-calendar-cell-today-font-weight - The font weight of the today calendar cell (default: var(--dds-font-weight-bold))\n *\n * @cssproperty --dds-calendar-cell-header-background - The background color of the header calendar cell (default: transparent)\n * @cssproperty --dds-calendar-cell-header-color - The text color of the header calendar cell (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-calendar-cell-header-text-transform - The text transform of the header calendar cell (default: capitalize)\n * @cssproperty --dds-calendar-cell-header-cursor - The cursor style of the header calendar cell (default: default)\n *\n * @cssproperty --dds-calendar-cell-in-range-color - The text color of the in-range calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-in-range-background-hover - The background color of the in-range calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-in-range-background-pressed - The background color of the in-range calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n *\n * @cssproperty --dds-calendar-cell-range-background - The background color of the range start/end calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-range-color - The text color of the range start/end calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-range-today-mark-background - The background color of the today mark in range start/end calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-today-mark-bottom - The bottom position of the today mark (default: var(--dds-spacing-100))\n * @cssproperty --dds-calendar-cell-today-mark-width - The width of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-height - The height of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-stroke - The stroke color of the today mark (default: var(--dds-border-neutral-transparent))\n * @cssproperty --dds-calendar-cell-today-mark-background - The background color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n * @cssproperty --dds-calendar-cell-today-mark-fill - The fill color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n *\n */\nexport default class DapDSCalendarCell extends FocusableMixin(DdsElement) {\n static tagName = 'dap-ds-calendar-cell'\n\n /** The value of the calendar cell. */\n @property({ attribute: false }) value: Dayjs\n /** Whether the calendar cell is selected. */\n @property({ type: Boolean }) selected: boolean = false\n /** Whether the calendar cell is disabled. */\n @property({ type: Boolean }) disabledDay: boolean = false\n /** Whether the calendar cell is today. */\n @property({ type: Boolean }) today: boolean = false\n /** Whether the calendar cell is out of range. */\n @property({ type: Boolean }) outOfRange: boolean = false\n /** Whether the calendar cell is a date header. */\n @property({ type: Boolean }) header: boolean = false\n /** Whether the calendar cell is focused. */\n @property({ type: Boolean }) focused: boolean = false\n /** Whether the calendar cell is the start of a range. */\n @property({ type: Boolean }) rangestart: boolean = false\n /** Whether the calendar cell is the end of a range. */\n @property({ type: Boolean }) rangeend: boolean = false\n /** Whether the calendar cell is in the middle of a range. */\n @property({ type: Boolean }) inrange: boolean = false\n\n /** The locale of the calendar cell.\n * @type {'hu' | 'en' | 'de'}\n * @default dayjs.locale()\n */\n @property({ reflect: true }) locale: string = dayjs.locale()\n\n private _cachedLabel: string = ''\n private _lastLabelUpdate: number = 0\n private _lastLocale: string = ''\n\n static readonly styles = unsafeCSS(styles)\n\n get label(): string {\n if (this.value) {\n const currentTime = Date.now()\n\n // Only recalculate if state changed, locale changed, or more than 100ms passed (debounce rapid updates)\n if (\n this._cachedLabel === '' ||\n this._lastLabelUpdate === 0 ||\n this._lastLocale !== this.locale ||\n currentTime - this._lastLabelUpdate > 100\n ) {\n // Cache expensive dayjs formatting\n const dateLabel = dayjs(this.value)\n .locale(this.locale)\n .format('LL, dddd')\n const todayLabel = this.today\n ? t('calendar.today', { lng: this.locale })\n : ''\n const selectedLabel = this.selected\n ? t('selected', { lng: this.locale })\n : ''\n this._cachedLabel = `${dateLabel} ${todayLabel} ${selectedLabel}`.trim()\n this._lastLabelUpdate = currentTime\n this._lastLocale = this.locale\n }\n\n return this._cachedLabel\n }\n\n return ''\n }\n\n public get focusElement(): HTMLElement {\n return this\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n\n // Remove aria-selected if it exists (not valid for button role)\n // The calendar component sets aria-pressed instead for button role\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n\n this.setAttribute('aria-label', this.label)\n }\n\n protected updated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(_changedProperties)\n\n if (_changedProperties.has('disabledDay')) {\n this.setAttribute('aria-disabled', this.disabledDay ? 'true' : 'false')\n }\n\n if (\n _changedProperties.has('selected') ||\n _changedProperties.has('locale') ||\n _changedProperties.has('value') ||\n _changedProperties.has('today')\n ) {\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n // Invalidate cache when locale changes\n if (_changedProperties.has('locale')) {\n this._cachedLabel = ''\n this._lastLabelUpdate = 0\n }\n this.setAttribute('aria-label', this.label)\n }\n }\n\n getDayName(dateStr: string, locale: string) {\n const date = new Date(dateStr)\n return date.toLocaleDateString(locale, { weekday: 'long' })\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${clsx(\n 'calendar-cell',\n { 'calendar-cell--selected': this.selected },\n { 'calendar-cell--disabled': this.disabledDay },\n { 'calendar-cell--today': this.today },\n { 'calendar-cell--out-of-range': this.outOfRange },\n { 'calendar-cell--header': this.header },\n { 'calendar-cell--focused': this.focused },\n { 'calendar-cell--range-start': this.rangestart },\n { 'calendar-cell--range-end': this.rangeend },\n { 'calendar-cell--in-range': this.inrange },\n )}>\n <slot></slot>\n ${this.today\n ? html`<span\n part=\"today-mark\"\n class=\"calendar-cell__today-mark\"></span>`\n : nothing}\n </div>\n `\n }\n}\n"],"names":["_DapDSCalendarCell","FocusableMixin","DdsElement","dayjs","currentTime","dateLabel","todayLabel","t","selectedLabel","_changedProperties","dateStr","locale","html","clsx","nothing","unsafeCSS","styles","DapDSCalendarCell","__decorateClass","property"],"mappings":"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"}
1
+ {"version":3,"file":"calendar-cell.component.js","sources":["../../../src/components/calendar/calendar-cell.component.ts"],"sourcesContent":["import clsx from 'clsx'\nimport dayjs, { Dayjs } from 'dayjs'\nimport { nothing, PropertyValueMap, unsafeCSS } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { html } from 'lit/static-html.js'\n\nimport { DdsElement } from '@/internal/dds-hu-element'\nimport { FocusableMixin } from '@/internal/mixin/focusableMixin'\nimport { t } from '@/localization/localization'\n\nimport styles from './calendar-cell.scss?inline'\n\n/**\n * `dap-ds-calendar-cell`\n * @summary Calendar cell represents a single cell in the calendar.\n * @element dap-ds-calendar-cell\n * @title - Calendar cell\n * @group calendar\n *\n * @slot - The content of the calendar cell.\n *\n * @csspart base - The main calendar cell container.\n * @csspart today-mark - The today mark of the calendar cell.\n *\n * @cssproperty --dds-calendar-cell-display - The display property of the calendar cell host (default: flex)\n * @cssproperty --dds-calendar-cell-position - The position property of the calendar cell host (default: relative)\n * @cssproperty --dds-calendar-cell-border-radius - The border radius of the calendar cell (default: var(--dds-radius-rounded))\n * @cssproperty --dds-calendar-cell-min-width - The minimum width of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-height - The height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-min-height - The minimum height of the calendar cell (default: var(--dds-spacing-1000))\n * @cssproperty --dds-calendar-cell-color - The text color of the calendar cell (default: var(--dds-button-subtle-text-neutral-enabled))\n * @cssproperty --dds-calendar-cell-font-size - The font size of the calendar cell (default: var(--dds-font-sm))\n * @cssproperty --dds-calendar-cell-font-weight - The font weight of the calendar cell (default: var(--dds-font-weight-medium))\n * @cssproperty --dds-calendar-cell-text-align - The text alignment of the calendar cell (default: center)\n * @cssproperty --dds-calendar-cell-cursor - The cursor style of the calendar cell (default: pointer)\n * @cssproperty --dds-calendar-cell-background-hover - The background color of the calendar cell on hover (default: var(--dds-background-neutral-medium))\n * @cssproperty --dds-calendar-cell-background-active - The background color of the calendar cell when active (default: var(--dds-background-neutral-strong))\n *\n * @cssproperty --dds-calendar-cell-selected-background - The background color of the selected calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-selected-color - The text color of the selected calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-selected-background-hover - The background color of the selected calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-selected-background-pressed - The background color of the selected calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n * @cssproperty --dds-calendar-cell-selected-today-mark-background - The background color of the today mark in selected calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-disabled-color - The text color of the disabled calendar cell (default: var(--dds-text-neutral-disabled))\n * @cssproperty --dds-calendar-cell-disabled-cursor - The cursor style of the disabled calendar cell (default: not-allowed)\n *\n * @cssproperty --dds-calendar-cell-out-of-range-color - The text color of the out-of-range calendar cell (default: var(--dds-text-neutral-placeholder))\n *\n * @cssproperty --dds-calendar-cell-today-font-weight - The font weight of the today calendar cell (default: var(--dds-font-weight-bold))\n *\n * @cssproperty --dds-calendar-cell-header-background - The background color of the header calendar cell (default: transparent)\n * @cssproperty --dds-calendar-cell-header-color - The text color of the header calendar cell (default: var(--dds-text-neutral-base))\n * @cssproperty --dds-calendar-cell-header-text-transform - The text transform of the header calendar cell (default: capitalize)\n * @cssproperty --dds-calendar-cell-header-cursor - The cursor style of the header calendar cell (default: default)\n *\n * @cssproperty --dds-calendar-cell-in-range-color - The text color of the in-range calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-in-range-background-hover - The background color of the in-range calendar cell on hover (default: var(--dds-button-primary-background-hover))\n * @cssproperty --dds-calendar-cell-in-range-background-pressed - The background color of the in-range calendar cell when pressed (default: var(--dds-button-primary-background-pressed))\n *\n * @cssproperty --dds-calendar-cell-range-background - The background color of the range start/end calendar cell (default: var(--dds-button-primary-background-enabled))\n * @cssproperty --dds-calendar-cell-range-color - The text color of the range start/end calendar cell (default: var(--dds-button-primary-text-enabled))\n * @cssproperty --dds-calendar-cell-range-today-mark-background - The background color of the today mark in range start/end calendar cell (default: var(--dds-text-neutral-on-inverted))\n *\n * @cssproperty --dds-calendar-cell-today-mark-bottom - The bottom position of the today mark (default: var(--dds-spacing-100))\n * @cssproperty --dds-calendar-cell-today-mark-width - The width of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-height - The height of the today mark (default: 5px)\n * @cssproperty --dds-calendar-cell-today-mark-stroke - The stroke color of the today mark (default: var(--dds-border-neutral-transparent))\n * @cssproperty --dds-calendar-cell-today-mark-background - The background color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n * @cssproperty --dds-calendar-cell-today-mark-fill - The fill color of the today mark (default: var(--dds-background-neutral-medium-inverted))\n *\n */\nexport default class DapDSCalendarCell extends FocusableMixin(DdsElement) {\n static tagName = 'dap-ds-calendar-cell'\n\n /** The value of the calendar cell. */\n @property({ attribute: false }) value: Dayjs\n /** Whether the calendar cell is selected. */\n @property({ type: Boolean }) selected: boolean = false\n /** Whether the calendar cell is disabled. */\n @property({ type: Boolean }) disabledDay: boolean = false\n /** Whether the calendar cell is today. */\n @property({ type: Boolean }) today: boolean = false\n /** Whether the calendar cell is out of range. */\n @property({ type: Boolean }) outOfRange: boolean = false\n /** Whether the calendar cell is a date header. */\n @property({ type: Boolean }) header: boolean = false\n /** Whether the calendar cell is focused. */\n @property({ type: Boolean }) focused: boolean = false\n /** Whether the calendar cell is the start of a range. */\n @property({ type: Boolean }) rangestart: boolean = false\n /** Whether the calendar cell is the end of a range. */\n @property({ type: Boolean }) rangeend: boolean = false\n /** Whether the calendar cell is in the middle of a range. */\n @property({ type: Boolean }) inrange: boolean = false\n\n /** The locale of the calendar cell.\n * @type {'hu' | 'en' | 'de'}\n * @default dayjs.locale()\n */\n @property({ reflect: true }) locale: string = dayjs.locale()\n\n private _cachedLabel: string = ''\n private _lastLabelUpdate: number = 0\n private _lastLocale: string = ''\n\n static readonly styles = unsafeCSS(styles)\n\n get label(): string {\n if (this.value) {\n const currentTime = Date.now()\n\n // Only recalculate if state changed, locale changed, or more than 100ms passed (debounce rapid updates)\n if (\n this._cachedLabel === '' ||\n this._lastLabelUpdate === 0 ||\n this._lastLocale !== this.locale ||\n currentTime - this._lastLabelUpdate > 100\n ) {\n // Cache expensive dayjs formatting\n const dateLabel = dayjs(this.value)\n .locale(this.locale)\n .format('LL, dddd')\n const todayLabel = this.today\n ? t('calendar.today', { lng: this.locale })\n : ''\n const selectedLabel = this.selected\n ? t('selected', { lng: this.locale })\n : ''\n this._cachedLabel = `${dateLabel} ${todayLabel} ${selectedLabel}`.trim()\n this._lastLabelUpdate = currentTime\n this._lastLocale = this.locale\n }\n\n return this._cachedLabel\n }\n\n return ''\n }\n\n public get focusElement(): HTMLElement {\n return this\n }\n\n protected firstUpdated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.firstUpdated(_changedProperties)\n\n // Remove aria-selected if it exists (not valid for button role)\n // The calendar component sets aria-pressed instead for button role\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n\n this.setAttribute('aria-label', this.label)\n }\n\n protected updated(\n _changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>,\n ): void {\n super.updated(_changedProperties)\n\n if (_changedProperties.has('disabledDay')) {\n this.setAttribute('aria-disabled', this.disabledDay ? 'true' : 'false')\n }\n\n if (\n _changedProperties.has('selected') ||\n _changedProperties.has('locale') ||\n _changedProperties.has('value') ||\n _changedProperties.has('today')\n ) {\n if (this.role === 'button' && this.hasAttribute('aria-selected')) {\n this.removeAttribute('aria-selected')\n }\n // Invalidate cache when locale changes\n if (_changedProperties.has('locale')) {\n this._cachedLabel = ''\n this._lastLabelUpdate = 0\n }\n this.setAttribute('aria-label', this.label)\n }\n }\n\n getDayName(dateStr: string, locale: string) {\n const date = new Date(dateStr)\n return date.toLocaleDateString(locale, { weekday: 'long' })\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${clsx(\n 'calendar-cell',\n { 'calendar-cell--selected': this.selected },\n { 'calendar-cell--disabled': this.disabledDay },\n { 'calendar-cell--today': this.today },\n { 'calendar-cell--out-of-range': this.outOfRange },\n { 'calendar-cell--header': this.header },\n { 'calendar-cell--focused': this.focused },\n { 'calendar-cell--range-start': this.rangestart },\n { 'calendar-cell--range-end': this.rangeend },\n { 'calendar-cell--in-range': this.inrange },\n )}>\n <slot></slot>\n ${this.today\n ? html`<span\n part=\"today-mark\"\n class=\"calendar-cell__today-mark\"></span>`\n : nothing}\n </div>\n `\n }\n}\n"],"names":["_DapDSCalendarCell","FocusableMixin","DdsElement","dayjs","currentTime","dateLabel","todayLabel","t","selectedLabel","_changedProperties","dateStr","locale","html","clsx","nothing","unsafeCSS","styles","DapDSCalendarCell","__decorateClass","property"],"mappings":"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"}
@@ -26,6 +26,9 @@ import { default as DapDSCalendarCell } from './calendar-cell.component';
26
26
  * @csspart calendar-header-button-next - The next month button of the calendar header.
27
27
  * @csspart calendar-header-year-select - The year select of the calendar header.
28
28
  * @csspart calendar-header-month-select - The month select of the calendar header.
29
+ * @csspart calendar-grid-header-cell-base - The base of the calendar grid header cell.
30
+ * @csspart calendar-grid-cell-base - The base of the calendar grid cell.
31
+ * @csspart calendar-grid-cell-today-mark - The today mark of the calendar grid cell.
29
32
  *
30
33
  * @cssproperty --dds-calendar-display - The display property of the calendar container (default: flex)
31
34
  * @cssproperty --dds-calendar-isolation - The isolation property of the calendar (default: isolate)
@@ -109,7 +112,13 @@ export default class DapDSCalendar extends DdsElement {
109
112
  nextButtonTestId: string;
110
113
  private _currentCell;
111
114
  private _yearOptionsLoaded;
112
- private instanceLocalData;
115
+ /** Locale-aware month/weekday data. Derived from `this.locale` (a reactive
116
+ * property Lit sets from the attribute during SSR) so the weekday/month names
117
+ * are correct in the SERVER render. The old approach set this field only from
118
+ * `connectedCallback`/`attributeChangedCallback`, neither of which takes effect
119
+ * on the server, so SSR rendered English names that then mismatched the
120
+ * Hungarian client hydration render. */
121
+ private get instanceLocalData();
113
122
  connectedCallback(): Promise<void>;
114
123
  static readonly styles: import('lit').CSSResult;
115
124
  get startDate(): dayjs.Dayjs;
@@ -17,48 +17,29 @@ var C = (f, e, a) => new Promise((s, r) => {
17
17
  }, c = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(l, n);
18
18
  c((a = a.apply(f, e)).next());
19
19
  });
20
- import { clsx as g } from "../../node_modules/clsx/dist/clsx.js";
20
+ import { clsx as D } from "../../node_modules/clsx/dist/clsx.js";
21
21
  import t from "../../_virtual/dayjs.min.js";
22
- import "../../node_modules/@lit/reactive-element/reactive-element.js";
23
- import "../../node_modules/lit-html/lit-html.js";
24
- import "../../node_modules/lit-element/lit-element.js";
25
- import { property as d } from "../../node_modules/@lit/reactive-element/decorators/property.js";
26
- import { state as v } from "../../node_modules/@lit/reactive-element/decorators/state.js";
27
- import { query as _ } from "../../node_modules/@lit/reactive-element/decorators/query.js";
28
- import { queryAll as O } from "../../node_modules/@lit/reactive-element/decorators/query-all.js";
29
- import { html as h } from "../../node_modules/lit-html/static.js";
30
- import { DdsElement as S } from "../../internal/dds-hu-element.js";
22
+ import { unsafeCSS as _ } from "lit";
23
+ import { queryAll as O, query as S, property as d, state as v } from "lit/decorators.js";
24
+ import { html as h } from "lit/static-html.js";
25
+ import { DdsElement as M } from "../../internal/dds-hu-element.js";
31
26
  import "../../localization/localization.js";
32
- import M from "../icon-button/icon-button.component.js";
27
+ import k from "../icon-button/icon-button.component.js";
33
28
  import A from "../icons/arrows/arrows-expand-up-down-fill/arrows-expand-up-down-fill.component.js";
34
- import k from "../option-item/option-item.component.js";
35
- import I from "../select/select.component.js";
36
- import E from "./calendar.scss.js";
29
+ import I from "../option-item/option-item.component.js";
30
+ import R from "../select/select.component.js";
31
+ import B from "./calendar.scss.js";
37
32
  import $ from "./calendar-cell.component.js";
38
33
  import { t as y } from "../../node_modules/i18next/dist/esm/i18next.js";
39
- import { unsafeCSS as R } from "../../node_modules/@lit/reactive-element/css-tag.js";
40
- var L = Object.defineProperty, o = (f, e, a, s) => {
34
+ var E = Object.defineProperty, o = (f, e, a, s) => {
41
35
  for (var r = void 0, l = f.length - 1, n; l >= 0; l--)
42
36
  (n = f[l]) && (r = n(e, a, r) || r);
43
- return r && L(e, a, r), r;
37
+ return r && E(e, a, r), r;
44
38
  };
45
- const D = class D extends S {
39
+ const g = class g extends M {
46
40
  constructor() {
47
- super(...arguments), this.mode = "single", this.hideAdjacentMonths = !1, this.currentDate = t(), this.minDate = t().subtract(50, "year"), this.maxDate = t().add(50, "year"), this.disabledDate = (e) => !e, this.locale = t.locale(), this.prevButtonTestId = "calendar-prev-button", this.nextButtonTestId = "calendar-next-button", this._yearOptionsLoaded = !1, this.instanceLocalData = t().localeData(), this.updateLocale = (e) => {
48
- e ? (this.instanceLocalData = t().locale(e).localeData(), this.locale = e, this.updateComplete.then(() => {
49
- var s;
50
- (s = this.monthSelect) == null || s.querySelectorAll("dap-ds-option-item").forEach((r) => r.remove()), this.getAllowedMonths(
51
- t(this.currentDate).locale(this.locale)
52
- ).map((r) => {
53
- const l = document.createElement("dap-ds-option-item");
54
- return l.value = `${this.instanceLocalData.months().indexOf(r) + 1}`, l.appendChild(document.createTextNode(r)), l;
55
- }).forEach(
56
- (r) => {
57
- var l;
58
- return (l = this.monthSelect) == null ? void 0 : l.appendChild(r);
59
- }
60
- );
61
- })) : this.locale = t.locale();
41
+ super(...arguments), this.mode = "single", this.hideAdjacentMonths = !1, this.currentDate = t(), this.minDate = t().subtract(50, "year"), this.maxDate = t().add(50, "year"), this.disabledDate = (e) => !e, this.locale = t.locale(), this.prevButtonTestId = "calendar-prev-button", this.nextButtonTestId = "calendar-next-button", this._yearOptionsLoaded = !1, this.updateLocale = (e) => {
42
+ e ? this.locale = e : this.locale = t.locale(), this.requestUpdate();
62
43
  }, this.updateLocaleFromHtml = (e) => {
63
44
  this.updateLocale(e[0].target[e[0].attributeName]);
64
45
  }, this.getWeeksInMonth = (e) => {
@@ -66,9 +47,18 @@ const D = class D extends S {
66
47
  return Math.ceil((a + s) / 7);
67
48
  };
68
49
  }
50
+ /** Locale-aware month/weekday data. Derived from `this.locale` (a reactive
51
+ * property Lit sets from the attribute during SSR) so the weekday/month names
52
+ * are correct in the SERVER render. The old approach set this field only from
53
+ * `connectedCallback`/`attributeChangedCallback`, neither of which takes effect
54
+ * on the server, so SSR rendered English names that then mismatched the
55
+ * Hungarian client hydration render. */
56
+ get instanceLocalData() {
57
+ return t().locale(this.locale || t.locale()).localeData();
58
+ }
69
59
  connectedCallback() {
70
60
  return C(this, null, function* () {
71
- b(D.prototype, this, "connectedCallback").call(this), t.isDayjs(this.currentDate) || (this.currentDate = t(this.currentDate)), this.locale && (this.instanceLocalData = t().locale(this.locale).localeData(), this.currentDate = t(this.currentDate).locale(this.locale));
61
+ b(g.prototype, this, "connectedCallback").call(this), t.isDayjs(this.currentDate) || (this.currentDate = t(this.currentDate)), this.locale && (this.currentDate = t(this.currentDate).locale(this.locale));
72
62
  });
73
63
  }
74
64
  get startDate() {
@@ -89,7 +79,8 @@ const D = class D extends S {
89
79
  }), this.setValue(this.value, !1), queueMicrotask(() => this.loadYearOptions());
90
80
  }
91
81
  updated(e) {
92
- super.updated(e), e.has("value") && this.setValue(this.value, !1);
82
+ var a;
83
+ super.updated(e), e.has("value") && this.setValue(this.value, !1), e.has("locale") && ((a = this.monthSelect) == null || a.requestUpdate());
93
84
  }
94
85
  attributeChangedCallback(e, a, s) {
95
86
  super.attributeChangedCallback(e, a, s), e === "locale" && this.updateLocale(s);
@@ -310,9 +301,9 @@ const D = class D extends S {
310
301
  const r = this.isOutOfRange(e, s), l = !this.isDateInAllowedRange(s) || this.disabledDate(s), n = this.isRangeStart(s), c = this.isRangeEnd(s), u = this.isInRange(s);
311
302
  return this.shouldHideAdjacentMonths && r ? h`<td
312
303
  role="gridcell"
313
- class="${g("calendar-cell calendar-cell--empty")}"></td>` : h`<td
304
+ class="${D("calendar-cell calendar-cell--empty")}"></td>` : h`<td
314
305
  role="gridcell"
315
- class="${g("calendar-cell")}"
306
+ class="${D("calendar-cell")}"
316
307
  aria-disabled=${l}>
317
308
  <dap-ds-calendar-cell
318
309
  part="calendar-grid-cell"
@@ -362,7 +353,7 @@ const D = class D extends S {
362
353
  <dap-ds-select
363
354
  part="calendar-header-year-select"
364
355
  floatingStrategy="fixed"
365
- class=${g(
356
+ class=${D(
366
357
  "calendar__header-select",
367
358
  "calendar__header-year-select"
368
359
  )}
@@ -394,7 +385,7 @@ const D = class D extends S {
394
385
  id="monthSelect"
395
386
  part="calendar-header-month-select"
396
387
  floatingStrategy="fixed"
397
- class=${g(
388
+ class=${D(
398
389
  "calendar__header-select",
399
390
  "calendar__header-month-select"
400
391
  )}
@@ -477,19 +468,19 @@ const D = class D extends S {
477
468
  </div>`;
478
469
  }
479
470
  };
480
- D.tagName = "dap-ds-calendar", D.dependencies = {
471
+ g.tagName = "dap-ds-calendar", g.dependencies = {
481
472
  "dap-ds-calendar-cell": $,
482
- "dap-ds-icon-button": M,
483
- "dap-ds-select": I,
473
+ "dap-ds-icon-button": k,
474
+ "dap-ds-select": R,
484
475
  "dap-ds-icon-expand-up-down-fill": A,
485
- "dap-ds-option-item": k
486
- }, D.styles = R(E);
487
- let i = D;
476
+ "dap-ds-option-item": I
477
+ }, g.styles = _(B);
478
+ let i = g;
488
479
  o([
489
480
  O("dap-ds-calendar-cell:not([header])")
490
481
  ], i.prototype, "cells");
491
482
  o([
492
- _("#monthSelect")
483
+ S("#monthSelect")
493
484
  ], i.prototype, "monthSelect");
494
485
  o([
495
486
  d({ reflect: !0 })