@luzmo/lucero 1.0.1-alpha.17 → 1.0.1-alpha.19

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 (277) hide show
  1. package/components/NumberFormatter-DewVDY5w.cjs +18 -0
  2. package/components/NumberFormatter-DgOUVrge.js +136 -0
  3. package/components/NumberParser-Dik4a0h-.cjs +18 -0
  4. package/components/NumberParser-ci9J5EKv.js +173 -0
  5. package/components/accordion/index.cjs +6 -183
  6. package/components/accordion/index.js +88 -136
  7. package/components/action-bar/index.cjs +4 -85
  8. package/components/action-bar/index.js +50 -72
  9. package/components/action-button/index.cjs +3 -205
  10. package/components/action-button/index.js +93 -167
  11. package/components/action-group/index.cjs +1 -7
  12. package/components/action-group/index.js +8 -12
  13. package/components/action-group-C54IxNZk.cjs +20 -0
  14. package/components/action-group-C9dsPJg-.js +258 -0
  15. package/components/action-menu/index.cjs +11 -91
  16. package/components/action-menu/index.js +47 -66
  17. package/components/async-directive-BwIAw5tB.js +82 -0
  18. package/components/async-directive-DLz6JB0v.cjs +22 -0
  19. package/components/avatar/index.cjs +3 -63
  20. package/components/avatar/index.js +42 -54
  21. package/components/{focusable-selectors-D0t_5P7C.cjs → base-BjTwmyRF.cjs} +5 -16
  22. package/components/base-CFWO09N1.js +684 -0
  23. package/components/base-Cy0MQrPT.cjs +40 -0
  24. package/components/base-D76d76ww.js +26 -0
  25. package/components/button/index.cjs +2 -134
  26. package/components/button/index.js +72 -106
  27. package/components/button-base-B8bWcklV.js +144 -0
  28. package/components/button-base-tf95Lyl4.cjs +25 -0
  29. package/components/button-group/index.cjs +1 -45
  30. package/components/button-group/index.js +25 -37
  31. package/components/calendar/index.cjs +1 -632
  32. package/components/calendar/index.js +7 -637
  33. package/components/checkbox/index.cjs +4 -111
  34. package/components/checkbox/index.js +53 -98
  35. package/components/checkbox-mixin-BOTvuPEu.js +70 -0
  36. package/components/checkbox-mixin-BVPpXtsq.cjs +27 -0
  37. package/components/class-map-CGfNk3Ee.js +51 -0
  38. package/components/class-map-D-Y-hsN5.cjs +22 -0
  39. package/components/clear-button-CuPbWwZY.cjs +18 -0
  40. package/components/clear-button-DzZ5ulBW.js +53 -0
  41. package/components/close-button-BTo4yrFR.cjs +18 -0
  42. package/components/close-button-CuQdsez5.js +51 -0
  43. package/components/color-area/index.cjs +13 -440
  44. package/components/color-area/index.js +187 -322
  45. package/components/color-controller-B0uX6Zso.js +3230 -0
  46. package/components/color-controller-CoUL5f9K.cjs +18 -0
  47. package/components/color-field/index.cjs +2 -95
  48. package/components/color-field/index.js +41 -77
  49. package/components/color-handle/index.cjs +3 -64
  50. package/components/color-handle/index.js +37 -58
  51. package/components/color-loupe/index.cjs +1 -7
  52. package/components/color-loupe/index.js +8 -12
  53. package/components/color-loupe-CrM2DVY3.cjs +56 -0
  54. package/components/color-loupe-DmQe3SpP.js +81 -0
  55. package/components/color-menu/index.cjs +12 -217
  56. package/components/color-menu/index.js +93 -187
  57. package/components/color-palette/index.cjs +1 -89
  58. package/components/color-palette/index.js +51 -78
  59. package/components/color-palette-group/index.cjs +3 -259
  60. package/components/color-palette-group/index.js +105 -193
  61. package/components/color-picker/index.cjs +6 -114
  62. package/components/color-picker/index.js +72 -92
  63. package/components/color-slider/index.cjs +1 -585
  64. package/components/color-slider/index.js +7 -590
  65. package/components/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
  66. package/components/condition-attribute-with-id-Dv4lSRbe.js +31 -0
  67. package/components/date-time-picker/index.cjs +31 -1357
  68. package/components/date-time-picker/index.js +637 -951
  69. package/components/{dependency-manger-XHpQjFgK.js → dependency-manger-CO-VPlqq.js} +14 -24
  70. package/components/dependency-manger-uthev62E.cjs +18 -0
  71. package/components/directive-C7oCP5Bh.cjs +22 -0
  72. package/components/directive-helpers-D4KMv2dC.js +62 -0
  73. package/components/directive-helpers-t-TVum7J.cjs +22 -0
  74. package/components/{slottable-request-event-CANixJnR.cjs → directive-oAbCiebi.js} +25 -14
  75. package/components/divider/index.cjs +1 -54
  76. package/components/divider/index.js +30 -49
  77. package/components/divider.module-DDvBo9zo.cjs +18 -0
  78. package/components/divider.module-DoQWQEIJ.js +21 -0
  79. package/components/element-resolution-BvRLGqIU.cjs +18 -0
  80. package/components/element-resolution-FCUT-wql.js +91 -0
  81. package/components/field-group/index.cjs +1 -7
  82. package/components/field-group/index.js +8 -12
  83. package/components/field-group-5WQMBOk4.cjs +23 -0
  84. package/components/field-group-D4B0IOdA.js +66 -0
  85. package/components/field-label/index.cjs +1 -7
  86. package/components/field-label/index.js +8 -12
  87. package/components/field-label-DxmPiC5p.js +106 -0
  88. package/components/field-label-Dz9kisdW.cjs +25 -0
  89. package/components/flow-D-0MTYCm.js +527 -0
  90. package/components/flow-DM3dNAKs.cjs +30 -0
  91. package/components/focus-group-DHeTq18L.js +218 -0
  92. package/components/focus-group-DnxZUBhQ.cjs +18 -0
  93. package/components/focus-visible-BvScGDCE.js +74 -0
  94. package/components/focus-visible-D4BXb5RB.cjs +18 -0
  95. package/components/focusable-B_KwfEec.cjs +18 -0
  96. package/components/focusable-C5JjRZmT.js +153 -0
  97. package/components/{focusable-selectors-IltOAOd9.js → focusable-selectors-B4YgbghQ.js} +4 -7
  98. package/components/focusable-selectors-BgFlyFcY.cjs +18 -0
  99. package/components/icon/index.cjs +1 -90
  100. package/components/icon/index.js +46 -74
  101. package/components/if-defined-DULpqYwi.js +27 -0
  102. package/components/if-defined-DaXWqfzc.cjs +22 -0
  103. package/components/index-CNK8wHXu.cjs +57 -0
  104. package/components/index-Cf6G4q52.js +1490 -0
  105. package/components/index-D3ICqC7S.js +1174 -0
  106. package/components/index-hqVbNKYy.cjs +113 -0
  107. package/components/index.cjs +1 -174
  108. package/components/index.js +172 -174
  109. package/components/infield-button/index.cjs +2 -46
  110. package/components/infield-button/index.js +30 -41
  111. package/components/label/index.cjs +1 -37
  112. package/components/label/index.js +24 -36
  113. package/components/{language-resolution-BSGJAWiQ.js → language-resolution-B-wjV5bb.js} +17 -21
  114. package/components/language-resolution-EUER43cg.cjs +18 -0
  115. package/components/like-anchor-Bu3pXbjT.cjs +32 -0
  116. package/components/like-anchor-DCFJN0LV.js +69 -0
  117. package/components/luzmo-icons-CiSek5iM.js +229 -0
  118. package/components/luzmo-icons-CtA-TJPd.cjs +29 -0
  119. package/components/manage-help-text-CHfMLzSa.js +92 -0
  120. package/components/manage-help-text-DNqdEkTA.cjs +30 -0
  121. package/components/menu/index.cjs +29 -1297
  122. package/components/menu/index.js +499 -954
  123. package/components/multi-language-field/index.cjs +2 -132
  124. package/components/multi-language-field/index.js +88 -118
  125. package/components/mutation-controller-DH7YOCyj.js +52 -0
  126. package/components/mutation-controller-DkOMCW-c.cjs +22 -0
  127. package/components/number-field/index.cjs +10 -613
  128. package/components/number-field/index.js +243 -442
  129. package/components/observe-slot-presence-CmVi0zTc.js +68 -0
  130. package/components/observe-slot-presence-bc9chhsi.cjs +18 -0
  131. package/components/observe-slot-text-C3moTjwy.js +87 -0
  132. package/components/observe-slot-text-D2VAEFSd.cjs +18 -0
  133. package/components/options/index.cjs +60 -693
  134. package/components/options/index.js +953 -519
  135. package/components/overlay/index.cjs +21 -367
  136. package/components/overlay/index.js +189 -273
  137. package/components/overlay-B3ajDLLq.cjs +47 -0
  138. package/components/overlay-CUKs69yr.js +2745 -0
  139. package/components/{pending-state-CXbe-Xul.js → pending-state-B2wWssTo.js} +13 -28
  140. package/components/pending-state-bJr-nEJl.cjs +26 -0
  141. package/components/picker/index.cjs +1 -9
  142. package/components/picker/index.js +11 -15
  143. package/components/picker-C0LvseZe.cjs +123 -0
  144. package/components/picker-W1qNmtsh.js +461 -0
  145. package/components/picker-button/index.cjs +4 -56
  146. package/components/picker-button/index.js +34 -45
  147. package/components/{condition-attribute-with-id-Cn815e9W.js → platform-BM-uMWpX.js} +49 -24
  148. package/components/platform-BiXhwqk3.cjs +18 -0
  149. package/components/popover/index.cjs +1 -7
  150. package/components/popover/index.js +8 -12
  151. package/components/popover-fwJeZHMQ.cjs +30 -0
  152. package/components/popover-iD8f5Jkp.js +67 -0
  153. package/components/progress-circle/index.cjs +1 -7
  154. package/components/progress-circle/index.js +8 -12
  155. package/components/progress-circle-DZxaMe8L.cjs +33 -0
  156. package/components/progress-circle-USIIU1up.js +97 -0
  157. package/components/query-BL-TJj7K.cjs +22 -0
  158. package/components/query-D_KR_GUc.js +51 -0
  159. package/components/query-assigned-elements-DjfhL1cl.js +36 -0
  160. package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
  161. package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
  162. package/components/query-assigned-nodes-C76XVPWY.js +36 -0
  163. package/components/radio/index.cjs +2 -244
  164. package/components/radio/index.js +110 -192
  165. package/components/{random-id-BEc6QIUL.js → random-id-ByCz1xaq.js} +3 -3
  166. package/components/random-id-CqvckpWe.cjs +18 -0
  167. package/components/roving-tabindex-By_fCy_e.cjs +18 -0
  168. package/components/roving-tabindex-DOg4z6ZU.js +66 -0
  169. package/components/search/index.cjs +8 -115
  170. package/components/search/index.js +66 -96
  171. package/components/select/index.cjs +51 -720
  172. package/components/select/index.js +347 -563
  173. package/components/sized-mixin-CJbBHWRQ.js +63 -0
  174. package/components/sized-mixin-WPHH0a_D.cjs +18 -0
  175. package/components/slider/index.cjs +1 -119
  176. package/components/slider/index.js +1113 -100
  177. package/components/slottable-request-event-BfUUt1Mh.cjs +18 -0
  178. package/components/{slottable-request-event-D9WzrdWv.js → slottable-request-event-DggLA4Rx.js} +9 -12
  179. package/components/state-DwIwYPvt.js +29 -0
  180. package/components/state-vf0PJN3_.cjs +22 -0
  181. package/components/strategies-C6HsQpU2.cjs +18 -0
  182. package/components/strategies-CUMLHtQI.js +195 -0
  183. package/components/streaming-listener-BQ68fKMa.js +91 -0
  184. package/components/streaming-listener-DeGQYM-9.cjs +18 -0
  185. package/components/style-map-Bnhf_mVZ.js +53 -0
  186. package/components/style-map-DuMd5xlY.cjs +22 -0
  187. package/components/swatch/index.cjs +7 -436
  188. package/components/swatch/index.js +205 -350
  189. package/components/switch/index.cjs +2 -61
  190. package/components/switch/index.js +34 -51
  191. package/components/tabs/index.cjs +26 -693
  192. package/components/tabs/index.js +388 -521
  193. package/components/tags/index.cjs +4 -201
  194. package/components/tags/index.js +87 -152
  195. package/components/text-field/index.cjs +3 -49
  196. package/components/text-field/index.js +30 -44
  197. package/components/text-field-BkFPYo7S.cjs +85 -0
  198. package/components/text-field-C2n3rzCK.js +314 -0
  199. package/components/text-field.module-C2KVUJcX.js +21 -0
  200. package/components/text-field.module-DXhFA9G-.cjs +18 -0
  201. package/components/toast/index.cjs +12 -177
  202. package/components/toast/index.js +73 -145
  203. package/components/tooltip/index.cjs +6 -221
  204. package/components/tooltip/index.js +131 -155
  205. package/components/tooltip/tooltip.d.ts +12 -1
  206. package/components/unit-input/index.cjs +8 -232
  207. package/components/unit-input/index.js +108 -201
  208. package/components/utils.cjs +1 -25
  209. package/components/utils.js +22 -22
  210. package/components/{random-id-BE6HA503.cjs → when-CDK1Tt5Y.js} +10 -7
  211. package/components/when-CDZyJPvd.cjs +22 -0
  212. package/custom-elements.json +1 -1
  213. package/package.json +1 -1
  214. package/components/action-group-DHp8RHDf.js +0 -392
  215. package/components/action-group-MPf19RPV.cjs +0 -391
  216. package/components/base-COw9n7UR.cjs +0 -119
  217. package/components/base-DmeVy0cq.js +0 -120
  218. package/components/button-base-7Ak55xFd.cjs +0 -206
  219. package/components/button-base-C3kf6BTK.js +0 -207
  220. package/components/checkbox-mixin-8cL-vfDy.js +0 -84
  221. package/components/checkbox-mixin-CE7dJj3J.cjs +0 -83
  222. package/components/clear-button-Co6oKSgl.js +0 -59
  223. package/components/clear-button-X_HDY2eH.cjs +0 -58
  224. package/components/close-button-DPBK6Kpu.cjs +0 -59
  225. package/components/close-button-Miw9ZjoJ.js +0 -60
  226. package/components/color-controller-BjDZaxhX.js +0 -491
  227. package/components/color-controller-C3c_vb2P.cjs +0 -490
  228. package/components/color-loupe-BQqNR8YD.cjs +0 -88
  229. package/components/color-loupe-B_DDFv8l.js +0 -89
  230. package/components/condition-attribute-with-id-DEc2Yjne.cjs +0 -43
  231. package/components/dependency-manger-CcIE1uvQ.cjs +0 -63
  232. package/components/divider.module-Cm5LcDRV.cjs +0 -20
  233. package/components/divider.module-DauH6k2_.js +0 -21
  234. package/components/element-resolution-DCsrhGZO.cjs +0 -112
  235. package/components/element-resolution-nMlmW4Jy.js +0 -113
  236. package/components/field-group-DNmY8W9v.cjs +0 -86
  237. package/components/field-group-DVdAWCQF.js +0 -87
  238. package/components/field-label-CKH9EXpR.cjs +0 -156
  239. package/components/field-label-Dpsecoc6.js +0 -157
  240. package/components/focus-group-BqDAk9Is.js +0 -337
  241. package/components/focus-group-DFzOlalL.cjs +0 -336
  242. package/components/focus-visible-B-B8-P9R.cjs +0 -104
  243. package/components/focus-visible-BUPRWlsh.js +0 -105
  244. package/components/focusable-BPrTcZPd.cjs +0 -262
  245. package/components/focusable-ChCLg1k4.js +0 -263
  246. package/components/language-resolution-iN9EImbb.cjs +0 -57
  247. package/components/like-anchor-D62faRNG.cjs +0 -79
  248. package/components/like-anchor-v3cJ9RWM.js +0 -80
  249. package/components/manage-help-text-BYx84zZR.cjs +0 -125
  250. package/components/manage-help-text-DOuMTGht.js +0 -126
  251. package/components/observe-slot-presence-9AwLGUQ_.cjs +0 -78
  252. package/components/observe-slot-presence-DcMdoumP.js +0 -79
  253. package/components/observe-slot-text-CSofZeeF.cjs +0 -104
  254. package/components/observe-slot-text-CjnkkBPn.js +0 -105
  255. package/components/overlay-CN8ISP1F.js +0 -2485
  256. package/components/overlay-LViy9VWM.cjs +0 -2484
  257. package/components/pending-state-e4RbXe9u.cjs +0 -75
  258. package/components/picker-DNde3awt.cjs +0 -672
  259. package/components/picker-PfUAF05y.js +0 -673
  260. package/components/platform-CxDar3Dn.cjs +0 -68
  261. package/components/platform-Cxn0WbyT.js +0 -69
  262. package/components/popover-BkbYhl3i.js +0 -74
  263. package/components/popover-BkgUf0kL.cjs +0 -74
  264. package/components/progress-circle-Hu_ivPHf.js +0 -133
  265. package/components/progress-circle-_Etqsj9f.cjs +0 -132
  266. package/components/roving-tabindex-AsmAh2In.cjs +0 -95
  267. package/components/roving-tabindex-DPF9NmrH.js +0 -96
  268. package/components/sized-mixin-DmkrNdWB.js +0 -80
  269. package/components/sized-mixin-UaTVa-AE.cjs +0 -79
  270. package/components/strategies-DlMlaSJR.cjs +0 -317
  271. package/components/strategies-DlPQoTFE.js +0 -318
  272. package/components/streaming-listener-D4sHaMub.cjs +0 -145
  273. package/components/streaming-listener-cAz5zJyk.js +0 -146
  274. package/components/text-field-11tcnftU.cjs +0 -338
  275. package/components/text-field-Chi9J2Cz.js +0 -339
  276. package/components/text-field.module-CMBS0jSL.js +0 -21
  277. package/components/text-field.module-DIJdV_sA.cjs +0 -20
@@ -15,50 +15,34 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- const initializeGlobalLuzmoCSSVariables = () => {
19
- if (typeof document !== "undefined" && !document.querySelector("style[data-luzmo-vars]")) {
20
- const styleElement = document.createElement("style");
21
- styleElement.setAttribute("data-luzmo-vars", "");
22
- styleElement.textContent = `html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}`;
23
- document.head.appendChild(styleElement);
18
+ import { T as z, R as v } from "../luzmo-icons-CiSek5iM.js";
19
+ import { x as u, r as m, n as l, a as w } from "../base-CFWO09N1.js";
20
+ import { o as x } from "../if-defined-DULpqYwi.js";
21
+ import { n as b } from "../when-CDK1Tt5Y.js";
22
+ import { F as y } from "../focusable-C5JjRZmT.js";
23
+ import { S as p } from "../sized-mixin-CJbBHWRQ.js";
24
+ import { s as k } from "../mutation-controller-DH7YOCyj.js";
25
+ import { o as S } from "../query-assigned-elements-DjfhL1cl.js";
26
+ import { R as C } from "../roving-tabindex-DOg4z6ZU.js";
27
+ const g = () => {
28
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
+ const c = document.createElement("style");
30
+ c.setAttribute("data-luzmo-vars", ""), c.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(c);
24
31
  }
25
32
  };
26
- initializeGlobalLuzmoCSSVariables();
27
- import { luzmoIcon, luzmoDash } from "@luzmo/icons";
28
- import { html, unsafeCSS } from "lit";
29
- import { property, queryAssignedElements } from "lit/decorators.js";
30
- import { ifDefined } from "lit/directives/if-defined.js";
31
- import { when } from "lit/directives/when.js";
32
- import { F as Focusable } from "../focusable-ChCLg1k4.js";
33
- import { S as SizedMixin } from "../sized-mixin-DmkrNdWB.js";
34
- import { MutationController } from "@lit-labs/observers/mutation-controller.js";
35
- import { a as LuzmoElement } from "../base-DmeVy0cq.js";
36
- import { R as RovingTabindexController } from "../roving-tabindex-DPF9NmrH.js";
37
- const styles$1 = '@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);background-color:var(--luzmo-swatch-focus-indicator-background-color, var(--luzmo-background-color));z-index:-1;opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-negative-color);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';
38
- var __defProp$1 = Object.defineProperty;
39
- var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
40
- var __decorateClass$1 = (decorators, target, key, kind) => {
41
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
42
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
43
- if (decorator = decorators[i])
44
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
45
- if (kind && result) __defProp$1(target, key, result);
46
- return result;
33
+ g();
34
+ const A = '@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);background-color:var(--luzmo-swatch-focus-indicator-background-color, var(--luzmo-background-color));z-index:-1;opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-negative-color);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';
35
+ var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (c, e, o, r) => {
36
+ for (var t = r > 1 ? void 0 : r ? _(e, o) : e, s = c.length - 1, i; s >= 0; s--)
37
+ (i = c[s]) && (t = (r ? i(e, o, t) : i(t)) || t);
38
+ return r && t && E(e, o, t), t;
47
39
  };
48
- class LuzmoSwatch extends SizedMixin(Focusable, {
40
+ class a extends p(y, {
49
41
  validSizes: ["xxs", "xs", "s", "m", "l", "xl"],
50
- noDefaultSize: true
42
+ noDefaultSize: !0
51
43
  }) {
52
44
  constructor() {
53
- super(...arguments);
54
- this.color = "";
55
- this.label = "";
56
- this.mixedValue = false;
57
- this.nothing = false;
58
- this.role = "button";
59
- this.selected = false;
60
- this.readonly = false;
61
- this.renderDisabled = () => html`
45
+ super(...arguments), this.color = "", this.label = "", this.mixedValue = !1, this.nothing = !1, this.role = "button", this.selected = !1, this.readonly = !1, this.renderDisabled = () => u`
62
46
  <svg
63
47
  xmlns="http://www.w3.org/2000/svg"
64
48
  class="disabled-icon"
@@ -75,59 +59,48 @@ class LuzmoSwatch extends SizedMixin(Focusable, {
75
59
  fill="var(--swatch-disabled-icon-stroke-color)"
76
60
  />
77
61
  </svg>
78
- `;
79
- this.renderMixedValue = () => luzmoIcon(luzmoDash);
62
+ `, this.renderMixedValue = () => z(v);
80
63
  }
81
64
  static get styles() {
82
- return [unsafeCSS(styles$1)];
65
+ return [m(A)];
83
66
  }
84
67
  get value() {
85
68
  return this._value || this.color || this.label;
86
69
  }
87
- set value(value) {
88
- if (value === this._value) {
70
+ set value(e) {
71
+ if (e === this._value)
89
72
  return;
90
- }
91
- const oldValue = this.value;
92
- this._value = value;
93
- this.requestUpdate("value", oldValue);
73
+ const o = this.value;
74
+ this._value = e, this.requestUpdate("value", o);
94
75
  }
95
76
  get focusElement() {
96
77
  return this;
97
78
  }
98
- toggle(force) {
99
- if (!this.readonly) {
100
- this.selected = force ?? !this.selected;
101
- }
79
+ toggle(e) {
80
+ this.readonly || (this.selected = e ?? !this.selected);
102
81
  }
103
82
  handleClick() {
104
- if (this.disabled || this.mixedValue) {
83
+ if (this.disabled || this.mixedValue)
105
84
  return;
106
- }
107
- this.toggle();
108
- const applyDefault = this.dispatchEvent(
85
+ this.toggle(), this.dispatchEvent(
109
86
  new Event("change", {
110
- cancelable: true,
111
- bubbles: true
87
+ cancelable: !0,
88
+ bubbles: !0
112
89
  })
113
- );
114
- if (!applyDefault) {
115
- this.toggle();
116
- }
90
+ ) || this.toggle();
117
91
  }
118
- handleKeydown(event) {
119
- const { code } = event;
120
- switch (code) {
92
+ handleKeydown(e) {
93
+ const { code: o } = e;
94
+ switch (o) {
121
95
  case "Space": {
122
- event.preventDefault();
123
- this.addEventListener("keyup", this.handleKeyup);
96
+ e.preventDefault(), this.addEventListener("keyup", this.handleKeyup);
124
97
  break;
125
98
  }
126
99
  }
127
100
  }
128
- handleKeypress(event) {
129
- const { code } = event;
130
- switch (code) {
101
+ handleKeypress(e) {
102
+ const { code: o } = e;
103
+ switch (o) {
131
104
  case "Enter":
132
105
  case "NumpadEnter": {
133
106
  this.click();
@@ -135,154 +108,105 @@ class LuzmoSwatch extends SizedMixin(Focusable, {
135
108
  }
136
109
  }
137
110
  }
138
- handleKeyup(event) {
139
- const { code } = event;
140
- switch (code) {
111
+ handleKeyup(e) {
112
+ const { code: o } = e;
113
+ switch (o) {
141
114
  case "Space": {
142
- this.removeEventListener("keyup", this.handleKeyup);
143
- this.click();
115
+ this.removeEventListener("keyup", this.handleKeyup), this.click();
144
116
  break;
145
117
  }
146
118
  }
147
119
  }
148
120
  render() {
149
- return html`
121
+ return u`
150
122
  <div
151
123
  class="opacity-checkerboard fill"
152
- style=${ifDefined(
124
+ style=${x(
153
125
  this.color ? `--picked-color: ${this.color}` : void 0
154
126
  )}
155
127
  >
156
128
  <slot name="image"></slot>
157
- ${when(this.disabled, this.renderDisabled)}
158
- ${when(this.mixedValue, this.renderMixedValue)}
129
+ ${b(this.disabled, this.renderDisabled)}
130
+ ${b(this.mixedValue, this.renderMixedValue)}
159
131
  </div>
160
132
  `;
161
133
  }
162
- willUpdate(changes) {
163
- var _a;
164
- if (!this.getAttribute("role")) {
165
- this.setAttribute("role", "button");
166
- }
167
- if ((changes.has("selected") || changes.has("role")) && !this.readonly) {
168
- const selectedAttribute = this.role === "button" ? "aria-pressed" : "aria-checked";
169
- const removedSelectedAttribute = this.role === "button" ? "aria-checked" : "aria-pressed";
170
- if (changes.has("role")) {
171
- this.removeAttribute(removedSelectedAttribute);
172
- }
173
- this.setAttribute(selectedAttribute, this.selected ? "true" : "false");
174
- }
175
- if (changes.has("label") || changes.has("color") || changes.has("mixedValue")) {
176
- if (this.label !== this.color && ((_a = this.label) == null ? void 0 : _a.length)) {
177
- this.setAttribute("aria-label", this.label);
178
- } else if (this.color) {
179
- this.setAttribute("aria-label", this.color);
180
- } else if (this.mixedValue) {
181
- this.setAttribute("aria-label", "Mixed");
182
- } else {
183
- this.removeAttribute("aria-label");
184
- }
134
+ willUpdate(e) {
135
+ var o;
136
+ if (this.getAttribute("role") || this.setAttribute("role", "button"), (e.has("selected") || e.has("role")) && !this.readonly) {
137
+ const r = this.role === "button" ? "aria-pressed" : "aria-checked", t = this.role === "button" ? "aria-checked" : "aria-pressed";
138
+ e.has("role") && this.removeAttribute(t), this.setAttribute(r, this.selected ? "true" : "false");
185
139
  }
140
+ (e.has("label") || e.has("color") || e.has("mixedValue")) && (this.label !== this.color && ((o = this.label) != null && o.length) ? this.setAttribute("aria-label", this.label) : this.color ? this.setAttribute("aria-label", this.color) : this.mixedValue ? this.setAttribute("aria-label", "Mixed") : this.removeAttribute("aria-label"));
186
141
  }
187
- firstUpdated(changes) {
188
- super.firstUpdated(changes);
189
- this.addEventListener("click", this.handleClick);
190
- this.addEventListener("keydown", this.handleKeydown);
191
- this.addEventListener("keypress", this.handleKeypress);
192
- if (!this.hasAttribute("tabindex")) {
193
- this.setAttribute("tabindex", "0");
194
- }
142
+ firstUpdated(e) {
143
+ super.firstUpdated(e), this.addEventListener("click", this.handleClick), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("keypress", this.handleKeypress), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
195
144
  }
196
145
  }
197
- __decorateClass$1([
198
- property({ reflect: true })
199
- ], LuzmoSwatch.prototype, "border", 2);
200
- __decorateClass$1([
201
- property()
202
- ], LuzmoSwatch.prototype, "color", 2);
203
- __decorateClass$1([
204
- property()
205
- ], LuzmoSwatch.prototype, "label", 2);
206
- __decorateClass$1([
207
- property({ type: Boolean, reflect: true, attribute: "mixed-value" })
208
- ], LuzmoSwatch.prototype, "mixedValue", 2);
209
- __decorateClass$1([
210
- property({ type: Boolean, reflect: true })
211
- ], LuzmoSwatch.prototype, "nothing", 2);
212
- __decorateClass$1([
213
- property({ reflect: true })
214
- ], LuzmoSwatch.prototype, "role", 2);
215
- __decorateClass$1([
216
- property({ reflect: true })
217
- ], LuzmoSwatch.prototype, "rounding", 2);
218
- __decorateClass$1([
219
- property({ type: Boolean, reflect: true })
220
- ], LuzmoSwatch.prototype, "selected", 2);
221
- __decorateClass$1([
222
- property({ type: Boolean, reflect: true })
223
- ], LuzmoSwatch.prototype, "readonly", 2);
224
- __decorateClass$1([
225
- property({ reflect: true })
226
- ], LuzmoSwatch.prototype, "shape", 2);
227
- __decorateClass$1([
228
- property()
229
- ], LuzmoSwatch.prototype, "value", 1);
230
- const styles = ":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";
231
- var __defProp = Object.defineProperty;
232
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
233
- var __decorateClass = (decorators, target, key, kind) => {
234
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
235
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
236
- if (decorator = decorators[i])
237
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
238
- if (kind && result) __defProp(target, key, result);
239
- return result;
146
+ n([
147
+ l({ reflect: !0 })
148
+ ], a.prototype, "border", 2);
149
+ n([
150
+ l()
151
+ ], a.prototype, "color", 2);
152
+ n([
153
+ l()
154
+ ], a.prototype, "label", 2);
155
+ n([
156
+ l({ type: Boolean, reflect: !0, attribute: "mixed-value" })
157
+ ], a.prototype, "mixedValue", 2);
158
+ n([
159
+ l({ type: Boolean, reflect: !0 })
160
+ ], a.prototype, "nothing", 2);
161
+ n([
162
+ l({ reflect: !0 })
163
+ ], a.prototype, "role", 2);
164
+ n([
165
+ l({ reflect: !0 })
166
+ ], a.prototype, "rounding", 2);
167
+ n([
168
+ l({ type: Boolean, reflect: !0 })
169
+ ], a.prototype, "selected", 2);
170
+ n([
171
+ l({ type: Boolean, reflect: !0 })
172
+ ], a.prototype, "readonly", 2);
173
+ n([
174
+ l({ reflect: !0 })
175
+ ], a.prototype, "shape", 2);
176
+ n([
177
+ l()
178
+ ], a.prototype, "value", 1);
179
+ const D = ":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";
180
+ var L = Object.defineProperty, T = Object.getOwnPropertyDescriptor, h = (c, e, o, r) => {
181
+ for (var t = r > 1 ? void 0 : r ? T(e, o) : e, s = c.length - 1, i; s >= 0; s--)
182
+ (i = c[s]) && (t = (r ? i(e, o, t) : i(t)) || t);
183
+ return r && t && L(e, o, t), t;
240
184
  };
241
- class LuzmoSwatchGroup extends SizedMixin(LuzmoElement, {
185
+ class d extends p(w, {
242
186
  validSizes: ["xs", "s", "m", "l"],
243
- noDefaultSize: true
187
+ noDefaultSize: !0
244
188
  }) {
245
189
  constructor() {
246
- super();
247
- this._selected = [];
248
- this.selectedSet = /* @__PURE__ */ new Set();
249
- this.rovingTabindexController = new RovingTabindexController(this, {
250
- focusInIndex: (elements) => {
251
- let firstEnabledIndex = -1;
252
- const firstSelectedIndex = elements.findIndex((el, index) => {
253
- if (!elements[firstEnabledIndex] && !el.disabled) {
254
- firstEnabledIndex = index;
255
- }
256
- return el.selected && !el.disabled;
257
- });
258
- return elements[firstSelectedIndex] ? firstSelectedIndex : firstEnabledIndex;
190
+ super(), this._selected = [], this.selectedSet = /* @__PURE__ */ new Set(), this.rovingTabindexController = new C(this, {
191
+ focusInIndex: (e) => {
192
+ let o = -1;
193
+ const r = e.findIndex((t, s) => (!e[o] && !t.disabled && (o = s), t.selected && !t.disabled));
194
+ return e[r] ? r : o;
259
195
  },
260
196
  elements: () => this.swatches,
261
- isFocusableElement: (el) => !el.disabled
262
- });
263
- this.manageChange = async () => {
264
- const presentSet = /* @__PURE__ */ new Set();
265
- this.selectedSet = new Set(this.selected);
266
- await Promise.all(this.swatches.map((swatch) => swatch.updateComplete));
267
- this.swatches.forEach((swatch) => {
268
- presentSet.add(swatch.value);
269
- if (swatch.selected) {
270
- this.selectedSet.add(swatch.value);
271
- }
272
- });
273
- this.selectedSet.forEach((value) => {
274
- if (!presentSet.has(value)) {
275
- this.selectedSet.delete(value);
276
- }
277
- });
278
- this._selected = [...this.selectedSet];
279
- this.rovingTabindexController.clearElementCache();
280
- };
281
- new MutationController(this, {
197
+ isFocusableElement: (e) => !e.disabled
198
+ }), this.manageChange = async () => {
199
+ const e = /* @__PURE__ */ new Set();
200
+ this.selectedSet = new Set(this.selected), await Promise.all(this.swatches.map((o) => o.updateComplete)), this.swatches.forEach((o) => {
201
+ e.add(o.value), o.selected && this.selectedSet.add(o.value);
202
+ }), this.selectedSet.forEach((o) => {
203
+ e.has(o) || this.selectedSet.delete(o);
204
+ }), this._selected = [...this.selectedSet], this.rovingTabindexController.clearElementCache();
205
+ }, new k(this, {
282
206
  config: {
283
- attributes: true,
284
- childList: true,
285
- subtree: true
207
+ attributes: !0,
208
+ childList: !0,
209
+ subtree: !0
286
210
  },
287
211
  callback: () => {
288
212
  this.manageChange();
@@ -290,198 +214,129 @@ class LuzmoSwatchGroup extends SizedMixin(LuzmoElement, {
290
214
  });
291
215
  }
292
216
  static get styles() {
293
- return [unsafeCSS(styles)];
217
+ return [m(D)];
294
218
  }
295
219
  get selected() {
296
220
  return this._selected;
297
221
  }
298
- set selected(selected) {
299
- if (selected === this.selected) {
222
+ set selected(e) {
223
+ if (e === this.selected)
300
224
  return;
301
- }
302
- const oldSelected = this.selected;
303
- this._selected = selected;
304
- this.requestUpdate("selected", oldSelected);
225
+ const o = this.selected;
226
+ this._selected = e, this.requestUpdate("selected", o);
305
227
  }
306
- focus(options) {
307
- this.rovingTabindexController.focus(options);
228
+ focus(e) {
229
+ this.rovingTabindexController.focus(e);
308
230
  }
309
- handleChange(event) {
310
- event.stopPropagation();
311
- const oldSelected = this.selected;
231
+ handleChange(e) {
232
+ e.stopPropagation();
233
+ const o = this.selected;
312
234
  if (!this.selects) {
313
- event.preventDefault();
235
+ e.preventDefault();
314
236
  return;
315
237
  }
316
238
  if (this.selects === "single") {
317
- const { target } = event;
318
- target.tabIndex = 0;
319
- target.selected = true;
320
- if (this.selectedSet.has(target.value)) {
239
+ const { target: t } = e;
240
+ if (t.tabIndex = 0, t.selected = !0, this.selectedSet.has(t.value))
321
241
  return;
322
- }
323
- this.selectedSet.clear();
324
- this.selectedSet.add(target.value);
325
- this.rovingTabindexController.elements.forEach((child) => {
326
- if (child === target) {
327
- return;
328
- }
329
- child.selected = false;
242
+ this.selectedSet.clear(), this.selectedSet.add(t.value), this.rovingTabindexController.elements.forEach((s) => {
243
+ s !== t && (s.selected = !1);
330
244
  });
331
245
  } else if (this.selects === "multiple") {
332
- const { target } = event;
333
- if (target.selected) {
334
- this.selectedSet.add(target.value);
335
- } else {
336
- this.selectedSet.delete(target.value);
337
- }
246
+ const { target: t } = e;
247
+ t.selected ? this.selectedSet.add(t.value) : this.selectedSet.delete(t.value);
338
248
  }
339
- this._selected = [...this.selectedSet];
340
- const applyDefault = this.dispatchEvent(
249
+ this._selected = [...this.selectedSet], this.dispatchEvent(
341
250
  new Event("change", {
342
- cancelable: true,
343
- bubbles: true
251
+ cancelable: !0,
252
+ bubbles: !0
344
253
  })
345
- );
346
- if (!applyDefault) {
347
- this._selected = oldSelected;
348
- event.preventDefault();
349
- }
254
+ ) || (this._selected = o, e.preventDefault());
350
255
  }
351
- getPassthroughSwatchActions(changes) {
352
- const targetValues = {};
353
- if (changes.has("selects") && (this.selects || changes.get("selects") !== void 0)) {
354
- targetValues.selects = this.selects;
355
- }
356
- if (changes.has("border") && (this.border || changes.get("border") !== void 0)) {
357
- targetValues.border = this.border;
358
- }
359
- if (changes.has("rounding") && (this.rounding || changes.get("rounding") !== void 0)) {
360
- targetValues.rounding = this.rounding;
361
- }
362
- if (changes.has("size") && (this.size !== "m" || changes.get("size") !== void 0)) {
363
- targetValues.size = this.size;
364
- }
365
- if (changes.has("shape") && (this.shape || changes.get("shape") !== void 0)) {
366
- targetValues.shape = this.shape;
367
- }
368
- const passThroughSwatchActions = [];
369
- if (Object.keys(targetValues).length > 0) {
370
- passThroughSwatchActions.push((swatch) => {
371
- if ("border" in targetValues) {
372
- swatch.border = targetValues.border;
373
- }
374
- if ("rounding" in targetValues) {
375
- swatch.rounding = targetValues.rounding;
376
- }
377
- if ("shape" in targetValues) {
378
- swatch.shape = targetValues.shape;
379
- }
380
- if ("size" in targetValues) {
381
- swatch.size = targetValues.size;
382
- }
383
- });
384
- }
385
- return passThroughSwatchActions;
256
+ getPassthroughSwatchActions(e) {
257
+ const o = {};
258
+ e.has("selects") && (this.selects || e.get("selects") !== void 0) && (o.selects = this.selects), e.has("border") && (this.border || e.get("border") !== void 0) && (o.border = this.border), e.has("rounding") && (this.rounding || e.get("rounding") !== void 0) && (o.rounding = this.rounding), e.has("size") && (this.size !== "m" || e.get("size") !== void 0) && (o.size = this.size), e.has("shape") && (this.shape || e.get("shape") !== void 0) && (o.shape = this.shape);
259
+ const r = [];
260
+ return Object.keys(o).length > 0 && r.push((t) => {
261
+ "border" in o && (t.border = o.border), "rounding" in o && (t.rounding = o.rounding), "shape" in o && (t.shape = o.shape), "size" in o && (t.size = o.size);
262
+ }), r;
386
263
  }
387
- getSelectionSwatchActions(changes) {
388
- const selectionSwatchActions = [];
389
- if (!changes.has("selects")) {
390
- return selectionSwatchActions;
391
- }
392
- if (this.selects) {
393
- this.setAttribute(
394
- "role",
395
- this.selects === "single" ? "radiogroup" : "group"
396
- );
397
- } else {
398
- this.removeAttribute("role");
399
- }
400
- const swatchRoles = {
264
+ getSelectionSwatchActions(e) {
265
+ const o = [];
266
+ if (!e.has("selects"))
267
+ return o;
268
+ this.selects ? this.setAttribute(
269
+ "role",
270
+ this.selects === "single" ? "radiogroup" : "group"
271
+ ) : this.removeAttribute("role");
272
+ const r = {
401
273
  single: "radio",
402
274
  multiple: "checkbox"
403
- };
404
- const swatchRole = this.selects ? swatchRoles[this.selects] : "button";
405
- selectionSwatchActions.push((swatch) => {
406
- swatch.setAttribute("role", swatchRole);
407
- });
408
- return selectionSwatchActions;
275
+ }, t = this.selects ? r[this.selects] : "button";
276
+ return o.push((s) => {
277
+ s.setAttribute("role", t);
278
+ }), o;
409
279
  }
410
280
  render() {
411
- return html`
281
+ return u`
412
282
  <slot
413
283
  @change=${this.handleChange}
414
284
  @slotchange=${this.manageChange}
415
285
  ></slot>
416
286
  `;
417
287
  }
418
- willUpdate(changes) {
419
- const swatchActions = [
420
- ...this.getPassthroughSwatchActions(changes),
421
- ...this.getSelectionSwatchActions(changes)
288
+ willUpdate(e) {
289
+ const o = [
290
+ ...this.getPassthroughSwatchActions(e),
291
+ ...this.getSelectionSwatchActions(e)
422
292
  ];
423
- let nextSelected = new Set(this.selected);
424
- const currentValues = /* @__PURE__ */ new Set();
425
- if (changes.has("selected")) {
426
- swatchActions.push((swatch) => {
427
- currentValues.add(swatch.value);
428
- swatch.selected = nextSelected.has(swatch.value) || !this.hasUpdated && swatch.selected ? true : false;
429
- });
430
- }
431
- const doActions = () => {
432
- nextSelected = new Set(this.selected);
433
- this.swatches.forEach((swatch) => {
434
- swatchActions.forEach((action) => {
435
- action(swatch);
293
+ let r = new Set(this.selected);
294
+ const t = /* @__PURE__ */ new Set();
295
+ e.has("selected") && o.push((i) => {
296
+ t.add(i.value), i.selected = !!(r.has(i.value) || !this.hasUpdated && i.selected);
297
+ });
298
+ const s = () => {
299
+ r = new Set(this.selected), this.swatches.forEach((i) => {
300
+ o.forEach((f) => {
301
+ f(i);
436
302
  });
437
- });
438
- if (changes.has("selected")) {
439
- this._selected = [...nextSelected.values()].filter(
440
- (selectedValue) => currentValues.has(selectedValue)
441
- );
442
- }
303
+ }), e.has("selected") && (this._selected = [...r.values()].filter(
304
+ (i) => t.has(i)
305
+ ));
443
306
  };
444
- if (this.hasUpdated) {
445
- doActions();
446
- } else {
447
- this.renderRoot.addEventListener(
448
- "slotchange",
449
- () => {
450
- requestAnimationFrame(doActions);
451
- },
452
- { once: true }
453
- );
454
- }
307
+ this.hasUpdated ? s() : this.renderRoot.addEventListener(
308
+ "slotchange",
309
+ () => {
310
+ requestAnimationFrame(s);
311
+ },
312
+ { once: !0 }
313
+ );
455
314
  }
456
315
  }
457
- __decorateClass([
458
- property({ reflect: true })
459
- ], LuzmoSwatchGroup.prototype, "border", 2);
460
- __decorateClass([
461
- property({ reflect: true })
462
- ], LuzmoSwatchGroup.prototype, "density", 2);
463
- __decorateClass([
464
- property({ reflect: true })
465
- ], LuzmoSwatchGroup.prototype, "rounding", 2);
466
- __decorateClass([
467
- property({ type: Array })
468
- ], LuzmoSwatchGroup.prototype, "selected", 1);
469
- __decorateClass([
470
- property()
471
- ], LuzmoSwatchGroup.prototype, "selects", 2);
472
- __decorateClass([
473
- property({ reflect: true })
474
- ], LuzmoSwatchGroup.prototype, "shape", 2);
475
- __decorateClass([
476
- queryAssignedElements({ flatten: true })
477
- ], LuzmoSwatchGroup.prototype, "swatches", 2);
478
- if (!customElements.get("luzmo-swatch")) {
479
- customElements.define("luzmo-swatch", LuzmoSwatch);
480
- }
481
- if (!customElements.get("luzmo-swatch-group")) {
482
- customElements.define("luzmo-swatch-group", LuzmoSwatchGroup);
483
- }
316
+ h([
317
+ l({ reflect: !0 })
318
+ ], d.prototype, "border", 2);
319
+ h([
320
+ l({ reflect: !0 })
321
+ ], d.prototype, "density", 2);
322
+ h([
323
+ l({ reflect: !0 })
324
+ ], d.prototype, "rounding", 2);
325
+ h([
326
+ l({ type: Array })
327
+ ], d.prototype, "selected", 1);
328
+ h([
329
+ l()
330
+ ], d.prototype, "selects", 2);
331
+ h([
332
+ l({ reflect: !0 })
333
+ ], d.prototype, "shape", 2);
334
+ h([
335
+ S({ flatten: !0 })
336
+ ], d.prototype, "swatches", 2);
337
+ customElements.get("luzmo-swatch") || customElements.define("luzmo-swatch", a);
338
+ customElements.get("luzmo-swatch-group") || customElements.define("luzmo-swatch-group", d);
484
339
  export {
485
- LuzmoSwatch,
486
- LuzmoSwatchGroup
340
+ a as LuzmoSwatch,
341
+ d as LuzmoSwatchGroup
487
342
  };