@duetds/components 6.2.3 → 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 -4173
  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 -78
  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-53db3623.js → focus-utils-18ea61a6.js} +1 -1
  63. package/lib/cjs/{index-1420909f.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 -402
  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-7fca7185.js → p-0cc49790.js} +3 -25
  235. package/lib/dist-custom-elements/{p-c978c011.js → p-0ef384ca.js} +7 -30
  236. package/lib/dist-custom-elements/{p-d339505b.js → p-10feffd3.js} +1 -1
  237. package/lib/dist-custom-elements/{p-e68fe06d.js → p-14a163e6.js} +475 -272
  238. package/lib/dist-custom-elements/{p-f22c141f.js → p-25d4fffb.js} +1 -11
  239. package/lib/dist-custom-elements/{p-77e39f63.js → p-354f8a94.js} +3 -16
  240. package/lib/dist-custom-elements/{p-428f8fe3.js → p-37dd7faf.js} +2 -22
  241. package/lib/dist-custom-elements/{p-fff89409.js → p-4115062c.js} +2 -25
  242. package/lib/dist-custom-elements/{p-2481ab53.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-f7d6c7c8.js → p-65ee8608.js} +8 -14
  246. package/lib/dist-custom-elements/{p-c2d5ef52.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-066e5253.js → p-7958dc0c.js} +30 -70
  249. package/lib/dist-custom-elements/{p-00d8bf80.js → p-82fec063.js} +2 -21
  250. package/lib/dist-custom-elements/{p-d01deae4.js → p-88d217a7.js} +2 -11
  251. package/lib/dist-custom-elements/{p-2320f4a6.js → p-9245c901.js} +2 -10
  252. package/lib/dist-custom-elements/{p-378842c8.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-d29accfb.js → p-9fef7d37.js} +21 -49
  255. package/lib/dist-custom-elements/{p-63ec7354.js → p-a1212d29.js} +1 -1
  256. package/lib/dist-custom-elements/{p-79d893c1.js → p-ad7292b3.js} +5 -26
  257. package/lib/dist-custom-elements/{p-37b3f58a.js → p-af2e8de4.js} +14 -46
  258. package/lib/dist-custom-elements/{p-a82f5ca7.js → p-b5ea480c.js} +9 -30
  259. package/lib/dist-custom-elements/{p-d84c65e4.js → p-bd64a84d.js} +6 -17
  260. package/lib/dist-custom-elements/{p-8184db82.js → p-cab1e8a0.js} +20 -71
  261. package/lib/dist-custom-elements/{p-fbcece41.js → p-d2402b45.js} +27 -80
  262. package/lib/dist-custom-elements/{p-d6e7df61.js → p-d34c42bc.js} +1 -10
  263. package/lib/dist-custom-elements/{p-204da43b.js → p-d628dd87.js} +17 -80
  264. package/lib/dist-custom-elements/{p-db21a6ca.js → p-db135ec9.js} +1 -13
  265. package/lib/{esm/shadow-css-501eda9a.js → dist-custom-elements/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-321dbb74.js → p-eb6fc032.js} +33 -109
  268. package/lib/dist-custom-elements/{p-d80f3be0.js → p-f7c0e5bf.js} +1 -23
  269. package/lib/dist-custom-elements/{p-bd533ea2.js → p-fddad5df.js} +5 -36
  270. package/lib/dist-custom-elements/{p-c1943ce9.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-8666ba38.system.entry.js → p-00ee31e2.system.entry.js} +1 -1
  274. package/lib/duet/{p-05a8d445.entry.js → p-0169eb09.entry.js} +1 -1
  275. package/lib/duet/{p-4e3d3e94.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-77bdfe6e.system.entry.js → p-028da443.system.entry.js} +2 -2
  278. package/lib/duet/{p-0d0beb65.system.entry.js → p-0426e86f.system.entry.js} +1 -1
  279. package/lib/duet/{p-c7f47570.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-2a493a0e.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-c6df2736.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-f9d7e274.entry.js → p-0f8e4b6a.entry.js} +1 -1
  288. package/lib/duet/p-0fc0e90e.entry.js +4 -0
  289. package/lib/duet/{p-8d88fa17.system.entry.js → p-10b1ea3e.system.entry.js} +2 -2
  290. package/lib/duet/{p-651dcf55.entry.js → p-1184c37e.entry.js} +1 -1
  291. package/lib/duet/{p-9a47beb4.entry.js → p-11c58a6b.entry.js} +1 -1
  292. package/lib/duet/p-14cca806.entry.js +4 -0
  293. package/lib/duet/{p-199f6d43.system.entry.js → p-14e93ad6.system.entry.js} +1 -1
  294. package/lib/duet/{p-d90afed1.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-6db3d0a6.entry.js → p-1833941e.entry.js} +1 -1
  297. package/lib/duet/{p-2b8921d9.system.entry.js → p-1a45eddb.system.entry.js} +1 -1
  298. package/lib/duet/{p-2fc85d76.entry.js → p-1b63c3bf.entry.js} +1 -1
  299. package/lib/duet/p-1e442975.entry.js +4 -0
  300. package/lib/duet/{p-69a5e4b8.entry.js → p-27a1c897.entry.js} +1 -1
  301. package/lib/duet/{p-f8469405.entry.js → p-2c5b761d.entry.js} +1 -1
  302. package/lib/duet/{p-70b6f442.entry.js → p-2cbe5fe4.entry.js} +1 -1
  303. package/lib/duet/{p-ed9b4b98.system.entry.js → p-2f0f8b9e.system.entry.js} +2 -2
  304. package/lib/duet/{p-28bd21cc.system.entry.js → p-326d3440.system.entry.js} +1 -1
  305. package/lib/duet/{p-e260059f.system.entry.js → p-394efc25.system.entry.js} +1 -1
  306. package/lib/duet/{p-8cc1adec.system.entry.js → p-400f8e9d.system.entry.js} +2 -2
  307. package/lib/duet/{p-87f97244.system.entry.js → p-43750071.system.entry.js} +1 -1
  308. package/lib/duet/{p-b0c1475a.entry.js → p-45b0469f.entry.js} +1 -1
  309. package/lib/duet/p-4644616b.entry.js +4 -0
  310. package/lib/duet/{p-4cbce73e.entry.js → p-4c96e54d.entry.js} +1 -1
  311. package/lib/duet/{p-bd09268f.system.entry.js → p-4d1a5b9e.system.entry.js} +1 -1
  312. package/lib/duet/{p-3dbc8279.system.entry.js → p-4e2db855.system.entry.js} +1 -1
  313. package/lib/duet/{p-bfe342b1.system.entry.js → p-5214682e.system.entry.js} +1 -1
  314. package/lib/duet/{p-fb35b871.system.entry.js → p-575e4d53.system.entry.js} +1 -1
  315. package/lib/duet/{p-08366ae7.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-865a8528.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-b8959b6f.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-89f143a3.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-37cb3159.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-325e4d06.system.entry.js → p-758c0528.system.entry.js} +2 -2
  329. package/lib/duet/{p-63b28fee.system.entry.js → p-79c8d35c.system.entry.js} +1 -1
  330. package/lib/duet/{p-1e8f0b15.entry.js → p-7ccf8ef9.entry.js} +1 -1
  331. package/lib/duet/{p-f71d7d3b.system.entry.js → p-7e67fedc.system.entry.js} +1 -1
  332. package/lib/duet/{p-f60a660e.system.entry.js → p-7fcbf80a.system.entry.js} +1 -1
  333. package/lib/duet/{p-d509251c.entry.js → p-81313736.entry.js} +1 -1
  334. package/lib/duet/{p-2dde5eda.entry.js → p-81e66ef1.entry.js} +1 -1
  335. package/lib/duet/{p-70473bcc.js → p-8512b463.js} +1 -1
  336. package/lib/duet/p-855f9e2a.system.entry.js +4 -0
  337. package/lib/duet/{p-2c9b4b54.entry.js → p-8681c6e0.entry.js} +1 -1
  338. package/lib/duet/p-89bf7be7.entry.js +4 -0
  339. package/lib/duet/{p-feec6a21.system.entry.js → p-8a47d599.system.entry.js} +1 -1
  340. package/lib/duet/{p-e0733d78.entry.js → p-8f6cf5d1.entry.js} +1 -1
  341. package/lib/duet/{p-01e4ad70.system.entry.js → p-90ea4509.system.entry.js} +2 -2
  342. package/lib/duet/p-9101f9ed.entry.js +4 -0
  343. package/lib/duet/{p-15f1db88.system.entry.js → p-914c3280.system.entry.js} +1 -1
  344. package/lib/duet/{p-c400d01c.system.entry.js → p-948d492d.system.entry.js} +2 -2
  345. package/lib/duet/{p-17210d14.system.entry.js → p-9a14ca19.system.entry.js} +1 -1
  346. package/lib/duet/{p-cfa9d7df.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-a0c38881.entry.js → p-ac4c233b.entry.js} +1 -1
  349. package/lib/duet/p-acea52f5.entry.js +4 -0
  350. package/lib/duet/{p-0840d514.system.entry.js → p-b180a4e2.system.entry.js} +1 -1
  351. package/lib/duet/{p-737f77f5.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-0c9c6b33.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-162a19c4.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-0de9cdff.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-dd952c1a.system.entry.js → p-c3a0505e.system.entry.js} +1 -1
  363. package/lib/duet/{p-ea23276d.entry.js → p-c41bfab0.entry.js} +1 -1
  364. package/lib/duet/{p-08118dc1.entry.js → p-c4932f05.entry.js} +1 -1
  365. package/lib/duet/{p-f97c3b7c.entry.js → p-c5e54be9.entry.js} +1 -1
  366. package/lib/duet/p-cf11b05b.entry.js +4 -0
  367. package/lib/duet/{p-4c6f9fb6.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-8aea5243.entry.js → p-d2ef832d.entry.js} +1 -1
  370. package/lib/duet/{p-d31ee0d6.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-06799688.system.entry.js → p-daa20c36.system.entry.js} +1 -1
  375. package/lib/duet/{p-e3e94989.entry.js → p-dbddb719.entry.js} +1 -1
  376. package/lib/duet/{p-abb8e55c.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-b3e9368c.system.entry.js → p-dd676f12.system.entry.js} +1 -1
  379. package/lib/duet/{p-cc2b0098.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-185aae73.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-14ff22af.system.entry.js → p-ea8e5649.system.entry.js} +2 -2
  384. package/lib/duet/{p-5b11d0bb.system.entry.js → p-ebc09697.system.entry.js} +1 -1
  385. package/lib/duet/{p-97dd0fb2.entry.js → p-ec635593.entry.js} +1 -1
  386. package/lib/duet/p-ef3f4213.entry.js +4 -0
  387. package/lib/duet/{p-66c5896b.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-d440608a.system.entry.js → p-f2bcb922.system.entry.js} +1 -1
  390. package/lib/duet/{p-d31cb05e.entry.js → p-f3d0d889.entry.js} +1 -1
  391. package/lib/duet/{p-9da8a731.system.entry.js → p-f6712ec8.system.entry.js} +1 -1
  392. package/lib/duet/{p-6cc95db3.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-6aa6ec86.system.js → p-f9133dc5.system.js} +1 -1
  395. package/lib/duet/{p-532dff7f.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 -78
  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-9787b47f.js → focus-utils-abaea1e6.js} +1 -1
  456. package/lib/esm/{index-8469ee1a.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/{dist-custom-elements/p-d4c234ed.js → esm/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 +1 -1
  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 +1 -1
  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-abaea1e6.js +4 -0
  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 -11
  527. package/lib/duet/p-096f20dc.js +0 -5
  528. package/lib/duet/p-186f5c04.entry.js +0 -4
  529. package/lib/duet/p-1a48148d.entry.js +0 -4
  530. package/lib/duet/p-1a6a0dc6.entry.js +0 -4
  531. package/lib/duet/p-1f224365.entry.js +0 -4
  532. package/lib/duet/p-2b2e62d6.entry.js +0 -4
  533. package/lib/duet/p-2e356385.entry.js +0 -4
  534. package/lib/duet/p-400766d6.entry.js +0 -4
  535. package/lib/duet/p-410af698.entry.js +0 -4
  536. package/lib/duet/p-487f2417.system.entry.js +0 -4
  537. package/lib/duet/p-5f15acee.system.entry.js +0 -4
  538. package/lib/duet/p-6d7416bc.entry.js +0 -4
  539. package/lib/duet/p-71f7a269.entry.js +0 -4
  540. package/lib/duet/p-74c4587a.system.entry.js +0 -4
  541. package/lib/duet/p-779adc11.system.entry.js +0 -4
  542. package/lib/duet/p-7b1ed7b7.entry.js +0 -4
  543. package/lib/duet/p-7c527761.entry.js +0 -4
  544. package/lib/duet/p-82ed2eea.entry.js +0 -4
  545. package/lib/duet/p-8b328e9d.entry.js +0 -4
  546. package/lib/duet/p-90f9c2b6.entry.js +0 -4
  547. package/lib/duet/p-92c0d1a1.entry.js +0 -4
  548. package/lib/duet/p-9c8cd6d0.system.entry.js +0 -4
  549. package/lib/duet/p-9db96010.entry.js +0 -4
  550. package/lib/duet/p-a1191c7c.entry.js +0 -4
  551. package/lib/duet/p-a27830b0.entry.js +0 -4
  552. package/lib/duet/p-b0d7a24e.entry.js +0 -4
  553. package/lib/duet/p-b3237285.entry.js +0 -4
  554. package/lib/duet/p-bc2b6d90.entry.js +0 -4
  555. package/lib/duet/p-bd1ca1bf.entry.js +0 -4
  556. package/lib/duet/p-c634ea77.entry.js +0 -4
  557. package/lib/duet/p-c686bbb6.entry.js +0 -4
  558. package/lib/duet/p-cfee81ae.system.js +0 -5
  559. package/lib/duet/p-d1eeb040.entry.js +0 -4
  560. package/lib/duet/p-d35bb3c7.entry.js +0 -4
  561. package/lib/duet/p-e6162450.entry.js +0 -4
  562. package/lib/duet/p-ed0e37f0.entry.js +0 -4
  563. package/lib/duet/p-f5863365.entry.js +0 -4
  564. package/lib/duet/p-fcb2e0dc.entry.js +0 -4
  565. package/lib/esm-es5/focus-utils-9787b47f.js +0 -4
  566. package/lib/esm-es5/index-8469ee1a.js +0 -5
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import addIcon from "@duetds/icons/lib/assets/action-add";
5
5
  import subtractIcon from "@duetds/icons/lib/assets/action-subtract";
6
- import { Component, Element, Event, h, Host, Method, Prop, State } from "@stencil/core";
6
+ import { h, Host } from "@stencil/core";
7
7
  import { inheritGlobalTheme } from "../../common";
8
8
  import { createID } from "../../utils/create-id";
9
9
  import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isBackspaceKey, } from "../../utils/keyboard-utils";
@@ -12,147 +12,6 @@ import { clamp, roundTo, SafeParseFloat } from "../../utils/math.utils";
12
12
  export class DuetNumberInput {
13
13
  constructor() {
14
14
  this.inputId = createID("DuetInput");
15
- /**
16
- * The currently active language. This setting changes the accessible labels to match the
17
- * chosen language.
18
- * @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
19
- * @default "fi"
20
- */
21
- this.language = getLanguage();
22
- /**
23
- * Locale used to format the entered value.
24
- */
25
- this.locale = getLocale(this.language).locale;
26
- /**
27
- * Unit for the number input.
28
- */
29
- this.unit = getLocale(this.language).money;
30
- /**
31
- * Details of the component
32
- */
33
- this.accessibleDetails = undefined;
34
- /**
35
- * String of id's that indicate alternative labels elements
36
- */
37
- this.accessibleLabelledBy = undefined;
38
- /**
39
- * Aria description the button
40
- */
41
- this.accessibleDescription = undefined;
42
- /**
43
- * Defaults for accessibleLive
44
- * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
45
- */
46
- this.accessibleLiveDefaults = {
47
- fi: "{current} euroa valittuna",
48
- en: "{current} euros selected",
49
- sv: "{current} euro valt",
50
- };
51
- /**
52
- * Format of message used to announce current amount when switching between amounts.
53
- * The string {current} is replaced with the current amount.
54
- * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
55
- */
56
- this.accessibleLive = getLocaleString(this.accessibleLiveDefaults, this.language);
57
- /**
58
- * Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
59
- */
60
- this.accessibleLiveEnabled = true;
61
- /**
62
- * Defaults for accessibleAdd
63
- * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
64
- */
65
- this.accessibleAddDefaults = {
66
- fi: "Lisää summaan",
67
- en: "Add to the amount",
68
- sv: "Lägg till beloppet",
69
- };
70
- /**
71
- * Accessible label for the add button that is read for screen reader users.
72
- * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
73
- */
74
- this.accessibleAdd = getLocaleString(this.accessibleAddDefaults, this.language);
75
- /**
76
- * Defaults for accessibleSubtract
77
- * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
78
- */
79
- this.accessibleSubtractDefaults = {
80
- fi: "Vähennä summasta",
81
- en: "Subtract from the amount",
82
- sv: "Dra från beloppet",
83
- };
84
- /**
85
- * Accessible label for the subtract button that is read for screen reader users.
86
- * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
87
- */
88
- this.accessibleSubtract = getLocaleString(this.accessibleSubtractDefaults, this.language);
89
- /**
90
- * Theme of the input.
91
- */
92
- this.theme = "";
93
- /**
94
- * Controls the margin of the component.
95
- */
96
- this.margin = "auto";
97
- /**
98
- * Expands the input to fill 100% of the container width.
99
- */
100
- this.expand = false;
101
- /**
102
- * Minimum value.
103
- */
104
- this.min = 0;
105
- /**
106
- * Defaults for Label
107
- * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
108
- */
109
- this.labelDefaults = {
110
- fi: "Nimilappu",
111
- en: "Label",
112
- sv: "Etikett",
113
- };
114
- /**
115
- * Label for the number input.
116
- * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
117
- */
118
- this.label = getLocaleString(this.labelDefaults, this.language);
119
- /**
120
- * Visually hide the label, but still show it to screen readers.
121
- */
122
- this.labelHidden = false;
123
- /**
124
- * Maximum value.
125
- */
126
- this.max = 1000000;
127
- /**
128
- * Display the input in error state along with an error message.
129
- */
130
- this.error = "";
131
- /**
132
- * Tooltip to display next to the label of the input.
133
- */
134
- this.tooltip = "";
135
- /**
136
- * Step amount.
137
- */
138
- this.step = 5000;
139
- /**
140
- * Controls whether or not value gets rounded to the nearest
141
- * multiple of a step on blur. Set to "false" to disable this behaviour.
142
- */
143
- this.rounding = true;
144
- /**
145
- * Makes the number input component disabled. This prevents users from being able to
146
- * interact with the input, and conveys its inactive state to assistive technologies.
147
- */
148
- this.disabled = false;
149
- /**
150
- * Set whether the input is required or not. Please note that this is required for
151
- * accessible inputs when the user is required to fill them. When using this property
152
- * you need to also set “novalidate” attribute to your form element to prevent
153
- * browser from displaying its own validation errors.
154
- */
155
- this.required = false;
156
15
  /**
157
16
  * Component event handling.
158
17
  */
@@ -292,6 +151,58 @@ export class DuetNumberInput {
292
151
  this.value = this.localizeValue(newValue);
293
152
  this.emitChange(ev);
294
153
  };
154
+ this.language = getLanguage();
155
+ this.locale = getLocale(this.language).locale;
156
+ this.unit = getLocale(this.language).money;
157
+ this.focusedValue = undefined;
158
+ this.accessibleActiveDescendant = undefined;
159
+ this.accessibleControls = undefined;
160
+ this.accessibleDetails = undefined;
161
+ this.accessibleLabelledBy = undefined;
162
+ this.accessibleDescription = undefined;
163
+ this.accessibleOwns = undefined;
164
+ this.accessibleDescribedBy = undefined;
165
+ this.accessibleLiveDefaults = {
166
+ fi: "{current} euroa valittuna",
167
+ en: "{current} euros selected",
168
+ sv: "{current} euro valt",
169
+ };
170
+ this.accessibleLive = getLocaleString(this.accessibleLiveDefaults, this.language);
171
+ this.accessibleLiveEnabled = true;
172
+ this.accessibleAddDefaults = {
173
+ fi: "Lisää summaan",
174
+ en: "Add to the amount",
175
+ sv: "Lägg till beloppet",
176
+ };
177
+ this.accessibleAdd = getLocaleString(this.accessibleAddDefaults, this.language);
178
+ this.accessibleSubtractDefaults = {
179
+ fi: "Vähennä summasta",
180
+ en: "Subtract from the amount",
181
+ sv: "Dra från beloppet",
182
+ };
183
+ this.accessibleSubtract = getLocaleString(this.accessibleSubtractDefaults, this.language);
184
+ this.theme = "";
185
+ this.margin = "auto";
186
+ this.expand = false;
187
+ this.identifier = undefined;
188
+ this.min = 0;
189
+ this.labelDefaults = {
190
+ fi: "Nimilappu",
191
+ en: "Label",
192
+ sv: "Etikett",
193
+ };
194
+ this.label = getLocaleString(this.labelDefaults, this.language);
195
+ this.labelHidden = false;
196
+ this.max = 1000000;
197
+ this.name = undefined;
198
+ this.error = "";
199
+ this.tooltip = "";
200
+ this.step = 5000;
201
+ this.rounding = true;
202
+ this.role = undefined;
203
+ this.disabled = false;
204
+ this.required = false;
205
+ this.value = undefined;
295
206
  }
296
207
  /**
297
208
  * Component lifecycle events.
@@ -333,829 +244,825 @@ export class DuetNumberInput {
333
244
  "duet-theme-turva": this.theme === "turva",
334
245
  "duet-expand": this.expand,
335
246
  "duet-m-0": this.margin === "none",
336
- } },
337
- h("div", { class: "duet-number-container" },
338
- h("duet-input", { ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value} ${this.unit}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy },
339
- h("div", { class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } },
340
- h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" },
341
- h("duet-visually-hidden", null,
342
- this.accessibleSubtract,
343
- " ",
344
- this.step),
345
- h("duet-icon", { icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })),
346
- h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" },
347
- h("duet-visually-hidden", null,
348
- this.accessibleAdd,
349
- " ",
350
- this.step),
351
- h("duet-icon", { icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))),
352
- this.accessibleLiveEnabled && (h("duet-visually-hidden", { "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
247
+ } }, h("div", { class: "duet-number-container" }, h("duet-input", { ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value} ${this.unit}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy }, h("div", { class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" }, h("duet-visually-hidden", null, this.accessibleSubtract, " ", this.step), h("duet-icon", { icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, h("duet-visually-hidden", null, this.accessibleAdd, " ", this.step), h("duet-icon", { icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (h("duet-visually-hidden", { "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
353
248
  }
354
249
  static get is() { return "duet-number-input"; }
355
250
  static get encapsulation() { return "scoped"; }
356
- static get originalStyleUrls() { return {
357
- "$": ["duet-number-input.scss"]
358
- }; }
359
- static get styleUrls() { return {
360
- "$": ["duet-number-input.css"]
361
- }; }
362
- static get properties() { return {
363
- "language": {
364
- "type": "string",
365
- "mutable": true,
366
- "complexType": {
367
- "original": "DuetLanguage",
368
- "resolved": "\"en\" | \"fi\" | \"sv\"",
369
- "references": {
370
- "DuetLanguage": {
371
- "location": "import",
372
- "path": "../../common-types"
251
+ static get originalStyleUrls() {
252
+ return {
253
+ "$": ["duet-number-input.scss"]
254
+ };
255
+ }
256
+ static get styleUrls() {
257
+ return {
258
+ "$": ["duet-number-input.css"]
259
+ };
260
+ }
261
+ static get properties() {
262
+ return {
263
+ "language": {
264
+ "type": "string",
265
+ "mutable": true,
266
+ "complexType": {
267
+ "original": "DuetLanguage",
268
+ "resolved": "\"en\" | \"fi\" | \"sv\"",
269
+ "references": {
270
+ "DuetLanguage": {
271
+ "location": "import",
272
+ "path": "../../common-types"
273
+ }
373
274
  }
374
- }
375
- },
376
- "required": false,
377
- "optional": false,
378
- "docs": {
379
- "tags": [{
380
- "name": "deprecated",
381
- "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
382
- }, {
383
- "name": "default",
384
- "text": "\"fi\""
385
- }],
386
- "text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
387
- },
388
- "attribute": "language",
389
- "reflect": false,
390
- "defaultValue": "getLanguage()"
391
- },
392
- "locale": {
393
- "type": "string",
394
- "mutable": false,
395
- "complexType": {
396
- "original": "DuetLocale",
397
- "resolved": "\"en-GB\" | \"en-US\" | \"fi-FI\" | \"sv-SE\"",
398
- "references": {
399
- "DuetLocale": {
400
- "location": "import",
401
- "path": "../../common-types"
275
+ },
276
+ "required": false,
277
+ "optional": false,
278
+ "docs": {
279
+ "tags": [{
280
+ "name": "deprecated",
281
+ "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
282
+ }, {
283
+ "name": "default",
284
+ "text": "\"fi\""
285
+ }],
286
+ "text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
287
+ },
288
+ "attribute": "language",
289
+ "reflect": false,
290
+ "defaultValue": "getLanguage()"
291
+ },
292
+ "locale": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "DuetLocale",
297
+ "resolved": "\"en-GB\" | \"en-US\" | \"fi-FI\" | \"sv-SE\"",
298
+ "references": {
299
+ "DuetLocale": {
300
+ "location": "import",
301
+ "path": "../../common-types"
302
+ }
402
303
  }
403
- }
404
- },
405
- "required": false,
406
- "optional": false,
407
- "docs": {
408
- "tags": [],
409
- "text": "Locale used to format the entered value."
410
- },
411
- "attribute": "locale",
412
- "reflect": false,
413
- "defaultValue": "getLocale(this.language).locale"
414
- },
415
- "unit": {
416
- "type": "string",
417
- "mutable": false,
418
- "complexType": {
419
- "original": "string",
420
- "resolved": "string",
421
- "references": {}
422
- },
423
- "required": false,
424
- "optional": false,
425
- "docs": {
426
- "tags": [],
427
- "text": "Unit for the number input."
428
- },
429
- "attribute": "unit",
430
- "reflect": false,
431
- "defaultValue": "getLocale(this.language).money"
432
- },
433
- "accessibleActiveDescendant": {
434
- "type": "string",
435
- "mutable": false,
436
- "complexType": {
437
- "original": "string",
438
- "resolved": "string",
439
- "references": {}
440
- },
441
- "required": false,
442
- "optional": false,
443
- "docs": {
444
- "tags": [],
445
- "text": "Indicates the id of a related component\u2019s visually focused element."
446
- },
447
- "attribute": "accessible-active-descendant",
448
- "reflect": false
449
- },
450
- "accessibleControls": {
451
- "type": "string",
452
- "mutable": false,
453
- "complexType": {
454
- "original": "string",
455
- "resolved": "string",
456
- "references": {}
457
- },
458
- "required": false,
459
- "optional": false,
460
- "docs": {
461
- "tags": [],
462
- "text": "Use this prop to add an aria-controls attribute. Use the attribute to\nindicate the id of a component controlled by this component."
463
- },
464
- "attribute": "accessible-controls",
465
- "reflect": false
466
- },
467
- "accessibleDetails": {
468
- "type": "string",
469
- "mutable": false,
470
- "complexType": {
471
- "original": "string",
472
- "resolved": "string",
473
- "references": {}
474
- },
475
- "required": false,
476
- "optional": false,
477
- "docs": {
478
- "tags": [],
479
- "text": "Details of the component"
480
- },
481
- "attribute": "accessible-details",
482
- "reflect": false,
483
- "defaultValue": "undefined"
484
- },
485
- "accessibleLabelledBy": {
486
- "type": "string",
487
- "mutable": false,
488
- "complexType": {
489
- "original": "string",
490
- "resolved": "string",
491
- "references": {}
492
- },
493
- "required": false,
494
- "optional": false,
495
- "docs": {
496
- "tags": [],
497
- "text": "String of id's that indicate alternative labels elements"
498
- },
499
- "attribute": "accessible-labelled-by",
500
- "reflect": false,
501
- "defaultValue": "undefined"
502
- },
503
- "accessibleDescription": {
504
- "type": "string",
505
- "mutable": false,
506
- "complexType": {
507
- "original": "string",
508
- "resolved": "string",
509
- "references": {}
510
- },
511
- "required": false,
512
- "optional": false,
513
- "docs": {
514
- "tags": [],
515
- "text": "Aria description the button"
516
- },
517
- "attribute": "accessible-description",
518
- "reflect": false,
519
- "defaultValue": "undefined"
520
- },
521
- "accessibleOwns": {
522
- "type": "string",
523
- "mutable": false,
524
- "complexType": {
525
- "original": "string",
526
- "resolved": "string",
527
- "references": {}
528
- },
529
- "required": false,
530
- "optional": false,
531
- "docs": {
532
- "tags": [],
533
- "text": "Indicates the id of a component owned by the input."
534
- },
535
- "attribute": "accessible-owns",
536
- "reflect": false
537
- },
538
- "accessibleDescribedBy": {
539
- "type": "string",
540
- "mutable": false,
541
- "complexType": {
542
- "original": "string",
543
- "resolved": "string",
544
- "references": {}
545
- },
546
- "required": false,
547
- "optional": false,
548
- "docs": {
549
- "tags": [],
550
- "text": "Indicates the id of a component that describes the input."
551
- },
552
- "attribute": "accessible-described-by",
553
- "reflect": false
554
- },
555
- "accessibleLiveDefaults": {
556
- "type": "string",
557
- "mutable": false,
558
- "complexType": {
559
- "original": "DuetLangObject | string",
560
- "resolved": "DuetLangObject | string",
561
- "references": {
562
- "DuetLangObject": {
563
- "location": "import",
564
- "path": "../../utils/language-utils"
304
+ },
305
+ "required": false,
306
+ "optional": false,
307
+ "docs": {
308
+ "tags": [],
309
+ "text": "Locale used to format the entered value."
310
+ },
311
+ "attribute": "locale",
312
+ "reflect": false,
313
+ "defaultValue": "getLocale(this.language).locale"
314
+ },
315
+ "unit": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "string",
320
+ "resolved": "string",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": false,
325
+ "docs": {
326
+ "tags": [],
327
+ "text": "Unit for the number input."
328
+ },
329
+ "attribute": "unit",
330
+ "reflect": false,
331
+ "defaultValue": "getLocale(this.language).money"
332
+ },
333
+ "accessibleActiveDescendant": {
334
+ "type": "string",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "string",
338
+ "resolved": "string",
339
+ "references": {}
340
+ },
341
+ "required": false,
342
+ "optional": false,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": "Indicates the id of a related component\u2019s visually focused element."
346
+ },
347
+ "attribute": "accessible-active-descendant",
348
+ "reflect": false
349
+ },
350
+ "accessibleControls": {
351
+ "type": "string",
352
+ "mutable": false,
353
+ "complexType": {
354
+ "original": "string",
355
+ "resolved": "string",
356
+ "references": {}
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": "Use this prop to add an aria-controls attribute. Use the attribute to\nindicate the id of a component controlled by this component."
363
+ },
364
+ "attribute": "accessible-controls",
365
+ "reflect": false
366
+ },
367
+ "accessibleDetails": {
368
+ "type": "string",
369
+ "mutable": false,
370
+ "complexType": {
371
+ "original": "string",
372
+ "resolved": "string",
373
+ "references": {}
374
+ },
375
+ "required": false,
376
+ "optional": false,
377
+ "docs": {
378
+ "tags": [],
379
+ "text": "Details of the component"
380
+ },
381
+ "attribute": "accessible-details",
382
+ "reflect": false,
383
+ "defaultValue": "undefined"
384
+ },
385
+ "accessibleLabelledBy": {
386
+ "type": "string",
387
+ "mutable": false,
388
+ "complexType": {
389
+ "original": "string",
390
+ "resolved": "string",
391
+ "references": {}
392
+ },
393
+ "required": false,
394
+ "optional": false,
395
+ "docs": {
396
+ "tags": [],
397
+ "text": "String of id's that indicate alternative labels elements"
398
+ },
399
+ "attribute": "accessible-labelled-by",
400
+ "reflect": false,
401
+ "defaultValue": "undefined"
402
+ },
403
+ "accessibleDescription": {
404
+ "type": "string",
405
+ "mutable": false,
406
+ "complexType": {
407
+ "original": "string",
408
+ "resolved": "string",
409
+ "references": {}
410
+ },
411
+ "required": false,
412
+ "optional": false,
413
+ "docs": {
414
+ "tags": [],
415
+ "text": "Aria description the button"
416
+ },
417
+ "attribute": "accessible-description",
418
+ "reflect": false,
419
+ "defaultValue": "undefined"
420
+ },
421
+ "accessibleOwns": {
422
+ "type": "string",
423
+ "mutable": false,
424
+ "complexType": {
425
+ "original": "string",
426
+ "resolved": "string",
427
+ "references": {}
428
+ },
429
+ "required": false,
430
+ "optional": false,
431
+ "docs": {
432
+ "tags": [],
433
+ "text": "Indicates the id of a component owned by the input."
434
+ },
435
+ "attribute": "accessible-owns",
436
+ "reflect": false
437
+ },
438
+ "accessibleDescribedBy": {
439
+ "type": "string",
440
+ "mutable": false,
441
+ "complexType": {
442
+ "original": "string",
443
+ "resolved": "string",
444
+ "references": {}
445
+ },
446
+ "required": false,
447
+ "optional": false,
448
+ "docs": {
449
+ "tags": [],
450
+ "text": "Indicates the id of a component that describes the input."
451
+ },
452
+ "attribute": "accessible-described-by",
453
+ "reflect": false
454
+ },
455
+ "accessibleLiveDefaults": {
456
+ "type": "string",
457
+ "mutable": false,
458
+ "complexType": {
459
+ "original": "DuetLangObject | string",
460
+ "resolved": "DuetLangObject | string",
461
+ "references": {
462
+ "DuetLangObject": {
463
+ "location": "import",
464
+ "path": "../../utils/language-utils"
465
+ }
565
466
  }
566
- }
567
- },
568
- "required": false,
569
- "optional": false,
570
- "docs": {
571
- "tags": [{
572
- "name": "default",
573
- "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
574
- }],
575
- "text": "Defaults for accessibleLive"
576
- },
577
- "attribute": "accessible-live-default",
578
- "reflect": false,
579
- "defaultValue": "{\n fi: \"{current} euroa valittuna\",\n en: \"{current} euros selected\",\n sv: \"{current} euro valt\",\n }"
580
- },
581
- "accessibleLive": {
582
- "type": "string",
583
- "mutable": false,
584
- "complexType": {
585
- "original": "string",
586
- "resolved": "string",
587
- "references": {}
588
- },
589
- "required": false,
590
- "optional": false,
591
- "docs": {
592
- "tags": [{
593
- "name": "default",
594
- "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
595
- }],
596
- "text": "Format of message used to announce current amount when switching between amounts.\nThe string {current} is replaced with the current amount."
597
- },
598
- "attribute": "accessible-live",
599
- "reflect": false,
600
- "defaultValue": "getLocaleString(this.accessibleLiveDefaults, this.language)"
601
- },
602
- "accessibleLiveEnabled": {
603
- "type": "boolean",
604
- "mutable": false,
605
- "complexType": {
606
- "original": "boolean",
607
- "resolved": "boolean",
608
- "references": {}
609
- },
610
- "required": false,
611
- "optional": false,
612
- "docs": {
613
- "tags": [],
614
- "text": "Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead."
615
- },
616
- "attribute": "accessible-live-enabled",
617
- "reflect": false,
618
- "defaultValue": "true"
619
- },
620
- "accessibleAddDefaults": {
621
- "type": "string",
622
- "mutable": false,
623
- "complexType": {
624
- "original": "DuetLangObject | string",
625
- "resolved": "DuetLangObject | string",
626
- "references": {
627
- "DuetLangObject": {
628
- "location": "import",
629
- "path": "../../utils/language-utils"
467
+ },
468
+ "required": false,
469
+ "optional": false,
470
+ "docs": {
471
+ "tags": [{
472
+ "name": "default",
473
+ "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
474
+ }],
475
+ "text": "Defaults for accessibleLive"
476
+ },
477
+ "attribute": "accessible-live-default",
478
+ "reflect": false,
479
+ "defaultValue": "{\n fi: \"{current} euroa valittuna\",\n en: \"{current} euros selected\",\n sv: \"{current} euro valt\",\n }"
480
+ },
481
+ "accessibleLive": {
482
+ "type": "string",
483
+ "mutable": false,
484
+ "complexType": {
485
+ "original": "string",
486
+ "resolved": "string",
487
+ "references": {}
488
+ },
489
+ "required": false,
490
+ "optional": false,
491
+ "docs": {
492
+ "tags": [{
493
+ "name": "default",
494
+ "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
495
+ }],
496
+ "text": "Format of message used to announce current amount when switching between amounts.\nThe string {current} is replaced with the current amount."
497
+ },
498
+ "attribute": "accessible-live",
499
+ "reflect": false,
500
+ "defaultValue": "getLocaleString(this.accessibleLiveDefaults, this.language)"
501
+ },
502
+ "accessibleLiveEnabled": {
503
+ "type": "boolean",
504
+ "mutable": false,
505
+ "complexType": {
506
+ "original": "boolean",
507
+ "resolved": "boolean",
508
+ "references": {}
509
+ },
510
+ "required": false,
511
+ "optional": false,
512
+ "docs": {
513
+ "tags": [],
514
+ "text": "Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead."
515
+ },
516
+ "attribute": "accessible-live-enabled",
517
+ "reflect": false,
518
+ "defaultValue": "true"
519
+ },
520
+ "accessibleAddDefaults": {
521
+ "type": "string",
522
+ "mutable": false,
523
+ "complexType": {
524
+ "original": "DuetLangObject | string",
525
+ "resolved": "DuetLangObject | string",
526
+ "references": {
527
+ "DuetLangObject": {
528
+ "location": "import",
529
+ "path": "../../utils/language-utils"
530
+ }
630
531
  }
631
- }
632
- },
633
- "required": false,
634
- "optional": false,
635
- "docs": {
636
- "tags": [{
637
- "name": "default",
638
- "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
639
- }],
640
- "text": "Defaults for accessibleAdd"
641
- },
642
- "attribute": "accessible-add-default",
643
- "reflect": false,
644
- "defaultValue": "{\n fi: \"Lis\u00E4\u00E4 summaan\",\n en: \"Add to the amount\",\n sv: \"L\u00E4gg till beloppet\",\n }"
645
- },
646
- "accessibleAdd": {
647
- "type": "string",
648
- "mutable": false,
649
- "complexType": {
650
- "original": "string",
651
- "resolved": "string",
652
- "references": {}
653
- },
654
- "required": false,
655
- "optional": false,
656
- "docs": {
657
- "tags": [{
658
- "name": "default",
659
- "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
660
- }],
661
- "text": "Accessible label for the add button that is read for screen reader users."
662
- },
663
- "attribute": "accessible-add",
664
- "reflect": false,
665
- "defaultValue": "getLocaleString(this.accessibleAddDefaults, this.language)"
666
- },
667
- "accessibleSubtractDefaults": {
668
- "type": "string",
669
- "mutable": false,
670
- "complexType": {
671
- "original": "DuetLangObject | string",
672
- "resolved": "DuetLangObject | string",
673
- "references": {
674
- "DuetLangObject": {
675
- "location": "import",
676
- "path": "../../utils/language-utils"
532
+ },
533
+ "required": false,
534
+ "optional": false,
535
+ "docs": {
536
+ "tags": [{
537
+ "name": "default",
538
+ "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
539
+ }],
540
+ "text": "Defaults for accessibleAdd"
541
+ },
542
+ "attribute": "accessible-add-default",
543
+ "reflect": false,
544
+ "defaultValue": "{\n fi: \"Lis\u00E4\u00E4 summaan\",\n en: \"Add to the amount\",\n sv: \"L\u00E4gg till beloppet\",\n }"
545
+ },
546
+ "accessibleAdd": {
547
+ "type": "string",
548
+ "mutable": false,
549
+ "complexType": {
550
+ "original": "string",
551
+ "resolved": "string",
552
+ "references": {}
553
+ },
554
+ "required": false,
555
+ "optional": false,
556
+ "docs": {
557
+ "tags": [{
558
+ "name": "default",
559
+ "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
560
+ }],
561
+ "text": "Accessible label for the add button that is read for screen reader users."
562
+ },
563
+ "attribute": "accessible-add",
564
+ "reflect": false,
565
+ "defaultValue": "getLocaleString(this.accessibleAddDefaults, this.language)"
566
+ },
567
+ "accessibleSubtractDefaults": {
568
+ "type": "string",
569
+ "mutable": false,
570
+ "complexType": {
571
+ "original": "DuetLangObject | string",
572
+ "resolved": "DuetLangObject | string",
573
+ "references": {
574
+ "DuetLangObject": {
575
+ "location": "import",
576
+ "path": "../../utils/language-utils"
577
+ }
677
578
  }
678
- }
679
- },
680
- "required": false,
681
- "optional": false,
682
- "docs": {
683
- "tags": [{
684
- "name": "default",
685
- "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
686
- }],
687
- "text": "Defaults for accessibleSubtract"
688
- },
689
- "attribute": "accessible-subtract-defaults",
690
- "reflect": false,
691
- "defaultValue": "{\n fi: \"V\u00E4henn\u00E4 summasta\",\n en: \"Subtract from the amount\",\n sv: \"Dra fr\u00E5n beloppet\",\n }"
692
- },
693
- "accessibleSubtract": {
694
- "type": "string",
695
- "mutable": false,
696
- "complexType": {
697
- "original": "string",
698
- "resolved": "string",
699
- "references": {}
700
- },
701
- "required": false,
702
- "optional": false,
703
- "docs": {
704
- "tags": [{
705
- "name": "default",
706
- "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
707
- }],
708
- "text": "Accessible label for the subtract button that is read for screen reader users."
709
- },
710
- "attribute": "accessible-subtract",
711
- "reflect": false,
712
- "defaultValue": "getLocaleString(this.accessibleSubtractDefaults, this.language)"
713
- },
714
- "theme": {
715
- "type": "string",
716
- "mutable": true,
717
- "complexType": {
718
- "original": "DuetTheme",
719
- "resolved": "\"\" | \"default\" | \"turva\"",
720
- "references": {
721
- "DuetTheme": {
722
- "location": "import",
723
- "path": "../../common-types"
579
+ },
580
+ "required": false,
581
+ "optional": false,
582
+ "docs": {
583
+ "tags": [{
584
+ "name": "default",
585
+ "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
586
+ }],
587
+ "text": "Defaults for accessibleSubtract"
588
+ },
589
+ "attribute": "accessible-subtract-defaults",
590
+ "reflect": false,
591
+ "defaultValue": "{\n fi: \"V\u00E4henn\u00E4 summasta\",\n en: \"Subtract from the amount\",\n sv: \"Dra fr\u00E5n beloppet\",\n }"
592
+ },
593
+ "accessibleSubtract": {
594
+ "type": "string",
595
+ "mutable": false,
596
+ "complexType": {
597
+ "original": "string",
598
+ "resolved": "string",
599
+ "references": {}
600
+ },
601
+ "required": false,
602
+ "optional": false,
603
+ "docs": {
604
+ "tags": [{
605
+ "name": "default",
606
+ "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
607
+ }],
608
+ "text": "Accessible label for the subtract button that is read for screen reader users."
609
+ },
610
+ "attribute": "accessible-subtract",
611
+ "reflect": false,
612
+ "defaultValue": "getLocaleString(this.accessibleSubtractDefaults, this.language)"
613
+ },
614
+ "theme": {
615
+ "type": "string",
616
+ "mutable": true,
617
+ "complexType": {
618
+ "original": "DuetTheme",
619
+ "resolved": "\"\" | \"default\" | \"turva\"",
620
+ "references": {
621
+ "DuetTheme": {
622
+ "location": "import",
623
+ "path": "../../common-types"
624
+ }
724
625
  }
725
- }
726
- },
727
- "required": false,
728
- "optional": false,
729
- "docs": {
730
- "tags": [],
731
- "text": "Theme of the input."
732
- },
733
- "attribute": "theme",
734
- "reflect": false,
735
- "defaultValue": "\"\""
736
- },
737
- "margin": {
738
- "type": "string",
739
- "mutable": false,
740
- "complexType": {
741
- "original": "DuetMargin",
742
- "resolved": "\"auto\" | \"none\"",
743
- "references": {
744
- "DuetMargin": {
745
- "location": "import",
746
- "path": "../../common-types"
626
+ },
627
+ "required": false,
628
+ "optional": false,
629
+ "docs": {
630
+ "tags": [],
631
+ "text": "Theme of the input."
632
+ },
633
+ "attribute": "theme",
634
+ "reflect": false,
635
+ "defaultValue": "\"\""
636
+ },
637
+ "margin": {
638
+ "type": "string",
639
+ "mutable": false,
640
+ "complexType": {
641
+ "original": "DuetMargin",
642
+ "resolved": "\"auto\" | \"none\"",
643
+ "references": {
644
+ "DuetMargin": {
645
+ "location": "import",
646
+ "path": "../../common-types"
647
+ }
747
648
  }
748
- }
749
- },
750
- "required": false,
751
- "optional": false,
752
- "docs": {
753
- "tags": [],
754
- "text": "Controls the margin of the component."
755
- },
756
- "attribute": "margin",
757
- "reflect": false,
758
- "defaultValue": "\"auto\""
759
- },
760
- "expand": {
761
- "type": "boolean",
762
- "mutable": false,
763
- "complexType": {
764
- "original": "boolean",
765
- "resolved": "boolean",
766
- "references": {}
767
- },
768
- "required": false,
769
- "optional": false,
770
- "docs": {
771
- "tags": [],
772
- "text": "Expands the input to fill 100% of the container width."
773
- },
774
- "attribute": "expand",
775
- "reflect": false,
776
- "defaultValue": "false"
777
- },
778
- "identifier": {
779
- "type": "string",
780
- "mutable": false,
781
- "complexType": {
782
- "original": "string",
783
- "resolved": "string",
784
- "references": {}
785
- },
786
- "required": false,
787
- "optional": false,
788
- "docs": {
789
- "tags": [],
790
- "text": "Adds a unique identifier for the input."
791
- },
792
- "attribute": "identifier",
793
- "reflect": false
794
- },
795
- "min": {
796
- "type": "number",
797
- "mutable": false,
798
- "complexType": {
799
- "original": "number",
800
- "resolved": "number",
801
- "references": {}
802
- },
803
- "required": false,
804
- "optional": false,
805
- "docs": {
806
- "tags": [],
807
- "text": "Minimum value."
808
- },
809
- "attribute": "min",
810
- "reflect": false,
811
- "defaultValue": "0"
812
- },
813
- "labelDefaults": {
814
- "type": "string",
815
- "mutable": false,
816
- "complexType": {
817
- "original": "DuetLangObject | string",
818
- "resolved": "DuetLangObject | string",
819
- "references": {
820
- "DuetLangObject": {
821
- "location": "import",
822
- "path": "../../utils/language-utils"
649
+ },
650
+ "required": false,
651
+ "optional": false,
652
+ "docs": {
653
+ "tags": [],
654
+ "text": "Controls the margin of the component."
655
+ },
656
+ "attribute": "margin",
657
+ "reflect": false,
658
+ "defaultValue": "\"auto\""
659
+ },
660
+ "expand": {
661
+ "type": "boolean",
662
+ "mutable": false,
663
+ "complexType": {
664
+ "original": "boolean",
665
+ "resolved": "boolean",
666
+ "references": {}
667
+ },
668
+ "required": false,
669
+ "optional": false,
670
+ "docs": {
671
+ "tags": [],
672
+ "text": "Expands the input to fill 100% of the container width."
673
+ },
674
+ "attribute": "expand",
675
+ "reflect": false,
676
+ "defaultValue": "false"
677
+ },
678
+ "identifier": {
679
+ "type": "string",
680
+ "mutable": false,
681
+ "complexType": {
682
+ "original": "string",
683
+ "resolved": "string",
684
+ "references": {}
685
+ },
686
+ "required": false,
687
+ "optional": false,
688
+ "docs": {
689
+ "tags": [],
690
+ "text": "Adds a unique identifier for the input."
691
+ },
692
+ "attribute": "identifier",
693
+ "reflect": false
694
+ },
695
+ "min": {
696
+ "type": "number",
697
+ "mutable": false,
698
+ "complexType": {
699
+ "original": "number",
700
+ "resolved": "number",
701
+ "references": {}
702
+ },
703
+ "required": false,
704
+ "optional": false,
705
+ "docs": {
706
+ "tags": [],
707
+ "text": "Minimum value."
708
+ },
709
+ "attribute": "min",
710
+ "reflect": false,
711
+ "defaultValue": "0"
712
+ },
713
+ "labelDefaults": {
714
+ "type": "string",
715
+ "mutable": false,
716
+ "complexType": {
717
+ "original": "DuetLangObject | string",
718
+ "resolved": "DuetLangObject | string",
719
+ "references": {
720
+ "DuetLangObject": {
721
+ "location": "import",
722
+ "path": "../../utils/language-utils"
723
+ }
823
724
  }
824
- }
825
- },
826
- "required": false,
827
- "optional": false,
828
- "docs": {
829
- "tags": [{
830
- "name": "default",
831
- "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
832
- }],
833
- "text": "Defaults for Label"
834
- },
835
- "attribute": "label-default",
836
- "reflect": false,
837
- "defaultValue": "{\n fi: \"Nimilappu\",\n en: \"Label\",\n sv: \"Etikett\",\n }"
838
- },
839
- "label": {
840
- "type": "string",
841
- "mutable": false,
842
- "complexType": {
843
- "original": "string",
844
- "resolved": "string",
845
- "references": {}
846
- },
847
- "required": false,
848
- "optional": false,
849
- "docs": {
850
- "tags": [{
851
- "name": "default",
852
- "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
853
- }],
854
- "text": "Label for the number input."
855
- },
856
- "attribute": "label",
857
- "reflect": false,
858
- "defaultValue": "getLocaleString(this.labelDefaults, this.language)"
859
- },
860
- "labelHidden": {
861
- "type": "boolean",
862
- "mutable": false,
863
- "complexType": {
864
- "original": "boolean",
865
- "resolved": "boolean",
866
- "references": {}
867
- },
868
- "required": false,
869
- "optional": false,
870
- "docs": {
871
- "tags": [],
872
- "text": "Visually hide the label, but still show it to screen readers."
873
- },
874
- "attribute": "label-hidden",
875
- "reflect": false,
876
- "defaultValue": "false"
877
- },
878
- "max": {
879
- "type": "number",
880
- "mutable": false,
881
- "complexType": {
882
- "original": "number",
883
- "resolved": "number",
884
- "references": {}
885
- },
886
- "required": false,
887
- "optional": false,
888
- "docs": {
889
- "tags": [],
890
- "text": "Maximum value."
891
- },
892
- "attribute": "max",
893
- "reflect": false,
894
- "defaultValue": "1000000"
895
- },
896
- "name": {
897
- "type": "string",
898
- "mutable": false,
899
- "complexType": {
900
- "original": "string",
901
- "resolved": "string",
902
- "references": {}
903
- },
904
- "required": false,
905
- "optional": false,
906
- "docs": {
907
- "tags": [],
908
- "text": "Name of the input."
909
- },
910
- "attribute": "name",
911
- "reflect": false
912
- },
913
- "error": {
914
- "type": "string",
915
- "mutable": false,
916
- "complexType": {
917
- "original": "string",
918
- "resolved": "string",
919
- "references": {}
920
- },
921
- "required": false,
922
- "optional": false,
923
- "docs": {
924
- "tags": [],
925
- "text": "Display the input in error state along with an error message."
926
- },
927
- "attribute": "error",
928
- "reflect": false,
929
- "defaultValue": "\"\""
930
- },
931
- "tooltip": {
932
- "type": "string",
933
- "mutable": false,
934
- "complexType": {
935
- "original": "string",
936
- "resolved": "string",
937
- "references": {}
938
- },
939
- "required": false,
940
- "optional": false,
941
- "docs": {
942
- "tags": [],
943
- "text": "Tooltip to display next to the label of the input."
944
- },
945
- "attribute": "tooltip",
946
- "reflect": false,
947
- "defaultValue": "\"\""
948
- },
949
- "step": {
950
- "type": "number",
951
- "mutable": false,
952
- "complexType": {
953
- "original": "number",
954
- "resolved": "number",
955
- "references": {}
956
- },
957
- "required": false,
958
- "optional": false,
959
- "docs": {
960
- "tags": [],
961
- "text": "Step amount."
962
- },
963
- "attribute": "step",
964
- "reflect": false,
965
- "defaultValue": "5000"
966
- },
967
- "rounding": {
968
- "type": "boolean",
969
- "mutable": false,
970
- "complexType": {
971
- "original": "boolean",
972
- "resolved": "boolean",
973
- "references": {}
974
- },
975
- "required": false,
976
- "optional": false,
977
- "docs": {
978
- "tags": [],
979
- "text": "Controls whether or not value gets rounded to the nearest\nmultiple of a step on blur. Set to \"false\" to disable this behaviour."
980
- },
981
- "attribute": "rounding",
982
- "reflect": false,
983
- "defaultValue": "true"
984
- },
985
- "role": {
986
- "type": "string",
987
- "mutable": false,
988
- "complexType": {
989
- "original": "string",
990
- "resolved": "string",
991
- "references": {}
992
- },
993
- "required": false,
994
- "optional": false,
995
- "docs": {
996
- "tags": [],
997
- "text": "Defines a specific role attribute for the input."
998
- },
999
- "attribute": "role",
1000
- "reflect": false
1001
- },
1002
- "disabled": {
1003
- "type": "boolean",
1004
- "mutable": false,
1005
- "complexType": {
1006
- "original": "boolean",
1007
- "resolved": "boolean",
1008
- "references": {}
1009
- },
1010
- "required": false,
1011
- "optional": false,
1012
- "docs": {
1013
- "tags": [],
1014
- "text": "Makes the number input component disabled. This prevents users from being able to\ninteract with the input, and conveys its inactive state to assistive technologies."
1015
- },
1016
- "attribute": "disabled",
1017
- "reflect": true,
1018
- "defaultValue": "false"
1019
- },
1020
- "required": {
1021
- "type": "boolean",
1022
- "mutable": false,
1023
- "complexType": {
1024
- "original": "boolean",
1025
- "resolved": "boolean",
1026
- "references": {}
1027
- },
1028
- "required": false,
1029
- "optional": false,
1030
- "docs": {
1031
- "tags": [],
1032
- "text": "Set whether the input is required or not. Please note that this is required 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."
1033
- },
1034
- "attribute": "required",
1035
- "reflect": false,
1036
- "defaultValue": "false"
1037
- },
1038
- "value": {
1039
- "type": "string",
1040
- "mutable": true,
1041
- "complexType": {
1042
- "original": "string",
1043
- "resolved": "string",
1044
- "references": {}
1045
- },
1046
- "required": false,
1047
- "optional": false,
1048
- "docs": {
1049
- "tags": [],
1050
- "text": "Value of the input. This is passed as a string since Number Input uses Duet\u2019s Input component internally and we need the value to support spaces and the unit as well."
1051
- },
1052
- "attribute": "value",
1053
- "reflect": false
1054
- }
1055
- }; }
1056
- static get states() { return {
1057
- "focusedValue": {}
1058
- }; }
1059
- static get events() { return [{
1060
- "method": "duetChange",
1061
- "name": "duetChange",
1062
- "bubbles": false,
1063
- "cancelable": true,
1064
- "composed": true,
1065
- "docs": {
1066
- "tags": [],
1067
- "text": "Emitted when the value has changed."
1068
- },
1069
- "complexType": {
1070
- "original": "DuetNumberInputEvent",
1071
- "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
1072
- "references": {
1073
- "DuetNumberInputEvent": {
1074
- "location": "local"
725
+ },
726
+ "required": false,
727
+ "optional": false,
728
+ "docs": {
729
+ "tags": [{
730
+ "name": "default",
731
+ "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
732
+ }],
733
+ "text": "Defaults for Label"
734
+ },
735
+ "attribute": "label-default",
736
+ "reflect": false,
737
+ "defaultValue": "{\n fi: \"Nimilappu\",\n en: \"Label\",\n sv: \"Etikett\",\n }"
738
+ },
739
+ "label": {
740
+ "type": "string",
741
+ "mutable": false,
742
+ "complexType": {
743
+ "original": "string",
744
+ "resolved": "string",
745
+ "references": {}
746
+ },
747
+ "required": false,
748
+ "optional": false,
749
+ "docs": {
750
+ "tags": [{
751
+ "name": "default",
752
+ "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
753
+ }],
754
+ "text": "Label for the number input."
755
+ },
756
+ "attribute": "label",
757
+ "reflect": false,
758
+ "defaultValue": "getLocaleString(this.labelDefaults, this.language)"
759
+ },
760
+ "labelHidden": {
761
+ "type": "boolean",
762
+ "mutable": false,
763
+ "complexType": {
764
+ "original": "boolean",
765
+ "resolved": "boolean",
766
+ "references": {}
767
+ },
768
+ "required": false,
769
+ "optional": false,
770
+ "docs": {
771
+ "tags": [],
772
+ "text": "Visually hide the label, but still show it to screen readers."
773
+ },
774
+ "attribute": "label-hidden",
775
+ "reflect": false,
776
+ "defaultValue": "false"
777
+ },
778
+ "max": {
779
+ "type": "number",
780
+ "mutable": false,
781
+ "complexType": {
782
+ "original": "number",
783
+ "resolved": "number",
784
+ "references": {}
785
+ },
786
+ "required": false,
787
+ "optional": false,
788
+ "docs": {
789
+ "tags": [],
790
+ "text": "Maximum value."
791
+ },
792
+ "attribute": "max",
793
+ "reflect": false,
794
+ "defaultValue": "1000000"
795
+ },
796
+ "name": {
797
+ "type": "string",
798
+ "mutable": false,
799
+ "complexType": {
800
+ "original": "string",
801
+ "resolved": "string",
802
+ "references": {}
803
+ },
804
+ "required": false,
805
+ "optional": false,
806
+ "docs": {
807
+ "tags": [],
808
+ "text": "Name of the input."
809
+ },
810
+ "attribute": "name",
811
+ "reflect": false
812
+ },
813
+ "error": {
814
+ "type": "string",
815
+ "mutable": false,
816
+ "complexType": {
817
+ "original": "string",
818
+ "resolved": "string",
819
+ "references": {}
820
+ },
821
+ "required": false,
822
+ "optional": false,
823
+ "docs": {
824
+ "tags": [],
825
+ "text": "Display the input in error state along with an error message."
826
+ },
827
+ "attribute": "error",
828
+ "reflect": false,
829
+ "defaultValue": "\"\""
830
+ },
831
+ "tooltip": {
832
+ "type": "string",
833
+ "mutable": false,
834
+ "complexType": {
835
+ "original": "string",
836
+ "resolved": "string",
837
+ "references": {}
838
+ },
839
+ "required": false,
840
+ "optional": false,
841
+ "docs": {
842
+ "tags": [],
843
+ "text": "Tooltip to display next to the label of the input."
844
+ },
845
+ "attribute": "tooltip",
846
+ "reflect": false,
847
+ "defaultValue": "\"\""
848
+ },
849
+ "step": {
850
+ "type": "number",
851
+ "mutable": false,
852
+ "complexType": {
853
+ "original": "number",
854
+ "resolved": "number",
855
+ "references": {}
856
+ },
857
+ "required": false,
858
+ "optional": false,
859
+ "docs": {
860
+ "tags": [],
861
+ "text": "Step amount."
862
+ },
863
+ "attribute": "step",
864
+ "reflect": false,
865
+ "defaultValue": "5000"
866
+ },
867
+ "rounding": {
868
+ "type": "boolean",
869
+ "mutable": false,
870
+ "complexType": {
871
+ "original": "boolean",
872
+ "resolved": "boolean",
873
+ "references": {}
874
+ },
875
+ "required": false,
876
+ "optional": false,
877
+ "docs": {
878
+ "tags": [],
879
+ "text": "Controls whether or not value gets rounded to the nearest\nmultiple of a step on blur. Set to \"false\" to disable this behaviour."
880
+ },
881
+ "attribute": "rounding",
882
+ "reflect": false,
883
+ "defaultValue": "true"
884
+ },
885
+ "role": {
886
+ "type": "string",
887
+ "mutable": false,
888
+ "complexType": {
889
+ "original": "string",
890
+ "resolved": "string",
891
+ "references": {}
892
+ },
893
+ "required": false,
894
+ "optional": false,
895
+ "docs": {
896
+ "tags": [],
897
+ "text": "Defines a specific role attribute for the input."
898
+ },
899
+ "attribute": "role",
900
+ "reflect": false
901
+ },
902
+ "disabled": {
903
+ "type": "boolean",
904
+ "mutable": false,
905
+ "complexType": {
906
+ "original": "boolean",
907
+ "resolved": "boolean",
908
+ "references": {}
909
+ },
910
+ "required": false,
911
+ "optional": false,
912
+ "docs": {
913
+ "tags": [],
914
+ "text": "Makes the number input component disabled. This prevents users from being able to\ninteract with the input, and conveys its inactive state to assistive technologies."
915
+ },
916
+ "attribute": "disabled",
917
+ "reflect": true,
918
+ "defaultValue": "false"
919
+ },
920
+ "required": {
921
+ "type": "boolean",
922
+ "mutable": false,
923
+ "complexType": {
924
+ "original": "boolean",
925
+ "resolved": "boolean",
926
+ "references": {}
927
+ },
928
+ "required": false,
929
+ "optional": false,
930
+ "docs": {
931
+ "tags": [],
932
+ "text": "Set whether the input is required or not. Please note that this is required 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."
933
+ },
934
+ "attribute": "required",
935
+ "reflect": false,
936
+ "defaultValue": "false"
937
+ },
938
+ "value": {
939
+ "type": "string",
940
+ "mutable": true,
941
+ "complexType": {
942
+ "original": "string",
943
+ "resolved": "string",
944
+ "references": {}
945
+ },
946
+ "required": false,
947
+ "optional": false,
948
+ "docs": {
949
+ "tags": [],
950
+ "text": "Value of the input. This is passed as a string since Number Input uses Duet\u2019s Input component internally and we need the value to support spaces and the unit as well."
951
+ },
952
+ "attribute": "value",
953
+ "reflect": false
954
+ }
955
+ };
956
+ }
957
+ static get states() {
958
+ return {
959
+ "focusedValue": {}
960
+ };
961
+ }
962
+ static get events() {
963
+ return [{
964
+ "method": "duetChange",
965
+ "name": "duetChange",
966
+ "bubbles": false,
967
+ "cancelable": true,
968
+ "composed": true,
969
+ "docs": {
970
+ "tags": [],
971
+ "text": "Emitted when the value has changed."
972
+ },
973
+ "complexType": {
974
+ "original": "DuetNumberInputEvent",
975
+ "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
976
+ "references": {
977
+ "DuetNumberInputEvent": {
978
+ "location": "local"
979
+ }
1075
980
  }
1076
981
  }
1077
- }
1078
- }, {
1079
- "method": "duetInput",
1080
- "name": "duetInput",
1081
- "bubbles": false,
1082
- "cancelable": true,
1083
- "composed": true,
1084
- "docs": {
1085
- "tags": [],
1086
- "text": "Emitted when a keyboard input has ocurred."
1087
- },
1088
- "complexType": {
1089
- "original": "DuetNumberInputEvent",
1090
- "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
1091
- "references": {
1092
- "DuetNumberInputEvent": {
1093
- "location": "local"
982
+ }, {
983
+ "method": "duetInput",
984
+ "name": "duetInput",
985
+ "bubbles": false,
986
+ "cancelable": true,
987
+ "composed": true,
988
+ "docs": {
989
+ "tags": [],
990
+ "text": "Emitted when a keyboard input has ocurred."
991
+ },
992
+ "complexType": {
993
+ "original": "DuetNumberInputEvent",
994
+ "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
995
+ "references": {
996
+ "DuetNumberInputEvent": {
997
+ "location": "local"
998
+ }
1094
999
  }
1095
1000
  }
1096
- }
1097
- }, {
1098
- "method": "duetBlur",
1099
- "name": "duetBlur",
1100
- "bubbles": true,
1101
- "cancelable": true,
1102
- "composed": true,
1103
- "docs": {
1104
- "tags": [],
1105
- "text": "Emitted when the input loses focus."
1106
- },
1107
- "complexType": {
1108
- "original": "DuetNumberInputEvent",
1109
- "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
1110
- "references": {
1111
- "DuetNumberInputEvent": {
1112
- "location": "local"
1001
+ }, {
1002
+ "method": "duetBlur",
1003
+ "name": "duetBlur",
1004
+ "bubbles": true,
1005
+ "cancelable": true,
1006
+ "composed": true,
1007
+ "docs": {
1008
+ "tags": [],
1009
+ "text": "Emitted when the input loses focus."
1010
+ },
1011
+ "complexType": {
1012
+ "original": "DuetNumberInputEvent",
1013
+ "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
1014
+ "references": {
1015
+ "DuetNumberInputEvent": {
1016
+ "location": "local"
1017
+ }
1113
1018
  }
1114
1019
  }
1115
- }
1116
- }, {
1117
- "method": "duetFocus",
1118
- "name": "duetFocus",
1119
- "bubbles": true,
1120
- "cancelable": true,
1121
- "composed": true,
1122
- "docs": {
1123
- "tags": [],
1124
- "text": "Emitted when the input has focus."
1125
- },
1126
- "complexType": {
1127
- "original": "DuetNumberInputEvent",
1128
- "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
1129
- "references": {
1130
- "DuetNumberInputEvent": {
1131
- "location": "local"
1020
+ }, {
1021
+ "method": "duetFocus",
1022
+ "name": "duetFocus",
1023
+ "bubbles": true,
1024
+ "cancelable": true,
1025
+ "composed": true,
1026
+ "docs": {
1027
+ "tags": [],
1028
+ "text": "Emitted when the input has focus."
1029
+ },
1030
+ "complexType": {
1031
+ "original": "DuetNumberInputEvent",
1032
+ "resolved": "{ originalEvent?: Event; component: \"duet-number-input\"; value: string; valueAsNumber: number; }",
1033
+ "references": {
1034
+ "DuetNumberInputEvent": {
1035
+ "location": "local"
1036
+ }
1132
1037
  }
1133
1038
  }
1134
- }
1135
- }]; }
1136
- static get methods() { return {
1137
- "setFocus": {
1138
- "complexType": {
1139
- "signature": "(options?: FocusOptions) => Promise<void>",
1140
- "parameters": [{
1141
- "tags": [],
1142
- "text": ""
1143
- }],
1144
- "references": {
1145
- "Promise": {
1146
- "location": "global"
1039
+ }];
1040
+ }
1041
+ static get methods() {
1042
+ return {
1043
+ "setFocus": {
1044
+ "complexType": {
1045
+ "signature": "(options?: FocusOptions) => Promise<void>",
1046
+ "parameters": [{
1047
+ "tags": [],
1048
+ "text": ""
1049
+ }],
1050
+ "references": {
1051
+ "Promise": {
1052
+ "location": "global"
1053
+ },
1054
+ "FocusOptions": {
1055
+ "location": "global"
1056
+ }
1147
1057
  },
1148
- "FocusOptions": {
1149
- "location": "global"
1150
- }
1058
+ "return": "Promise<void>"
1151
1059
  },
1152
- "return": "Promise<void>"
1153
- },
1154
- "docs": {
1155
- "text": "Sets focus on the specified `duet-number-input`. Use this method instead of the global\n`input.focus()`.",
1156
- "tags": []
1060
+ "docs": {
1061
+ "text": "Sets focus on the specified `duet-number-input`. Use this method instead of the global\n`input.focus()`.",
1062
+ "tags": []
1063
+ }
1157
1064
  }
1158
- }
1159
- }; }
1065
+ };
1066
+ }
1160
1067
  static get elementRef() { return "element"; }
1161
1068
  }