@duetds/components 5.2.0 → 5.2.1

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 (264) hide show
  1. package/hydrate/index.js +145 -81
  2. package/lib/cjs/{dom-66424ef2.js → dom-96576bce.js} +1 -1
  3. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  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 +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  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 +1 -1
  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 +4 -3
  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 +1 -1
  22. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  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 +92 -47
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +3 -3
  46. package/lib/cjs/{focus-utils-bfb10d32.js → focus-utils-7b09fa4b.js} +1 -1
  47. package/lib/cjs/{index-a4844346.js → index-3024eb44.js} +11 -9
  48. package/lib/cjs/loader.cjs.js +2 -2
  49. package/lib/cjs/{shadow-css-1ff2f74f.js → shadow-css-38b9e725.js} +2 -3
  50. package/lib/collection/collection-manifest.json +1 -1
  51. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -1
  52. package/lib/collection/components/duet-number-input/duet-number-input.js +22 -27
  53. package/lib/collection/components/duet-table/duet-table.css +30 -18
  54. package/lib/collection/utils/math.utils.js +76 -0
  55. package/lib/custom-elements-bundle/index.js +106 -61
  56. package/lib/duet/duet.esm.js +1 -1
  57. package/lib/duet/duet.js +1 -1
  58. package/lib/duet/{p-d33b5ac5.system.entry.js → p-036b2f99.system.entry.js} +1 -1
  59. package/lib/duet/p-0522338d.system.entry.js +4 -0
  60. package/lib/duet/{p-ec6d63fc.entry.js → p-053c3751.entry.js} +1 -1
  61. package/lib/duet/{p-285714dd.entry.js → p-094b206c.entry.js} +1 -1
  62. package/lib/duet/{p-e8f8374b.system.entry.js → p-095b52f8.system.entry.js} +1 -1
  63. package/lib/duet/{p-7021d0c6.system.entry.js → p-0f343566.system.entry.js} +1 -1
  64. package/lib/duet/{p-03b6ce80.entry.js → p-0fffc5fe.entry.js} +1 -1
  65. package/lib/duet/{p-b35d6368.system.entry.js → p-1167bc0a.system.entry.js} +1 -1
  66. package/lib/duet/{p-fd0a3ab7.entry.js → p-13db05ed.entry.js} +1 -1
  67. package/lib/duet/p-15edabe0.entry.js +4 -0
  68. package/lib/duet/{p-c7657242.entry.js → p-16a1bfe4.entry.js} +1 -1
  69. package/lib/duet/{p-b0a4dc6d.entry.js → p-273b6543.entry.js} +1 -1
  70. package/lib/duet/{p-5b1cbe5b.entry.js → p-27d9b918.entry.js} +1 -1
  71. package/lib/duet/{p-e75c7aa8.system.entry.js → p-2cc240f9.system.entry.js} +1 -1
  72. package/lib/duet/{p-971f42d6.system.entry.js → p-2ee81c0d.system.entry.js} +1 -1
  73. package/lib/duet/{p-0bee3151.system.entry.js → p-31a56879.system.entry.js} +1 -1
  74. package/lib/duet/p-35f011bf.system.js +5 -0
  75. package/lib/duet/{p-fa59ebf4.js → p-3b31184e.js} +0 -0
  76. package/lib/duet/{p-9406ee60.entry.js → p-4061e958.entry.js} +1 -1
  77. package/lib/duet/{p-08eb2200.entry.js → p-40ebab42.entry.js} +1 -1
  78. package/lib/duet/{p-f91e88e3.system.entry.js → p-465777cf.system.entry.js} +1 -1
  79. package/lib/duet/{p-a2fa0049.entry.js → p-484993a3.entry.js} +1 -1
  80. package/lib/duet/{p-9920ad3b.entry.js → p-49fc4668.entry.js} +1 -1
  81. package/lib/duet/{p-b51928dc.system.entry.js → p-4e2d8044.system.entry.js} +1 -1
  82. package/lib/duet/{p-95e1a336.entry.js → p-4ff48b81.entry.js} +1 -1
  83. package/lib/duet/{p-423d4211.system.entry.js → p-50f27bbf.system.entry.js} +1 -1
  84. package/lib/duet/{p-0ae816ee.entry.js → p-5183d420.entry.js} +1 -1
  85. package/lib/duet/{p-88ffd1cc.entry.js → p-536bde7b.entry.js} +1 -1
  86. package/lib/duet/{p-360f8fff.system.entry.js → p-53b8ff1e.system.entry.js} +1 -1
  87. package/lib/duet/{p-01478a01.system.entry.js → p-55a7c445.system.entry.js} +1 -1
  88. package/lib/duet/{p-00bf0bb9.system.entry.js → p-56d12aca.system.entry.js} +1 -1
  89. package/lib/duet/{p-030e20d7.entry.js → p-60ef49b0.entry.js} +1 -1
  90. package/lib/duet/{p-6a843f9e.entry.js → p-6518b98d.entry.js} +1 -1
  91. package/lib/duet/{p-98039227.system.entry.js → p-69180d4f.system.entry.js} +1 -1
  92. package/lib/duet/{p-c1d55269.system.entry.js → p-6e02a236.system.entry.js} +1 -1
  93. package/lib/duet/{p-495a1326.system.entry.js → p-6ed460f4.system.entry.js} +1 -1
  94. package/lib/duet/{p-73cd4f03.system.entry.js → p-720c6e22.system.entry.js} +1 -1
  95. package/lib/duet/{p-a843e579.system.entry.js → p-74e56aba.system.entry.js} +1 -1
  96. package/lib/duet/{p-fbec1a47.entry.js → p-750330d5.entry.js} +1 -1
  97. package/lib/duet/{p-f5613315.system.entry.js → p-76263b65.system.entry.js} +1 -1
  98. package/lib/duet/{p-271107d8.entry.js → p-76c11fd4.entry.js} +1 -1
  99. package/lib/duet/{p-4972c76e.system.js → p-798355c8.system.js} +1 -1
  100. package/lib/duet/{p-ee97a406.system.entry.js → p-7bf7db59.system.entry.js} +2 -2
  101. package/lib/duet/{p-19100783.system.entry.js → p-7e951645.system.entry.js} +1 -1
  102. package/lib/duet/p-7ed17661.entry.js +4 -0
  103. package/lib/duet/{p-56d3e64f.entry.js → p-7ef5c9a5.entry.js} +1 -1
  104. package/lib/duet/{p-33388bf3.system.entry.js → p-7f984c27.system.entry.js} +1 -1
  105. package/lib/duet/{p-1ff51ad8.system.entry.js → p-85be7c9f.system.entry.js} +1 -1
  106. package/lib/duet/{p-fef3a403.system.entry.js → p-867497c7.system.entry.js} +1 -1
  107. package/lib/duet/{p-95a0db46.entry.js → p-869a8af0.entry.js} +1 -1
  108. package/lib/duet/{p-04061cef.entry.js → p-8714d15d.entry.js} +1 -1
  109. package/lib/duet/{p-9496d6d4.entry.js → p-876175fe.entry.js} +1 -1
  110. package/lib/duet/{p-7fe67436.system.entry.js → p-88113f53.system.entry.js} +1 -1
  111. package/lib/duet/{p-d4dba079.system.entry.js → p-8828fc2e.system.entry.js} +1 -1
  112. package/lib/duet/{p-5a5d8fb1.entry.js → p-88996447.entry.js} +1 -1
  113. package/lib/duet/p-8de3ea21.system.entry.js +4 -0
  114. package/lib/duet/{p-64685397.entry.js → p-8e9cbd88.entry.js} +1 -1
  115. package/lib/duet/{p-790ee851.entry.js → p-91a3e8db.entry.js} +1 -1
  116. package/lib/duet/{p-b16befbc.system.entry.js → p-927f850c.system.entry.js} +1 -1
  117. package/lib/duet/{p-437fe50b.system.entry.js → p-97b88959.system.entry.js} +1 -1
  118. package/lib/duet/{p-76e38bb2.system.entry.js → p-97bbef5f.system.entry.js} +1 -1
  119. package/lib/duet/{p-97f1e254.entry.js → p-97d54e2d.entry.js} +1 -1
  120. package/lib/duet/{p-99fe93c6.system.entry.js → p-98cf83b0.system.entry.js} +1 -1
  121. package/lib/duet/{p-41cc3490.entry.js → p-9954eddc.entry.js} +1 -1
  122. package/lib/duet/{p-b8623ab8.entry.js → p-9d86935b.entry.js} +1 -1
  123. package/lib/duet/{p-4a7f290f.entry.js → p-a18f86a0.entry.js} +1 -1
  124. package/lib/duet/{p-071ebe1d.system.entry.js → p-a36592fe.system.entry.js} +1 -1
  125. package/lib/duet/{p-e7b761c5.system.js → p-a418cba4.system.js} +1 -1
  126. package/lib/duet/{p-68cbc3b7.entry.js → p-ac368fcb.entry.js} +1 -1
  127. package/lib/duet/{p-bf87d801.entry.js → p-af4aafea.entry.js} +1 -1
  128. package/lib/duet/{p-05e069d8.entry.js → p-b2a01d36.entry.js} +1 -1
  129. package/lib/duet/{p-30e901f2.system.entry.js → p-b2e25ecf.system.entry.js} +1 -1
  130. package/lib/duet/{p-542af014.system.js → p-b668b67c.system.js} +0 -0
  131. package/lib/duet/p-b708426c.entry.js +4 -0
  132. package/lib/duet/{p-c0aca70c.entry.js → p-b7a90031.entry.js} +1 -1
  133. package/lib/duet/{p-7a4764db.system.entry.js → p-bf052bc0.system.entry.js} +1 -1
  134. package/lib/duet/p-c21bd47a.js +5 -0
  135. package/lib/duet/{p-78de93b3.entry.js → p-c576c929.entry.js} +1 -1
  136. package/lib/duet/{p-53ad61ed.entry.js → p-c6e70db9.entry.js} +1 -1
  137. package/lib/duet/{p-10585f06.system.entry.js → p-cabfb664.system.entry.js} +1 -1
  138. package/lib/duet/{p-5f009925.system.entry.js → p-cd5ed901.system.entry.js} +1 -1
  139. package/lib/duet/{p-27d238c5.js → p-d4c234ed.js} +1 -1
  140. package/lib/duet/{p-641edb93.system.entry.js → p-d65262fb.system.entry.js} +1 -1
  141. package/lib/duet/{p-a509cc2b.system.entry.js → p-d698f01c.system.entry.js} +1 -1
  142. package/lib/duet/{p-3260eef0.entry.js → p-d7d0f3b7.entry.js} +1 -1
  143. package/lib/duet/{p-b08bb1fd.entry.js → p-dc1f4e8a.entry.js} +1 -1
  144. package/lib/duet/{p-afd34b6b.system.entry.js → p-df6ebe8d.system.entry.js} +1 -1
  145. package/lib/duet/p-dfa712ca.js +4 -0
  146. package/lib/duet/{p-b4ca3864.system.entry.js → p-eba2b43d.system.entry.js} +1 -1
  147. package/lib/duet/{p-24721182.system.entry.js → p-ec55c00f.system.entry.js} +1 -1
  148. package/lib/duet/{p-72739cec.entry.js → p-f3a98f22.entry.js} +1 -1
  149. package/lib/duet/{p-bb4d8e7b.entry.js → p-f9501a56.entry.js} +1 -1
  150. package/lib/duet/p-ff46ec81.system.js +16 -0
  151. package/lib/esm/{dom-3c479050.js → dom-3dbcb0d8.js} +1 -1
  152. package/lib/esm/duet-action-button.entry.js +1 -1
  153. package/lib/esm/duet-alert.entry.js +1 -1
  154. package/lib/esm/duet-badge.entry.js +1 -1
  155. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  156. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  157. package/lib/esm/duet-button_2.entry.js +1 -1
  158. package/lib/esm/duet-caption_4.entry.js +1 -1
  159. package/lib/esm/duet-card.entry.js +1 -1
  160. package/lib/esm/duet-checkbox.entry.js +1 -1
  161. package/lib/esm/duet-choice_2.entry.js +2 -2
  162. package/lib/esm/duet-collapsible.entry.js +1 -1
  163. package/lib/esm/duet-combobox.entry.js +1 -1
  164. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  165. package/lib/esm/duet-date-picker.entry.js +2 -2
  166. package/lib/esm/duet-divider_2.entry.js +1 -1
  167. package/lib/esm/duet-editable-table_3.entry.js +4 -3
  168. package/lib/esm/duet-empty-state.entry.js +1 -1
  169. package/lib/esm/duet-fieldset.entry.js +1 -1
  170. package/lib/esm/duet-footer.entry.js +1 -1
  171. package/lib/esm/duet-grid_2.entry.js +1 -1
  172. package/lib/esm/duet-header_2.entry.js +1 -1
  173. package/lib/esm/duet-hero.entry.js +1 -1
  174. package/lib/esm/duet-icon.entry.js +1 -1
  175. package/lib/esm/duet-input_2.entry.js +1 -1
  176. package/lib/esm/duet-layout.entry.js +1 -1
  177. package/lib/esm/duet-list_2.entry.js +1 -1
  178. package/lib/esm/duet-modal.entry.js +2 -2
  179. package/lib/esm/duet-notification_2.entry.js +1 -1
  180. package/lib/esm/duet-number-input.entry.js +92 -47
  181. package/lib/esm/duet-pagination_2.entry.js +1 -1
  182. package/lib/esm/duet-progress.entry.js +1 -1
  183. package/lib/esm/duet-radio_2.entry.js +1 -1
  184. package/lib/esm/duet-range-slider.entry.js +1 -1
  185. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  186. package/lib/esm/duet-select.entry.js +1 -1
  187. package/lib/esm/duet-step_2.entry.js +1 -1
  188. package/lib/esm/duet-textarea.entry.js +1 -1
  189. package/lib/esm/duet-toggle.entry.js +1 -1
  190. package/lib/esm/duet-tooltip.entry.js +1 -1
  191. package/lib/esm/duet-tray.entry.js +1 -1
  192. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  193. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  194. package/lib/esm/duet.js +3 -3
  195. package/lib/esm/{focus-utils-3af074ea.js → focus-utils-a1fd6cac.js} +1 -1
  196. package/lib/esm/{index-ab2bfa68.js → index-179c634c.js} +11 -9
  197. package/lib/esm/loader.js +2 -2
  198. package/lib/esm/polyfills/css-shim.js +1 -1
  199. package/lib/esm/{shadow-css-fbe49d20.js → shadow-css-501eda9a.js} +2 -3
  200. package/lib/esm-es5/{dom-3c479050.js → dom-3dbcb0d8.js} +0 -0
  201. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  202. package/lib/esm-es5/duet-alert.entry.js +1 -1
  203. package/lib/esm-es5/duet-badge.entry.js +1 -1
  204. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  205. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  206. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  207. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  208. package/lib/esm-es5/duet-card.entry.js +1 -1
  209. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  210. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  211. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  212. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  213. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  214. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  215. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  216. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  217. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  218. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  219. package/lib/esm-es5/duet-footer.entry.js +1 -1
  220. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  221. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  222. package/lib/esm-es5/duet-hero.entry.js +1 -1
  223. package/lib/esm-es5/duet-icon.entry.js +1 -1
  224. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  225. package/lib/esm-es5/duet-layout.entry.js +1 -1
  226. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  227. package/lib/esm-es5/duet-modal.entry.js +1 -1
  228. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  229. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  230. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  231. package/lib/esm-es5/duet-progress.entry.js +1 -1
  232. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  233. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  234. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  235. package/lib/esm-es5/duet-select.entry.js +1 -1
  236. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  237. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  238. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  239. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  240. package/lib/esm-es5/duet-tray.entry.js +1 -1
  241. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  242. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  243. package/lib/esm-es5/duet.js +1 -1
  244. package/lib/esm-es5/{focus-utils-3af074ea.js → focus-utils-a1fd6cac.js} +1 -1
  245. package/lib/esm-es5/index-179c634c.js +5 -0
  246. package/lib/esm-es5/loader.js +1 -1
  247. package/lib/esm-es5/shadow-css-501eda9a.js +15 -0
  248. package/lib/types/components/duet-number-input/duet-number-input.d.ts +0 -1
  249. package/lib/types/components.d.ts +192 -80
  250. package/lib/types/utils/math.utils.d.ts +11 -0
  251. package/package.json +6 -6
  252. package/lib/collection/components/duet-number-input/number-input-utils.js +0 -26
  253. package/lib/duet/p-12c89686.system.js +0 -4
  254. package/lib/duet/p-37dc064c.js +0 -4
  255. package/lib/duet/p-66536958.system.entry.js +0 -4
  256. package/lib/duet/p-92a25fb5.system.js +0 -16
  257. package/lib/duet/p-98a9556f.js +0 -4
  258. package/lib/duet/p-a76bf729.entry.js +0 -4
  259. package/lib/duet/p-b7462f8c.system.entry.js +0 -4
  260. package/lib/duet/p-cb8ebdd7.entry.js +0 -4
  261. package/lib/duet/p-fe99b9cb.entry.js +0 -4
  262. package/lib/esm-es5/index-ab2bfa68.js +0 -4
  263. package/lib/esm-es5/shadow-css-fbe49d20.js +0 -15
  264. package/lib/types/components/duet-number-input/number-input-utils.d.ts +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h, r as registerInstance, c as createEvent$1, F as Fragment, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { h, r as registerInstance, c as createEvent$1, F as Fragment, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { f as formSearch } from './form-search-ea8e19ae.js';
6
6
  import { m as media_query_large } from './tokens-8ff8c570.js';
7
7
  import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-179c634c.js';
5
5
  import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
6
6
  import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
7
7
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { g as getColorByName } from './token-utils-1f9435bc.js';
7
7
  import './tokens.module-f4572ed7.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { f as formSearch } from './form-search-ea8e19ae.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
6
6
 
7
7
  const duetLayoutCss = "*,*::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:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement, H as Host } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { w as watchForOptions } from './watch-options-dd55bce8.js';
7
7
 
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-179c634c.js';
5
5
  import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
8
- import { f as focusElement, F as FocusGuard } from './focus-utils-3af074ea.js';
8
+ import { f as focusElement, F as FocusGuard } from './focus-utils-a1fd6cac.js';
9
9
  import { f as isEscapeKey } from './keyboard-utils-88ea1007.js';
10
10
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
11
11
  import './string-utils-5954f458.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
7
7
  import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { a as isArrowRightKey, b as isArrowUpKey, c as isArrowDownKey, d as isArrowLeftKey, e as isBackspaceKey } from './keyboard-utils-88ea1007.js';
@@ -12,27 +12,77 @@ var actionAdd={"title":"action-add","tags":"action add plus","svg":"<svg fill=\"
12
12
 
13
13
  var actionSubtract={"title":"action-subtract","tags":"action subtract minus remove delete cancel","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z\"/></svg>"};
14
14
 
15
- const parseLocaleFloat = (str, locale) => {
16
- // remove spaces and non-numeric characters
17
- // "12 345,67€" -> "12345,67"
18
- // "12,345.67€" -> "12,345.67"
19
- str = str.replace(/\s+/g, "").replace(/[^0-9\.,]+/g, "");
20
- switch (locale) {
21
- case "fi-FI":
22
- case "sv-SE":
23
- // "12345,67" -> "12345.67"
24
- str = str.replace(",", ".");
25
- break;
26
- case "en-US":
27
- case "en-GB":
28
- // "12,345.67" -> "12345.67"
29
- str = str.replace(/,/g, "");
30
- break;
31
- default:
32
- throw new TypeError(`Unrecognised locale: ${locale}`);
15
+ /**
16
+ * function that takes a string value or number and looks for any character resembling a minus,
17
+ * it will then replace it with a hypen-minus and return the parseFloat value of that string
18
+ * it will string / number cast the value to a number and return that number
19
+ * known issues: if a negative number is indicated with other characters than a "minus like" character, it will throw
20
+ * - an example is that some locales use (number) as an indicator for negative values instead of -number
21
+ */
22
+ function SafeParseFloat(value, locale) {
23
+ let results;
24
+ if (typeof value === "string") {
25
+ //the minuses are NOT the same characters, they differ in unicode for some languages
26
+ // "", "−", "–", and "—"
27
+ let convertedMinus = value.replace("−", "-").replace("‐", "-").replace("−", "-").replace("–", "-").replace("—", "-");
28
+ if (locale) {
29
+ convertedMinus = ConvertToEnUS(convertedMinus, locale, false);
30
+ }
31
+ // replace all possible spaces from the string
32
+ convertedMinus = convertedMinus.replace(/\s+/g, "");
33
+ convertedMinus = convertedMinus.replace(/(?!^-?\d*\.{0,1}\d+$)/g, "");
34
+ /*
35
+ example: https://regex101.com/r/np7FqS/1
36
+ /(?!^-?\d*\.{0,1}\d+$)/g
37
+ Negative Lookahead (?!^-?\d*\.{0,1}\d+$)
38
+ Assert that the Regex below does not match
39
+ ^ asserts position at start of a line
40
+ - matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
41
+ ? matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
42
+ \d matches a digit (equivalent to [0-9])
43
+ * matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
44
+ \. matches the character . with index 4610 (2E16 or 568) literally (case sensitive)
45
+ {0,1} matches the previous token between zero and one times, as many times as possible, giving back as needed (greedy)
46
+ \d matches a digit (equivalent to [0-9])
47
+ + matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
48
+ $ asserts position at the end of a line
49
+ Global pattern flags
50
+ g modifier: global. All matches (don't return after first match)
51
+ m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)
52
+ */
53
+ results = parseFloat(convertedMinus);
33
54
  }
34
- return parseFloat(str);
35
- };
55
+ if (typeof value === "number") {
56
+ results = parseFloat(String(value));
57
+ }
58
+ if (!isNaN(Number(results))) {
59
+ return Number(results);
60
+ }
61
+ if (value === null || value === undefined) {
62
+ return null;
63
+ }
64
+ throw new Error("Invalid value passed to SafeParseFloat");
65
+ }
66
+ // string conversion function that takes a locale and coverts decimal indicator to en-US indicator
67
+ // and takes the thousand separator for the given locale and transforms that to the en-US separator
68
+ function ConvertToEnUS(value, locale, replaceThousands = false) {
69
+ let replacedValue;
70
+ const localeSeparator = new Intl.NumberFormat(locale).format(1 / 2).replace(/[0-9]/g, "");
71
+ const enUSSeparator = new Intl.NumberFormat("en-US").format(1 / 2).replace(/[0-9]/g, "");
72
+ const thousandSeparator = new Intl.NumberFormat(locale).format(1000).replace(/[0-9]/g, "");
73
+ const enUSThousandSeparator = new Intl.NumberFormat("en-US").format(1000).replace(/[0-9]/g, "");
74
+ // double conversions to avoid ,->. and .->, at the same time resulting in a double conversion
75
+ replacedValue = value.replace(localeSeparator, "DECIMALSEPARATOR");
76
+ if (replaceThousands) {
77
+ replacedValue = replacedValue.replace(thousandSeparator, "THOUSANDSEPARATOR");
78
+ }
79
+ else {
80
+ replacedValue = replacedValue.replace(thousandSeparator, "");
81
+ }
82
+ replacedValue = replacedValue.replace("DECIMALSEPARATOR", enUSSeparator);
83
+ replacedValue = replacedValue.replace("THOUSANDSEPARATOR", enUSThousandSeparator);
84
+ return replacedValue;
85
+ }
36
86
  const roundTo = (val, multiple) => Math.round(val / multiple) * multiple;
37
87
  const clamp = (val, min, max) => Math.min(Math.max(val, min), max);
38
88
 
@@ -208,7 +258,7 @@ const DuetNumberInput = class {
208
258
  this.handleChange = (ev) => {
209
259
  const input = ev.target;
210
260
  if (input && input.value) {
211
- let value = this.cleanValue(input.value);
261
+ let value = SafeParseFloat(input.value, this.locale);
212
262
  // Make sure that everything works if the user clears the input and
213
263
  // starts typing non-numeric characters.
214
264
  if (isNaN(value) || value == null) {
@@ -218,7 +268,7 @@ const DuetNumberInput = class {
218
268
  this.duetInput.emit({
219
269
  component: "duet-number-input",
220
270
  originalEvent: ev,
221
- value: this.cleanValue(this.value).toString(),
271
+ value: SafeParseFloat(this.value, this.locale).toString(),
222
272
  valueAsNumber: value,
223
273
  });
224
274
  }
@@ -239,30 +289,29 @@ const DuetNumberInput = class {
239
289
  if (input.value) {
240
290
  // On blur we want to make sure that the user input is between the min and max values,
241
291
  // and also round it up or down to the nearest step.
242
- let value = this.cleanValue(input.value);
292
+ let value = SafeParseFloat(input.value, this.locale);
243
293
  if (this.rounding) {
244
294
  value = roundTo(value, this.step);
245
295
  }
246
296
  value = clamp(value, this.min, this.max);
247
- if (value !== this.cleanValue(this.value) || value !== this.cleanValue(this.focusedValue)) {
297
+ if (value !== SafeParseFloat(this.value, this.locale) ||
298
+ value !== SafeParseFloat(this.focusedValue, this.locale)) {
248
299
  this.setValue(value);
249
300
  this.emitChange(ev);
250
301
  }
251
302
  }
252
- else {
253
- this.duetChange.emit({
254
- originalEvent: ev,
255
- value: null,
256
- valueAsNumber: null,
257
- component: "duet-number-input",
258
- });
259
- }
303
+ this.duetChange.emit({
304
+ originalEvent: ev,
305
+ value: null,
306
+ valueAsNumber: null,
307
+ component: "duet-number-input",
308
+ });
260
309
  };
261
310
  /**
262
311
  * Local methods.
263
312
  */
264
313
  this.emitChange = (ev) => {
265
- const currentValue = this.cleanValue(this.value);
314
+ const currentValue = SafeParseFloat(this.value, this.locale);
266
315
  this.duetChange.emit({
267
316
  originalEvent: ev,
268
317
  value: currentValue.toString(),
@@ -270,10 +319,6 @@ const DuetNumberInput = class {
270
319
  component: "duet-number-input",
271
320
  });
272
321
  };
273
- this.cleanValue = (value) => {
274
- // Returns a number that can be used in calculations.
275
- return value ? parseLocaleFloat(value, this.locale) : null;
276
- };
277
322
  this.localizeValue = (value) => {
278
323
  // Returns a localized string that can be used as input value.
279
324
  return value.toLocaleString(this.locale);
@@ -290,13 +335,13 @@ const DuetNumberInput = class {
290
335
  if (ev) {
291
336
  ev.preventDefault();
292
337
  }
293
- const currentValue = this.cleanValue(this.value);
338
+ const cleanedValue = SafeParseFloat(this.value, this.locale);
294
339
  // Only fire change event when necessary
295
- if (currentValue === this.max) {
340
+ if (cleanedValue === this.max) {
296
341
  return;
297
342
  }
298
343
  // in cases where no value set, incrementing should go to min
299
- let newValue = currentValue == null ? this.min : currentValue + this.step;
344
+ let newValue = cleanedValue == null ? this.min : cleanedValue + this.step;
300
345
  // handle cases where value is not multiple of step
301
346
  // e.g. if someone enters 199, with a step of 100, add should go to 200
302
347
  // and if someone enters 101, add should also go to 200
@@ -304,8 +349,8 @@ const DuetNumberInput = class {
304
349
  const adjustment = newValue % this.step;
305
350
  newValue -= adjustment;
306
351
  }
307
- newValue = clamp(newValue, this.min, this.max);
308
- this.value = this.localizeValue(newValue);
352
+ const clampedValue = clamp(newValue, this.min, this.max);
353
+ this.value = this.localizeValue(clampedValue);
309
354
  this.emitChange(ev);
310
355
  };
311
356
  this.subtract = (ev) => {
@@ -314,7 +359,7 @@ const DuetNumberInput = class {
314
359
  if (ev) {
315
360
  ev.preventDefault();
316
361
  }
317
- const currentValue = this.cleanValue(this.value);
362
+ const currentValue = SafeParseFloat(this.value, this.locale);
318
363
  // Only fire change event when necessary.
319
364
  if (currentValue === this.min) {
320
365
  return;
@@ -339,7 +384,7 @@ const DuetNumberInput = class {
339
384
  inheritGlobalTheme(this);
340
385
  // Format the number value to a localeString initially.
341
386
  if (this.value) {
342
- this.value = this.localizeValue(parseLocaleFloat(this.value, this.locale));
387
+ this.value = this.localizeValue(SafeParseFloat(this.value, this.locale));
343
388
  }
344
389
  }
345
390
  /**
@@ -354,7 +399,7 @@ const DuetNumberInput = class {
354
399
  this.duetInputElement.value = "";
355
400
  }
356
401
  formatAnnouncement() {
357
- const current = this.cleanValue(this.value);
402
+ const current = SafeParseFloat(this.value, this.locale);
358
403
  if (current == null) {
359
404
  return "";
360
405
  }
@@ -367,7 +412,7 @@ const DuetNumberInput = class {
367
412
  render() {
368
413
  const identifier = this.identifier || this.inputId;
369
414
  const maxlength = `${this.localizeValue(this.max)} ${this.unit}`.length;
370
- const cleanedValue = this.cleanValue(this.value);
415
+ const cleanedValue = SafeParseFloat(this.value, this.locale);
371
416
  return (h(Host, { class: {
372
417
  "duet-theme-turva": this.theme === "turva",
373
418
  "duet-expand": this.expand,
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { d as debounce } from './js-utils-52e0944c.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-f4572ed7.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { p as parsePossibleJSON } from './string-utils-5954f458.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { c as cleanValue } from './input-utils-de45e099.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-179c634c.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, g as getElement } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, F as Fragment, g as getElement } from './index-179c634c.js';
5
5
  import { s as sizeHeader } from './tokens.module-f4572ed7.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, H as Host } from './index-179c634c.js';
5
5
 
6
6
  const DuetUploadAriaStatus = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-ab2bfa68.js';
4
+ import { r as registerInstance, h, H as Host } from './index-179c634c.js';
5
5
 
6
6
  const duetVisuallyHiddenCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";
7
7
 
package/lib/esm/duet.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-ab2bfa68.js';
4
+ import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-179c634c.js';
5
5
  import { g as globalScripts } from './app-globals-6641e444.js';
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v2.15.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v2.16.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
11
11
  const patchBrowser = () => {
@@ -36,7 +36,7 @@ const patchBrowser = () => {
36
36
  if (!win.customElements) {
37
37
  // module support, but no custom elements support (Old Edge)
38
38
  // @ts-ignore
39
- return import(/* webpackChunkName: "polyfills-dom" */ './dom-3c479050.js').then(() => opts);
39
+ return import(/* webpackChunkName: "polyfills-dom" */ './dom-3dbcb0d8.js').then(() => opts);
40
40
  }
41
41
  }
42
42
  return promiseResolve(opts);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h } from './index-ab2bfa68.js';
4
+ import { h } from './index-179c634c.js';
5
5
 
6
6
  const focusElement = (element) => {
7
7
  if ("setFocus" in element) {
@@ -2,7 +2,7 @@
2
2
  * Built with Duet Design System
3
3
  */
4
4
  const NAMESPACE = 'duet';
5
- const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"2.3.9"};
5
+ const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"2.3.10"};
6
6
 
7
7
  let scopeId;
8
8
  let contentRef;
@@ -110,7 +110,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
110
110
  };
111
111
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
112
112
  let scopeId = getScopeId(cmpMeta);
113
- let style = styles.get(scopeId);
113
+ const style = styles.get(scopeId);
114
114
  // if an element is NOT connected then getRootNode() will return the wrong root node
115
115
  // so the fallback is to always use the document for the root node in those cases
116
116
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -206,7 +206,7 @@ const h = (nodeName, vnodeData, ...children) => {
206
206
  let slotName = null;
207
207
  let simple = false;
208
208
  let lastSimple = false;
209
- let vNodeChildren = [];
209
+ const vNodeChildren = [];
210
210
  const walk = (c) => {
211
211
  for (let i = 0; i < c.length; i++) {
212
212
  child = c[i];
@@ -415,7 +415,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
415
415
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
416
416
  try {
417
417
  if (!elm.tagName.includes('-')) {
418
- let n = newValue == null ? '' : newValue;
418
+ const n = newValue == null ? '' : newValue;
419
419
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
420
420
  if (memberName === 'list') {
421
421
  isProp = false;
@@ -492,7 +492,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
492
492
  };
493
493
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
494
494
  // tslint:disable-next-line: prefer-const
495
- let newVNode = newParentVNode.$children$[childIndex];
495
+ const newVNode = newParentVNode.$children$[childIndex];
496
496
  let i = 0;
497
497
  let elm;
498
498
  let childNode;
@@ -825,7 +825,7 @@ const patch = (oldVNode, newVNode) => {
825
825
  };
826
826
  const updateFallbackSlotVisibility = (elm) => {
827
827
  // tslint:disable-next-line: prefer-const
828
- let childNodes = elm.childNodes;
828
+ const childNodes = elm.childNodes;
829
829
  let childNode;
830
830
  let i;
831
831
  let ilen;
@@ -878,8 +878,8 @@ const relocateSlotContent = (elm) => {
878
878
  let relocateNodeData;
879
879
  let j;
880
880
  let i = 0;
881
- let childNodes = elm.childNodes;
882
- let ilen = childNodes.length;
881
+ const childNodes = elm.childNodes;
882
+ const ilen = childNodes.length;
883
883
  for (; i < ilen; i++) {
884
884
  childNode = childNodes[i];
885
885
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
@@ -1724,7 +1724,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1724
1724
  if (!styles.has(scopeId)) {
1725
1725
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1726
1726
  if (cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
1727
- style = await import('./shadow-css-fbe49d20.js').then((m) => m.scopeCss(style, scopeId, false));
1727
+ style = await import('./shadow-css-501eda9a.js').then((m) => m.scopeCss(style, scopeId, false));
1728
1728
  }
1729
1729
  registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1730
1730
  endRegisterStyles();
@@ -2046,7 +2046,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2046
2046
  if (module) {
2047
2047
  return module[exportName];
2048
2048
  }
2049
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
2049
2050
  return import(
2051
+ /* @vite-ignore */
2050
2052
  /* webpackInclude: /\.entry\.js$/ */
2051
2053
  /* webpackExclude: /\.system\.entry\.js$/ */
2052
2054
  /* webpackMode: "lazy" */
package/lib/esm/loader.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { p as promiseResolve, b as bootstrapLazy } from './index-ab2bfa68.js';
4
+ import { p as promiseResolve, b as bootstrapLazy } from './index-179c634c.js';
5
5
  import { g as globalScripts } from './app-globals-6641e444.js';
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.15.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.16.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return promiseResolve();