@luzmo/analytics-components-kit 1.0.1-alpha.31 → 1.0.1-alpha.32

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 (217) hide show
  1. package/components/{async-directive-C_bp5UcZ-B5_19oN_.js → async-directive-BfcqVjDp-BCT-lA4F.js} +8 -8
  2. package/components/{async-directive-C_bp5UcZ-mUPcBvyn.cjs → async-directive-BfcqVjDp-C8C45jl6.cjs} +3 -3
  3. package/components/{base-D76d76ww-D0dTUBua.js → base-D76d76ww-BGkuhs54.js} +59 -47
  4. package/components/{base-D76d76ww-BEIhYtgV.cjs → base-D76d76ww-tT6yr8eb.cjs} +9 -9
  5. package/components/{button-base-WsJSnMie-B1TLbPwk.cjs → button-base-DbkDzb71-CY6MJGqE.cjs} +2 -2
  6. package/components/{button-base-WsJSnMie-CyGPs7kd.js → button-base-DbkDzb71-R8oqSqlY.js} +4 -4
  7. package/components/calculate-data-item-icon-BtUWtDx3.cjs +20 -0
  8. package/components/calculate-data-item-icon-DauSiV8c.js +97 -0
  9. package/components/{checkbox-mixin-CmeCReJh-wY0R8cuc.cjs → checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs} +3 -3
  10. package/components/{checkbox-mixin-CmeCReJh-C94-rm4F.js → checkbox-mixin-Do7EgtpQ-hne79zc-.js} +2 -2
  11. package/components/{de-BaTUIQk1.js → de-CCq00pbq.js} +55 -1
  12. package/components/de-DcZysUyZ.cjs +20 -0
  13. package/components/{directive-helpers-Bx_ey3Gk-BxvL9t9F.cjs → directive-helpers-Cm6gitnu-BeggOiwf.cjs} +4 -4
  14. package/components/{directive-helpers-Bx_ey3Gk-Csi4AxXe.js → directive-helpers-Cm6gitnu-CeYtlPO9.js} +53 -19
  15. package/components/display-settings/index.cjs +1 -1
  16. package/components/display-settings/index.js +18 -17
  17. package/components/display-settings-binning/display-settings-binning.d.ts +0 -1
  18. package/components/display-settings-binning/index.cjs +3 -2
  19. package/components/display-settings-binning/index.js +21 -21
  20. package/components/display-settings-datetime/index.cjs +2 -2
  21. package/components/display-settings-datetime/index.js +37 -35
  22. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +0 -1
  23. package/components/display-settings-grand-totals/index.cjs +4 -3
  24. package/components/display-settings-grand-totals/index.js +21 -21
  25. package/components/display-settings-numeric/index.cjs +14 -14
  26. package/components/display-settings-numeric/index.js +32 -30
  27. package/components/display-settings-period-over-period/index.cjs +6 -6
  28. package/components/display-settings-period-over-period/index.js +36 -34
  29. package/components/draggable-data-item/index.cjs +3 -3
  30. package/components/draggable-data-item/index.js +15 -13
  31. package/components/draggable-data-item-level/index.cjs +9 -9
  32. package/components/draggable-data-item-level/index.js +96 -167
  33. package/components/droppable-slot/index.cjs +2 -2
  34. package/components/droppable-slot/index.js +21 -19
  35. package/components/edit-item/index.cjs +11 -11
  36. package/components/edit-item/index.js +13 -12
  37. package/components/edit-option/index.cjs +1 -1
  38. package/components/edit-option/index.js +1 -1
  39. package/components/edit-option-action-button-group/index.cjs +2 -1
  40. package/components/edit-option-action-button-group/index.js +44 -43
  41. package/components/edit-option-base-CSJNbo2E.cjs +53 -0
  42. package/components/{edit-option-base-DOezOLDd.js → edit-option-base-DeQjGX4i.js} +5 -4
  43. package/components/edit-option-color-picker/index.cjs +23 -23
  44. package/components/edit-option-color-picker/index.js +50 -50
  45. package/components/edit-option-multi-language-field/index.cjs +1 -1
  46. package/components/edit-option-multi-language-field/index.js +3 -3
  47. package/components/edit-option-number-field/index.cjs +2 -2
  48. package/components/edit-option-number-field/index.js +3 -3
  49. package/components/edit-option-picker/index.cjs +2 -2
  50. package/components/edit-option-picker/index.js +4 -4
  51. package/components/edit-option-position-picker/index.cjs +1 -1
  52. package/components/edit-option-position-picker/index.js +3 -3
  53. package/components/edit-option-positions-number-field/index.cjs +1 -1
  54. package/components/edit-option-positions-number-field/index.js +7 -7
  55. package/components/edit-option-radio-button-group/index.cjs +4 -4
  56. package/components/edit-option-radio-button-group/index.js +4 -4
  57. package/components/edit-option-slider/index.cjs +2 -2
  58. package/components/edit-option-slider/index.js +27 -27
  59. package/components/edit-option-switch/index.cjs +3 -3
  60. package/components/edit-option-switch/index.js +5 -5
  61. package/components/edit-option-text-field/index.cjs +2 -2
  62. package/components/edit-option-text-field/index.js +3 -3
  63. package/components/es-CGiBfBKJ.cjs +20 -0
  64. package/components/{es-D37mTCZB.js → es-DBmbFw-L.js} +55 -1
  65. package/components/filter-data-item-picker/filter-data-item-picker.d.ts +88 -0
  66. package/components/filter-data-item-picker/index.cjs +47 -0
  67. package/components/filter-data-item-picker/index.d.ts +7 -0
  68. package/components/filter-data-item-picker/index.js +193 -0
  69. package/components/filter-expression-picker/filter-expression-picker.d.ts +74 -0
  70. package/components/filter-expression-picker/index.cjs +20 -0
  71. package/components/filter-expression-picker/index.d.ts +7 -0
  72. package/components/filter-expression-picker/index.js +30 -0
  73. package/components/filter-group/filter-group.d.ts +26 -0
  74. package/components/filter-group/index.d.ts +7 -0
  75. package/components/filter-item/filter-item.d.ts +76 -0
  76. package/components/filter-item/index.cjs +52 -0
  77. package/components/filter-item/index.d.ts +7 -0
  78. package/components/filter-item/index.js +271 -0
  79. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
  80. package/components/filter-parameter-picker/index.d.ts +7 -0
  81. package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
  82. package/components/filter-value-picker/index.cjs +51 -0
  83. package/components/filter-value-picker/index.d.ts +7 -0
  84. package/components/filter-value-picker/index.js +149 -0
  85. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +43 -0
  86. package/components/filter-value-picker-datetime/index.cjs +288 -0
  87. package/components/filter-value-picker-datetime/index.d.ts +7 -0
  88. package/components/filter-value-picker-datetime/index.js +2820 -0
  89. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +82 -0
  90. package/components/filter-value-picker-hierarchy/index.cjs +46 -0
  91. package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
  92. package/components/filter-value-picker-hierarchy/index.js +278 -0
  93. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +83 -0
  94. package/components/filter-value-picker-numeric/index.cjs +46 -0
  95. package/components/filter-value-picker-numeric/index.d.ts +7 -0
  96. package/components/filter-value-picker-numeric/index.js +274 -0
  97. package/components/flow-D-0MTYCm-BOBCoA5Z.js +546 -0
  98. package/components/flow-D-0MTYCm-BW5krWol.cjs +48 -0
  99. package/components/{focusable-BNESohBR-DbTLvYXr.cjs → focusable-BxtpnzWp-CkK9AeMt.cjs} +2 -2
  100. package/components/{focusable-BNESohBR-DYvAZYXL.js → focusable-BxtpnzWp-DJQkL8Zv.js} +1 -1
  101. package/components/focusable-DB6Uhr-C.js +275 -0
  102. package/components/focusable-_wp5pWO-.cjs +20 -0
  103. package/components/{fr-BWJHvkss.js → fr-BOwMikLT.js} +55 -1
  104. package/components/fr-DZbYwMlh.cjs +20 -0
  105. package/components/{get-css-variable-Bhbr-Kr1.js → get-css-variable-YlLiVgo8.js} +2 -2
  106. package/components/{if-defined-DbhS35z5.js → if-defined-B4gwZxx6.js} +1 -1
  107. package/components/{if-defined-D-1p2bLN-Bn-33APC.js → if-defined-DOaE2coe-CNT45Xcl.js} +1 -1
  108. package/components/{if-defined-D-1p2bLN-0_AoRnT2.cjs → if-defined-DOaE2coe-Cvlu5s9n.cjs} +1 -1
  109. package/components/{if-defined-CF8baNdl.cjs → if-defined-DqthfJme.cjs} +2 -2
  110. package/components/{index-Dwp251OJ.js → index-5mZhN-HJ.js} +7 -6
  111. package/components/{index-B3jkBlKY.js → index-BC1LV3vH.js} +3 -3
  112. package/components/{index-BXMPi13W.js → index-BCBLJ-ei.js} +82 -82
  113. package/components/{index-B9dQtvu7.js → index-BHJH1eGn.js} +3 -3
  114. package/components/index-BHXq1-M1.cjs +195 -0
  115. package/components/{index-C2-2RrwB.cjs → index-BKwbYw6x.cjs} +3 -3
  116. package/components/index-BOqSYlku.cjs +38 -0
  117. package/components/{index-D5rT-qy9.cjs → index-Bafc5poK.cjs} +12 -28
  118. package/components/{index-CqFCIIIl.js → index-BbuNpVBr.js} +3 -3
  119. package/components/{index-CRx2nPkq.js → index-Bmpw4rGV.js} +3 -3
  120. package/components/{index-D8Na-686.cjs → index-BoXbQm2o.cjs} +1 -1
  121. package/components/{index-uRWe553S.cjs → index-BtIWR_s6.cjs} +4 -4
  122. package/components/index-BwsEWpIS.js +494 -0
  123. package/components/{index-CF84gqsb.cjs → index-C2PPSv8E.cjs} +4 -4
  124. package/components/{index-CbeVu32V.js → index-C3N6qTxJ.js} +3 -3
  125. package/components/index-C5m9vRp5.js +598 -0
  126. package/components/{index-bZQXFqxv.cjs → index-CBOAQ3-E.cjs} +10 -10
  127. package/components/{index-_McOOiwL.cjs → index-CSm0I7Gz.cjs} +4 -4
  128. package/components/index-CTHlwZ9E.cjs +274 -0
  129. package/components/{index-Brg_sVUg.js → index-CTVNGPeT.js} +1 -1
  130. package/components/{index-Rjoe8cIs.js → index-Cb5l6iK_.js} +110 -173
  131. package/components/{index-BkCJwWm3.cjs → index-CeENkpNK.cjs} +3 -3
  132. package/components/{index-BnbhRpm9.js → index-CnRQGFHT.js} +3 -3
  133. package/components/{index-BKcvEgWr.cjs → index-CnpJUw_z.cjs} +3 -3
  134. package/components/{index-DJik7S7b.js → index-CsDgk_sj.js} +2 -2
  135. package/components/{index-fl13NYnO.js → index-CskV_bXp.js} +2 -2
  136. package/components/index-CyWwLYEO.js +1789 -0
  137. package/components/index-D9yzIoGv.js +1666 -0
  138. package/components/{index-Bwxvaqxq.cjs → index-DF-s3cEL.cjs} +11 -11
  139. package/components/{index-CVuJ-LUO.cjs → index-DSQyBS9Z.cjs} +2 -2
  140. package/components/{index-Bb8vxGZY.js → index-Desl7GJ0.js} +19 -15
  141. package/components/{index-0HUnZcem.cjs → index-DtohCwyO.cjs} +2 -2
  142. package/components/index-TQG9Xdxu.cjs +20 -0
  143. package/components/index-c2uKLWDt.cjs +157 -0
  144. package/components/{index-C9-QEfA9.cjs → index-j8UKjHqY.cjs} +4 -4
  145. package/components/{index-DZZMSlYS.js → index-rQxtPaJl.js} +6 -6
  146. package/components/index.cjs +1 -1
  147. package/components/index.js +41 -27
  148. package/components/localized-decorator-ClAOFk8M.cjs +28 -0
  149. package/components/localized-decorator-DGnMToFa.js +48 -0
  150. package/components/{luzmo-icons-U09GB75o.js → luzmo-icons-CPucBq6e.js} +89 -89
  151. package/components/luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs +47 -0
  152. package/components/{luzmo-icons-BLN3xVgr-Tz5XXgbL.js → luzmo-icons-DbwDQtuO-QG0fLECn.js} +67 -25
  153. package/components/luzmo-icons-Nyf1P71v.cjs +31 -0
  154. package/components/nl-0V96M02q.cjs +20 -0
  155. package/components/nl-CY0iO3Ch.js +158 -0
  156. package/components/observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs +36 -0
  157. package/components/observe-slot-presence-CmVi0zTc-DCFuXW7v.js +87 -0
  158. package/components/{observe-slot-text-CVKLDesL-BB2RmFgc.cjs → observe-slot-text-BPfIQQtz-DHOh38Ve.cjs} +4 -4
  159. package/components/{observe-slot-text-CVKLDesL-CXUeCmXW.js → observe-slot-text-BPfIQQtz-v6B-1BYh.js} +5 -5
  160. package/components/pending-state-DTX7ggyF-BQGaWUEI.cjs +80 -0
  161. package/components/pending-state-DTX7ggyF-KolnwUB7.js +321 -0
  162. package/components/{periods.const-CDIkC5CK.cjs → periods.const-BbgInj9J.cjs} +1 -1
  163. package/components/{periods.const-GHh5bPfs.js → periods.const-D2cMP5hH.js} +1 -1
  164. package/components/{popover-DRyjN9y_-w1zh4tvw.js → popover-DjX0aAnY-B_ujTfos.js} +2 -2
  165. package/components/{popover-DRyjN9y_-7mF_fAOh.cjs → popover-DjX0aAnY-CSUMV_Ay.cjs} +3 -3
  166. package/components/property-CxtZroGf.js +600 -0
  167. package/components/property-Dlf9S6Jz.cjs +42 -0
  168. package/components/{query-assigned-nodes-C76XVPWY-k1jDPyUQ.cjs → query-assigned-nodes-C76XVPWY-BW2w3V7-.cjs} +1 -1
  169. package/components/{query-assigned-nodes-C76XVPWY-BWouxGZs.js → query-assigned-nodes-C76XVPWY-DxNwGHfW.js} +1 -1
  170. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  171. package/components/{scatter-plot-options.config-lrkd9qj4.js → scatter-plot-options.config-Corlzno1.js} +78 -48
  172. package/components/set-locale-5FFfQpVQ.cjs +52 -0
  173. package/components/set-locale-DAGnJZD8.js +188 -0
  174. package/components/{sized-mixin-DMuOVsw0.js → sized-mixin-C7R5uRbF.js} +1 -1
  175. package/components/sized-mixin-ZTphZKLm.cjs +20 -0
  176. package/components/slot-menu/index.cjs +1 -1
  177. package/components/slot-menu/index.js +12 -11
  178. package/components/slot-menu-list/index.cjs +3 -3
  179. package/components/slot-menu-list/index.js +15 -14
  180. package/components/{state-e2n-fyrr.js → state-BVYsk_HZ.js} +1 -1
  181. package/components/{state-QgHgNZLe.cjs → state-CrfOw8Zp.cjs} +2 -2
  182. package/components/{streaming-listener-C8Ctj0Q6-lanbGKR9.js → streaming-listener-CP-JE6Fa-9MH0gENR.js} +3 -3
  183. package/components/{streaming-listener-C8Ctj0Q6-BhMxS69F.cjs → streaming-listener-CP-JE6Fa-DMzr1X1m.cjs} +3 -3
  184. package/components/{task-fQFUVV8e.cjs → task-CdvrMX8r.cjs} +2 -2
  185. package/components/{task-gE27tBDv.js → task-DH8UFyxP.js} +1 -1
  186. package/components/{text-field-C0pFjPG1-BCVbGXp7.cjs → text-field-BIADXoLC-B8w9TVmS.cjs} +8 -8
  187. package/components/{text-field-C0pFjPG1-B4TRivuD.js → text-field-BIADXoLC-B9oE05VF.js} +11 -10
  188. package/custom-elements.json +1891 -34
  189. package/index.d.ts +7 -0
  190. package/item-definitions/scatter-plot/scatter-plot-options.config.d.ts +3 -0
  191. package/package.json +46 -1
  192. package/utils/data-broker/index.d.ts +179 -0
  193. package/utils/data-item-types/calculate-data-item-icon.d.ts +3 -0
  194. package/utils/filters/expressions.d.ts +15 -0
  195. package/utils/filters/index.d.ts +1 -0
  196. package/utils/localize/set-locale.d.ts +4 -2
  197. package/utils/types/column.types.d.ts +1 -1
  198. package/components/de-DgHoh7KS.cjs +0 -20
  199. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +0 -2
  200. package/components/edit-option-base-jkkFevzT.cjs +0 -53
  201. package/components/es-ByW01bzN.cjs +0 -20
  202. package/components/focusable-Cu_m_GTh.cjs +0 -42
  203. package/components/focusable-Dw_pMNQL.js +0 -852
  204. package/components/fr-DnFUAglm.cjs +0 -20
  205. package/components/index-CqynTbW1.cjs +0 -217
  206. package/components/index-DFnzlbHX.js +0 -779
  207. package/components/index-hogChFy0.cjs +0 -195
  208. package/components/luzmo-icons-BDClm1AE.cjs +0 -31
  209. package/components/luzmo-icons-BLN3xVgr-Cr3OrsqW.cjs +0 -47
  210. package/components/nl-CWxJcTNT.js +0 -104
  211. package/components/nl-CpfDNK5c.cjs +0 -20
  212. package/components/scatter-plot-options.config-DkJLutNb.cjs +0 -20
  213. package/components/set-locale-ByIApH40.cjs +0 -60
  214. package/components/set-locale-DJYT4V7U.js +0 -212
  215. package/components/sized-mixin-Cqlxwicw.cjs +0 -20
  216. /package/components/{divider.module-DwOuLGU3-B19eHVg2.js → divider.module-DoQWQEIJ-B19eHVg2.js} +0 -0
  217. /package/components/{divider.module-DwOuLGU3-Bg8RrFkc.cjs → divider.module-DoQWQEIJ-Bg8RrFkc.cjs} +0 -0
@@ -0,0 +1,546 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ /*! * Lucero - The design system for Luzmo.
21
+ *
22
+ * Copyright © 2025 Luzmo
23
+ * All rights reserved.
24
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
25
+ * This license allows users with a current active Luzmo account to use Lucero.
26
+ * This license terminates automatically if a user no longer has an active Luzmo account.
27
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ * */
37
+ /**
38
+ * @license
39
+ * Copyright 2021 Google LLC
40
+ * SPDX-License-Identifier: BSD-3-Clause
41
+ */
42
+ class g {
43
+ constructor(i) {
44
+ this._map = /* @__PURE__ */ new Map(), this._roundAverageSize = !1, this.totalSize = 0, (i == null ? void 0 : i.roundAverageSize) === !0 && (this._roundAverageSize = !0);
45
+ }
46
+ set(i, t) {
47
+ const s = this._map.get(i) || 0;
48
+ this._map.set(i, t), this.totalSize += t - s;
49
+ }
50
+ get averageSize() {
51
+ if (this._map.size > 0) {
52
+ const i = this.totalSize / this._map.size;
53
+ return this._roundAverageSize ? Math.round(i) : i;
54
+ }
55
+ return 0;
56
+ }
57
+ getSize(i) {
58
+ return this._map.get(i);
59
+ }
60
+ clear() {
61
+ this._map.clear(), this.totalSize = 0;
62
+ }
63
+ }
64
+ /**
65
+ * @license
66
+ * Copyright 2021 Google LLC
67
+ * SPDX-License-Identifier: BSD-3-Clause
68
+ */
69
+ function d(l) {
70
+ return l === "horizontal" ? "width" : "height";
71
+ }
72
+ class u {
73
+ _getDefaultConfig() {
74
+ return {
75
+ direction: "vertical"
76
+ };
77
+ }
78
+ constructor(i, t) {
79
+ this._latestCoords = { left: 0, top: 0 }, this._direction = null, this._viewportSize = { width: 0, height: 0 }, this.totalScrollSize = { width: 0, height: 0 }, this.offsetWithinScroller = { left: 0, top: 0 }, this._pendingReflow = !1, this._pendingLayoutUpdate = !1, this._pin = null, this._firstVisible = 0, this._lastVisible = 0, this._physicalMin = 0, this._physicalMax = 0, this._first = -1, this._last = -1, this._sizeDim = "height", this._secondarySizeDim = "width", this._positionDim = "top", this._secondaryPositionDim = "left", this._scrollPosition = 0, this._scrollError = 0, this._items = [], this._scrollSize = 1, this._overhang = 1e3, this._hostSink = i, Promise.resolve().then(() => this.config = t || this._getDefaultConfig());
80
+ }
81
+ set config(i) {
82
+ Object.assign(this, Object.assign({}, this._getDefaultConfig(), i));
83
+ }
84
+ get config() {
85
+ return {
86
+ direction: this.direction
87
+ };
88
+ }
89
+ /**
90
+ * Maximum index of children + 1, to help estimate total height of the scroll
91
+ * space.
92
+ */
93
+ get items() {
94
+ return this._items;
95
+ }
96
+ set items(i) {
97
+ this._setItems(i);
98
+ }
99
+ _setItems(i) {
100
+ i !== this._items && (this._items = i, this._scheduleReflow());
101
+ }
102
+ /**
103
+ * Primary scrolling direction.
104
+ */
105
+ get direction() {
106
+ return this._direction;
107
+ }
108
+ set direction(i) {
109
+ i = i === "horizontal" ? i : "vertical", i !== this._direction && (this._direction = i, this._sizeDim = i === "horizontal" ? "width" : "height", this._secondarySizeDim = i === "horizontal" ? "height" : "width", this._positionDim = i === "horizontal" ? "left" : "top", this._secondaryPositionDim = i === "horizontal" ? "top" : "left", this._triggerReflow());
110
+ }
111
+ /**
112
+ * Height and width of the viewport.
113
+ */
114
+ get viewportSize() {
115
+ return this._viewportSize;
116
+ }
117
+ set viewportSize(i) {
118
+ const { _viewDim1: t, _viewDim2: s } = this;
119
+ Object.assign(this._viewportSize, i), s !== this._viewDim2 ? this._scheduleLayoutUpdate() : t !== this._viewDim1 && this._checkThresholds();
120
+ }
121
+ /**
122
+ * Scroll offset of the viewport.
123
+ */
124
+ get viewportScroll() {
125
+ return this._latestCoords;
126
+ }
127
+ set viewportScroll(i) {
128
+ Object.assign(this._latestCoords, i);
129
+ const t = this._scrollPosition;
130
+ this._scrollPosition = this._latestCoords[this._positionDim], Math.abs(t - this._scrollPosition) >= 1 && this._checkThresholds();
131
+ }
132
+ /**
133
+ * Perform a reflow if one has been scheduled.
134
+ */
135
+ reflowIfNeeded(i = !1) {
136
+ (i || this._pendingReflow) && (this._pendingReflow = !1, this._reflow());
137
+ }
138
+ set pin(i) {
139
+ this._pin = i, this._triggerReflow();
140
+ }
141
+ get pin() {
142
+ if (this._pin !== null) {
143
+ const { index: i, block: t } = this._pin;
144
+ return {
145
+ index: Math.max(0, Math.min(i, this.items.length - 1)),
146
+ block: t
147
+ };
148
+ }
149
+ return null;
150
+ }
151
+ _clampScrollPosition(i) {
152
+ return Math.max(-this.offsetWithinScroller[this._positionDim], Math.min(i, this.totalScrollSize[d(this.direction)] - this._viewDim1));
153
+ }
154
+ unpin() {
155
+ this._pin !== null && (this._sendUnpinnedMessage(), this._pin = null);
156
+ }
157
+ _updateLayout() {
158
+ }
159
+ // protected _viewDim2Changed(): void {
160
+ // this._scheduleLayoutUpdate();
161
+ // }
162
+ /**
163
+ * The height or width of the viewport, whichever corresponds to the scrolling direction.
164
+ */
165
+ get _viewDim1() {
166
+ return this._viewportSize[this._sizeDim];
167
+ }
168
+ /**
169
+ * The height or width of the viewport, whichever does NOT correspond to the scrolling direction.
170
+ */
171
+ get _viewDim2() {
172
+ return this._viewportSize[this._secondarySizeDim];
173
+ }
174
+ _scheduleReflow() {
175
+ this._pendingReflow = !0;
176
+ }
177
+ _scheduleLayoutUpdate() {
178
+ this._pendingLayoutUpdate = !0, this._scheduleReflow();
179
+ }
180
+ // For triggering a reflow based on incoming changes to
181
+ // the layout config.
182
+ _triggerReflow() {
183
+ this._scheduleLayoutUpdate(), Promise.resolve().then(() => this.reflowIfNeeded());
184
+ }
185
+ _reflow() {
186
+ this._pendingLayoutUpdate && (this._updateLayout(), this._pendingLayoutUpdate = !1), this._updateScrollSize(), this._setPositionFromPin(), this._getActiveItems(), this._updateVisibleIndices(), this._sendStateChangedMessage();
187
+ }
188
+ /**
189
+ * If we are supposed to be pinned to a particular
190
+ * item or set of coordinates, we set `_scrollPosition`
191
+ * accordingly and adjust `_scrollError` as needed
192
+ * so that the virtualizer can keep the scroll
193
+ * position in the DOM in sync
194
+ */
195
+ _setPositionFromPin() {
196
+ if (this.pin !== null) {
197
+ const i = this._scrollPosition, { index: t, block: s } = this.pin;
198
+ this._scrollPosition = this._calculateScrollIntoViewPosition({
199
+ index: t,
200
+ block: s || "start"
201
+ }) - this.offsetWithinScroller[this._positionDim], this._scrollError = i - this._scrollPosition;
202
+ }
203
+ }
204
+ /**
205
+ * Calculate the coordinates to scroll to, given
206
+ * a request to scroll to the element at a specific
207
+ * index.
208
+ *
209
+ * Supports the same positioning options (`start`,
210
+ * `center`, `end`, `nearest`) as the standard
211
+ * `Element.scrollIntoView()` method, but currently
212
+ * only considers the provided value in the `block`
213
+ * dimension, since we don't yet have any layouts
214
+ * that support virtualization in two dimensions.
215
+ */
216
+ _calculateScrollIntoViewPosition(i) {
217
+ const { block: t } = i, s = Math.min(this.items.length, Math.max(0, i.index)), h = this._getItemPosition(s)[this._positionDim];
218
+ let a = h;
219
+ if (t !== "start") {
220
+ const r = this._getItemSize(s)[this._sizeDim];
221
+ if (t === "center")
222
+ a = h - 0.5 * this._viewDim1 + 0.5 * r;
223
+ else {
224
+ const e = h - this._viewDim1 + r;
225
+ if (t === "end")
226
+ a = e;
227
+ else {
228
+ const n = this._scrollPosition;
229
+ a = Math.abs(n - h) < Math.abs(n - e) ? h : e;
230
+ }
231
+ }
232
+ }
233
+ return a += this.offsetWithinScroller[this._positionDim], this._clampScrollPosition(a);
234
+ }
235
+ getScrollIntoViewCoordinates(i) {
236
+ return {
237
+ [this._positionDim]: this._calculateScrollIntoViewPosition(i)
238
+ };
239
+ }
240
+ _sendUnpinnedMessage() {
241
+ this._hostSink({
242
+ type: "unpinned"
243
+ });
244
+ }
245
+ _sendVisibilityChangedMessage() {
246
+ this._hostSink({
247
+ type: "visibilityChanged",
248
+ firstVisible: this._firstVisible,
249
+ lastVisible: this._lastVisible
250
+ });
251
+ }
252
+ _sendStateChangedMessage() {
253
+ const i = /* @__PURE__ */ new Map();
254
+ if (this._first !== -1 && this._last !== -1)
255
+ for (let s = this._first; s <= this._last; s++)
256
+ i.set(s, this._getItemPosition(s));
257
+ const t = {
258
+ type: "stateChanged",
259
+ scrollSize: {
260
+ [this._sizeDim]: this._scrollSize,
261
+ [this._secondarySizeDim]: null
262
+ },
263
+ range: {
264
+ first: this._first,
265
+ last: this._last,
266
+ firstVisible: this._firstVisible,
267
+ lastVisible: this._lastVisible
268
+ },
269
+ childPositions: i
270
+ };
271
+ this._scrollError && (t.scrollError = {
272
+ [this._positionDim]: this._scrollError,
273
+ [this._secondaryPositionDim]: 0
274
+ }, this._scrollError = 0), this._hostSink(t);
275
+ }
276
+ /**
277
+ * Number of items to display.
278
+ */
279
+ get _num() {
280
+ return this._first === -1 || this._last === -1 ? 0 : this._last - this._first + 1;
281
+ }
282
+ _checkThresholds() {
283
+ if (this._viewDim1 === 0 && this._num > 0 || this._pin !== null)
284
+ this._scheduleReflow();
285
+ else {
286
+ const i = Math.max(0, this._scrollPosition - this._overhang), t = Math.min(this._scrollSize, this._scrollPosition + this._viewDim1 + this._overhang);
287
+ this._physicalMin > i || this._physicalMax < t ? this._scheduleReflow() : this._updateVisibleIndices({ emit: !0 });
288
+ }
289
+ }
290
+ /**
291
+ * Find the indices of the first and last items to intersect the viewport.
292
+ * Emit a visibleindiceschange event when either index changes.
293
+ */
294
+ _updateVisibleIndices(i) {
295
+ if (this._first === -1 || this._last === -1)
296
+ return;
297
+ let t = this._first;
298
+ for (; t < this._last && Math.round(this._getItemPosition(t)[this._positionDim] + this._getItemSize(t)[this._sizeDim]) <= Math.round(this._scrollPosition); )
299
+ t++;
300
+ let s = this._last;
301
+ for (; s > this._first && Math.round(this._getItemPosition(s)[this._positionDim]) >= Math.round(this._scrollPosition + this._viewDim1); )
302
+ s--;
303
+ (t !== this._firstVisible || s !== this._lastVisible) && (this._firstVisible = t, this._lastVisible = s, i && i.emit && this._sendVisibilityChangedMessage());
304
+ }
305
+ }
306
+ /**
307
+ * @license
308
+ * Copyright 2021 Google LLC
309
+ * SPDX-License-Identifier: BSD-3-Clause
310
+ */
311
+ function m(l) {
312
+ return l === "horizontal" ? "marginLeft" : "marginTop";
313
+ }
314
+ function f(l) {
315
+ return l === "horizontal" ? "marginRight" : "marginBottom";
316
+ }
317
+ function S(l) {
318
+ return l === "horizontal" ? "xOffset" : "yOffset";
319
+ }
320
+ function z(l, i) {
321
+ const t = [l, i].sort();
322
+ return t[1] <= 0 ? Math.min(...t) : t[0] >= 0 ? Math.max(...t) : t[0] + t[1];
323
+ }
324
+ class p {
325
+ constructor() {
326
+ this._childSizeCache = new g(), this._marginSizeCache = new g(), this._metricsCache = /* @__PURE__ */ new Map();
327
+ }
328
+ update(i, t) {
329
+ var s, h;
330
+ const a = /* @__PURE__ */ new Set();
331
+ Object.keys(i).forEach((r) => {
332
+ const e = Number(r);
333
+ this._metricsCache.set(e, i[e]), this._childSizeCache.set(e, i[e][d(t)]), a.add(e), a.add(e + 1);
334
+ });
335
+ for (const r of a) {
336
+ const e = ((s = this._metricsCache.get(r)) == null ? void 0 : s[m(t)]) || 0, n = ((h = this._metricsCache.get(r - 1)) == null ? void 0 : h[f(t)]) || 0;
337
+ this._marginSizeCache.set(r, z(e, n));
338
+ }
339
+ }
340
+ get averageChildSize() {
341
+ return this._childSizeCache.averageSize;
342
+ }
343
+ get totalChildSize() {
344
+ return this._childSizeCache.totalSize;
345
+ }
346
+ get averageMarginSize() {
347
+ return this._marginSizeCache.averageSize;
348
+ }
349
+ get totalMarginSize() {
350
+ return this._marginSizeCache.totalSize;
351
+ }
352
+ getLeadingMarginValue(i, t) {
353
+ var s;
354
+ return ((s = this._metricsCache.get(i)) == null ? void 0 : s[m(t)]) || 0;
355
+ }
356
+ getChildSize(i) {
357
+ return this._childSizeCache.getSize(i);
358
+ }
359
+ getMarginSize(i) {
360
+ return this._marginSizeCache.getSize(i);
361
+ }
362
+ clear() {
363
+ this._childSizeCache.clear(), this._marginSizeCache.clear(), this._metricsCache.clear();
364
+ }
365
+ }
366
+ class v extends u {
367
+ constructor() {
368
+ super(...arguments), this._itemSize = { width: 100, height: 100 }, this._physicalItems = /* @__PURE__ */ new Map(), this._newPhysicalItems = /* @__PURE__ */ new Map(), this._metricsCache = new p(), this._anchorIdx = null, this._anchorPos = null, this._stable = !0, this._measureChildren = !0, this._estimate = !0;
369
+ }
370
+ // protected _defaultConfig: BaseLayoutConfig = Object.assign({}, super._defaultConfig, {
371
+ // })
372
+ // constructor(config: Layout1dConfig) {
373
+ // super(config);
374
+ // }
375
+ get measureChildren() {
376
+ return this._measureChildren;
377
+ }
378
+ /**
379
+ * Determine the average size of all children represented in the sizes
380
+ * argument.
381
+ */
382
+ updateItemSizes(i) {
383
+ this._metricsCache.update(i, this.direction), this._scheduleReflow();
384
+ }
385
+ /**
386
+ * Set the average item size based on the total length and number of children
387
+ * in range.
388
+ */
389
+ // _updateItemSize() {
390
+ // // Keep integer values.
391
+ // this._itemSize[this._sizeDim] = this._metricsCache.averageChildSize;
392
+ // }
393
+ _getPhysicalItem(i) {
394
+ return this._newPhysicalItems.get(i) ?? this._physicalItems.get(i);
395
+ }
396
+ _getSize(i) {
397
+ return this._getPhysicalItem(i) && this._metricsCache.getChildSize(i);
398
+ }
399
+ _getAverageSize() {
400
+ return this._metricsCache.averageChildSize || this._itemSize[this._sizeDim];
401
+ }
402
+ _estimatePosition(i) {
403
+ const t = this._metricsCache;
404
+ if (this._first === -1 || this._last === -1)
405
+ return t.averageMarginSize + i * (t.averageMarginSize + this._getAverageSize());
406
+ if (i < this._first) {
407
+ const s = this._first - i;
408
+ return this._getPhysicalItem(this._first).pos - (t.getMarginSize(this._first - 1) || t.averageMarginSize) - (s * t.averageChildSize + (s - 1) * t.averageMarginSize);
409
+ } else {
410
+ const s = i - this._last;
411
+ return this._getPhysicalItem(this._last).pos + (t.getChildSize(this._last) || t.averageChildSize) + (t.getMarginSize(this._last) || t.averageMarginSize) + s * (t.averageChildSize + t.averageMarginSize);
412
+ }
413
+ }
414
+ /**
415
+ * Returns the position in the scrolling direction of the item at idx.
416
+ * Estimates it if the item at idx is not in the DOM.
417
+ */
418
+ _getPosition(i) {
419
+ const t = this._getPhysicalItem(i), { averageMarginSize: s } = this._metricsCache;
420
+ return i === 0 ? this._metricsCache.getMarginSize(0) ?? s : t ? t.pos : this._estimatePosition(i);
421
+ }
422
+ _calculateAnchor(i, t) {
423
+ return i <= 0 ? 0 : t > this._scrollSize - this._viewDim1 ? this.items.length - 1 : Math.max(0, Math.min(this.items.length - 1, Math.floor((i + t) / 2 / this._delta)));
424
+ }
425
+ _getAnchor(i, t) {
426
+ if (this._physicalItems.size === 0)
427
+ return this._calculateAnchor(i, t);
428
+ if (this._first < 0)
429
+ return this._calculateAnchor(i, t);
430
+ if (this._last < 0)
431
+ return this._calculateAnchor(i, t);
432
+ const s = this._getPhysicalItem(this._first), h = this._getPhysicalItem(this._last), a = s.pos;
433
+ if (h.pos + this._metricsCache.getChildSize(this._last) < i)
434
+ return this._calculateAnchor(i, t);
435
+ if (a > t)
436
+ return this._calculateAnchor(i, t);
437
+ let r = this._firstVisible - 1, e = -1 / 0;
438
+ for (; e < i; )
439
+ e = this._getPhysicalItem(++r).pos + this._metricsCache.getChildSize(r);
440
+ return r;
441
+ }
442
+ /**
443
+ * Updates _first and _last based on items that should be in the current
444
+ * viewed range.
445
+ */
446
+ _getActiveItems() {
447
+ this._viewDim1 === 0 || this.items.length === 0 ? this._clearItems() : this._getItems();
448
+ }
449
+ /**
450
+ * Sets the range to empty.
451
+ */
452
+ _clearItems() {
453
+ this._first = -1, this._last = -1, this._physicalMin = 0, this._physicalMax = 0;
454
+ const i = this._newPhysicalItems;
455
+ this._newPhysicalItems = this._physicalItems, this._newPhysicalItems.clear(), this._physicalItems = i, this._stable = !0;
456
+ }
457
+ /*
458
+ * Updates _first and _last based on items that should be in the given range.
459
+ */
460
+ _getItems() {
461
+ const i = this._newPhysicalItems;
462
+ this._stable = !0;
463
+ let t, s;
464
+ if (this.pin !== null) {
465
+ const { index: o } = this.pin;
466
+ this._anchorIdx = o, this._anchorPos = this._getPosition(o);
467
+ }
468
+ if (t = this._scrollPosition - this._overhang, s = this._scrollPosition + this._viewDim1 + this._overhang, s < 0 || t > this._scrollSize) {
469
+ this._clearItems();
470
+ return;
471
+ }
472
+ (this._anchorIdx === null || this._anchorPos === null) && (this._anchorIdx = this._getAnchor(t, s), this._anchorPos = this._getPosition(this._anchorIdx));
473
+ let h = this._getSize(this._anchorIdx);
474
+ h === void 0 && (this._stable = !1, h = this._getAverageSize());
475
+ const a = this._metricsCache.getMarginSize(this._anchorIdx) ?? this._metricsCache.averageMarginSize, r = this._metricsCache.getMarginSize(this._anchorIdx + 1) ?? this._metricsCache.averageMarginSize;
476
+ this._anchorIdx === 0 && (this._anchorPos = a), this._anchorIdx === this.items.length - 1 && (this._anchorPos = this._scrollSize - r - h);
477
+ let e = 0;
478
+ for (this._anchorPos + h + r < t && (e = t - (this._anchorPos + h + r)), this._anchorPos - a > s && (e = s - (this._anchorPos - a)), e && (this._scrollPosition -= e, t -= e, s -= e, this._scrollError += e), i.set(this._anchorIdx, { pos: this._anchorPos, size: h }), this._first = this._last = this._anchorIdx, this._physicalMin = this._anchorPos - a, this._physicalMax = this._anchorPos + h + r; this._physicalMin > t && this._first > 0; ) {
479
+ let o = this._getSize(--this._first);
480
+ o === void 0 && (this._stable = !1, o = this._getAverageSize());
481
+ let _ = this._metricsCache.getMarginSize(this._first);
482
+ _ === void 0 && (this._stable = !1, _ = this._metricsCache.averageMarginSize), this._physicalMin -= o;
483
+ const c = this._physicalMin;
484
+ if (i.set(this._first, { pos: c, size: o }), this._physicalMin -= _, this._stable === !1 && this._estimate === !1)
485
+ break;
486
+ }
487
+ for (; this._physicalMax < s && this._last < this.items.length - 1; ) {
488
+ let o = this._getSize(++this._last);
489
+ o === void 0 && (this._stable = !1, o = this._getAverageSize());
490
+ let _ = this._metricsCache.getMarginSize(this._last);
491
+ _ === void 0 && (this._stable = !1, _ = this._metricsCache.averageMarginSize);
492
+ const c = this._physicalMax;
493
+ if (i.set(this._last, { pos: c, size: o }), this._physicalMax += o + _, !this._stable && !this._estimate)
494
+ break;
495
+ }
496
+ const n = this._calculateError();
497
+ n && (this._physicalMin -= n, this._physicalMax -= n, this._anchorPos -= n, this._scrollPosition -= n, i.forEach((o) => o.pos -= n), this._scrollError += n), this._stable && (this._newPhysicalItems = this._physicalItems, this._newPhysicalItems.clear(), this._physicalItems = i);
498
+ }
499
+ _calculateError() {
500
+ return this._first === 0 ? this._physicalMin : this._physicalMin <= 0 ? this._physicalMin - this._first * this._delta : this._last === this.items.length - 1 ? this._physicalMax - this._scrollSize : this._physicalMax >= this._scrollSize ? this._physicalMax - this._scrollSize + (this.items.length - 1 - this._last) * this._delta : 0;
501
+ }
502
+ _reflow() {
503
+ const { _first: i, _last: t } = this;
504
+ super._reflow(), (this._first === -1 && this._last == -1 || this._first === i && this._last === t) && this._resetReflowState();
505
+ }
506
+ _resetReflowState() {
507
+ this._anchorIdx = null, this._anchorPos = null, this._stable = !0;
508
+ }
509
+ _updateScrollSize() {
510
+ const { averageMarginSize: i } = this._metricsCache;
511
+ this._scrollSize = Math.max(1, this.items.length * (i + this._getAverageSize()) + i);
512
+ }
513
+ /**
514
+ * Returns the average size (precise or estimated) of an item in the scrolling direction,
515
+ * including any surrounding space.
516
+ */
517
+ get _delta() {
518
+ const { averageMarginSize: i } = this._metricsCache;
519
+ return this._getAverageSize() + i;
520
+ }
521
+ /**
522
+ * Returns the top and left positioning of the item at idx.
523
+ */
524
+ _getItemPosition(i) {
525
+ return {
526
+ [this._positionDim]: this._getPosition(i),
527
+ [this._secondaryPositionDim]: 0,
528
+ [S(this.direction)]: -(this._metricsCache.getLeadingMarginValue(i, this.direction) ?? this._metricsCache.averageMarginSize)
529
+ };
530
+ }
531
+ /**
532
+ * Returns the height and width of the item at idx.
533
+ */
534
+ _getItemSize(i) {
535
+ return {
536
+ [this._sizeDim]: this._getSize(i) || this._getAverageSize(),
537
+ [this._secondarySizeDim]: this._itemSize[this._secondarySizeDim]
538
+ };
539
+ }
540
+ _viewDim2Changed() {
541
+ this._metricsCache.clear(), this._scheduleReflow();
542
+ }
543
+ }
544
+ export {
545
+ v as FlowLayout
546
+ };
@@ -0,0 +1,48 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*! * Lucero - The design system for Luzmo.
21
+ *
22
+ * Copyright © 2025 Luzmo
23
+ * All rights reserved.
24
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
25
+ * This license allows users with a current active Luzmo account to use Lucero.
26
+ * This license terminates automatically if a user no longer has an active Luzmo account.
27
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
28
+ *
29
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+ * SOFTWARE.
36
+ * *//**
37
+ * @license
38
+ * Copyright 2021 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ */class g{constructor(i){this._map=new Map,this._roundAverageSize=!1,this.totalSize=0,(i==null?void 0:i.roundAverageSize)===!0&&(this._roundAverageSize=!0)}set(i,t){const s=this._map.get(i)||0;this._map.set(i,t),this.totalSize+=t-s}get averageSize(){if(this._map.size>0){const i=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(i):i}return 0}getSize(i){return this._map.get(i)}clear(){this._map.clear(),this.totalSize=0}}/**
41
+ * @license
42
+ * Copyright 2021 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ */function d(l){return l==="horizontal"?"width":"height"}class u{_getDefaultConfig(){return{direction:"vertical"}}constructor(i,t){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=i,Promise.resolve().then(()=>this.config=t||this._getDefaultConfig())}set config(i){Object.assign(this,Object.assign({},this._getDefaultConfig(),i))}get config(){return{direction:this.direction}}get items(){return this._items}set items(i){this._setItems(i)}_setItems(i){i!==this._items&&(this._items=i,this._scheduleReflow())}get direction(){return this._direction}set direction(i){i=i==="horizontal"?i:"vertical",i!==this._direction&&(this._direction=i,this._sizeDim=i==="horizontal"?"width":"height",this._secondarySizeDim=i==="horizontal"?"height":"width",this._positionDim=i==="horizontal"?"left":"top",this._secondaryPositionDim=i==="horizontal"?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(i){const{_viewDim1:t,_viewDim2:s}=this;Object.assign(this._viewportSize,i),s!==this._viewDim2?this._scheduleLayoutUpdate():t!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(i){Object.assign(this._latestCoords,i);const t=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim],Math.abs(t-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(i=!1){(i||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(i){this._pin=i,this._triggerReflow()}get pin(){if(this._pin!==null){const{index:i,block:t}=this._pin;return{index:Math.max(0,Math.min(i,this.items.length-1)),block:t}}return null}_clampScrollPosition(i){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(i,this.totalScrollSize[d(this.direction)]-this._viewDim1))}unpin(){this._pin!==null&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then(()=>this.reflowIfNeeded())}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(this.pin!==null){const i=this._scrollPosition,{index:t,block:s}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:t,block:s||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=i-this._scrollPosition}}_calculateScrollIntoViewPosition(i){const{block:t}=i,s=Math.min(this.items.length,Math.max(0,i.index)),h=this._getItemPosition(s)[this._positionDim];let a=h;if(t!=="start"){const r=this._getItemSize(s)[this._sizeDim];if(t==="center")a=h-.5*this._viewDim1+.5*r;else{const e=h-this._viewDim1+r;if(t==="end")a=e;else{const n=this._scrollPosition;a=Math.abs(n-h)<Math.abs(n-e)?h:e}}}return a+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(a)}getScrollIntoViewCoordinates(i){return{[this._positionDim]:this._calculateScrollIntoViewPosition(i)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){const i=new Map;if(this._first!==-1&&this._last!==-1)for(let s=this._first;s<=this._last;s++)i.set(s,this._getItemPosition(s));const t={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:i};this._scrollError&&(t.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(t)}get _num(){return this._first===-1||this._last===-1?0:this._last-this._first+1}_checkThresholds(){if(this._viewDim1===0&&this._num>0||this._pin!==null)this._scheduleReflow();else{const i=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>i||this._physicalMax<t?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(i){if(this._first===-1||this._last===-1)return;let t=this._first;for(;t<this._last&&Math.round(this._getItemPosition(t)[this._positionDim]+this._getItemSize(t)[this._sizeDim])<=Math.round(this._scrollPosition);)t++;let s=this._last;for(;s>this._first&&Math.round(this._getItemPosition(s)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)s--;(t!==this._firstVisible||s!==this._lastVisible)&&(this._firstVisible=t,this._lastVisible=s,i&&i.emit&&this._sendVisibilityChangedMessage())}}/**
45
+ * @license
46
+ * Copyright 2021 Google LLC
47
+ * SPDX-License-Identifier: BSD-3-Clause
48
+ */function m(l){return l==="horizontal"?"marginLeft":"marginTop"}function S(l){return l==="horizontal"?"marginRight":"marginBottom"}function f(l){return l==="horizontal"?"xOffset":"yOffset"}function z(l,i){const t=[l,i].sort();return t[1]<=0?Math.min(...t):t[0]>=0?Math.max(...t):t[0]+t[1]}class p{constructor(){this._childSizeCache=new g,this._marginSizeCache=new g,this._metricsCache=new Map}update(i,t){var s,h;const a=new Set;Object.keys(i).forEach(r=>{const e=Number(r);this._metricsCache.set(e,i[e]),this._childSizeCache.set(e,i[e][d(t)]),a.add(e),a.add(e+1)});for(const r of a){const e=((s=this._metricsCache.get(r))==null?void 0:s[m(t)])||0,n=((h=this._metricsCache.get(r-1))==null?void 0:h[S(t)])||0;this._marginSizeCache.set(r,z(e,n))}}get averageChildSize(){return this._childSizeCache.averageSize}get totalChildSize(){return this._childSizeCache.totalSize}get averageMarginSize(){return this._marginSizeCache.averageSize}get totalMarginSize(){return this._marginSizeCache.totalSize}getLeadingMarginValue(i,t){var s;return((s=this._metricsCache.get(i))==null?void 0:s[m(t)])||0}getChildSize(i){return this._childSizeCache.getSize(i)}getMarginSize(i){return this._marginSizeCache.getSize(i)}clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear()}}class v extends u{constructor(){super(...arguments),this._itemSize={width:100,height:100},this._physicalItems=new Map,this._newPhysicalItems=new Map,this._metricsCache=new p,this._anchorIdx=null,this._anchorPos=null,this._stable=!0,this._measureChildren=!0,this._estimate=!0}get measureChildren(){return this._measureChildren}updateItemSizes(i){this._metricsCache.update(i,this.direction),this._scheduleReflow()}_getPhysicalItem(i){return this._newPhysicalItems.get(i)??this._physicalItems.get(i)}_getSize(i){return this._getPhysicalItem(i)&&this._metricsCache.getChildSize(i)}_getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim]}_estimatePosition(i){const t=this._metricsCache;if(this._first===-1||this._last===-1)return t.averageMarginSize+i*(t.averageMarginSize+this._getAverageSize());if(i<this._first){const s=this._first-i;return this._getPhysicalItem(this._first).pos-(t.getMarginSize(this._first-1)||t.averageMarginSize)-(s*t.averageChildSize+(s-1)*t.averageMarginSize)}else{const s=i-this._last;return this._getPhysicalItem(this._last).pos+(t.getChildSize(this._last)||t.averageChildSize)+(t.getMarginSize(this._last)||t.averageMarginSize)+s*(t.averageChildSize+t.averageMarginSize)}}_getPosition(i){const t=this._getPhysicalItem(i),{averageMarginSize:s}=this._metricsCache;return i===0?this._metricsCache.getMarginSize(0)??s:t?t.pos:this._estimatePosition(i)}_calculateAnchor(i,t){return i<=0?0:t>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((i+t)/2/this._delta)))}_getAnchor(i,t){if(this._physicalItems.size===0)return this._calculateAnchor(i,t);if(this._first<0)return this._calculateAnchor(i,t);if(this._last<0)return this._calculateAnchor(i,t);const s=this._getPhysicalItem(this._first),h=this._getPhysicalItem(this._last),a=s.pos;if(h.pos+this._metricsCache.getChildSize(this._last)<i)return this._calculateAnchor(i,t);if(a>t)return this._calculateAnchor(i,t);let r=this._firstVisible-1,e=-1/0;for(;e<i;)e=this._getPhysicalItem(++r).pos+this._metricsCache.getChildSize(r);return r}_getActiveItems(){this._viewDim1===0||this.items.length===0?this._clearItems():this._getItems()}_clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;const i=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=i,this._stable=!0}_getItems(){const i=this._newPhysicalItems;this._stable=!0;let t,s;if(this.pin!==null){const{index:o}=this.pin;this._anchorIdx=o,this._anchorPos=this._getPosition(o)}if(t=this._scrollPosition-this._overhang,s=this._scrollPosition+this._viewDim1+this._overhang,s<0||t>this._scrollSize){this._clearItems();return}(this._anchorIdx===null||this._anchorPos===null)&&(this._anchorIdx=this._getAnchor(t,s),this._anchorPos=this._getPosition(this._anchorIdx));let h=this._getSize(this._anchorIdx);h===void 0&&(this._stable=!1,h=this._getAverageSize());const a=this._metricsCache.getMarginSize(this._anchorIdx)??this._metricsCache.averageMarginSize,r=this._metricsCache.getMarginSize(this._anchorIdx+1)??this._metricsCache.averageMarginSize;this._anchorIdx===0&&(this._anchorPos=a),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-r-h);let e=0;for(this._anchorPos+h+r<t&&(e=t-(this._anchorPos+h+r)),this._anchorPos-a>s&&(e=s-(this._anchorPos-a)),e&&(this._scrollPosition-=e,t-=e,s-=e,this._scrollError+=e),i.set(this._anchorIdx,{pos:this._anchorPos,size:h}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-a,this._physicalMax=this._anchorPos+h+r;this._physicalMin>t&&this._first>0;){let o=this._getSize(--this._first);o===void 0&&(this._stable=!1,o=this._getAverageSize());let _=this._metricsCache.getMarginSize(this._first);_===void 0&&(this._stable=!1,_=this._metricsCache.averageMarginSize),this._physicalMin-=o;const c=this._physicalMin;if(i.set(this._first,{pos:c,size:o}),this._physicalMin-=_,this._stable===!1&&this._estimate===!1)break}for(;this._physicalMax<s&&this._last<this.items.length-1;){let o=this._getSize(++this._last);o===void 0&&(this._stable=!1,o=this._getAverageSize());let _=this._metricsCache.getMarginSize(this._last);_===void 0&&(this._stable=!1,_=this._metricsCache.averageMarginSize);const c=this._physicalMax;if(i.set(this._last,{pos:c,size:o}),this._physicalMax+=o+_,!this._stable&&!this._estimate)break}const n=this._calculateError();n&&(this._physicalMin-=n,this._physicalMax-=n,this._anchorPos-=n,this._scrollPosition-=n,i.forEach(o=>o.pos-=n),this._scrollError+=n),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=i)}_calculateError(){return this._first===0?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0}_reflow(){const{_first:i,_last:t}=this;super._reflow(),(this._first===-1&&this._last==-1||this._first===i&&this._last===t)&&this._resetReflowState()}_resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0}_updateScrollSize(){const{averageMarginSize:i}=this._metricsCache;this._scrollSize=Math.max(1,this.items.length*(i+this._getAverageSize())+i)}get _delta(){const{averageMarginSize:i}=this._metricsCache;return this._getAverageSize()+i}_getItemPosition(i){return{[this._positionDim]:this._getPosition(i),[this._secondaryPositionDim]:0,[f(this.direction)]:-(this._metricsCache.getLeadingMarginValue(i,this.direction)??this._metricsCache.averageMarginSize)}}_getItemSize(i){return{[this._sizeDim]:this._getSize(i)||this._getAverageSize(),[this._secondarySizeDim]:this._itemSize[this._secondarySizeDim]}}_viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow()}}exports.FlowLayout=v;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";const l=require("./base-D76d76ww-BEIhYtgV.cjs");/*! * Lucero - The design system for Luzmo.
20
+ "use strict";const l=require("./base-D76d76ww-tT6yr8eb.cjs");/*! * Lucero - The design system for Luzmo.
21
21
  *
22
22
  * Copyright © 2025 Luzmo
23
23
  * All rights reserved.
@@ -49,4 +49,4 @@
49
49
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
50
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
51
  * SOFTWARE.
52
- * */var f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,d=(n,e,t,a)=>{for(var s=a>1?void 0:a?p(e,t):e,o=n.length-1,i;o>=0;o--)(i=n[o])&&(s=(a?i(e,t,s):i(s))||s);return a&&s&&f(e,t,s),s};function c(){return new Promise(n=>requestAnimationFrame(()=>n()))}class u extends b(l.zt){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this.autofocusReady=Promise.resolve()}get tabIndex(){if(this.focusElement===this){const t=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):Number.NaN;return Number.isNaN(t)?-1:t}const e=Number.parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||e<0?-1:this.focusElement?this._tabIndex:e}set tabIndex(e){var t;if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(this.disabled)this._tabIndex=e;else if(e!==this._tabIndex){this._tabIndex=e;const a=""+e;this.manipulatingTabindex=!0,this.setAttribute("tabindex",a)}return}if(e===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),e===-1||this.disabled){if(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),this.selfManageFocusElement)return;e===-1?(t=this.focusElement)==null||t.removeAttribute("tabindex"):(this._tabIndex=e,this.manageFocusElementTabindex(e));return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this._tabIndex=e,this.manageFocusElementTabindex(e)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&setTimeout(()=>{this.tabIndex=0,this.focus({preventScroll:!0}),this.tabIndex=-1})}async manageFocusElementTabindex(e){this.focusElement||await this.updateComplete,e===null?this.focusElement.removeAttribute("tabindex"):this.focusElement!==this&&(this.focusElement.tabIndex=e)}get focusElement(){throw new Error("Must implement focusElement getter!")}get selfManageFocusElement(){return!1}focus(e){this.disabled||!this.focusElement||(this.focusElement===this?Reflect.apply(HTMLElement.prototype.focus,this,[e]):this.focusElement.focus(e))}blur(){const e=this.focusElement||this;e===this?HTMLElement.prototype.blur.apply(this):e.blur()}click(){if(this.disabled)return;const e=this.focusElement||this;e===this?HTMLElement.prototype.click.apply(this):e.click()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(e){super.firstUpdated(e),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(e){e.has("disabled")&&this.handleDisabledChanged(this.disabled,e.get("disabled")),super.update(e)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(e,t){const a=()=>this.focusElement!==this&&this.focusElement.disabled!==void 0;e?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,a()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):t&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,a()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.autofocusReady,e}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.autofocusReady=new Promise(async e=>{await c(),await c(),e()}),this.updateComplete.then(()=>{this.manageAutoFocus()}))}}d([l.Dt({type:Boolean,reflect:!0})],u.prototype,"disabled",2);d([l.Dt({type:Boolean})],u.prototype,"autofocus",2);d([l.Dt({type:Number})],u.prototype,"tabIndex",1);exports.r=u;
52
+ * */var f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,d=(n,e,t,a)=>{for(var s=a>1?void 0:a?p(e,t):e,o=n.length-1,i;o>=0;o--)(i=n[o])&&(s=(a?i(e,t,s):i(s))||s);return a&&s&&f(e,t,s),s};function c(){return new Promise(n=>requestAnimationFrame(()=>n()))}class u extends b(l.It){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this.autofocusReady=Promise.resolve()}get tabIndex(){if(this.focusElement===this){const t=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):Number.NaN;return Number.isNaN(t)?-1:t}const e=Number.parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||e<0?-1:this.focusElement?this._tabIndex:e}set tabIndex(e){var t;if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(this.disabled)this._tabIndex=e;else if(e!==this._tabIndex){this._tabIndex=e;const a=""+e;this.manipulatingTabindex=!0,this.setAttribute("tabindex",a)}return}if(e===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),e===-1||this.disabled){if(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),this.selfManageFocusElement)return;e===-1?(t=this.focusElement)==null||t.removeAttribute("tabindex"):(this._tabIndex=e,this.manageFocusElementTabindex(e));return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this._tabIndex=e,this.manageFocusElementTabindex(e)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&setTimeout(()=>{this.tabIndex=0,this.focus({preventScroll:!0}),this.tabIndex=-1})}async manageFocusElementTabindex(e){this.focusElement||await this.updateComplete,e===null?this.focusElement.removeAttribute("tabindex"):this.focusElement!==this&&(this.focusElement.tabIndex=e)}get focusElement(){throw new Error("Must implement focusElement getter!")}get selfManageFocusElement(){return!1}focus(e){this.disabled||!this.focusElement||(this.focusElement===this?Reflect.apply(HTMLElement.prototype.focus,this,[e]):this.focusElement.focus(e))}blur(){const e=this.focusElement||this;e===this?HTMLElement.prototype.blur.apply(this):e.blur()}click(){if(this.disabled)return;const e=this.focusElement||this;e===this?HTMLElement.prototype.click.apply(this):e.click()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(e){super.firstUpdated(e),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(e){e.has("disabled")&&this.handleDisabledChanged(this.disabled,e.get("disabled")),super.update(e)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(e,t){const a=()=>this.focusElement!==this&&this.focusElement.disabled!==void 0;e?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,a()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):t&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,a()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.autofocusReady,e}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.autofocusReady=new Promise(async e=>{await c(),await c(),e()}),this.updateComplete.then(()=>{this.manageAutoFocus()}))}}d([l.zt({type:Boolean,reflect:!0})],u.prototype,"disabled",2);d([l.zt({type:Boolean})],u.prototype,"autofocus",2);d([l.zt({type:Number})],u.prototype,"tabIndex",1);exports.r=u;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { z as m, D as u } from "./base-D76d76ww-D0dTUBua.js";
20
+ import { I as m, z as u } from "./base-D76d76ww-BGkuhs54.js";
21
21
  /*! * Lucero - The design system for Luzmo.
22
22
  *
23
23
  * Copyright © 2025 Luzmo