@duetds/components 5.1.2 → 5.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/hydrate/index.js +226 -37
  2. package/lib/cjs/action-arrow-right-small-a25eb475.js +8 -0
  3. package/lib/cjs/duet-action-button.cjs.entry.js +17 -6
  4. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +3 -4
  8. package/lib/cjs/duet-button_2.cjs.entry.js +5 -4
  9. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  10. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  11. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
  14. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  17. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-editable-table_3.cjs.entry.js +105 -27
  19. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-footer.cjs.entry.js +23 -4
  22. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  24. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  26. package/lib/cjs/duet-input_2.cjs.entry.js +56 -4
  27. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  30. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  43. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  45. package/lib/cjs/duet.cjs.js +2 -2
  46. package/lib/cjs/{focus-utils-b7b1bede.js → focus-utils-a84555de.js} +1 -1
  47. package/lib/cjs/{index-a521d11c.js → index-d5c2b63c.js} +1 -1
  48. package/lib/cjs/loader.cjs.js +2 -2
  49. package/lib/cjs/{token-utils-f402e205.js → token-utils-50a1f7e2.js} +16 -1
  50. package/lib/cjs/{tokens-8596cece.js → tokens-29450bcb.js} +3 -0
  51. package/lib/cjs/{tokens.module-6b2df1c2.js → tokens.module-ef598645.js} +2 -0
  52. package/lib/collection/components/duet-action-button/duet-action-button.css +2 -2
  53. package/lib/collection/components/duet-action-button/duet-action-button.js +14 -2
  54. package/lib/collection/components/duet-button/duet-button.css +48 -16
  55. package/lib/collection/components/duet-button/duet-button.js +2 -1
  56. package/lib/collection/components/duet-footer/duet-footer.css +154 -0
  57. package/lib/collection/components/duet-footer/duet-footer.js +135 -5
  58. package/lib/collection/components/duet-header/duet-header.js +1 -1
  59. package/lib/collection/components/duet-input/duet-input.css +49 -0
  60. package/lib/collection/components/duet-input/duet-input.js +132 -3
  61. package/lib/collection/components/duet-step/duet-step.js +1 -1
  62. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  63. package/lib/collection/components/duet-table/duet-table.js +1 -1
  64. package/lib/collection/components/duet-upload/duet-upload.js +136 -27
  65. package/lib/collection/components/duet-upload/upload-editable-item-pending.js +7 -0
  66. package/lib/collection/utils/token-utils.js +14 -0
  67. package/lib/custom-elements-bundle/index.js +217 -42
  68. package/lib/duet/duet.esm.js +1 -1
  69. package/lib/duet/duet.js +1 -1
  70. package/lib/duet/{p-00c21573.entry.js → p-032948e5.entry.js} +1 -1
  71. package/lib/duet/{p-c4c1c9e8.entry.js → p-04ac5c4e.entry.js} +1 -1
  72. package/lib/duet/{p-7e46cb73.entry.js → p-05092d95.entry.js} +1 -1
  73. package/lib/duet/{p-56834d68.system.entry.js → p-05ab59af.system.entry.js} +1 -1
  74. package/lib/duet/{p-388ccb59.system.entry.js → p-0dbd1f32.system.entry.js} +1 -1
  75. package/lib/duet/{p-a87a33f4.system.entry.js → p-0f1327c5.system.entry.js} +1 -1
  76. package/lib/duet/{p-11adc839.entry.js → p-0f428b46.entry.js} +1 -1
  77. package/lib/duet/{p-3762c001.system.entry.js → p-111e56ea.system.entry.js} +1 -1
  78. package/lib/duet/{p-b0bde198.system.entry.js → p-1271800f.system.entry.js} +1 -1
  79. package/lib/duet/{p-1bf42e5a.system.entry.js → p-18137a51.system.entry.js} +1 -1
  80. package/lib/duet/p-18cc5627.system.js +4 -0
  81. package/lib/duet/{p-3292f542.system.entry.js → p-199b8120.system.entry.js} +1 -1
  82. package/lib/duet/{p-5ea44650.system.entry.js → p-1eb573fd.system.entry.js} +1 -1
  83. package/lib/duet/{p-309e1d13.entry.js → p-1ef3c483.entry.js} +1 -1
  84. package/lib/duet/p-2271f8d5.system.js +4 -0
  85. package/lib/duet/{p-c76f0697.system.entry.js → p-258f3ccc.system.entry.js} +1 -1
  86. package/lib/duet/{p-14f2d627.entry.js → p-26294067.entry.js} +1 -1
  87. package/lib/duet/p-2879eb73.entry.js +4 -0
  88. package/lib/duet/{p-6bfd3066.system.entry.js → p-28ee491f.system.entry.js} +1 -1
  89. package/lib/duet/p-33e5acf3.entry.js +4 -0
  90. package/lib/duet/{p-ad07f399.js → p-398a79a0.js} +1 -1
  91. package/lib/duet/{p-f708dc6c.system.entry.js → p-3b316fee.system.entry.js} +1 -1
  92. package/lib/duet/{p-1d2717f7.system.entry.js → p-3e654074.system.entry.js} +1 -1
  93. package/lib/duet/{p-42042a04.entry.js → p-3f0c0460.entry.js} +1 -1
  94. package/lib/duet/{p-df4857f8.system.entry.js → p-4017ddb2.system.entry.js} +1 -1
  95. package/lib/duet/{p-0a4b7633.entry.js → p-41582a97.entry.js} +1 -1
  96. package/lib/duet/{p-4cb101e7.entry.js → p-45753e58.entry.js} +1 -1
  97. package/lib/duet/{p-6d85cb27.entry.js → p-45805cfc.entry.js} +1 -1
  98. package/lib/duet/{p-c512a307.system.entry.js → p-45aef220.system.entry.js} +1 -1
  99. package/lib/duet/{p-1f1eb2c6.entry.js → p-45e5f4f4.entry.js} +1 -1
  100. package/lib/duet/{p-a9e9112d.system.entry.js → p-46917bfa.system.entry.js} +1 -1
  101. package/lib/duet/{p-918ad15f.system.entry.js → p-4c080f56.system.entry.js} +1 -1
  102. package/lib/duet/{p-3128467f.entry.js → p-4d4ad632.entry.js} +1 -1
  103. package/lib/duet/{p-bac34cd4.system.entry.js → p-5265e0d0.system.entry.js} +1 -1
  104. package/lib/duet/{p-bef4f0ab.entry.js → p-5742b705.entry.js} +1 -1
  105. package/lib/duet/p-5ce17df4.system.entry.js +4 -0
  106. package/lib/duet/{p-63c4fa58.entry.js → p-5ecfc1ad.entry.js} +1 -1
  107. package/lib/duet/p-6190e2d6.system.js +4 -0
  108. package/lib/duet/{p-a6974134.system.entry.js → p-62e99b72.system.entry.js} +2 -2
  109. package/lib/duet/p-67c75f37.system.entry.js +4 -0
  110. package/lib/duet/{p-77151f3f.entry.js → p-696fb340.entry.js} +1 -1
  111. package/lib/duet/{p-5d223c1b.system.entry.js → p-6d480ff6.system.entry.js} +1 -1
  112. package/lib/duet/{p-6eb9415c.entry.js → p-740f3d97.entry.js} +1 -1
  113. package/lib/duet/p-746c8ba5.js +4 -0
  114. package/lib/duet/{p-b57856ea.system.entry.js → p-75d1f821.system.entry.js} +1 -1
  115. package/lib/duet/{p-d91eec1f.system.entry.js → p-76733981.system.entry.js} +1 -1
  116. package/lib/duet/p-7c1b3583.entry.js +4 -0
  117. package/lib/duet/p-7cbb6eba.js +4 -0
  118. package/lib/duet/{p-8a0299fb.entry.js → p-7dfb2869.entry.js} +1 -1
  119. package/lib/duet/{p-d74e231c.entry.js → p-817aaa83.entry.js} +1 -1
  120. package/lib/duet/{p-70d5c815.entry.js → p-820f1caa.entry.js} +1 -1
  121. package/lib/duet/p-83e6a536.system.entry.js +4 -0
  122. package/lib/duet/{p-39141813.entry.js → p-84603769.entry.js} +1 -1
  123. package/lib/duet/{p-411d8bf6.entry.js → p-85a02775.entry.js} +1 -1
  124. package/lib/duet/{p-82d3171d.system.js → p-88ad1951.system.js} +1 -1
  125. package/lib/duet/{p-971f8880.system.entry.js → p-9601701a.system.entry.js} +1 -1
  126. package/lib/duet/{p-ae1e63fc.system.entry.js → p-96bd1cbc.system.entry.js} +1 -1
  127. package/lib/duet/{p-5e46fd23.entry.js → p-987b7532.entry.js} +1 -1
  128. package/lib/duet/{p-2266dd2f.system.entry.js → p-9af6ba66.system.entry.js} +1 -1
  129. package/lib/duet/p-9bfffd81.system.entry.js +4 -0
  130. package/lib/duet/p-9cca0bb4.js +4 -0
  131. package/lib/duet/{p-5dc7ecff.system.entry.js → p-9ecaa83e.system.entry.js} +1 -1
  132. package/lib/duet/{p-be1bc370.system.entry.js → p-a08af4d9.system.entry.js} +1 -1
  133. package/lib/duet/{p-f233cbe6.js → p-a31268d6.js} +1 -1
  134. package/lib/duet/{p-4990454b.entry.js → p-a712a800.entry.js} +1 -1
  135. package/lib/duet/p-a93a04b9.system.js +4 -0
  136. package/lib/duet/p-aea39e5a.entry.js +4 -0
  137. package/lib/duet/p-b5a180e9.system.entry.js +4 -0
  138. package/lib/duet/{p-0d165a50.system.entry.js → p-bddd664d.system.entry.js} +1 -1
  139. package/lib/duet/{p-c5f6ab22.entry.js → p-c0086352.entry.js} +1 -1
  140. package/lib/duet/{p-1111a916.system.entry.js → p-c2ac1fab.system.entry.js} +1 -1
  141. package/lib/duet/{p-88a9fc7c.system.entry.js → p-c8ad170c.system.entry.js} +1 -1
  142. package/lib/duet/{p-89564214.system.entry.js → p-ca57d285.system.entry.js} +1 -1
  143. package/lib/duet/p-cc2204e6.entry.js +4 -0
  144. package/lib/duet/{p-18fc1046.entry.js → p-cc37da81.entry.js} +1 -1
  145. package/lib/duet/p-d1746325.js +4 -0
  146. package/lib/duet/p-d41db290.system.entry.js +4 -0
  147. package/lib/duet/{p-e3945d28.entry.js → p-dab4fba0.entry.js} +1 -1
  148. package/lib/duet/{p-32358ab8.entry.js → p-db79c34d.entry.js} +1 -1
  149. package/lib/duet/{p-fbfc5798.system.entry.js → p-dbb107d3.system.entry.js} +1 -1
  150. package/lib/duet/{p-1cb29dd2.system.js → p-e133d744.system.js} +1 -1
  151. package/lib/duet/{p-f8f31ff0.system.entry.js → p-e1a86fe6.system.entry.js} +1 -1
  152. package/lib/duet/{p-378615ba.entry.js → p-e3882375.entry.js} +1 -1
  153. package/lib/duet/{p-6440a77d.entry.js → p-ea9ebc20.entry.js} +1 -1
  154. package/lib/duet/{p-906611b7.entry.js → p-eb779add.entry.js} +1 -1
  155. package/lib/duet/{p-7a24425d.entry.js → p-ebf20912.entry.js} +1 -1
  156. package/lib/duet/{p-1028c3a0.system.entry.js → p-ec0d8fa3.system.entry.js} +1 -1
  157. package/lib/duet/{p-f9784014.system.entry.js → p-ed747a10.system.entry.js} +1 -1
  158. package/lib/duet/{p-b7906516.entry.js → p-ef5be208.entry.js} +1 -1
  159. package/lib/duet/p-f3f0db95.entry.js +4 -0
  160. package/lib/duet/{p-e073de9a.system.entry.js → p-f3f1d874.system.entry.js} +1 -1
  161. package/lib/duet/p-f476cb84.system.js +4 -0
  162. package/lib/duet/p-f4f18841.entry.js +4 -0
  163. package/lib/duet/{p-fc02305a.entry.js → p-fc0e878a.entry.js} +1 -1
  164. package/lib/duet/{p-02ebff5d.entry.js → p-fc29251a.entry.js} +1 -1
  165. package/lib/duet/p-fdb59ab3.entry.js +4 -0
  166. package/lib/duet/{p-33473844.system.entry.js → p-ff56790f.system.entry.js} +1 -1
  167. package/lib/esm/action-arrow-right-small-f9d2ba83.js +6 -0
  168. package/lib/esm/duet-action-button.entry.js +17 -6
  169. package/lib/esm/duet-alert.entry.js +1 -1
  170. package/lib/esm/duet-badge.entry.js +1 -1
  171. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  172. package/lib/esm/duet-breadcrumbs.entry.js +2 -3
  173. package/lib/esm/duet-button_2.entry.js +5 -4
  174. package/lib/esm/duet-caption_4.entry.js +3 -3
  175. package/lib/esm/duet-card.entry.js +3 -3
  176. package/lib/esm/duet-checkbox.entry.js +1 -1
  177. package/lib/esm/duet-choice_2.entry.js +2 -2
  178. package/lib/esm/duet-collapsible.entry.js +2 -2
  179. package/lib/esm/duet-combobox.entry.js +1 -1
  180. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  181. package/lib/esm/duet-date-picker.entry.js +2 -2
  182. package/lib/esm/duet-divider_2.entry.js +1 -1
  183. package/lib/esm/duet-editable-table_3.entry.js +105 -27
  184. package/lib/esm/duet-empty-state.entry.js +1 -1
  185. package/lib/esm/duet-fieldset.entry.js +1 -1
  186. package/lib/esm/duet-footer.entry.js +23 -4
  187. package/lib/esm/duet-grid_2.entry.js +2 -2
  188. package/lib/esm/duet-header_2.entry.js +4 -4
  189. package/lib/esm/duet-hero.entry.js +1 -1
  190. package/lib/esm/duet-icon.entry.js +3 -3
  191. package/lib/esm/duet-input_2.entry.js +56 -4
  192. package/lib/esm/duet-layout.entry.js +1 -1
  193. package/lib/esm/duet-list_2.entry.js +1 -1
  194. package/lib/esm/duet-modal.entry.js +2 -2
  195. package/lib/esm/duet-notification_2.entry.js +1 -1
  196. package/lib/esm/duet-number-input.entry.js +1 -1
  197. package/lib/esm/duet-pagination_2.entry.js +1 -1
  198. package/lib/esm/duet-progress.entry.js +1 -1
  199. package/lib/esm/duet-radio_2.entry.js +1 -1
  200. package/lib/esm/duet-range-slider.entry.js +2 -2
  201. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  202. package/lib/esm/duet-select.entry.js +1 -1
  203. package/lib/esm/duet-step_2.entry.js +2 -2
  204. package/lib/esm/duet-textarea.entry.js +1 -1
  205. package/lib/esm/duet-toggle.entry.js +1 -1
  206. package/lib/esm/duet-tooltip.entry.js +1 -1
  207. package/lib/esm/duet-tray.entry.js +2 -2
  208. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  209. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  210. package/lib/esm/duet.js +2 -2
  211. package/lib/esm/{focus-utils-8681b5ae.js → focus-utils-b869910b.js} +1 -1
  212. package/lib/esm/{index-ff5be49a.js → index-1e15387b.js} +1 -1
  213. package/lib/esm/loader.js +2 -2
  214. package/lib/esm/{token-utils-e9a69acf.js → token-utils-1f9435bc.js} +16 -2
  215. package/lib/esm/{tokens-e110dc89.js → tokens-8ff8c570.js} +3 -0
  216. package/lib/esm/{tokens.module-49cbf963.js → tokens.module-f4572ed7.js} +2 -0
  217. package/lib/esm-es5/action-arrow-right-small-f9d2ba83.js +4 -0
  218. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  219. package/lib/esm-es5/duet-alert.entry.js +1 -1
  220. package/lib/esm-es5/duet-badge.entry.js +1 -1
  221. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  222. package/lib/esm-es5/duet-breadcrumbs.entry.js +2 -2
  223. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  224. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  225. package/lib/esm-es5/duet-card.entry.js +1 -1
  226. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  227. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  228. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  229. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  230. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  231. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  232. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  233. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  234. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  235. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  236. package/lib/esm-es5/duet-footer.entry.js +2 -2
  237. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  238. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  239. package/lib/esm-es5/duet-hero.entry.js +1 -1
  240. package/lib/esm-es5/duet-icon.entry.js +1 -1
  241. package/lib/esm-es5/duet-input_2.entry.js +2 -2
  242. package/lib/esm-es5/duet-layout.entry.js +1 -1
  243. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  244. package/lib/esm-es5/duet-modal.entry.js +1 -1
  245. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  246. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  247. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  248. package/lib/esm-es5/duet-progress.entry.js +1 -1
  249. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  250. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  251. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  252. package/lib/esm-es5/duet-select.entry.js +1 -1
  253. package/lib/esm-es5/duet-step_2.entry.js +2 -2
  254. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  255. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  256. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  257. package/lib/esm-es5/duet-tray.entry.js +1 -1
  258. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  259. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  260. package/lib/esm-es5/duet.js +1 -1
  261. package/lib/esm-es5/{focus-utils-8681b5ae.js → focus-utils-b869910b.js} +1 -1
  262. package/lib/esm-es5/{index-ff5be49a.js → index-1e15387b.js} +1 -1
  263. package/lib/esm-es5/loader.js +1 -1
  264. package/lib/esm-es5/token-utils-1f9435bc.js +4 -0
  265. package/lib/esm-es5/tokens-8ff8c570.js +4 -0
  266. package/lib/esm-es5/{tokens.module-49cbf963.js → tokens.module-f4572ed7.js} +1 -1
  267. package/lib/html.html-data.json +49 -4
  268. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  269. package/lib/types/components/duet-footer/duet-footer.d.ts +30 -1
  270. package/lib/types/components/duet-input/duet-input.d.ts +23 -0
  271. package/lib/types/components/duet-upload/duet-upload.d.ts +18 -1
  272. package/lib/types/components/duet-upload/upload-editable-item-pending.d.ts +6 -0
  273. package/lib/types/components.d.ts +71 -3
  274. package/lib/types/utils/token-utils.d.ts +1 -0
  275. package/package.json +5 -5
  276. package/lib/duet/p-2227bd88.entry.js +0 -4
  277. package/lib/duet/p-28efbf26.entry.js +0 -4
  278. package/lib/duet/p-2ec15916.entry.js +0 -4
  279. package/lib/duet/p-33701731.system.entry.js +0 -4
  280. package/lib/duet/p-37ec8cc0.system.entry.js +0 -4
  281. package/lib/duet/p-4e2532c7.system.js +0 -4
  282. package/lib/duet/p-6a164c72.entry.js +0 -4
  283. package/lib/duet/p-6ee89e1c.entry.js +0 -4
  284. package/lib/duet/p-8143f3de.js +0 -4
  285. package/lib/duet/p-86565a1a.system.entry.js +0 -4
  286. package/lib/duet/p-87d500c2.system.entry.js +0 -4
  287. package/lib/duet/p-99457149.system.js +0 -4
  288. package/lib/duet/p-a54fb28f.entry.js +0 -4
  289. package/lib/duet/p-bb1a594c.entry.js +0 -4
  290. package/lib/duet/p-bc0356dd.system.entry.js +0 -4
  291. package/lib/duet/p-c8698d8a.js +0 -4
  292. package/lib/duet/p-cb445018.js +0 -4
  293. package/lib/duet/p-d281c96e.system.entry.js +0 -4
  294. package/lib/duet/p-ddb6344c.system.js +0 -4
  295. package/lib/duet/p-f7aa0500.entry.js +0 -4
  296. package/lib/duet/p-fa99eaa4.system.js +0 -4
  297. package/lib/esm-es5/token-utils-e9a69acf.js +0 -4
  298. package/lib/esm-es5/tokens-e110dc89.js +0 -4
@@ -2,7 +2,7 @@ import { EventEmitter } from "../../stencil-public-runtime";
2
2
  import { DuetAnalyticsEvent, DuetLanguage, DuetMargin, DuetTheme } from "../../common-types";
3
3
  import { DuetLangObject } from "../../utils/language-utils";
4
4
  import { ThemeableComponent } from "../../utils/themeable-component";
5
- export declare type DuetFooterVariation = "default" | "simple";
5
+ export declare type DuetFooterVariation = "default" | "simple" | "multilevel";
6
6
  export declare type DuetFooterItem = {
7
7
  label: string;
8
8
  href: string;
@@ -20,6 +20,7 @@ export declare type DuetFooterChangeEvent = {
20
20
  };
21
21
  export declare type DuetFooterAnalyticsEvent = DuetAnalyticsEvent<"duet-footer">;
22
22
  /**
23
+ * @slot extra - A slot for extra links.
23
24
  * @part top - piercing selector for styling the top part of the footer
24
25
  * @part menu - piercing selector for styling the menu section of the footer
25
26
  */
@@ -32,7 +33,11 @@ export declare class DuetFooter implements ThemeableComponent {
32
33
  * State() variables
33
34
  * Inlined decorator, alphabetical order.
34
35
  */
36
+ processedMainItem: DuetFooterItem;
35
37
  processedItems: DuetFooterIconItem[];
38
+ processedSecondaryItems: DuetFooterItem[];
39
+ processedTertiaryMainItem: DuetFooterItem;
40
+ processedTertiaryItems: DuetFooterItem[];
36
41
  processedMenu: DuetFooterItem[];
37
42
  /**
38
43
  * Theme of the navigation.
@@ -57,12 +62,36 @@ export declare class DuetFooter implements ThemeableComponent {
57
62
  * @default "fi"
58
63
  */
59
64
  language: DuetLanguage;
65
+ /**
66
+ * Main item of footer links. Item have to include mandatory
67
+ * "label" and "href". Additionally, you can pass an "id"
68
+ * that is added as an HTML identifier for the anchor tag.
69
+ */
70
+ mainItem: any;
60
71
  /**
61
72
  * An array of items for the main footer links. Items have to include mandatory
62
73
  * "label", "href" and "icon" fields to work. Additionally, you can pass an "id"
63
74
  * that is added as an HTML identifier for the anchor tag.
64
75
  */
65
76
  items: any;
77
+ /**
78
+ * An array of items for the secondary footer links. Items have to include mandatory
79
+ * "label" and "href". Additionally, you can pass an "id"
80
+ * that is added as an HTML identifier for the anchor tag.
81
+ */
82
+ secondaryItems: any;
83
+ /**
84
+ * Main item of tertiary footer links. Item have to include mandatory
85
+ * "label" and "href". Additionally, you can pass an "id"
86
+ * that is added as an HTML identifier for the anchor tag.
87
+ */
88
+ tertiaryMainItem: any;
89
+ /**
90
+ * An array of items for the tertiary footer links. Items have to include mandatory
91
+ * "label" and "href". Additionally, you can pass an "id"
92
+ * that is added as an HTML identifier for the anchor tag.
93
+ */
94
+ tertiaryItems: any;
66
95
  /**
67
96
  * Property to change accessibleLabelExternal defaults on the component.
68
97
  * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
@@ -9,11 +9,13 @@ export declare type DuetInputEvent = {
9
9
  };
10
10
  export declare type DuetInputType = "text" | "email" | "password" | "search" | "tel";
11
11
  export declare type DuetInputComponentType = "input" | "number" | "date";
12
+ export declare type DuetVariationType = "default" | "button";
12
13
  export declare class DuetInput implements ThemeableComponent, InputComponent {
13
14
  /**
14
15
  * Own Properties
15
16
  */
16
17
  private inputId;
18
+ private clearId;
17
19
  private labelId;
18
20
  private topCaptionId;
19
21
  private topCaptionPlaceholderId;
@@ -22,6 +24,7 @@ export declare class DuetInput implements ThemeableComponent, InputComponent {
22
24
  private isCaptionVisible;
23
25
  private timeoutId;
24
26
  private disallowPatternRegex;
27
+ private clearLabel;
25
28
  /**
26
29
  * Reference to host HTML element.
27
30
  */
@@ -60,6 +63,10 @@ export declare class DuetInput implements ThemeableComponent, InputComponent {
60
63
  * event after each keystroke.
61
64
  */
62
65
  debounce: number;
66
+ /**
67
+ * If set, the input field will display a clear button that can be accessed with tabbing.
68
+ */
69
+ clear: boolean;
63
70
  /**
64
71
  * Caption (underneath label) that can be set as a way of adding extra information
65
72
  */
@@ -101,6 +108,10 @@ export declare class DuetInput implements ThemeableComponent, InputComponent {
101
108
  * Type of the input.
102
109
  */
103
110
  type: DuetInputType;
111
+ /**
112
+ * Variation of button.
113
+ */
114
+ variation: DuetVariationType;
104
115
  /**
105
116
  * Label for the input.
106
117
  */
@@ -189,6 +200,10 @@ export declare class DuetInput implements ThemeableComponent, InputComponent {
189
200
  * Emitted when the input loses focus.
190
201
  */
191
202
  duetBlur: EventEmitter<DuetInputEvent>;
203
+ /**
204
+ * Emitted when the input is cleared.
205
+ */
206
+ duetClear: EventEmitter<DuetInputEvent>;
192
207
  /**
193
208
  * Emitted when the input has focus.
194
209
  */
@@ -203,10 +218,13 @@ export declare class DuetInput implements ThemeableComponent, InputComponent {
203
218
  private onInput;
204
219
  private onBlur;
205
220
  private onFocus;
221
+ private onClear;
206
222
  /** Private functions
207
223
  *
208
224
  */
209
225
  private getDescribedBy;
226
+ private handleClearClick;
227
+ private keyHandler;
210
228
  /**
211
229
  * Sets focus on the specified `duet-input`. Use this method instead of the global
212
230
  * `input.focus()`.
@@ -217,6 +235,11 @@ export declare class DuetInput implements ThemeableComponent, InputComponent {
217
235
  * `input.resetCursor()`.
218
236
  */
219
237
  resetCursor(): Promise<void>;
238
+ /**
239
+ * Reset the cursor position on the native element
240
+ * `input.resetCursor()`.
241
+ */
242
+ clearInput(): Promise<void>;
220
243
  /**
221
244
  * render() function
222
245
  * Always the last one in the class.
@@ -28,6 +28,13 @@ export declare type DuetFileListItem = {
28
28
  group?: string;
29
29
  html?: string;
30
30
  status?: number;
31
+ pending?: boolean | undefined;
32
+ };
33
+ export declare type DuetUploadQueueItem = {
34
+ uid: string;
35
+ item: File;
36
+ name: string;
37
+ metadata: string;
31
38
  };
32
39
  export interface StringMap {
33
40
  [key: string]: any;
@@ -76,9 +83,13 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
76
83
  * it will be up to you to handle the upload and return progress information to the upload-component
77
84
  */
78
85
  external: boolean;
86
+ /**
87
+ * If defer-upload is true, duet-upload will not (as recommended) instantly upload files but await a call to uploadPending()
88
+ */
89
+ deferUpload: boolean;
79
90
  /**
80
91
  * If set the upload component will not display an upload button, you will have to create one yourself
81
- * and call the exposed method startUpload
92
+ * and call the exposed method startUpload to open the upload dialog
82
93
  */
83
94
  hideButton: boolean;
84
95
  /**
@@ -355,6 +366,10 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
355
366
  * Method for invoking the upload sequence
356
367
  */
357
368
  upload(metaData?: any | undefined): Promise<void>;
369
+ /**
370
+ * Method for uploading pending files
371
+ */
372
+ uploadPending(): Promise<void>;
358
373
  /**
359
374
  * Method for forcing a render of the upload list, element.files can be changed externally
360
375
  * But it will only rerender on a new Map or a top Level change - this can be used to update
@@ -409,6 +424,8 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
409
424
  * Component event handling.
410
425
  */
411
426
  private onChange;
427
+ private uploadFile;
428
+ private uploadPendingFiles;
412
429
  private getItemFromUID;
413
430
  private onDelete;
414
431
  private onCancel;
@@ -0,0 +1,6 @@
1
+ import { FunctionalComponent } from "../../stencil-public-runtime";
2
+ interface PendingProps {
3
+ name: string;
4
+ }
5
+ export declare const PendingItem: FunctionalComponent<PendingProps>;
6
+ export {};
@@ -28,7 +28,7 @@ import { DuetHeaderAnalyticsEvent, DuetHeaderChangeEvent, DuetHeaderMobileNavTog
28
28
  import { DuetHeadingWeight } from "./components/duet-heading/duet-heading";
29
29
  import { DuetHeroAnalyticsEvent, DuetHeroButtonData, DuetHeroClickEvent, DuetHeroIconSize, DuetHeroVariation } from "./components/duet-hero/duet-hero";
30
30
  import { DuetIconSize } from "./components/duet-icon/duet-icon";
31
- import { DuetInputComponentType, DuetInputEvent, DuetInputType } from "./components/duet-input/duet-input";
31
+ import { DuetInputComponentType, DuetInputEvent, DuetInputType, DuetVariationType } from "./components/duet-input/duet-input";
32
32
  import { DuetLabelMargin, DuetLabelSize } from "./components/duet-label/duet-label";
33
33
  import { DuetLayoutStickyDistance } from "./components/duet-layout/duet-layout";
34
34
  import { DuetListBreakpoint, DuetListLabelWidth, DuetListMobileAlignment, DuetListVariation } from "./components/duet-list/duet-list";
@@ -996,6 +996,10 @@ export namespace Components {
996
996
  * URL that the logo link points to.
997
997
  */
998
998
  "logoHref": string;
999
+ /**
1000
+ * Main item of footer links. Item have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
1001
+ */
1002
+ "mainItem": any;
999
1003
  /**
1000
1004
  * Controls the margin of the component.
1001
1005
  */
@@ -1004,6 +1008,18 @@ export namespace Components {
1004
1008
  * An array of items for the small footer menu. Items have to include mandatory "label" and "href" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
1005
1009
  */
1006
1010
  "menu": any;
1011
+ /**
1012
+ * An array of items for the secondary footer links. Items have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
1013
+ */
1014
+ "secondaryItems": any;
1015
+ /**
1016
+ * An array of items for the tertiary footer links. Items have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
1017
+ */
1018
+ "tertiaryItems": any;
1019
+ /**
1020
+ * Main item of tertiary footer links. Item have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
1021
+ */
1022
+ "tertiaryMainItem": any;
1007
1023
  /**
1008
1024
  * Theme of the navigation.
1009
1025
  */
@@ -1376,6 +1392,14 @@ export namespace Components {
1376
1392
  * Caption (underneath label) that can be set as a way of adding extra information
1377
1393
  */
1378
1394
  "caption": string;
1395
+ /**
1396
+ * If set, the input field will display a clear button that can be accessed with tabbing.
1397
+ */
1398
+ "clear": boolean;
1399
+ /**
1400
+ * Reset the cursor position on the native element `input.resetCursor()`.
1401
+ */
1402
+ "clearInput": () => Promise<void>;
1379
1403
  /**
1380
1404
  * Used internally in Duet to adjust whether this component acts as e.g. number input.
1381
1405
  */
@@ -1484,6 +1508,10 @@ export namespace Components {
1484
1508
  * Value of the input.
1485
1509
  */
1486
1510
  "value": string;
1511
+ /**
1512
+ * Variation of button.
1513
+ */
1514
+ "variation": DuetVariationType;
1487
1515
  }
1488
1516
  interface DuetLabel {
1489
1517
  /**
@@ -2910,6 +2938,10 @@ export namespace Components {
2910
2938
  * Caption (underneath label) that can be set as a way of adding extra information
2911
2939
  */
2912
2940
  "caption": string;
2941
+ /**
2942
+ * If defer-upload is true, duet-upload will not (as recommended) instantly upload files but await a call to uploadPending()
2943
+ */
2944
+ "deferUpload": boolean;
2913
2945
  /**
2914
2946
  * Description for the upload component.
2915
2947
  * @default { fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.", sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.", en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.", }
@@ -2957,7 +2989,7 @@ export namespace Components {
2957
2989
  */
2958
2990
  "groups": DuetUploadTableGroupName[];
2959
2991
  /**
2960
- * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
2992
+ * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload to open the upload dialog
2961
2993
  */
2962
2994
  "hideButton": boolean;
2963
2995
  /**
@@ -3043,6 +3075,10 @@ export namespace Components {
3043
3075
  * Method for invoking the upload sequence
3044
3076
  */
3045
3077
  "upload": (metaData?: any | undefined) => Promise<void>;
3078
+ /**
3079
+ * Method for uploading pending files
3080
+ */
3081
+ "uploadPending": () => Promise<void>;
3046
3082
  /**
3047
3083
  * Endpoint URI that is capable of receiving the files
3048
3084
  */
@@ -4486,6 +4522,10 @@ declare namespace LocalJSX {
4486
4522
  * URL that the logo link points to.
4487
4523
  */
4488
4524
  "logoHref"?: string;
4525
+ /**
4526
+ * Main item of footer links. Item have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
4527
+ */
4528
+ "mainItem"?: any;
4489
4529
  /**
4490
4530
  * Controls the margin of the component.
4491
4531
  */
@@ -4514,6 +4554,18 @@ declare namespace LocalJSX {
4514
4554
  * Event raised when the menu links are clicked. You can prevent the default browser functionality by calling **event.detail.originalEvent.preventDefault()** inside your listener. Additionally, the passed data is available via **event.detail.data**.
4515
4555
  */
4516
4556
  "onDuetMenuClick"?: (event: CustomEvent<DuetFooterChangeEvent>) => void;
4557
+ /**
4558
+ * An array of items for the secondary footer links. Items have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
4559
+ */
4560
+ "secondaryItems"?: any;
4561
+ /**
4562
+ * An array of items for the tertiary footer links. Items have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
4563
+ */
4564
+ "tertiaryItems"?: any;
4565
+ /**
4566
+ * Main item of tertiary footer links. Item have to include mandatory "label" and "href". Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
4567
+ */
4568
+ "tertiaryMainItem"?: any;
4517
4569
  /**
4518
4570
  * Theme of the navigation.
4519
4571
  */
@@ -4932,6 +4984,10 @@ declare namespace LocalJSX {
4932
4984
  * Caption (underneath label) that can be set as a way of adding extra information
4933
4985
  */
4934
4986
  "caption"?: string;
4987
+ /**
4988
+ * If set, the input field will display a clear button that can be accessed with tabbing.
4989
+ */
4990
+ "clear"?: boolean;
4935
4991
  /**
4936
4992
  * Used internally in Duet to adjust whether this component acts as e.g. number input.
4937
4993
  */
@@ -5004,6 +5060,10 @@ declare namespace LocalJSX {
5004
5060
  * Emitted when the value has changed.
5005
5061
  */
5006
5062
  "onDuetChange"?: (event: CustomEvent<DuetInputEvent>) => void;
5063
+ /**
5064
+ * Emitted when the input is cleared.
5065
+ */
5066
+ "onDuetClear"?: (event: CustomEvent<DuetInputEvent>) => void;
5007
5067
  /**
5008
5068
  * Emitted when the input has focus.
5009
5069
  */
@@ -5048,6 +5108,10 @@ declare namespace LocalJSX {
5048
5108
  * Value of the input.
5049
5109
  */
5050
5110
  "value"?: string;
5111
+ /**
5112
+ * Variation of button.
5113
+ */
5114
+ "variation"?: DuetVariationType;
5051
5115
  }
5052
5116
  interface DuetLabel {
5053
5117
  /**
@@ -6498,6 +6562,10 @@ declare namespace LocalJSX {
6498
6562
  * Caption (underneath label) that can be set as a way of adding extra information
6499
6563
  */
6500
6564
  "caption"?: string;
6565
+ /**
6566
+ * If defer-upload is true, duet-upload will not (as recommended) instantly upload files but await a call to uploadPending()
6567
+ */
6568
+ "deferUpload"?: boolean;
6501
6569
  /**
6502
6570
  * Description for the upload component.
6503
6571
  * @default { fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.", sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.", en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.", }
@@ -6541,7 +6609,7 @@ declare namespace LocalJSX {
6541
6609
  */
6542
6610
  "groups"?: DuetUploadTableGroupName[];
6543
6611
  /**
6544
- * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
6612
+ * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload to open the upload dialog
6545
6613
  */
6546
6614
  "hideButton"?: boolean;
6547
6615
  /**
@@ -8,3 +8,4 @@ export declare function getColorByName(name: string, theme?: DuetTheme): string
8
8
  export declare function convertToColorName(name?: string, theme?: DuetTheme): string;
9
9
  export declare function getFontSizeByName(name: string): string | undefined;
10
10
  export declare function getFontWeightByName(name: string): string | undefined;
11
+ export declare function shadeRGBColor(color: string, percent: number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "5.1.2",
3
+ "version": "5.1.5",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -51,11 +51,11 @@
51
51
  "body-scroll-lock": "3.1.5"
52
52
  },
53
53
  "devDependencies": {
54
- "@duetds/fonts": "1.4.24",
55
- "@duetds/icons": "2.3.1",
54
+ "@duetds/fonts": "1.4.27",
55
+ "@duetds/icons": "2.3.4",
56
56
  "@duetds/stencil-angular-output-target": "0.0.2",
57
57
  "@duetds/stencil-react-output-target": "0.0.10",
58
- "@duetds/tokens": "2.5.7",
58
+ "@duetds/tokens": "2.5.10",
59
59
  "@koa/cors": "3.3.0",
60
60
  "@rollup/plugin-replace": "3.1.0",
61
61
  "@stencil/core": "2.15.0",
@@ -88,5 +88,5 @@
88
88
  "collection": "lib/collection/collection-manifest.json",
89
89
  "es2015": "lib/esm/index.js",
90
90
  "es2017": "lib/esm/index.js",
91
- "gitHead": "db36e172176117fdff315a399e0217ec682922ca"
91
+ "gitHead": "4851e284bed53896d17c7c30155bea8deb641530"
92
92
  }
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,F as o,r as i,c as e,H as s,g as c}from"./p-f233cbe6.js";import{d as b}from"./p-dbb4a588.js";import{n as d,f as a,o as l,b as n,c as h}from"./p-54f35a79.js";import{g as r,a as m}from"./p-ede854e1.js";import{p as u}from"./p-5a9d75e1.js";import{i as x}from"./p-abf8eaf7.js";const p=({item:i,search:e="",selected:s})=>{const c=""!==e?new RegExp("("+e.split(" ").join("|")+")","gi"):void 0;return t(o,null,s&&t("duet-icon",{class:"option-icon",name:"messaging-checked",size:"xx-small",margin:"none"}),c?t("span",{class:"option-container","aria-hidden":"true"},t("span",{innerHTML:i.name.replace(c,'<span class="highlight">$&</span>')})):i.name,i.tags&&t("span",{class:"option-tags"},i.tags.join(", ")))},g=({item:o,active:i,total:e,selected:s,label:c,clickHandler:b=(t=>{t.preventDefault()}),keyHandler:d=(t=>{t.preventDefault()}),search:a})=>t("li",{class:{"list-item":!0,option:!0,active:i,selected:s},id:i?"active_item":"","data-index":o.id,"aria-selected":i?"true":void 0,"aria-current":s?"true":void 0,role:"option","aria-label":c||`${o.name}, (${o.id+1} of ${e})`},t("a",{tabindex:"-1",onClick:t=>b(t),onKeyUp:t=>d(t),class:"option-link","aria-label":c||`${o.name}, (${o.id+1} of ${e})`,"aria-hidden":"true"},t(p,{item:o,search:a,selected:s}))),v=class{constructor(t){i(this,t),this.duetChange=e(this,"duetChange",3),this.isSafari=!1,this.resizeObserver=new ResizeObserver(b((t=>{var o,i;if(1===(null==t?void 0:t.length)){const e=null===(i=null===(o=t[0])||void 0===o?void 0:o.target)||void 0===i?void 0:i.getBoundingClientRect().width;this.listContainer.style.width=`${e+1}px`}}),100)),this.processedItems=null,this.inputWidth=0,this.inputValue="",this.selectionMsg="",this.listOpen=!1,this.selectedItems=new Set,this.activeItem=void 0,this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}, ({current} of {total})",itemFiltered:"{name}, ({current} of {total}, {hiddenItems} filtered)"},fi:{heading:"Valitse:",item:"{name}, ({current}/{total})",itemFiltered:"{name}, ({current}/{total}, {hiddenItems} suodatettu)"},sv:{heading:"Välj:",item:"{name}, ({current} av {total})",itemFiltered:"{name}, ({current} av {total}, {hiddenItems} filtrerade)"}},this.accessibleLabels=r(u(this.accessibleLabelDefaults),m()),this.theme="",this.force=!1,this.formatter=t=>t&&t.name?t.name:""}activeItemHandler(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||0===t)?"active_item":""}handleDocumentClick(t){t.composedPath().every((t=>t!==this.element))&&(this.updateInputText(!0),this.listOpen=!1)}async formatItem(t){return this.formatter(t)}componentWillLoad(){x(this)}connectedCallback(){/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(this.isSafari=!0),this.items=this.processedItems=u(this.items),this.input=this.element.querySelector("duet-input"),this.input.addEventListener("duetChange",this.updateInputValue.bind(this)),this.input.addEventListener("click",(()=>{this.listOpen=!!this.inputValue.length})),this.element.addEventListener("keydown",this.handleInputKeyDownEvent.bind(this)),this.input.accessibleAutocomplete="list",this.input.accessibleControls="duet-combobox-list-element"}disconnectedCallback(){this.input.removeEventListener("duetChange",this.updateInputValue.bind(this)),this.input.removeEventListener("click",(()=>this.listOpen=!!this.inputValue.length)),this.element.removeEventListener("keydown",this.handleInputKeyDownEvent.bind(this)),this.listElement.removeEventListener("click",(t=>{t.stopPropagation()})),this.resizeObserver.disconnect()}componentDidLoad(){this.resizeObserver.observe(this.input),this.listElement.addEventListener("click",(t=>{t.stopPropagation()}))}onListClick(t,o){return t.preventDefault(),this.updateSelectedItems(o.id),this.listOpen=!1,this.listOpen}shouldListBeFiltered(){if(this.selectedItems.size&&this.input.value===this.inputValue){const t=this.items.filter((t=>this.selectedItems.has(t.id)));return!(this.formatter(t).toLowerCase()===this.input.value.toLowerCase())}return!0}returnFilteredOrNonFiltered(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]}async updateSelectedItems(t){this.selectedItems.clear(),this.selectedItems&&(this.selectedItems.has(t)?this.selectedItems.delete(t):this.selectedItems.add(t)),await this.updateInputText()}async updateInputText(t=!1){const o=0===this.selectedItems.size?[]:this.items.filter((t=>this.selectedItems.has(t.id)));1===this.selectedItems.size?(this.input.value="",this.input.value=await this.formatItem(o[0]),this.input.scrollLeft=this.input.scrollWidth,this.activeItem=void 0,this.value=await this.formatItem(o[0]),this.duetChange.emit({value:o[0].value,item:o[0],component:"duet-combobox"})):t&&0===this.selectedItems.size&&(this.force&&(this.inputValue="",this.input.value=""),this.activeItem=void 0),this.listOpen=!1}updateInputValue(t){var o;this.inputValue=t.detail.value,this.listOpen=String(this.inputValue).length>0&&(null===(o=this.getFilteredItems())||void 0===o?void 0:o.length)>0}handleInputKeyDownEvent(t){if(this.input.accessibleActiveDescendant=void 0,d(t))return t.preventDefault(),this.selectActiveItem(),void(this.listOpen=!1);if(a(t)||l(t))return this.updateInputText(!0),void(this.listOpen=!1);let o=this.activeItem;if(n(t)?(t.preventDefault(),o=this.activeItem-1):h(t)&&(t.preventDefault(),o=this.listOpen?this.activeItem+1:this.activeItem,this.listOpen=!0),h(t)||n(t)){const t=this.shouldListBeFiltered()?this.getFilteredItems():this.processedItems;(o<0||!o)&&(o=0),o>=t.length&&(o=t.length-1),this.input.accessibleActiveDescendant="active_item",this.activeItem=o,this.scrollToActive()}this.announceActive()}selectActiveItem(){if(void 0===this.activeItem)return;const t=this.returnFilteredOrNonFiltered();this.updateSelectedItems(t[this.activeItem].id)}announceActive(t){t||(t=this.returnFilteredOrNonFiltered()),void 0!==this.activeItem&&-1!==this.activeItem&&(this.selectionMsg=this.formatLabel(t[this.activeItem],t.length,this.items.length))}scrollToActive(){const t=this.listElement.querySelector(".active");t&&t.scrollIntoView({behavior:"smooth",block:"center"})}formatLabel(t,o,i){return t&&void 0!==i?(o===i?this.accessibleLabels.item:this.accessibleLabels.itemFiltered).replace("{name}",String(t.name)).replace("{current}",String(this.activeItem+1)).replace("{total}",String(o)).replace("{hiddenItems}",String(i-o)):""}getFilteredItems(){const t=this.processedItems.filter((t=>String(t.value).toLowerCase().includes(this.inputValue.toLowerCase())||String(t.name).toLowerCase().includes(this.inputValue.toLowerCase())||this.selectedItems.has(t.id)));return this.sortFilteredItems(t)}sortFilteredItems(t){return t.length>0&&t.filter((t=>this.selectedItems.has(t.id))).forEach((o=>{const i=t.indexOf(o);t.splice(i,1),t.unshift(o)})),t}render(){const o=this.returnFilteredOrNonFiltered();return t(s,{role:"combobox","aria-expanded":this.listOpen?"true":"false","aria-owns":this.listOpen?"duet-combobox-list-element":void 0,"aria-haspopup":"listbox",class:{"duet-combobox":!0,[`duet-theme-${this.theme}`]:!0}},t("slot",null),this.isSafari&&t("duet-visually-hidden",{"aria-live":"assertive","aria-atomic":"true","aria-relevant":"all"},this.selectionMsg),t("div",{role:"list",class:{"duet-combobox-list":!0,open:this.listOpen},ref:t=>this.listContainer=t},t("ul",{role:"listbox",ref:t=>this.listElement=t,id:"duet-combobox-list-element",class:"listbox"},this.processedItems&&o.map(((i,e)=>t(g,{item:i,active:e===this.activeItem,selected:this.selectedItems.has(i.id),search:this.inputValue,total:o.length,clickHandler:t=>this.onListClick(t,i),label:this.formatLabel(i,this.returnFilteredOrNonFiltered().length,this.items.length)}))))))}get element(){return c(this)}static get watchers(){return{activeItem:["activeItemHandler"]}}};v.style='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#00294d}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);display:none;overflow:hidden;background:white;border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox{max-height:200px;padding:0.75rem 0;margin:0;overflow-y:scroll;font-weight:600;list-style:none;cursor:pointer;scroll-behavior:smooth}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected) .highlight.sc-duet-combobox{text-decoration:underline}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{float:right;padding-right:0.875rem;font-weight:400;color:#909599}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:#cde5f1}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-icon.sc-duet-combobox{padding:0 8px 0 8px}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:#909599}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:white;background:#0077b3}.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:#e1e3e6}';export{v as duet_combobox}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as s,g as i,H as d}from"./p-f233cbe6.js";import{c as o}from"./p-c1325e35.js";import{i as r}from"./p-54f35a79.js";import{i as p}from"./p-abf8eaf7.js";const n=class{constructor(s){e(this,s),this.duetStepClick=t(this,"duetStepClick",7),this.buttonId=o("DuetStepButton"),this.contentId=o("DuetStepContent"),this.theme="",this.roundedTop=!1,this.roundedBottom=!1,this.handleKeyDown=e=>{this.isClickDisabled()||r(e)&&(e.preventDefault(),this.handleStepClick(e))},this.handleClick=e=>{this.isClickDisabled()||this.handleStepClick(e)}}handleStepClick(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){p(this)}async setFocus(e={preventScroll:!0}){this.buttonElement.focus(e)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?s("div",{class:"duet-step-icon"},s("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return s("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},s("div",{class:"duet-step-heading",id:this.buttonId,role:"button",tabindex:"incomplete"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:e=>this.buttonElement=e},s("div",{"aria-hidden":"true"},s("div",{class:"duet-step-counter"},this.renderStepCounter())),s("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),s("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),s("div",null,s("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),s("duet-spacer",{direction:"horizontal",size:"large"}),s("div",{class:"duet-step-heading-slot"},s("slot",{name:"heading-content"}))),s("div",{class:"duet-step-content-wrapper"},s("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},s("slot",null))))}get element(){return i(this)}};n.style='*.sc-duet-step,*.sc-duet-step::after,*.sc-duet-step::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-step-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-step.sc-duet-step{padding:20px !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;background:white;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.duet-theme-turva.sc-duet-step{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top.sc-duet-step{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom.sc-duet-step{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom.sc-duet-step{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step.sc-duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading.sc-duet-step{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false].sc-duet-step{cursor:pointer}.duet-step-heading.sc-duet-step:focus{outline:0}.duet-step-heading.sc-duet-step:active{opacity:0.75}.user-is-tabbing.sc-duet-step-h .duet-step-heading.sc-duet-step:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-step-h .duet-theme-turva.sc-duet-step .duet-step-heading.sc-duet-step:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step,.is-disabled.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step{background-color:#005f8f}.duet-theme-turva.is-complete.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step,.duet-theme-turva.is-disabled.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step{background-color:#9e0a26}.is-current.sc-duet-step .duet-step-heading.sc-duet-step{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading.sc-duet-step{margin-top:8px;margin-bottom:8px !important}.sc-duet-step-h:first-of-type .duet-step-heading.sc-duet-step{margin-top:0}.sc-duet-step-h:last-of-type .duet-step-heading.sc-duet-step{margin-bottom:0 !important}}.duet-step-counter.sc-duet-step{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:white;text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter.sc-duet-step{width:40px;height:40px;line-height:40px}}.is-complete.sc-duet-step .duet-step-counter.sc-duet-step,.is-current.sc-duet-step .duet-step-counter.sc-duet-step,.is-disabled.sc-duet-step .duet-step-counter.sc-duet-step{background-color:#0077b3}.duet-theme-turva.is-complete.sc-duet-step .duet-step-counter.sc-duet-step,.duet-theme-turva.is-current.sc-duet-step .duet-step-counter.sc-duet-step,.duet-theme-turva.is-disabled.sc-duet-step .duet-step-counter.sc-duet-step{background-color:#c60c30}.is-incomplete.sc-duet-step .duet-step-counter.sc-duet-step{background-color:#657787}.duet-theme-turva.is-incomplete.sc-duet-step .duet-step-counter.sc-duet-step{background-color:#747475}.duet-step-icon.sc-duet-step{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon.sc-duet-step{width:20px;height:20px}}.duet-step-icon.sc-duet-step duet-icon.sc-duet-step{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon.sc-duet-step duet-icon.sc-duet-step{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper.sc-duet-step{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid #e1e3e6}.duet-theme-turva.sc-duet-step .duet-step-content-wrapper.sc-duet-step{border-color:#e4e4e6}.sc-duet-step-h:last-of-type .duet-step-content-wrapper.sc-duet-step{min-height:0;border:transparent}}.duet-step-content.sc-duet-step{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content.sc-duet-step{padding-bottom:28px}}.is-current.sc-duet-step .duet-step-content.sc-duet-step{display:block}.duet-step-heading-slot.sc-duet-step{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot.sc-duet-step{display:block}}';const a=class{constructor(s){e(this,s),this.duetStepChange=t(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(e){if(isNaN(e))throw new Error(`step must be a number. got: ${e}`);if(e<0)throw new Error(`step must be not be less than zero. got: ${e}`);if(e>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){p(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const e=this.getSteps();e.forEach(((e,t)=>{let s;s=t<this.selected?this.backDisabled?"disabled":"complete":t>this.selected?"incomplete":"current",e.theme=this.theme,e.state=s,e.stepIndex=t}));const t=function(e,t){const s={};return t.forEach((e=>{const t=e.state;s[t]||(s[t]=[]),s[t].push(e)})),s}(0,e);Object.values(t).forEach((e=>{e.forEach(((t,s)=>{t.roundedTop=0===s,t.roundedBottom=s===e.length-1}))}))}formatAnnouncement(){const e=this.getSteps(),t=(this.selected+1).toString(10),s=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",s)}render(){return s(d,{class:{"duet-m-0":"none"===this.margin}},s("div",{class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},s("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),s("slot",null)))}get element(){return i(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};a.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:white;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{n as duet_step,a as duet_stepper}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as r,F as a,H as t,g as o}from"./p-f233cbe6.js";import{g as s}from"./p-ede854e1.js";import{i}from"./p-abf8eaf7.js";import"./p-5a9d75e1.js";const n=class{constructor(r){e(this,r),this.observers=[],this.breadcrumbsAriaLabel=s({fi:"Murupolku",sv:"Ströbröd",en:"Breadcrumbs"}),this.theme=""}componentWillLoad(){i(this),this.children=Array.from(this.element.children)}connectedCallback(){Array.from(this.element.children).forEach((e=>{const r=new MutationObserver((()=>this.children=Array.from(this.element.children)));r.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.observers=[...this.observers,r]}))}disconnectedCallback(){this.observers.forEach((e=>e.disconnect())),this.observers=[]}render(){return r(t,null,r("nav",{"aria-label":this.breadcrumbsAriaLabel,class:{"duet-breadcrumbs":!0,"duet-theme-turva":"turva"===this.theme}},r("ol",null,this.children.map(((e,t)=>r(a,null,t>0&&r("li",{"aria-hidden":"true"},r("duet-icon",{class:"duet-breadrumbs-arrow",size:"auto",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>',margin:"none",color:"currentColor"})),r("li",{innerHTML:e.outerHTML}),r("div",{class:"hide"},r("slot",null))))))))}get element(){return o(this)}};n.style='*,*::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}.duet-breadcrumbs{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-breadcrumbs ol{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;padding:10px 16px;color:#00294d;list-style:none;background:#f3f9fc;border-bottom:1px solid #e1e3e6}@media (min-width: 62em){.duet-breadcrumbs ol{padding:10px 36px}}.duet-breadcrumbs.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"}.duet-breadcrumbs.duet-theme-turva ol{color:#171c3a;background:#fcf3f4}.duet-breadcrumbs .duet-breadrumbs-arrow{display:inherit;align-items:center;justify-content:center;width:0.375rem;height:0.375rem}.duet-breadcrumbs .hide{display:none}';export{n as duet_breadcrumbs}
@@ -1,4 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a<n;a++){if(o||!(a in r)){if(!o)o=Array.prototype.slice.call(r,0,a);o[a]=r[a]}}return e.concat(o||Array.prototype.slice.call(r))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-1cb29dd2.system.js","./p-f69b64c9.system.js","./p-6b03322b.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var r,t,a,n,o,i,s;return{setters:[function(e){r=e.r;t=e.h;a=e.F;n=e.H;o=e.g},function(e){i=e.g},function(e){s=e.i},function(){}],execute:function(){var l={title:"action-arrow-right-small",tags:"action arrow right small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>'};var c='*,*::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}.duet-breadcrumbs{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-breadcrumbs ol{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;padding:10px 16px;color:#00294d;list-style:none;background:#f3f9fc;border-bottom:1px solid #e1e3e6}@media (min-width: 62em){.duet-breadcrumbs ol{padding:10px 36px}}.duet-breadcrumbs.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"}.duet-breadcrumbs.duet-theme-turva ol{color:#171c3a;background:#fcf3f4}.duet-breadcrumbs .duet-breadrumbs-arrow{display:inherit;align-items:center;justify-content:center;width:0.375rem;height:0.375rem}.duet-breadcrumbs .hide{display:none}';var u=e("duet_breadcrumbs",function(){function e(e){r(this,e);this.observers=[];this.breadcrumbsAriaLabel=i({fi:"Murupolku",sv:"Ströbröd",en:"Breadcrumbs"});this.theme=""}e.prototype.componentWillLoad=function(){s(this);this.children=Array.from(this.element.children)};e.prototype.connectedCallback=function(){var e=this;Array.from(this.element.children).forEach((function(r){var t=new MutationObserver((function(){return e.children=Array.from(e.element.children)}));t.observe(r,{childList:true,subtree:true,attributes:true,characterData:true});e.observers=__spreadArray(__spreadArray([],e.observers,true),[t],false)}))};e.prototype.disconnectedCallback=function(){this.observers.forEach((function(e){return e.disconnect()}));this.observers=[]};e.prototype.render=function(){return t(n,null,t("nav",{"aria-label":this.breadcrumbsAriaLabel,class:{"duet-breadcrumbs":true,"duet-theme-turva":this.theme==="turva"}},t("ol",null,this.children.map((function(e,r){return t(a,null,r>0&&t("li",{"aria-hidden":"true"},t("duet-icon",{class:"duet-breadrumbs-arrow",size:"auto",icon:l.svg,margin:"none",color:"currentColor"})),t("li",{innerHTML:e.outerHTML}),t("div",{class:"hide"},t("slot",null)))})))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());u.style=c}}}));
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,o,r){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function a(e){try{l(r.next(e))}catch(t){n(t)}}function d(e){try{l(r["throw"](e))}catch(t){n(t)}}function l(e){e.done?o(e.value):i(e.value).then(a,d)}l((r=r.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:[]},r,i,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 l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(o)try{if(r=1,i&&(n=a[0]&2?i["return"]:a[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;if(i=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;i=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(a[0]===6&&o.label<n[1]){o.label=n[1];n=a;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(a);break}if(n[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(d){a=[6,d];i=0}finally{r=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-1cb29dd2.system.js","./p-053b71e6.system.js","./p-c7ae95bd.system.js","./p-f69b64c9.system.js","./p-b6d51921.system.js","./p-6b03322b.system.js"],(function(e){"use strict";var t,o,r,i,n,a,d,l,u,s,c;return{setters:[function(e){t=e.r;o=e.c;r=e.h;i=e.F;n=e.g},function(e){a=e.a},function(e){d=e.D},function(e){l=e.a;u=e.g},function(e){s=e.p},function(e){c=e.i}],execute:function(){var p={title:"action-arrow-right",tags:"action arrow right caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M5.499 24a.752.752 0 0 1-.53-1.281L15.689 12 4.969 1.28c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53c.141-.142.33-.22.53-.22s.389.078.53.22l10.72 10.72a1.5 1.5 0 0 1 .001 2.119L6.029 23.78a.743.743 0 0 1-.53.22z"/></svg>'};var m={title:"action-new-window",tags:"arrow open new window tab external link square box rectangle action",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M10.25 2a.75.75 0 1 1 0 1.5h-6.5A2.252 2.252 0 0 0 1.5 5.75v14.5a2.252 2.252 0 0 0 2.25 2.25h14.5a2.252 2.252 0 0 0 2.25-2.25v-6.5a.75.75 0 0 1 1.5 0v6.5A3.754 3.754 0 0 1 18.25 24H3.75A3.754 3.754 0 0 1 0 20.25V5.75A3.754 3.754 0 0 1 3.75 2zm12.985-2c.1 0 .198.02.29.058l.025.011a.726.726 0 0 1 .15.091l.066.059a.755.755 0 0 1 .109.138l.051.1c.04.092.06.192.06.293l-.001 6.363c0 .2-.078.389-.22.53a.743.743 0 0 1-.53.22.743.743 0 0 1-.53-.22.743.743 0 0 1-.22-.53V2.559L15.28 9.764a.75.75 0 0 1-1.06-1.06l7.204-7.205h-4.553a.744.744 0 0 1-.75-.75c0-.2.078-.388.22-.53A.743.743 0 0 1 16.87 0z"/></svg>'};var f='*,*::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%}.duet-footer{display:block;width:100%;padding-top:20px;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:white;text-align:left;background:#00294d}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 36em){.duet-footer{padding-top:36px}}@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:#c60c30}.duet-footer a{color:white;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;justify-content:space-between}}duet-logo{margin-left:16px !important}@media (min-width: 36em){duet-logo{margin-left:28px !important}}@media (min-width: 62em){duet-logo{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-icon{display:flex;align-items:center;justify-content:center;padding:12px;margin-right:16px;background:#0077b3;border-radius:50%;transition:300ms ease}.duet-theme-turva .duet-footer-icon{background:transparent;box-shadow:0 0 0 1px white}a:hover .duet-footer-icon{background:#006ba1}.duet-theme-turva a:hover .duet-footer-icon{background:transparent}.duet-footer-arrow{display:flex;align-items:center;justify-content:center;width:20px;min-width:20px;max-width:20px;height:20px;max-height:20px;margin-left:auto;color:white;transition:transform 300ms ease}@media (min-width: 62em){.duet-footer-arrow{width:10px;min-width:10px;margin-top:3px;margin-left:8px}}@media (min-width: 62em){.duet-footer-arrow{margin-right:0}}a:hover .duet-footer-arrow{transform:translateX(4px)}.duet-footer-arrow duet-icon{width:20px;height:20px}@media (min-width: 62em){.duet-footer-arrow duet-icon{width:10px;height:10px}}.duet-footer-menu{padding:20px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;word-break:break-all}.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 a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{color:white}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:#00294d;background:transparent !important;border-top:1px solid #e1e3e6}.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:#00294d}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple.duet-theme-turva{color:#171c3a;border-color:#e4e4e6}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:#171c3a}.duet-footer-external{display:inline-block;margin-left:4px;color:#0077b3}.duet-theme-turva .duet-footer-external{color:white}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:#c60c30}';var h={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}};var g=function(e,t){return{component:"duet-footer",data:t,originalEvent:e}};var b=e("duet_footer",function(){function e(e){var r=this;t(this,e);this.duetChange=o(this,"duetChange",3);this.duetLogoClick=o(this,"duetLogoClick",7);this.duetMenuClick=o(this,"duetMenuClick",7);this.duetItemClick=o(this,"duetItemClick",7);this.duetAnalytics=o(this,"duetAnalytics",7);this.processedItems=null;this.processedMenu=null;this.theme="";this.variation="default";this.margin="auto";this.logoHref="/";this.language=l();this.accessibleLabelExternalDefaults=d;this.accessibleLabelExternal=u(this.accessibleLabelExternalDefaults,this.language);this.handleClick=function(e){if(e.data.analyticsId){r.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId})}r.duetChange.emit(e)};this.handleLogoClick=function(e){var t=g(e,{href:r.logoHref,label:"logo"});r.duetLogoClick.emit(t);r.handleClick(t)};this.handleMenuClick=function(e,t){var o=g(e,t);r.handleClick(o);r.duetMenuClick.emit(o)};this.handleItemClick=function(e,t){var o=g(e,t);r.handleClick(o);r.duetItemClick.emit(o)}}e.prototype.componentWillLoad=function(){c(this);this.refresh()};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=s(this.items);this.processedMenu=s(this.menu);return[2]}))}))};e.prototype.render=function(){var e=this;var t=u(h);var o=this.theme==="turva"?t.turva:t.lahi;return r("footer",{class:{"duet-footer":true,"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-footer-simple":this.variation==="simple"}},r("div",{class:"duet-footer-wrapper"},r("div",{class:"duet-footer-top",part:"top"},this.variation!=="simple"&&r("duet-logo",{href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:true,language:this.language,theme:this.theme}),this.processedItems&&this.variation!=="simple"&&this.processedItems.map((function(t){return r("a",{class:"duet-footer-link",href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleItemClick(o,t)}},r("div",{class:"duet-footer-icon"},r("duet-icon",{size:"medium",margin:"none",name:t.icon,color:"currentColor"})),r("span",null,t.label),t.external&&r("duet-visually-hidden",null,", ",e.accessibleLabelExternal),r("div",{class:"duet-footer-arrow"},t.external?r("duet-icon",{icon:m.svg,size:"xx-small",margin:"none",color:"currentColor"}):r("duet-icon",{icon:p.svg,size:"auto",margin:"none",color:"currentColor"})))}))),r("p",{class:"duet-footer-menu",part:"menu"},r("span",{class:"duet-footer-copyright"},"".concat(o," ").concat((new Date).getFullYear())),this.processedMenu&&r(i,null,r("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"),this.processedMenu.map((function(t){return r("a",{href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleMenuClick(o,t)}},t.label,t.external&&r(i,null,r("duet-visually-hidden",null,", ",e.accessibleLabelExternal),r("div",{class:"duet-footer-external"},r("duet-icon",{icon:a.svg,size:"xx-small",margin:"none",color:"currentColor"}))),r("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["refresh"],items:["refresh"]}},enumerable:false,configurable:true});return e}());b.style=f}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- System.register(["./p-ddb6344c.system.js"],(function(n){"use strict";var r;return{setters:[function(n){r=n.t}],execute:function(){n("g",d);var t=["turva"];function i(n){var r=n.includes("-");var t=n.includes(" ")||n.includes("_");var i=n.charAt(0)==="-";return r&&!t&&!i}function e(n){if(n===void 0){n=""}return"".concat(n.charAt(0).toUpperCase()).concat(n.slice(1))}function c(n){if(n===void 0){n=""}return"".concat(n.charAt(0).toLowerCase()).concat(n.slice(1))}function o(n){if(n===void 0){n=""}var r=n.split("-");r.forEach((function(n,t){r[t]=e(n)}));return r.join("")}function u(n){if(n===void 0){n=""}if(t.includes(n.toLowerCase())){return n.toLowerCase()}return""}function f(n){return n.charAt(0).toUpperCase()+n.slice(1)}function a(n,r){if(r===void 0){r=""}return r.indexOf(f(n))===0||r.indexOf(n)===0}function s(n,r){if(r===void 0){r=""}if(r&&!i(r)&&!a(n,r)){return"".concat(n).concat(e(r))}return r}function v(n,r){var t=u(r).length;if(t&&n.indexOf(r)===-1){return"".concat(n).concat(e(r))}return n}function d(n,t){if(t===void 0){t=""}if(!n){return undefined}var i=l(n);var e=l(n,t);var c=r[e];if(!c){c=r[i]}return c}function l(n,r){if(n===void 0){n=""}if(r===void 0){r=""}var t=n;var e=i(n);if(e){t=o(t)}t=s("color",t);t=v(t,r);t=c(t);return t}}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as o,h as i,H as n,g as a}from"./p-f233cbe6.js";import{c as e}from"./p-c1325e35.js";import{d as r}from"./p-dbb4a588.js";import{i as s}from"./p-54f35a79.js";import{g as d}from"./p-ede854e1.js";import{i as u}from"./p-abf8eaf7.js";import{g as c}from"./p-cb445018.js";import"./p-5a9d75e1.js";import"./p-ad07f399.js";const b=class{constructor(i){t(this,i),this.duetActionEvent=o(this,"duetActionEvent",6),this.numbersStore="",this.theme="",this.iconName="action-arrow-left-small",this.iconColor="currentColor",this.iconSize="xx-small",this.actionName="default-action",this.actionId=void 0,this.actionMeta=void 0,this.disabled=!1,this.color="",this.background="",this.ariaDescribedBy=void 0,this.ariaDescription=void 0,this.ariaLabelsDefaults={en:{label:"Click to activate action"},fi:{label:"Klikkaa toiminnon aktivointiin"},sv:{label:"Klicka för att aktivera åtgärd"}},this.ariaLabels=d(this.ariaLabelsDefaults),this.ariaControls="",this.listId=e("duet-action-button"),this.emitPageEvent=r((t=>{this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionId,name:this.actionName,meta:this.actionMeta,id:this.listId})}))}async onKeyboardDown(t){s(t)&&this.emitPageEvent(t)}async onMouseHandler(t){t.preventDefault(),this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionName,id:this.actionId,meta:this.actionMeta})}componentWillLoad(){u(this)}render(){const t={color:"currentColor"===this.color?"currentColor":c(this.color,this.theme),background:c(this.background,this.theme),"border-color":c(this.iconColor,this.theme),"border-width":"1px","border-style":"solid"};return i(n,{onKeyDown:t=>this.onKeyboardDown(t)},i("button",{part:"button",style:t,disabled:this.disabled,id:this.listId,class:{"duet-action-button":!0,"duet-action-button--disabled":this.disabled,[`duet-action-button--${this.theme}`]:""!==this.theme},type:"button",onClick:t=>this.onMouseHandler(t),"aria-label":this.ariaLabels.label,"aria-description":this.ariaDescription,"aria-describedby":this.ariaDescribedBy,"aria-controls":this.ariaControls},i("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize}),i("duet-visually-hidden",null,i("slot",null))))}get element(){return a(this)}};b.style="*,*::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:inline-block;margin:0 auto}button.duet-action-button{white-space:nowrap}button.duet-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px !important;color:#00294d;cursor:pointer;background:#f5f8fa;border-radius:50%;transition:background-color 300ms ease !important}.duet-theme-turva button.duet-action-button{color:#171c3a;background:#f5f5f7}button.duet-action-button duet-icon{display:block}@media (max-width: 35.9375em){button.duet-action-button{width:32px;height:32px}}button.duet-action-button:not(:disabled):hover{background:#e9ecee !important}.duet-theme-turva button.duet-action-button:not(:disabled):hover{background:#e9e9eb !important}button.duet-action-button:focus{outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva button.duet-action-button:focus{box-shadow:0 0 0 2px #171c3a !important}button.duet-action-button:active:focus{background:#dddfe1 !important;box-shadow:none}.duet-theme-turva button.duet-action-button:active:focus{background:#ddddde !important}button.duet-action-button:disabled{color:#909599;cursor:default;background:#f5f8fa;opacity:0.75}.duet-theme-turva button.duet-action-button:disabled{color:#747475;background:#f5f5f7}";export{b as duet_action_button}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as i,H as n,g as o}from"./p-f233cbe6.js";import{f as s}from"./p-d004da5f.js";import{c as a}from"./p-c1325e35.js";import{c as u,r as p}from"./p-56118313.js";import{i as d}from"./p-abf8eaf7.js";const r={search:s,email:{title:"form-email",tags:"form email",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 23.999c-3.205 0-6.218-1.248-8.484-3.514S.001 15.206.001 12.001s1.248-6.218 3.514-8.485C5.782 1.25 8.795.001 12 .001s6.218 1.248 8.485 3.514A11.92 11.92 0 0 1 24 12v2.25A3.754 3.754 0 0 1 20.25 18a3.77 3.77 0 0 1-3.48-2.365A6.009 6.009 0 0 1 12 18c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6v2.25c0 1.241 1.009 2.25 2.25 2.25s2.25-1.009 2.25-2.25V12c0-2.804-1.092-5.441-3.075-7.424A10.433 10.433 0 0 0 12 1.501c-2.804 0-5.441 1.092-7.424 3.075S1.501 9.196 1.501 12c0 2.805 1.092 5.441 3.075 7.424s4.619 3.074 7.423 3.074c2.257 0 4.494-.746 6.299-2.1a.749.749 0 1 1 .9 1.199A12.049 12.049 0 0 1 12 23.999zM12 7.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"/></svg>'}},l=class{constructor(i){t(this,i),this.duetInput=e(this,"duetInput",7),this.duetChange=e(this,"duetChange",3),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=a("DuetInput"),this.labelId=a("DuetLabel"),this.topCaptionId=a("DuetCaptionTop"),this.topCaptionPlaceholderId=a("DuetCaptionPlaceholderTop"),this.errorId=a("DuetError"),this.disallowPatternRegex=null,this.accessibleDescribedBy="",this.accessibleHasPopup=void 0,this.debounce=0,this.echoPlaceholder=!1,this.theme="",this.expand=!1,this.disabled=!1,this.margin="auto",this.required=!1,this.type="text",this.label="label",this.error="",this.labelHidden=!1,this.numericKeyboard=!1,this.component="input",this.autoComplete="on",this.disallowPattern=null,this.tooltip="",this.tooltipDirection="auto",this.onInput=t=>{this.disallowPatternRegex&&u(this.nativeInput,this.disallowPatternRegex),this.value=this.nativeInput.value||"",this.duetInput.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.getDescribedBy=()=>{let t="";return this.isCaptionVisible&&this.topCaptionId?(t=this.topCaptionId,this.accessibleDescribedBy&&(t+=" "+this.accessibleDescribedBy)):t=this.accessibleDescribedBy.length>0?this.accessibleDescribedBy:void 0,t}}disallowedPatternChange(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"g"):null}valueChanged(){var t;if((null===(t=null==this?void 0:this.nativeInput)||void 0===t?void 0:t.value)!==this.value){const t=p(this.nativeInput);this.nativeInput.value=this.value,t()}this.isCaptionVisible=!!this.caption;const e=()=>this.duetChange.emit({value:this.value,component:"duet-input"});0===this.debounce?e():(clearTimeout(this.timeoutId),this.timeoutId=setTimeout(e,this.debounce))}componentWillLoad(){d(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async resetCursor(){if(this.nativeInput){const t=p(this.nativeInput);this.nativeInput.value=this.value,t()}}render(){const t=this.identifier||this.inputId,e={};return this.numericKeyboard&&(e.inputmode="numeric"),this.pattern&&"tel"!==this.type?e.pattern=this.pattern:this.pattern||"tel"!==this.type||(e.pattern="[0-9+ ]+"),i(n,{class:{"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},i("div",{class:{"duet-input-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-icon":!!this.icon||"text"!==this.type&&"tel"!==this.type&&"password"!==this.type,"has-error":!!this.error}},i("duet-label",{theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",id:this.labelId,for:t},this.label),this.tooltip&&i("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),this.caption&&i("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),i("div",{class:"duet-input-relative"},this.placeholder&&this.echoPlaceholder&&this.value&&i("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-input-placeholder",margin:"none",size:"small"},this.placeholder),i("input",Object.assign({ref:t=>this.nativeInput=t,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,type:this.type,class:{"duet-input":!0,disabled:this.disabled,"is-number":"number"===this.component,"is-date":"date"===this.component},value:this.value,disabled:this.disabled,"aria-invalid":this.error?"true":"false","aria-labelledby":`${this.labelId} ${this.errorId}`,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-expanded":this.accessibleExpanded,"aria-haspopup":this.accessibleHasPopup,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),placeholder:this.placeholder,spellcheck:"false",minlength:this.minlength,maxlength:this.maxlength,autocomplete:this.autoComplete,required:this.required,role:this.role,name:this.name,id:t},e)),!this.icon&&"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&i("div",{class:"duet-input-icon"},i("duet-icon",{margin:"none",size:"small",icon:r[this.type].svg,color:"currentColor"})),this.icon&&i("div",{class:"duet-input-icon"},i("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),i("slot",null)),i("span",{class:"duet-input-help",id:this.errorId,"aria-live":"assertive","aria-relevant":"additions removals"},this.error&&i("span",{class:"duet-input-error"},this.error))))}get element(){return o(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"],value:["valueChanged"]}}};l.style='*.sc-duet-input,*.sc-duet-input::after,*.sc-duet-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-input-h:last-child,.sc-duet-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-input-h{width:100% !important}.duet-m-0.sc-duet-input-h{margin:0 !important}duet-tooltip.sc-duet-input{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-input{position:relative;top:4px;right:auto}}duet-caption.sc-duet-input:not(:last-of-type){margin-bottom:0}.duet-input-placeholder.sc-duet-input{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:white}.duet-input-icon.sc-duet-input{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:#00294d;pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-input .duet-input-icon.sc-duet-input{color:#171c3a}.duet-input-container.sc-duet-input{position:relative;width:100%;height:100%}.duet-input.sc-duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !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:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:#00294d !important;cursor:initial !important;background:white !important;background-clip:initial !important;border:1px solid #909599 !important;border-radius:4px !important;box-shadow:initial !important;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-input.is-number.sc-duet-input{padding-right:112px !important}.duet-input.is-date.sc-duet-input{padding-right:64px !important}.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:#de2362 !important}.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:#de2362 !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:#e02a0d !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:#e02a0d !important}.has-icon.sc-duet-input .duet-input.sc-duet-input{padding-right:48px !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#171c3a !important;border-color:#747475 !important}.duet-input.sc-duet-input::-ms-clear{display:none}.duet-input.sc-duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input.sc-duet-input::-webkit-input-placeholder{color:#657787;opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-webkit-input-placeholder{color:#747475}.duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:#cfd2d4}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:#cfcfd1}.duet-input.sc-duet-input::-moz-placeholder{color:#657787;opacity:1 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-moz-placeholder{color:#747475}.duet-input.sc-duet-input:focus::-moz-placeholder{color:#cfd2d4}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:#cfcfd1}.duet-input.sc-duet-input:-ms-input-placeholder{color:#657787}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-ms-input-placeholder{color:#747475}.duet-input.sc-duet-input:focus:-ms-input-placeholder{color:#cfd2d4}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:#cfcfd1}.duet-input[disabled].sc-duet-input{color:#00294d !important;cursor:text !important;background:#f5f8fa !important;border-color:#f5f8fa !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:#00294d !important}.duet-theme-turva.sc-duet-input .duet-input[disabled].sc-duet-input{color:#171c3a !important;background:#f5f5f7 !important;border-color:#f5f5f7 !important;-webkit-text-fill-color:#171c3a !important}.duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e02a0d}.duet-input.sc-duet-input:focus{border-color:#0077b3 !important;outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus{border-color:#171c3a !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:#171c3a}.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #e02a0d}.duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:#0077b3}.duet-input[type=search].sc-duet-input:not(:placeholder-shown):focus+.duet-input-icon.sc-duet-input{display:none}.duet-input.sc-duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=number].sc-duet-input::-webkit-outer-spin-button,.duet-input[type=time].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=time].sc-duet-input::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input.sc-duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help.sc-duet-input{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:#657787;border-radius:4px}.duet-input-help.sc-duet-input span.sc-duet-input{display:block;margin-top:8px}.duet-theme-turva.sc-duet-input .duet-input-help.sc-duet-input{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:#747475}.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:#de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:#e02a0d}.duet-label-hidden.sc-duet-input duet-label.sc-duet-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative.sc-duet-input{position:relative;width:100%}';const c=class{constructor(e){t(this,e),this.theme="",this.margin="auto",this.size="medium"}componentWillLoad(){d(this)}render(){return i(n,{class:{"duet-label":!0,"duet-label-small":"small"===this.size,"duet-theme-turva":"turva"===this.theme,"duet-small-margin":"small"===this.margin,"duet-m-0":"none"===this.margin}},i("label",{htmlFor:this.for},i("span",null,i("slot",null))))}};c.style='*.sc-duet-label,*.sc-duet-label::after,*.sc-duet-label::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-label-h{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;line-height:1.25;cursor:default}.duet-p-0.sc-duet-label-h{padding:0 !important}.duet-m-0.sc-duet-label-h{margin:0 !important}.duet-m-0.sc-duet-label-h{margin-bottom:0 !important}.duet-small-margin.sc-duet-label-h{margin-top:8px !important;margin-bottom:4px !important}.duet-has-tooltip.sc-duet-label-h{padding-right:48px}@media (min-width: 48em){.duet-has-tooltip.sc-duet-label-h{padding-right:0}}label.sc-duet-label{margin:0;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;color:#00294d;text-align:left;word-break:break-word}label.sc-duet-label span.sc-duet-label{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-label-small.sc-duet-label-h label.sc-duet-label{font-size:0.875rem}.duet-label-small.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-size:0.875rem}.duet-theme-turva.sc-duet-label-h label.sc-duet-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:#171c3a}';export{l as duet_input,c as duet_label}