@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
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { Component, Element, Event, h, Host, Method, Prop, Watch } from "@stencil/core";
4
+ import { h, Host } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../common";
6
6
  import { DuetStringsExternalDefaults } from "../../common-strings";
7
7
  import { getLanguage, getLocaleString } from "../../utils/language-utils";
@@ -9,137 +9,61 @@ import { getColorByName } from "../../utils/token-utils";
9
9
  export class DuetButton {
10
10
  constructor() {
11
11
  /**
12
- * Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
12
+ * Component event handling.
13
13
  */
14
+ this.handleClick = (ev) => {
15
+ // If this button wants to specifically submit a form
16
+ // climb up the dom to see if we're in a <form>
17
+ // and if so, then use JS to submit it.
18
+ // To understand better, see: https://www.hjorthhansen.dev/shadow-dom-form-participation/
19
+ if (!this.url && this.element.closest("form")) {
20
+ ev.preventDefault();
21
+ this.proxyButton.click();
22
+ }
23
+ };
24
+ this.onFocus = () => {
25
+ this.duetFocus.emit();
26
+ };
27
+ this.onBlur = () => {
28
+ this.duetBlur.emit();
29
+ };
30
+ this.accessibleLabel = undefined;
31
+ this.accessibleControls = undefined;
14
32
  this.accessiblePopup = "false";
15
- /**
16
- * Details of the component
17
- */
33
+ this.accessibleActiveDescendant = undefined;
34
+ this.accessibleOwns = undefined;
35
+ this.accessibleDescribedBy = undefined;
18
36
  this.accessibleDetails = undefined;
19
- /**
20
- * String of id's that indicate alternative labels elements
21
- */
22
37
  this.accessibleLabelledBy = undefined;
23
- /**
24
- * Aria description the button
25
- */
26
38
  this.accessibleDescription = undefined;
27
- /**
28
- * Loading state of the button
29
- */
39
+ this.accessibleExpanded = undefined;
40
+ this.accessiblePressed = undefined;
30
41
  this.loading = false;
31
- /**
32
- * Style variation of the button.
33
- * @negative - value is deprecated and should be used in combination with negative prop in the future
34
- * @destructive - value is deprecated and should be replace with destructive-secondary
35
- */
36
42
  this.variation = "default";
37
- /**
38
- * Negative variation, can be combined with Variation to produce negative versions
39
- */
40
43
  this.negative = false;
41
- /**
42
- * Theme of the button.
43
- */
44
44
  this.theme = "";
45
- /**
46
- * Controls the margin of the component.
47
- */
48
45
  this.margin = "auto";
49
- /**
50
- * Controls the padding of the component.
51
- */
52
46
  this.padding = "auto";
53
- /**
54
- * Centers the text of a button
55
- */
56
47
  this.centerText = false;
57
- /**
58
- * Controls the text wrapping.
59
- */
60
48
  this.wrapping = "auto";
61
- /**
62
- * Expands the button to fill 100% of the container width.
63
- */
64
49
  this.expand = false;
65
- /**
66
- * Keep the button fixed width even on mobile viewports.
67
- */
68
50
  this.fixed = false;
69
- /**
70
- * Makes the button component disabled. This prevents users from being able to
71
- * interact with the button, and conveys its inactive state to assistive technologies.
72
- */
73
51
  this.disabled = false;
74
- /**
75
- * Allows the button to submit a form.
76
- */
52
+ this.name = undefined;
53
+ this.value = undefined;
54
+ this.identifier = undefined;
77
55
  this.submit = false;
78
- /**
79
- * Forces URL to open in a new browser tab. Used together with URL prop.
80
- */
81
56
  this.external = false;
82
- /**
83
- * @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
84
- * @default "fi"
85
- */
86
57
  this.language = getLanguage();
87
- /**
88
- * Property to change accessibleLabelExternal defaults on the component.
89
- * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
90
- * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
91
- */
92
58
  this.accessibleLabelExternalDefaults = DuetStringsExternalDefaults;
93
- /**
94
- * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
95
- * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
96
- */
97
59
  this.accessibleLabelExternal = getLocaleString(this.accessibleLabelExternalDefaults);
98
- /**
99
- * Icon to display to the left of the button content.
100
- * This is ignored/overridden when button is used as an external link.
101
- */
102
60
  this.icon = "";
103
- /**
104
- * Custom color to be used for text, as a design token entered in camelCase or
105
- * kebab-case. Example: "color-primary".
106
- */
107
61
  this.color = "";
108
- /**
109
- * Show icon on the right side of the button content.
110
- */
111
62
  this.iconRight = false;
112
- /**
113
- * Icon size.
114
- */
115
63
  this.iconSize = "medium";
116
- /**
117
- * Button’s size.
118
- */
119
64
  this.size = "medium";
120
- /**
121
- * Whether this button should use styles meant for displaying just an icon.
122
- */
123
65
  this.iconOnly = false;
124
- /**
125
- * Component event handling.
126
- */
127
- this.handleClick = (ev) => {
128
- // If this button wants to specifically submit a form
129
- // climb up the dom to see if we're in a <form>
130
- // and if so, then use JS to submit it.
131
- // To understand better, see: https://www.hjorthhansen.dev/shadow-dom-form-participation/
132
- if (!this.url && this.element.closest("form")) {
133
- ev.preventDefault();
134
- this.proxyButton.click();
135
- }
136
- };
137
- this.onFocus = () => {
138
- this.duetFocus.emit();
139
- };
140
- this.onBlur = () => {
141
- this.duetBlur.emit();
142
- };
66
+ this.url = undefined;
143
67
  }
144
68
  /**
145
69
  * Component lifecycle events.
@@ -200,15 +124,12 @@ export class DuetButton {
200
124
  // enforce consistency for external links
201
125
  const icon = isExternalLink ? "action-new-window" : this.icon;
202
126
  const iconRight = isExternalLink ? true : this.iconRight;
203
- const commonChildren = (h("span", { class: "duet-button-contents", style: { color: getColorByName(this.color) } },
204
- icon && (h("div", { "aria-hidden": "true", class: {
205
- "duet-button-icon": true,
206
- left: !iconRight,
207
- right: iconRight,
208
- [this.iconSize]: true,
209
- } },
210
- h("duet-icon", { size: "auto", margin: "none", name: icon, color: "currentColor" }))),
211
- h("slot", null)));
127
+ const commonChildren = (h("span", { class: "duet-button-contents", style: { color: getColorByName(this.color) } }, icon && (h("div", { "aria-hidden": "true", class: {
128
+ "duet-button-icon": true,
129
+ left: !iconRight,
130
+ right: iconRight,
131
+ [this.iconSize]: true,
132
+ } }, h("duet-icon", { size: "auto", margin: "none", name: icon, color: "currentColor" }))), h("slot", null)));
212
133
  const commonProps = {
213
134
  onFocus: this.onFocus,
214
135
  onBlur: this.onBlur,
@@ -245,821 +166,826 @@ export class DuetButton {
245
166
  "duet-fixed": this.fixed,
246
167
  "duet-expand": this.expand,
247
168
  "input-button": this.variation === "input-button-primary" || this.variation === "input-button-secondary",
248
- } },
249
- h("div", { class: {
250
- "duet-button-container": true,
251
- "duet-button-is-loading": this.loading,
252
- "duet-theme-turva": this.theme === "turva",
253
- "duet-button-negative": this.negative || this.variation === "negative",
254
- [this.variation]: true,
255
- } },
256
- this.url ? (h("a", Object.assign({}, commonProps, { href: this.url, target: this.external ? "_blank" : "_self", rel: this.external ? "noopener" : undefined }),
257
- commonChildren,
258
- this.external && h("duet-visually-hidden", null,
259
- ", ",
260
- this.accessibleLabelExternal))) : (h("button", Object.assign({}, commonProps, { type: this.getButtonType(), disabled: this.disabled, name: this.name, value: this.value, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, "aria-disabled": this.disabled }), commonChildren)),
261
- this.loading && h("duet-spinner", { color: "currentColor" }))));
169
+ } }, h("div", { class: {
170
+ "duet-button-container": true,
171
+ "duet-button-is-loading": this.loading,
172
+ "duet-theme-turva": this.theme === "turva",
173
+ "duet-button-negative": this.negative || this.variation === "negative",
174
+ [this.variation]: true,
175
+ } }, this.url ? (h("a", Object.assign({}, commonProps, { href: this.url, target: this.external ? "_blank" : "_self", rel: this.external ? "noopener" : undefined }), commonChildren, this.external && h("duet-visually-hidden", null, ", ", this.accessibleLabelExternal))) : (h("button", Object.assign({}, commonProps, { type: this.getButtonType(), disabled: this.disabled, name: this.name, value: this.value, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, "aria-disabled": this.disabled }), commonChildren)), this.loading && h("duet-spinner", { color: "currentColor" }))));
262
176
  }
263
177
  static get is() { return "duet-button"; }
264
178
  static get encapsulation() { return "shadow"; }
265
- static get originalStyleUrls() { return {
266
- "$": ["duet-button.scss"]
267
- }; }
268
- static get styleUrls() { return {
269
- "$": ["duet-button.css"]
270
- }; }
271
- static get properties() { return {
272
- "accessibleLabel": {
273
- "type": "string",
274
- "mutable": false,
275
- "complexType": {
276
- "original": "string",
277
- "resolved": "string",
278
- "references": {}
279
- },
280
- "required": false,
281
- "optional": false,
282
- "docs": {
283
- "tags": [],
284
- "text": "Adds accessible label for the button that is only shown for screen readers.\nTypically, this label text replaces the visible text on the button for\nusers who use assistive technology."
285
- },
286
- "attribute": "accessible-label",
287
- "reflect": false
288
- },
289
- "accessibleControls": {
290
- "type": "string",
291
- "mutable": false,
292
- "complexType": {
293
- "original": "string",
294
- "resolved": "string",
295
- "references": {}
296
- },
297
- "required": false,
298
- "optional": false,
299
- "docs": {
300
- "tags": [],
301
- "text": "Use this property to add an aria-controls attribute to the button. Use\nthe attribute to point to the unique id of the content that the button manages."
302
- },
303
- "attribute": "accessible-controls",
304
- "reflect": false
305
- },
306
- "accessiblePopup": {
307
- "type": "string",
308
- "mutable": false,
309
- "complexType": {
310
- "original": "string",
311
- "resolved": "string",
312
- "references": {}
313
- },
314
- "required": false,
315
- "optional": false,
316
- "docs": {
317
- "tags": [],
318
- "text": "Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button."
319
- },
320
- "attribute": "accessible-popup",
321
- "reflect": false,
322
- "defaultValue": "\"false\""
323
- },
324
- "accessibleActiveDescendant": {
325
- "type": "string",
326
- "mutable": false,
327
- "complexType": {
328
- "original": "string",
329
- "resolved": "string",
330
- "references": {}
331
- },
332
- "required": false,
333
- "optional": false,
334
- "docs": {
335
- "tags": [],
336
- "text": "Indicates the id of a related component\u2019s visually focused element."
337
- },
338
- "attribute": "accessible-active-descendant",
339
- "reflect": false
340
- },
341
- "accessibleOwns": {
342
- "type": "string",
343
- "mutable": false,
344
- "complexType": {
345
- "original": "string",
346
- "resolved": "string",
347
- "references": {}
348
- },
349
- "required": false,
350
- "optional": false,
351
- "docs": {
352
- "tags": [],
353
- "text": "Indicates the id of a component owned by the button."
354
- },
355
- "attribute": "accessible-owns",
356
- "reflect": false
357
- },
358
- "accessibleDescribedBy": {
359
- "type": "string",
360
- "mutable": false,
361
- "complexType": {
362
- "original": "string",
363
- "resolved": "string",
364
- "references": {}
365
- },
366
- "required": false,
367
- "optional": false,
368
- "docs": {
369
- "tags": [],
370
- "text": "Indicates the id of a component that describes the button."
371
- },
372
- "attribute": "accessible-described-by",
373
- "reflect": false
374
- },
375
- "accessibleDetails": {
376
- "type": "string",
377
- "mutable": false,
378
- "complexType": {
379
- "original": "string",
380
- "resolved": "string",
381
- "references": {}
382
- },
383
- "required": false,
384
- "optional": false,
385
- "docs": {
386
- "tags": [],
387
- "text": "Details of the component"
388
- },
389
- "attribute": "accessible-details",
390
- "reflect": false,
391
- "defaultValue": "undefined"
392
- },
393
- "accessibleLabelledBy": {
394
- "type": "string",
395
- "mutable": false,
396
- "complexType": {
397
- "original": "string",
398
- "resolved": "string",
399
- "references": {}
400
- },
401
- "required": false,
402
- "optional": false,
403
- "docs": {
404
- "tags": [],
405
- "text": "String of id's that indicate alternative labels elements"
406
- },
407
- "attribute": "accessible-labelled-by",
408
- "reflect": false,
409
- "defaultValue": "undefined"
410
- },
411
- "accessibleDescription": {
412
- "type": "string",
413
- "mutable": false,
414
- "complexType": {
415
- "original": "string",
416
- "resolved": "string",
417
- "references": {}
418
- },
419
- "required": false,
420
- "optional": false,
421
- "docs": {
422
- "tags": [],
423
- "text": "Aria description the button"
424
- },
425
- "attribute": "accessible-description",
426
- "reflect": false,
427
- "defaultValue": "undefined"
428
- },
429
- "accessibleExpanded": {
430
- "type": "boolean",
431
- "mutable": false,
432
- "complexType": {
433
- "original": "boolean",
434
- "resolved": "boolean",
435
- "references": {}
436
- },
437
- "required": false,
438
- "optional": false,
439
- "docs": {
440
- "tags": [],
441
- "text": "If a button expands or collapses adjacent content, then use the ariaExpanded\nprop to add the aria-expanded attribute to the button. Set the value to convey\nthe current expanded (true) or collapsed (false) state of the content."
442
- },
443
- "attribute": "accessible-expanded",
444
- "reflect": false
445
- },
446
- "accessiblePressed": {
447
- "type": "boolean",
448
- "mutable": false,
449
- "complexType": {
450
- "original": "boolean",
451
- "resolved": "boolean",
452
- "references": {}
453
- },
454
- "required": false,
455
- "optional": false,
456
- "docs": {
457
- "tags": [],
458
- "text": "Tells screen reader the element is pressed."
459
- },
460
- "attribute": "accessible-pressed",
461
- "reflect": false
462
- },
463
- "loading": {
464
- "type": "boolean",
465
- "mutable": false,
466
- "complexType": {
467
- "original": "boolean",
468
- "resolved": "boolean",
469
- "references": {}
470
- },
471
- "required": false,
472
- "optional": false,
473
- "docs": {
474
- "tags": [],
475
- "text": "Loading state of the button"
476
- },
477
- "attribute": "loading",
478
- "reflect": false,
479
- "defaultValue": "false"
480
- },
481
- "variation": {
482
- "type": "string",
483
- "mutable": false,
484
- "complexType": {
485
- "original": "DuetButtonVariation",
486
- "resolved": "\"default\" | \"destructive\" | \"destructive-primary\" | \"destructive-secondary\" | \"input-button-primary\" | \"input-button-secondary\" | \"negative\" | \"plain\" | \"primary\" | \"secondary\"",
487
- "references": {
488
- "DuetButtonVariation": {
489
- "location": "local"
179
+ static get originalStyleUrls() {
180
+ return {
181
+ "$": ["duet-button.scss"]
182
+ };
183
+ }
184
+ static get styleUrls() {
185
+ return {
186
+ "$": ["duet-button.css"]
187
+ };
188
+ }
189
+ static get properties() {
190
+ return {
191
+ "accessibleLabel": {
192
+ "type": "string",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "string",
196
+ "resolved": "string",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": "Adds accessible label for the button that is only shown for screen readers.\nTypically, this label text replaces the visible text on the button for\nusers who use assistive technology."
204
+ },
205
+ "attribute": "accessible-label",
206
+ "reflect": false
207
+ },
208
+ "accessibleControls": {
209
+ "type": "string",
210
+ "mutable": false,
211
+ "complexType": {
212
+ "original": "string",
213
+ "resolved": "string",
214
+ "references": {}
215
+ },
216
+ "required": false,
217
+ "optional": false,
218
+ "docs": {
219
+ "tags": [],
220
+ "text": "Use this property to add an aria-controls attribute to the button. Use\nthe attribute to point to the unique id of the content that the button manages."
221
+ },
222
+ "attribute": "accessible-controls",
223
+ "reflect": false
224
+ },
225
+ "accessiblePopup": {
226
+ "type": "string",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "string",
230
+ "resolved": "string",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": "Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button."
238
+ },
239
+ "attribute": "accessible-popup",
240
+ "reflect": false,
241
+ "defaultValue": "\"false\""
242
+ },
243
+ "accessibleActiveDescendant": {
244
+ "type": "string",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "string",
248
+ "resolved": "string",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": "Indicates the id of a related component\u2019s visually focused element."
256
+ },
257
+ "attribute": "accessible-active-descendant",
258
+ "reflect": false
259
+ },
260
+ "accessibleOwns": {
261
+ "type": "string",
262
+ "mutable": false,
263
+ "complexType": {
264
+ "original": "string",
265
+ "resolved": "string",
266
+ "references": {}
267
+ },
268
+ "required": false,
269
+ "optional": false,
270
+ "docs": {
271
+ "tags": [],
272
+ "text": "Indicates the id of a component owned by the button."
273
+ },
274
+ "attribute": "accessible-owns",
275
+ "reflect": false
276
+ },
277
+ "accessibleDescribedBy": {
278
+ "type": "string",
279
+ "mutable": false,
280
+ "complexType": {
281
+ "original": "string",
282
+ "resolved": "string",
283
+ "references": {}
284
+ },
285
+ "required": false,
286
+ "optional": false,
287
+ "docs": {
288
+ "tags": [],
289
+ "text": "Indicates the id of a component that describes the button."
290
+ },
291
+ "attribute": "accessible-described-by",
292
+ "reflect": false
293
+ },
294
+ "accessibleDetails": {
295
+ "type": "string",
296
+ "mutable": false,
297
+ "complexType": {
298
+ "original": "string",
299
+ "resolved": "string",
300
+ "references": {}
301
+ },
302
+ "required": false,
303
+ "optional": false,
304
+ "docs": {
305
+ "tags": [],
306
+ "text": "Details of the component"
307
+ },
308
+ "attribute": "accessible-details",
309
+ "reflect": false,
310
+ "defaultValue": "undefined"
311
+ },
312
+ "accessibleLabelledBy": {
313
+ "type": "string",
314
+ "mutable": false,
315
+ "complexType": {
316
+ "original": "string",
317
+ "resolved": "string",
318
+ "references": {}
319
+ },
320
+ "required": false,
321
+ "optional": false,
322
+ "docs": {
323
+ "tags": [],
324
+ "text": "String of id's that indicate alternative labels elements"
325
+ },
326
+ "attribute": "accessible-labelled-by",
327
+ "reflect": false,
328
+ "defaultValue": "undefined"
329
+ },
330
+ "accessibleDescription": {
331
+ "type": "string",
332
+ "mutable": false,
333
+ "complexType": {
334
+ "original": "string",
335
+ "resolved": "string",
336
+ "references": {}
337
+ },
338
+ "required": false,
339
+ "optional": false,
340
+ "docs": {
341
+ "tags": [],
342
+ "text": "Aria description the button"
343
+ },
344
+ "attribute": "accessible-description",
345
+ "reflect": false,
346
+ "defaultValue": "undefined"
347
+ },
348
+ "accessibleExpanded": {
349
+ "type": "boolean",
350
+ "mutable": false,
351
+ "complexType": {
352
+ "original": "boolean",
353
+ "resolved": "boolean",
354
+ "references": {}
355
+ },
356
+ "required": false,
357
+ "optional": false,
358
+ "docs": {
359
+ "tags": [],
360
+ "text": "If a button expands or collapses adjacent content, then use the ariaExpanded\nprop to add the aria-expanded attribute to the button. Set the value to convey\nthe current expanded (true) or collapsed (false) state of the content."
361
+ },
362
+ "attribute": "accessible-expanded",
363
+ "reflect": false
364
+ },
365
+ "accessiblePressed": {
366
+ "type": "boolean",
367
+ "mutable": false,
368
+ "complexType": {
369
+ "original": "boolean",
370
+ "resolved": "boolean",
371
+ "references": {}
372
+ },
373
+ "required": false,
374
+ "optional": false,
375
+ "docs": {
376
+ "tags": [],
377
+ "text": "Tells screen reader the element is pressed."
378
+ },
379
+ "attribute": "accessible-pressed",
380
+ "reflect": false
381
+ },
382
+ "loading": {
383
+ "type": "boolean",
384
+ "mutable": false,
385
+ "complexType": {
386
+ "original": "boolean",
387
+ "resolved": "boolean",
388
+ "references": {}
389
+ },
390
+ "required": false,
391
+ "optional": false,
392
+ "docs": {
393
+ "tags": [],
394
+ "text": "Loading state of the button"
395
+ },
396
+ "attribute": "loading",
397
+ "reflect": false,
398
+ "defaultValue": "false"
399
+ },
400
+ "variation": {
401
+ "type": "string",
402
+ "mutable": false,
403
+ "complexType": {
404
+ "original": "DuetButtonVariation",
405
+ "resolved": "\"default\" | \"destructive\" | \"destructive-primary\" | \"destructive-secondary\" | \"input-button-primary\" | \"input-button-secondary\" | \"negative\" | \"plain\" | \"primary\" | \"secondary\"",
406
+ "references": {
407
+ "DuetButtonVariation": {
408
+ "location": "local"
409
+ }
490
410
  }
491
- }
492
- },
493
- "required": false,
494
- "optional": false,
495
- "docs": {
496
- "tags": [{
497
- "name": "negative",
498
- "text": "- value is deprecated and should be used in combination with negative prop in the future"
499
- }, {
500
- "name": "destructive",
501
- "text": "- value is deprecated and should be replace with destructive-secondary"
502
- }],
503
- "text": "Style variation of the button."
504
- },
505
- "attribute": "variation",
506
- "reflect": false,
507
- "defaultValue": "\"default\""
508
- },
509
- "negative": {
510
- "type": "boolean",
511
- "mutable": false,
512
- "complexType": {
513
- "original": "boolean",
514
- "resolved": "boolean",
515
- "references": {}
516
- },
517
- "required": false,
518
- "optional": false,
519
- "docs": {
520
- "tags": [],
521
- "text": "Negative variation, can be combined with Variation to produce negative versions"
522
- },
523
- "attribute": "negative",
524
- "reflect": false,
525
- "defaultValue": "false"
526
- },
527
- "theme": {
528
- "type": "string",
529
- "mutable": true,
530
- "complexType": {
531
- "original": "DuetTheme",
532
- "resolved": "\"\" | \"default\" | \"turva\"",
533
- "references": {
534
- "DuetTheme": {
535
- "location": "import",
536
- "path": "../../common-types"
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [{
416
+ "name": "negative",
417
+ "text": "- value is deprecated and should be used in combination with negative prop in the future"
418
+ }, {
419
+ "name": "destructive",
420
+ "text": "- value is deprecated and should be replace with destructive-secondary"
421
+ }],
422
+ "text": "Style variation of the button."
423
+ },
424
+ "attribute": "variation",
425
+ "reflect": false,
426
+ "defaultValue": "\"default\""
427
+ },
428
+ "negative": {
429
+ "type": "boolean",
430
+ "mutable": false,
431
+ "complexType": {
432
+ "original": "boolean",
433
+ "resolved": "boolean",
434
+ "references": {}
435
+ },
436
+ "required": false,
437
+ "optional": false,
438
+ "docs": {
439
+ "tags": [],
440
+ "text": "Negative variation, can be combined with Variation to produce negative versions"
441
+ },
442
+ "attribute": "negative",
443
+ "reflect": false,
444
+ "defaultValue": "false"
445
+ },
446
+ "theme": {
447
+ "type": "string",
448
+ "mutable": true,
449
+ "complexType": {
450
+ "original": "DuetTheme",
451
+ "resolved": "\"\" | \"default\" | \"turva\"",
452
+ "references": {
453
+ "DuetTheme": {
454
+ "location": "import",
455
+ "path": "../../common-types"
456
+ }
537
457
  }
538
- }
539
- },
540
- "required": false,
541
- "optional": false,
542
- "docs": {
543
- "tags": [],
544
- "text": "Theme of the button."
545
- },
546
- "attribute": "theme",
547
- "reflect": false,
548
- "defaultValue": "\"\""
549
- },
550
- "margin": {
551
- "type": "string",
552
- "mutable": false,
553
- "complexType": {
554
- "original": "DuetMargin",
555
- "resolved": "\"auto\" | \"none\"",
556
- "references": {
557
- "DuetMargin": {
558
- "location": "import",
559
- "path": "../../common-types"
458
+ },
459
+ "required": false,
460
+ "optional": false,
461
+ "docs": {
462
+ "tags": [],
463
+ "text": "Theme of the button."
464
+ },
465
+ "attribute": "theme",
466
+ "reflect": false,
467
+ "defaultValue": "\"\""
468
+ },
469
+ "margin": {
470
+ "type": "string",
471
+ "mutable": false,
472
+ "complexType": {
473
+ "original": "DuetMargin",
474
+ "resolved": "\"auto\" | \"none\"",
475
+ "references": {
476
+ "DuetMargin": {
477
+ "location": "import",
478
+ "path": "../../common-types"
479
+ }
560
480
  }
561
- }
562
- },
563
- "required": false,
564
- "optional": false,
565
- "docs": {
566
- "tags": [],
567
- "text": "Controls the margin of the component."
568
- },
569
- "attribute": "margin",
570
- "reflect": false,
571
- "defaultValue": "\"auto\""
572
- },
573
- "padding": {
574
- "type": "string",
575
- "mutable": false,
576
- "complexType": {
577
- "original": "DuetPadding",
578
- "resolved": "\"auto\" | \"none\"",
579
- "references": {
580
- "DuetPadding": {
581
- "location": "import",
582
- "path": "../../common-types"
481
+ },
482
+ "required": false,
483
+ "optional": false,
484
+ "docs": {
485
+ "tags": [],
486
+ "text": "Controls the margin of the component."
487
+ },
488
+ "attribute": "margin",
489
+ "reflect": false,
490
+ "defaultValue": "\"auto\""
491
+ },
492
+ "padding": {
493
+ "type": "string",
494
+ "mutable": false,
495
+ "complexType": {
496
+ "original": "DuetPadding",
497
+ "resolved": "\"auto\" | \"none\"",
498
+ "references": {
499
+ "DuetPadding": {
500
+ "location": "import",
501
+ "path": "../../common-types"
502
+ }
583
503
  }
584
- }
585
- },
586
- "required": false,
587
- "optional": false,
588
- "docs": {
589
- "tags": [],
590
- "text": "Controls the padding of the component."
591
- },
592
- "attribute": "padding",
593
- "reflect": false,
594
- "defaultValue": "\"auto\""
595
- },
596
- "centerText": {
597
- "type": "boolean",
598
- "mutable": false,
599
- "complexType": {
600
- "original": "DuetButtonTextCentering",
601
- "resolved": "boolean",
602
- "references": {
603
- "DuetButtonTextCentering": {
604
- "location": "local"
504
+ },
505
+ "required": false,
506
+ "optional": false,
507
+ "docs": {
508
+ "tags": [],
509
+ "text": "Controls the padding of the component."
510
+ },
511
+ "attribute": "padding",
512
+ "reflect": false,
513
+ "defaultValue": "\"auto\""
514
+ },
515
+ "centerText": {
516
+ "type": "boolean",
517
+ "mutable": false,
518
+ "complexType": {
519
+ "original": "DuetButtonTextCentering",
520
+ "resolved": "boolean",
521
+ "references": {
522
+ "DuetButtonTextCentering": {
523
+ "location": "local"
524
+ }
605
525
  }
606
- }
607
- },
608
- "required": false,
609
- "optional": false,
610
- "docs": {
611
- "tags": [],
612
- "text": "Centers the text of a button"
613
- },
614
- "attribute": "center-text",
615
- "reflect": false,
616
- "defaultValue": "false"
617
- },
618
- "wrapping": {
619
- "type": "string",
620
- "mutable": false,
621
- "complexType": {
622
- "original": "DuetButtonWrapping",
623
- "resolved": "\"auto\" | \"none\"",
624
- "references": {
625
- "DuetButtonWrapping": {
626
- "location": "local"
526
+ },
527
+ "required": false,
528
+ "optional": false,
529
+ "docs": {
530
+ "tags": [],
531
+ "text": "Centers the text of a button"
532
+ },
533
+ "attribute": "center-text",
534
+ "reflect": false,
535
+ "defaultValue": "false"
536
+ },
537
+ "wrapping": {
538
+ "type": "string",
539
+ "mutable": false,
540
+ "complexType": {
541
+ "original": "DuetButtonWrapping",
542
+ "resolved": "\"auto\" | \"none\"",
543
+ "references": {
544
+ "DuetButtonWrapping": {
545
+ "location": "local"
546
+ }
627
547
  }
628
- }
629
- },
630
- "required": false,
631
- "optional": false,
632
- "docs": {
633
- "tags": [],
634
- "text": "Controls the text wrapping."
635
- },
636
- "attribute": "wrapping",
637
- "reflect": false,
638
- "defaultValue": "\"auto\""
639
- },
640
- "expand": {
641
- "type": "boolean",
642
- "mutable": false,
643
- "complexType": {
644
- "original": "boolean",
645
- "resolved": "boolean",
646
- "references": {}
647
- },
648
- "required": false,
649
- "optional": false,
650
- "docs": {
651
- "tags": [],
652
- "text": "Expands the button to fill 100% of the container width."
653
- },
654
- "attribute": "expand",
655
- "reflect": false,
656
- "defaultValue": "false"
657
- },
658
- "fixed": {
659
- "type": "boolean",
660
- "mutable": false,
661
- "complexType": {
662
- "original": "boolean",
663
- "resolved": "boolean",
664
- "references": {}
665
- },
666
- "required": false,
667
- "optional": false,
668
- "docs": {
669
- "tags": [],
670
- "text": "Keep the button fixed width even on mobile viewports."
671
- },
672
- "attribute": "fixed",
673
- "reflect": false,
674
- "defaultValue": "false"
675
- },
676
- "disabled": {
677
- "type": "boolean",
678
- "mutable": false,
679
- "complexType": {
680
- "original": "boolean",
681
- "resolved": "boolean",
682
- "references": {}
683
- },
684
- "required": false,
685
- "optional": false,
686
- "docs": {
687
- "tags": [],
688
- "text": "Makes the button component disabled. This prevents users from being able to\ninteract with the button, and conveys its inactive state to assistive technologies."
689
- },
690
- "attribute": "disabled",
691
- "reflect": true,
692
- "defaultValue": "false"
693
- },
694
- "name": {
695
- "type": "string",
696
- "mutable": false,
697
- "complexType": {
698
- "original": "string",
699
- "resolved": "string",
700
- "references": {}
701
- },
702
- "required": false,
703
- "optional": false,
704
- "docs": {
705
- "tags": [],
706
- "text": "The name of the button, which gets paired with the button's value when submitted as part of a form.\nCorresponds with the native HTML name attribute."
707
- },
708
- "attribute": "name",
709
- "reflect": false
710
- },
711
- "value": {
712
- "type": "string",
713
- "mutable": false,
714
- "complexType": {
715
- "original": "string",
716
- "resolved": "string",
717
- "references": {}
718
- },
719
- "required": false,
720
- "optional": false,
721
- "docs": {
722
- "tags": [],
723
- "text": "The value of the button, which gets paired with the button's name when submitted as part of a form.\nCorresponds with the native HTML value attribute."
724
- },
725
- "attribute": "value",
726
- "reflect": false
727
- },
728
- "identifier": {
729
- "type": "string",
730
- "mutable": false,
731
- "complexType": {
732
- "original": "string",
733
- "resolved": "string",
734
- "references": {}
735
- },
736
- "required": false,
737
- "optional": false,
738
- "docs": {
739
- "tags": [],
740
- "text": "Adds a unique identifier for the button. Please note that with this particular\ncomponent this id is added inside Shadow DOM. If you need an id on the html\nelement, use regular id attribute instead."
741
- },
742
- "attribute": "identifier",
743
- "reflect": false
744
- },
745
- "submit": {
746
- "type": "boolean",
747
- "mutable": false,
748
- "complexType": {
749
- "original": "boolean",
750
- "resolved": "boolean",
751
- "references": {}
752
- },
753
- "required": false,
754
- "optional": false,
755
- "docs": {
756
- "tags": [],
757
- "text": "Allows the button to submit a form."
758
- },
759
- "attribute": "submit",
760
- "reflect": true,
761
- "defaultValue": "false"
762
- },
763
- "external": {
764
- "type": "boolean",
765
- "mutable": false,
766
- "complexType": {
767
- "original": "boolean",
768
- "resolved": "boolean",
769
- "references": {}
770
- },
771
- "required": false,
772
- "optional": false,
773
- "docs": {
774
- "tags": [],
775
- "text": "Forces URL to open in a new browser tab. Used together with URL prop."
776
- },
777
- "attribute": "external",
778
- "reflect": false,
779
- "defaultValue": "false"
780
- },
781
- "language": {
782
- "type": "string",
783
- "mutable": false,
784
- "complexType": {
785
- "original": "string",
786
- "resolved": "string",
787
- "references": {}
788
- },
789
- "required": false,
790
- "optional": false,
791
- "docs": {
792
- "tags": [{
793
- "name": "deprecated",
794
- "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
795
- }, {
796
- "name": "default",
797
- "text": "\"fi\""
798
- }],
799
- "text": ""
800
- },
801
- "attribute": "language",
802
- "reflect": false,
803
- "defaultValue": "getLanguage()"
804
- },
805
- "accessibleLabelExternalDefaults": {
806
- "type": "string",
807
- "mutable": false,
808
- "complexType": {
809
- "original": "DuetLangObject | string",
810
- "resolved": "DuetLangObject | string",
811
- "references": {
812
- "DuetLangObject": {
813
- "location": "import",
814
- "path": "../../utils/language-utils"
548
+ },
549
+ "required": false,
550
+ "optional": false,
551
+ "docs": {
552
+ "tags": [],
553
+ "text": "Controls the text wrapping."
554
+ },
555
+ "attribute": "wrapping",
556
+ "reflect": false,
557
+ "defaultValue": "\"auto\""
558
+ },
559
+ "expand": {
560
+ "type": "boolean",
561
+ "mutable": false,
562
+ "complexType": {
563
+ "original": "boolean",
564
+ "resolved": "boolean",
565
+ "references": {}
566
+ },
567
+ "required": false,
568
+ "optional": false,
569
+ "docs": {
570
+ "tags": [],
571
+ "text": "Expands the button to fill 100% of the container width."
572
+ },
573
+ "attribute": "expand",
574
+ "reflect": false,
575
+ "defaultValue": "false"
576
+ },
577
+ "fixed": {
578
+ "type": "boolean",
579
+ "mutable": false,
580
+ "complexType": {
581
+ "original": "boolean",
582
+ "resolved": "boolean",
583
+ "references": {}
584
+ },
585
+ "required": false,
586
+ "optional": false,
587
+ "docs": {
588
+ "tags": [],
589
+ "text": "Keep the button fixed width even on mobile viewports."
590
+ },
591
+ "attribute": "fixed",
592
+ "reflect": false,
593
+ "defaultValue": "false"
594
+ },
595
+ "disabled": {
596
+ "type": "boolean",
597
+ "mutable": false,
598
+ "complexType": {
599
+ "original": "boolean",
600
+ "resolved": "boolean",
601
+ "references": {}
602
+ },
603
+ "required": false,
604
+ "optional": false,
605
+ "docs": {
606
+ "tags": [],
607
+ "text": "Makes the button component disabled. This prevents users from being able to\ninteract with the button, and conveys its inactive state to assistive technologies."
608
+ },
609
+ "attribute": "disabled",
610
+ "reflect": true,
611
+ "defaultValue": "false"
612
+ },
613
+ "name": {
614
+ "type": "string",
615
+ "mutable": false,
616
+ "complexType": {
617
+ "original": "string",
618
+ "resolved": "string",
619
+ "references": {}
620
+ },
621
+ "required": false,
622
+ "optional": false,
623
+ "docs": {
624
+ "tags": [],
625
+ "text": "The name of the button, which gets paired with the button's value when submitted as part of a form.\nCorresponds with the native HTML name attribute."
626
+ },
627
+ "attribute": "name",
628
+ "reflect": false
629
+ },
630
+ "value": {
631
+ "type": "string",
632
+ "mutable": false,
633
+ "complexType": {
634
+ "original": "string",
635
+ "resolved": "string",
636
+ "references": {}
637
+ },
638
+ "required": false,
639
+ "optional": false,
640
+ "docs": {
641
+ "tags": [],
642
+ "text": "The value of the button, which gets paired with the button's name when submitted as part of a form.\nCorresponds with the native HTML value attribute."
643
+ },
644
+ "attribute": "value",
645
+ "reflect": false
646
+ },
647
+ "identifier": {
648
+ "type": "string",
649
+ "mutable": false,
650
+ "complexType": {
651
+ "original": "string",
652
+ "resolved": "string",
653
+ "references": {}
654
+ },
655
+ "required": false,
656
+ "optional": false,
657
+ "docs": {
658
+ "tags": [],
659
+ "text": "Adds a unique identifier for the button. Please note that with this particular\ncomponent this id is added inside Shadow DOM. If you need an id on the html\nelement, use regular id attribute instead."
660
+ },
661
+ "attribute": "identifier",
662
+ "reflect": false
663
+ },
664
+ "submit": {
665
+ "type": "boolean",
666
+ "mutable": false,
667
+ "complexType": {
668
+ "original": "boolean",
669
+ "resolved": "boolean",
670
+ "references": {}
671
+ },
672
+ "required": false,
673
+ "optional": false,
674
+ "docs": {
675
+ "tags": [],
676
+ "text": "Allows the button to submit a form."
677
+ },
678
+ "attribute": "submit",
679
+ "reflect": true,
680
+ "defaultValue": "false"
681
+ },
682
+ "external": {
683
+ "type": "boolean",
684
+ "mutable": false,
685
+ "complexType": {
686
+ "original": "boolean",
687
+ "resolved": "boolean",
688
+ "references": {}
689
+ },
690
+ "required": false,
691
+ "optional": false,
692
+ "docs": {
693
+ "tags": [],
694
+ "text": "Forces URL to open in a new browser tab. Used together with URL prop."
695
+ },
696
+ "attribute": "external",
697
+ "reflect": false,
698
+ "defaultValue": "false"
699
+ },
700
+ "language": {
701
+ "type": "string",
702
+ "mutable": false,
703
+ "complexType": {
704
+ "original": "string",
705
+ "resolved": "string",
706
+ "references": {}
707
+ },
708
+ "required": false,
709
+ "optional": false,
710
+ "docs": {
711
+ "tags": [{
712
+ "name": "deprecated",
713
+ "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
714
+ }, {
715
+ "name": "default",
716
+ "text": "\"fi\""
717
+ }],
718
+ "text": ""
719
+ },
720
+ "attribute": "language",
721
+ "reflect": false,
722
+ "defaultValue": "getLanguage()"
723
+ },
724
+ "accessibleLabelExternalDefaults": {
725
+ "type": "string",
726
+ "mutable": false,
727
+ "complexType": {
728
+ "original": "DuetLangObject | string",
729
+ "resolved": "DuetLangObject | string",
730
+ "references": {
731
+ "DuetLangObject": {
732
+ "location": "import",
733
+ "path": "../../utils/language-utils"
734
+ }
815
735
  }
816
- }
817
- },
818
- "required": false,
819
- "optional": false,
820
- "docs": {
821
- "tags": [{
822
- "name": "default",
823
- "text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
824
- }],
825
- "text": "Property to change accessibleLabelExternal defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabelExternal when needed"
826
- },
827
- "attribute": "accessible-label-external-default",
828
- "reflect": false,
829
- "defaultValue": "DuetStringsExternalDefaults"
830
- },
831
- "accessibleLabelExternal": {
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
- "name": "default",
844
- "text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
845
- }],
846
- "text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
847
- },
848
- "attribute": "accessible-label-external",
849
- "reflect": false,
850
- "defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults)"
851
- },
852
- "icon": {
853
- "type": "string",
854
- "mutable": false,
855
- "complexType": {
856
- "original": "DuetIconName",
857
- "resolved": "string",
858
- "references": {
859
- "DuetIconName": {
860
- "location": "import",
861
- "path": "../../common-types"
736
+ },
737
+ "required": false,
738
+ "optional": false,
739
+ "docs": {
740
+ "tags": [{
741
+ "name": "default",
742
+ "text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
743
+ }],
744
+ "text": "Property to change accessibleLabelExternal defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabelExternal when needed"
745
+ },
746
+ "attribute": "accessible-label-external-default",
747
+ "reflect": false,
748
+ "defaultValue": "DuetStringsExternalDefaults"
749
+ },
750
+ "accessibleLabelExternal": {
751
+ "type": "string",
752
+ "mutable": false,
753
+ "complexType": {
754
+ "original": "string",
755
+ "resolved": "string",
756
+ "references": {}
757
+ },
758
+ "required": false,
759
+ "optional": false,
760
+ "docs": {
761
+ "tags": [{
762
+ "name": "default",
763
+ "text": "{fi: \"Avautuu uuteen ikkunaan\",sv: \"\u00D6ppnas i nytt f\u00F6nster\",en: \"Opens in a new window\"}"
764
+ }],
765
+ "text": "Adds accessible label for tooltip that is shown in external link (url & external have both been set)"
766
+ },
767
+ "attribute": "accessible-label-external",
768
+ "reflect": false,
769
+ "defaultValue": "getLocaleString(this.accessibleLabelExternalDefaults)"
770
+ },
771
+ "icon": {
772
+ "type": "string",
773
+ "mutable": false,
774
+ "complexType": {
775
+ "original": "DuetIconName",
776
+ "resolved": "string",
777
+ "references": {
778
+ "DuetIconName": {
779
+ "location": "import",
780
+ "path": "../../common-types"
781
+ }
862
782
  }
863
- }
864
- },
865
- "required": false,
866
- "optional": false,
867
- "docs": {
868
- "tags": [],
869
- "text": "Icon to display to the left of the button content.\nThis is ignored/overridden when button is used as an external link."
870
- },
871
- "attribute": "icon",
872
- "reflect": false,
873
- "defaultValue": "\"\""
874
- },
875
- "color": {
876
- "type": "string",
877
- "mutable": false,
878
- "complexType": {
879
- "original": "DuetColor",
880
- "resolved": "string",
881
- "references": {
882
- "DuetColor": {
883
- "location": "import",
884
- "path": "../../common-types"
783
+ },
784
+ "required": false,
785
+ "optional": false,
786
+ "docs": {
787
+ "tags": [],
788
+ "text": "Icon to display to the left of the button content.\nThis is ignored/overridden when button is used as an external link."
789
+ },
790
+ "attribute": "icon",
791
+ "reflect": false,
792
+ "defaultValue": "\"\""
793
+ },
794
+ "color": {
795
+ "type": "string",
796
+ "mutable": false,
797
+ "complexType": {
798
+ "original": "DuetColor",
799
+ "resolved": "string",
800
+ "references": {
801
+ "DuetColor": {
802
+ "location": "import",
803
+ "path": "../../common-types"
804
+ }
885
805
  }
886
- }
887
- },
888
- "required": false,
889
- "optional": false,
890
- "docs": {
891
- "tags": [],
892
- "text": "Custom color to be used for text, as a design token entered in camelCase or\nkebab-case. Example: \"color-primary\"."
893
- },
894
- "attribute": "color",
895
- "reflect": false,
896
- "defaultValue": "\"\""
897
- },
898
- "iconRight": {
899
- "type": "boolean",
900
- "mutable": false,
901
- "complexType": {
902
- "original": "boolean",
903
- "resolved": "boolean",
904
- "references": {}
905
- },
906
- "required": false,
907
- "optional": false,
908
- "docs": {
909
- "tags": [],
910
- "text": "Show icon on the right side of the button content."
911
- },
912
- "attribute": "icon-right",
913
- "reflect": false,
914
- "defaultValue": "false"
915
- },
916
- "iconSize": {
917
- "type": "string",
918
- "mutable": false,
919
- "complexType": {
920
- "original": "DuetButtonIconSize",
921
- "resolved": "\"large\" | \"medium\" | \"medium-small\" | \"small\"",
922
- "references": {
923
- "DuetButtonIconSize": {
924
- "location": "local"
806
+ },
807
+ "required": false,
808
+ "optional": false,
809
+ "docs": {
810
+ "tags": [],
811
+ "text": "Custom color to be used for text, as a design token entered in camelCase or\nkebab-case. Example: \"color-primary\"."
812
+ },
813
+ "attribute": "color",
814
+ "reflect": false,
815
+ "defaultValue": "\"\""
816
+ },
817
+ "iconRight": {
818
+ "type": "boolean",
819
+ "mutable": false,
820
+ "complexType": {
821
+ "original": "boolean",
822
+ "resolved": "boolean",
823
+ "references": {}
824
+ },
825
+ "required": false,
826
+ "optional": false,
827
+ "docs": {
828
+ "tags": [],
829
+ "text": "Show icon on the right side of the button content."
830
+ },
831
+ "attribute": "icon-right",
832
+ "reflect": false,
833
+ "defaultValue": "false"
834
+ },
835
+ "iconSize": {
836
+ "type": "string",
837
+ "mutable": false,
838
+ "complexType": {
839
+ "original": "DuetButtonIconSize",
840
+ "resolved": "\"large\" | \"medium\" | \"medium-small\" | \"small\"",
841
+ "references": {
842
+ "DuetButtonIconSize": {
843
+ "location": "local"
844
+ }
925
845
  }
926
- }
927
- },
928
- "required": false,
929
- "optional": false,
930
- "docs": {
931
- "tags": [],
932
- "text": "Icon size."
933
- },
934
- "attribute": "icon-size",
935
- "reflect": false,
936
- "defaultValue": "\"medium\""
937
- },
938
- "size": {
939
- "type": "string",
940
- "mutable": false,
941
- "complexType": {
942
- "original": "DuetButtonSize",
943
- "resolved": "\"medium\" | \"small\"",
944
- "references": {
945
- "DuetButtonSize": {
946
- "location": "local"
846
+ },
847
+ "required": false,
848
+ "optional": false,
849
+ "docs": {
850
+ "tags": [],
851
+ "text": "Icon size."
852
+ },
853
+ "attribute": "icon-size",
854
+ "reflect": false,
855
+ "defaultValue": "\"medium\""
856
+ },
857
+ "size": {
858
+ "type": "string",
859
+ "mutable": false,
860
+ "complexType": {
861
+ "original": "DuetButtonSize",
862
+ "resolved": "\"medium\" | \"small\"",
863
+ "references": {
864
+ "DuetButtonSize": {
865
+ "location": "local"
866
+ }
947
867
  }
948
- }
949
- },
950
- "required": false,
951
- "optional": false,
952
- "docs": {
953
- "tags": [],
954
- "text": "Button\u2019s size."
955
- },
956
- "attribute": "size",
957
- "reflect": false,
958
- "defaultValue": "\"medium\""
959
- },
960
- "iconOnly": {
961
- "type": "boolean",
962
- "mutable": false,
963
- "complexType": {
964
- "original": "boolean",
965
- "resolved": "boolean",
966
- "references": {}
967
- },
968
- "required": false,
969
- "optional": false,
970
- "docs": {
971
- "tags": [],
972
- "text": "Whether this button should use styles meant for displaying just an icon."
973
- },
974
- "attribute": "icon-only",
975
- "reflect": false,
976
- "defaultValue": "false"
977
- },
978
- "url": {
979
- "type": "string",
980
- "mutable": false,
981
- "complexType": {
982
- "original": "string",
983
- "resolved": "string",
984
- "references": {}
985
- },
986
- "required": false,
987
- "optional": false,
988
- "docs": {
989
- "tags": [],
990
- "text": "A destination to link to, rendered in the href attribute of a link."
991
- },
992
- "attribute": "url",
993
- "reflect": true
994
- }
995
- }; }
996
- static get events() { return [{
997
- "method": "duetFocus",
998
- "name": "duetFocus",
999
- "bubbles": true,
1000
- "cancelable": true,
1001
- "composed": true,
1002
- "docs": {
1003
- "tags": [],
1004
- "text": "Emitted when the button has focus."
1005
- },
1006
- "complexType": {
1007
- "original": "any",
1008
- "resolved": "any",
1009
- "references": {}
1010
- }
1011
- }, {
1012
- "method": "duetBlur",
1013
- "name": "duetBlur",
1014
- "bubbles": true,
1015
- "cancelable": true,
1016
- "composed": true,
1017
- "docs": {
1018
- "tags": [],
1019
- "text": "Emitted when the button loses focus."
1020
- },
1021
- "complexType": {
1022
- "original": "any",
1023
- "resolved": "any",
1024
- "references": {}
868
+ },
869
+ "required": false,
870
+ "optional": false,
871
+ "docs": {
872
+ "tags": [],
873
+ "text": "Button\u2019s size."
874
+ },
875
+ "attribute": "size",
876
+ "reflect": false,
877
+ "defaultValue": "\"medium\""
878
+ },
879
+ "iconOnly": {
880
+ "type": "boolean",
881
+ "mutable": false,
882
+ "complexType": {
883
+ "original": "boolean",
884
+ "resolved": "boolean",
885
+ "references": {}
886
+ },
887
+ "required": false,
888
+ "optional": false,
889
+ "docs": {
890
+ "tags": [],
891
+ "text": "Whether this button should use styles meant for displaying just an icon."
892
+ },
893
+ "attribute": "icon-only",
894
+ "reflect": false,
895
+ "defaultValue": "false"
896
+ },
897
+ "url": {
898
+ "type": "string",
899
+ "mutable": false,
900
+ "complexType": {
901
+ "original": "string",
902
+ "resolved": "string",
903
+ "references": {}
904
+ },
905
+ "required": false,
906
+ "optional": false,
907
+ "docs": {
908
+ "tags": [],
909
+ "text": "A destination to link to, rendered in the href attribute of a link."
910
+ },
911
+ "attribute": "url",
912
+ "reflect": true
1025
913
  }
1026
- }]; }
1027
- static get methods() { return {
1028
- "setFocus": {
1029
- "complexType": {
1030
- "signature": "(options?: FocusOptions) => Promise<void>",
1031
- "parameters": [{
1032
- "tags": [],
1033
- "text": ""
1034
- }],
1035
- "references": {
1036
- "Promise": {
1037
- "location": "global"
914
+ };
915
+ }
916
+ static get events() {
917
+ return [{
918
+ "method": "duetFocus",
919
+ "name": "duetFocus",
920
+ "bubbles": true,
921
+ "cancelable": true,
922
+ "composed": true,
923
+ "docs": {
924
+ "tags": [],
925
+ "text": "Emitted when the button has focus."
926
+ },
927
+ "complexType": {
928
+ "original": "any",
929
+ "resolved": "any",
930
+ "references": {}
931
+ }
932
+ }, {
933
+ "method": "duetBlur",
934
+ "name": "duetBlur",
935
+ "bubbles": true,
936
+ "cancelable": true,
937
+ "composed": true,
938
+ "docs": {
939
+ "tags": [],
940
+ "text": "Emitted when the button loses focus."
941
+ },
942
+ "complexType": {
943
+ "original": "any",
944
+ "resolved": "any",
945
+ "references": {}
946
+ }
947
+ }];
948
+ }
949
+ static get methods() {
950
+ return {
951
+ "setFocus": {
952
+ "complexType": {
953
+ "signature": "(options?: FocusOptions) => Promise<void>",
954
+ "parameters": [{
955
+ "tags": [],
956
+ "text": ""
957
+ }],
958
+ "references": {
959
+ "Promise": {
960
+ "location": "global"
961
+ },
962
+ "FocusOptions": {
963
+ "location": "global"
964
+ }
1038
965
  },
1039
- "FocusOptions": {
1040
- "location": "global"
1041
- }
966
+ "return": "Promise<void>"
1042
967
  },
1043
- "return": "Promise<void>"
1044
- },
1045
- "docs": {
1046
- "text": "Sets focus on the specified `duet-button`. Use this method instead of the global\n`button.focus()`.",
1047
- "tags": []
968
+ "docs": {
969
+ "text": "Sets focus on the specified `duet-button`. Use this method instead of the global\n`button.focus()`.",
970
+ "tags": []
971
+ }
1048
972
  }
1049
- }
1050
- }; }
973
+ };
974
+ }
1051
975
  static get elementRef() { return "element"; }
1052
- static get watchers() { return [{
1053
- "propName": "disabled",
1054
- "methodName": "syncToProxyButton"
1055
- }, {
1056
- "propName": "submit",
1057
- "methodName": "syncToProxyButton"
1058
- }, {
1059
- "propName": "value",
1060
- "methodName": "syncToProxyButton"
1061
- }, {
1062
- "propName": "name",
1063
- "methodName": "syncToProxyButton"
1064
- }]; }
976
+ static get watchers() {
977
+ return [{
978
+ "propName": "disabled",
979
+ "methodName": "syncToProxyButton"
980
+ }, {
981
+ "propName": "submit",
982
+ "methodName": "syncToProxyButton"
983
+ }, {
984
+ "propName": "value",
985
+ "methodName": "syncToProxyButton"
986
+ }, {
987
+ "propName": "name",
988
+ "methodName": "syncToProxyButton"
989
+ }];
990
+ }
1065
991
  }