@duetds/components 6.2.4 → 6.2.5

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 (566) hide show
  1. package/hydrate/index.d.ts +1 -1
  2. package/hydrate/index.js +2257 -4172
  3. package/lib/cjs/{dom-96576bce.js → dom-bcfa684c.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +14 -77
  5. package/lib/cjs/duet-alert.cjs.entry.js +10 -42
  6. package/lib/cjs/duet-badge.cjs.entry.js +1 -10
  7. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -10
  8. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -4
  9. package/lib/cjs/duet-button_2.cjs.entry.js +30 -119
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +4 -78
  11. package/lib/cjs/duet-card.cjs.entry.js +16 -55
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +21 -49
  13. package/lib/cjs/duet-choice_2.cjs.entry.js +51 -152
  14. package/lib/cjs/duet-collapsible.cjs.entry.js +8 -41
  15. package/lib/cjs/duet-combobox.cjs.entry.js +26 -50
  16. package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -9
  17. package/lib/cjs/duet-date-picker.cjs.entry.js +37 -108
  18. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -17
  19. package/lib/cjs/duet-editable-table_3.cjs.entry.js +163 -404
  20. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -10
  21. package/lib/cjs/duet-fieldset.cjs.entry.js +7 -13
  22. package/lib/cjs/duet-footer.cjs.entry.js +13 -42
  23. package/lib/cjs/duet-grid_2.cjs.entry.js +3 -43
  24. package/lib/cjs/duet-header_2.cjs.entry.js +56 -163
  25. package/lib/cjs/duet-hero.cjs.entry.js +15 -90
  26. package/lib/cjs/duet-icon.cjs.entry.js +4 -35
  27. package/lib/cjs/duet-input_2.cjs.entry.js +41 -115
  28. package/lib/cjs/duet-layout.cjs.entry.js +1 -24
  29. package/lib/cjs/duet-list_2.cjs.entry.js +1 -23
  30. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -10
  31. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +4 -13
  32. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -10
  33. package/lib/cjs/duet-menu-bar-menu-dropdown-link.cjs.entry.js +1 -16
  34. package/lib/cjs/duet-menu-bar-menu-dropdown.cjs.entry.js +4 -13
  35. package/lib/cjs/duet-menu-bar-menu-link.cjs.entry.js +1 -13
  36. package/lib/cjs/duet-menu-bar-menu.cjs.entry.js +4 -13
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -6
  38. package/lib/cjs/duet-modal.cjs.entry.js +4 -59
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +18 -59
  40. package/lib/cjs/duet-nav.cjs.entry.js +2 -5
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +15 -74
  42. package/lib/cjs/duet-number-input.cjs.entry.js +53 -142
  43. package/lib/cjs/duet-pagination_2.cjs.entry.js +51 -125
  44. package/lib/cjs/duet-progress.cjs.entry.js +4 -26
  45. package/lib/cjs/duet-radio_2.cjs.entry.js +36 -84
  46. package/lib/cjs/duet-range-slider.cjs.entry.js +21 -62
  47. package/lib/cjs/duet-scrollable_3.cjs.entry.js +25 -88
  48. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -7
  49. package/lib/cjs/duet-select.cjs.entry.js +25 -65
  50. package/lib/cjs/duet-step_2.cjs.entry.js +8 -34
  51. package/lib/cjs/duet-textarea.cjs.entry.js +31 -79
  52. package/lib/cjs/duet-toggle.cjs.entry.js +15 -38
  53. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -13
  54. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -17
  55. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -13
  56. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -4
  57. package/lib/cjs/duet-tooltip.cjs.entry.js +25 -77
  58. package/lib/cjs/duet-tray.cjs.entry.js +11 -53
  59. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +8 -29
  60. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  61. package/lib/cjs/duet.cjs.js +4 -4
  62. package/lib/cjs/{focus-utils-25247ce1.js → focus-utils-18ea61a6.js} +1 -1
  63. package/lib/cjs/{index-e009343b.js → index-d2f05eb8.js} +1438 -1235
  64. package/lib/cjs/loader.cjs.js +3 -3
  65. package/lib/cjs/{shadow-css-38b9e725.js → shadow-css-1ea48714.js} +1 -1
  66. package/lib/collection/collection-manifest.json +2 -2
  67. package/lib/collection/common/a11y-component.js +0 -3
  68. package/lib/collection/common/form-components.js +0 -3
  69. package/lib/collection/components/duet-action-button/duet-action-button.js +403 -461
  70. package/lib/collection/components/duet-alert/duet-alert.js +259 -289
  71. package/lib/collection/components/duet-badge/duet-badge.js +84 -89
  72. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +96 -101
  73. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +47 -48
  74. package/lib/collection/components/duet-button/duet-button.js +838 -912
  75. package/lib/collection/components/duet-caption/duet-caption.js +96 -103
  76. package/lib/collection/components/duet-card/duet-card.js +381 -431
  77. package/lib/collection/components/duet-checkbox/duet-checkbox.js +476 -498
  78. package/lib/collection/components/duet-choice/duet-choice.js +731 -819
  79. package/lib/collection/components/duet-choice-group/duet-choice-group.js +282 -308
  80. package/lib/collection/components/duet-collapsible/duet-collapsible.js +208 -237
  81. package/lib/collection/components/duet-combobox/duet-combobox-select-single.js +1 -5
  82. package/lib/collection/components/duet-combobox/duet-combobox-select.js +1 -3
  83. package/lib/collection/components/duet-combobox/duet-combobox.css +47 -14
  84. package/lib/collection/components/duet-combobox/duet-combobox.js +257 -269
  85. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +77 -82
  86. package/lib/collection/components/duet-date-picker/date-picker-day.js +1 -3
  87. package/lib/collection/components/duet-date-picker/date-picker-input.js +1 -12
  88. package/lib/collection/components/duet-date-picker/date-picker-month.js +6 -12
  89. package/lib/collection/components/duet-date-picker/duet-date-picker.js +703 -795
  90. package/lib/collection/components/duet-divider/duet-divider.js +57 -57
  91. package/lib/collection/components/duet-editable-table/duet-editable-table.js +316 -381
  92. package/lib/collection/components/duet-empty-state/duet-empty-state.js +83 -90
  93. package/lib/collection/components/duet-fieldset/duet-fieldset.js +143 -153
  94. package/lib/collection/components/duet-footer/duet-footer.js +337 -378
  95. package/lib/collection/components/duet-grid/duet-grid.js +149 -162
  96. package/lib/collection/components/duet-grid-item/duet-grid-item.js +153 -164
  97. package/lib/collection/components/duet-header/duet-header-dropdown.js +11 -19
  98. package/lib/collection/components/duet-header/duet-header-hamburger.js +1 -5
  99. package/lib/collection/components/duet-header/duet-header-icon.js +1 -2
  100. package/lib/collection/components/duet-header/duet-header.js +872 -1023
  101. package/lib/collection/components/duet-heading/duet-heading.js +183 -200
  102. package/lib/collection/components/duet-hero/duet-hero.js +568 -660
  103. package/lib/collection/components/duet-icon/duet-icon.js +240 -263
  104. package/lib/collection/components/duet-input/duet-input.js +937 -1009
  105. package/lib/collection/components/duet-label/duet-label.js +95 -100
  106. package/lib/collection/components/duet-layout/duet-layout.js +163 -189
  107. package/lib/collection/components/duet-link/duet-link.js +204 -223
  108. package/lib/collection/components/duet-list/duet-list.js +181 -196
  109. package/lib/collection/components/duet-list-item/duet-list-item.js +12 -12
  110. package/lib/collection/components/duet-logo/duet-logo.js +171 -190
  111. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +45 -44
  112. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +100 -109
  113. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +75 -81
  114. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +72 -78
  115. package/lib/collection/components/duet-menu-bar-menu/duet-menu-bar-menu.js +100 -106
  116. package/lib/collection/components/duet-menu-bar-menu-dropdown/duet-menu-bar-menu-dropdown.js +100 -109
  117. package/lib/collection/components/duet-menu-bar-menu-dropdown-link/duet-menu-bar-menu-dropdown-link.js +110 -123
  118. package/lib/collection/components/duet-menu-bar-menu-link/duet-menu-bar-menu-link.js +89 -98
  119. package/lib/collection/components/duet-modal/duet-modal.js +466 -520
  120. package/lib/collection/components/duet-multiselect/duet-multiselect.js +411 -454
  121. package/lib/collection/components/duet-nav/duet-nav.js +78 -75
  122. package/lib/collection/components/duet-notification/duet-notification.js +201 -231
  123. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +284 -312
  124. package/lib/collection/components/duet-number-input/duet-number-input.js +851 -944
  125. package/lib/collection/components/duet-pagination/duet-pagination.js +374 -439
  126. package/lib/collection/components/duet-paragraph/duet-paragraph.js +140 -154
  127. package/lib/collection/components/duet-progress/duet-progress.js +223 -253
  128. package/lib/collection/components/duet-radio/duet-radio.js +519 -531
  129. package/lib/collection/components/duet-radio-group/duet-radio-group.js +282 -308
  130. package/lib/collection/components/duet-range-slider/duet-range-slider.js +468 -505
  131. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +187 -204
  132. package/lib/collection/components/duet-scrollable/duet-scrollable.js +98 -106
  133. package/lib/collection/components/duet-section-layout/duet-section-layout.js +58 -61
  134. package/lib/collection/components/duet-select/duet-select.js +565 -606
  135. package/lib/collection/components/duet-spacer/duet-spacer.js +77 -81
  136. package/lib/collection/components/duet-spinner/duet-spinner.js +99 -107
  137. package/lib/collection/components/duet-step/duet-step.js +206 -219
  138. package/lib/collection/components/duet-stepper/duet-stepper.js +148 -156
  139. package/lib/collection/components/duet-tab/duet-tab.js +95 -96
  140. package/lib/collection/components/duet-tab-group/duet-tab-group.js +367 -405
  141. package/lib/collection/components/duet-table/duet-table.js +144 -160
  142. package/lib/collection/components/duet-textarea/duet-textarea.js +694 -747
  143. package/lib/collection/components/duet-toggle/duet-toggle.js +388 -404
  144. package/lib/collection/components/duet-toolbar/duet-toolbar.js +38 -38
  145. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +123 -135
  146. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +93 -102
  147. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +89 -98
  148. package/lib/collection/components/duet-tooltip/duet-tooltip.js +349 -401
  149. package/lib/collection/components/duet-tray/duet-tray.js +235 -276
  150. package/lib/collection/components/duet-upload/duet-upload.js +1371 -1549
  151. package/lib/collection/components/duet-upload/upload-editable-item-error.js +1 -6
  152. package/lib/collection/components/duet-upload/upload-editable-item-inprogres.js +1 -6
  153. package/lib/collection/components/duet-upload/upload-editable-item-pending.js +1 -4
  154. package/lib/collection/components/duet-upload/upload-editable-item-success.js +5 -21
  155. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +137 -153
  156. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +12 -9
  157. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  158. package/lib/dist-custom-elements/duet-alert.js +1 -1
  159. package/lib/dist-custom-elements/duet-badge.js +1 -1
  160. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -11
  161. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -5
  162. package/lib/dist-custom-elements/duet-button.js +1 -1
  163. package/lib/dist-custom-elements/duet-caption.js +1 -1
  164. package/lib/dist-custom-elements/duet-card.js +19 -58
  165. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  166. package/lib/dist-custom-elements/duet-choice-group.js +19 -49
  167. package/lib/dist-custom-elements/duet-choice.js +42 -113
  168. package/lib/dist-custom-elements/duet-collapsible.js +10 -43
  169. package/lib/dist-custom-elements/duet-combobox.js +29 -59
  170. package/lib/dist-custom-elements/duet-cookie-consent.js +8 -14
  171. package/lib/dist-custom-elements/duet-date-picker.js +45 -116
  172. package/lib/dist-custom-elements/duet-divider.js +1 -1
  173. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  174. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  175. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  176. package/lib/dist-custom-elements/duet-footer.js +16 -45
  177. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  178. package/lib/dist-custom-elements/duet-grid.js +1 -1
  179. package/lib/dist-custom-elements/duet-header.js +65 -152
  180. package/lib/dist-custom-elements/duet-heading.js +1 -1
  181. package/lib/dist-custom-elements/duet-hero.js +23 -98
  182. package/lib/dist-custom-elements/duet-icon.js +1 -1
  183. package/lib/dist-custom-elements/duet-input.js +1 -1
  184. package/lib/dist-custom-elements/duet-label.js +1 -1
  185. package/lib/dist-custom-elements/duet-layout.js +1 -24
  186. package/lib/dist-custom-elements/duet-link.js +1 -1
  187. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  188. package/lib/dist-custom-elements/duet-list.js +1 -1
  189. package/lib/dist-custom-elements/duet-logo.js +1 -1
  190. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -11
  191. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +5 -14
  192. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -11
  193. package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown-link.js +2 -17
  194. package/lib/dist-custom-elements/duet-menu-bar-menu-dropdown.js +5 -14
  195. package/lib/dist-custom-elements/duet-menu-bar-menu-link.js +2 -14
  196. package/lib/dist-custom-elements/duet-menu-bar-menu.js +4 -13
  197. package/lib/dist-custom-elements/duet-menu-bar.js +5 -8
  198. package/lib/dist-custom-elements/duet-modal.js +10 -65
  199. package/lib/dist-custom-elements/duet-multiselect.js +25 -66
  200. package/lib/dist-custom-elements/duet-nav.js +2 -5
  201. package/lib/dist-custom-elements/duet-notification-drawer.js +18 -48
  202. package/lib/dist-custom-elements/duet-notification.js +2 -31
  203. package/lib/dist-custom-elements/duet-number-input.js +59 -148
  204. package/lib/dist-custom-elements/duet-pagination.js +51 -101
  205. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  206. package/lib/dist-custom-elements/duet-progress.js +1 -1
  207. package/lib/dist-custom-elements/duet-radio-group.js +19 -49
  208. package/lib/dist-custom-elements/duet-radio.js +23 -41
  209. package/lib/dist-custom-elements/duet-range-slider.js +23 -64
  210. package/lib/dist-custom-elements/duet-range-stepper.js +10 -34
  211. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  212. package/lib/dist-custom-elements/duet-section-layout.js +1 -7
  213. package/lib/dist-custom-elements/duet-select.js +1 -1
  214. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  215. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  216. package/lib/dist-custom-elements/duet-step.js +11 -20
  217. package/lib/dist-custom-elements/duet-stepper.js +2 -19
  218. package/lib/dist-custom-elements/duet-tab-group.js +26 -72
  219. package/lib/dist-custom-elements/duet-tab.js +3 -9
  220. package/lib/dist-custom-elements/duet-table.js +1 -1
  221. package/lib/dist-custom-elements/duet-textarea.js +38 -86
  222. package/lib/dist-custom-elements/duet-toggle.js +16 -39
  223. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -14
  224. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -18
  225. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -14
  226. package/lib/dist-custom-elements/duet-toolbar.js +1 -4
  227. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  228. package/lib/dist-custom-elements/duet-tray.js +14 -56
  229. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  230. package/lib/dist-custom-elements/duet-upload.js +165 -332
  231. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  232. package/lib/dist-custom-elements/index.d.ts +75 -5
  233. package/lib/dist-custom-elements/index.js +76 -1
  234. package/lib/dist-custom-elements/{p-ca2b02bc.js → p-0cc49790.js} +3 -25
  235. package/lib/dist-custom-elements/{p-1f03397c.js → p-0ef384ca.js} +7 -30
  236. package/lib/dist-custom-elements/{p-70d1ca9f.js → p-10feffd3.js} +1 -1
  237. package/lib/dist-custom-elements/{p-4367369a.js → p-14a163e6.js} +475 -272
  238. package/lib/dist-custom-elements/{p-e987e04b.js → p-25d4fffb.js} +1 -11
  239. package/lib/dist-custom-elements/{p-862c60cc.js → p-354f8a94.js} +3 -16
  240. package/lib/dist-custom-elements/{p-c5d74817.js → p-37dd7faf.js} +2 -22
  241. package/lib/dist-custom-elements/{p-e57df145.js → p-4115062c.js} +2 -25
  242. package/lib/dist-custom-elements/{p-ed503468.js → p-4447816d.js} +3 -20
  243. package/lib/dist-custom-elements/{p-9ed347f9.js → p-535ce3ec.js} +1 -1
  244. package/lib/dist-custom-elements/{p-33e00967.js → p-55325c49.js} +1 -1
  245. package/lib/dist-custom-elements/{p-1fef1f90.js → p-65ee8608.js} +8 -14
  246. package/lib/dist-custom-elements/{p-3fa8edce.js → p-737dd784.js} +45 -111
  247. package/lib/dist-custom-elements/{p-c4d8cad0.js → p-738bd3c5.js} +1 -1
  248. package/lib/dist-custom-elements/{p-6e81048c.js → p-7958dc0c.js} +30 -70
  249. package/lib/dist-custom-elements/{p-2a509b17.js → p-82fec063.js} +2 -21
  250. package/lib/dist-custom-elements/{p-279dedcd.js → p-88d217a7.js} +2 -11
  251. package/lib/dist-custom-elements/{p-f51d88cc.js → p-9245c901.js} +2 -10
  252. package/lib/dist-custom-elements/{p-dcffd5be.js → p-94eae3e6.js} +1 -7
  253. package/lib/dist-custom-elements/{p-0b8f16f1.js → p-9986919d.js} +1 -1
  254. package/lib/dist-custom-elements/{p-bd4ab88c.js → p-9fef7d37.js} +21 -49
  255. package/lib/dist-custom-elements/{p-0347f9ec.js → p-a1212d29.js} +1 -1
  256. package/lib/dist-custom-elements/{p-29b4f008.js → p-ad7292b3.js} +5 -26
  257. package/lib/dist-custom-elements/{p-9cfc3bee.js → p-af2e8de4.js} +14 -46
  258. package/lib/dist-custom-elements/{p-396cb7a5.js → p-b5ea480c.js} +9 -30
  259. package/lib/dist-custom-elements/{p-4bb2e37b.js → p-bd64a84d.js} +6 -17
  260. package/lib/dist-custom-elements/{p-0938933e.js → p-cab1e8a0.js} +20 -71
  261. package/lib/dist-custom-elements/{p-8c0cf877.js → p-d2402b45.js} +27 -79
  262. package/lib/dist-custom-elements/{p-b89983b2.js → p-d34c42bc.js} +1 -10
  263. package/lib/dist-custom-elements/{p-f674e164.js → p-d628dd87.js} +17 -80
  264. package/lib/dist-custom-elements/{p-c4165359.js → p-db135ec9.js} +1 -13
  265. package/lib/dist-custom-elements/{p-d4c234ed.js → p-e2cd1c98.js} +1 -1
  266. package/lib/dist-custom-elements/{p-b9058029.js → p-e4a60f42.js} +8 -0
  267. package/lib/dist-custom-elements/{p-b4b809ff.js → p-eb6fc032.js} +33 -109
  268. package/lib/dist-custom-elements/{p-464a80f2.js → p-f7c0e5bf.js} +1 -23
  269. package/lib/dist-custom-elements/{p-908c1151.js → p-fddad5df.js} +5 -36
  270. package/lib/dist-custom-elements/{p-1302f6e8.js → p-fed8d27a.js} +5 -27
  271. package/lib/duet/duet.esm.js +1 -1
  272. package/lib/duet/duet.js +2 -1
  273. package/lib/duet/{p-fe87f458.system.entry.js → p-00ee31e2.system.entry.js} +1 -1
  274. package/lib/duet/{p-5d9ec5ef.entry.js → p-0169eb09.entry.js} +1 -1
  275. package/lib/duet/{p-a585455c.system.entry.js → p-0236fc28.system.entry.js} +1 -1
  276. package/lib/duet/p-0285e5d3.entry.js +4 -0
  277. package/lib/duet/{p-fc2cda87.system.entry.js → p-028da443.system.entry.js} +2 -2
  278. package/lib/duet/{p-b09e3f47.system.entry.js → p-0426e86f.system.entry.js} +1 -1
  279. package/lib/duet/{p-7ea15c5c.system.entry.js → p-06c01b8a.system.entry.js} +1 -1
  280. package/lib/duet/{p-3b31184e.js → p-07970d29.js} +0 -0
  281. package/lib/duet/{p-ad0cf0f5.system.entry.js → p-09e9e6e0.system.entry.js} +2 -2
  282. package/lib/duet/p-0aae8ebf.entry.js +4 -0
  283. package/lib/duet/{p-526c88d9.system.entry.js → p-0c519c1f.system.entry.js} +1 -1
  284. package/lib/duet/p-0d218007.entry.js +4 -0
  285. package/lib/duet/p-0d6723f5.entry.js +4 -0
  286. package/lib/duet/p-0e1a3c6d.entry.js +4 -0
  287. package/lib/duet/{p-e60b3dc2.entry.js → p-0f8e4b6a.entry.js} +1 -1
  288. package/lib/duet/p-0fc0e90e.entry.js +4 -0
  289. package/lib/duet/{p-a5f977bc.system.entry.js → p-10b1ea3e.system.entry.js} +2 -2
  290. package/lib/duet/{p-32c587da.entry.js → p-1184c37e.entry.js} +1 -1
  291. package/lib/duet/{p-ce3fc2bd.entry.js → p-11c58a6b.entry.js} +1 -1
  292. package/lib/duet/p-14cca806.entry.js +4 -0
  293. package/lib/duet/{p-a2d89ed8.system.entry.js → p-14e93ad6.system.entry.js} +1 -1
  294. package/lib/duet/{p-2cf9ce9f.system.entry.js → p-16b61523.system.entry.js} +2 -2
  295. package/lib/duet/p-16cbd476.entry.js +4 -0
  296. package/lib/duet/{p-f5149c67.entry.js → p-1833941e.entry.js} +1 -1
  297. package/lib/duet/{p-15743dbe.system.entry.js → p-1a45eddb.system.entry.js} +1 -1
  298. package/lib/duet/{p-37b5759b.entry.js → p-1b63c3bf.entry.js} +1 -1
  299. package/lib/duet/p-1e442975.entry.js +4 -0
  300. package/lib/duet/{p-22793750.entry.js → p-27a1c897.entry.js} +1 -1
  301. package/lib/duet/{p-a4575910.entry.js → p-2c5b761d.entry.js} +1 -1
  302. package/lib/duet/{p-1b4da2a6.entry.js → p-2cbe5fe4.entry.js} +1 -1
  303. package/lib/duet/{p-ace82109.system.entry.js → p-2f0f8b9e.system.entry.js} +2 -2
  304. package/lib/duet/{p-b0fa24ea.system.entry.js → p-326d3440.system.entry.js} +1 -1
  305. package/lib/duet/{p-74edab4b.system.entry.js → p-394efc25.system.entry.js} +1 -1
  306. package/lib/duet/{p-bb2dab53.system.entry.js → p-400f8e9d.system.entry.js} +2 -2
  307. package/lib/duet/{p-21e8b3cb.system.entry.js → p-43750071.system.entry.js} +1 -1
  308. package/lib/duet/{p-995fe7b5.entry.js → p-45b0469f.entry.js} +1 -1
  309. package/lib/duet/p-4644616b.entry.js +4 -0
  310. package/lib/duet/{p-48d5c614.entry.js → p-4c96e54d.entry.js} +1 -1
  311. package/lib/duet/{p-f084d355.system.entry.js → p-4d1a5b9e.system.entry.js} +1 -1
  312. package/lib/duet/{p-fc34b8a0.system.entry.js → p-4e2db855.system.entry.js} +1 -1
  313. package/lib/duet/{p-e7196c1b.system.entry.js → p-5214682e.system.entry.js} +1 -1
  314. package/lib/duet/{p-c8ba8ed5.system.entry.js → p-575e4d53.system.entry.js} +1 -1
  315. package/lib/duet/{p-e1dc6e7f.system.entry.js → p-58de4753.system.entry.js} +1 -1
  316. package/lib/duet/p-592bcdd4.entry.js +4 -0
  317. package/lib/duet/{p-1b3fc470.system.entry.js → p-5b00d0cf.system.entry.js} +1 -1
  318. package/lib/duet/p-5bffb89f.entry.js +4 -0
  319. package/lib/duet/{p-93138df9.entry.js → p-5e134670.entry.js} +1 -1
  320. package/lib/duet/p-60c70efa.entry.js +4 -0
  321. package/lib/duet/p-61f8dd7f.system.entry.js +4 -0
  322. package/lib/duet/{p-7ac15184.system.entry.js → p-63cb7308.system.entry.js} +1 -1
  323. package/lib/duet/p-696d99ff.system.entry.js +4 -0
  324. package/lib/duet/p-6999702a.js +5 -0
  325. package/lib/duet/p-6db0f8c0.entry.js +4 -0
  326. package/lib/duet/{p-caf8cc5f.system.entry.js → p-6f2e72e2.system.entry.js} +2 -2
  327. package/lib/duet/{p-b668b67c.system.js → p-73900354.system.js} +0 -0
  328. package/lib/duet/{p-fc200674.system.entry.js → p-758c0528.system.entry.js} +2 -2
  329. package/lib/duet/{p-436b415a.system.entry.js → p-79c8d35c.system.entry.js} +1 -1
  330. package/lib/duet/{p-6226ebc9.entry.js → p-7ccf8ef9.entry.js} +1 -1
  331. package/lib/duet/{p-5a61c374.system.entry.js → p-7e67fedc.system.entry.js} +1 -1
  332. package/lib/duet/{p-aa10446f.system.entry.js → p-7fcbf80a.system.entry.js} +1 -1
  333. package/lib/duet/{p-a57f8242.entry.js → p-81313736.entry.js} +1 -1
  334. package/lib/duet/{p-a5dcf047.entry.js → p-81e66ef1.entry.js} +1 -1
  335. package/lib/duet/p-8512b463.js +4 -0
  336. package/lib/duet/p-855f9e2a.system.entry.js +4 -0
  337. package/lib/duet/{p-c4f57811.entry.js → p-8681c6e0.entry.js} +1 -1
  338. package/lib/duet/p-89bf7be7.entry.js +4 -0
  339. package/lib/duet/{p-1c2bc99b.system.entry.js → p-8a47d599.system.entry.js} +1 -1
  340. package/lib/duet/{p-ebbe496d.entry.js → p-8f6cf5d1.entry.js} +1 -1
  341. package/lib/duet/{p-0734bdd5.system.entry.js → p-90ea4509.system.entry.js} +1 -1
  342. package/lib/duet/p-9101f9ed.entry.js +4 -0
  343. package/lib/duet/{p-14e5b2e7.system.entry.js → p-914c3280.system.entry.js} +1 -1
  344. package/lib/duet/{p-9ea3b585.system.entry.js → p-948d492d.system.entry.js} +2 -2
  345. package/lib/duet/{p-daa920e3.system.entry.js → p-9a14ca19.system.entry.js} +1 -1
  346. package/lib/duet/{p-41110e9b.system.entry.js → p-9f60735a.system.entry.js} +1 -1
  347. package/lib/duet/p-a8d942ea.entry.js +4 -0
  348. package/lib/duet/{p-fe0cb2a5.entry.js → p-ac4c233b.entry.js} +1 -1
  349. package/lib/duet/p-acea52f5.entry.js +4 -0
  350. package/lib/duet/{p-bf4e00b1.system.entry.js → p-b180a4e2.system.entry.js} +1 -1
  351. package/lib/duet/{p-c0732300.system.entry.js → p-b2688afc.system.entry.js} +1 -1
  352. package/lib/duet/p-b293c2ff.entry.js +4 -0
  353. package/lib/duet/{p-2bcf54bb.entry.js → p-b2c913ea.entry.js} +1 -1
  354. package/lib/duet/p-b3046425.entry.js +4 -0
  355. package/lib/duet/p-b5dc8a8f.system.entry.js +4 -0
  356. package/lib/duet/{p-d448c7fc.system.entry.js → p-b821b721.system.entry.js} +1 -1
  357. package/lib/duet/p-bc2c1014.entry.js +4 -0
  358. package/lib/duet/{p-4c7ae11f.system.entry.js → p-bcd4a927.system.entry.js} +1 -1
  359. package/lib/duet/p-c12ecca9.entry.js +4 -0
  360. package/lib/duet/p-c17cae49.entry.js +4 -0
  361. package/lib/duet/p-c2c48bb2.entry.js +4 -0
  362. package/lib/duet/{p-870e88b7.system.entry.js → p-c3a0505e.system.entry.js} +1 -1
  363. package/lib/duet/{p-15b79ed1.entry.js → p-c41bfab0.entry.js} +1 -1
  364. package/lib/duet/{p-9e5192fd.entry.js → p-c4932f05.entry.js} +1 -1
  365. package/lib/duet/{p-8755500b.entry.js → p-c5e54be9.entry.js} +1 -1
  366. package/lib/duet/p-cf11b05b.entry.js +4 -0
  367. package/lib/duet/{p-d1da9fe1.system.entry.js → p-d0f1d25f.system.entry.js} +1 -1
  368. package/lib/duet/p-d16434dc.entry.js +4 -0
  369. package/lib/duet/{p-ed024bd6.entry.js → p-d2ef832d.entry.js} +1 -1
  370. package/lib/duet/{p-eb168145.system.js → p-d58991bc.system.js} +1 -1
  371. package/lib/duet/p-d971be46.entry.js +4 -0
  372. package/lib/duet/{p-ff46ec81.system.js → p-da0d4ee3.system.js} +0 -0
  373. package/lib/duet/p-da803459.entry.js +4 -0
  374. package/lib/duet/{p-eb94a92c.system.entry.js → p-daa20c36.system.entry.js} +1 -1
  375. package/lib/duet/{p-7e0d3659.entry.js → p-dbddb719.entry.js} +1 -1
  376. package/lib/duet/{p-5bbac6e9.system.entry.js → p-dc18b76c.system.entry.js} +1 -1
  377. package/lib/duet/p-dc51f077.entry.js +4 -0
  378. package/lib/duet/{p-db64d031.system.entry.js → p-dd676f12.system.entry.js} +1 -1
  379. package/lib/duet/{p-176c64c4.system.entry.js → p-dfcbf758.system.entry.js} +1 -1
  380. package/lib/duet/{p-d4c234ed.js → p-e2cd1c98.js} +0 -0
  381. package/lib/duet/{p-71e54f66.system.entry.js → p-e621c31c.system.entry.js} +1 -1
  382. package/lib/duet/p-e71a6257.system.js +5 -0
  383. package/lib/duet/{p-f8133fe1.system.entry.js → p-ea8e5649.system.entry.js} +1 -1
  384. package/lib/duet/{p-617872b5.system.entry.js → p-ebc09697.system.entry.js} +1 -1
  385. package/lib/duet/{p-66f1bdce.entry.js → p-ec635593.entry.js} +1 -1
  386. package/lib/duet/p-ef3f4213.entry.js +4 -0
  387. package/lib/duet/{p-61baccc6.system.entry.js → p-f01d234f.system.entry.js} +1 -1
  388. package/lib/duet/p-f150740b.entry.js +4 -0
  389. package/lib/duet/{p-71f1a210.system.entry.js → p-f2bcb922.system.entry.js} +1 -1
  390. package/lib/duet/{p-67a7ac4f.entry.js → p-f3d0d889.entry.js} +1 -1
  391. package/lib/duet/{p-a629e72a.system.entry.js → p-f6712ec8.system.entry.js} +1 -1
  392. package/lib/duet/{p-d164cdeb.system.entry.js → p-f678edf7.system.entry.js} +1 -1
  393. package/lib/duet/p-f7453c05.system.entry.js +4 -0
  394. package/lib/duet/{p-2e71b284.system.js → p-f9133dc5.system.js} +1 -1
  395. package/lib/duet/{p-465c7f64.system.entry.js → p-f9afad76.system.entry.js} +1 -1
  396. package/lib/esm/{dom-3dbcb0d8.js → dom-4d9c03f4.js} +1 -1
  397. package/lib/esm/duet-action-button.entry.js +14 -77
  398. package/lib/esm/duet-alert.entry.js +10 -42
  399. package/lib/esm/duet-badge.entry.js +1 -10
  400. package/lib/esm/duet-breadcrumb.entry.js +2 -10
  401. package/lib/esm/duet-breadcrumbs.entry.js +2 -4
  402. package/lib/esm/duet-button_2.entry.js +30 -119
  403. package/lib/esm/duet-caption_4.entry.js +4 -78
  404. package/lib/esm/duet-card.entry.js +16 -55
  405. package/lib/esm/duet-checkbox.entry.js +21 -49
  406. package/lib/esm/duet-choice_2.entry.js +51 -152
  407. package/lib/esm/duet-collapsible.entry.js +8 -41
  408. package/lib/esm/duet-combobox.entry.js +26 -50
  409. package/lib/esm/duet-cookie-consent.entry.js +3 -9
  410. package/lib/esm/duet-date-picker.entry.js +37 -108
  411. package/lib/esm/duet-divider_2.entry.js +1 -17
  412. package/lib/esm/duet-editable-table_3.entry.js +163 -404
  413. package/lib/esm/duet-empty-state.entry.js +1 -10
  414. package/lib/esm/duet-fieldset.entry.js +7 -13
  415. package/lib/esm/duet-footer.entry.js +13 -42
  416. package/lib/esm/duet-grid_2.entry.js +3 -43
  417. package/lib/esm/duet-header_2.entry.js +56 -163
  418. package/lib/esm/duet-hero.entry.js +15 -90
  419. package/lib/esm/duet-icon.entry.js +4 -35
  420. package/lib/esm/duet-input_2.entry.js +41 -115
  421. package/lib/esm/duet-layout.entry.js +1 -24
  422. package/lib/esm/duet-list_2.entry.js +1 -23
  423. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -10
  424. package/lib/esm/duet-menu-bar-dropdown.entry.js +4 -13
  425. package/lib/esm/duet-menu-bar-link.entry.js +1 -10
  426. package/lib/esm/duet-menu-bar-menu-dropdown-link.entry.js +1 -16
  427. package/lib/esm/duet-menu-bar-menu-dropdown.entry.js +4 -13
  428. package/lib/esm/duet-menu-bar-menu-link.entry.js +1 -13
  429. package/lib/esm/duet-menu-bar-menu.entry.js +4 -13
  430. package/lib/esm/duet-menu-bar.entry.js +3 -6
  431. package/lib/esm/duet-modal.entry.js +4 -59
  432. package/lib/esm/duet-multiselect.entry.js +18 -59
  433. package/lib/esm/duet-nav.entry.js +2 -5
  434. package/lib/esm/duet-notification_2.entry.js +15 -74
  435. package/lib/esm/duet-number-input.entry.js +53 -142
  436. package/lib/esm/duet-pagination_2.entry.js +51 -125
  437. package/lib/esm/duet-progress.entry.js +4 -26
  438. package/lib/esm/duet-radio_2.entry.js +36 -84
  439. package/lib/esm/duet-range-slider.entry.js +21 -62
  440. package/lib/esm/duet-scrollable_3.entry.js +25 -88
  441. package/lib/esm/duet-section-layout.entry.js +1 -7
  442. package/lib/esm/duet-select.entry.js +25 -65
  443. package/lib/esm/duet-step_2.entry.js +8 -34
  444. package/lib/esm/duet-textarea.entry.js +31 -79
  445. package/lib/esm/duet-toggle.entry.js +15 -38
  446. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -13
  447. package/lib/esm/duet-toolbar-dropdown.entry.js +5 -17
  448. package/lib/esm/duet-toolbar-link.entry.js +1 -13
  449. package/lib/esm/duet-toolbar.entry.js +1 -4
  450. package/lib/esm/duet-tooltip.entry.js +25 -77
  451. package/lib/esm/duet-tray.entry.js +11 -53
  452. package/lib/esm/duet-upload-aria-status.entry.js +8 -29
  453. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  454. package/lib/esm/duet.js +4 -4
  455. package/lib/esm/{focus-utils-c6e25a2b.js → focus-utils-abaea1e6.js} +1 -1
  456. package/lib/esm/{index-adbabdb3.js → index-4df60498.js} +1438 -1235
  457. package/lib/esm/loader.js +3 -3
  458. package/lib/esm/polyfills/css-shim.js +1 -1
  459. package/lib/esm/{shadow-css-501eda9a.js → shadow-css-a011f1fe.js} +1 -1
  460. package/lib/esm-es5/{dom-3dbcb0d8.js → dom-4d9c03f4.js} +0 -0
  461. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  462. package/lib/esm-es5/duet-alert.entry.js +1 -1
  463. package/lib/esm-es5/duet-badge.entry.js +1 -1
  464. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  465. package/lib/esm-es5/duet-breadcrumbs.entry.js +2 -2
  466. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  467. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  468. package/lib/esm-es5/duet-card.entry.js +1 -1
  469. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  470. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  471. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  472. package/lib/esm-es5/duet-combobox.entry.js +2 -2
  473. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  474. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  475. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  476. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  477. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  478. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  479. package/lib/esm-es5/duet-footer.entry.js +2 -2
  480. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  481. package/lib/esm-es5/duet-header_2.entry.js +2 -2
  482. package/lib/esm-es5/duet-hero.entry.js +1 -1
  483. package/lib/esm-es5/duet-icon.entry.js +2 -2
  484. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  485. package/lib/esm-es5/duet-layout.entry.js +1 -1
  486. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  487. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  488. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  489. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  490. package/lib/esm-es5/duet-menu-bar-menu-dropdown-link.entry.js +1 -1
  491. package/lib/esm-es5/duet-menu-bar-menu-dropdown.entry.js +1 -1
  492. package/lib/esm-es5/duet-menu-bar-menu-link.entry.js +1 -1
  493. package/lib/esm-es5/duet-menu-bar-menu.entry.js +1 -1
  494. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  495. package/lib/esm-es5/duet-modal.entry.js +2 -2
  496. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  497. package/lib/esm-es5/duet-nav.entry.js +1 -1
  498. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  499. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  500. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  501. package/lib/esm-es5/duet-progress.entry.js +1 -1
  502. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  503. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  504. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  505. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  506. package/lib/esm-es5/duet-select.entry.js +2 -2
  507. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  508. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  509. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  510. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  511. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  512. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  513. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  514. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  515. package/lib/esm-es5/duet-tray.entry.js +1 -1
  516. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  517. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  518. package/lib/esm-es5/duet.js +1 -1
  519. package/lib/esm-es5/{focus-utils-c6e25a2b.js → focus-utils-abaea1e6.js} +1 -1
  520. package/lib/esm-es5/index-4df60498.js +5 -0
  521. package/lib/esm-es5/loader.js +1 -1
  522. package/lib/esm-es5/{shadow-css-501eda9a.js → shadow-css-a011f1fe.js} +0 -0
  523. package/lib/loader/package.json +1 -0
  524. package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -2
  525. package/lib/types/stencil-public-runtime.d.ts +20 -4
  526. package/package.json +8 -10
  527. package/lib/duet/p-03ac8c12.entry.js +0 -4
  528. package/lib/duet/p-0b0b1a31.js +0 -4
  529. package/lib/duet/p-2482298d.entry.js +0 -4
  530. package/lib/duet/p-2be7affe.system.entry.js +0 -4
  531. package/lib/duet/p-2e2eca0e.entry.js +0 -4
  532. package/lib/duet/p-3198246d.system.entry.js +0 -4
  533. package/lib/duet/p-31a8380d.entry.js +0 -4
  534. package/lib/duet/p-3d96bd35.entry.js +0 -4
  535. package/lib/duet/p-4fd9fab5.entry.js +0 -4
  536. package/lib/duet/p-570786a7.system.entry.js +0 -4
  537. package/lib/duet/p-5be11a3f.entry.js +0 -4
  538. package/lib/duet/p-6198dd87.entry.js +0 -4
  539. package/lib/duet/p-6ef4c26f.system.entry.js +0 -4
  540. package/lib/duet/p-73b1bfff.system.js +0 -5
  541. package/lib/duet/p-74a85e06.entry.js +0 -4
  542. package/lib/duet/p-8e12f166.entry.js +0 -4
  543. package/lib/duet/p-8e83ab80.entry.js +0 -4
  544. package/lib/duet/p-925f5739.entry.js +0 -4
  545. package/lib/duet/p-aeee20b5.system.entry.js +0 -4
  546. package/lib/duet/p-b252c6c7.entry.js +0 -4
  547. package/lib/duet/p-b28b7458.entry.js +0 -4
  548. package/lib/duet/p-bbc7c22c.js +0 -5
  549. package/lib/duet/p-bce4669c.entry.js +0 -4
  550. package/lib/duet/p-bf165746.entry.js +0 -4
  551. package/lib/duet/p-c4375ca3.entry.js +0 -4
  552. package/lib/duet/p-cd5358ce.entry.js +0 -4
  553. package/lib/duet/p-d770b87e.entry.js +0 -4
  554. package/lib/duet/p-d7d944f5.entry.js +0 -4
  555. package/lib/duet/p-d7fa0c7c.entry.js +0 -4
  556. package/lib/duet/p-d83f8247.entry.js +0 -4
  557. package/lib/duet/p-dc9b21ad.entry.js +0 -4
  558. package/lib/duet/p-dcf2df11.entry.js +0 -4
  559. package/lib/duet/p-de024983.entry.js +0 -4
  560. package/lib/duet/p-e01e9f71.entry.js +0 -4
  561. package/lib/duet/p-e7808045.entry.js +0 -4
  562. package/lib/duet/p-e9cf0568.entry.js +0 -4
  563. package/lib/duet/p-f015180c.entry.js +0 -4
  564. package/lib/duet/p-f0e4ccb6.entry.js +0 -4
  565. package/lib/duet/p-f0f8a1fd.entry.js +0 -4
  566. package/lib/esm-es5/index-adbabdb3.js +0 -5
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from "@stencil/core";
4
+ import { h, Host } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../common/themeable-component";
6
6
  import { createID } from "../../utils/create-id";
7
7
  import { FocusGuard } from "../../utils/focus-utils";
@@ -19,112 +19,6 @@ export class DuetDatePicker {
19
19
  this.initialTouchX = null;
20
20
  this.initialTouchY = null;
21
21
  this.focusTarget = null;
22
- this.open = false;
23
- this.focusedDay = new Date();
24
- this.inputValue = "";
25
- /**
26
- * Theme of the component.
27
- */
28
- this.theme = "";
29
- /**
30
- * Expands the date picker input to fill 100% of the container width.
31
- */
32
- this.expand = false;
33
- /**
34
- * Name of the date picker input.
35
- */
36
- this.name = "";
37
- /**
38
- * Adds a unique identifier for the date picker input.
39
- */
40
- this.identifier = "";
41
- /**
42
- * Label for the date picker input.
43
- */
44
- this.label = "";
45
- /**
46
- * Controls the margin of the component.
47
- */
48
- this.margin = "auto";
49
- /**
50
- * The currently active language. This setting changes the month/year/day.
51
- * names and button labels as well as all screen reader labels.
52
- * @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing.
53
- * @default "fi"
54
- */
55
- this.language = getLanguage();
56
- /**
57
- * Placeholder defaults.
58
- * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
59
- */
60
- this.placeholderDefaults = {
61
- fi: "pp.kk.vvvv",
62
- en: "dd.mm.yyyy",
63
- sv: "dd.mm.åååå",
64
- };
65
- /**
66
- * Hint text to display before the user types into the date picker input.
67
- * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
68
- */
69
- this.placeholder = getLocaleString(this.placeholderDefaults, this.language);
70
- /**
71
- * If form input field has a placeholder text, and user types anything (causing the text to dissapear),
72
- * settings this to true will "echo" it into the caption slot - this option will be false by default for the next few versions, but will eventually be true by default (scheduled for 4.30.0)
73
- */
74
- this.echoPlaceholder = false;
75
- /**
76
- * Makes the date picker input component disabled. This prevents users from being able to
77
- * interact with the input, and conveys its inactive state to assistive technologies.
78
- */
79
- this.disabled = false;
80
- /**
81
- * Display the date picker input in error state along with an error message.
82
- */
83
- this.error = "";
84
- /**
85
- * Visually hide the label, but still show it to screen readers.
86
- */
87
- this.labelHidden = false;
88
- /**
89
- * Set whether the input is required or not. Please note that this is necessary for
90
- * accessible inputs when the user is required to fill them. When using this property
91
- * you need to also set “novalidate” attribute to your form element to prevent
92
- * browser from displaying its own validation errors.
93
- */
94
- this.required = false;
95
- /**
96
- * Forces the opening direction of the calendar modal to be always left or right.
97
- * This setting can be useful when the input is smaller than the opening date picker
98
- * would be as by default the picker always opens towards right.
99
- */
100
- this.direction = "right";
101
- /**
102
- * Tooltip to display next to the label of the date picker input.
103
- */
104
- this.tooltip = "";
105
- /**
106
- * With direction setting you can force the tooltip to always open towards left
107
- * or right instead of automatically determining the direction.
108
- */
109
- this.tooltipDirection = "auto";
110
- /**
111
- * Date value. Must be in IS0-8601 format: YYYY-MM-DD
112
- */
113
- this.value = "";
114
- /**
115
- * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.
116
- * This setting can be used alone or together with the max property.
117
- */
118
- this.min = "";
119
- /**
120
- * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.
121
- * This setting can be used alone or together with the min property.
122
- */
123
- this.max = "";
124
- /**
125
- * Increment to add to years, defaults to 10 for simplicity, if you need a larger selectionspace you can set it to 100
126
- */
127
- this.incrementYears = 10;
128
22
  this.enableActiveFocus = () => {
129
23
  this.focusTarget = "day-button";
130
24
  };
@@ -223,6 +117,41 @@ export class DuetDatePicker {
223
117
  this.setValue(parsed);
224
118
  }
225
119
  };
120
+ this.open = false;
121
+ this.focusedDay = new Date();
122
+ this.inputValue = "";
123
+ this.theme = "";
124
+ this.expand = false;
125
+ this.name = "";
126
+ this.identifier = "";
127
+ this.label = "";
128
+ this.caption = undefined;
129
+ this.margin = "auto";
130
+ this.language = getLanguage();
131
+ this.placeholderDefaults = {
132
+ fi: "pp.kk.vvvv",
133
+ en: "dd.mm.yyyy",
134
+ sv: "dd.mm.åååå",
135
+ };
136
+ this.placeholder = getLocaleString(this.placeholderDefaults, this.language);
137
+ this.echoPlaceholder = false;
138
+ this.disabled = false;
139
+ this.error = "";
140
+ this.labelHidden = false;
141
+ this.role = undefined;
142
+ this.accessibleActiveDescendant = undefined;
143
+ this.accessibleControls = undefined;
144
+ this.accessibleOwns = undefined;
145
+ this.accessibleDescribedBy = undefined;
146
+ this.required = false;
147
+ this.direction = "right";
148
+ this.tooltip = "";
149
+ this.tooltipDirection = "auto";
150
+ this.value = "";
151
+ this.min = "";
152
+ this.max = "";
153
+ this.incrementYears = 10;
154
+ this.validity = undefined;
226
155
  }
227
156
  updateValidity() {
228
157
  this.determineValidity(parseISODate(this.value));
@@ -398,745 +327,724 @@ export class DuetDatePicker {
398
327
  if (maxDate) {
399
328
  maxYear = Math.min(maxYear, maxDate.getFullYear());
400
329
  }
401
- return (h(Host, { class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } },
402
- h("div", { class: "duet-date" },
403
- h(DatePickerInput, { value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, echoPlaceholder: this.echoPlaceholder, caption: this.caption })),
404
- h("div", { class: {
405
- "duet-theme-turva": this.theme === "turva",
406
- "duet-date-dialog": true,
407
- left: this.direction === "left",
408
- error: !!this.error,
409
- active: this.open,
410
- }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd },
411
- h(FocusGuard, { moveFocusTo: this.focusedDayNode }),
412
- h("div", { class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) },
413
- h("duet-visually-hidden", { "aria-live": "polite" }, text.keyboardInstruction),
414
- h("div", { class: "duet-date-dialog-mobile-header" },
415
- h("duet-label", { margin: "none" }, this.label),
416
- h("button", { class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" },
417
- h("duet-icon", { name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }),
418
- h("duet-visually-hidden", null, text.closeLabel))),
419
- h("div", { class: "duet-date-dialog-header" },
420
- h("div", { class: "duet-date-dialog-dropdowns" },
421
- h("duet-visually-hidden", null,
422
- h("h2", { id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" },
423
- text.monthLabels[focusedMonth],
424
- " ",
425
- this.focusedDay.getFullYear())),
426
- h("duet-visually-hidden", null,
427
- h("label", { htmlFor: this.monthSelectId }, text.monthSelectLabel)),
428
- h("div", { class: "duet-date-dialog-select" },
429
- h("select", { id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))),
430
- h("div", { class: "duet-date-dialog-select-label", "aria-hidden": "true" },
431
- h("span", null, text.monthLabelsShort[focusedMonth]),
432
- h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))),
433
- h("duet-visually-hidden", null,
434
- h("label", { htmlFor: this.yearSelectId }, text.yearSelectLabel)),
435
- h("div", { class: "duet-date-dialog-select" },
436
- h("select", { id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))),
437
- h("div", { class: "duet-date-dialog-select-label", "aria-hidden": "true" },
438
- h("span", null, this.focusedDay.getFullYear()),
439
- h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))),
440
- h("div", { class: "duet-date-dialog-buttons" },
441
- h("duet-action-button", { class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel),
442
- h("duet-action-button", { class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))),
443
- h(DatePickerMonth, { selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })),
444
- h(FocusGuard, { moveFocusTo: this.closeButtonNode }))));
330
+ return (h(Host, { class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { class: "duet-date" }, h(DatePickerInput, { value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), h("div", { class: {
331
+ "duet-theme-turva": this.theme === "turva",
332
+ "duet-date-dialog": true,
333
+ left: this.direction === "left",
334
+ error: !!this.error,
335
+ active: this.open,
336
+ }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h(FocusGuard, { moveFocusTo: this.focusedDayNode }), h("div", { class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { "aria-live": "polite" }, text.keyboardInstruction), h("div", { class: "duet-date-dialog-mobile-header" }, h("duet-label", { margin: "none" }, this.label), h("button", { class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", null, text.closeLabel))), h("div", { class: "duet-date-dialog-header" }, h("div", { class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", null, h("h2", { id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", null, h("label", { htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { class: "duet-date-dialog-select" }, h("select", { id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), h("div", { class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", null, text.monthLabelsShort[focusedMonth]), h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", null, h("label", { htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { class: "duet-date-dialog-select" }, h("select", { id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", null, this.focusedDay.getFullYear()), h("duet-icon", { name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { class: "duet-date-dialog-buttons" }, h("duet-action-button", { class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), h("duet-action-button", { class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), h(DatePickerMonth, { selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), h(FocusGuard, { moveFocusTo: this.closeButtonNode }))));
445
337
  }
446
338
  static get is() { return "duet-date-picker"; }
447
339
  static get encapsulation() { return "scoped"; }
448
- static get originalStyleUrls() { return {
449
- "$": ["duet-date-picker.scss"]
450
- }; }
451
- static get styleUrls() { return {
452
- "$": ["duet-date-picker.css"]
453
- }; }
454
- static get properties() { return {
455
- "theme": {
456
- "type": "string",
457
- "mutable": true,
458
- "complexType": {
459
- "original": "DuetTheme",
460
- "resolved": "\"\" | \"default\" | \"turva\"",
461
- "references": {
462
- "DuetTheme": {
463
- "location": "import",
464
- "path": "../../common-types"
340
+ static get originalStyleUrls() {
341
+ return {
342
+ "$": ["duet-date-picker.scss"]
343
+ };
344
+ }
345
+ static get styleUrls() {
346
+ return {
347
+ "$": ["duet-date-picker.css"]
348
+ };
349
+ }
350
+ static get properties() {
351
+ return {
352
+ "theme": {
353
+ "type": "string",
354
+ "mutable": true,
355
+ "complexType": {
356
+ "original": "DuetTheme",
357
+ "resolved": "\"\" | \"default\" | \"turva\"",
358
+ "references": {
359
+ "DuetTheme": {
360
+ "location": "import",
361
+ "path": "../../common-types"
362
+ }
465
363
  }
466
- }
467
- },
468
- "required": false,
469
- "optional": false,
470
- "docs": {
471
- "tags": [],
472
- "text": "Theme of the component."
473
- },
474
- "attribute": "theme",
475
- "reflect": false,
476
- "defaultValue": "\"\""
477
- },
478
- "expand": {
479
- "type": "boolean",
480
- "mutable": false,
481
- "complexType": {
482
- "original": "boolean",
483
- "resolved": "boolean",
484
- "references": {}
485
- },
486
- "required": false,
487
- "optional": false,
488
- "docs": {
489
- "tags": [],
490
- "text": "Expands the date picker input to fill 100% of the container width."
491
- },
492
- "attribute": "expand",
493
- "reflect": false,
494
- "defaultValue": "false"
495
- },
496
- "name": {
497
- "type": "string",
498
- "mutable": false,
499
- "complexType": {
500
- "original": "string",
501
- "resolved": "string",
502
- "references": {}
503
- },
504
- "required": false,
505
- "optional": false,
506
- "docs": {
507
- "tags": [],
508
- "text": "Name of the date picker input."
509
- },
510
- "attribute": "name",
511
- "reflect": false,
512
- "defaultValue": "\"\""
513
- },
514
- "identifier": {
515
- "type": "string",
516
- "mutable": false,
517
- "complexType": {
518
- "original": "string",
519
- "resolved": "string",
520
- "references": {}
364
+ },
365
+ "required": false,
366
+ "optional": false,
367
+ "docs": {
368
+ "tags": [],
369
+ "text": "Theme of the component."
370
+ },
371
+ "attribute": "theme",
372
+ "reflect": false,
373
+ "defaultValue": "\"\""
521
374
  },
522
- "required": false,
523
- "optional": false,
524
- "docs": {
525
- "tags": [],
526
- "text": "Adds a unique identifier for the date picker input."
375
+ "expand": {
376
+ "type": "boolean",
377
+ "mutable": false,
378
+ "complexType": {
379
+ "original": "boolean",
380
+ "resolved": "boolean",
381
+ "references": {}
382
+ },
383
+ "required": false,
384
+ "optional": false,
385
+ "docs": {
386
+ "tags": [],
387
+ "text": "Expands the date picker input to fill 100% of the container width."
388
+ },
389
+ "attribute": "expand",
390
+ "reflect": false,
391
+ "defaultValue": "false"
527
392
  },
528
- "attribute": "identifier",
529
- "reflect": false,
530
- "defaultValue": "\"\""
531
- },
532
- "label": {
533
- "type": "string",
534
- "mutable": false,
535
- "complexType": {
536
- "original": "string",
537
- "resolved": "string",
538
- "references": {}
393
+ "name": {
394
+ "type": "string",
395
+ "mutable": false,
396
+ "complexType": {
397
+ "original": "string",
398
+ "resolved": "string",
399
+ "references": {}
400
+ },
401
+ "required": false,
402
+ "optional": false,
403
+ "docs": {
404
+ "tags": [],
405
+ "text": "Name of the date picker input."
406
+ },
407
+ "attribute": "name",
408
+ "reflect": false,
409
+ "defaultValue": "\"\""
539
410
  },
540
- "required": false,
541
- "optional": false,
542
- "docs": {
543
- "tags": [],
544
- "text": "Label for the date picker input."
411
+ "identifier": {
412
+ "type": "string",
413
+ "mutable": false,
414
+ "complexType": {
415
+ "original": "string",
416
+ "resolved": "string",
417
+ "references": {}
418
+ },
419
+ "required": false,
420
+ "optional": false,
421
+ "docs": {
422
+ "tags": [],
423
+ "text": "Adds a unique identifier for the date picker input."
424
+ },
425
+ "attribute": "identifier",
426
+ "reflect": false,
427
+ "defaultValue": "\"\""
545
428
  },
546
- "attribute": "label",
547
- "reflect": false,
548
- "defaultValue": "\"\""
549
- },
550
- "caption": {
551
- "type": "string",
552
- "mutable": false,
553
- "complexType": {
554
- "original": "string",
555
- "resolved": "string",
556
- "references": {}
429
+ "label": {
430
+ "type": "string",
431
+ "mutable": false,
432
+ "complexType": {
433
+ "original": "string",
434
+ "resolved": "string",
435
+ "references": {}
436
+ },
437
+ "required": false,
438
+ "optional": false,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": "Label for the date picker input."
442
+ },
443
+ "attribute": "label",
444
+ "reflect": false,
445
+ "defaultValue": "\"\""
557
446
  },
558
- "required": false,
559
- "optional": false,
560
- "docs": {
561
- "tags": [],
562
- "text": "Caption (underneath label) that can be set as a way of adding extra information."
447
+ "caption": {
448
+ "type": "string",
449
+ "mutable": false,
450
+ "complexType": {
451
+ "original": "string",
452
+ "resolved": "string",
453
+ "references": {}
454
+ },
455
+ "required": false,
456
+ "optional": false,
457
+ "docs": {
458
+ "tags": [],
459
+ "text": "Caption (underneath label) that can be set as a way of adding extra information."
460
+ },
461
+ "attribute": "caption",
462
+ "reflect": false
563
463
  },
564
- "attribute": "caption",
565
- "reflect": false
566
- },
567
- "margin": {
568
- "type": "string",
569
- "mutable": false,
570
- "complexType": {
571
- "original": "DuetMargin",
572
- "resolved": "\"auto\" | \"none\"",
573
- "references": {
574
- "DuetMargin": {
575
- "location": "import",
576
- "path": "../../common-types"
464
+ "margin": {
465
+ "type": "string",
466
+ "mutable": false,
467
+ "complexType": {
468
+ "original": "DuetMargin",
469
+ "resolved": "\"auto\" | \"none\"",
470
+ "references": {
471
+ "DuetMargin": {
472
+ "location": "import",
473
+ "path": "../../common-types"
474
+ }
577
475
  }
578
- }
579
- },
580
- "required": false,
581
- "optional": false,
582
- "docs": {
583
- "tags": [],
584
- "text": "Controls the margin of the component."
476
+ },
477
+ "required": false,
478
+ "optional": false,
479
+ "docs": {
480
+ "tags": [],
481
+ "text": "Controls the margin of the component."
482
+ },
483
+ "attribute": "margin",
484
+ "reflect": false,
485
+ "defaultValue": "\"auto\""
585
486
  },
586
- "attribute": "margin",
587
- "reflect": false,
588
- "defaultValue": "\"auto\""
589
- },
590
- "language": {
591
- "type": "string",
592
- "mutable": false,
593
- "complexType": {
594
- "original": "DuetLanguage",
595
- "resolved": "\"en\" | \"fi\" | \"sv\"",
596
- "references": {
597
- "DuetLanguage": {
598
- "location": "import",
599
- "path": "../../common-types"
487
+ "language": {
488
+ "type": "string",
489
+ "mutable": false,
490
+ "complexType": {
491
+ "original": "DuetLanguage",
492
+ "resolved": "\"en\" | \"fi\" | \"sv\"",
493
+ "references": {
494
+ "DuetLanguage": {
495
+ "location": "import",
496
+ "path": "../../common-types"
497
+ }
600
498
  }
601
- }
602
- },
603
- "required": false,
604
- "optional": false,
605
- "docs": {
606
- "tags": [{
607
- "name": "deprecated",
608
- "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing."
609
- }, {
610
- "name": "default",
611
- "text": "\"fi\""
612
- }],
613
- "text": "The currently active language. This setting changes the month/year/day.\nnames and button labels as well as all screen reader labels."
499
+ },
500
+ "required": false,
501
+ "optional": false,
502
+ "docs": {
503
+ "tags": [{
504
+ "name": "deprecated",
505
+ "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing."
506
+ }, {
507
+ "name": "default",
508
+ "text": "\"fi\""
509
+ }],
510
+ "text": "The currently active language. This setting changes the month/year/day.\nnames and button labels as well as all screen reader labels."
511
+ },
512
+ "attribute": "language",
513
+ "reflect": false,
514
+ "defaultValue": "getLanguage()"
614
515
  },
615
- "attribute": "language",
616
- "reflect": false,
617
- "defaultValue": "getLanguage()"
618
- },
619
- "placeholderDefaults": {
620
- "type": "string",
621
- "mutable": false,
622
- "complexType": {
623
- "original": "DuetLangObject | string",
624
- "resolved": "DuetLangObject | string",
625
- "references": {
626
- "DuetLangObject": {
627
- "location": "import",
628
- "path": "../../utils/language-utils"
516
+ "placeholderDefaults": {
517
+ "type": "string",
518
+ "mutable": false,
519
+ "complexType": {
520
+ "original": "DuetLangObject | string",
521
+ "resolved": "DuetLangObject | string",
522
+ "references": {
523
+ "DuetLangObject": {
524
+ "location": "import",
525
+ "path": "../../utils/language-utils"
526
+ }
629
527
  }
630
- }
631
- },
632
- "required": false,
633
- "optional": false,
634
- "docs": {
635
- "tags": [{
636
- "name": "default",
637
- "text": "{ fi: \"pp.kk.vvvv\", en: \"dd.mm.yyyy\", sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\" }"
638
- }],
639
- "text": "Placeholder defaults."
640
- },
641
- "attribute": "placeholder-default",
642
- "reflect": false,
643
- "defaultValue": "{\n fi: \"pp.kk.vvvv\",\n en: \"dd.mm.yyyy\",\n sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\",\n }"
644
- },
645
- "placeholder": {
646
- "type": "string",
647
- "mutable": false,
648
- "complexType": {
649
- "original": "string",
650
- "resolved": "string",
651
- "references": {}
652
- },
653
- "required": false,
654
- "optional": false,
655
- "docs": {
656
- "tags": [{
657
- "name": "default",
658
- "text": "{ fi: \"pp.kk.vvvv\", en: \"dd.mm.yyyy\", sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\" }"
659
- }],
660
- "text": "Hint text to display before the user types into the date picker input."
661
- },
662
- "attribute": "placeholder",
663
- "reflect": false,
664
- "defaultValue": "getLocaleString(this.placeholderDefaults, this.language)"
665
- },
666
- "echoPlaceholder": {
667
- "type": "boolean",
668
- "mutable": true,
669
- "complexType": {
670
- "original": "boolean",
671
- "resolved": "boolean",
672
- "references": {}
673
- },
674
- "required": false,
675
- "optional": false,
676
- "docs": {
677
- "tags": [],
678
- "text": "If form input field has a placeholder text, and user types anything (causing the text to dissapear),\nsettings this to true will \"echo\" it into the caption slot - this option will be false by default for the next few versions, but will eventually be true by default (scheduled for 4.30.0)"
679
- },
680
- "attribute": "echo-placeholder",
681
- "reflect": true,
682
- "defaultValue": "false"
683
- },
684
- "disabled": {
685
- "type": "boolean",
686
- "mutable": false,
687
- "complexType": {
688
- "original": "boolean",
689
- "resolved": "boolean",
690
- "references": {}
691
- },
692
- "required": false,
693
- "optional": false,
694
- "docs": {
695
- "tags": [],
696
- "text": "Makes the date picker input component disabled. This prevents users from being able to\ninteract with the input, and conveys its inactive state to assistive technologies."
697
- },
698
- "attribute": "disabled",
699
- "reflect": true,
700
- "defaultValue": "false"
701
- },
702
- "error": {
703
- "type": "string",
704
- "mutable": false,
705
- "complexType": {
706
- "original": "string",
707
- "resolved": "string",
708
- "references": {}
709
- },
710
- "required": false,
711
- "optional": false,
712
- "docs": {
713
- "tags": [],
714
- "text": "Display the date picker input in error state along with an error message."
715
- },
716
- "attribute": "error",
717
- "reflect": false,
718
- "defaultValue": "\"\""
719
- },
720
- "labelHidden": {
721
- "type": "boolean",
722
- "mutable": false,
723
- "complexType": {
724
- "original": "boolean",
725
- "resolved": "boolean",
726
- "references": {}
727
- },
728
- "required": false,
729
- "optional": false,
730
- "docs": {
731
- "tags": [],
732
- "text": "Visually hide the label, but still show it to screen readers."
733
- },
734
- "attribute": "label-hidden",
735
- "reflect": false,
736
- "defaultValue": "false"
737
- },
738
- "role": {
739
- "type": "string",
740
- "mutable": false,
741
- "complexType": {
742
- "original": "string",
743
- "resolved": "string",
744
- "references": {}
528
+ },
529
+ "required": false,
530
+ "optional": false,
531
+ "docs": {
532
+ "tags": [{
533
+ "name": "default",
534
+ "text": "{ fi: \"pp.kk.vvvv\", en: \"dd.mm.yyyy\", sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\" }"
535
+ }],
536
+ "text": "Placeholder defaults."
537
+ },
538
+ "attribute": "placeholder-default",
539
+ "reflect": false,
540
+ "defaultValue": "{\n fi: \"pp.kk.vvvv\",\n en: \"dd.mm.yyyy\",\n sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\",\n }"
745
541
  },
746
- "required": false,
747
- "optional": false,
748
- "docs": {
749
- "tags": [],
750
- "text": "Defines a specific role attribute for the date picker input."
542
+ "placeholder": {
543
+ "type": "string",
544
+ "mutable": false,
545
+ "complexType": {
546
+ "original": "string",
547
+ "resolved": "string",
548
+ "references": {}
549
+ },
550
+ "required": false,
551
+ "optional": false,
552
+ "docs": {
553
+ "tags": [{
554
+ "name": "default",
555
+ "text": "{ fi: \"pp.kk.vvvv\", en: \"dd.mm.yyyy\", sv: \"dd.mm.\u00E5\u00E5\u00E5\u00E5\" }"
556
+ }],
557
+ "text": "Hint text to display before the user types into the date picker input."
558
+ },
559
+ "attribute": "placeholder",
560
+ "reflect": false,
561
+ "defaultValue": "getLocaleString(this.placeholderDefaults, this.language)"
751
562
  },
752
- "attribute": "role",
753
- "reflect": false
754
- },
755
- "accessibleActiveDescendant": {
756
- "type": "string",
757
- "mutable": false,
758
- "complexType": {
759
- "original": "string",
760
- "resolved": "string",
761
- "references": {}
563
+ "echoPlaceholder": {
564
+ "type": "boolean",
565
+ "mutable": true,
566
+ "complexType": {
567
+ "original": "boolean",
568
+ "resolved": "boolean",
569
+ "references": {}
570
+ },
571
+ "required": false,
572
+ "optional": false,
573
+ "docs": {
574
+ "tags": [],
575
+ "text": "If form input field has a placeholder text, and user types anything (causing the text to dissapear),\nsettings this to true will \"echo\" it into the caption slot - this option will be false by default for the next few versions, but will eventually be true by default (scheduled for 4.30.0)"
576
+ },
577
+ "attribute": "echo-placeholder",
578
+ "reflect": true,
579
+ "defaultValue": "false"
762
580
  },
763
- "required": false,
764
- "optional": false,
765
- "docs": {
766
- "tags": [],
767
- "text": "Indicates the id of a related component\u2019s visually focused element."
581
+ "disabled": {
582
+ "type": "boolean",
583
+ "mutable": false,
584
+ "complexType": {
585
+ "original": "boolean",
586
+ "resolved": "boolean",
587
+ "references": {}
588
+ },
589
+ "required": false,
590
+ "optional": false,
591
+ "docs": {
592
+ "tags": [],
593
+ "text": "Makes the date picker input component disabled. This prevents users from being able to\ninteract with the input, and conveys its inactive state to assistive technologies."
594
+ },
595
+ "attribute": "disabled",
596
+ "reflect": true,
597
+ "defaultValue": "false"
768
598
  },
769
- "attribute": "accessible-active-descendant",
770
- "reflect": false
771
- },
772
- "accessibleControls": {
773
- "type": "string",
774
- "mutable": false,
775
- "complexType": {
776
- "original": "string",
777
- "resolved": "string",
778
- "references": {}
599
+ "error": {
600
+ "type": "string",
601
+ "mutable": false,
602
+ "complexType": {
603
+ "original": "string",
604
+ "resolved": "string",
605
+ "references": {}
606
+ },
607
+ "required": false,
608
+ "optional": false,
609
+ "docs": {
610
+ "tags": [],
611
+ "text": "Display the date picker input in error state along with an error message."
612
+ },
613
+ "attribute": "error",
614
+ "reflect": false,
615
+ "defaultValue": "\"\""
779
616
  },
780
- "required": false,
781
- "optional": false,
782
- "docs": {
783
- "tags": [],
784
- "text": "Use this prop to add an aria-controls attribute. Use the attribute to\nindicate the id of a component controlled by this component."
617
+ "labelHidden": {
618
+ "type": "boolean",
619
+ "mutable": false,
620
+ "complexType": {
621
+ "original": "boolean",
622
+ "resolved": "boolean",
623
+ "references": {}
624
+ },
625
+ "required": false,
626
+ "optional": false,
627
+ "docs": {
628
+ "tags": [],
629
+ "text": "Visually hide the label, but still show it to screen readers."
630
+ },
631
+ "attribute": "label-hidden",
632
+ "reflect": false,
633
+ "defaultValue": "false"
785
634
  },
786
- "attribute": "accessible-controls",
787
- "reflect": false
788
- },
789
- "accessibleOwns": {
790
- "type": "string",
791
- "mutable": false,
792
- "complexType": {
793
- "original": "string",
794
- "resolved": "string",
795
- "references": {}
635
+ "role": {
636
+ "type": "string",
637
+ "mutable": false,
638
+ "complexType": {
639
+ "original": "string",
640
+ "resolved": "string",
641
+ "references": {}
642
+ },
643
+ "required": false,
644
+ "optional": false,
645
+ "docs": {
646
+ "tags": [],
647
+ "text": "Defines a specific role attribute for the date picker input."
648
+ },
649
+ "attribute": "role",
650
+ "reflect": false
796
651
  },
797
- "required": false,
798
- "optional": false,
799
- "docs": {
800
- "tags": [],
801
- "text": "Indicates the id of a component owned by the input."
652
+ "accessibleActiveDescendant": {
653
+ "type": "string",
654
+ "mutable": false,
655
+ "complexType": {
656
+ "original": "string",
657
+ "resolved": "string",
658
+ "references": {}
659
+ },
660
+ "required": false,
661
+ "optional": false,
662
+ "docs": {
663
+ "tags": [],
664
+ "text": "Indicates the id of a related component\u2019s visually focused element."
665
+ },
666
+ "attribute": "accessible-active-descendant",
667
+ "reflect": false
802
668
  },
803
- "attribute": "accessible-owns",
804
- "reflect": false
805
- },
806
- "accessibleDescribedBy": {
807
- "type": "string",
808
- "mutable": false,
809
- "complexType": {
810
- "original": "string",
811
- "resolved": "string",
812
- "references": {}
669
+ "accessibleControls": {
670
+ "type": "string",
671
+ "mutable": false,
672
+ "complexType": {
673
+ "original": "string",
674
+ "resolved": "string",
675
+ "references": {}
676
+ },
677
+ "required": false,
678
+ "optional": false,
679
+ "docs": {
680
+ "tags": [],
681
+ "text": "Use this prop to add an aria-controls attribute. Use the attribute to\nindicate the id of a component controlled by this component."
682
+ },
683
+ "attribute": "accessible-controls",
684
+ "reflect": false
813
685
  },
814
- "required": false,
815
- "optional": false,
816
- "docs": {
817
- "tags": [],
818
- "text": "Indicates the id of a component that describes the input."
686
+ "accessibleOwns": {
687
+ "type": "string",
688
+ "mutable": false,
689
+ "complexType": {
690
+ "original": "string",
691
+ "resolved": "string",
692
+ "references": {}
693
+ },
694
+ "required": false,
695
+ "optional": false,
696
+ "docs": {
697
+ "tags": [],
698
+ "text": "Indicates the id of a component owned by the input."
699
+ },
700
+ "attribute": "accessible-owns",
701
+ "reflect": false
819
702
  },
820
- "attribute": "accessible-described-by",
821
- "reflect": false
822
- },
823
- "required": {
824
- "type": "boolean",
825
- "mutable": false,
826
- "complexType": {
827
- "original": "boolean",
828
- "resolved": "boolean",
829
- "references": {}
703
+ "accessibleDescribedBy": {
704
+ "type": "string",
705
+ "mutable": false,
706
+ "complexType": {
707
+ "original": "string",
708
+ "resolved": "string",
709
+ "references": {}
710
+ },
711
+ "required": false,
712
+ "optional": false,
713
+ "docs": {
714
+ "tags": [],
715
+ "text": "Indicates the id of a component that describes the input."
716
+ },
717
+ "attribute": "accessible-described-by",
718
+ "reflect": false
830
719
  },
831
- "required": false,
832
- "optional": false,
833
- "docs": {
834
- "tags": [],
835
- "text": "Set whether the input is required or not. Please note that this is necessary for\naccessible inputs when the user is required to fill them. When using this property\nyou need to also set \u201Cnovalidate\u201D attribute to your form element to prevent\nbrowser from displaying its own validation errors."
720
+ "required": {
721
+ "type": "boolean",
722
+ "mutable": false,
723
+ "complexType": {
724
+ "original": "boolean",
725
+ "resolved": "boolean",
726
+ "references": {}
727
+ },
728
+ "required": false,
729
+ "optional": false,
730
+ "docs": {
731
+ "tags": [],
732
+ "text": "Set whether the input is required or not. Please note that this is necessary for\naccessible inputs when the user is required to fill them. When using this property\nyou need to also set \u201Cnovalidate\u201D attribute to your form element to prevent\nbrowser from displaying its own validation errors."
733
+ },
734
+ "attribute": "required",
735
+ "reflect": false,
736
+ "defaultValue": "false"
836
737
  },
837
- "attribute": "required",
838
- "reflect": false,
839
- "defaultValue": "false"
840
- },
841
- "direction": {
842
- "type": "string",
843
- "mutable": false,
844
- "complexType": {
845
- "original": "DuetDatePickerDirection",
846
- "resolved": "\"left\" | \"right\"",
847
- "references": {
848
- "DuetDatePickerDirection": {
849
- "location": "local"
738
+ "direction": {
739
+ "type": "string",
740
+ "mutable": false,
741
+ "complexType": {
742
+ "original": "DuetDatePickerDirection",
743
+ "resolved": "\"left\" | \"right\"",
744
+ "references": {
745
+ "DuetDatePickerDirection": {
746
+ "location": "local"
747
+ }
850
748
  }
851
- }
852
- },
853
- "required": false,
854
- "optional": false,
855
- "docs": {
856
- "tags": [],
857
- "text": "Forces the opening direction of the calendar modal to be always left or right.\nThis setting can be useful when the input is smaller than the opening date picker\nwould be as by default the picker always opens towards right."
858
- },
859
- "attribute": "direction",
860
- "reflect": false,
861
- "defaultValue": "\"right\""
862
- },
863
- "tooltip": {
864
- "type": "string",
865
- "mutable": false,
866
- "complexType": {
867
- "original": "string",
868
- "resolved": "string",
869
- "references": {}
749
+ },
750
+ "required": false,
751
+ "optional": false,
752
+ "docs": {
753
+ "tags": [],
754
+ "text": "Forces the opening direction of the calendar modal to be always left or right.\nThis setting can be useful when the input is smaller than the opening date picker\nwould be as by default the picker always opens towards right."
755
+ },
756
+ "attribute": "direction",
757
+ "reflect": false,
758
+ "defaultValue": "\"right\""
870
759
  },
871
- "required": false,
872
- "optional": false,
873
- "docs": {
874
- "tags": [],
875
- "text": "Tooltip to display next to the label of the date picker input."
760
+ "tooltip": {
761
+ "type": "string",
762
+ "mutable": false,
763
+ "complexType": {
764
+ "original": "string",
765
+ "resolved": "string",
766
+ "references": {}
767
+ },
768
+ "required": false,
769
+ "optional": false,
770
+ "docs": {
771
+ "tags": [],
772
+ "text": "Tooltip to display next to the label of the date picker input."
773
+ },
774
+ "attribute": "tooltip",
775
+ "reflect": false,
776
+ "defaultValue": "\"\""
876
777
  },
877
- "attribute": "tooltip",
878
- "reflect": false,
879
- "defaultValue": "\"\""
880
- },
881
- "tooltipDirection": {
882
- "type": "string",
883
- "mutable": false,
884
- "complexType": {
885
- "original": "DuetTooltipDirection",
886
- "resolved": "\"auto\" | \"left\" | \"right\"",
887
- "references": {
888
- "DuetTooltipDirection": {
889
- "location": "import",
890
- "path": "../../common-types"
778
+ "tooltipDirection": {
779
+ "type": "string",
780
+ "mutable": false,
781
+ "complexType": {
782
+ "original": "DuetTooltipDirection",
783
+ "resolved": "\"auto\" | \"left\" | \"right\"",
784
+ "references": {
785
+ "DuetTooltipDirection": {
786
+ "location": "import",
787
+ "path": "../../common-types"
788
+ }
891
789
  }
892
- }
893
- },
894
- "required": false,
895
- "optional": false,
896
- "docs": {
897
- "tags": [],
898
- "text": "With direction setting you can force the tooltip to always open towards left\nor right instead of automatically determining the direction."
899
- },
900
- "attribute": "tooltip-direction",
901
- "reflect": false,
902
- "defaultValue": "\"auto\""
903
- },
904
- "value": {
905
- "type": "string",
906
- "mutable": true,
907
- "complexType": {
908
- "original": "string",
909
- "resolved": "string",
910
- "references": {}
911
- },
912
- "required": false,
913
- "optional": false,
914
- "docs": {
915
- "tags": [],
916
- "text": "Date value. Must be in IS0-8601 format: YYYY-MM-DD"
917
- },
918
- "attribute": "value",
919
- "reflect": true,
920
- "defaultValue": "\"\""
921
- },
922
- "min": {
923
- "type": "string",
924
- "mutable": false,
925
- "complexType": {
926
- "original": "string",
927
- "resolved": "string",
928
- "references": {}
929
- },
930
- "required": false,
931
- "optional": false,
932
- "docs": {
933
- "tags": [],
934
- "text": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property."
790
+ },
791
+ "required": false,
792
+ "optional": false,
793
+ "docs": {
794
+ "tags": [],
795
+ "text": "With direction setting you can force the tooltip to always open towards left\nor right instead of automatically determining the direction."
796
+ },
797
+ "attribute": "tooltip-direction",
798
+ "reflect": false,
799
+ "defaultValue": "\"auto\""
935
800
  },
936
- "attribute": "min",
937
- "reflect": false,
938
- "defaultValue": "\"\""
939
- },
940
- "max": {
941
- "type": "string",
942
- "mutable": false,
943
- "complexType": {
944
- "original": "string",
945
- "resolved": "string",
946
- "references": {}
801
+ "value": {
802
+ "type": "string",
803
+ "mutable": true,
804
+ "complexType": {
805
+ "original": "string",
806
+ "resolved": "string",
807
+ "references": {}
808
+ },
809
+ "required": false,
810
+ "optional": false,
811
+ "docs": {
812
+ "tags": [],
813
+ "text": "Date value. Must be in IS0-8601 format: YYYY-MM-DD"
814
+ },
815
+ "attribute": "value",
816
+ "reflect": true,
817
+ "defaultValue": "\"\""
947
818
  },
948
- "required": false,
949
- "optional": false,
950
- "docs": {
951
- "tags": [],
952
- "text": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property."
819
+ "min": {
820
+ "type": "string",
821
+ "mutable": false,
822
+ "complexType": {
823
+ "original": "string",
824
+ "resolved": "string",
825
+ "references": {}
826
+ },
827
+ "required": false,
828
+ "optional": false,
829
+ "docs": {
830
+ "tags": [],
831
+ "text": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property."
832
+ },
833
+ "attribute": "min",
834
+ "reflect": false,
835
+ "defaultValue": "\"\""
953
836
  },
954
- "attribute": "max",
955
- "reflect": false,
956
- "defaultValue": "\"\""
957
- },
958
- "incrementYears": {
959
- "type": "number",
960
- "mutable": false,
961
- "complexType": {
962
- "original": "number",
963
- "resolved": "number",
964
- "references": {}
837
+ "max": {
838
+ "type": "string",
839
+ "mutable": false,
840
+ "complexType": {
841
+ "original": "string",
842
+ "resolved": "string",
843
+ "references": {}
844
+ },
845
+ "required": false,
846
+ "optional": false,
847
+ "docs": {
848
+ "tags": [],
849
+ "text": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property."
850
+ },
851
+ "attribute": "max",
852
+ "reflect": false,
853
+ "defaultValue": "\"\""
965
854
  },
966
- "required": false,
967
- "optional": false,
968
- "docs": {
969
- "tags": [],
970
- "text": "Increment to add to years, defaults to 10 for simplicity, if you need a larger selectionspace you can set it to 100"
855
+ "incrementYears": {
856
+ "type": "number",
857
+ "mutable": false,
858
+ "complexType": {
859
+ "original": "number",
860
+ "resolved": "number",
861
+ "references": {}
862
+ },
863
+ "required": false,
864
+ "optional": false,
865
+ "docs": {
866
+ "tags": [],
867
+ "text": "Increment to add to years, defaults to 10 for simplicity, if you need a larger selectionspace you can set it to 100"
868
+ },
869
+ "attribute": "increment",
870
+ "reflect": false,
871
+ "defaultValue": "10"
971
872
  },
972
- "attribute": "increment",
973
- "reflect": false,
974
- "defaultValue": "10"
975
- },
976
- "validity": {
977
- "type": "unknown",
978
- "mutable": true,
979
- "complexType": {
980
- "original": "ValidityState",
981
- "resolved": "ValidityState",
982
- "references": {
983
- "ValidityState": {
984
- "location": "global"
873
+ "validity": {
874
+ "type": "unknown",
875
+ "mutable": true,
876
+ "complexType": {
877
+ "original": "ValidityState",
878
+ "resolved": "ValidityState",
879
+ "references": {
880
+ "ValidityState": {
881
+ "location": "global"
882
+ }
985
883
  }
884
+ },
885
+ "required": false,
886
+ "optional": false,
887
+ "docs": {
888
+ "tags": [],
889
+ "text": "This offers information relating to the current validity of the component.\nIt follow as closely as possible the behaviour of the native date input.\nUseful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.\n**This property should be treated as read only**."
986
890
  }
987
- },
988
- "required": false,
989
- "optional": false,
990
- "docs": {
991
- "tags": [],
992
- "text": "This offers information relating to the current validity of the component.\nIt follow as closely as possible the behaviour of the native date input.\nUseful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.\n**This property should be treated as read only**."
993
891
  }
994
- }
995
- }; }
996
- static get states() { return {
997
- "open": {},
998
- "focusedDay": {},
999
- "inputValue": {}
1000
- }; }
1001
- static get events() { return [{
1002
- "method": "duetChange",
1003
- "name": "duetChange",
1004
- "bubbles": true,
1005
- "cancelable": true,
1006
- "composed": true,
1007
- "docs": {
1008
- "tags": [],
1009
- "text": "Event emitted when a date is selected."
1010
- },
1011
- "complexType": {
1012
- "original": "DuetDatePickerChangeEvent",
1013
- "resolved": "{ component: \"duet-date-picker\"; valueAsDate: Date; value: string; }",
1014
- "references": {
1015
- "DuetDatePickerChangeEvent": {
1016
- "location": "local"
892
+ };
893
+ }
894
+ static get states() {
895
+ return {
896
+ "open": {},
897
+ "focusedDay": {},
898
+ "inputValue": {}
899
+ };
900
+ }
901
+ static get events() {
902
+ return [{
903
+ "method": "duetChange",
904
+ "name": "duetChange",
905
+ "bubbles": true,
906
+ "cancelable": true,
907
+ "composed": true,
908
+ "docs": {
909
+ "tags": [],
910
+ "text": "Event emitted when a date is selected."
911
+ },
912
+ "complexType": {
913
+ "original": "DuetDatePickerChangeEvent",
914
+ "resolved": "{ component: \"duet-date-picker\"; valueAsDate: Date; value: string; }",
915
+ "references": {
916
+ "DuetDatePickerChangeEvent": {
917
+ "location": "local"
918
+ }
1017
919
  }
1018
920
  }
1019
- }
1020
- }, {
1021
- "method": "duetBlur",
1022
- "name": "duetBlur",
1023
- "bubbles": true,
1024
- "cancelable": true,
1025
- "composed": true,
1026
- "docs": {
1027
- "tags": [],
1028
- "text": "Event emitted the date picker input is blurred."
1029
- },
1030
- "complexType": {
1031
- "original": "DuetDatePickerFocusEvent",
1032
- "resolved": "{ component: \"duet-date-picker\"; }",
1033
- "references": {
1034
- "DuetDatePickerFocusEvent": {
1035
- "location": "local"
921
+ }, {
922
+ "method": "duetBlur",
923
+ "name": "duetBlur",
924
+ "bubbles": true,
925
+ "cancelable": true,
926
+ "composed": true,
927
+ "docs": {
928
+ "tags": [],
929
+ "text": "Event emitted the date picker input is blurred."
930
+ },
931
+ "complexType": {
932
+ "original": "DuetDatePickerFocusEvent",
933
+ "resolved": "{ component: \"duet-date-picker\"; }",
934
+ "references": {
935
+ "DuetDatePickerFocusEvent": {
936
+ "location": "local"
937
+ }
1036
938
  }
1037
939
  }
1038
- }
1039
- }, {
1040
- "method": "duetFocus",
1041
- "name": "duetFocus",
1042
- "bubbles": true,
1043
- "cancelable": true,
1044
- "composed": true,
1045
- "docs": {
1046
- "tags": [],
1047
- "text": "Event emitted the date picker input is focused."
1048
- },
1049
- "complexType": {
1050
- "original": "DuetDatePickerFocusEvent",
1051
- "resolved": "{ component: \"duet-date-picker\"; }",
1052
- "references": {
1053
- "DuetDatePickerFocusEvent": {
1054
- "location": "local"
940
+ }, {
941
+ "method": "duetFocus",
942
+ "name": "duetFocus",
943
+ "bubbles": true,
944
+ "cancelable": true,
945
+ "composed": true,
946
+ "docs": {
947
+ "tags": [],
948
+ "text": "Event emitted the date picker input is focused."
949
+ },
950
+ "complexType": {
951
+ "original": "DuetDatePickerFocusEvent",
952
+ "resolved": "{ component: \"duet-date-picker\"; }",
953
+ "references": {
954
+ "DuetDatePickerFocusEvent": {
955
+ "location": "local"
956
+ }
1055
957
  }
1056
958
  }
1057
- }
1058
- }]; }
1059
- static get methods() { return {
1060
- "setFocus": {
1061
- "complexType": {
1062
- "signature": "(options?: FocusOptions) => Promise<void>",
1063
- "parameters": [{
1064
- "tags": [],
1065
- "text": ""
1066
- }],
1067
- "references": {
1068
- "Promise": {
1069
- "location": "global"
959
+ }];
960
+ }
961
+ static get methods() {
962
+ return {
963
+ "setFocus": {
964
+ "complexType": {
965
+ "signature": "(options?: FocusOptions) => Promise<void>",
966
+ "parameters": [{
967
+ "tags": [],
968
+ "text": ""
969
+ }],
970
+ "references": {
971
+ "Promise": {
972
+ "location": "global"
973
+ },
974
+ "FocusOptions": {
975
+ "location": "global"
976
+ }
1070
977
  },
1071
- "FocusOptions": {
1072
- "location": "global"
1073
- }
978
+ "return": "Promise<void>"
1074
979
  },
1075
- "return": "Promise<void>"
980
+ "docs": {
981
+ "text": "Sets focus on the date picker's input. Use this method instead of the global `focus()`.",
982
+ "tags": []
983
+ }
1076
984
  },
1077
- "docs": {
1078
- "text": "Sets focus on the date picker's input. Use this method instead of the global `focus()`.",
1079
- "tags": []
1080
- }
1081
- },
1082
- "show": {
1083
- "complexType": {
1084
- "signature": "() => Promise<void>",
1085
- "parameters": [],
1086
- "references": {
1087
- "Promise": {
1088
- "location": "global"
1089
- }
985
+ "show": {
986
+ "complexType": {
987
+ "signature": "() => Promise<void>",
988
+ "parameters": [],
989
+ "references": {
990
+ "Promise": {
991
+ "location": "global"
992
+ }
993
+ },
994
+ "return": "Promise<void>"
1090
995
  },
1091
- "return": "Promise<void>"
996
+ "docs": {
997
+ "text": "Show the calendar modal, moving focus to the calendar inside.",
998
+ "tags": []
999
+ }
1092
1000
  },
1093
- "docs": {
1094
- "text": "Show the calendar modal, moving focus to the calendar inside.",
1095
- "tags": []
1096
- }
1097
- },
1098
- "hide": {
1099
- "complexType": {
1100
- "signature": "(moveFocusToButton?: boolean) => Promise<void>",
1101
- "parameters": [{
1102
- "tags": [],
1103
- "text": ""
1104
- }],
1105
- "references": {
1106
- "Promise": {
1107
- "location": "global"
1108
- }
1001
+ "hide": {
1002
+ "complexType": {
1003
+ "signature": "(moveFocusToButton?: boolean) => Promise<void>",
1004
+ "parameters": [{
1005
+ "tags": [],
1006
+ "text": ""
1007
+ }],
1008
+ "references": {
1009
+ "Promise": {
1010
+ "location": "global"
1011
+ }
1012
+ },
1013
+ "return": "Promise<void>"
1109
1014
  },
1110
- "return": "Promise<void>"
1111
- },
1112
- "docs": {
1113
- "text": "Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus\nreturning to the date picker's button. Default is true.",
1114
- "tags": []
1015
+ "docs": {
1016
+ "text": "Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus\nreturning to the date picker's button. Default is true.",
1017
+ "tags": []
1018
+ }
1115
1019
  }
1116
- }
1117
- }; }
1020
+ };
1021
+ }
1118
1022
  static get elementRef() { return "element"; }
1119
- static get watchers() { return [{
1120
- "propName": "min",
1121
- "methodName": "updateValidity"
1122
- }, {
1123
- "propName": "max",
1124
- "methodName": "updateValidity"
1125
- }, {
1126
- "propName": "value",
1127
- "methodName": "updateValidity"
1128
- }, {
1129
- "propName": "required",
1130
- "methodName": "updateValidity"
1131
- }, {
1132
- "propName": "value",
1133
- "methodName": "updateInternalValue"
1134
- }]; }
1135
- static get listeners() { return [{
1136
- "name": "click",
1137
- "method": "handleDocumentClick",
1138
- "target": "document",
1139
- "capture": false,
1140
- "passive": false
1141
- }]; }
1023
+ static get watchers() {
1024
+ return [{
1025
+ "propName": "min",
1026
+ "methodName": "updateValidity"
1027
+ }, {
1028
+ "propName": "max",
1029
+ "methodName": "updateValidity"
1030
+ }, {
1031
+ "propName": "value",
1032
+ "methodName": "updateValidity"
1033
+ }, {
1034
+ "propName": "required",
1035
+ "methodName": "updateValidity"
1036
+ }, {
1037
+ "propName": "value",
1038
+ "methodName": "updateInternalValue"
1039
+ }];
1040
+ }
1041
+ static get listeners() {
1042
+ return [{
1043
+ "name": "click",
1044
+ "method": "handleDocumentClick",
1045
+ "target": "document",
1046
+ "capture": false,
1047
+ "passive": false
1048
+ }];
1049
+ }
1142
1050
  }