@luzmo/lucero 1.0.1-alpha.14 → 1.0.1-alpha.16

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 (275) hide show
  1. package/components/accordion/index.cjs +183 -6
  2. package/components/accordion/index.js +136 -88
  3. package/components/action-bar/index.cjs +85 -4
  4. package/components/action-bar/index.js +72 -50
  5. package/components/action-button/index.cjs +205 -3
  6. package/components/action-button/index.js +167 -93
  7. package/components/action-group/index.cjs +7 -1
  8. package/components/action-group/index.js +12 -8
  9. package/components/action-group-DHp8RHDf.js +392 -0
  10. package/components/action-group-MPf19RPV.cjs +391 -0
  11. package/components/action-menu/index.cjs +91 -11
  12. package/components/action-menu/index.js +66 -47
  13. package/components/avatar/index.cjs +63 -3
  14. package/components/avatar/index.js +54 -42
  15. package/components/base-COw9n7UR.cjs +119 -0
  16. package/components/base-DmeVy0cq.js +120 -0
  17. package/components/button/index.cjs +134 -2
  18. package/components/button/index.js +106 -72
  19. package/components/button-base-7Ak55xFd.cjs +206 -0
  20. package/components/button-base-C3kf6BTK.js +207 -0
  21. package/components/button-group/index.cjs +45 -1
  22. package/components/button-group/index.js +37 -25
  23. package/components/calendar/index.cjs +632 -1
  24. package/components/calendar/index.js +637 -7
  25. package/components/checkbox/index.cjs +111 -4
  26. package/components/checkbox/index.js +98 -53
  27. package/components/checkbox-mixin-8cL-vfDy.js +84 -0
  28. package/components/checkbox-mixin-CE7dJj3J.cjs +83 -0
  29. package/components/clear-button-Co6oKSgl.js +59 -0
  30. package/components/clear-button-X_HDY2eH.cjs +58 -0
  31. package/components/close-button-DPBK6Kpu.cjs +59 -0
  32. package/components/close-button-Miw9ZjoJ.js +60 -0
  33. package/components/color-area/index.cjs +440 -13
  34. package/components/color-area/index.js +322 -187
  35. package/components/color-controller-BjDZaxhX.js +491 -0
  36. package/components/color-controller-C3c_vb2P.cjs +490 -0
  37. package/components/color-field/index.cjs +95 -2
  38. package/components/color-field/index.js +77 -41
  39. package/components/color-handle/index.cjs +64 -3
  40. package/components/color-handle/index.js +58 -37
  41. package/components/color-loupe/index.cjs +7 -1
  42. package/components/color-loupe/index.js +12 -8
  43. package/components/color-loupe-BQqNR8YD.cjs +88 -0
  44. package/components/color-loupe-B_DDFv8l.js +89 -0
  45. package/components/color-menu/index.cjs +217 -12
  46. package/components/color-menu/index.js +187 -93
  47. package/components/color-palette/index.cjs +89 -1
  48. package/components/color-palette/index.js +78 -51
  49. package/components/color-palette-group/index.cjs +259 -3
  50. package/components/color-palette-group/index.js +193 -105
  51. package/components/color-picker/index.cjs +114 -6
  52. package/components/color-picker/index.js +92 -72
  53. package/components/color-slider/index.cjs +585 -1
  54. package/components/color-slider/index.js +590 -7
  55. package/components/{directive-oAbCiebi.js → condition-attribute-with-id-Cn815e9W.js} +22 -22
  56. package/components/condition-attribute-with-id-DEc2Yjne.cjs +43 -0
  57. package/components/date-time-picker/index.cjs +1357 -31
  58. package/components/date-time-picker/index.js +951 -637
  59. package/components/dependency-manger-CcIE1uvQ.cjs +63 -0
  60. package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-XHpQjFgK.js} +24 -14
  61. package/components/divider/index.cjs +54 -1
  62. package/components/divider/index.js +49 -30
  63. package/components/divider.module-Cm5LcDRV.cjs +20 -0
  64. package/components/divider.module-DauH6k2_.js +21 -0
  65. package/components/element-resolution-DCsrhGZO.cjs +112 -0
  66. package/components/element-resolution-nMlmW4Jy.js +113 -0
  67. package/components/field-group/index.cjs +7 -1
  68. package/components/field-group/index.js +12 -8
  69. package/components/field-group-DNmY8W9v.cjs +86 -0
  70. package/components/field-group-DVdAWCQF.js +87 -0
  71. package/components/field-label/index.cjs +7 -1
  72. package/components/field-label/index.js +12 -8
  73. package/components/field-label-CKH9EXpR.cjs +156 -0
  74. package/components/field-label-Dpsecoc6.js +157 -0
  75. package/components/focus-group-BqDAk9Is.js +337 -0
  76. package/components/focus-group-DFzOlalL.cjs +336 -0
  77. package/components/focus-visible-B-B8-P9R.cjs +104 -0
  78. package/components/focus-visible-BUPRWlsh.js +105 -0
  79. package/components/focusable-BPrTcZPd.cjs +262 -0
  80. package/components/focusable-ChCLg1k4.js +263 -0
  81. package/components/{directive-C7oCP5Bh.cjs → focusable-selectors-D0t_5P7C.cjs} +16 -5
  82. package/components/{focusable-selectors-B4YgbghQ.js → focusable-selectors-IltOAOd9.js} +7 -4
  83. package/components/icon/index.cjs +90 -1
  84. package/components/icon/index.js +74 -46
  85. package/components/index.cjs +174 -1
  86. package/components/index.js +174 -172
  87. package/components/infield-button/index.cjs +46 -2
  88. package/components/infield-button/index.js +41 -30
  89. package/components/label/index.cjs +37 -1
  90. package/components/label/index.js +36 -24
  91. package/components/{language-resolution-8yZa5r_P.js → language-resolution-BSGJAWiQ.js} +21 -16
  92. package/components/language-resolution-iN9EImbb.cjs +57 -0
  93. package/components/like-anchor-D62faRNG.cjs +79 -0
  94. package/components/like-anchor-v3cJ9RWM.js +80 -0
  95. package/components/manage-help-text-BYx84zZR.cjs +125 -0
  96. package/components/manage-help-text-DOuMTGht.js +126 -0
  97. package/components/menu/index.cjs +1297 -29
  98. package/components/menu/index.js +954 -499
  99. package/components/multi-language-field/index.cjs +132 -2
  100. package/components/multi-language-field/index.js +118 -88
  101. package/components/number-field/index.cjs +613 -10
  102. package/components/number-field/index.js +442 -243
  103. package/components/observe-slot-presence-9AwLGUQ_.cjs +78 -0
  104. package/components/observe-slot-presence-DcMdoumP.js +79 -0
  105. package/components/observe-slot-text-CSofZeeF.cjs +104 -0
  106. package/components/observe-slot-text-CjnkkBPn.js +105 -0
  107. package/components/options/index.cjs +693 -60
  108. package/components/options/index.js +519 -953
  109. package/components/overlay/index.cjs +367 -21
  110. package/components/overlay/index.js +273 -189
  111. package/components/overlay-CN8ISP1F.js +2485 -0
  112. package/components/overlay-LViy9VWM.cjs +2484 -0
  113. package/components/{pending-state-DTX7ggyF.js → pending-state-CXbe-Xul.js} +28 -13
  114. package/components/pending-state-e4RbXe9u.cjs +75 -0
  115. package/components/picker/index.cjs +9 -1
  116. package/components/picker/index.js +15 -11
  117. package/components/picker-DNde3awt.cjs +672 -0
  118. package/components/picker-PfUAF05y.js +673 -0
  119. package/components/picker-button/index.cjs +56 -4
  120. package/components/picker-button/index.js +45 -34
  121. package/components/platform-CxDar3Dn.cjs +68 -0
  122. package/components/platform-Cxn0WbyT.js +69 -0
  123. package/components/popover/index.cjs +7 -1
  124. package/components/popover/index.js +12 -8
  125. package/components/popover-BkbYhl3i.js +74 -0
  126. package/components/popover-BkgUf0kL.cjs +74 -0
  127. package/components/progress-circle/index.cjs +7 -1
  128. package/components/progress-circle/index.js +12 -8
  129. package/components/progress-circle-Hu_ivPHf.js +133 -0
  130. package/components/progress-circle-_Etqsj9f.cjs +132 -0
  131. package/components/radio/index.cjs +244 -2
  132. package/components/radio/index.js +192 -110
  133. package/components/{when-CDK1Tt5Y.js → random-id-BE6HA503.cjs} +7 -10
  134. package/components/{random-id-ByCz1xaq.js → random-id-BEc6QIUL.js} +3 -3
  135. package/components/roving-tabindex-AsmAh2In.cjs +95 -0
  136. package/components/roving-tabindex-DPF9NmrH.js +96 -0
  137. package/components/search/index.cjs +115 -8
  138. package/components/search/index.js +96 -66
  139. package/components/select/index.cjs +720 -51
  140. package/components/select/index.js +563 -347
  141. package/components/sized-mixin-DmkrNdWB.js +80 -0
  142. package/components/sized-mixin-UaTVa-AE.cjs +79 -0
  143. package/components/slider/index.cjs +119 -1
  144. package/components/slider/index.js +100 -1113
  145. package/components/{condition-attribute-with-id-Dv4lSRbe.js → slottable-request-event-CANixJnR.cjs} +15 -13
  146. package/components/{slottable-request-event-DggLA4Rx.js → slottable-request-event-D9WzrdWv.js} +12 -9
  147. package/components/strategies-DlMlaSJR.cjs +317 -0
  148. package/components/strategies-DlPQoTFE.js +318 -0
  149. package/components/streaming-listener-D4sHaMub.cjs +145 -0
  150. package/components/streaming-listener-cAz5zJyk.js +146 -0
  151. package/components/swatch/index.cjs +436 -7
  152. package/components/swatch/index.js +350 -205
  153. package/components/switch/index.cjs +61 -2
  154. package/components/switch/index.js +51 -34
  155. package/components/tabs/index.cjs +693 -26
  156. package/components/tabs/index.js +521 -388
  157. package/components/tags/index.cjs +201 -4
  158. package/components/tags/index.js +152 -87
  159. package/components/text-field/index.cjs +49 -3
  160. package/components/text-field/index.js +44 -30
  161. package/components/text-field-11tcnftU.cjs +338 -0
  162. package/components/text-field-Chi9J2Cz.js +339 -0
  163. package/components/text-field.module-CMBS0jSL.js +21 -0
  164. package/components/text-field.module-DIJdV_sA.cjs +20 -0
  165. package/components/toast/index.cjs +177 -12
  166. package/components/toast/index.js +145 -73
  167. package/components/tooltip/index.cjs +221 -6
  168. package/components/tooltip/index.js +156 -109
  169. package/components/unit-input/index.cjs +232 -8
  170. package/components/unit-input/index.js +201 -108
  171. package/components/utils.cjs +25 -1
  172. package/components/utils.js +22 -22
  173. package/package.json +1 -1
  174. package/components/NumberFormatter-DewVDY5w.cjs +0 -18
  175. package/components/NumberFormatter-DgOUVrge.js +0 -136
  176. package/components/NumberParser-Dik4a0h-.cjs +0 -18
  177. package/components/NumberParser-ci9J5EKv.js +0 -173
  178. package/components/action-group-DBImibFn.js +0 -258
  179. package/components/action-group-DJGMcRHb.cjs +0 -20
  180. package/components/async-directive-BX1T1e1_.cjs +0 -22
  181. package/components/async-directive-BfcqVjDp.js +0 -82
  182. package/components/base-BjTwmyRF.cjs +0 -22
  183. package/components/base-CBCg3yyw.cjs +0 -40
  184. package/components/base-D76d76ww.js +0 -26
  185. package/components/base-WsynuqaS.js +0 -677
  186. package/components/button-base-DbkDzb71.js +0 -144
  187. package/components/button-base-XgPLmwP-.cjs +0 -25
  188. package/components/checkbox-mixin-BDN0dBtS.cjs +0 -27
  189. package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
  190. package/components/class-map-Di1D_rCm.cjs +0 -22
  191. package/components/class-map-NbVXqBU0.js +0 -51
  192. package/components/clear-button-DQcRdcUa.js +0 -53
  193. package/components/clear-button-OFUFFe7G.cjs +0 -18
  194. package/components/close-button-Cbnb7XXj.cjs +0 -18
  195. package/components/close-button-CqHYZhum.js +0 -51
  196. package/components/color-controller-B0uX6Zso.js +0 -3230
  197. package/components/color-controller-CoUL5f9K.cjs +0 -18
  198. package/components/color-loupe-CaA_Lfkk.cjs +0 -56
  199. package/components/color-loupe-CmMsXbjT.js +0 -81
  200. package/components/condition-attribute-with-id-DrQYZzFS.cjs +0 -18
  201. package/components/dependency-manger-C5HCkMMB.cjs +0 -18
  202. package/components/directive-helpers-Cm6gitnu.js +0 -62
  203. package/components/directive-helpers-DyIRTWwA.cjs +0 -22
  204. package/components/divider.module-DDvBo9zo.cjs +0 -18
  205. package/components/divider.module-DoQWQEIJ.js +0 -21
  206. package/components/element-resolution-BvRLGqIU.cjs +0 -18
  207. package/components/element-resolution-FCUT-wql.js +0 -91
  208. package/components/field-group-DXfBWrkO.js +0 -66
  209. package/components/field-group-DkGst3r5.cjs +0 -23
  210. package/components/field-label-CZ2zzChK.js +0 -106
  211. package/components/field-label-mO1AkUgR.cjs +0 -25
  212. package/components/flow-D-0MTYCm.js +0 -527
  213. package/components/flow-DM3dNAKs.cjs +0 -30
  214. package/components/focus-group-DHeTq18L.js +0 -218
  215. package/components/focus-group-DnxZUBhQ.cjs +0 -18
  216. package/components/focus-visible-B0P9aY_G.cjs +0 -18
  217. package/components/focus-visible-DBlJGoEW.js +0 -74
  218. package/components/focusable-BxtpnzWp.js +0 -153
  219. package/components/focusable-EbipgXRh.cjs +0 -18
  220. package/components/focusable-selectors-BgFlyFcY.cjs +0 -18
  221. package/components/if-defined-C9YGdo33.cjs +0 -22
  222. package/components/if-defined-DOaE2coe.js +0 -27
  223. package/components/index-BwxgAdzi.cjs +0 -57
  224. package/components/index-Cl54m8Yh.js +0 -1490
  225. package/components/index-HjQa8tew.js +0 -1174
  226. package/components/index-Wq3qZJGh.cjs +0 -113
  227. package/components/language-resolution-DJzmyzZq.cjs +0 -18
  228. package/components/like-anchor-Bvn_vLQ8.js +0 -69
  229. package/components/like-anchor-sod1C1fR.cjs +0 -32
  230. package/components/luzmo-icons-4nDFv1Lq.js +0 -229
  231. package/components/luzmo-icons-D4IvHgVd.cjs +0 -29
  232. package/components/manage-help-text-DhgARkZX.cjs +0 -30
  233. package/components/manage-help-text-syYnjKGL.js +0 -92
  234. package/components/mutation-controller-DH7YOCyj.js +0 -52
  235. package/components/mutation-controller-DkOMCW-c.cjs +0 -22
  236. package/components/observe-slot-presence-CmVi0zTc.js +0 -68
  237. package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
  238. package/components/observe-slot-text-BPfIQQtz.js +0 -87
  239. package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
  240. package/components/overlay-Cig9r6uU.js +0 -2747
  241. package/components/overlay-KSKMzzkh.cjs +0 -47
  242. package/components/pending-state-CaH1si5b.cjs +0 -26
  243. package/components/picker-BfBP7XJN.js +0 -461
  244. package/components/picker-xIphqE6d.cjs +0 -123
  245. package/components/platform-BM-uMWpX.js +0 -69
  246. package/components/platform-BiXhwqk3.cjs +0 -18
  247. package/components/popover-DjX0aAnY.js +0 -67
  248. package/components/popover-KFfO0IYL.cjs +0 -30
  249. package/components/progress-circle-BvRJNuNo.cjs +0 -33
  250. package/components/progress-circle-DXH9z8-6.js +0 -97
  251. package/components/query-BL-TJj7K.cjs +0 -22
  252. package/components/query-D_KR_GUc.js +0 -51
  253. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  254. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  255. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  256. package/components/query-assigned-nodes-C76XVPWY.js +0 -36
  257. package/components/random-id-CqvckpWe.cjs +0 -18
  258. package/components/roving-tabindex-By_fCy_e.cjs +0 -18
  259. package/components/roving-tabindex-DOg4z6ZU.js +0 -66
  260. package/components/sized-mixin-CPxE5C96.cjs +0 -18
  261. package/components/sized-mixin-D4ACoVUr.js +0 -63
  262. package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
  263. package/components/state-D8JEtYqe.cjs +0 -22
  264. package/components/state-Deh-vKYE.js +0 -29
  265. package/components/strategies-9indNIEb.js +0 -195
  266. package/components/strategies-BACP6MhR.cjs +0 -18
  267. package/components/streaming-listener-B00MvALi.cjs +0 -18
  268. package/components/streaming-listener-CP-JE6Fa.js +0 -91
  269. package/components/style-map-CeilmSgs.cjs +0 -22
  270. package/components/style-map-IgqIKvlE.js +0 -53
  271. package/components/text-field-CeG75PPO.cjs +0 -85
  272. package/components/text-field-DCl-AFM-.js +0 -314
  273. package/components/text-field.module-C2KVUJcX.js +0 -21
  274. package/components/text-field.module-DXhFA9G-.cjs +0 -18
  275. package/components/when-CDZyJPvd.cjs +0 -22
@@ -15,82 +15,110 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { e as f, I as O, s as S, L as $ } from "../overlay-Cig9r6uU.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-Cig9r6uU.js";
20
- import { a as E, r as w, x as m, n as c, E as z, B as v } from "../base-WsynuqaS.js";
21
- import { r as g } from "../state-Deh-vKYE.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-BfcqVjDp.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);
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);
31
24
  }
32
25
  };
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;
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;
39
44
  };
40
- class r extends E {
45
+ class LuzmoOverlayTrigger extends LuzmoElement {
41
46
  constructor() {
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 = [];
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 = [];
43
56
  }
44
57
  static get styles() {
45
- return [w(F)];
58
+ return [unsafeCSS(overlayTriggerStyles)];
46
59
  }
47
- getAssignedElementsFromSlot(e) {
48
- return e.assignedElements({ flatten: !0 });
60
+ getAssignedElementsFromSlot(slot) {
61
+ return slot.assignedElements({ flatten: true });
49
62
  }
50
- handleTriggerContent(e) {
51
- this.targetContent = this.getAssignedElementsFromSlot(e.target);
63
+ handleTriggerContent(event) {
64
+ this.targetContent = this.getAssignedElementsFromSlot(event.target);
52
65
  }
53
- handleSlotContent(e) {
54
- switch (e.target.name) {
66
+ handleSlotContent(event) {
67
+ switch (event.target.name) {
55
68
  case "click-content": {
56
- this.clickContent = this.getAssignedElementsFromSlot(e.target);
69
+ this.clickContent = this.getAssignedElementsFromSlot(event.target);
57
70
  break;
58
71
  }
59
72
  case "longpress-content": {
60
- this.longpressContent = this.getAssignedElementsFromSlot(e.target);
73
+ this.longpressContent = this.getAssignedElementsFromSlot(event.target);
61
74
  break;
62
75
  }
63
76
  case "hover-content": {
64
- this.hoverContent = this.getAssignedElementsFromSlot(e.target);
77
+ this.hoverContent = this.getAssignedElementsFromSlot(event.target);
65
78
  break;
66
79
  }
67
80
  }
68
81
  }
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
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 {
79
92
  return;
80
- e.newState === "open" ? this.open = t : this.open === t && (this.open = void 0);
93
+ }
94
+ if (event.newState === "open") {
95
+ this.open = type;
96
+ } else if (this.open === type) {
97
+ this.open = void 0;
98
+ }
81
99
  }
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);
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);
85
112
  }
86
- renderSlot(e) {
87
- return m`
88
- <slot name=${e} @slotchange=${this.handleSlotContent}></slot>
113
+ renderSlot(name) {
114
+ return html`
115
+ <slot name=${name} @slotchange=${this.handleSlotContent}></slot>
89
116
  `;
90
117
  }
91
118
  renderClickOverlay() {
92
- var t;
93
- const e = this.renderSlot("click-content"), o = m`
119
+ var _a;
120
+ const slot = this.renderSlot("click-content");
121
+ const clickOverlay = html`
94
122
  <luzmo-overlay
95
123
  id="click-overlay"
96
124
  ?disabled=${this.disabled || this.clickContent.length === 0}
@@ -103,14 +131,21 @@ class r extends E {
103
131
  @beforetoggle=${this.handleBeforetoggle}
104
132
  .receivesFocus=${this.receivesFocus}
105
133
  >
106
- ${e}
134
+ ${slot}
107
135
  </luzmo-overlay>
108
136
  `;
109
- return (t = this.triggeredBy) != null && t.includes("click") ? o : this.clickContent.length === 0 ? e : o;
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;
110
144
  }
111
145
  renderHoverOverlay() {
112
- var t;
113
- const e = this.renderSlot("hover-content"), o = m`
146
+ var _a;
147
+ const slot = this.renderSlot("hover-content");
148
+ const hoverOverlay = html`
114
149
  <luzmo-overlay
115
150
  id="hover-overlay"
116
151
  ?open=${this.open === "hover" && this.hoverContent.length > 0}
@@ -123,14 +158,21 @@ class r extends E {
123
158
  @beforetoggle=${this.handleBeforetoggle}
124
159
  .receivesFocus=${this.receivesFocus}
125
160
  >
126
- ${e}
161
+ ${slot}
127
162
  </luzmo-overlay>
128
163
  `;
129
- return (t = this.triggeredBy) != null && t.includes("hover") ? o : this.hoverContent.length === 0 ? e : o;
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;
130
171
  }
131
172
  renderLongpressOverlay() {
132
- var t;
133
- const e = this.renderSlot("longpress-content"), o = m`
173
+ var _a;
174
+ const slot = this.renderSlot("longpress-content");
175
+ const longpressOverlay = html`
134
176
  <luzmo-overlay
135
177
  id="longpress-overlay"
136
178
  ?disabled=${this.disabled || this.longpressContent.length === 0}
@@ -143,14 +185,20 @@ class r extends E {
143
185
  @beforetoggle=${this.handleBeforetoggle}
144
186
  .receivesFocus=${this.receivesFocus}
145
187
  >
146
- ${e}
188
+ ${slot}
147
189
  </luzmo-overlay>
148
190
  <slot name="longpress-describedby-descriptor"></slot>
149
191
  `;
150
- return (t = this.triggeredBy) != null && t.includes("longpress") ? o : this.longpressContent.length === 0 ? e : o;
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;
151
199
  }
152
200
  render() {
153
- return m`
201
+ return html`
154
202
  <slot
155
203
  id="trigger"
156
204
  name="trigger"
@@ -163,184 +211,220 @@ class r extends E {
163
211
  ]}
164
212
  `;
165
213
  }
166
- updated(e) {
167
- if (super.updated(e), this.disabled && e.has("disabled")) {
214
+ updated(changedProperties) {
215
+ super.updated(changedProperties);
216
+ if (this.disabled && changedProperties.has("disabled")) {
168
217
  this.open = void 0;
169
218
  return;
170
219
  }
171
220
  }
172
221
  async getUpdateComplete() {
173
- return await super.getUpdateComplete();
222
+ const complete = await super.getUpdateComplete();
223
+ return complete;
174
224
  }
175
225
  }
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
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
227
277
  );
228
278
  }
229
- class x extends A {
279
+ class SlottableRequestDirective extends AsyncDirective {
230
280
  /* c8 ignore next 9 */
231
- render(e) {
232
- return z;
281
+ render(_template) {
282
+ return nothing;
233
283
  }
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();
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();
236
292
  }
237
- handleSlottableRequest(e) {
238
- if (e.target !== e.currentTarget)
293
+ handleSlottableRequest(event) {
294
+ if (event.target !== event.currentTarget) {
239
295
  return;
240
- const o = e.data === y;
241
- v(o ? void 0 : this.template(), this.target, {
296
+ }
297
+ const willRemoveSlottable = event.data === removeSlottableRequest;
298
+ render(willRemoveSlottable ? void 0 : this.template(), this.target, {
242
299
  renderBefore: this.renderBefore
243
300
  });
244
301
  }
245
302
  init() {
246
- var o;
247
- (o = this.listeners) == null || o.abort(), this.listeners = new AbortController();
248
- const { signal: e } = this.listeners;
303
+ var _a;
304
+ (_a = this.listeners) == null ? void 0 : _a.abort();
305
+ this.listeners = new AbortController();
306
+ const { signal } = this.listeners;
249
307
  this.listenerHost.addEventListener(
250
308
  "slottable-request",
251
- (t) => this.handleSlottableRequest(t),
252
- { signal: e }
309
+ (event) => this.handleSlottableRequest(event),
310
+ { signal }
253
311
  );
254
312
  }
255
313
  disconnected() {
256
- var e;
257
- (e = this.listeners) == null || e.abort();
314
+ var _a;
315
+ (_a = this.listeners) == null ? void 0 : _a.abort();
258
316
  }
259
317
  /* c8 ignore next 3 */
260
318
  reconnected() {
261
319
  this.init();
262
320
  }
263
321
  }
264
- const N = b(x);
265
- class R extends x {
322
+ const slottableRequest = directive(SlottableRequestDirective);
323
+ class OverlayTriggerDirective extends SlottableRequestDirective {
266
324
  constructor() {
267
- super(...arguments), this.defaultOptions = {
325
+ super(...arguments);
326
+ this.defaultOptions = {
268
327
  triggerInteraction: "click",
269
328
  overlayOptions: {
270
329
  type: "auto",
271
330
  offset: 0
272
331
  }
273
- }, this.options = {
332
+ };
333
+ this.options = {
274
334
  ...this.defaultOptions.overlayOptions
275
335
  };
276
336
  }
277
337
  /* c8 ignore next 9 */
278
- render(e, o) {
279
- return z;
338
+ render(_template, _options) {
339
+ return nothing;
280
340
  }
281
- update(e, [o, t]) {
282
- var u, d, p;
341
+ update(part, [template, options]) {
342
+ var _a, _b, _c;
283
343
  this.options = {
284
344
  ...this.defaultOptions.overlayOptions,
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;
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;
295
368
  }
296
- handleSlottableRequest(e) {
297
- var l, n;
298
- if (e.target !== e.currentTarget)
369
+ handleSlottableRequest(event) {
370
+ var _a, _b;
371
+ if (event.target !== event.currentTarget) {
299
372
  return;
300
- const o = e.data === y, t = {};
301
- if (this.host && (t.host = this.host), v(
302
- o ? void 0 : this.template(),
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(),
303
381
  this.overlay,
304
- t
305
- ), o)
382
+ options
383
+ );
384
+ if (willRemoveSlottable) {
306
385
  this.overlay.remove();
307
- else {
308
- $.applyOptions(this.overlay, {
386
+ } else {
387
+ LuzmoAbstractOverlay.applyOptions(this.overlay, {
309
388
  ...this.options,
310
389
  trigger: this.target
311
390
  });
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);
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);
314
394
  }
315
395
  }
316
396
  }
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);
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
+ }
320
404
  export {
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
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
346
430
  };