@duetds/components 10.0.0-alpha.13 → 10.0.0-alpha.14

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 (1027) hide show
  1. package/hydrate/index.d.ts +38 -7
  2. package/hydrate/index.js +7554 -3237
  3. package/hydrate/index.mjs +45083 -0
  4. package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
  5. package/lib/cjs/{a11y-utils-afeb2485.js → a11y-utils-CrefuUbk.js} +1 -1
  6. package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
  7. package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
  8. package/lib/cjs/{app-globals-540cd51d.js → app-globals-CkySA1aW.js} +2 -2
  9. package/lib/cjs/duet-action-button.cjs.entry.js +83 -28
  10. package/lib/cjs/duet-alert.cjs.entry.js +72 -30
  11. package/lib/cjs/duet-badge.cjs.entry.js +16 -6
  12. package/lib/cjs/duet-banner.cjs.entry.js +49 -23
  13. package/lib/cjs/duet-breadcrumb.cjs.entry.js +32 -12
  14. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +17 -11
  15. package/lib/cjs/duet-button_2.cjs.entry.js +147 -54
  16. package/lib/cjs/duet-callout.cjs.entry.js +10 -7
  17. package/lib/cjs/duet-caption_4.cjs.entry.js +175 -34
  18. package/lib/cjs/duet-card.cjs.entry.js +80 -30
  19. package/lib/cjs/duet-checkbox.cjs.entry.js +65 -29
  20. package/lib/cjs/duet-checkmark.cjs.entry.js +18 -6
  21. package/lib/cjs/duet-chip.cjs.entry.js +49 -29
  22. package/lib/cjs/duet-choice_2.cjs.entry.js +212 -74
  23. package/lib/cjs/duet-collapsible.cjs.entry.js +67 -25
  24. package/lib/cjs/duet-combobox.cjs.entry.js +79 -46
  25. package/lib/cjs/duet-contact-card.cjs.entry.js +14 -15
  26. package/lib/cjs/duet-cookie-consent.cjs.entry.js +12 -9
  27. package/lib/cjs/duet-date-picker.cjs.entry.js +142 -52
  28. package/lib/cjs/duet-divider_2.cjs.entry.js +26 -10
  29. package/lib/cjs/duet-editable-table_3.cjs.entry.js +477 -198
  30. package/lib/cjs/duet-empty-state.cjs.entry.js +12 -6
  31. package/lib/cjs/duet-fieldset.cjs.entry.js +38 -19
  32. package/lib/cjs/duet-file-chooser.cjs.entry.js +16 -9
  33. package/lib/cjs/duet-footer.cjs.entry.js +52 -26
  34. package/lib/cjs/duet-grid_2.cjs.entry.js +65 -12
  35. package/lib/cjs/duet-header_2.cjs.entry.js +250 -85
  36. package/lib/cjs/duet-hero.cjs.entry.js +110 -26
  37. package/lib/cjs/duet-icon.cjs.entry.js +50 -11
  38. package/lib/cjs/duet-input_2.cjs.entry.js +181 -69
  39. package/lib/cjs/duet-layout.cjs.entry.js +27 -7
  40. package/lib/cjs/duet-list_2.cjs.entry.js +44 -9
  41. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +21 -13
  42. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +16 -11
  43. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +16 -11
  44. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +37 -16
  45. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +15 -7
  46. package/lib/cjs/duet-menu-bar.cjs.entry.js +32 -22
  47. package/lib/cjs/duet-modal.cjs.entry.js +74 -18
  48. package/lib/cjs/duet-multiselect.cjs.entry.js +85 -39
  49. package/lib/cjs/duet-nav.cjs.entry.js +10 -6
  50. package/lib/cjs/duet-notification_2.cjs.entry.js +83 -27
  51. package/lib/cjs/duet-number-input.cjs.entry.js +175 -65
  52. package/lib/cjs/duet-overlay.cjs.entry.js +33 -12
  53. package/lib/cjs/duet-page-heading.cjs.entry.js +13 -8
  54. package/lib/cjs/duet-pagination_2.cjs.entry.js +147 -72
  55. package/lib/cjs/duet-phone-input.cjs.entry.js +76 -35
  56. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +108 -54
  57. package/lib/cjs/duet-progress.cjs.entry.js +31 -12
  58. package/lib/cjs/duet-promo-card.cjs.entry.js +24 -10
  59. package/lib/cjs/duet-radio_2.cjs.entry.js +100 -47
  60. package/lib/cjs/duet-range-slider.cjs.entry.js +70 -34
  61. package/lib/cjs/duet-scrollable_3.cjs.entry.js +172 -59
  62. package/lib/cjs/duet-section-layout.cjs.entry.js +13 -6
  63. package/lib/cjs/duet-select.cjs.entry.js +79 -37
  64. package/lib/cjs/duet-shaped-image.cjs.entry.js +13 -8
  65. package/lib/cjs/duet-show-more.cjs.entry.js +77 -35
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +8 -8
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +47 -14
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +18 -9
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +40 -23
  70. package/lib/cjs/duet-slideout.cjs.entry.js +37 -23
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +14 -4
  72. package/lib/cjs/duet-step_2.cjs.entry.js +52 -18
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +22 -7
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +22 -13
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +38 -17
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +16 -7
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +21 -15
  78. package/lib/cjs/duet-textarea.cjs.entry.js +98 -45
  79. package/lib/cjs/duet-toggle.cjs.entry.js +47 -26
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +19 -8
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +22 -11
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +43 -16
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +18 -7
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +9 -7
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +11 -20
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +91 -45
  87. package/lib/cjs/duet-tray.cjs.entry.js +60 -21
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +29 -10
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +10 -20
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -5
  91. package/lib/cjs/duet.cjs.js +8 -8
  92. package/lib/cjs/{errorcodes.utils-b47aaa45.js → errorcodes.utils-mZFkq5Tt.js} +2 -2
  93. package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
  94. package/lib/cjs/{focus-utils-c4163f8f.js → focus-utils-dqd59YI6.js} +1 -1
  95. package/lib/cjs/form-search-CzPfHB80.js +21 -0
  96. package/lib/cjs/{index-00821d28.js → index-CdC7dzZ-.js} +1845 -1369
  97. package/lib/cjs/{label-3ce3ebad.js → label-BQpxsrOR.js} +1 -1
  98. package/lib/cjs/{language-utils-77bf1c27.js → language-utils-A7DfQayC.js} +2 -2
  99. package/lib/cjs/loader.cjs.js +3 -5
  100. package/lib/cjs/{slot-utils-acd4cc20.js → slot-utils-DgJchaT4.js} +1 -1
  101. package/lib/cjs/{token-utils-5000595c.js → token-utils-BcI9qaMX.js} +2 -2
  102. package/lib/cjs/{tokens-57e06fe4.js → tokens-Qt4x7zcB.js} +4 -4
  103. package/lib/cjs/{tokens.module-7c947029.js → tokens.module-Dzg9dTSm.js} +1 -1
  104. package/lib/collection/collection-manifest.json +1 -1
  105. package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
  106. package/lib/collection/components/duet-alert/duet-alert.js +77 -32
  107. package/lib/collection/components/duet-badge/duet-badge.js +17 -4
  108. package/lib/collection/components/duet-banner/duet-banner.js +52 -23
  109. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +18 -7
  110. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +13 -4
  111. package/lib/collection/components/duet-button/duet-button.js +164 -80
  112. package/lib/collection/components/duet-callout/duet-callout.js +8 -2
  113. package/lib/collection/components/duet-caption/duet-caption.js +16 -4
  114. package/lib/collection/components/duet-card/duet-card.js +73 -32
  115. package/lib/collection/components/duet-checkbox/duet-checkbox.js +83 -44
  116. package/lib/collection/components/duet-chip/duet-chip.js +56 -33
  117. package/lib/collection/components/duet-choice/duet-checkmark.js +20 -5
  118. package/lib/collection/components/duet-choice/duet-choice.js +162 -75
  119. package/lib/collection/components/duet-choice-group/duet-choice-group.js +75 -32
  120. package/lib/collection/components/duet-collapsible/duet-collapsible.js +68 -24
  121. package/lib/collection/components/duet-combobox/duet-combobox.js +83 -45
  122. package/lib/collection/components/duet-contact-card/duet-contact-card.js +19 -17
  123. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +10 -4
  124. package/lib/collection/components/duet-date-picker/duet-date-picker.js +149 -67
  125. package/lib/collection/components/duet-divider/duet-divider.js +13 -3
  126. package/lib/collection/components/duet-editable-table/duet-editable-table.js +81 -24
  127. package/lib/collection/components/duet-empty-state/duet-empty-state.js +12 -3
  128. package/lib/collection/components/duet-fieldset/duet-fieldset.js +42 -20
  129. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +16 -6
  130. package/lib/collection/components/duet-footer/duet-footer.js +51 -23
  131. package/lib/collection/components/duet-grid/duet-grid.js +38 -8
  132. package/lib/collection/components/duet-grid-item/duet-grid-item.js +38 -11
  133. package/lib/collection/components/duet-header/duet-header.js +162 -74
  134. package/lib/collection/components/duet-heading/duet-heading.js +36 -12
  135. package/lib/collection/components/duet-hero/duet-hero.js +128 -41
  136. package/lib/collection/components/duet-icon/duet-icon.js +58 -16
  137. package/lib/collection/components/duet-input/duet-input.js +183 -93
  138. package/lib/collection/components/duet-label/duet-label.js +22 -7
  139. package/lib/collection/components/duet-layout/duet-layout.js +30 -7
  140. package/lib/collection/components/duet-link/duet-link.js +84 -26
  141. package/lib/collection/components/duet-list/duet-list.js +37 -8
  142. package/lib/collection/components/duet-list-item/duet-list-item.js +12 -2
  143. package/lib/collection/components/duet-logo/duet-logo.js +34 -7
  144. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +33 -20
  145. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +31 -20
  146. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +16 -8
  147. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +16 -8
  148. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +37 -14
  149. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +17 -6
  150. package/lib/collection/components/duet-modal/duet-modal.js +82 -23
  151. package/lib/collection/components/duet-multiselect/duet-multiselect.js +95 -45
  152. package/lib/collection/components/duet-nav/duet-nav.js +9 -2
  153. package/lib/collection/components/duet-notification/duet-notification.js +37 -7
  154. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +52 -22
  155. package/lib/collection/components/duet-number-input/duet-number-input.js +177 -87
  156. package/lib/collection/components/duet-overlay/duet-overlay.js +38 -14
  157. package/lib/collection/components/duet-page-heading/duet-page-heading.js +15 -7
  158. package/lib/collection/components/duet-pagination/duet-pagination.js +119 -65
  159. package/lib/collection/components/duet-paragraph/duet-paragraph.js +25 -6
  160. package/lib/collection/components/duet-phone-input/duet-phone-input.js +89 -44
  161. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +58 -33
  162. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +59 -27
  163. package/lib/collection/components/duet-progress/duet-progress.js +36 -14
  164. package/lib/collection/components/duet-promo-card/duet-promo-card.js +25 -8
  165. package/lib/collection/components/duet-radio/duet-radio.js +63 -45
  166. package/lib/collection/components/duet-radio-group/duet-radio-group.js +67 -28
  167. package/lib/collection/components/duet-range-slider/duet-range-slider.js +83 -44
  168. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +41 -12
  169. package/lib/collection/components/duet-scrollable/duet-scrollable.js +55 -18
  170. package/lib/collection/components/duet-section-layout/duet-section-layout.js +13 -3
  171. package/lib/collection/components/duet-select/duet-select.js +98 -53
  172. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +15 -7
  173. package/lib/collection/components/duet-show-more/duet-show-more.js +84 -35
  174. package/lib/collection/components/duet-slideout/duet-slideout.js +32 -15
  175. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +4 -1
  176. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +48 -13
  177. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +37 -17
  178. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +19 -7
  179. package/lib/collection/components/duet-spacer/duet-spacer.js +13 -3
  180. package/lib/collection/components/duet-spinner/duet-spinner.js +18 -5
  181. package/lib/collection/components/duet-status-icon/duet-status-icon.js +16 -4
  182. package/lib/collection/components/duet-step/duet-step.js +23 -14
  183. package/lib/collection/components/duet-stepper/duet-stepper.js +22 -5
  184. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +20 -11
  185. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +21 -9
  186. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +24 -6
  187. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +37 -14
  188. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +16 -4
  189. package/lib/collection/components/duet-tab/duet-tab.js +35 -21
  190. package/lib/collection/components/duet-tab-group/duet-tab-group.js +107 -40
  191. package/lib/collection/components/duet-table/duet-table.js +40 -11
  192. package/lib/collection/components/duet-textarea/duet-textarea.js +122 -66
  193. package/lib/collection/components/duet-toggle/duet-toggle.js +60 -36
  194. package/lib/collection/components/duet-toolbar/duet-toolbar.js +9 -4
  195. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +24 -10
  196. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +21 -7
  197. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +45 -16
  198. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +21 -7
  199. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +6 -9
  200. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +10 -11
  201. package/lib/collection/components/duet-tooltip/duet-tooltip.js +93 -44
  202. package/lib/collection/components/duet-tray/duet-tray.js +61 -19
  203. package/lib/collection/components/duet-upload/duet-upload.js +417 -211
  204. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +34 -12
  205. package/lib/collection/components/duet-upload-item/duet-upload-item.js +15 -16
  206. package/lib/collection/index.js +1 -0
  207. package/lib/collection/utils/test-utils.js +2 -2
  208. package/lib/duet/duet.esm.js +1 -1
  209. package/lib/duet/{p-7a41a208.entry.js → p-022a948c.entry.js} +1 -1
  210. package/lib/duet/p-09fe69e4.entry.js +4 -0
  211. package/lib/duet/p-0e72751a.entry.js +4 -0
  212. package/lib/duet/p-138538b8.entry.js +4 -0
  213. package/lib/duet/{p-fa070e35.entry.js → p-15f95fae.entry.js} +1 -1
  214. package/lib/duet/p-190b9ab3.entry.js +4 -0
  215. package/lib/duet/{p-feda74a6.entry.js → p-1af2ca54.entry.js} +1 -1
  216. package/lib/duet/p-1e769f0d.entry.js +4 -0
  217. package/lib/duet/p-1f5989b6.entry.js +4 -0
  218. package/lib/duet/{p-76b4b8b8.entry.js → p-1f8695a5.entry.js} +1 -1
  219. package/lib/duet/p-29e1d491.entry.js +4 -0
  220. package/lib/duet/p-2cbe593b.entry.js +4 -0
  221. package/lib/duet/p-32f7b711.entry.js +4 -0
  222. package/lib/duet/p-362f6fc2.entry.js +4 -0
  223. package/lib/duet/p-38b70269.entry.js +4 -0
  224. package/lib/duet/p-3fca2738.entry.js +4 -0
  225. package/lib/duet/p-44f37fb5.entry.js +4 -0
  226. package/lib/duet/{p-0e04987f.entry.js → p-48af1ecb.entry.js} +1 -1
  227. package/lib/duet/{p-2013ff49.entry.js → p-4aa49986.entry.js} +1 -1
  228. package/lib/duet/p-4c281745.entry.js +4 -0
  229. package/lib/duet/{p-c41397de.entry.js → p-4e945a94.entry.js} +1 -1
  230. package/lib/duet/p-56354b6a.entry.js +4 -0
  231. package/lib/duet/p-56cb675d.entry.js +4 -0
  232. package/lib/duet/p-5a75c2dd.entry.js +4 -0
  233. package/lib/duet/p-5d8d8118.entry.js +4 -0
  234. package/lib/duet/p-5f5bcada.entry.js +4 -0
  235. package/lib/duet/p-5iZMFvpJ.js +4 -0
  236. package/lib/duet/p-64021c0d.entry.js +4 -0
  237. package/lib/duet/p-64419d69.entry.js +4 -0
  238. package/lib/duet/p-6b17ff88.entry.js +4 -0
  239. package/lib/duet/p-6e621f1a.entry.js +4 -0
  240. package/lib/duet/p-740f6f1f.entry.js +4 -0
  241. package/lib/duet/{p-b76c9a8c.entry.js → p-7699005d.entry.js} +1 -1
  242. package/lib/duet/p-79255eb6.entry.js +4 -0
  243. package/lib/duet/p-7a319135.entry.js +4 -0
  244. package/lib/duet/p-82f7e5b7.entry.js +4 -0
  245. package/lib/duet/{p-323de867.entry.js → p-839e770e.entry.js} +1 -1
  246. package/lib/duet/p-85316d42.entry.js +4 -0
  247. package/lib/duet/p-885c2f54.entry.js +4 -0
  248. package/lib/duet/p-893e65fc.entry.js +4 -0
  249. package/lib/duet/p-8ca095ab.entry.js +4 -0
  250. package/lib/duet/p-8fd3fed6.entry.js +4 -0
  251. package/lib/duet/{p-279fd0c9.entry.js → p-93336ef6.entry.js} +1 -1
  252. package/lib/duet/p-95f64c62.entry.js +4 -0
  253. package/lib/duet/{p-46df9e4b.entry.js → p-96f19678.entry.js} +1 -1
  254. package/lib/duet/p-98088a03.entry.js +4 -0
  255. package/lib/duet/{p-12674919.entry.js → p-9a05eda1.entry.js} +1 -1
  256. package/lib/duet/p-9c942b69.entry.js +4 -0
  257. package/lib/duet/{p-38d6a55c.entry.js → p-9ee7773f.entry.js} +1 -1
  258. package/lib/duet/p-BGuG-JHD.js +5 -0
  259. package/lib/duet/p-BSVeUfs_.js +4 -0
  260. package/lib/duet/p-BVgBUIYF.js +4 -0
  261. package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
  262. package/lib/duet/{p-465be57f.js → p-CKWzhSi1.js} +1 -1
  263. package/lib/duet/p-CwQkRqt4.js +4 -0
  264. package/lib/duet/p-DJ_0Rwfo.js +4 -0
  265. package/lib/duet/{p-744b8ee1.js → p-DQNSmB4A.js} +1 -1
  266. package/lib/duet/p-DWTFQwbu.js +4 -0
  267. package/lib/duet/{p-12b49f6f.js → p-DXDaS3zE.js} +1 -1
  268. package/lib/duet/{p-a45e3f8b.js → p-Db8rvjPI.js} +1 -1
  269. package/lib/duet/p-DkXykZBx.js +4 -0
  270. package/lib/duet/p-DvwKrUS6.js +4 -0
  271. package/lib/duet/p-ObNrEFDJ.js +4 -0
  272. package/lib/duet/p-UQH7pb1d.js +4 -0
  273. package/lib/duet/{p-05a9d58f.entry.js → p-a0c26d74.entry.js} +1 -1
  274. package/lib/duet/{p-25109796.entry.js → p-a4613009.entry.js} +1 -1
  275. package/lib/duet/p-a57b80f6.entry.js +4 -0
  276. package/lib/duet/{p-d4dd9fea.entry.js → p-a7dc80d5.entry.js} +1 -1
  277. package/lib/duet/{p-0febcf5b.entry.js → p-a893d1f9.entry.js} +1 -1
  278. package/lib/duet/p-a95a9a4d.entry.js +4 -0
  279. package/lib/duet/p-a9b45f8b.entry.js +4 -0
  280. package/lib/duet/{p-29e6f9b7.entry.js → p-aadd810c.entry.js} +1 -1
  281. package/lib/duet/p-ae4af39c.entry.js +4 -0
  282. package/lib/duet/p-ae5e487c.entry.js +4 -0
  283. package/lib/duet/p-b6517bc0.entry.js +4 -0
  284. package/lib/duet/p-b96af1da.entry.js +4 -0
  285. package/lib/duet/{p-0d045bb2.entry.js → p-be665fb2.entry.js} +1 -1
  286. package/lib/duet/{p-c2f40f22.entry.js → p-be70c5b0.entry.js} +1 -1
  287. package/lib/duet/p-bfc2e504.entry.js +4 -0
  288. package/lib/duet/p-c00040f7.entry.js +4 -0
  289. package/lib/duet/p-c03603ba.entry.js +4 -0
  290. package/lib/duet/{p-23435148.entry.js → p-c089e413.entry.js} +1 -1
  291. package/lib/duet/p-c3aa1f9b.entry.js +4 -0
  292. package/lib/duet/p-c489f228.entry.js +4 -0
  293. package/lib/duet/p-c4d0a7f2.entry.js +4 -0
  294. package/lib/duet/p-c5dbeb9d.entry.js +4 -0
  295. package/lib/duet/p-c6237212.entry.js +4 -0
  296. package/lib/duet/p-cf728e59.entry.js +4 -0
  297. package/lib/duet/{p-760e5874.entry.js → p-d155856d.entry.js} +1 -1
  298. package/lib/duet/p-d1f5b0cb.entry.js +4 -0
  299. package/lib/duet/p-d386eb3c.entry.js +4 -0
  300. package/lib/duet/p-d8ceab90.entry.js +4 -0
  301. package/lib/duet/{p-750d4767.entry.js → p-dac62f09.entry.js} +1 -1
  302. package/lib/duet/p-e4156276.entry.js +4 -0
  303. package/lib/duet/p-e6b06321.entry.js +4 -0
  304. package/lib/duet/p-e6d38c72.entry.js +4 -0
  305. package/lib/duet/{p-5fb4ac45.entry.js → p-ec552dc7.entry.js} +1 -1
  306. package/lib/duet/p-ff5188ab.entry.js +4 -0
  307. package/lib/duet/p-vVCYtBMj.js +4 -0
  308. package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
  309. package/lib/{dist-custom-elements/p-afb6f7fb.js → esm/a11y-utils-Bdgp_pLF.js} +1 -1
  310. package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
  311. package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
  312. package/lib/esm/{app-globals-2c6c1103.js → app-globals-BM3P_KO9.js} +2 -2
  313. package/lib/esm/duet-action-button.entry.js +83 -26
  314. package/lib/esm/duet-alert.entry.js +72 -28
  315. package/lib/esm/duet-badge.entry.js +16 -4
  316. package/lib/esm/duet-banner.entry.js +49 -21
  317. package/lib/esm/duet-breadcrumb.entry.js +33 -11
  318. package/lib/esm/duet-breadcrumbs.entry.js +17 -9
  319. package/lib/esm/duet-button_2.entry.js +147 -52
  320. package/lib/esm/duet-callout.entry.js +10 -5
  321. package/lib/esm/duet-caption_4.entry.js +175 -32
  322. package/lib/esm/duet-card.entry.js +80 -28
  323. package/lib/esm/duet-checkbox.entry.js +65 -27
  324. package/lib/esm/duet-checkmark.entry.js +18 -4
  325. package/lib/esm/duet-chip.entry.js +49 -27
  326. package/lib/esm/duet-choice_2.entry.js +213 -73
  327. package/lib/esm/duet-collapsible.entry.js +67 -23
  328. package/lib/esm/duet-combobox.entry.js +79 -44
  329. package/lib/esm/duet-contact-card.entry.js +14 -13
  330. package/lib/esm/duet-cookie-consent.entry.js +12 -7
  331. package/lib/esm/duet-date-picker.entry.js +142 -50
  332. package/lib/esm/duet-divider_2.entry.js +26 -8
  333. package/lib/esm/duet-editable-table_3.entry.js +477 -196
  334. package/lib/esm/duet-empty-state.entry.js +12 -4
  335. package/lib/esm/duet-fieldset.entry.js +38 -17
  336. package/lib/esm/duet-file-chooser.entry.js +16 -7
  337. package/lib/esm/duet-footer.entry.js +52 -24
  338. package/lib/esm/duet-grid_2.entry.js +65 -10
  339. package/lib/esm/duet-header_2.entry.js +251 -84
  340. package/lib/esm/duet-hero.entry.js +110 -24
  341. package/lib/esm/duet-icon.entry.js +50 -9
  342. package/lib/esm/duet-input_2.entry.js +182 -68
  343. package/lib/esm/duet-layout.entry.js +27 -5
  344. package/lib/esm/duet-list_2.entry.js +44 -7
  345. package/lib/esm/duet-menu-bar-button.entry.js +21 -11
  346. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +16 -9
  347. package/lib/esm/duet-menu-bar-dropdown.entry.js +16 -9
  348. package/lib/esm/duet-menu-bar-item.entry.js +37 -14
  349. package/lib/esm/duet-menu-bar-link.entry.js +15 -5
  350. package/lib/esm/duet-menu-bar.entry.js +32 -20
  351. package/lib/esm/duet-modal.entry.js +74 -16
  352. package/lib/esm/duet-multiselect.entry.js +85 -37
  353. package/lib/esm/duet-nav.entry.js +10 -4
  354. package/lib/esm/duet-notification_2.entry.js +83 -25
  355. package/lib/esm/duet-number-input.entry.js +176 -64
  356. package/lib/esm/duet-overlay.entry.js +33 -10
  357. package/lib/esm/duet-page-heading.entry.js +13 -6
  358. package/lib/esm/duet-pagination_2.entry.js +147 -70
  359. package/lib/esm/duet-phone-input.entry.js +76 -33
  360. package/lib/esm/duet-popup-menu_2.entry.js +105 -49
  361. package/lib/esm/duet-progress.entry.js +31 -10
  362. package/lib/esm/duet-promo-card.entry.js +24 -8
  363. package/lib/esm/duet-radio_2.entry.js +100 -45
  364. package/lib/esm/duet-range-slider.entry.js +70 -32
  365. package/lib/esm/duet-scrollable_3.entry.js +172 -57
  366. package/lib/esm/duet-section-layout.entry.js +13 -4
  367. package/lib/esm/duet-select.entry.js +79 -35
  368. package/lib/esm/duet-shaped-image.entry.js +13 -6
  369. package/lib/esm/duet-show-more.entry.js +77 -33
  370. package/lib/esm/duet-slideout-lang.entry.js +8 -6
  371. package/lib/esm/duet-slideout-link.entry.js +47 -12
  372. package/lib/esm/duet-slideout-panel-dropdown.entry.js +18 -7
  373. package/lib/esm/duet-slideout-panel.entry.js +40 -21
  374. package/lib/esm/duet-slideout.entry.js +37 -21
  375. package/lib/esm/duet-status-icon.entry.js +14 -2
  376. package/lib/esm/duet-step_2.entry.js +53 -17
  377. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +22 -5
  378. package/lib/esm/duet-submenu-bar-dropdown.entry.js +22 -11
  379. package/lib/esm/duet-submenu-bar-item.entry.js +38 -15
  380. package/lib/esm/duet-submenu-bar-link.entry.js +16 -5
  381. package/lib/esm/duet-submenu-bar.entry.js +21 -13
  382. package/lib/esm/duet-textarea.entry.js +98 -43
  383. package/lib/esm/duet-toggle.entry.js +47 -24
  384. package/lib/esm/duet-toolbar-dropdown-link.entry.js +19 -6
  385. package/lib/esm/duet-toolbar-dropdown.entry.js +22 -9
  386. package/lib/esm/duet-toolbar-item.entry.js +43 -14
  387. package/lib/esm/duet-toolbar-link.entry.js +18 -5
  388. package/lib/esm/duet-toolbar.entry.js +9 -5
  389. package/lib/esm/duet-tooltip-button_2.entry.js +11 -18
  390. package/lib/esm/duet-tooltip.entry.js +90 -42
  391. package/lib/esm/duet-tray.entry.js +60 -19
  392. package/lib/esm/duet-upload-aria-status.entry.js +29 -8
  393. package/lib/esm/duet-upload-item.entry.js +10 -18
  394. package/lib/esm/duet-visually-hidden.entry.js +2 -3
  395. package/lib/esm/duet.js +7 -6
  396. package/lib/esm/{errorcodes.utils-86af68b7.js → errorcodes.utils-BgVG3eUP.js} +3 -3
  397. package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
  398. package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-B1AOXMlP.js} +1 -1
  399. package/lib/esm/form-search-CevX33LA.js +19 -0
  400. package/lib/esm/{index-a830b2de.js → index-BGuG-JHD.js} +1843 -1365
  401. package/lib/{dist-custom-elements/p-8db11326.js → esm/keyboard-utils-Db8rvjPI.js} +1 -1
  402. package/lib/{dist-custom-elements/p-42619f94.js → esm/label-BrSxwvH-.js} +1 -1
  403. package/lib/esm/{language-utils-40caac4f.js → language-utils-BxXgd2r7.js} +2 -2
  404. package/lib/esm/loader.js +4 -4
  405. package/lib/{dist-custom-elements/p-ad615991.js → esm/slot-utils-B1zQ6tzO.js} +2 -2
  406. package/lib/{dist-custom-elements/p-0562173d.js → esm/token-utils-D2bU4zM_.js} +2 -2
  407. package/lib/esm/{tokens-84fb2357.js → tokens-DkXykZBx.js} +5 -5
  408. package/lib/{dist-custom-elements/p-cea716f7.js → esm/tokens.module-UQH7pb1d.js} +2 -2
  409. package/lib/index.js +1 -1
  410. package/lib/loader/cdn.js +1 -2
  411. package/lib/loader/index.cjs.js +1 -2
  412. package/lib/loader/index.es2017.js +0 -1
  413. package/lib/loader/index.js +1 -2
  414. package/lib/types/components.d.ts +1611 -0
  415. package/lib/types/index.d.ts +1 -0
  416. package/lib/types/stencil-public-runtime.d.ts +35 -6
  417. package/package.json +23 -9
  418. package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
  419. package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
  420. package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
  421. package/lib/cjs/form-search-d61b2843.js +0 -8
  422. package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
  423. package/lib/dist-custom-elements/duet-action-button.js +0 -9
  424. package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
  425. package/lib/dist-custom-elements/duet-alert.js +0 -9
  426. package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
  427. package/lib/dist-custom-elements/duet-badge.js +0 -9
  428. package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
  429. package/lib/dist-custom-elements/duet-banner.js +0 -157
  430. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
  431. package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
  432. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
  433. package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
  434. package/lib/dist-custom-elements/duet-button.d.ts +0 -11
  435. package/lib/dist-custom-elements/duet-button.js +0 -9
  436. package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
  437. package/lib/dist-custom-elements/duet-callout.js +0 -72
  438. package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
  439. package/lib/dist-custom-elements/duet-caption.js +0 -9
  440. package/lib/dist-custom-elements/duet-card.d.ts +0 -11
  441. package/lib/dist-custom-elements/duet-card.js +0 -174
  442. package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
  443. package/lib/dist-custom-elements/duet-checkbox.js +0 -9
  444. package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
  445. package/lib/dist-custom-elements/duet-checkmark.js +0 -9
  446. package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
  447. package/lib/dist-custom-elements/duet-chip.js +0 -9
  448. package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
  449. package/lib/dist-custom-elements/duet-choice-group.js +0 -228
  450. package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
  451. package/lib/dist-custom-elements/duet-choice.js +0 -454
  452. package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
  453. package/lib/dist-custom-elements/duet-collapsible.js +0 -176
  454. package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
  455. package/lib/dist-custom-elements/duet-combobox.js +0 -706
  456. package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
  457. package/lib/dist-custom-elements/duet-contact-card.js +0 -134
  458. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
  459. package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
  460. package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
  461. package/lib/dist-custom-elements/duet-date-picker.js +0 -939
  462. package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
  463. package/lib/dist-custom-elements/duet-divider.js +0 -9
  464. package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
  465. package/lib/dist-custom-elements/duet-editable-table.js +0 -258
  466. package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
  467. package/lib/dist-custom-elements/duet-empty-state.js +0 -9
  468. package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
  469. package/lib/dist-custom-elements/duet-fieldset.js +0 -9
  470. package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
  471. package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
  472. package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
  473. package/lib/dist-custom-elements/duet-footer.js +0 -223
  474. package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
  475. package/lib/dist-custom-elements/duet-grid-item.js +0 -9
  476. package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
  477. package/lib/dist-custom-elements/duet-grid.js +0 -9
  478. package/lib/dist-custom-elements/duet-header.d.ts +0 -11
  479. package/lib/dist-custom-elements/duet-header.js +0 -698
  480. package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
  481. package/lib/dist-custom-elements/duet-heading.js +0 -9
  482. package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
  483. package/lib/dist-custom-elements/duet-hero.js +0 -299
  484. package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
  485. package/lib/dist-custom-elements/duet-icon.js +0 -9
  486. package/lib/dist-custom-elements/duet-input.d.ts +0 -11
  487. package/lib/dist-custom-elements/duet-input.js +0 -9
  488. package/lib/dist-custom-elements/duet-label.d.ts +0 -11
  489. package/lib/dist-custom-elements/duet-label.js +0 -70
  490. package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
  491. package/lib/dist-custom-elements/duet-layout.js +0 -94
  492. package/lib/dist-custom-elements/duet-link.d.ts +0 -11
  493. package/lib/dist-custom-elements/duet-link.js +0 -9
  494. package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
  495. package/lib/dist-custom-elements/duet-list-item.js +0 -9
  496. package/lib/dist-custom-elements/duet-list.d.ts +0 -11
  497. package/lib/dist-custom-elements/duet-list.js +0 -9
  498. package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
  499. package/lib/dist-custom-elements/duet-logo.js +0 -9
  500. package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
  501. package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
  502. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
  503. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
  504. package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
  505. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
  506. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
  507. package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
  508. package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
  509. package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
  510. package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
  511. package/lib/dist-custom-elements/duet-menu-bar.js +0 -207
  512. package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
  513. package/lib/dist-custom-elements/duet-modal.js +0 -382
  514. package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
  515. package/lib/dist-custom-elements/duet-multiselect.js +0 -346
  516. package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
  517. package/lib/dist-custom-elements/duet-nav.js +0 -54
  518. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
  519. package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
  520. package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
  521. package/lib/dist-custom-elements/duet-notification.js +0 -95
  522. package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
  523. package/lib/dist-custom-elements/duet-number-input.js +0 -484
  524. package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
  525. package/lib/dist-custom-elements/duet-overlay.js +0 -9
  526. package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
  527. package/lib/dist-custom-elements/duet-page-heading.js +0 -87
  528. package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
  529. package/lib/dist-custom-elements/duet-pagination.js +0 -493
  530. package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
  531. package/lib/dist-custom-elements/duet-paragraph.js +0 -9
  532. package/lib/dist-custom-elements/duet-phone-input.d.ts +0 -11
  533. package/lib/dist-custom-elements/duet-phone-input.js +0 -2136
  534. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
  535. package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
  536. package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
  537. package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
  538. package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
  539. package/lib/dist-custom-elements/duet-progress.js +0 -9
  540. package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
  541. package/lib/dist-custom-elements/duet-promo-card.js +0 -105
  542. package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
  543. package/lib/dist-custom-elements/duet-radio-group.js +0 -213
  544. package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
  545. package/lib/dist-custom-elements/duet-radio.js +0 -230
  546. package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
  547. package/lib/dist-custom-elements/duet-range-slider.js +0 -181
  548. package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
  549. package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
  550. package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
  551. package/lib/dist-custom-elements/duet-scrollable.js +0 -9
  552. package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
  553. package/lib/dist-custom-elements/duet-section-layout.js +0 -56
  554. package/lib/dist-custom-elements/duet-select.d.ts +0 -11
  555. package/lib/dist-custom-elements/duet-select.js +0 -9
  556. package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
  557. package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
  558. package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
  559. package/lib/dist-custom-elements/duet-show-more.js +0 -9
  560. package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
  561. package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
  562. package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
  563. package/lib/dist-custom-elements/duet-slideout-link.js +0 -98
  564. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
  565. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
  566. package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
  567. package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
  568. package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
  569. package/lib/dist-custom-elements/duet-slideout.js +0 -328
  570. package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
  571. package/lib/dist-custom-elements/duet-spacer.js +0 -9
  572. package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
  573. package/lib/dist-custom-elements/duet-spinner.js +0 -9
  574. package/lib/dist-custom-elements/duet-status-icon.d.ts +0 -11
  575. package/lib/dist-custom-elements/duet-status-icon.js +0 -9
  576. package/lib/dist-custom-elements/duet-step.d.ts +0 -11
  577. package/lib/dist-custom-elements/duet-step.js +0 -147
  578. package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
  579. package/lib/dist-custom-elements/duet-stepper.js +0 -151
  580. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
  581. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
  582. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
  583. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
  584. package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
  585. package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
  586. package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
  587. package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
  588. package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
  589. package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
  590. package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
  591. package/lib/dist-custom-elements/duet-tab-group.js +0 -321
  592. package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
  593. package/lib/dist-custom-elements/duet-tab.js +0 -150
  594. package/lib/dist-custom-elements/duet-table.d.ts +0 -11
  595. package/lib/dist-custom-elements/duet-table.js +0 -9
  596. package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
  597. package/lib/dist-custom-elements/duet-textarea.js +0 -301
  598. package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
  599. package/lib/dist-custom-elements/duet-toggle.js +0 -146
  600. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
  601. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
  602. package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
  603. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
  604. package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
  605. package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
  606. package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
  607. package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
  608. package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
  609. package/lib/dist-custom-elements/duet-toolbar.js +0 -67
  610. package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
  611. package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
  612. package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
  613. package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
  614. package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
  615. package/lib/dist-custom-elements/duet-tooltip.js +0 -9
  616. package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
  617. package/lib/dist-custom-elements/duet-tray.js +0 -146
  618. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
  619. package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
  620. package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
  621. package/lib/dist-custom-elements/duet-upload-item.js +0 -9
  622. package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
  623. package/lib/dist-custom-elements/duet-upload.js +0 -1450
  624. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
  625. package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
  626. package/lib/dist-custom-elements/index.d.ts +0 -33
  627. package/lib/dist-custom-elements/index.js +0 -29
  628. package/lib/dist-custom-elements/p-0cd28b7b.js +0 -102
  629. package/lib/dist-custom-elements/p-0fb1efbc.js +0 -317
  630. package/lib/dist-custom-elements/p-115c79b6.js +0 -6
  631. package/lib/dist-custom-elements/p-15809286.js +0 -50
  632. package/lib/dist-custom-elements/p-18dee42a.js +0 -124
  633. package/lib/dist-custom-elements/p-1d115447.js +0 -268
  634. package/lib/dist-custom-elements/p-28c85b1c.js +0 -166
  635. package/lib/dist-custom-elements/p-35375593.js +0 -161
  636. package/lib/dist-custom-elements/p-3695c0cf.js +0 -614
  637. package/lib/dist-custom-elements/p-42c1fc90.js +0 -321
  638. package/lib/dist-custom-elements/p-44ae5535.js +0 -370
  639. package/lib/dist-custom-elements/p-49b8ef8e.js +0 -55
  640. package/lib/dist-custom-elements/p-4f6ac36d.js +0 -39
  641. package/lib/dist-custom-elements/p-605c5b0f.js +0 -61
  642. package/lib/dist-custom-elements/p-61a64a72.js +0 -110
  643. package/lib/dist-custom-elements/p-63200e87.js +0 -105
  644. package/lib/dist-custom-elements/p-65398a24.js +0 -63
  645. package/lib/dist-custom-elements/p-7b6a89e9.js +0 -237
  646. package/lib/dist-custom-elements/p-821de204.js +0 -1630
  647. package/lib/dist-custom-elements/p-83e0135b.js +0 -82
  648. package/lib/dist-custom-elements/p-861771fa.js +0 -73
  649. package/lib/dist-custom-elements/p-91688dd8.js +0 -84
  650. package/lib/dist-custom-elements/p-92d1b72f.js +0 -194
  651. package/lib/dist-custom-elements/p-959f2240.js +0 -645
  652. package/lib/dist-custom-elements/p-993aea39.js +0 -175
  653. package/lib/dist-custom-elements/p-999222a2.js +0 -154
  654. package/lib/dist-custom-elements/p-9a9b1ce5.js +0 -81
  655. package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
  656. package/lib/dist-custom-elements/p-a1b0454c.js +0 -56
  657. package/lib/dist-custom-elements/p-a39af5e2.js +0 -108
  658. package/lib/dist-custom-elements/p-a3d3c420.js +0 -60
  659. package/lib/dist-custom-elements/p-a95a6fb7.js +0 -453
  660. package/lib/dist-custom-elements/p-a9727b6a.js +0 -213
  661. package/lib/dist-custom-elements/p-b71858bd.js +0 -214
  662. package/lib/dist-custom-elements/p-c1e56f9a.js +0 -206
  663. package/lib/dist-custom-elements/p-cd328521.js +0 -80
  664. package/lib/dist-custom-elements/p-cde80d94.js +0 -198
  665. package/lib/dist-custom-elements/p-d004da5f.js +0 -6
  666. package/lib/dist-custom-elements/p-d5644004.js +0 -124
  667. package/lib/dist-custom-elements/p-ef48f2c7.js +0 -61
  668. package/lib/dist-custom-elements/p-f11208c3.js +0 -6
  669. package/lib/dist-custom-elements/p-f2c2f3d2.js +0 -2130
  670. package/lib/dist-custom-elements/p-f6000a03.js +0 -753
  671. package/lib/dist-custom-elements/p-f8ba399b.js +0 -63
  672. package/lib/dist-custom-elements/p-fb43ee87.js +0 -127
  673. package/lib/dist-custom-elements/p-fb723dff.js +0 -100
  674. package/lib/duet/duet.js +0 -127
  675. package/lib/duet/p-010dd6d5.entry.js +0 -4
  676. package/lib/duet/p-01ef338b.system.entry.js +0 -4
  677. package/lib/duet/p-020f583d.entry.js +0 -4
  678. package/lib/duet/p-03c96847.system.entry.js +0 -4
  679. package/lib/duet/p-04aad5a1.entry.js +0 -4
  680. package/lib/duet/p-0511fd26.system.js +0 -4
  681. package/lib/duet/p-05225696.system.entry.js +0 -4
  682. package/lib/duet/p-053b71e6.system.js +0 -4
  683. package/lib/duet/p-0562616e.system.entry.js +0 -4
  684. package/lib/duet/p-068cf3e6.system.entry.js +0 -4
  685. package/lib/duet/p-096ca5f2.system.entry.js +0 -4
  686. package/lib/duet/p-0a407ea6.entry.js +0 -4
  687. package/lib/duet/p-0c4bbd65.system.js +0 -4
  688. package/lib/duet/p-0c91e827.system.entry.js +0 -4
  689. package/lib/duet/p-0d738a25.entry.js +0 -4
  690. package/lib/duet/p-0d7da85a.js +0 -4
  691. package/lib/duet/p-0dc9089b.system.js +0 -4
  692. package/lib/duet/p-0f75edd4.system.entry.js +0 -4
  693. package/lib/duet/p-1047a738.system.entry.js +0 -4
  694. package/lib/duet/p-1054dba4.system.entry.js +0 -4
  695. package/lib/duet/p-10e56ab2.entry.js +0 -4
  696. package/lib/duet/p-115c79b6.js +0 -4
  697. package/lib/duet/p-145c3b24.entry.js +0 -4
  698. package/lib/duet/p-17004202.system.entry.js +0 -4
  699. package/lib/duet/p-18060b9c.system.entry.js +0 -4
  700. package/lib/duet/p-18e8baae.system.entry.js +0 -4
  701. package/lib/duet/p-19a0cdc0.system.entry.js +0 -4
  702. package/lib/duet/p-19c0e251.system.entry.js +0 -4
  703. package/lib/duet/p-1a1d3f9e.entry.js +0 -4
  704. package/lib/duet/p-1d6153e1.system.entry.js +0 -4
  705. package/lib/duet/p-201ec410.entry.js +0 -4
  706. package/lib/duet/p-205d2384.system.entry.js +0 -4
  707. package/lib/duet/p-21500424.entry.js +0 -4
  708. package/lib/duet/p-215bd94e.entry.js +0 -4
  709. package/lib/duet/p-217c18b8.entry.js +0 -4
  710. package/lib/duet/p-269e2b32.system.entry.js +0 -4
  711. package/lib/duet/p-2af64b95.system.entry.js +0 -4
  712. package/lib/duet/p-2ed426d9.system.entry.js +0 -4
  713. package/lib/duet/p-2f7a111a.entry.js +0 -4
  714. package/lib/duet/p-30e15c0b.system.entry.js +0 -4
  715. package/lib/duet/p-3214f981.system.entry.js +0 -4
  716. package/lib/duet/p-32f3a8fc.system.entry.js +0 -4
  717. package/lib/duet/p-361082c8.entry.js +0 -4
  718. package/lib/duet/p-372b9ced.system.entry.js +0 -4
  719. package/lib/duet/p-3767d0d2.system.entry.js +0 -4
  720. package/lib/duet/p-3c0d9ecf.system.entry.js +0 -4
  721. package/lib/duet/p-3dd22609.entry.js +0 -4
  722. package/lib/duet/p-3e2dceb1.entry.js +0 -4
  723. package/lib/duet/p-3f0f2506.system.entry.js +0 -4
  724. package/lib/duet/p-411babaf.entry.js +0 -4
  725. package/lib/duet/p-414698d0.system.entry.js +0 -4
  726. package/lib/duet/p-41982d26.system.js +0 -4
  727. package/lib/duet/p-44b36dbf.js +0 -5
  728. package/lib/duet/p-45700c8c.entry.js +0 -4
  729. package/lib/duet/p-46b1437a.system.entry.js +0 -4
  730. package/lib/duet/p-47dfb7d9.system.entry.js +0 -4
  731. package/lib/duet/p-49957220.system.js +0 -4
  732. package/lib/duet/p-4a3dae6f.js +0 -4
  733. package/lib/duet/p-4a836db3.entry.js +0 -4
  734. package/lib/duet/p-4aadd927.entry.js +0 -4
  735. package/lib/duet/p-4cff3036.system.js +0 -4
  736. package/lib/duet/p-4d81fd4b.system.entry.js +0 -4
  737. package/lib/duet/p-4e97bc75.entry.js +0 -4
  738. package/lib/duet/p-50b6d86c.system.entry.js +0 -4
  739. package/lib/duet/p-528fd238.entry.js +0 -4
  740. package/lib/duet/p-52d44078.entry.js +0 -4
  741. package/lib/duet/p-533f6503.system.entry.js +0 -4
  742. package/lib/duet/p-53ccc61f.entry.js +0 -4
  743. package/lib/duet/p-553e83f7.system.entry.js +0 -4
  744. package/lib/duet/p-5577da59.system.js +0 -4
  745. package/lib/duet/p-560c69af.system.entry.js +0 -4
  746. package/lib/duet/p-56ad7189.system.js +0 -4
  747. package/lib/duet/p-590a4048.system.entry.js +0 -4
  748. package/lib/duet/p-5a27a619.system.entry.js +0 -4
  749. package/lib/duet/p-5cf25ba2.entry.js +0 -4
  750. package/lib/duet/p-5e0654cc.system.js +0 -4
  751. package/lib/duet/p-5e3f9cd1.entry.js +0 -4
  752. package/lib/duet/p-5ed29c82.system.entry.js +0 -4
  753. package/lib/duet/p-6324b774.entry.js +0 -4
  754. package/lib/duet/p-63fef46e.system.entry.js +0 -4
  755. package/lib/duet/p-64a58c4a.entry.js +0 -4
  756. package/lib/duet/p-654b234a.system.entry.js +0 -4
  757. package/lib/duet/p-6970fc5d.entry.js +0 -4
  758. package/lib/duet/p-6ffbffc7.entry.js +0 -4
  759. package/lib/duet/p-707c7490.entry.js +0 -4
  760. package/lib/duet/p-72650200.system.entry.js +0 -4
  761. package/lib/duet/p-734350ef.system.js +0 -4
  762. package/lib/duet/p-737740f7.system.entry.js +0 -4
  763. package/lib/duet/p-739af934.entry.js +0 -4
  764. package/lib/duet/p-752fa0fc.system.js +0 -4
  765. package/lib/duet/p-7556653d.system.entry.js +0 -4
  766. package/lib/duet/p-76dc7014.system.entry.js +0 -4
  767. package/lib/duet/p-798f979f.system.js +0 -4
  768. package/lib/duet/p-7aa146c1.system.entry.js +0 -4
  769. package/lib/duet/p-7be1d938.entry.js +0 -4
  770. package/lib/duet/p-7c66ce9f.entry.js +0 -4
  771. package/lib/duet/p-7f6cbb90.entry.js +0 -4
  772. package/lib/duet/p-810d4680.entry.js +0 -4
  773. package/lib/duet/p-858b17a7.system.entry.js +0 -4
  774. package/lib/duet/p-85f6e856.system.entry.js +0 -4
  775. package/lib/duet/p-8c6f575c.system.entry.js +0 -4
  776. package/lib/duet/p-8dfc3a30.entry.js +0 -4
  777. package/lib/duet/p-8ea8b678.entry.js +0 -4
  778. package/lib/duet/p-8f477bd6.system.js +0 -4
  779. package/lib/duet/p-8faaaf5f.system.js +0 -4
  780. package/lib/duet/p-8fb2b5b5.entry.js +0 -4
  781. package/lib/duet/p-92757eb7.system.entry.js +0 -4
  782. package/lib/duet/p-928662aa.system.entry.js +0 -4
  783. package/lib/duet/p-96643444.system.entry.js +0 -4
  784. package/lib/duet/p-98535abd.entry.js +0 -4
  785. package/lib/duet/p-98636086.system.js +0 -4
  786. package/lib/duet/p-9a43132b.system.js +0 -4
  787. package/lib/duet/p-a20b744b.entry.js +0 -4
  788. package/lib/duet/p-a5eea99b.system.entry.js +0 -4
  789. package/lib/duet/p-a76b6eef.system.entry.js +0 -4
  790. package/lib/duet/p-a924233f.system.entry.js +0 -4
  791. package/lib/duet/p-a943a02a.entry.js +0 -4
  792. package/lib/duet/p-aa80ef8a.entry.js +0 -4
  793. package/lib/duet/p-aa885518.system.entry.js +0 -4
  794. package/lib/duet/p-abaf6d0e.entry.js +0 -4
  795. package/lib/duet/p-ad1c40f5.js +0 -4
  796. package/lib/duet/p-afad5fd3.system.js +0 -4
  797. package/lib/duet/p-afd43870.entry.js +0 -4
  798. package/lib/duet/p-b0e2884d.system.entry.js +0 -4
  799. package/lib/duet/p-b1f33063.system.js +0 -4
  800. package/lib/duet/p-b503bcdd.system.entry.js +0 -4
  801. package/lib/duet/p-b50ea79d.system.entry.js +0 -4
  802. package/lib/duet/p-b54723a9.system.entry.js +0 -4
  803. package/lib/duet/p-b7a34bd4.entry.js +0 -4
  804. package/lib/duet/p-b7f6339f.system.entry.js +0 -4
  805. package/lib/duet/p-b864159a.system.js +0 -4
  806. package/lib/duet/p-b8b21423.system.entry.js +0 -4
  807. package/lib/duet/p-b9e2b3ba.entry.js +0 -4
  808. package/lib/duet/p-ba03d034.system.js +0 -4
  809. package/lib/duet/p-c3a69e37.js +0 -4
  810. package/lib/duet/p-c5839bf5.entry.js +0 -4
  811. package/lib/duet/p-c7654999.entry.js +0 -4
  812. package/lib/duet/p-cbf629b3.system.entry.js +0 -4
  813. package/lib/duet/p-cc5e6288.system.js +0 -4
  814. package/lib/duet/p-cc67e773.js +0 -4
  815. package/lib/duet/p-cd0785ee.system.entry.js +0 -4
  816. package/lib/duet/p-cf6b88ae.entry.js +0 -4
  817. package/lib/duet/p-cff8b063.entry.js +0 -4
  818. package/lib/duet/p-d004da5f.js +0 -4
  819. package/lib/duet/p-d07eec56.system.entry.js +0 -4
  820. package/lib/duet/p-d35ab8b7.system.entry.js +0 -4
  821. package/lib/duet/p-d50d03f7.system.entry.js +0 -4
  822. package/lib/duet/p-d53d7fd5.entry.js +0 -4
  823. package/lib/duet/p-d55299c9.entry.js +0 -4
  824. package/lib/duet/p-d61d7080.entry.js +0 -4
  825. package/lib/duet/p-d6ed2033.system.entry.js +0 -4
  826. package/lib/duet/p-d90e530c.system.entry.js +0 -4
  827. package/lib/duet/p-db2ccb9d.system.js +0 -4
  828. package/lib/duet/p-e07ee017.system.entry.js +0 -4
  829. package/lib/duet/p-e12066c8.system.js +0 -4
  830. package/lib/duet/p-e17c5d6a.entry.js +0 -4
  831. package/lib/duet/p-e1c09dd8.system.entry.js +0 -4
  832. package/lib/duet/p-e216bea4.system.js +0 -4
  833. package/lib/duet/p-e4af314b.system.entry.js +0 -4
  834. package/lib/duet/p-e4c8559c.system.js +0 -4
  835. package/lib/duet/p-e5aecda6.system.entry.js +0 -4
  836. package/lib/duet/p-e6b5a1c7.system.js +0 -4
  837. package/lib/duet/p-e9cbe789.system.entry.js +0 -4
  838. package/lib/duet/p-ea787ed0.entry.js +0 -4
  839. package/lib/duet/p-eb463133.system.entry.js +0 -4
  840. package/lib/duet/p-eb83b46d.system.entry.js +0 -4
  841. package/lib/duet/p-ec581904.entry.js +0 -4
  842. package/lib/duet/p-ed3748dc.js +0 -4
  843. package/lib/duet/p-eecd1b93.system.entry.js +0 -4
  844. package/lib/duet/p-f0ee9aae.system.entry.js +0 -4
  845. package/lib/duet/p-f0fc3170.system.entry.js +0 -4
  846. package/lib/duet/p-f11208c3.js +0 -4
  847. package/lib/duet/p-f11e0e46.system.entry.js +0 -4
  848. package/lib/duet/p-f1273093.system.entry.js +0 -4
  849. package/lib/duet/p-f218ec0e.system.entry.js +0 -4
  850. package/lib/duet/p-f2d5c69e.system.js +0 -5
  851. package/lib/duet/p-f5f6aed8.system.js +0 -4
  852. package/lib/duet/p-f6000a03.js +0 -4
  853. package/lib/duet/p-f732fde1.entry.js +0 -4
  854. package/lib/duet/p-fe8cfa01.system.entry.js +0 -4
  855. package/lib/esm/a11y-utils-42080d56.js +0 -23
  856. package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
  857. package/lib/esm/action-new-window-small-1945be91.js +0 -6
  858. package/lib/esm/body-scroll-46854769.js +0 -234
  859. package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
  860. package/lib/esm/create-id-149a1b6d.js +0 -11
  861. package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
  862. package/lib/esm/focus-utils-9bbe977f.js +0 -18
  863. package/lib/esm/form-search-ea8e19ae.js +0 -6
  864. package/lib/esm/input-utils-85681162.js +0 -53
  865. package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
  866. package/lib/esm/js-utils-9b9e0039.js +0 -47
  867. package/lib/esm/keyboard-utils-daf80d44.js +0 -58
  868. package/lib/esm/label-52e2e3f9.js +0 -20
  869. package/lib/esm/polyfills/core-js.js +0 -11
  870. package/lib/esm/polyfills/dom.js +0 -79
  871. package/lib/esm/polyfills/es5-html-element.js +0 -1
  872. package/lib/esm/polyfills/index.js +0 -34
  873. package/lib/esm/polyfills/system.js +0 -6
  874. package/lib/esm/slot-utils-4096ff0d.js +0 -115
  875. package/lib/esm/string-utils-192eb3c8.js +0 -61
  876. package/lib/esm/teleport-aa27d5f9.js +0 -116
  877. package/lib/esm/themeable-component-860041c5.js +0 -13
  878. package/lib/esm/token-utils-b9ba8c5e.js +0 -138
  879. package/lib/esm/tokens.module-2d02f5ff.js +0 -503
  880. package/lib/esm/watch-options-e96ecd92.js +0 -57
  881. package/lib/esm-es5/a11y-utils-42080d56.js +0 -4
  882. package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
  883. package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
  884. package/lib/esm-es5/app-globals-2c6c1103.js +0 -4
  885. package/lib/esm-es5/body-scroll-46854769.js +0 -4
  886. package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
  887. package/lib/esm-es5/common-strings-af765cad.js +0 -4
  888. package/lib/esm-es5/create-id-149a1b6d.js +0 -4
  889. package/lib/esm-es5/duet-action-button.entry.js +0 -4
  890. package/lib/esm-es5/duet-alert.entry.js +0 -4
  891. package/lib/esm-es5/duet-badge.entry.js +0 -4
  892. package/lib/esm-es5/duet-banner.entry.js +0 -4
  893. package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
  894. package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
  895. package/lib/esm-es5/duet-button_2.entry.js +0 -4
  896. package/lib/esm-es5/duet-callout.entry.js +0 -4
  897. package/lib/esm-es5/duet-caption_4.entry.js +0 -4
  898. package/lib/esm-es5/duet-card.entry.js +0 -4
  899. package/lib/esm-es5/duet-checkbox.entry.js +0 -4
  900. package/lib/esm-es5/duet-checkmark.entry.js +0 -4
  901. package/lib/esm-es5/duet-chip.entry.js +0 -4
  902. package/lib/esm-es5/duet-choice_2.entry.js +0 -4
  903. package/lib/esm-es5/duet-collapsible.entry.js +0 -4
  904. package/lib/esm-es5/duet-combobox.entry.js +0 -4
  905. package/lib/esm-es5/duet-contact-card.entry.js +0 -4
  906. package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
  907. package/lib/esm-es5/duet-date-picker.entry.js +0 -4
  908. package/lib/esm-es5/duet-divider_2.entry.js +0 -4
  909. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  910. package/lib/esm-es5/duet-empty-state.entry.js +0 -4
  911. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  912. package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
  913. package/lib/esm-es5/duet-footer.entry.js +0 -4
  914. package/lib/esm-es5/duet-grid_2.entry.js +0 -4
  915. package/lib/esm-es5/duet-header_2.entry.js +0 -4
  916. package/lib/esm-es5/duet-hero.entry.js +0 -4
  917. package/lib/esm-es5/duet-icon.entry.js +0 -4
  918. package/lib/esm-es5/duet-input_2.entry.js +0 -4
  919. package/lib/esm-es5/duet-layout.entry.js +0 -4
  920. package/lib/esm-es5/duet-list_2.entry.js +0 -4
  921. package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
  922. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
  923. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
  924. package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
  925. package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
  926. package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
  927. package/lib/esm-es5/duet-modal.entry.js +0 -4
  928. package/lib/esm-es5/duet-multiselect.entry.js +0 -4
  929. package/lib/esm-es5/duet-nav.entry.js +0 -4
  930. package/lib/esm-es5/duet-notification_2.entry.js +0 -4
  931. package/lib/esm-es5/duet-number-input.entry.js +0 -4
  932. package/lib/esm-es5/duet-overlay.entry.js +0 -4
  933. package/lib/esm-es5/duet-page-heading.entry.js +0 -4
  934. package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
  935. package/lib/esm-es5/duet-phone-input.entry.js +0 -4
  936. package/lib/esm-es5/duet-popup-menu_2.entry.js +0 -4
  937. package/lib/esm-es5/duet-progress.entry.js +0 -4
  938. package/lib/esm-es5/duet-promo-card.entry.js +0 -4
  939. package/lib/esm-es5/duet-radio_2.entry.js +0 -4
  940. package/lib/esm-es5/duet-range-slider.entry.js +0 -4
  941. package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
  942. package/lib/esm-es5/duet-section-layout.entry.js +0 -4
  943. package/lib/esm-es5/duet-select.entry.js +0 -4
  944. package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
  945. package/lib/esm-es5/duet-show-more.entry.js +0 -4
  946. package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
  947. package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
  948. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
  949. package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
  950. package/lib/esm-es5/duet-slideout.entry.js +0 -4
  951. package/lib/esm-es5/duet-status-icon.entry.js +0 -4
  952. package/lib/esm-es5/duet-step_2.entry.js +0 -4
  953. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
  954. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
  955. package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
  956. package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
  957. package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
  958. package/lib/esm-es5/duet-textarea.entry.js +0 -4
  959. package/lib/esm-es5/duet-toggle.entry.js +0 -4
  960. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
  961. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
  962. package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
  963. package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
  964. package/lib/esm-es5/duet-toolbar.entry.js +0 -4
  965. package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
  966. package/lib/esm-es5/duet-tooltip.entry.js +0 -4
  967. package/lib/esm-es5/duet-tray.entry.js +0 -4
  968. package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
  969. package/lib/esm-es5/duet-upload-item.entry.js +0 -4
  970. package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
  971. package/lib/esm-es5/duet.js +0 -4
  972. package/lib/esm-es5/errorcodes.utils-86af68b7.js +0 -4
  973. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  974. package/lib/esm-es5/focus-utils-9bbe977f.js +0 -4
  975. package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
  976. package/lib/esm-es5/index-a830b2de.js +0 -4
  977. package/lib/esm-es5/index.js +0 -3
  978. package/lib/esm-es5/input-utils-85681162.js +0 -4
  979. package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
  980. package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
  981. package/lib/esm-es5/keyboard-utils-daf80d44.js +0 -4
  982. package/lib/esm-es5/label-52e2e3f9.js +0 -4
  983. package/lib/esm-es5/language-utils-40caac4f.js +0 -4
  984. package/lib/esm-es5/loader.js +0 -4
  985. package/lib/esm-es5/slot-utils-4096ff0d.js +0 -4
  986. package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
  987. package/lib/esm-es5/teleport-aa27d5f9.js +0 -4
  988. package/lib/esm-es5/themeable-component-860041c5.js +0 -4
  989. package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
  990. package/lib/esm-es5/tokens-84fb2357.js +0 -4
  991. package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
  992. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
  993. package/lib/loader/package.json +0 -11
  994. /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
  995. /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
  996. /package/lib/cjs/{common-strings-2984301e.js → common-strings-BhhnIQp3.js} +0 -0
  997. /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
  998. /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
  999. /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
  1000. /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
  1001. /package/lib/cjs/{keyboard-utils-f7c9f980.js → keyboard-utils-D9UlHbik.js} +0 -0
  1002. /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
  1003. /package/lib/cjs/{teleport-c0eede18.js → teleport-BIcrl_KV.js} +0 -0
  1004. /package/lib/cjs/{themeable-component-996b489c.js → themeable-component-C57DSx5w.js} +0 -0
  1005. /package/lib/cjs/{watch-options-30a12622.js → watch-options-CTB_6VOA.js} +0 -0
  1006. /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
  1007. /package/lib/duet/{p-7d8a2628.js → p-BgyaCAyh.js} +0 -0
  1008. /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
  1009. /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
  1010. /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
  1011. /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
  1012. /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
  1013. /package/lib/duet/{p-beeb12f1.js → p-D6YBFNe9.js} +0 -0
  1014. /package/lib/duet/{p-8cb0e6bd.js → p-DWuCOI7R.js} +0 -0
  1015. /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
  1016. /package/lib/duet/{p-aaa7a7bd.js → p-WhCDf9tt.js} +0 -0
  1017. /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
  1018. /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
  1019. /package/lib/esm/{common-strings-af765cad.js → common-strings-D6YBFNe9.js} +0 -0
  1020. /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
  1021. /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
  1022. /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
  1023. /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
  1024. /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
  1025. /package/lib/{dist-custom-elements/p-8cb0e6bd.js → esm/teleport-DWuCOI7R.js} +0 -0
  1026. /package/lib/{dist-custom-elements/p-aaa7a7bd.js → esm/themeable-component-WhCDf9tt.js} +0 -0
  1027. /package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BgyaCAyh.js} +0 -0
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{a(n.next(t))}catch(t){s(t)}}function u(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(o,u)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return a([t,i])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(e=0)),e)try{if(n=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1];s=u;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(u);break}if(s[2])e.ops.pop();e.trys.pop();continue}u=i.call(t,e)}catch(t){u=[6,t];r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};
2
- /*!
3
- * Built with Duet Design System
4
- */import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{j as isEnterKey,f as isEscapeKey,o as isTabKey,b as isArrowUpKey,c as isArrowDownKey}from"./keyboard-utils-daf80d44.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{b as getElementsFromDefaultSlot}from"./slot-utils-4096ff0d.js";import{r as regexEscape,p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var DuetComboBoxSelect=function(t){var i=t.item,e=t.activeDescendant,n=t.selected,r=t.label,s=r===void 0?undefined:r,o=t.clickHandler,u=o===void 0?function(t){t.preventDefault()}:o,a=t.keyHandler,c=a===void 0?function(t){t.preventDefault()}:a,f=t.search,l=t.isAndroidDevice,d=t.id;var v=f.split(" ").filter((function(t){return!!t.trim()})).map((function(t){return regexEscape(t)}));var m=f!==""?new RegExp("(".concat(v.join("|"),")"),"i"):undefined;var p="text-decoration: underline";return h("duet-popup-menu-item",{id:e?d:"",active:n,"data-index":i.id,"aria-selected":e?"true":undefined,"aria-current":n?"true":undefined,role:"option","aria-label":s,tabindex:l?"-1":null,onClick:function(t){return u(t)},onKeyUp:function(t){return c(t)},accessibleRole:"option",activeDescendant:e},m?h("span",{class:"option-container","aria-hidden":"true"},h("span",{innerHTML:i.name.replace(m,'<span style="'.concat(p,'">$&</span>'))})):i.name,i.tags&&h("span",{class:"option-tags"},i.tags.join(", ")))};var duetComboboxCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}:host a{color:rgb(8, 42, 77);transition:none}:host.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host.duet-theme-turva a{color:rgb(23, 28, 58)}.combobox-menu-container{width:var(--popup-width);max-height:200px}';var DuetComboboxStyle0=duetComboboxCss;var DuetCombobox=function(){function t(t){var i=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);var e,n;this.listBoxId=createID("duet-combobox-list-element");this.inputId=createID("duet-combobox-input-id");this.activeDescendantId=createID("duet-combobox-active-descendant");this.isAndroidDevice=((n=(e=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||e===void 0?void 0:e.toLowerCase())===null||n===void 0?void 0:n.indexOf("android"))>-1||null;this.isInsideModal=false;this.resizeObserver=new ResizeObserver(debounce((function(t){var e,n,r;if((t===null||t===void 0?void 0:t.length)===1){var s=(n=(e=t[0])===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.getBoundingClientRect().width;var o=parseInt((r=getComputedStyle(i.listContainer.shadowRoot.querySelector(".duet-popup-menu-list")))===null||r===void 0?void 0:r.padding);i.listContainer.style.setProperty("--popup-width","".concat(s-2*o,"px"))}}),100));this.onInputChange=function(t){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(e){i=t.detail.value;this.inputValue=i;return[2]}))}))};this.onInputClick=function(){var t,e;if(i.openListOnClick){i.listOpen=!i.listOpen}else{i.listOpen=((t=i.inputValue)===null||t===void 0?void 0:t.length)>=i.minCharacters}if(!((e=i.getFilteredItems())===null||e===void 0?void 0:e.length)){i.listOpen=false}};this.onInputTyping=function(t){return __awaiter(i,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){e=t.detail.value;if(!this.force&&!this.multiple&&this.selectedItems.size>0&&e!==this.getSelectedItemLabel()){this.selectedItems.clear()}if(!this.force&&!this.multiple&&e===""){this.value=undefined}this.listOpen=String(e).length>=this.minCharacters&&((i=this.getFilteredItems())===null||i===void 0?void 0:i.length)>0;return[2]}))}))};this.onKeyDown=function(t){var e,n,r;var s=i.returnFilteredOrNonFiltered();var o=s.filter((function(t){return!i.selectedItems.has(t.id)}));i.input.accessibleActiveDescendant=undefined;if(isEnterKey(t)){t.preventDefault();if(i.listOpen&&i.activeItem!==undefined&&s[i.activeItem]&&!i.selectedItems.has(s[i.activeItem].id)){if(i.multiple){i.addSelectedItem(s[i.activeItem].id,true)}else{i.updateSelectedItem(s[i.activeItem].id,true)}}else if(!i.multiple&&i.listOpen&&o.length===1&&o[0].name.toLowerCase()===i.input.value.toLowerCase()){i.updateSelectedItem(o[0].id,true)}i.activeItem=undefined;i.listOpen=false;return}if(isEscapeKey(t)||isTabKey(t)){if(i.listOpen){t.preventDefault()}i.updateInputText(true);i.activeItem=undefined;i.listOpen=false;return}var u=i.activeItem;if(isArrowUpKey(t)){t.preventDefault();u=i.activeItem-1}else if(isArrowDownKey(t)){if(((r=(n=(e=i.input)===null||e===void 0?void 0:e.value)===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0)<i.minCharacters){return}t.preventDefault();u=i.listOpen?i.activeItem+1:i.activeItem;i.listOpen=true}if(isArrowDownKey(t)||isArrowUpKey(t)){if(u<0||!u){u=0}if(u>=s.length){u=s.length-1}i.input.accessibleActiveDescendant=i.activeDescendantId;i.activeItem=u;i.scrollToActive()}return};this.processedItems=null;this.inputValue="";this.listOpen=false;this.selectedItems=new Set;this.activeItem=undefined;this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtered"},fi:{heading:"Valitse:",item:"{name}",itemFiltered:"{name}, {hiddenItems} suodatettu"},sv:{heading:"Välj:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtrerade"}};this.accessibleLabels=getLocaleString(this.accessibleLabelDefaults,getLanguage());this.label="";this.caption="";this.theme="";this.force=false;this.multiple=false;this.items=undefined;this.formatter=function(t){return t&&t.name?t.name:""};this.value=undefined;this.minCharacters=0;this.openListOnClick=false;this.filterType="startsWith"}t.prototype.popupMenuOpenHandler=function(){if(this.listOpen){this.listContainer.show()}else{this.listContainer.hide()}};t.prototype.activeItemHandler=function(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||t===0)?this.activeDescendantId:""};t.prototype.inputValueHandler=function(){var t=this;setTimeout((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.getSelectedItemLabel()];case 1:t=i.sent();if(this.input.value==""&&t){this.input.value="";this.value=undefined}return[2]}}))}))}),200)};t.prototype.handleDocumentClick=function(t){var i=this;var e=t.composedPath();var n=e.every((function(t){return t!==i.element}));if(n){this.updateInputText(true);this.listOpen=false}};t.prototype.formatItem=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.formatter(t)]}))}))};t.prototype.processItems=function(){var t=this;var i=[];this.processedItems=parsePossibleJSON(this.items);if(!Array.isArray(this.processedItems)){console.error("DuetCombobox: Items should be an array");return}if(this.processedItems.length!==new Set(__spreadArray([],this.processedItems,true)).size){console.warn("DuetCombobox: Duplicate item values found in the list")}this.processedItems=this.processedItems.map((function(t,e){if(typeof t==="string"){t={name:t,value:t}}if(t.id!==undefined){t.id=String(t.id)}else{t.id="".concat(JSON.stringify(t.value),"-").concat(t.name)}if(i.includes(t.id)){console.warn("DuetCombobox: Duplicate item id found in the list, postfixed with index");t.id="".concat(t.id,"-").concat(e)}i.push(t.id);return t}));var e=Array.from(this.selectedItems).filter((function(i){return!t.processedItems.find((function(t){return t.id===i}))}));if(e.length){if(this.multiple){e.forEach((function(i){return t.removeSelectedItem(i)}))}else{this.updateSelectedItem(e[0],true)}}};t.prototype.processValue=function(){var t=this;if(this.value!==""&&!this.value){this.selectedItems.clear();return}var i=Array.isArray(this.value)?this.value:[this.value];var e=this.processedItems.filter((function(t){return i.includes(t.value)})).map((function(t){return t.id}));if(e.length===this.selectedItems.size&&e.every((function(i){return t.selectedItems.has(i)}))){return}if(this.multiple){this.selectedItems.clear();this.input.clearChips();e.forEach((function(i){return t.addSelectedItem(i)}))}else{var n=this.processedItems.find((function(i){return i.value===t.value}));this.updateSelectedItem(n.id)}};t.prototype.processListOpenChange=function(){if(this.openListOnClick){this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"}this.input.accessibleExpanded=this.listOpen?"true":"false"};t.prototype.componentWillLoad=function(){if(this.element.closest("duet-modal")){this.isInsideModal=true}inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){if(this.items){this.processItems()}var t=getElementsFromDefaultSlot(this.element);if(t.length){this.input=t[0]}else{this.input=document.createElement("duet-input");this.input.label=this.label;this.input.caption=this.caption;this.input.expand=true;this.element.prepend(this.input)}this.input.chips=this.multiple;this.input.addEventListener("duetChange",this.onInputChange);this.input.addEventListener("duetInput",this.onInputTyping);this.input.addEventListener("click",this.onInputClick);this.input.role="combobox";this.input.accessibleExpanded=this.listOpen?"true":"false";this.input.accessibleAutocomplete="list";this.input.accessibleControls=this.listBoxId;this.input.id=this.inputId;this.element.addEventListener("keydown",this.onKeyDown);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"});this.processListOpenChange()};t.prototype.disconnectedCallback=function(){this.input.removeEventListener("duetChange",this.onInputChange);this.input.removeEventListener("click",this.onInputClick);this.element.removeEventListener("keydown",this.onKeyDown);this.resizeObserver.disconnect();disconnectLanguageChangeObserver(this)};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.input);this.processValue()};t.prototype.shouldListBeFiltered=function(){var t=this;var i;if(!this.multiple&&this.selectedItems.size&&this.input.value===this.inputValue&&((i=this.inputValue)===null||i===void 0?void 0:i.length)<this.minCharacters){var e=this.processedItems.find((function(i){return t.selectedItems.has(i.id)}));return!(this.formatter(e).toLowerCase()===this.input.value.toLowerCase())}return true};t.prototype.returnFilteredOrNonFiltered=function(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]};t.prototype.emitChangeEvent=function(t){var i=this.processedItems.find((function(i){return i.id===t}));this.duetChange.emit({item:i,value:this.value,component:"duet-combobox"})};t.prototype.updateMultipleValue=function(){var t=this;this.value=this.processedItems.filter((function(i){return t.selectedItems.has(i.id)})).map((function(t){return t.value}));this.input.value="";this.updateChips();this.input.setFocus()};t.prototype.addSelectedItem=function(t,i){if(this.selectedItems.has(t)){return}this.selectedItems.add(t);this.updateMultipleValue();if(i){this.emitChangeEvent(t)}};t.prototype.removeSelectedItem=function(t,i){if(!this.selectedItems.has(t)){return}this.selectedItems.delete(t);this.updateMultipleValue();if(i){this.emitChangeEvent(t)}};t.prototype.updateSelectedItem=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.selectedItems.clear();this.selectedItems.add(t);this.value=this.processedItems.find((function(i){return i.id===t})).value;if(i){this.emitChangeEvent(this.value&&t)}return[4,this.updateInputText()];case 1:e.sent();return[2]}}))}))};t.prototype.updateChips=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;var e=this;return __generator(this,(function(n){switch(n.label){case 0:t=Array.from(this.selectedItems);return[4,this.input.getChips()];case 1:i=n.sent();t.forEach((function(t){return __awaiter(e,void 0,void 0,(function(){var i,e,n,r;var s=this;return __generator(this,(function(o){switch(o.label){case 0:i=this.processedItems.find((function(i){return i.id===t}));return[4,this.formatItem(i)];case 1:e=o.sent();return[4,this.input.hasChip({value:"".concat(t),text:e})];case 2:n=o.sent();if(!n){r=document.createElement("duet-chip");r.variation="input";r.role="option";r.value="".concat(t);r.textContent=e;r.addEventListener("duetRemove",(function(t){var i=t.detail.value;s.removeSelectedItem(i,true)}));this.input.addChip(r)}return[2]}}))}))}));i.forEach((function(i){if(!t.includes(i.value)){i.remove()}}));return[2]}}))}))};t.prototype.getSelectedItemLabel=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=this.processedItems.find((function(t){return n.selectedItems.has(t.id)}));if(!t)return[3,2];return[4,this.formatItem(t)];case 1:e=r.sent();return[3,3];case 2:e="";r.label=3;case 3:i=e;return[2,i]}}))}))};t.prototype.updateInputText=function(){return __awaiter(this,arguments,void 0,(function(t){var i,e,n;if(t===void 0){t=false}return __generator(this,(function(r){switch(r.label){case 0:if(t&&this.multiple){this.input.value="";return[2]}if(!(t&&this.force))return[3,3];i=this.returnFilteredOrNonFiltered();if(!this.multiple&&this.listOpen&&i.length===1&&i[0].name.toLowerCase()===this.input.value.toLowerCase()){this.updateSelectedItem(i[0].id,true)}if(!(this.selectedItems.size===0))return[3,1];this.input.value="";return[3,3];case 1:e=this.input;return[4,this.getSelectedItemLabel()];case 2:e.value=r.sent();r.label=3;case 3:if(!(!t&&this.selectedItems.size>0))return[3,6];this.input.value="";n=this.input;return[4,this.getSelectedItemLabel()];case 4:n.value=r.sent();this.input.scrollLeft=this.input.scrollWidth;return[4,this.input.setFocus()];case 5:r.sent();r.label=6;case 6:return[2]}}))}))};t.prototype.onListClick=function(t,i){t.preventDefault();t.stopPropagation();if(this.multiple){this.addSelectedItem(i.id,true)}else{this.updateSelectedItem(i.id,true)}this.activeItem=undefined;this.listOpen=false;return this.listOpen};t.prototype.scrollToActive=function(){var t=document.getElementById("".concat(this.activeDescendantId));if(t){t.scrollIntoView({behavior:"smooth",block:"center"})}};t.prototype.formatLabel=function(t,i,e,n){if(!t||n===undefined){return""}var r=e===n?this.accessibleLabels.item:this.accessibleLabels.itemFiltered;return r.replace("{name}",String(t.name)).replace("{current}",String(i+1)).replace("{total}",String(e)).replace("{hiddenItems}",String(n-e))};t.prototype.getFilteredItems=function(){var t=this;var i=this.processedItems.filter((function(i){var e,n,r,s,o;return((e=String(i.value))===null||e===void 0?void 0:e.toLowerCase()[t.filterType]((n=t.inputValue)===null||n===void 0?void 0:n.toLowerCase()))||((r=String(i.name))===null||r===void 0?void 0:r.toLowerCase()[t.filterType]((s=t.inputValue)===null||s===void 0?void 0:s.toLowerCase()))||t.formatter(i).toLowerCase()[t.filterType]((o=t.inputValue)===null||o===void 0?void 0:o.toLowerCase())||t.selectedItems.has(i.id)})).filter((function(i){var e=true;if(t.multiple&&t.selectedItems.has(i.id)){e=false}return e}));return this.sortFilteredItems(i)};t.prototype.sortFilteredItems=function(t){var i=this;if(t.length>0){t.filter((function(t){return i.selectedItems.has(t.id)})).forEach((function(i){var e=t.indexOf(i);t.splice(e,1);t.unshift(i)}))}return t};t.prototype.render=function(){var t;var i=this;var e=this.returnFilteredOrNonFiltered();return h(Host,{class:(t={"duet-combobox":true},t["duet-theme-".concat(this.theme)]=true,t)},h("slot",null),h("div",null,h("duet-popup-menu",{id:this.listBoxId,controller:this.input,ref:function(t){return i.listContainer=t},accessibleRole:"listbox",allowVerticalFlip:false,class:{"duet-skip-teleport-inert":this.isInsideModal}},h("div",{class:"combobox-menu-container"},this.listOpen&&e.map((function(t,n){return h(DuetComboBoxSelect,{id:i.activeDescendantId,item:t,activeDescendant:n===i.activeItem,selected:i.selectedItems.has(t.id),search:i.inputValue,clickHandler:function(e){return i.onListClick(e,t)},label:i.formatLabel(t,n,e.length,i.processedItems.length),isAndroidDevice:i.isAndroidDevice})})),h("duet-spacer",{size:"x-small"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{listOpen:["popupMenuOpenHandler","processListOpenChange"],activeItem:["activeItemHandler"],inputValue:["inputValueHandler"],items:["processItems"],value:["processValue"]}},enumerable:false,configurable:true});return t}();DuetCombobox.style=DuetComboboxStyle0;export{DuetCombobox as duet_combobox};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import"./string-utils-192eb3c8.js";var duetContactCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block}:host(.duet-m-0){margin:0 !important}::slotted(*){padding-top:1.5rem}@media (min-width: 48em){::slotted(*){grid-column:2/span 2;padding-top:0}}.duet-contact-card{display:grid;grid-template-columns:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-contact-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 48em){.duet-contact-card{grid-template-columns:min-content minmax(0, 1fr) auto;gap:20px}}.duet-contact-card .image{width:4rem;height:4rem;margin-bottom:8px;border-radius:4px}@media (min-width: 48em){.duet-contact-card .image{width:6rem;height:6rem;padding-bottom:0}}.duet-contact-card .description{padding-bottom:8px}.duet-contact-card .email,.duet-contact-card .phone{display:grid;grid-template-columns:min-content auto;gap:8px;align-items:center;justify-content:flex-start;padding-bottom:8px;overflow-wrap:break-word}';var DuetContactCardStyle0=duetContactCardCss;var DuetContactCard=function(){function e(e){registerInstance(this,e);this.phoneLabel={en:"Phone",fi:"Puhelin",sv:"Telefon"};this.language=getLanguage();this.theme="";this.margin="auto";this.image=undefined;this.name=undefined;this.description=undefined;this.email=undefined;this.phone=undefined;this.buttonText=undefined;this.buttonIcon="form-date";this.buttonUrl=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this.theme==="turva";var t=e?"turva":"default";return h(Host,{key:"b0c36badfe9ad51afdf85655fd60cf2d5aa3c1bc",class:{"duet-m-0":this.margin==="none"}},h("div",{key:"91ae8f5dd2f9d51deec7b7d541815b174192d069",class:{"duet-contact-card":true,"duet-theme-turva":this.theme==="turva"},role:"group","aria-label":this.name},this.image?h("img",{class:"image",src:this.image,alt:this.name}):h("div",null),h("div",{key:"2b1b6ce9bea2d827f70ac908db390e480c2ed4f4"},this.name&&h("duet-heading",{key:"fc5f8996740e7be6f563d7aefdc4f2937922763a",class:"name",level:"h3",margin:"none",theme:t},this.name),this.description&&h("duet-paragraph",{key:"618c252939e12d7de69832fc38625825f7fcccf4",class:"description",margin:"none",theme:t},this.description),this.email&&h("div",{key:"64cfcf022b32d7c26f329463f5d843c390b2e433",class:"email"},h("duet-icon",{key:"b5736012fefed4c34d135ad282cda14b6353554b",name:"navigation-message",size:"x-small",color:"primary-dark",margin:"none",theme:t}),h("duet-link",{key:"5c57b7ed447681f458af6cd668663b9d197a5d08",url:"mailto:".concat(this.email),accessibleLabel:"Email: ".concat(this.email),theme:t},this.email)),this.phone&&h("div",{key:"8c41242e1376c1f8afbcf0b1e7c2d414d7a85640",class:"phone"},h("duet-icon",{key:"bccc433c5d267385f46ff318be7610fa84cde07a",name:"form-tel",size:"x-small",color:"primary-dark",margin:"none",theme:t}),h("duet-link",{key:"49faa83e88a7feb9533717a08b451b2c9f6164f1",url:"tel:".concat(this.phone),accessibleLabel:"".concat(this.phoneLabel[this.language],": ").concat(this.phone),theme:t},this.phone))),this.buttonUrl&&this.buttonText&&h("div",{key:"b4e5155d34f399665499a8f35eb47b9a02c450bc",class:"call-to-action"},h("duet-button",{key:"f7ab7302ee6b77498628f954ab3553a1cfcd8a5c",variation:"default",icon:this.buttonIcon,fixed:true,margin:"none",url:this.buttonUrl,theme:t},this.buttonText)),h("div",{key:"6edc65ed13b8b80bef7a4e756c1a942752fd948e"}),h("slot",{key:"13472a80b020da3fe1f095d21bc1a20fc8293a09"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetContactCard.style=DuetContactCardStyle0;export{DuetContactCard as duet_contact_card};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";var duetCookieConsentCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetCookieConsentStyle0=duetCookieConsentCss;var DuetCookieConsent=function(){function e(e){var t=this;registerInstance(this,e);this.duetCookieConsent=createEvent(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();t.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.render=function(){return h(Host,{key:"7f1d0e77b437c0a90e12d84b90c2d86275d95d08",tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},h("div",{key:"184ab1737824523bbe4a3d28cc199ac71a8399e2",class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},h("div",{key:"30308ee3c17efd96fa44b83a903cc7f2dc15fd3a",class:"duet-cookie-consent-content"},h("div",{key:"13f085c789a110337f5671838dc23530170d04f9",class:"expand"},h("slot",{key:"e8843e785f16ba3c07eee6c30233704c6e6fd797"})),h("duet-spacer",{key:"62b1b19746320ad0dce58e7779145d8d51d05f07",size:"large",direction:"horizontal"}),h("div",{key:"8bc9f9453aae9af3d7c030c1a82db2af9ff97214"},h("duet-button",{key:"6cfd3b248cac054161f954fb1c90d29871c55e7e",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCookieConsent.style=DuetCookieConsentStyle0;export{DuetCookieConsent as duet_cookie_consent};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function o(t){try{d(i.next(t))}catch(t){r(t)}}function s(t){try{d(i["throw"](t))}catch(t){r(t)}}function d(t){t.done?a(t.value):n(t.value).then(o,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;n=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(s[0]===6&&a.label<r[1]){a.label=r[1];r=s;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(s);break}if(r[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];n=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-a830b2de.js";import{D as DuetInternalLabel}from"./label-52e2e3f9.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{F as FocusGuard}from"./focus-utils-9bbe977f.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{c as checkNamedSlotElement,p as proxyInputToSlot}from"./slot-utils-4096ff0d.js";import"./string-utils-192eb3c8.js";var formatOptionsShort={day:"numeric",month:"long",weekday:"long"};var formatOptionsLong={day:"numeric",month:"long",year:"numeric"};var i18n={fi:{buttonLabel:"Valitse päivämäärä",prevMonthLabel:"Edellinen kuukausi",nextMonthLabel:"Seuraava kuukausi",monthSelectLabel:"Kuukausi",yearSelectLabel:"Vuosi",closeLabel:"Sulje ikkuna",selected:"Valittu päivämäärä on",keyboardInstruction:"Voit navigoida päivämääriä nuolinäppäimillä",dayLabels:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],monthLabels:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthLabelsShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],formatterShort:new Intl.DateTimeFormat("fi-FI",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("fi-FI",formatOptionsLong)},en:{buttonLabel:"Choose date",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",selected:"Selected date is",keyboardInstruction:"You can use arrow keys to navigate dates",dayLabels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],monthLabelsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("en-GB",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("en-GB",formatOptionsLong)},sv:{buttonLabel:"Välj datum",prevMonthLabel:"Föregående månad",nextMonthLabel:"Nästa månad",monthSelectLabel:"Månad",yearSelectLabel:"År",closeLabel:"Stäng fönstret",selected:"Valt datum är",keyboardInstruction:"Använd piltangenterna för att navigera i kalender",dayLabels:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],monthLabels:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthLabelsShort:["Jan","Feb","Mars","April","Maj","Juni","Juli","Aug","Sep","Okt","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("sv-SE",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("sv-SE",formatOptionsLong)}};var formDate={title:"form-date",tags:"form date calendar date picker",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z"/><circle cx="5.625" cy="13.875" r="1.125"/><circle cx="5.625" cy="19.125" r="1.125"/><circle cx="12" cy="13.875" r="1.125"/><circle cx="12" cy="19.125" r="1.125"/><circle cx="18.375" cy="13.875" r="1.125"/><path d="M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z"/></svg>'};var DatePickerInput=function(t){var e=t.onClick,a=t.placeholder,i=t.inputLabel,n=t.valueAsDate,r=t.formattedValue,o=t.language,s=t.identifier,d=t.theme,l=t.disabled,u=t.error,c=t.role,b=t.required,f=t.tooltip,p=t.tooltipDirection,m=t.labelHidden,g=t.buttonRef,v=t.inputRef,y=t.onInput,k=t.onBlur,x=t.onFocus,w=t.hasFocus,D=t.accessibleActiveDescendant,S=t.accessibleControls,I=t.accessibleOwns,O=t.accessibleDescribedBy,M=t.accessibleLiveError,L=t.echoPlaceholder,E=t.caption;var A=i18n[o],T=A.buttonLabel,F=A.selected,j=A.formatterLong;var U={"duet-theme-turva":d==="turva","duet-date-input":true,"duet-date-input-has-focus":w};return h("div",{class:U},h("duet-input",{label:i,value:r,placeholder:a,id:s,disabled:l,theme:d,error:u,role:c,required:b,tooltip:f,tooltipDirection:p,margin:"none",labelHidden:m,accessibleAutocomplete:"none",onDuetChange:function(t){return t.stopImmediatePropagation()},onDuetInput:y,onDuetFocus:x,onDuetBlur:k,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:true,ref:v,accessibleActiveDescendant:D,accessibleControls:S,accessibleOwns:I,accessibleDescribedBy:O,accessibleLiveError:M,echoPlaceholder:L,caption:E,variation:"button"},h("slot",{name:"tooltip"}),h("button",{class:{"duet-date-button":true,"duet-no-label":m,"input-error":!!u},onClick:e,disabled:l,ref:g,type:"button",slot:"button"},h("duet-icon",{icon:formDate.svg,margin:"none",size:"small",color:"currentColor"}),h("duet-visually-hidden",null,T,n&&h("span",null,", ",F," ",j.format(n))))))};var DATE_FORMAT=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;var ISO_DATE_FORMAT=/^(\d{4})-(\d{2})-(\d{2})$/;var DATE_OUTPUT_FORMAT="dd.mm.yyyy";var DATE_ISO_OUTPUT_FORMAT="YYYY-MM-DD";function createDate(t,e,a){var i=parseInt(a,10);var n=parseInt(e,10);var r=parseInt(t,10);var o=Number.isInteger(r)&&Number.isInteger(n)&&Number.isInteger(i)&&n>0&&n<=12&&i>0&&i<=31&&r>0;if(o){return new Date(r,n-1,i)}}function parseDate(t){if(!t){return}var e=t.match(DATE_FORMAT);if(e){return createDate(e[3],e[2],e[1])}}function parseISODate(t){if(!t){return}var e=t.match(ISO_DATE_FORMAT);if(e){return createDate(e[1],e[2],e[3])}}function formatDate(t,e){if(!t){return""}var a=t.getDate().toString(10);var i=(t.getMonth()+1).toString(10);var n=t.getFullYear().toString(10);if(t.getDate()<10){a="0".concat(a)}if(t.getMonth()<9){i="0".concat(i)}return e.replace(/MM/i,i).replace(/YYYY/i,n).replace(/DD/i,a)}function printDate(t){return formatDate(t,DATE_OUTPUT_FORMAT)}function printISODate(t){return formatDate(t,DATE_ISO_OUTPUT_FORMAT)}function isEqual(t,e){if(t==null||e==null){return false}return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function addDays(t,e){var a=new Date(t);a.setDate(a.getDate()+e);return a}function startOfWeek(t,e){if(e===void 0){e=1}var a=new Date(t);var i=a.getDay();var n=(i<e?7:0)+i-e;a.setDate(a.getDate()-n);return a}function endOfWeek(t,e){if(e===void 0){e=1}var a=new Date(t);var i=a.getDay();var n=(i<e?-7:0)+6-(i-e);a.setDate(a.getDate()+n);return a}function startOfMonth(t){return new Date(t.getFullYear(),t.getMonth(),1)}function endOfMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function setMonth(t,e){var a=new Date(t);a.setMonth(e);return a}function setYear(t,e){var a=new Date(t);a.setFullYear(e);return a}function inRange(t,e,a){return clamp(t,e,a)===t}function clamp(t,e,a){var i=t.getTime();if(e&&e instanceof Date&&i<e.getTime()){return e}if(a&&a instanceof Date&&i>a.getTime()){return a}return t}function getDaysInRange(t,e){var a=[];var i=t;while(!isEqual(i,e)){a.push(i);i=addDays(i,1)}a.push(i);return a}function getViewOfMonth(t,e){if(e===void 0){e=1}var a=startOfWeek(startOfMonth(t),e);var i=endOfWeek(endOfMonth(t),e);return getDaysInRange(a,i)}var DatePickerDay=function(t){var e=t.focusedDay,a=t.today,i=t.day,n=t.language,r=t.onDaySelect,o=t.onKeyboardNavigation,s=t.ref,d=t.inRange,l=t.isSelected;var u=isEqual(i,a);var c=isEqual(i,e);var b=i.getMonth()!==e.getMonth();var f=!d;var p=i18n[n].formatterShort;function m(t){r(t,i)}return h("td",{"data-day":printISODate(i),class:"duet-date-table-cell","aria-label":p.format(i),role:"button",tabIndex:c?0:-1,onClick:m,onKeyDown:o,"aria-disabled":f||b,"aria-pressed":l?"true":"false",ref:s},h("span",{class:{"duet-date-table-button":true,outside:f,disabled:b,today:u}},i.getDate()))};function range(t,e){var a=[];for(var i=t;i<=e;i++){a.push(i)}return a}function chunk(t,e){var a=[];for(var i=0;i<t.length;i+=e){a.push(t.slice(i,i+e))}return a}function parseShortcut(t){var e;var a=t.trim().split("+");var i=a.pop();return[((e=a[0])===null||e===void 0?void 0:e.toLowerCase())==="shift",i]}function createShortcuts(t){var e=Object.keys(t).map((function(e){return[parseShortcut(e),t[e]]}));return function t(a){if(!(a instanceof KeyboardEvent)){return}var i=e.find((function(t){var e=t[0],i=e[0],n=e[1];return(n.toUpperCase()===a.key.toUpperCase()||n===a.code)&&i===a.shiftKey}));if(i){i[1](a);a.preventDefault()}}}var DatePickerMonth=function(t){var e=t.selectedDate,a=t.focusedDate,i=t.labelledById,n=t.theme,r=t.language,o=t.min,s=t.max,d=t.onDateSelect,l=t.onKeyboardNavigation,u=t.focusedDayRef,c=t.onFocusEnter,b=t.onFocusExit;var f=i18n[r].dayLabels;var p=new Date;var m=getViewOfMonth(a);function g(t){var e=t.currentTarget;var a=t.relatedTarget;if(a&&!e.contains(a)){b(t)}}return h("div",{role:"application"},h("table",{role:"presentation",class:{"duet-date-table":true,"duet-theme-turva":n==="turva"},"aria-labelledby":i,onFocusin:c,onFocusout:g},h("thead",null,h("tr",null,f.map((function(t){return h("th",{scope:"col"},h("span",{"aria-hidden":"true"},t.substr(0,2)))})))),h("tbody",null,chunk(m,7).map((function(t){return h("tr",{class:"duet-date-table-row"},t.map((function(t){return h(DatePickerDay,{day:t,today:p,language:r,focusedDay:a,inRange:inRange(t,o,s),isSelected:isEqual(t,e),onDaySelect:d,onKeyboardNavigation:l,ref:function(e){if(e&&isEqual(t,a)){u(e)}}})})))})))))};var duetDatePickerCss='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-date{position:relative;width:100%}.duet-date button,.duet-date-dialog button{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button{-webkit-user-select:none;user-select:none;position:relative;z-index:200;box-sizing:content-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:47px;height:48px;color:rgb(8, 42, 77);cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-left-color:rgb(181, 198, 208);border-radius:0 4px 4px 0;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-theme-turva .duet-date-button{color:rgb(23, 28, 58);border-color:rgb(199, 202, 207)}.duet-date-button::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.duet-date-button:disabled{pointer-events:none;cursor:not-allowed;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva .duet-date-button:disabled{background:rgb(245, 247, 250) !important}.duet-date-button:disabled::before{display:none}.duet-date-button:disabled duet-icon{opacity:0.4}.duet-date-button duet-icon{transform:translateY(-1px)}.duet-date-button:active duet-icon{transform:translateY(0)}.duet-date-input-has-focus .duet-date-button,.duet-date-button:focus{height:46px;color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva.duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}.input-error{border-top-color:rgb(214, 28, 82);border-right-color:rgb(214, 28, 82);border-bottom-color:rgb(214, 28, 82)}.duet-date-dialog{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog{position:fixed;top:0;right:0;bottom:0;transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}}.duet-date-dialog.active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva .duet-date-dialog-wrapper{border-color:rgb(222, 224, 228)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-date-table th{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table .duet-date-table-cell{text-align:center}.duet-date-table .duet-date-table-cell:focus{outline:none}.duet-date-table-button{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:2.6 !important;color:rgb(8, 42, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva .duet-date-table-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button:hover{background:rgb(228, 241, 247) !important}.duet-theme-turva .duet-date-table-button:hover{background:rgb(255, 227, 228) !important}.duet-date-table-button.today{z-index:200;color:rgb(0, 75, 129) !important;background:rgb(240, 247, 250) !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-date-table-button.today{color:rgb(126, 2, 35) !important;background:rgb(255, 241, 241) !important;box-shadow:0 0 0 1px #171c3a !important}[aria-pressed=true] .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva [aria-pressed=true] .duet-date-table-button,.duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px 0 #171c3a !important}:focus .duet-date-table-button{z-index:200;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva :focus .duet-date-table-button{box-shadow:0 0 5px 0 #171c3a !important}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);background:rgb(245, 247, 250);box-shadow:none}.duet-date-dialog-header{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons{white-space:nowrap}.duet-date-dialog-buttons ::part(button){border:0}.duet-date-dialog-select{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select .duet-date-dialog-select-label{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);pointer-events:none;border-radius:4px}.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-date-dialog-select span{margin-right:4px}.duet-date-dialog-select select{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #171c3a !important}.duet-date-dialog-mobile-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(181, 198, 208)}@media (min-width: 36em){.duet-date-dialog-mobile-header{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva .duet-date-dialog-mobile-header{border-color:rgb(199, 202, 207)}.duet-date-dialog-mobile-header duet-label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header duet-label{display:none}}.duet-date-picker-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(8, 42, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close{opacity:0}}.duet-theme-turva .duet-date-picker-close{background:rgb(245, 247, 250) !important}.duet-date-picker-close:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva .duet-date-picker-close:hover{background:rgb(245, 247, 250) !important}.duet-date-picker-close:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}.duet-theme-turva .duet-date-picker-close:focus{box-shadow:0 0 0 2px #171c3a !important}';var DuetDatePickerStyle0=duetDatePickerCss;var DuetDatePicker=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",7);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.proxyId=createID("DuetDatePicker");this.monthSelectId=createID("DuetDatePicker");this.yearSelectId=createID("DuetDatePicker");this.dialogLabelId=createID("DuetDatePicker");this.initialTouchX=null;this.initialTouchY=null;this.focusTarget=null;this.dateErrorMessages={badInput:{en:"Wrong date format",fi:"Väärä päivämäärämuoto",sv:"Fel datumformat"},rangeUnderflow:{en:"Date too early",fi:"Liian aikainen päivämäärä",sv:"Datum för tidigt"},rangeOverflow:{en:"Date too late",fi:"Liian myöhäinen päivämäärä",sv:"Datum för sent"},valueMissing:{en:"Date required",fi:"Päivämäärä vaaditaan",sv:"Datum krävs"}};this.enableActiveFocus=function(){e.focusTarget="day-button"};this.disableActiveFocus=function(){e.focusTarget=null};this.toggleOpen=function(t){t.preventDefault();e.open?e.hide(false):e.show()};this.handleBlur=function(t){t.stopPropagation();e.inputHasFocus=false;if(!e._validity.valid){e.value=null;var a=Object.entries(e._validity).find((function(t){return!!t[1]}))[0];e.internalValidityError=getLocaleString(e.dateErrorMessages[a])}e.duetBlur.emit({component:"duet-date-picker"})};this.handleFocus=function(t){t.stopPropagation();e.inputHasFocus=true;e.duetFocus.emit({component:"duet-date-picker"})};this.handleTouchStart=function(t){var a=t.changedTouches[0];e.initialTouchX=a.pageX;e.initialTouchY=a.pageY};this.handleTouchMove=function(t){t.preventDefault()};this.handleTouchEnd=function(t){var a=t.changedTouches[0];var i=a.pageX-e.initialTouchX;var n=a.pageY-e.initialTouchY;var r=70;var o=Math.abs(i)>=r&&Math.abs(n)<=r;var s=Math.abs(n)>=r&&Math.abs(i)<=r&&n>0;if(o){e.addMonths(i<0?1:-1)}else if(s){e.hide();t.preventDefault()}e.initialTouchY=null;e.initialTouchX=null};this.handleNextMonthClick=function(t){t.preventDefault();e.addMonths(1)};this.handlePreviousMonthClick=function(t){t.preventDefault();e.addMonths(-1)};this.handleEscKey=createShortcuts({Escape:function(){return e.hide()},Esc:function(){return e.hide()}});this.handleKeyboardNavigation=createShortcuts({ArrowRight:function(){return e.addDays(1)},Right:function(){return e.addDays(1)},ArrowLeft:function(){return e.addDays(-1)},Left:function(){return e.addDays(-1)},ArrowDown:function(){return e.addDays(7)},Down:function(){return e.addDays(7)},ArrowUp:function(){return e.addDays(-7)},Up:function(){return e.addDays(-7)},Home:function(){return e.startOfWeek()},End:function(){return e.endOfWeek()},PageUp:function(){return e.addMonths(-1)},PageDown:function(){return e.addMonths(1)},"Shift+PageUp":function(){return e.addYears(-1)},"Shift+PageDown":function(){return e.addYears(1)},Space:function(t){return e.handleKeyboardDaySelect(t)},Enter:function(t){return e.handleKeyboardDaySelect(t)}});this.handleKeyboardDaySelect=function(t){var a=t.target;var i=parseISODate(a.dataset.day);e.handleDaySelect(t,i)};this.handleDaySelect=function(t,a){var i=parseISODate(e.min);var n=parseISODate(e.max);e.determineValidity(a);if(inRange(a,i,n)){e.setValue(a);e.hide()}};this.handleMonthSelect=function(t){e.setMonth(parseInt(t.target.value,10))};this.handleYearSelect=function(t){e.setYear(parseInt(t.target.value,10))};this.handleInputChange=function(t){e.inputValue=t.detail.value;var a=parseDate(e.inputValue);e.determineValidity(a);if(a||e.inputValue===""){e.setValue(a)}};this.open=false;this.focusedDay=new Date;this.inputValue="";this.inputHasFocus=false;this.internalValidityError="";this.theme="";this.expand=false;this.name="";this.identifier="";this.label="";this.caption=undefined;this.margin="auto";this.language=getLanguage();this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"};this.placeholder=getLocaleString(this.placeholderDefaults,this.language);this.echoPlaceholder=false;this.disabled=false;this.error="";this.disableBuiltInErrors=false;this.labelHidden=false;this.role=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.required=false;this.direction="right";this.tooltip="";this.tooltipDirection="auto";this.value="";this.min="";this.max="";this.incrementYears=10;this.accessibleLiveError="polite"}Object.defineProperty(t.prototype,"validity",{get:function(){return this._validity},enumerable:false,configurable:true});t.prototype.updateValidity=function(t,e,a){if(a==="value"&&t===null){return}this.determineValidity(parseISODate(this.value));if(this._validity.valid){this.internalValidityError=""}};t.prototype.updateInternalValue=function(){if(this.value===null){return}var t=parseISODate(this.value);var e=parseDate(this.inputValue);if(!t){this.inputValue=""}else if(!isEqual(t,e)){this.inputValue=printDate(t)}};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.determineValidity(parseISODate(this.value));this.updateInternalValue();checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"toggle-button":this.datePickerButton.focus();this.focusTarget=null;break;case"day-button":this.focusedDayNode.focus();break;case"month-select":this.monthSelectNode.focus();this.focusTarget=null;break}};t.prototype.componentDidRender=function(){proxyInputToSlot(this.element,this.proxyId,this.name,this.value,this.required)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"placeholder",defaults:"placeholderDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.datePickerInput.setFocus(t);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;this.focusTarget="month-select";this.setFocusedDay(parseISODate(this.value)||new Date);return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.open=false;if(t){this.focusTarget="toggle-button"}return[2]}))}))};t.prototype.addDays=function(t){this.setFocusedDay(addDays(this.focusedDay,t))};t.prototype.addMonths=function(t){this.setMonth(this.focusedDay.getMonth()+t)};t.prototype.addYears=function(t){this.setYear(this.focusedDay.getFullYear()+t)};t.prototype.startOfWeek=function(){this.setFocusedDay(startOfWeek(this.focusedDay))};t.prototype.endOfWeek=function(){this.setFocusedDay(endOfWeek(this.focusedDay))};t.prototype.setMonth=function(t){var e=setMonth(startOfMonth(this.focusedDay),t);var a=endOfMonth(e);var i=setMonth(this.focusedDay,t);this.setFocusedDay(clamp(i,e,a))};t.prototype.setYear=function(t){var e=setYear(startOfMonth(this.focusedDay),t);var a=endOfMonth(e);var i=setYear(this.focusedDay,t);this.setFocusedDay(clamp(i,e,a))};t.prototype.setFocusedDay=function(t){this.focusedDay=clamp(t,parseISODate(this.min),parseISODate(this.max))};t.prototype.determineValidity=function(t){var e,a;var i=(a=(e=this.datePickerInput)===null||e===void 0?void 0:e.value)!==null&&a!==void 0?a:"";var n=i!==""&&t==null;var r=this.required&&t==null;var o=t?!inRange(t,null,parseISODate(this.max)):false;var s=t?!inRange(t,parseISODate(this.min)):false;this._validity={patternMismatch:false,customError:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,badInput:n,rangeUnderflow:s,rangeOverflow:o,valueMissing:r,valid:!(r||n||s||o)}};t.prototype.setValue=function(t){var e=printISODate(t);if(e===this.value){return}this.value=e;this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:t})};t.prototype.handleDocumentClick=function(t){var e=this;if(!this.open){return}var a=t.composedPath().every((function(t){return t!==e.dialogWrapperNode&&t!==e.datePickerButton}));if(a){this.hide(false)}};t.prototype.render=function(){var t=this;var e=parseISODate(this.value);var a=(e||this.focusedDay).getFullYear();var i=this.focusedDay.getMonth();var n=this.focusedDay.getFullYear();var r=i18n[this.language];var o=parseISODate(this.min);var s=parseISODate(this.max);var d=o!=null&&o.getMonth()===i&&o.getFullYear()===n;var l=s!=null&&s.getMonth()===i&&s.getFullYear()===n;var u=a-this.incrementYears;var c=a+this.incrementYears;if(o){u=Math.max(u,o.getFullYear())}if(s){c=Math.min(c,s.getFullYear())}return h(Host,{key:"19c0a0a7ca3a67641f2e2fd47b1f66ef3942be00",class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{key:"4c0294d785d5fbfc00d0b19369c365e03ec540a1",class:"duet-date"},h(DatePickerInput,{key:"33285b02172cd08e881bbdb2fca5624b5a99f8cb",hasFocus:this.inputHasFocus,value:this.value,valueAsDate:e,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error||!this.disableBuiltInErrors&&this.internalValidityError||null,role:this.role,required:this.required,theme:this.theme,tooltip:this.tooltip,tooltipDirection:this.tooltipDirection,labelHidden:this.labelHidden,placeholder:this.placeholder,inputLabel:this.label,identifier:this.identifier,buttonRef:function(e){return t.datePickerButton=e},inputRef:function(e){return t.datePickerInput=e},accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy,accessibleLiveError:this.accessibleLiveError,echoPlaceholder:this.echoPlaceholder,caption:this.caption})),h("div",{key:"2c9407fdc22f7f3f9345bf342d606483806cf0e6",class:{"duet-theme-turva":this.theme==="turva","duet-date-dialog":true,left:this.direction==="left",error:!!this.error,active:this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},h("duet-overlay",{key:"acfc613bbfb189023c734698aa31d8559adbcc7c",visible:this.open,"display-device":"x-small"}),h(FocusGuard,{key:"6a8197e6d5f96312d6f7c150ae5978334ee44af7",moveFocusTo:this.focusedDayNode}),h("div",{key:"16d4fd5169ce40f3bcd66805a28ed366891e88e7",class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:function(e){return t.dialogWrapperNode=e}},h("duet-visually-hidden",{key:"eb26a4f9a803ce065946f742bdcb64db803a0b32","aria-live":"polite"},r.keyboardInstruction),h("div",{key:"00ca0c13193e6443c4989582e3eb1f570fd3e113",class:"duet-date-dialog-mobile-header"},h(DuetInternalLabel,{key:"d3a5c701a6f1d8c2a2a99194fe1152a76133c9c6",margin:"none"},this.label),h("button",{key:"fb2a86e1f251a338a2cb6b4e30260995c485cced",class:"duet-date-picker-close",ref:function(e){return t.closeButtonNode=e},onClick:function(){return t.hide()},type:"button"},h("duet-icon",{key:"7ac51349e66f258160ecd1ca093c739555dbac8a",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),h("duet-visually-hidden",{key:"d22d21a5ff614c658b83edb6631b893b8e9fefe4"},r.closeLabel))),h("div",{key:"dafd3a931c7efed8c5d36996e306635e130e5cc4",class:"duet-date-dialog-header"},h("div",{key:"655b64aeb6eb804538da39d1540bd975dc0d42a8",class:"duet-date-dialog-dropdowns"},h("duet-visually-hidden",{key:"ec0305c056c683a7e8cede20f22317e231b85bbd"},h("h2",{key:"82779b7ba7a438b467a21ecb2871f64b7bce6714",id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},r.monthLabels[i]," ",this.focusedDay.getFullYear())),h("duet-visually-hidden",{key:"9f050f46de2be9dc3c1f9d6965eb72901ca12d67"},h("label",{key:"940dfb77c9440379d63297393a3cb7af96deba3e",htmlFor:this.monthSelectId},r.monthSelectLabel)),h("div",{key:"5d5c3bb349257c8e43f6e63ce1e142b6c630519f",class:"duet-date-dialog-select"},h("select",{key:"74ef4df111f0793d17a3e4439fea8690f5c5169c",id:this.monthSelectId,class:"duet-date-month-select",ref:function(e){return t.monthSelectNode=e},onChange:this.handleMonthSelect},r.monthLabels.map((function(t,e){return h("option",{key:t,value:e,selected:e===i,disabled:!inRange(new Date(n,e,1),o?startOfMonth(o):null,s?endOfMonth(s):null)},t)}))),h("div",{key:"894fdd48da75442d368a1101a5c4a8042b3cf418",class:"duet-date-dialog-select-label","aria-hidden":"true"},h("span",{key:"b3b88e90b0e690f29dcd72937b36ca2a027177e6"},r.monthLabelsShort[i]),h("duet-icon",{key:"d030fc66e0e0fdcda78f26d7a117ea252932be5a",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),h("duet-visually-hidden",{key:"83f4b90e3d44537cb079f91f911385931d43f89c"},h("label",{key:"c2dfc3a34d2236e45726eff1523b22f22b532cfa",htmlFor:this.yearSelectId},r.yearSelectLabel)),h("div",{key:"708dad74eb23709ac341e0bb60ca2960a2fc2131",class:"duet-date-dialog-select"},h("select",{key:"ddda42ee0a550dac56dc85c5e96be637771b5f2e",id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},range(u,c).map((function(t){return h("option",{key:t,selected:t===n},t)}))),h("div",{key:"ea037965dc2d924343aaac84ef2bd3afe3940b67",class:"duet-date-dialog-select-label","aria-hidden":"true"},h("span",{key:"3c6bd199597d6635350ea348f90cf8d94f9c1121"},this.focusedDay.getFullYear()),h("duet-icon",{key:"cdd40b45f01e58dfdb1380aeef672632252c75a7",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),h("div",{key:"a23a3b6969f46d06bdbd80ce21adeeaa6705ad14",class:"duet-date-dialog-buttons"},h("duet-action-button",{key:"2140b1f39112967e325f84f505880e582eb5f5f7",accessibleLabel:i18n[this.language].prevMonthLabel,actionName:i18n[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:d,"icon-name":"action-arrow-left-small"},r.prevMonthLabel),h("duet-action-button",{key:"00a9ecf746d5a43e4c7f6bc66a77d00cfcbfb800",accessibleLabel:i18n[this.language].nextMonthLabel,actionName:i18n[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:l,"icon-name":"action-arrow-right-small"},r.nextMonthLabel))),h(DatePickerMonth,{key:"ad33c40984a96557732fb910e1c640e6d09363e6",selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:o,max:s,focusedDayRef:function(e){return t.focusedDayNode=e},onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),h(FocusGuard,{key:"117953981892ef42470c071ddbde955972a2461d",moveFocusTo:this.closeButtonNode})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{min:["updateValidity"],max:["updateValidity"],value:["updateValidity","updateInternalValue"],required:["updateValidity"]}},enumerable:false,configurable:true});return t}();DuetDatePicker.style=DuetDatePickerStyle0;export{DuetDatePicker as duet_date_picker};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,g as getElement,H as Host}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{g as getColorByName}from"./token-utils-b9ba8c5e.js";import"./tokens.module-2d02f5ff.js";var duetDividerCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(212, 223, 229)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(222, 224, 228)}";var DuetDividerStyle0=duetDividerCss;var DuetDivider=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.color=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e=getColorByName(this.color);return h("div",{key:"99327b6d34622f91cf6916aecf6b544075d53573",class:{"duet-m-0":this.margin==="none","duet-m-s":this.margin==="small","duet-divider":true,"duet-theme-turva":this.theme==="turva"},style:{background:e}})};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetDivider.style=DuetDividerStyle0;var duetSpacerCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.duet-spacer-horizontal){display:inline-block;height:100% !important}:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.duet-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.duet-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.small){width:12px;min-width:12px}}:host(.duet-spacer-horizontal.medium){height:100%}:host(.duet-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.large){width:20px;min-width:20px}}:host(.duet-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.duet-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.duet-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.duet-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.duet-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.duet-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.duet-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.duet-spacer-vertical.small){height:12px;min-height:12px}}:host(.duet-spacer-vertical.medium){width:100%}:host(.duet-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.duet-spacer-vertical.large){height:20px;min-height:20px}}:host(.duet-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.duet-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.duet-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.duet-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.duet-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.duet-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.duet-spacer-xx-small){display:block}}:host(.duet-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.duet-spacer-x-small){display:block}}:host(.duet-spacer-small){display:none}@media (min-width: 36em){:host(.duet-spacer-small){display:block}}:host(.duet-spacer-medium){display:none}@media (min-width: 48em){:host(.duet-spacer-medium){display:block}}:host(.duet-spacer-large){display:none}@media (min-width: 62em){:host(.duet-spacer-large){display:block}}:host(.duet-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.duet-spacer-x-large){display:block}}:host(.duet-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.duet-spacer-xx-large){display:block}}";var DuetSpacerStyle0=duetSpacerCss;var DuetSpacer=function(){function e(e){registerInstance(this,e);this.size="medium";this.direction="vertical";this.breakpoint=""}e.prototype.render=function(){var e;return h(Host,{key:"67abecda5dd86faf6e3399964e8efa1193ac55a4",class:(e={"duet-spacer":true,"duet-spacer-xx-small":this.breakpoint==="xx-small","duet-spacer-x-small":this.breakpoint==="x-small","duet-spacer-small":this.breakpoint==="small","duet-spacer-medium":this.breakpoint==="medium","duet-spacer-large":this.breakpoint==="large","duet-spacer-x-large":this.breakpoint==="x-large","duet-spacer-xx-large":this.breakpoint==="xx-large"},e[this.size]=true,e["duet-spacer-".concat(this.direction)]=true,e)})};return e}();DuetSpacer.style=DuetSpacerStyle0;export{DuetDivider as duet_divider,DuetSpacer as duet_spacer};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):i(e.value).then(o,s)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(a=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{a=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,r;a<i;a++){if(r||!(a in t)){if(!r)r=Array.prototype.slice.call(t,0,a);r[a]=t[a]}}return e.concat(r||Array.prototype.slice.call(t))};
2
- /*!
3
- * Built with Duet Design System
4
- */import{h,r as registerInstance,c as createEvent,H as Host,g as getElement,F as Fragment}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as fieldSorter,d as debounce}from"./js-utils-9b9e0039.js";import{i as isKeyboardClick}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString,s as sanitizeString}from"./language-utils-40caac4f.js";import{p as spaceLarge,q as fontFamilyText,r as fontSizeMedium,u as fontFamilyTextTurva,v as colorSecondary,w as colorSecondaryTurva,x as fontWeightSemiBold,y as lineHeightSmall,z as colorGrayDarker,A as colorGrayDarkTurva,B as spaceMedium,C as spaceXxSmall,n as colorGrayLightest,a as mediaQueryXSmall,D as spaceSmall,E as colorGrayLight,F as colorGrayLightTurva,G as colorGrayDarkerTurva,k as colorPrimary,H as sizeNavigation,s as sizeHeader}from"./tokens.module-2d02f5ff.js";import{b as breakpointTokensUpTo,a as breakpointToToken}from"./token-utils-b9ba8c5e.js";import{c as createID}from"./create-id-149a1b6d.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";import{g as getError,a as getI18nError}from"./errorcodes.utils-86af68b7.js";var TableData=function(e,t){var n=e.data,a=e.groupId,i=e.alignment;var r="duet-editable-table duet-editable-table-content-".concat(a);if(typeof n==="string"){return h("td",{innerHTML:n,class:r,part:"".concat(a,"content"),style:{verticalAlign:i}})}else{return h("td",{class:r,part:"".concat(a,"content"),style:{verticalAlign:i}},n)}};var duetEditableTableCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu,td.duet-editable-table-actions-menu{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon .duet-icon{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row .duet-text-right{text-align:right}.duet-editable-table-header tr .duet-editable-table-header-hidden{padding:0 !important;font-size:0;border-bottom:0}";var DuetEditableTableStyle0=duetEditableTableCss;var DuetEditableTable=function(){function e(e){var t=this;registerInstance(this,e);this.duetTableToggle=createEvent(this,"duetTableToggle",7);this.duetMenuClick=createEvent(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(e,n){n.preventDefault();var a=e.sort_order,i=e.direction,r=e.index,o=e.key;t.duetTableToggle.emit({sort_order:a,index:r,direction:i,key:o,component:"duet-editable-table",originalEvent:n})};this.handleKeyDown=function(e,n){if(isKeyboardClick(n)){t.toggleColumn(e,n)}};this.language=getLanguage();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.createLabel=function(e){var t=this;var n=e.sort_order,a=e.direction,i=e.index,r=e.label;var o=getLocaleString(r);if(!this.sortable){return o}var s=function(){if(!!n&&a===1){return"action-arrow-down-small"}else if(!!n&&a===-1){return"action-arrow-up-small"}return"action-subtract-small"};return h("span",{class:"duet-table-label","data-index":i},h("duet-button",{size:"small",icon:s(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(n){return t.toggleColumn(e,n)},onKeyDown:function(n){return t.handleKeyDown(e,n)}},o))};e.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(fieldSorter(["index"]))};e.prototype.getRowSortOrder=function(){var e=__spreadArray([],this.columns,true).sort(fieldSorter(["sort_order"]));return e.filter((function(e){return e.sort_order})).map((function(e){return e.direction===-1?"-".concat(e.key):e.key}))};e.prototype.renderTableHeader=function(){var e=this;if(!this.columns){return}var t=this.getSortedColumns();return h("tr",{class:{"duet-table-action-header":!!this.actions}},t.map((function(t){if(t.display!==false){var n=e.createLabel(t);return n!==""?h("th",{scope:"col"},n):h("td",null)}})),this.actions&&h("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&h("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};e.prototype.renderActions=function(e,t){var n=this;if(!this.actions){return}return h("td",{class:"duet-text-right"},this.actions.map((function(a){return h("duet-action-button",{actionMeta:Object.assign({},(e===null||e===void 0?void 0:e.meta)||{},{index:t}),actionId:(e===null||e===void 0?void 0:e.uid)||(e===null||e===void 0?void 0:e.id)||null,actionName:a.name,theme:n.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":"".concat(e.actionDescription||""," ").concat(getLocaleString(a.label)," ")})})))};e.prototype.renderTableBody=function(){var e=this;var t=this.getSortedColumns();var n=this.getRowSortOrder();var a=__spreadArray([],this.rows,true).sort(fieldSorter(n));return a.map((function(n,a){var i;return h("tr",{class:(i={"duet-table-action-row":!!e.actions,"duet-editable-table-row":true},i["duet-editable-table-row-".concat(e.groupId)]=true,i),"data-meta":JSON.stringify(n.meta)},t.map((function(t){var a=n[t.key]?n[t.key]:n.item;if(t.display!==false){return h(TableData,{data:a,groupId:e.groupId})}})),e.actions&&e.renderActions(n,a))}))};e.prototype.render=function(){var e;return h(Host,{key:"05720c6ef38164df71b02c23fb45d3d84808c2ac",class:(e={},e["duet-editable-table-".concat(this.variation)]=true,e["duet-editable-table"]=true,e["duet-editable-table-".concat(this.theme)]=true,e["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-editable-table-sortable"]=this.sortable,e["duet-editable-table-actions"]=!!this.actions,e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e)},h("duet-table",{key:"52033d6f9c4e8ca460bacee6e2b8ea93da3b9eb8",class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},h("table",{key:"7f0689d1e576d5f0c5324715feaf21ce21c42e97",role:this.accessibleRole},h("caption",{key:"4e18555d5513dde6724a449d12030cc666937367"},h("slot",{key:"df9bcd3bde75a2669a08eb2ff0c67720750e5450",name:"tcaption"})),h("thead",{key:"efbbe81840f6e9ae9e0cc91fee5653c43181f131"},this.hasHeadSlotFirst&&h("tr",{key:"36d1a860bf16229740501f3b076b02125d1b3d85"},h("td",{key:"24c22fca3cbfef4ab9e2582cf32bf967654b8b43",class:"duet-editable-table-actions-menu",colSpan:99},h("slot",{key:"a02148a1d13dc8c3147b26da2f5aa84e3b359cdf",name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&h("tr",{key:"7b7ab392f982f5f7ce4caa5e86f7a1062412aad2"},h("td",{key:"cd739dea8b81f3290bb86d7e977fa83d124fdd03",class:"duet-editable-table-actions-menu",colSpan:99},h("slot",{key:"068a9f86388a25ca00944d8e9ecfbed6cf0e2cfe",name:"thead-last"})))),h("tbody",{key:"f65077b6dee57c962826c459ddb044d4230753c5"},this.renderTableBody()),this.hasFootSlot&&h("tfoot",{key:"eceeface4ad0a0bbb15dc188a343291cef04ec72"},h("tr",{key:"aff41dc81c24e09a03db4742bf6d51c17b8ce937"},h("td",{key:"5d332218393462356c02ca19ff9c3398fbeb89a7",class:"duet-editable-table-footer-menu",colSpan:99},h("slot",{key:"b438187cfa67ef90452783e9522d106ecf9ab9d3",name:"tfoot"})))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetEditableTable.style=DuetEditableTableStyle0;var rgbable=function(e){return e.replace("rgb(","").replace(")","")};var styles="\nduet-table {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n margin-bottom: ".concat(spaceLarge," !important;\n display: block;\n font-variant-numeric: tabular-nums;\n\n table,\n thead,\n tbody,\n tfoot,\n th,\n td,\n tr {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n }\n\n &.duet-m-0 {\n margin: 0 !important;\n }\n\n table {\n width: 100%;\n font-family: ").concat(fontFamilyText,";\n font-size: ").concat(fontSizeMedium,";\n text-align: left;\n border-spacing: 0;\n border-collapse: separate;\n }\n\n &.duet-table-hide-head-visually.duet-table-hide-head-visually {\n thead,\n thead * {\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n }\n }\n\n &.duet-theme-turva table {\n font-family: ").concat(fontFamilyTextTurva,";\n }\n\n td {\n -webkit-hyphens: auto;\n hyphens: auto;\n color: ").concat(colorSecondary,";\n }\n\n &.duet-theme-turva td {\n color: ").concat(colorSecondaryTurva,";\n }\n\n th {\n font-weight: ").concat(fontWeightSemiBold,";\n line-height: ").concat(lineHeightSmall,";\n color: ").concat(colorGrayDarker,";\n text-align: left;\n }\n\n &.duet-theme-turva th {\n color: ").concat(colorGrayDarkTurva,";\n }\n\n tbody th {\n font-weight: ").concat(fontWeightSemiBold,";\n color: ").concat(colorSecondary,";\n }\n\n &.duet-theme-turva tbody th {\n color: ").concat(colorSecondaryTurva,";\n }\n\n & .duet-table-action-row {\n & td:last-child {\n justify-self: end;\n padding-right: ").concat(spaceLarge," !important;\n white-space: nowrap;\n }\n }\n\n span.duet-table-cell-heading {\n display: none;\n }\n}\n\n.duet-table-flattened {\n table,\n thead,\n tbody,\n tfoot,\n th,\n td,\n tr {\n display: block;\n }\n\n thead tr {\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n }\n\n td {\n line-height: ").concat(lineHeightSmall,";\n\n &:not(:last-child) {\n margin-bottom: ").concat(spaceMedium,";\n }\n\n span.duet-table-cell-heading {\n margin-bottom: ").concat(spaceXxSmall,";\n display: block;\n font-size: ").concat(fontSizeMedium,";\n font-weight: ").concat(fontWeightSemiBold,";\n color: ").concat(colorSecondary,";\n }\n }\n\n &.duet-theme-turva td span.duet-table-cell-heading {\n color: ").concat(colorSecondaryTurva,";\n }\n\n tbody td,\n tbody th,\n tfoot td {\n padding: 0 !important;\n text-align: left !important;\n }\n\n tbody th {\n font-weight: ").concat(fontWeightSemiBold,";\n line-height: ").concat(lineHeightSmall,";\n color: ").concat(colorGrayDarker,";\n text-align: left;\n }\n}\n\n.duet-table-sticky thead th {\n position: sticky;\n top: 0;\n background: ").concat(colorGrayLightest,";\n}\n\n.duet-table-striped {\n td,\n th {\n padding: ").concat(spaceLarge," !important;\n @media ").concat(mediaQueryXSmall.replace("'","").replace("'","")," {\n padding: ").concat(spaceLarge," ").concat(spaceSmall," !important;\n }\n }\n\n tbody th {\n background: ").concat(colorGrayLightest,";\n }\n\n &.duet-table-sticky {\n thead th {\n border-bottom: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva thead th {\n border-bottom-color: ").concat(colorGrayLightTurva,";\n }\n }\n\n tbody:not(:first-of-type) th {\n padding-top: calc(").concat(spaceLarge," * 2) !important;\n }\n\n tbody:only-of-type tr:nth-of-type(odd) {\n background: rgba(4, 81, 128, 0.04);\n }\n\n &.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd) {\n background: rgba(").concat(rgbable(colorSecondaryTurva),", 0.04);\n }\n\n tbody:not(:only-of-type) tr:nth-of-type(even) {\n background: rgba(4, 81, 128, 0.04);\n }\n\n &.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even) {\n background: rgba(").concat(rgbable(colorSecondaryTurva),", 0.04);\n }\n\n tfoot td {\n border-top: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tfoot td {\n border-top-color: ").concat(colorGrayLightTurva,";\n }\n\n &.duet-table-flattened {\n tbody:not(:first-of-type) th {\n padding-top: ").concat(spaceLarge," !important;\n }\n\n tr {\n padding: ").concat(spaceLarge," !important;\n }\n\n tfoot {\n td {\n border-top: 0;\n }\n\n tr {\n border-top: 1px solid ").concat(colorGrayLight,";\n }\n }\n\n &.duet-theme-turva tfoot tr {\n border-top-color: ").concat(colorGrayLightTurva,";\n }\n }\n}\n\n.duet-table-plain, .duet-table-fixed, .duet-table-minimal {\n th {\n padding: ").concat(spaceMedium," !important;\n border-bottom: 1px solid ").concat(colorGrayDarker,";\n\n &:first-child {\n padding-left: 0 !important;\n }\n\n &:last-child {\n padding-right: 0 !important;\n }\n }\n\n &.duet-theme-turva th {\n border-bottom-color: ").concat(colorGrayDarkerTurva,";\n }\n\n tbody th {\n padding-top: calc(").concat(spaceLarge," * 2) !important;\n border-bottom-color: ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tbody th {\n border-bottom-color: ").concat(colorGrayLightTurva,";\n }\n\n td {\n padding: ").concat(spaceMedium," !important;\n\n &:first-child {\n padding-left: 0 !important;\n }\n\n &:last-child {\n padding-right: 0 !important;\n }\n }\n\n tbody td {\n border-bottom: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tbody td {\n border-bottom-color: ").concat(colorGrayLightTurva,";\n }\n\n &.duet-table-flattened {\n tbody:first-of-type th {\n padding-top: 0 !important;\n }\n\n td,\n tbody th {\n border-bottom: 0;\n }\n\n tr {\n padding: ").concat(spaceLarge," 0 !important;\n }\n\n tbody th {\n padding-top: ").concat(spaceLarge," !important;\n }\n\n tfoot td {\n margin-bottom: ").concat(spaceXxSmall," !important;\n }\n\n tbody:not(:only-of-type) tr:first-child {\n border-bottom: 0;\n }\n }\n}\n\n.duet-table-plain {\n\n &.duet-table-flattened {\n tbody tr {\n border-bottom: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tbody tr {\n border-bottom-color: ").concat(colorGrayLightTurva,";\n }\n }\n}\n\n.duet-table-minimal {\n\n tbody tr,\n tbody tr td {\n vertical-align: top;\n border-bottom: 0 none;\n }\n\n tbody tr:last-of-type,\n tbody tr:last-of-type td {\n border-bottom: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-table-flattened {\n tbody tr,\n tbody tr td {\n border-bottom: 0 none;\n }\n\n tbody tr td[data-heading]::before {\n display: none;\n }\n\n tfoot {\n border-top: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tfoot {\n border-top-color: ").concat(colorGrayLightTurva,";\n }\n }\n}\n\n.duet-table-fixed {\n\n table {\n table-layout: fixed;\n }\n\n tbody tr,\n tbody tr td,\n tbody tr td:first-child {\n padding: 4px !important;\n vertical-align: text-bottom;\n border-bottom: 0 none;\n }\n\n thead {\n display: none;\n }\n\n tbody tr,\n tbody tr td {\n border-bottom: 0 none;\n }\n\n &:not(.duet-table-flattened) {\n tfoot {\n border-top: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tfoot {\n border-top-color: ").concat(colorGrayLightTurva,";\n }\n }\n}\n.duet-table-scrollable {\n position: relative;\n width: 100%;\n overflow-x: auto;\n background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;\n background-repeat: no-repeat;\n background-attachment: local, local, scroll, scroll;\n background-size: 100px 100%, 100px 100%, 12px 100%, 12px 100%;\n}\n\n.duet-table-selected-column {\n background: rgba(").concat(rgbable(colorPrimary),", 0.08);\n\n .duet-theme-turva & {\n background: rgba(").concat(rgbable(colorGrayDarkerTurva),", 0.08);\n }\n}\n\n.duet-table-sortable {\n tbody tr td:first-child,\n thead tr th:first-child {\n padding: ").concat(spaceLarge,";\n }\n\n &:not(.duet-table-flattened) {\n tfoot {\n border-top: 1px solid ").concat(colorGrayLight,";\n }\n\n &.duet-theme-turva tfoot {\n border-top-color: ").concat(colorGrayLightTurva,';\n }\n }\n}\n\n\n.duet-table-actions {\n table {\n table-layout: auto;\n }\n\n thead {\n & th:last-child {\n width: 1px;\n white-space: nowrap;\n }\n }\n}\n\n.duet-editable-table-table.duet-table-flattened {\n tr {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-auto-rows: auto;\n gap: 10px;\n\n &.duet-table-action-row td:last-child::before {\n padding: 0;\n content: "";\n }\n }\n\n td {\n grid-column: 1 / 2;\n\n &:first-child {\n grid-row: 1;\n grid-column: 1;\n }\n\n &:last-child {\n grid-row: 1;\n grid-column: 2;\n }\n }\n}\n').replace(/[\n\r\t]/gm,"");function createStyles(e){var t=e.getRootNode();var n=t instanceof ShadowRoot;if(n){var a=new CSSStyleSheet;a.replace(styles).then((function(){t.adoptedStyleSheets.push(a)}))}else{var i=document.querySelector("style#duet-table-styles");if(i){return}var r=document.createElement("style");r.id="duet-table-styles";r.innerHTML=styles;document.head.append(r)}}var stickyTopValues={none:0,"with-links":parseFloat(sizeNavigation)*16,"without-links":parseFloat(sizeHeader)*16};var DuetTable=function(){function e(e){var t=this;registerInstance(this,e);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(e){t.matchesBreakpoint=breakpointTokensUpTo.includes(t.breakpoint)?!e.matches:e.matches};this.matchesBreakpoint=true;this.language=getLanguage();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}e.prototype.watchLanguageStateHandler=function(e,t){var n=this;if(e!==t){setTimeout((function(){return n.copyHeadingsToCells()}),50)}};e.prototype.connectedCallback=function(){var e=this;createStyles(this.element);var t=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":breakpointToToken[this.breakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",debounce(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return debounce(e.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var e=stickyTopValues[this.stickyDistance];var t=this.element.querySelectorAll(this.headingSelector);t.forEach((function(t){return t.style.top="".concat(e,"px")}))}};e.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;disconnectLanguageChangeObserver(this)};e.prototype.copyHeadingsToCells=function(){var e=this.element.querySelectorAll(this.headingSelector);var t=this.element.querySelectorAll("tbody tr");var n=Array.from(e).map((function(e){return e.textContent.trim()}));t.forEach((function(e){e.querySelectorAll("td").forEach((function(e,t){if(n[t]){var a=e.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==n[t]){a===null||a===void 0?void 0:a.remove();var i=document.createElement("span");i.textContent=n[t];i.classList.add("duet-table-cell-heading");i.setAttribute("aria-hidden","true");i.inert=true;e.prepend(i)}}}))}))};e.prototype.render=function(){var e;return h(Host,{key:"72de844955aa9838e7c02ea85e8b01a7b93ab62e",class:(e={},e["duet-table-".concat(this.variation)]=true,e["duet-table-flattened"]=!this.matchesBreakpoint,e["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,e["duet-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-table-hide-head-visually"]=this.hideHeadVisually,e)},h("slot",{key:"d04cc4bc3ee738f5dea148cac4ed37999c699ded"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}();var errorCodes=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var headerAriaLabel={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var UploadItemHeader=function(e){var t=e.label,n=e.categoryLabel;return h("div",{class:"items-header",tabindex:"-1","aria-label":getLocaleString(headerAriaLabel)},n&&h("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},getLocaleString(n)),h("duet-heading",{class:{"filename-header":true,"no-category":!n},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},getLocaleString(t)))};var validateFileExtension=function(e,t){if(!t){return true}var n=e.split(".");var a=t.split(",");var i=n[n.length-1];return a.includes(i)};var validateFileMime=function(e,t){if(!t||!e){return true}var n=t.split(",");var a=false;n.forEach((function(t){var n=t.split("/");var i=e.split("/");if(n[0]===i[0]&&(n[1]===i[1]||n[1]==="*")){a=true}}));return a};var validateFileSize=function(e,t){if(!t||!e){return true}return t>=e};var validateFile=function(e,t,n){var a=t.allowedMimetypes,i=t.allowedExtensions,r=t.maxBytes;var o=false;var s=getError("default",n);if(e){var l=e.name,d=e.type,u=e.size;var h=validateFileMime(d,a);var c=i==="all"||i===""||i===" "||i===undefined?true:validateFileExtension(l.toLowerCase(),i);var f=validateFileSize(u,r);if(!h){s=getError("duet-upload-101",n)}if(!c){s=getError("duet-upload-100",n)}if(!f){s=getError("duet-upload-201",n)}o=h&&c&&f}else{o=false}return{valid:o,errorMessage:o?undefined:getLocaleString(s.message),errorSystem:o?undefined:s.system_message,errorType:o?undefined:s.type}};var validateTotalSizeIsAboveMax=function(e,t){var n=0;if(t){e.forEach((function(e){if(e.valid&&e.size){n+=e.size}}));if(n>=t){return true}}return false};var validateTotalAmountIsAboveMax=function(e,t){var n=0;if(t){e.forEach((function(e){if(e.valid){n++}}));if(n>=t){return true}}return false};var filesToUploadCountAboveMax=function(e,t,n){if(e+t>n){return true}return false};var filesToUploadTotalSizeIsAboveMax=function(e,t,n){var a=0;if(n){e.forEach((function(e){if(e.valid&&e.size){a+=e.size}}));t.forEach((function(e){if(e.size){a+=e.size}}));if(a>=n){return true}}return false};var makeXhrRequest=function(e){var t=e.payload,n=e.options,a=e.onFailure,i=e.onSuccess,r=e.onProgress;var o=n.type,s=o===void 0?"POST":o,l=n.xhr,d=n.uri,u=n.argument,h=u===void 0?null:u,c=n.headers,f=c===void 0?null:c;l.open(s,"".concat(d).concat(h||""),true);var p=t.data,b=t.name;if(f){Object.keys(f).forEach((function(e){l.setRequestHeader(e,f[e])}))}if(s==="POST"){l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300){i(l,b,l.status)}if(l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999){a(l,b,l.status)}};r(b)}l.send(p);return l};var duetUploadCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var DuetUploadStyle0=duetUploadCss;var DuetUpload=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.duetReady=createEvent(this,"duetReady",7);this.duetDone=createEvent(this,"duetDone",3);this.duetState=createEvent(this,"duetState",3);this.duetDelete=createEvent(this,"duetDelete",3);this.duetCancel=createEvent(this,"duetCancel",3);this.duetProgress=createEvent(this,"duetProgress",3);this.duetUpload=createEvent(this,"duetUpload",3);this.linkClick=createEvent(this,"linkClick",3);this.buttonId=createID("DuetButton");this.labelId=createID("DuetLabel");this.uploadId=createID("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=debounce((function(){t.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){t.element.addEventListener("duetActionEvent",(function(e){var n=e.detail;var a=n.action,i=n.id,r=n.originalEvent;switch(a){case"delete":t.onDelete(i,r);break;case"cancel":t.onCancel(i,r);break}}))};this.verifyValidity=function(){var e=t.getFilesAsArray(),n=e.invalid,a=e.valid;var i=t.valid;t.valid=n.length===0&&a.length!==0;if(t.valid!==i){t.duetState.emit({originalEvent:undefined,data:{valid:t.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(e){if(e.valid&&e.progress===100){return t.DefaultGroups.success}else if(e.progress>0&&e.progress!==100){return t.DefaultGroups.inprogress}else if(!e.valid){return t.DefaultGroups.failure}else if(e.pending){return t.DefaultGroups.pending}else if(e.group){return e.group}else{return"none"}};this.mapFilesToUploadItems=function(e,n,a,i){if(n===t.DefaultGroups.success){return h("duet-upload-item",{theme:t.theme,actions:t.getActions(n,i),type:"success",data:e,showLinks:t.showLinks,linkClickEvent:t.emitEvent?t.linkClick:undefined,categoryLabel:t.categoryLabel,label:t.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:t.processedButtonTitles,ref:function(n){t.itemRefs.set(e.uid,n)}})}else if(n===t.DefaultGroups.inprogress){return h("duet-upload-item",{theme:t.theme,actions:t.getActions(n,i),type:"inprogress",data:e,showLinks:t.showLinks,categoryLabel:t.categoryLabel,label:t.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:t.processedButtonTitles,ref:function(n){t.itemRefs.set(e.uid,n)}})}else if(n===t.DefaultGroups.pending){return h("duet-upload-item",{theme:t.theme,actions:t.getActions(n,i),type:"pending",data:e,showLinks:t.showLinks,categoryLabel:t.categoryLabel,label:t.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:t.processedButtonTitles,ref:function(n){t.itemRefs.set(e.uid,n)}})}else if(n===t.DefaultGroups.failure){return h("duet-upload-item",{theme:t.theme,actions:t.getActions(n,i),type:"failure",data:e,showLinks:t.showLinks,errorCodes:t.errorCodes,categoryLabel:t.categoryLabel,label:t.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:t.processedButtonTitles,ref:function(n){t.itemRefs.set(e.uid,n)}})}else if(e.group){return e.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(e,n,a,i){if(i===void 0){i=true}try{var r=t.files.get(e);r[n]=a;t.files.set(e,r);if(t.external&&n!=="url"){t.trackProgress(e,n==="uploaded")}}catch(e){}if(i){t.kick()}};this.updateProgress=function(e,n){var a=function(a){t.updateValueInMap(n,"progress",a);t.onProgress(n,a,e)};if(e.lengthComputable){var i=e.loaded/e.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(e,n){if(n===void 0){n=false}if(n){t.filesInProgress.delete(e)}else{t.filesInProgress.set(e,"inprogress")}if(t.filesInProgress.size===0){t.onDone()}};this.getFilesAsArray=function(){var e=[];var n=[];t.files.forEach((function(t){if(t.valid&&!t.deleted){e.push(t)}else if(!t.valid&&!t.deleted){n.push(t)}}));return{valid:e,invalid:n}};this.resetFormFields=function(){t.nativeInput.value=""};this.startUpload=function(e){var n=[];for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}return __awaiter(t,__spreadArray([e],n,true),void 0,(function(e,t){var n,a,i;if(t===void 0){t=undefined}return __generator(this,(function(r){n=this.validateTotals(),a=n.bytesMaxReached,i=n.fileMaxReached;if(a||i){this.kick();return[2]}this.metaData=t;this.nativeInput.click();this.onUpload(e,t);e.stopPropagation();e.preventDefault();return[2]}))}))};this.transferComplete=function(e){t.updateValueInMap(e,"progress",100,false);t.trackProgress(e,true)};this.transferDone=function(e,n,a){t.updateValueInMap(n,"status",a,false);t.updateValueInMap(n,"uploaded",true,false);try{var i=JSON.parse(e.response);t.updateValueInMap(n,"url",i.url)}catch(e){t.updateValueInMap(n,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(e,n,a){try{var i=JSON.parse(e.response).error;t.updateValueInMap(n,"error",{message:i.message,type:i.type},false)}catch(e){console.error("Server did not respond with expected response error:{message: string, type: int}");t.updateValueInMap(n,"error",{type:a},false)}t.updateValueInMap(n,"valid",false,true)};this.transferFailed=function(e){t.updateValueInMap(e,"error",getI18nError("duet-upload-001",t.errorCodes))};this.transferCanceled=function(e){t.files.delete(e);t.validateTotals(e);t.kick()};this.validateTotals=function(e){var n=validateTotalSizeIsAboveMax(t.files,t.maxBytesTotal);var a=validateTotalAmountIsAboveMax(t.files,t.maxFiles);if(n&&e){t.updateValueInMap(e,"error",getI18nError("duet-upload-202",t.errorCodes),false)}if(a&&e){t.updateValueInMap(e,"error",getI18nError("duet-upload-301",t.errorCodes),false)}t.bytesMaxReached=n;t.fileMaxReached=a;return{bytesMaxReached:n,fileMaxReached:a}};this.uploadFile=function(e){var n=[];for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}return __awaiter(t,__spreadArray([e],n,true),void 0,(function(e,t,n){var a,i,r;if(t===void 0){t=false}return __generator(this,(function(o){switch(o.label){case 0:if(!t&&this.deferUpload){this.updateValueInMap(e.item.name,"pending",true,false);this.updateValueInMap(e.item.name,"group","pending",true)}else if(t){this.updateValueInMap(e.item.name,"pending",false,false);this.updateValueInMap(e.item.name,"group",undefined,true)}o.label=1;case 1:o.trys.push([1,4,,5]);if(!(!this.deferUpload||t))return[3,3];a=new FormData;a.append("file",e.item);if(n){a.append("key",n)}a.append("uid",e.uid);a.append("name",e.item.name);a.append("metadata",JSON.stringify({uid:e.uid,url:this.uri,size:e.item.size,meta:e.meta}));i=e;return[4,this.makeXHRPostRequest(a)];case 2:i.xhr=o.sent();o.label=3;case 3:return[3,5];case 4:r=o.sent();this.updateValueInMap(e.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var e=0,n=Array.from(t.files.entries());e<n.length;e++){var a=n[e],i=a[0],r=a[1];if(r.group==="pending"&&r.pending===true){t.uploadFile(r,true,i)}}};this.getItemFromUID=function(e){for(var n=0,a=Array.from(t.files.entries());n<a.length;n++){var i=a[n],r=i[0],o=i[1];if(o.uid===e){return{value:o,key:r}}}return null};this.handleExternalUploadButton=function(e,n){if(t.externalUploadButton){if(e||n){t.externalUploadButton.disabled=true}else{t.externalUploadButton.disabled=false}}};this.onDelete=function(e,n){var a=t.getItemFromUID(e);var i=a.key;var r=t.files.get(i);t.files.delete(i);var o=t.validateTotals(),s=o.bytesMaxReached,l=o.fileMaxReached;t.handleExternalUploadButton(s,l);t.kick();t.duetDelete.emit({originalEvent:n,data:{deletion:r},component:"duet-upload"});if(!t.external&&!r.pending){t.makeXHRDeleteRequest(r)}t.resetFormFields()};this.onCancel=function(e,n){var a=t.getItemFromUID(e).key;var i=t.files.get(a);t.files.delete(a);var r=t.validateTotals(),o=r.bytesMaxReached,s=r.fileMaxReached;t.handleExternalUploadButton(o,s);if(!t.external){var l=i.xhr;if(l){l.abort()}}t.kick();t.resetFormFields();t.duetCancel.emit({originalEvent:n,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(e,n){t.duetUpload.emit({originalEvent:e,metaData:n,component:"duet-upload"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,component:"duet-upload"})};this.onProgress=function(e,n,a){t.duetChange.emit({originalEvent:a,data:{key:e,percentComplete:n},component:"duet-upload"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,component:"duet-upload"})};this.onReady=function(){t.duetReady.emit({component:"duet-upload"})};this.onDone=function(){t.duetDone.emit({component:"duet-upload",data:{files:t.files}})};this.filterMap=function(){var e=Array.from(t.files.values());var n=[];var a=[];var i=[];var r=[];var o=false;e.forEach((function(e){var s=t.getGroupFromItemData(e);if(e.meta&&!!e.meta.badges){o=true}if(s===t.DefaultGroups.success){r.push({uid:e.uid,data:e})}else if(s===t.DefaultGroups.inprogress){n.push({uid:e.uid,data:e})}else if(s===t.DefaultGroups.pending){i.push({uid:e.uid,data:e})}else if(s===t.DefaultGroups.failure){a.push({uid:e.uid,data:e})}else if(e.group){n.push({uid:e.uid,data:e})}}));return{pending:i,failure:a,success:r,inprogress:n,hasCategory:o}};this.getActions=function(e,t){return t.filter((function(t){return t.map.includes(e)}))};this.renderUploadedItems=function(){t.itemRefs.clear();var e=t.filterMap();var n=e.hasCategory;var a=t.hideCancelButton?t.actions.filter((function(e){return e.name!=="cancel"})):t.actions;var i=t.groups.map((function(i){var r=e[i.id];if(!(r===null||r===void 0?void 0:r.length)){return}return h(Fragment,null,!t.hideGroups&&h(UploadItemHeader,{categoryLabel:n?t.categoryLabel:undefined,label:i.label}),r.map((function(e){return t.mapFilesToUploadItems(e.data,i.id,n,a)})))}));return h(Fragment,null,t.showUploadedItemsHeader&&h(UploadItemHeader,{categoryLabel:n?t.categoryLabel:undefined,label:t.uploadedItemsHeaderLabel}),i)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=getLocaleString(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=getLocaleString(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=getLocaleString(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=getLocaleString(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=getLocaleString(this.fileListEmptyDefaults);this.error="";this.errorCodes=errorCodes;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}e.prototype.watchValidHandler=function(e,t){if(e!==t){this.kick()}};e.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=sanitizeString(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}inheritGlobalTheme(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=parsePossibleJSON(this.actionButtonTitles)};e.prototype.componentWillRender=function(){this.verifyValidity()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus(e)}return[2]}))}))};e.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(e){var t,n,a;if(e===void 0){e=undefined}return __generator(this,(function(i){t=this.validateTotals(),n=t.bytesMaxReached,a=t.fileMaxReached;if(n||a){this.handleExternalUploadButton(n,a);this.kick();return[2]}this.metaData=e;this.nativeInput.click();return[2]}))}))};e.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.uploadPendingFiles();return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.kick();return[4,this.setFocus()];case 1:e.sent();return[2]}}))}))};e.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};e.prototype.updateValue=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.updateValueInMap(e,t,n);return[2]}))}))};e.prototype.focusActionButton=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,(t=this.itemRefs.get(e))===null||t===void 0?void 0:t.focusActionButton()];case 1:n.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.uploadId;var n=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var a=Math.round(this.maxBytes/1024/1024);var i=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());i=i.replace(/{maxbytes}/g,"".concat(a.toString()," MB"));i=i.replace(/{maxbytestotal}/g,"".concat(n.toString()," MB"));i=i.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(i)}return h(Host,{key:"543992b9d9c308f9e01bae345b5fd8c806b94d8f",class:{"duet-m-0":this.margin==="none"}},h("duet-fieldset",{key:"77e0b4bc007bfb6259a45a0d360611c8a8f58a57","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},h("slot",{key:"aaefb5b725097acfba9855cbeda4af32ccb39702",name:"header"}),!this.files.size&&h("duet-empty-state",{key:"e03c91293b669c938fa1bb156549c8b85dabfd1a",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},h("duet-paragraph",{key:"9158cff25bef2cdcf251140604c17b4c9917fe63",margin:"none"},this.fileListEmpty)),!!this.files.size&&h("slot",{key:"0545322e2f3dc59797b5a5a7e2dc7b03d45abbf7",name:"fileheader"}),!!this.files.size&&h("duet-upload-aria-status",{key:"4180909f17d65a4f7d7f6ce772cf7316bec91161",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&h("slot",{key:"5c489100fac57463ed965d0ce8a81be27d4ba3da",name:"filefooter"}),h("slot",{key:"2ff841a688a9a03d2ca0b476336c85e815f3b6e4",name:"uploadfooter"}),this.captionOnBottom&&h("duet-caption",{key:"ba7ccda08073f82c646ca46e2665d6998bf6fb30",margin:"none",size:"small"},h("div",{key:"e3cab668b5d88f68275c62b878db3c46e133dd26",class:"upload-bottom-caption"},i)),h("slot",{key:"ee6f6b6083d15d990f95baf44d10cbcffbf0ebc4",name:"afterfooter"}),!this.hideButton&&h(Fragment,{key:"287c6c09b0beecd2e586fee769feca4bb35a185c"},h("duet-spacer",{key:"3aae82caef09bbd97ec88ac30ca1732f8c07f940",size:"large"}),h("duet-button",{key:"708bcfc6751bdef503a581f543812eca76ebdf9d",id:this.buttonId,onClick:this.startUpload,"accessible-controls":t,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(i),"accessible-owns":t,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&h(Fragment,{key:"08acb67d151215eb8d87ea2d2a8b06b8679e7279"},h("duet-spacer",{key:"627aff6809d68c854b2d73fb058b163959f20e4a",size:"medium"}),h("duet-alert",{key:"67aff7ef34cf925bc40bcc9de417f1415bac12c2",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&getI18nError("duet-upload-301",this.errorCodes),this.bytesMaxReached&&getI18nError("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&getI18nError("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&getI18nError("duet-upload-203",this.errorCodes))),h("duet-visually-hidden",{key:"2638b759795817f6db83dd714135600e267b7794","aria-hidden":"true"},h("input",{key:"c395a101ca022d9d3f56f9b94bc4a5b6cf19e37b",ref:function(t){e.nativeInput=t},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(t){return e.onChange(t)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};e.prototype.makeXHRPostRequest=function(e){var t=this;var n=new XMLHttpRequest;var a=e.get("name");n.upload.addEventListener("progress",(function(e){t.updateProgress(e,a)}));n.upload.addEventListener("load",(function(){t.transferComplete(a)}));n.upload.addEventListener("error",(function(){t.transferFailed(a)}));n.upload.addEventListener("abort",(function(){t.transferCanceled(a)}));var i={payload:{data:e,name:a},options:{type:"POST",uri:this.uri,xhr:n,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){i=this.middleware(i)}return makeXhrRequest(i)};e.prototype.makeXHRDeleteRequest=function(e){var t=e.uid,n=e.item;var a=new XMLHttpRequest;var i={"x-fileuid":t,"x-filename":n.name};var r={payload:{data:null,name:name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:"?key=".concat(t,"&name=").concat(n.name),headers:i},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){r=this.middleware(r)}return makeXhrRequest(r)};e.prototype.escapeSpecialCharacters=function(e){return(e+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};e.prototype.getRenamedFileName=function(e,t){var n=new RegExp("".concat(this.escapeSpecialCharacters(e)," \\(\\d+\\).").concat(t));var a=Array.from(this.files.entries()).map((function(e){var t=e[0],n=e[1];return t})).filter((function(a){return n.test(a)||a==="".concat(e,".").concat(t)})).sort((function(e,t){return e.split(".").slice(0,-1).join(".")>t.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(a===e){return"".concat(e," (1).").concat(t)}var i=parseInt(a.split("(").pop().slice(0,-1));return"".concat(e," (").concat(i+1,").").concat(t)};e.prototype.renameFiles=function(e){var t=this;return e.map((function(e){if(t.files.get(e.name)){var n=e.name.split(".");var a=n.pop();var i=n.join(".");var r=t.getRenamedFileName(i,a);return new File([e],r,{type:e.type,lastModified:e.lastModified})}else{return e}}))};e.prototype.onChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,r,o,s,l,d,u,h,c;return __generator(this,(function(f){switch(f.label){case 0:n=Array.from((t=this.nativeInput)===null||t===void 0?void 0:t.files);this.filesToUploadExceedsLimit=false;if(filesToUploadCountAboveMax(this.files.size,n.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(filesToUploadTotalSizeIsAboveMax(this.files,n,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!n)return[3,6];if(this.renameDuplicates){n=this.renameFiles(n)}a=0,i=n;f.label=1;case 1:if(!(a<i.length))return[3,6];r=i[a];o=validateFile(r,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),s=o.valid,l=o.errorMessage,d=o.errorType,u=o.errorSystem;h=this.genHashName();c={uid:h,item:r,size:r.size,meta:this.metaData,uploaded:false,valid:s,error:{type:s?undefined:d,message:s?undefined:l,system_message:s?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(r.name,c);if(!(s&&!this.external))return[3,3];return[4,this.uploadFile(c)];case 2:f.sent();return[3,4];case 3:if(s&&this.external){this.updateValueInMap(c.item.name,"pending",true,false);this.updateValueInMap(c.item.name,"group","pending",true)}else if(!s){this.updateValueInMap(r.name,"valid",false,true)}f.label=4;case 4:this.kick();f.label=5;case 5:a++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:e,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return e}();DuetUpload.style=DuetUploadStyle0;export{DuetEditableTable as duet_editable_table,DuetTable as duet_table,DuetUpload as duet_upload};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetEmptyStateCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:rgb(8, 42, 77);text-align:center;background:rgb(245, 248, 250);border-radius:4px}.duet-empty-state.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}";var DuetEmptyStateStyle0=duetEmptyStateCss;var DuetEmptyState=function(){function e(e){registerInstance(this,e);this.theme="";this.icon="messaging-question";this.size="medium"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{key:"53de43734389ae17bb5cbbc201ea8221411a074a"},h("div",{key:"fea68b243812a88775a726280481b66fa1126920",class:{"duet-empty-state":true,"duet-theme-turva":this.theme==="turva","duet-is-small":this.size==="small"}},h("duet-icon",{key:"06f82828a03af6f565d8d9713da804c69142ed68",color:"currentColor",name:this.icon,size:this.size==="small"?"large":"x-large"}),h("div",{key:"1f4ff8862530081a93e9ed5da5db580fc4a310d9"},h("slot",{key:"0b4a5d2aac8b20b27d08efea357960190a737507"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetEmptyState.style=DuetEmptyStateStyle0;export{DuetEmptyState as duet_empty_state};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{h as hasSlot}from"./slot-utils-4096ff0d.js";var duetFieldsetCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-legend-wrapper{position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;background:transparent}.duet-legend-wrapper.duet-legend-compact:not(.duet-legend-has-caption){line-height:1.25}.duet-theme-turva .duet-legend-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-fieldset-label{margin-bottom:12px !important;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}.duet-legend-has-tooltip .duet-fieldset-label{padding-right:36px}@media (min-width: 48em){.duet-legend-has-tooltip .duet-fieldset-label{margin-bottom:3px !important;padding-right:0}}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(214, 28, 82);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-fieldset-help span.duet-m-0{margin-top:0}.duet-theme-turva .duet-fieldset-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(214, 28, 82)}::slotted(duet-tooltip){position:absolute;top:4px;right:0}@media (min-width: 48em){::slotted(duet-tooltip){position:relative;right:auto}}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetFieldsetStyle0=duetFieldsetCss;var DuetFieldset=function(){function e(e){var t=this;registerInstance(this,e);this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.checkHasTooltip=function(){t.hasTooltip=hasSlot(t.element,"tooltip")};this.checkLastItem=function(){if(t.element){var e=t.element.lastElementChild;t.lastItemIsChip=e?e.nodeName==="DUET-CHIP":false}};this.hasTooltip=false;this.lastItemIsChip=false;this.theme="";this.margin="auto";this.caption=undefined;this.label=undefined;this.compactLabel=false;this.error=undefined;this.accessibleLiveError="polite";this.labelHeadingLevel="span";this.labelHidden=false}e.prototype.connectedCallback=function(){this.checkLastItem()};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.checkHasTooltip()};e.prototype.render=function(){return h(Host,{key:"9e4a9ff7d74613bea6b990e02cab3dda95d1bc29",class:{"duet-m-0":this.margin==="none"}},h("fieldset",{key:"0d2f9ce2abb491c86b96626eb8b18f67c670e362","aria-labelledby":this.labelId,"aria-describedby":this.error?this.errorId:null,class:{"duet-fieldset":true,"duet-theme-turva":this.theme==="turva"}},h("legend",{key:"21efccf6b5d46f88b5e4a51d38bbd18d4fd589c9",id:this.labelId},h(this.labelHeadingLevel,{key:"a16858293d2f51e994aedbd4b0f441bbf393144f"},this.label),this.caption&&h("span",{key:"fbe7a4e27bdf3db369f9f6c14f986636f4d39a65"},this.caption)),h("div",{key:"a667139d2b8d4ad733841bed134a7b357f60d021",class:{"duet-legend-wrapper":true,"duet-legend-has-caption":!!this.caption,"duet-legend-has-tooltip":this.hasTooltip,"duet-legend-hidden":this.labelHidden,"duet-legend-compact":this.compactLabel}},h("div",{key:"d1021a4bd5514c04dcaee1c4c151c6eec97a5bfb",class:"duet-fieldset-label"},h("span",{key:"f192357e8022922adb7c7cf20bf073a3c22b01c3","aria-hidden":"true"},this.label),h("slot",{key:"47077c1d1d056160f21ac765dcfe48c522b717de",onSlotchange:this.checkHasTooltip,name:"tooltip"})),this.caption&&h("div",{key:"37c022dfd21ea43490aa4b0c32bb0190c5190699",class:"duet-fieldset-caption","aria-hidden":"true"},h("duet-caption",{key:"093069fd49d5d7eb1ca7a5459c76867f06e90452",theme:this.theme,margin:"none"},this.caption))),h("slot",{key:"2da1892b06792ac2ca1a222bb74de1e6b32edb01"}),h("span",{key:"f48a7aa3ec5ce24da463c28565353041f1eee7d1",class:"duet-fieldset-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",{key:"9618d22dafc9c75594f480f55c8331ce5a03185f",class:{"duet-m-0":this.lastItemIsChip}},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetFieldset.style=DuetFieldsetStyle0;export{DuetFieldset as duet_fieldset};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function u(e){try{c(i["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):r(e.value).then(o,u)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return c([e,t])}}function c(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetFileChooserCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.container{display:flex;flex-direction:row;gap:8px;align-items:center}.container .label{margin-bottom:8px}";var DuetFileChooserStyle0=duetFileChooserCss;var DuetUploadItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.onChange=function(e){e.preventDefault();e.stopPropagation();t.duetChange.emit({originalEvent:e,data:{files:t.nativeInput.files},component:"duet-file-chooser"})};this.theme="";this.multiple=false;this.accept=undefined}e.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){(e=this.nativeInput)===null||e===void 0?void 0:e.click();return[2]}))}))};e.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.nativeInput.files]}))}))};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e=this;return h(Host,{key:"d6f332ceab0e71d4a1d4a31f67d8ebaaa1b2a74e"},h("duet-visually-hidden",{key:"d8a1e009bd303b11addfd69cde730a0158e65052","aria-hidden":"true"},h("input",{key:"ed86a42e866d06c423e616b5b2ec3859483874e1",ref:function(t){e.nativeInput=t},type:"file",class:{"duet-upload":true},"aria-hidden":"true",tabIndex:-1,onChange:this.onChange,multiple:this.multiple,accept:this.accept})))};return e}();DuetUploadItem.style=DuetFileChooserStyle0;export{DuetUploadItem as duet_file_chooser};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,o,i){function r(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function a(e){try{u(i.next(e))}catch(e){n(e)}}function d(e){try{u(i["throw"](e))}catch(e){n(e)}}function u(e){e.done?o(e.value):r(e.value).then(a,d)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(e){return function(t){return u([e,t])}}function u(d){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,d[0]&&(o=0)),o)try{if(i=1,r&&(n=d[0]&2?r["return"]:d[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;if(r=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:o.label++;return{value:d[1],done:false};case 5:o.label++;r=d[1];d=[0];continue;case 7:d=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){o.label=d[1];break}if(d[0]===6&&o.label<n[1]){o.label=n[1];n=d;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(d);break}if(n[2])o.ops.pop();o.trys.pop();continue}d=t.call(e,o)}catch(e){d=[6,e];r=0}finally{i=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent$1,h,F as Fragment,g as getElement}from"./index-a830b2de.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults}from"./common-strings-af765cad.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{h as hasSlot}from"./slot-utils-4096ff0d.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetFooterCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:0;margin-bottom:16px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin-top:calc(20px - 0.5em);margin-bottom:0}}.duet-footer{display:block;width:100%;padding-top:24px;padding-bottom:16px;margin-top:48px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(255, 255, 255);text-align:left;background:rgb(8, 42, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center}.duet-footer-top.duet-has-info{align-items:flex-start}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1}@media (min-width: 62em){.duet-footer-top .footer-top-right-container{text-align:right}}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:28px}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row;justify-content:flex-end}}duet-logo{margin-bottom:24px;margin-left:16px !important}@media (min-width: 62em){duet-logo{margin-bottom:0;margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;padding-left:28px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-right:0 !important;padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;overflow-wrap:break-word}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{display:block;flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:28px;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(8, 42, 77);background:transparent !important;border-top:1px solid rgb(212, 223, 229)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(8, 42, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}';var DuetFooterStyle0=duetFooterCss;var i18n={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}};var createEvent=function(e,t){return{component:"duet-footer",data:t,originalEvent:e}};var DuetFooter=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent$1(this,"duetChange",3);this.duetLogoClick=createEvent$1(this,"duetLogoClick",7);this.duetMenuClick=createEvent$1(this,"duetMenuClick",7);this.duetItemClick=createEvent$1(this,"duetItemClick",7);this.duetAnalytics=createEvent$1(this,"duetAnalytics",7);this.duetEvent=createEvent$1(this,"duetEvent",7);this.handleClick=function(e){if(e.data.analyticsId){t.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId})}t.duetChange.emit(e)};this.handleLogoClick=function(e){var o=createEvent(e,{href:t.logoHref,label:"logo"});t.duetLogoClick.emit(o);t.handleClick(o)};this.handleMenuClick=function(e,o){var i=createEvent(e,o);t.handleClick(i);t.duetMenuClick.emit(i)};this.handleItemClick=function(e,o){var i=createEvent(e,o);t.handleClick(i);t.duetItemClick.emit(i)};this.emitDuetEvent=function(e,o){t.duetEvent.emit({component:"duet-footer",data:o,originalEvent:e})};this.setDataAttributes=function(e,t){if(!t.data){return}for(var o in t.data){e.dataset[o]=t.data[o]}};this.processedMainItem=null;this.processedItems=null;this.processedMenu=null;this.theme="";this.variation="default";this.margin="auto";this.logoHref="/";this.language=getLanguage();this.items=undefined;this.accessibleLabel=undefined;this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.menu=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.refresh();this.hasInfoSlot=hasSlot(this.element,"info")};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"});subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=parsePossibleJSON(this.items);this.processedMenu=parsePossibleJSON(this.menu);return[2]}))}))};e.prototype.render=function(){var e=this;var t=getLocaleString(i18n,this.language);var o=this.theme==="turva"?t.turva:t.lahi;return h("footer",{key:"374b3e4cf00807da89a9742f3efdc2a4a0bc6b18",class:{"duet-footer":true,"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-footer-simple":this.variation==="simple"},"aria-label":this.accessibleLabel},h("div",{key:"c8e124344783908ff121070042054f4d0c7947f5",class:"duet-footer-wrapper"},this.variation!=="simple"&&h("div",{key:"1bbdf39de923762fc2fbe73b6aec50ef7ad9d6f1",class:{"duet-footer-top":true,"duet-has-info":this.hasInfoSlot},part:"top"},h("div",{key:"eb1a893372576296ccf12fee8831c525a2632eee",class:"footer-top-logo"},h("duet-logo",{key:"10de708506297ff9f3318912b81a2e8378c4270d",href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:true,language:this.language,theme:this.theme})),h("div",{key:"dc3946221202b4292f2e4fbc080178dca9ad73b1",class:"footer-top-right-container"},h("slot",{key:"1ad763eaac02a6c7fbccd51e2236259ba1450b07",name:"info"}),h("div",{key:"54df55c2fc9dfdbaa774c841c3cd86f799684d81",class:"footer-top-items"},this.processedItems&&this.processedItems.map((function(t,o){var i,r,n,a,d,u;return h(Fragment,null,o>0&&h("duet-spacer",{size:"x-large",direction:"horizontal"}),h("duet-button",{ref:function(o){return e.setDataAttributes(o,t)},theme:e.theme,id:t.id,class:"duet-footer-link",variation:"plain",margin:"none",fixed:true,negative:true,url:t.href,external:t.external,icon:((i=t.href)===null||i===void 0?void 0:i.startsWith("tel:"))?"form-tel":((r=t.href)===null||r===void 0?void 0:r.startsWith("mailto:"))?"navigation-message":"navigation-arrow-right","icon-right":!((n=t.href)===null||n===void 0?void 0:n.startsWith("tel:"))&&!((a=t.href)===null||a===void 0?void 0:a.startsWith("mailto:")),"icon-size":((d=t.href)===null||d===void 0?void 0:d.startsWith("tel:"))||((u=t.href)===null||u===void 0?void 0:u.startsWith("mailto:"))?"medium":"medium-small",onClick:function(o){return e.handleItemClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label))}))))),h("slot",{key:"ef58bb0c86abf7d7922468e818c1211aa0c1745f",name:"extra"}),h("p",{key:"da0032d001c78e0b1c4c574891959a2cc2217101",class:"duet-footer-menu",part:"menu"},h("span",{key:"ff5f4090afdd2a8c1d563e4942c6d654d1f03c68",class:"duet-footer-copyright"},"".concat(o," ").concat((new Date).getFullYear())),h("span",{key:"a2d153deab53043cc12006667388461b1ca0e502",class:"duet-footer-menu-links"},this.processedMenu&&h(Fragment,{key:"58b63836a80f8b342a259661da05fe8e9f961809"},this.processedMenu.map((function(t){return h("a",{ref:function(o){return e.setDataAttributes(o,t)},href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleMenuClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label,t.external&&h(Fragment,null,h("duet-visually-hidden",null,", ",e.accessibleLabelExternal),h("span",{class:"duet-footer-external"},h("duet-icon",{icon:actionNewWindowSmall.svg,size:"xx-small",margin:"none",color:"currentColor"}))),h("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))}))))),h("p",{key:"29df5df3e5b34d3c3329350878c3196ef7afe689",class:"duet-footer-copyright duet-footer-copyright-mobile"},"".concat(o," ").concat((new Date).getFullYear()))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["refresh"],items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetFooter.style=DuetFooterStyle0;export{DuetFooter as duet_footer};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,n,e){function d(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,r){function a(t){try{m(e.next(t))}catch(t){r(t)}}function o(t){try{m(e["throw"](t))}catch(t){r(t)}}function m(t){t.done?n(t.value):d(t.value).then(a,o)}m((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,d,r,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(i){return m([t,i])}}function m(o){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(n=0)),n)try{if(e=1,d&&(r=o[0]&2?d["return"]:o[0]?d["throw"]||((r=d["return"])&&r.call(d),0):d.next)&&!(r=r.call(d,o[1])).done)return r;if(d=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;d=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=i.call(t,n)}catch(t){o=[6,t];d=0}finally{e=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{a as media_query_large,m as media_query_medium,b as media_query_small}from"./tokens-84fb2357.js";import{w as watchForOptions,a as watchForElement}from"./watch-options-e96ecd92.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetGridCss=":host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n}\n\n:host(.duet-grid-variation-flex) {\n display: flex !important;\n flex-direction: column !important;\n align-items: flex-start !important;\n justify-content: flex-start !important;\n width: 100%;\n max-width: 100%;\n height: auto;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small) {\n flex-direction: row !important;\n}\n@media (max-width: 22.5em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-small) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-small.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-medium) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-medium.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-large) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-large.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-large) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-large.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-wrap) {\n flex-wrap: wrap !important;\n}\n\n:host(.duet-grid-variation-flex.duet-no-stacking) {\n flex-direction: row !important;\n}\n\n:host(.duet-grid-variation-flex.duet-no-stacking.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n}\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small) {\n flex-direction: column !important;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium) {\n flex-direction: column !important;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large) {\n flex-direction: column !important;\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large) {\n flex-direction: column !important;\n}\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-top.duet-no-stacking) {\n align-items: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-no-stacking) {\n align-items: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-center.duet-no-stacking) {\n align-items: center !important;\n}\n\n.duet-grid-align-stretch.duet-no-stacking {\n align-items: stretch !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-no-stacking) {\n align-items: baseline !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-small) {\n align-items: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-small) {\n align-items: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-small) {\n align-items: center !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-small) {\n align-items: stretch !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-small) {\n align-items: baseline !important;\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-small) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-small) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-small) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-small) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-small) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-medium) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-medium) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-medium) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-medium) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-medium) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-large) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-large) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-large) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-large) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-large) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-large) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-large) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-large) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-large) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-large) {\n align-items: baseline !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-left) {\n justify-content: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-right) {\n justify-content: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-center) {\n justify-content: center !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-between) {\n justify-content: space-between !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-around) {\n justify-content: space-around !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-evenly) {\n justify-content: space-evenly !important;\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-left) {\n align-items: flex-start !important;\n justify-content: flex-start !important;\n text-align: left !important;\n }\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-center) {\n align-items: center !important;\n justify-content: center !important;\n text-align: center !important;\n }\n :host(.duet-grid-variation-flex.duet-grid-mobile-center) * {\n text-align: center !important;\n }\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-right) {\n align-items: flex-end !important;\n justify-content: flex-end !important;\n text-align: right !important;\n }\n :host(.duet-grid-variation-flex.duet-grid-mobile-right) * {\n text-align: right !important;\n }\n}\n\n:host(.duet-grid-variation-grid) {\n display: grid;\n grid-template-rows: repeat(1, 1fr);\n grid-template-columns: repeat(4, minmax(0, 1fr));\n gap: 16px;\n align-items: flex-start;\n justify-content: center;\n padding: 0 20px;\n container-type: inline-size;\n overflow-x: clip;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-grid) {\n gap: 24px;\n padding: 0 40px;\n }\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(8, 55px);\n gap: 24px 32px;\n padding: 0;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(12, minmax(0, 1fr));\n padding: 0 64px;\n }\n}\n@media (min-width: 76.25em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(12, 55px);\n gap: 40px;\n padding: 0;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 3/span 8;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 2/span 10;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 12;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 9/span 4;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 5/span 8;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 6;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 5/span 4;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 7/span 6;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 5/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 9/span 4;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n grid-template-columns: minmax(0, 1fr);\n gap: 12px;\n padding: 0;\n /* stylelint-disable */\n /* stylelint-disable */\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n gap: 16px;\n }\n}\n@container (min-width: 664px) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n /* stylelint-enable */\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n@container (min-width: 1100px) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n /* stylelint-enable */\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n}";var DuetGridStyle0=duetGridCss;function isGridItem(t){return t.tagName.toLowerCase()==="duet-grid-item"}var DuetGrid=function(){function t(t){registerInstance(this,t);this.mql=[window.matchMedia(media_query_large.replace(/'/g,"")),window.matchMedia(media_query_medium.replace(/'/g,"")),window.matchMedia(media_query_small.replace(/'/g,""))];this.distributeFormElement=false;this.responsive=false;this.breakpoint="small";this.direction="horizontal";this.rowReverse=false;this.alignment="top";this.distribution="default";this.mobile="";this.gridTemplate=null}t.prototype.outerHeight=function(t){var i=t.offsetHeight,n=window.getComputedStyle(t);return["top","bottom"].map((function(t){return parseInt(n["margin-".concat(t)])})).reduce((function(t,i){return t+i}),i)};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;var n=this;return __generator(this,(function(e){t=this.element;this.distributeFormElement=this.alignment==="form_distribute";this.mutationO=watchForOptions(t,"duet-grid-item",(function(){n.updateGridItems()}));if(this.distributeFormElement){this.mutation1=watchForElement(t,"duet-input",(function(){n.updateGridItemsWithInputFields()}));for(i=0;i<this.mql.length;i++){if(this.mql[i].addEventListener){this.mql[i].addEventListener("change",this.updateGridItemsWithInputFields.bind(this))}}}this.updateGridItems();return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}if(this.mutation1){this.mutation1.disconnect();this.mutation1=undefined}for(var t=0;t<this.mql.length;t++){if(this.mql[t].removeEventListener){this.mql[t].removeEventListener("change",this.updateGridItemsWithInputFields.bind(this))}}};t.prototype.updateGridItems=function(){return __awaiter(this,void 0,void 0,(function(){var t;var i=this;return __generator(this,(function(n){t=Array.from(this.element.children).filter(isGridItem);t.forEach((function(t){t.responsive=i.responsive;t.breakpoint=i.breakpoint;t.direction=i.direction;t.rowReverse=i.rowReverse}));return[2]}))}))};t.prototype.updateGridItemsWithInputFields=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,n,e;var d=this;return __generator(this,(function(r){t=Array.from(this.element.children).filter(isGridItem);i=window?window.getComputedStyle(this.element).flexDirection==="column":false;n=0;e=[];t.forEach((function(t){var i=t.querySelector("span.duet-input-error");var n=i?d.outerHeight(i):0;e.push(n)}));n=Math.max.apply(Math,e);t.forEach((function(t){var e=t.querySelector("span.duet-input-error");var r=e?d.outerHeight(e):0;if(r<n&&!i){t.setAttribute("style","padding-bottom: ".concat(n-r,"px;"))}else if(r===n||i){t.setAttribute("style","padding-bottom: 0px;")}}));return[2]}))}))};t.prototype.render=function(){var t;return h(Host,{key:"a96a1bf440fd47a96cfc14e5fc691edafa27574e",class:(t={"duet-grid":true,"duet-no-stacking":!this.responsive,"duet-grid-align-top":this.alignment==="top","duet-grid-align-bottom":this.alignment==="bottom"||this.alignment==="form_distribute","duet-grid-align-center":this.alignment==="center","duet-grid-align-stretch":this.alignment==="stretch","duet-grid-align-baseline":this.alignment==="baseline","duet-grid-distribution-left":this.distribution==="left","duet-grid-distribution-right":this.distribution==="right","duet-grid-distribution-center":this.distribution==="center","duet-grid-distribution-between":this.distribution==="space-between","duet-grid-distribution-around":this.distribution==="space-around","duet-grid-distribution-evenly":this.distribution==="space-evenly","duet-grid-mobile-left":this.mobile==="left","duet-grid-mobile-center":this.mobile==="center","duet-grid-mobile-right":this.mobile==="right","duet-grid-direction-horizontal":this.direction==="horizontal","duet-grid-direction-vertical":this.direction==="vertical","duet-grid-breakpoint-x-small":this.breakpoint==="x-small","duet-grid-breakpoint-small":this.breakpoint==="small","duet-grid-breakpoint-medium":this.breakpoint==="medium","duet-grid-breakpoint-large":this.breakpoint==="large","duet-grid-breakpoint-x-large":this.breakpoint==="x-large","duet-grid-row-reverse":this.rowReverse},t["duet-grid-variation-".concat(this.gridTemplate?"grid":"flex")]=true,t["duet-grid-template-".concat(this.gridTemplate)]=true,t)},h("slot",{key:"5a7b12cbed77ea512381c1f6e4993c0328e9eaa1"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{responsive:["updateGridItems"],breakpoint:["updateGridItems"],direction:["updateGridItems"]}},enumerable:false,configurable:true});return t}();DuetGrid.style=DuetGridStyle0;var duetGridItemCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;min-width:0;max-width:100%;flex:0 0 auto;padding-right:8px;padding-left:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77)}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-child){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):first-of-type){padding-left:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-child){padding-right:0}:host(.duet-grid-direction-horizontal:not(.duet-grid-item-row-reverse):last-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-child){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:first-of-type){padding-right:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-child){padding-left:0}:host(.duet-grid-direction-horizontal.duet-grid-item-row-reverse:last-of-type){padding-left:0}@media (max-width: 35.9375em){:host(.duet-grid-item-responsive){width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-br-medium){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){:host(.duet-grid-item-responsive.duet-grid-item-br-medium){padding-right:0;padding-left:0}}@media screen and (max-width: 64em){:host(.duet-grid-item-br-x-large){width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){:host(.duet-grid-item-responsive.duet-grid-item-br-x-large){padding-right:0;padding-left:0}}:host(.duet-grid-item-fill){flex:1 1 auto;width:100%}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){padding:0 !important;margin:0 !important}';var DuetGridItemStyle0=duetGridItemCss;var DuetGridItem=function(){function t(t){registerInstance(this,t);this.fill=false;this.maxWidth=undefined;this.minWidth=undefined;this.theme="";this.margin="auto";this.responsive=false;this.direction="horizontal";this.breakpoint="small";this.rowReverse=false}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){return h(Host,{key:"2fc30e0e614194e19f22715cc3844810febe0bcc",style:{"min-width":this.minWidth,"max-width":this.maxWidth},class:{"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-grid-item":true,"duet-grid-item-fill":this.fill,"duet-grid-item-responsive":this.responsive,"duet-grid-item-row-reverse":this.rowReverse,"duet-grid-direction-horizontal":this.direction==="horizontal","duet-grid-direction-vertical":this.direction==="vertical","duet-grid-item-br-x-small":this.breakpoint==="x-small","duet-grid-item-br-small":this.breakpoint==="small","duet-grid-item-br-medium":this.breakpoint==="medium","duet-grid-item-br-large":this.breakpoint==="large","duet-grid-item-br-x-large":this.breakpoint==="x-large"}},h("slot",{key:"a7a1e0383508ec291861887bc27d5c1544f6709c"}))};return t}();DuetGridItem.style=DuetGridItemStyle0;export{DuetGrid as duet_grid,DuetGridItem as duet_grid_item};