@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,110 +15,82 @@
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 { e as f, I as O, s as S, L as $ } from "../overlay-CUKs69yr.js";
19
+ import { C as D, H as M, b as J, c as K, d as Q, P as W, S as X, V as Y, g as Z, l as ee, a as te, n as oe, o as re, p as le } from "../overlay-CUKs69yr.js";
20
+ import { a as E, r as w, x as m, n as c, E as z, B as v } from "../base-CFWO09N1.js";
21
+ import { r as g } from "../state-DwIwYPvt.js";
22
+ import { e as h } from "../query-D_KR_GUc.js";
23
+ import { e as b } from "../directive-oAbCiebi.js";
24
+ import { f as A } from "../async-directive-BwIAw5tB.js";
25
+ import { r as y } from "../slottable-request-event-DggLA4Rx.js";
26
+ import { S as ne } from "../slottable-request-event-DggLA4Rx.js";
27
+ const k = () => {
28
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
+ const i = document.createElement("style");
30
+ i.setAttribute("data-luzmo-vars", ""), i.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(i);
24
31
  }
25
32
  };
26
- initializeGlobalLuzmoCSSVariables();
27
- import { e as LuzmoOverlay, I as InteractionTypes, s as strategies, L as LuzmoAbstractOverlay } from "../overlay-CN8ISP1F.js";
28
- import { C, H, b, c, d, P, S, V, g, l, a, n, o, p } from "../overlay-CN8ISP1F.js";
29
- import { unsafeCSS, html, nothing, render } from "lit";
30
- import { property, state, query } from "lit/decorators.js";
31
- import { a as LuzmoElement } from "../base-DmeVy0cq.js";
32
- import { directive, AsyncDirective } from "lit/async-directive.js";
33
- import { r as removeSlottableRequest } from "../slottable-request-event-D9WzrdWv.js";
34
- import { S as S2 } from "../slottable-request-event-D9WzrdWv.js";
35
- const overlayTriggerStyles = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
36
- var __defProp = Object.defineProperty;
37
- var __decorateClass = (decorators, target, key, kind) => {
38
- var result = void 0;
39
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
40
- if (decorator = decorators[i])
41
- result = decorator(target, key, result) || result;
42
- if (result) __defProp(target, key, result);
43
- return result;
33
+ k();
34
+ const F = ":host([disabled]) ::slotted([slot=trigger]){pointer-events:none}slot[name=longpress-describedby-descriptor]{display:none}";
35
+ var I = Object.defineProperty, s = (i, e, o, t) => {
36
+ for (var l = void 0, n = i.length - 1, a; n >= 0; n--)
37
+ (a = i[n]) && (l = a(e, o, l) || l);
38
+ return l && I(e, o, l), l;
44
39
  };
45
- class LuzmoOverlayTrigger extends LuzmoElement {
40
+ class r extends E {
46
41
  constructor() {
47
- super(...arguments);
48
- this.content = "click hover longpress";
49
- this.offset = 6;
50
- this.disabled = false;
51
- this.receivesFocus = "auto";
52
- this.clickContent = [];
53
- this.longpressContent = [];
54
- this.hoverContent = [];
55
- this.targetContent = [];
42
+ super(...arguments), this.content = "click hover longpress", this.offset = 6, this.disabled = !1, this.receivesFocus = "auto", this.clickContent = [], this.longpressContent = [], this.hoverContent = [], this.targetContent = [];
56
43
  }
57
44
  static get styles() {
58
- return [unsafeCSS(overlayTriggerStyles)];
45
+ return [w(F)];
59
46
  }
60
- getAssignedElementsFromSlot(slot) {
61
- return slot.assignedElements({ flatten: true });
47
+ getAssignedElementsFromSlot(e) {
48
+ return e.assignedElements({ flatten: !0 });
62
49
  }
63
- handleTriggerContent(event) {
64
- this.targetContent = this.getAssignedElementsFromSlot(event.target);
50
+ handleTriggerContent(e) {
51
+ this.targetContent = this.getAssignedElementsFromSlot(e.target);
65
52
  }
66
- handleSlotContent(event) {
67
- switch (event.target.name) {
53
+ handleSlotContent(e) {
54
+ switch (e.target.name) {
68
55
  case "click-content": {
69
- this.clickContent = this.getAssignedElementsFromSlot(event.target);
56
+ this.clickContent = this.getAssignedElementsFromSlot(e.target);
70
57
  break;
71
58
  }
72
59
  case "longpress-content": {
73
- this.longpressContent = this.getAssignedElementsFromSlot(event.target);
60
+ this.longpressContent = this.getAssignedElementsFromSlot(e.target);
74
61
  break;
75
62
  }
76
63
  case "hover-content": {
77
- this.hoverContent = this.getAssignedElementsFromSlot(event.target);
64
+ this.hoverContent = this.getAssignedElementsFromSlot(e.target);
78
65
  break;
79
66
  }
80
67
  }
81
68
  }
82
- handleBeforetoggle(event) {
83
- const { target } = event;
84
- let type;
85
- if (target === this.clickOverlayElement) {
86
- type = "click";
87
- } else if (target === this.longpressOverlayElement) {
88
- type = "longpress";
89
- } else if (target === this.hoverOverlayElement) {
90
- type = "hover";
91
- } else {
69
+ handleBeforetoggle(e) {
70
+ const { target: o } = e;
71
+ let t;
72
+ if (o === this.clickOverlayElement)
73
+ t = "click";
74
+ else if (o === this.longpressOverlayElement)
75
+ t = "longpress";
76
+ else if (o === this.hoverOverlayElement)
77
+ t = "hover";
78
+ else
92
79
  return;
93
- }
94
- if (event.newState === "open") {
95
- this.open = type;
96
- } else if (this.open === type) {
97
- this.open = void 0;
98
- }
80
+ e.newState === "open" ? this.open = t : this.open === t && (this.open = void 0);
99
81
  }
100
- update(changes) {
101
- var _a, _b, _c, _d, _e, _f;
102
- if (changes.has("clickContent")) {
103
- this.clickPlacement = ((_a = this.clickContent[0]) == null ? void 0 : _a.getAttribute("placement")) || ((_b = this.clickContent[0]) == null ? void 0 : _b.getAttribute("direction")) || void 0;
104
- }
105
- if (changes.has("hoverContent")) {
106
- this.hoverPlacement = ((_c = this.hoverContent[0]) == null ? void 0 : _c.getAttribute("placement")) || ((_d = this.hoverContent[0]) == null ? void 0 : _d.getAttribute("direction")) || void 0;
107
- }
108
- if (changes.has("longpressContent")) {
109
- this.longpressPlacement = ((_e = this.longpressContent[0]) == null ? void 0 : _e.getAttribute("placement")) || ((_f = this.longpressContent[0]) == null ? void 0 : _f.getAttribute("direction")) || void 0;
110
- }
111
- super.update(changes);
82
+ update(e) {
83
+ var o, t, l, n, a, u;
84
+ e.has("clickContent") && (this.clickPlacement = ((o = this.clickContent[0]) == null ? void 0 : o.getAttribute("placement")) || ((t = this.clickContent[0]) == null ? void 0 : t.getAttribute("direction")) || void 0), e.has("hoverContent") && (this.hoverPlacement = ((l = this.hoverContent[0]) == null ? void 0 : l.getAttribute("placement")) || ((n = this.hoverContent[0]) == null ? void 0 : n.getAttribute("direction")) || void 0), e.has("longpressContent") && (this.longpressPlacement = ((a = this.longpressContent[0]) == null ? void 0 : a.getAttribute("placement")) || ((u = this.longpressContent[0]) == null ? void 0 : u.getAttribute("direction")) || void 0), super.update(e);
112
85
  }
113
- renderSlot(name) {
114
- return html`
115
- <slot name=${name} @slotchange=${this.handleSlotContent}></slot>
86
+ renderSlot(e) {
87
+ return m`
88
+ <slot name=${e} @slotchange=${this.handleSlotContent}></slot>
116
89
  `;
117
90
  }
118
91
  renderClickOverlay() {
119
- var _a;
120
- const slot = this.renderSlot("click-content");
121
- const clickOverlay = html`
92
+ var t;
93
+ const e = this.renderSlot("click-content"), o = m`
122
94
  <luzmo-overlay
123
95
  id="click-overlay"
124
96
  ?disabled=${this.disabled || this.clickContent.length === 0}
@@ -131,21 +103,14 @@ class LuzmoOverlayTrigger extends LuzmoElement {
131
103
  @beforetoggle=${this.handleBeforetoggle}
132
104
  .receivesFocus=${this.receivesFocus}
133
105
  >
134
- ${slot}
106
+ ${e}
135
107
  </luzmo-overlay>
136
108
  `;
137
- if ((_a = this.triggeredBy) == null ? void 0 : _a.includes("click")) {
138
- return clickOverlay;
139
- }
140
- if (this.clickContent.length === 0) {
141
- return slot;
142
- }
143
- return clickOverlay;
109
+ return (t = this.triggeredBy) != null && t.includes("click") ? o : this.clickContent.length === 0 ? e : o;
144
110
  }
145
111
  renderHoverOverlay() {
146
- var _a;
147
- const slot = this.renderSlot("hover-content");
148
- const hoverOverlay = html`
112
+ var t;
113
+ const e = this.renderSlot("hover-content"), o = m`
149
114
  <luzmo-overlay
150
115
  id="hover-overlay"
151
116
  ?open=${this.open === "hover" && this.hoverContent.length > 0}
@@ -158,21 +123,14 @@ class LuzmoOverlayTrigger extends LuzmoElement {
158
123
  @beforetoggle=${this.handleBeforetoggle}
159
124
  .receivesFocus=${this.receivesFocus}
160
125
  >
161
- ${slot}
126
+ ${e}
162
127
  </luzmo-overlay>
163
128
  `;
164
- if ((_a = this.triggeredBy) == null ? void 0 : _a.includes("hover")) {
165
- return hoverOverlay;
166
- }
167
- if (this.hoverContent.length === 0) {
168
- return slot;
169
- }
170
- return hoverOverlay;
129
+ return (t = this.triggeredBy) != null && t.includes("hover") ? o : this.hoverContent.length === 0 ? e : o;
171
130
  }
172
131
  renderLongpressOverlay() {
173
- var _a;
174
- const slot = this.renderSlot("longpress-content");
175
- const longpressOverlay = html`
132
+ var t;
133
+ const e = this.renderSlot("longpress-content"), o = m`
176
134
  <luzmo-overlay
177
135
  id="longpress-overlay"
178
136
  ?disabled=${this.disabled || this.longpressContent.length === 0}
@@ -185,20 +143,14 @@ class LuzmoOverlayTrigger extends LuzmoElement {
185
143
  @beforetoggle=${this.handleBeforetoggle}
186
144
  .receivesFocus=${this.receivesFocus}
187
145
  >
188
- ${slot}
146
+ ${e}
189
147
  </luzmo-overlay>
190
148
  <slot name="longpress-describedby-descriptor"></slot>
191
149
  `;
192
- if ((_a = this.triggeredBy) == null ? void 0 : _a.includes("longpress")) {
193
- return longpressOverlay;
194
- }
195
- if (this.longpressContent.length === 0) {
196
- return slot;
197
- }
198
- return longpressOverlay;
150
+ return (t = this.triggeredBy) != null && t.includes("longpress") ? o : this.longpressContent.length === 0 ? e : o;
199
151
  }
200
152
  render() {
201
- return html`
153
+ return m`
202
154
  <slot
203
155
  id="trigger"
204
156
  name="trigger"
@@ -211,220 +163,184 @@ class LuzmoOverlayTrigger extends LuzmoElement {
211
163
  ]}
212
164
  `;
213
165
  }
214
- updated(changedProperties) {
215
- super.updated(changedProperties);
216
- if (this.disabled && changedProperties.has("disabled")) {
166
+ updated(e) {
167
+ if (super.updated(e), this.disabled && e.has("disabled")) {
217
168
  this.open = void 0;
218
169
  return;
219
170
  }
220
171
  }
221
172
  async getUpdateComplete() {
222
- const complete = await super.getUpdateComplete();
223
- return complete;
173
+ return await super.getUpdateComplete();
224
174
  }
225
175
  }
226
- __decorateClass([
227
- property()
228
- ], LuzmoOverlayTrigger.prototype, "content");
229
- __decorateClass([
230
- property({ attribute: "triggered-by" })
231
- ], LuzmoOverlayTrigger.prototype, "triggeredBy");
232
- __decorateClass([
233
- property({ reflect: true })
234
- ], LuzmoOverlayTrigger.prototype, "placement");
235
- __decorateClass([
236
- property()
237
- ], LuzmoOverlayTrigger.prototype, "type");
238
- __decorateClass([
239
- property({ type: Number })
240
- ], LuzmoOverlayTrigger.prototype, "offset");
241
- __decorateClass([
242
- property({ reflect: true })
243
- ], LuzmoOverlayTrigger.prototype, "open");
244
- __decorateClass([
245
- property({ type: Boolean, reflect: true })
246
- ], LuzmoOverlayTrigger.prototype, "disabled");
247
- __decorateClass([
248
- property({ attribute: "receives-focus" })
249
- ], LuzmoOverlayTrigger.prototype, "receivesFocus");
250
- __decorateClass([
251
- state()
252
- ], LuzmoOverlayTrigger.prototype, "clickContent");
253
- __decorateClass([
254
- state()
255
- ], LuzmoOverlayTrigger.prototype, "longpressContent");
256
- __decorateClass([
257
- state()
258
- ], LuzmoOverlayTrigger.prototype, "hoverContent");
259
- __decorateClass([
260
- state()
261
- ], LuzmoOverlayTrigger.prototype, "targetContent");
262
- __decorateClass([
263
- query("#click-overlay", true)
264
- ], LuzmoOverlayTrigger.prototype, "clickOverlayElement");
265
- __decorateClass([
266
- query("#longpress-overlay", true)
267
- ], LuzmoOverlayTrigger.prototype, "longpressOverlayElement");
268
- __decorateClass([
269
- query("#hover-overlay", true)
270
- ], LuzmoOverlayTrigger.prototype, "hoverOverlayElement");
271
- function openOverlay(triggerOrContent, interactionOrOptions, content, optionsV1) {
272
- return LuzmoOverlay.open(
273
- triggerOrContent,
274
- interactionOrOptions,
275
- content,
276
- optionsV1
176
+ s([
177
+ c()
178
+ ], r.prototype, "content");
179
+ s([
180
+ c({ attribute: "triggered-by" })
181
+ ], r.prototype, "triggeredBy");
182
+ s([
183
+ c({ reflect: !0 })
184
+ ], r.prototype, "placement");
185
+ s([
186
+ c()
187
+ ], r.prototype, "type");
188
+ s([
189
+ c({ type: Number })
190
+ ], r.prototype, "offset");
191
+ s([
192
+ c({ reflect: !0 })
193
+ ], r.prototype, "open");
194
+ s([
195
+ c({ type: Boolean, reflect: !0 })
196
+ ], r.prototype, "disabled");
197
+ s([
198
+ c({ attribute: "receives-focus" })
199
+ ], r.prototype, "receivesFocus");
200
+ s([
201
+ g()
202
+ ], r.prototype, "clickContent");
203
+ s([
204
+ g()
205
+ ], r.prototype, "longpressContent");
206
+ s([
207
+ g()
208
+ ], r.prototype, "hoverContent");
209
+ s([
210
+ g()
211
+ ], r.prototype, "targetContent");
212
+ s([
213
+ h("#click-overlay", !0)
214
+ ], r.prototype, "clickOverlayElement");
215
+ s([
216
+ h("#longpress-overlay", !0)
217
+ ], r.prototype, "longpressOverlayElement");
218
+ s([
219
+ h("#hover-overlay", !0)
220
+ ], r.prototype, "hoverOverlayElement");
221
+ function U(i, e, o, t) {
222
+ return f.open(
223
+ i,
224
+ e,
225
+ o,
226
+ t
277
227
  );
278
228
  }
279
- class SlottableRequestDirective extends AsyncDirective {
229
+ class x extends A {
280
230
  /* c8 ignore next 9 */
281
- render(_template) {
282
- return nothing;
231
+ render(e) {
232
+ return z;
283
233
  }
284
- update(part, [template]) {
285
- this.template = template;
286
- if (this.target !== part.element) {
287
- this.target = part.element;
288
- this.renderBefore = this.target.children[0];
289
- }
290
- this.listenerHost = this.target;
291
- this.init();
234
+ update(e, [o]) {
235
+ this.template = o, this.target !== e.element && (this.target = e.element, this.renderBefore = this.target.children[0]), this.listenerHost = this.target, this.init();
292
236
  }
293
- handleSlottableRequest(event) {
294
- if (event.target !== event.currentTarget) {
237
+ handleSlottableRequest(e) {
238
+ if (e.target !== e.currentTarget)
295
239
  return;
296
- }
297
- const willRemoveSlottable = event.data === removeSlottableRequest;
298
- render(willRemoveSlottable ? void 0 : this.template(), this.target, {
240
+ const o = e.data === y;
241
+ v(o ? void 0 : this.template(), this.target, {
299
242
  renderBefore: this.renderBefore
300
243
  });
301
244
  }
302
245
  init() {
303
- var _a;
304
- (_a = this.listeners) == null ? void 0 : _a.abort();
305
- this.listeners = new AbortController();
306
- const { signal } = this.listeners;
246
+ var o;
247
+ (o = this.listeners) == null || o.abort(), this.listeners = new AbortController();
248
+ const { signal: e } = this.listeners;
307
249
  this.listenerHost.addEventListener(
308
250
  "slottable-request",
309
- (event) => this.handleSlottableRequest(event),
310
- { signal }
251
+ (t) => this.handleSlottableRequest(t),
252
+ { signal: e }
311
253
  );
312
254
  }
313
255
  disconnected() {
314
- var _a;
315
- (_a = this.listeners) == null ? void 0 : _a.abort();
256
+ var e;
257
+ (e = this.listeners) == null || e.abort();
316
258
  }
317
259
  /* c8 ignore next 3 */
318
260
  reconnected() {
319
261
  this.init();
320
262
  }
321
263
  }
322
- const slottableRequest = directive(SlottableRequestDirective);
323
- class OverlayTriggerDirective extends SlottableRequestDirective {
264
+ const N = b(x);
265
+ class R extends x {
324
266
  constructor() {
325
- super(...arguments);
326
- this.defaultOptions = {
267
+ super(...arguments), this.defaultOptions = {
327
268
  triggerInteraction: "click",
328
269
  overlayOptions: {
329
270
  type: "auto",
330
271
  offset: 0
331
272
  }
332
- };
333
- this.options = {
273
+ }, this.options = {
334
274
  ...this.defaultOptions.overlayOptions
335
275
  };
336
276
  }
337
277
  /* c8 ignore next 9 */
338
- render(_template, _options) {
339
- return nothing;
278
+ render(e, o) {
279
+ return z;
340
280
  }
341
- update(part, [template, options]) {
342
- var _a, _b, _c;
281
+ update(e, [o, t]) {
282
+ var u, d, p;
343
283
  this.options = {
344
284
  ...this.defaultOptions.overlayOptions,
345
- ...options == null ? void 0 : options.overlayOptions
346
- };
347
- this.insertionOptions = options == null ? void 0 : options.insertionOptions;
348
- this.template = template;
349
- this.host = (_a = part.options) == null ? void 0 : _a.host;
350
- let newTarget = false;
351
- const triggerInteraction = (options == null ? void 0 : options.triggerInteraction) || this.defaultOptions.triggerInteraction;
352
- const newStrategy = InteractionTypes[(_b = this.strategy) == null ? void 0 : _b.type] !== triggerInteraction;
353
- if (this.target !== part.element) {
354
- this.target = part.element;
355
- newTarget = true;
356
- }
357
- if (newTarget || newStrategy) {
358
- (_c = this.strategy) == null ? void 0 : _c.abort();
359
- this.strategy = new strategies[triggerInteraction](this.target, {
360
- isPersistent: true,
361
- handleOverlayReady: (overlay) => {
362
- this.listenerHost = this.overlay = overlay;
363
- this.init();
364
- }
365
- });
366
- }
367
- this.strategy.open = (options == null ? void 0 : options.open) ?? false;
285
+ ...t == null ? void 0 : t.overlayOptions
286
+ }, this.insertionOptions = t == null ? void 0 : t.insertionOptions, this.template = o, this.host = (u = e.options) == null ? void 0 : u.host;
287
+ let l = !1;
288
+ const n = (t == null ? void 0 : t.triggerInteraction) || this.defaultOptions.triggerInteraction, a = O[(d = this.strategy) == null ? void 0 : d.type] !== n;
289
+ this.target !== e.element && (this.target = e.element, l = !0), (l || a) && ((p = this.strategy) == null || p.abort(), this.strategy = new S[n](this.target, {
290
+ isPersistent: !0,
291
+ handleOverlayReady: (C) => {
292
+ this.listenerHost = this.overlay = C, this.init();
293
+ }
294
+ })), this.strategy.open = (t == null ? void 0 : t.open) ?? !1;
368
295
  }
369
- handleSlottableRequest(event) {
370
- var _a, _b;
371
- if (event.target !== event.currentTarget) {
296
+ handleSlottableRequest(e) {
297
+ var l, n;
298
+ if (e.target !== e.currentTarget)
372
299
  return;
373
- }
374
- const willRemoveSlottable = event.data === removeSlottableRequest;
375
- const options = {};
376
- if (this.host) {
377
- options.host = this.host;
378
- }
379
- render(
380
- willRemoveSlottable ? void 0 : this.template(),
300
+ const o = e.data === y, t = {};
301
+ if (this.host && (t.host = this.host), v(
302
+ o ? void 0 : this.template(),
381
303
  this.overlay,
382
- options
383
- );
384
- if (willRemoveSlottable) {
304
+ t
305
+ ), o)
385
306
  this.overlay.remove();
386
- } else {
387
- LuzmoAbstractOverlay.applyOptions(this.overlay, {
307
+ else {
308
+ $.applyOptions(this.overlay, {
388
309
  ...this.options,
389
310
  trigger: this.target
390
311
  });
391
- const insertionEl = typeof ((_a = this.insertionOptions) == null ? void 0 : _a.el) === "function" ? this.insertionOptions.el() : ((_b = this.insertionOptions) == null ? void 0 : _b.el) || this.target;
392
- const { where = "afterend" } = this.insertionOptions || {};
393
- insertionEl.insertAdjacentElement(where, this.overlay);
312
+ const a = typeof ((l = this.insertionOptions) == null ? void 0 : l.el) == "function" ? this.insertionOptions.el() : ((n = this.insertionOptions) == null ? void 0 : n.el) || this.target, { where: u = "afterend" } = this.insertionOptions || {};
313
+ a.insertAdjacentElement(u, this.overlay);
394
314
  }
395
315
  }
396
316
  }
397
- const trigger = directive(OverlayTriggerDirective);
398
- if (!customElements.get("luzmo-overlay")) {
399
- customElements.define("luzmo-overlay", LuzmoOverlay);
400
- }
401
- if (!customElements.get("luzmo-overlay-trigger")) {
402
- customElements.define("luzmo-overlay-trigger", LuzmoOverlayTrigger);
403
- }
317
+ const G = b(R);
318
+ customElements.get("luzmo-overlay") || customElements.define("luzmo-overlay", f);
319
+ customElements.get("luzmo-overlay-trigger") || customElements.define("luzmo-overlay-trigger", r);
404
320
  export {
405
- C as ClickController,
406
- H as HoverController,
407
- b as InteractionController,
408
- InteractionTypes,
409
- c as LONGPRESS_INSTRUCTIONS,
410
- d as LongpressController,
411
- LuzmoAbstractOverlay,
412
- LuzmoOverlay,
413
- LuzmoOverlayTrigger,
414
- OverlayTriggerDirective,
415
- P as PlacementController,
416
- S as SAFARI_FOCUS_RING_CLASS,
417
- SlottableRequestDirective,
418
- S2 as SlottableRequestEvent,
419
- V as VirtualTrigger,
420
- g as guaranteedAllTransitionend,
421
- l as lastInteractionType,
422
- a as nextFrame,
423
- n as noop,
424
- openOverlay,
425
- o as overlayTimer,
426
- p as placementUpdatedSymbol,
427
- removeSlottableRequest,
428
- slottableRequest,
429
- trigger
321
+ D as ClickController,
322
+ M as HoverController,
323
+ J as InteractionController,
324
+ O as InteractionTypes,
325
+ K as LONGPRESS_INSTRUCTIONS,
326
+ Q as LongpressController,
327
+ $ as LuzmoAbstractOverlay,
328
+ f as LuzmoOverlay,
329
+ r as LuzmoOverlayTrigger,
330
+ R as OverlayTriggerDirective,
331
+ W as PlacementController,
332
+ X as SAFARI_FOCUS_RING_CLASS,
333
+ x as SlottableRequestDirective,
334
+ ne as SlottableRequestEvent,
335
+ Y as VirtualTrigger,
336
+ Z as guaranteedAllTransitionend,
337
+ ee as lastInteractionType,
338
+ te as nextFrame,
339
+ oe as noop,
340
+ U as openOverlay,
341
+ re as overlayTimer,
342
+ le as placementUpdatedSymbol,
343
+ y as removeSlottableRequest,
344
+ N as slottableRequest,
345
+ G as trigger
430
346
  };