@luzmo/analytics-components-kit 1.0.9-beta.10 → 1.0.9-beta.11

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 (1770) hide show
  1. package/LICENSE +18 -18
  2. package/README.md +5 -1
  3. package/components/ad-hoc-slot-content-BwcFfXCV.cjs +18 -18
  4. package/components/ad-hoc-slot-content-hSlT62VS.js +18 -18
  5. package/components/add-to-dashboard/index.cjs +19 -19
  6. package/components/add-to-dashboard/index.js +19 -19
  7. package/components/add-to-dashboard-BY70QBzE.js +805 -0
  8. package/components/add-to-dashboard-nYUaDghN.cjs +166 -0
  9. package/components/ai-chat/index.cjs +19 -19
  10. package/components/ai-chat/index.js +20 -20
  11. package/components/ai-chat-DfuJOWao.cjs +338 -0
  12. package/components/ai-chat-DmDtBF47.js +4325 -0
  13. package/components/ai-interaction-textarea/index.cjs +19 -19
  14. package/components/ai-interaction-textarea/index.js +19 -19
  15. package/components/ai-interaction-textarea-6ECwAdeT.js +823 -0
  16. package/components/ai-interaction-textarea-CRyyTj_B.cjs +101 -0
  17. package/components/area-chart-options.config-Bf5kti7Z.cjs +18 -18
  18. package/components/area-chart-options.config-DJnPr93H.js +18 -18
  19. package/components/area-chart-options.de-_tPBzxvf.cjs +18 -18
  20. package/components/area-chart-options.de-pUCTG-s0.js +18 -18
  21. package/components/area-chart-options.en-AuSHs27k.cjs +18 -18
  22. package/components/area-chart-options.en-YNsUeMwN.js +18 -18
  23. package/components/area-chart-options.es-2styw_Fz.js +18 -18
  24. package/components/area-chart-options.es-BzRHGbo6.cjs +18 -18
  25. package/components/area-chart-options.fr--WzQVf2z.js +18 -18
  26. package/components/area-chart-options.fr-DYxUQE3x.cjs +18 -18
  27. package/components/area-chart-options.nl-BTEIqBtE.js +18 -18
  28. package/components/area-chart-options.nl-M0xQQ_la.cjs +18 -18
  29. package/components/area-chart-positioning.config-CoCdjr2E.cjs +20 -0
  30. package/components/area-chart-positioning.config-o-uJPEr5.js +55 -0
  31. package/components/area-chart-slots.config-BOhwdLnr.cjs +18 -18
  32. package/components/area-chart-slots.config-ClE-gYVY.js +18 -18
  33. package/components/axis-options.config-BCP0Z8VI.js +18 -18
  34. package/components/axis-options.config-s-Js3ug-.cjs +18 -18
  35. package/components/axis-options.i18n-BOGRmWjp.js +18 -18
  36. package/components/axis-options.i18n-Cw-DmewV.cjs +18 -18
  37. package/components/bar-chart-options.config-CI17HU2I.cjs +18 -18
  38. package/components/bar-chart-options.config-D1x5WPbL.js +18 -18
  39. package/components/bar-chart-options.de-3qSh2TNr.js +18 -18
  40. package/components/bar-chart-options.de-545XMRGl.cjs +18 -18
  41. package/components/bar-chart-options.en-DAee9yHp.cjs +18 -18
  42. package/components/bar-chart-options.en-DrhQe9rV.js +18 -18
  43. package/components/bar-chart-options.es-BZ1yNzUQ.js +18 -18
  44. package/components/bar-chart-options.es-CfoAEZ-0.cjs +18 -18
  45. package/components/bar-chart-options.fr-5i13R8bs.js +18 -18
  46. package/components/bar-chart-options.fr-C2Ic0Dq0.cjs +18 -18
  47. package/components/bar-chart-options.nl-Bb6XiSDH.cjs +18 -18
  48. package/components/bar-chart-options.nl-DLj-qucU.js +18 -18
  49. package/components/bar-chart-positioning.config-CZgrS6lc.js +59 -0
  50. package/components/bar-chart-positioning.config-fsB82756.cjs +20 -0
  51. package/components/bar-chart-slots.config-DMWjAd5a.cjs +18 -18
  52. package/components/bar-chart-slots.config-rMFwFprg.js +18 -18
  53. package/components/base-BmvsQ-s1.cjs +20 -0
  54. package/components/base-CrpOMVeU.js +248 -0
  55. package/components/base-store-CkIsrRcu.cjs +20 -0
  56. package/components/base-store-gYqg__8A.js +151 -0
  57. package/components/bliss-CK3rEnFv.js +18 -18
  58. package/components/bliss-Cggxb-YF.cjs +18 -18
  59. package/components/box-plot-options.config-CooBIc6N.js +18 -18
  60. package/components/box-plot-options.config-Cp6H9fyb.cjs +18 -18
  61. package/components/box-plot-options.de-BkgscmvG.js +18 -18
  62. package/components/box-plot-options.de-alI5_N9d.cjs +18 -18
  63. package/components/box-plot-options.en-5kGlvxx8.js +18 -18
  64. package/components/box-plot-options.en-DUlXF9r9.cjs +18 -18
  65. package/components/box-plot-options.es-CIm06Gpk.cjs +18 -18
  66. package/components/box-plot-options.es-v_B9Xb9H.js +18 -18
  67. package/components/box-plot-options.fr-C5j-Dzj6.cjs +18 -18
  68. package/components/box-plot-options.fr-CRSOCgU5.js +18 -18
  69. package/components/box-plot-options.nl-DtnBbRo5.cjs +18 -18
  70. package/components/box-plot-options.nl-ZQjVZPau.js +18 -18
  71. package/components/box-plot-positioning.config-BMfGGDfe.cjs +20 -0
  72. package/components/box-plot-positioning.config-CDq460FI.js +48 -0
  73. package/components/box-plot-slots.config-5B_pTjPJ.cjs +18 -18
  74. package/components/box-plot-slots.config-DS2UIfRF.js +18 -18
  75. package/components/bubble-chart-options.config-B6aLA_1d.js +18 -18
  76. package/components/bubble-chart-options.config-e_0LM1Uw.cjs +18 -18
  77. package/components/bubble-chart-options.de-D-ylbLIk.cjs +18 -18
  78. package/components/bubble-chart-options.de-Q2nhAQfu.js +18 -18
  79. package/components/bubble-chart-options.en-DedkSXEc.js +18 -18
  80. package/components/bubble-chart-options.en-YjokcFur.cjs +18 -18
  81. package/components/bubble-chart-options.es-B7bZFlIa.js +18 -18
  82. package/components/bubble-chart-options.es-BiM9exvv.cjs +18 -18
  83. package/components/bubble-chart-options.fr-CB4rhJRR.cjs +18 -18
  84. package/components/bubble-chart-options.fr-Cz9T05xx.js +18 -18
  85. package/components/bubble-chart-options.nl-BeiE-TWG.js +18 -18
  86. package/components/bubble-chart-options.nl-tG0U8b3q.cjs +18 -18
  87. package/components/bubble-chart-positioning.config-C9MmTtTX.cjs +20 -0
  88. package/components/bubble-chart-positioning.config-DWfz4tud.js +55 -0
  89. package/components/bubble-chart-slots.config-2qy2RqaU.js +18 -18
  90. package/components/bubble-chart-slots.config-VHKuntJk.cjs +18 -18
  91. package/components/bullet-chart-options.config-CBmbmhzI.js +18 -18
  92. package/components/bullet-chart-options.config-Drv0yQ4x.cjs +18 -18
  93. package/components/bullet-chart-options.de-DHqxFlm7.js +18 -18
  94. package/components/bullet-chart-options.de-DQhoZIdV.cjs +18 -18
  95. package/components/bullet-chart-options.en-6vj0tO4B.js +18 -18
  96. package/components/bullet-chart-options.en-CTpxw73t.cjs +18 -18
  97. package/components/bullet-chart-options.es-Cc4GzyJG.cjs +18 -18
  98. package/components/bullet-chart-options.es-DeDFLO8Z.js +18 -18
  99. package/components/bullet-chart-options.fr-750sl4sT.js +18 -18
  100. package/components/bullet-chart-options.fr-D2Z5WBfJ.cjs +18 -18
  101. package/components/bullet-chart-options.nl-B7tw2hO6.cjs +18 -18
  102. package/components/bullet-chart-options.nl-CS-xSSVr.js +18 -18
  103. package/components/bullet-chart-positioning.config-BwHPM5ui.cjs +20 -0
  104. package/components/bullet-chart-positioning.config-DmSlVIjL.js +56 -0
  105. package/components/bullet-chart-slots.config-BaMmwIH0.js +18 -18
  106. package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +18 -18
  107. package/components/calculate-data-field-icon-DenGmW74.cjs +18 -18
  108. package/components/calculate-data-field-icon-DrSg1PuD.js +18 -18
  109. package/components/chart-helpers-DQS2iqSd.js +18 -18
  110. package/components/chart-helpers-ufZ6VbXs.cjs +18 -18
  111. package/components/choropleth-map-options.config-CP-IK-4W.js +352 -0
  112. package/components/choropleth-map-options.config-DSXndhIY.cjs +20 -0
  113. package/components/choropleth-map-options.de-DXLufNgZ.js +18 -18
  114. package/components/choropleth-map-options.de-GB7-eHSP.cjs +18 -18
  115. package/components/choropleth-map-options.en-CT3LM0TX.cjs +18 -18
  116. package/components/choropleth-map-options.en-DGENug11.js +18 -18
  117. package/components/choropleth-map-options.es-D13n2Wh1.cjs +18 -18
  118. package/components/choropleth-map-options.es-Dn2Cv5D-.js +18 -18
  119. package/components/choropleth-map-options.fr-CK0tUEO3.js +18 -18
  120. package/components/choropleth-map-options.fr-CqIpVZuN.cjs +18 -18
  121. package/components/choropleth-map-options.nl-CwA4TtvT.js +18 -18
  122. package/components/choropleth-map-options.nl-YqFPhBJJ.cjs +18 -18
  123. package/components/choropleth-map-positioning.config-C0m6zzD3.cjs +20 -0
  124. package/components/choropleth-map-positioning.config-cjBzi_Db.js +55 -0
  125. package/components/choropleth-map-slots.config-CZKWF1qV.cjs +18 -18
  126. package/components/choropleth-map-slots.config-DqOi1kCn.js +18 -18
  127. package/components/circle-pack-chart-options.config-BmX0w3cH.cjs +18 -18
  128. package/components/circle-pack-chart-options.config-D2RCikyA.js +18 -18
  129. package/components/circle-pack-chart-options.de-BrrPqSBf.js +18 -18
  130. package/components/circle-pack-chart-options.de-Dlg-Dtyq.cjs +18 -18
  131. package/components/circle-pack-chart-options.en-ARMcjtyu.cjs +18 -18
  132. package/components/circle-pack-chart-options.en-BdoNRanZ.js +18 -18
  133. package/components/circle-pack-chart-options.es-CHFiuQ-k.cjs +18 -18
  134. package/components/circle-pack-chart-options.es-DLQWaD31.js +18 -18
  135. package/components/circle-pack-chart-options.fr-B66YY6lg.js +18 -18
  136. package/components/circle-pack-chart-options.fr-CxDnnCxR.cjs +18 -18
  137. package/components/circle-pack-chart-options.nl-Dp-iaTw6.cjs +18 -18
  138. package/components/circle-pack-chart-options.nl-kOeRMk4n.js +18 -18
  139. package/components/circle-pack-chart-positioning.config-BAFFQSHe.cjs +20 -0
  140. package/components/circle-pack-chart-positioning.config-CY2rLb57.js +48 -0
  141. package/components/circle-pack-chart-slots.config-B7_1p86m.js +18 -18
  142. package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +18 -18
  143. package/components/circular-gauge-options.config-CSIUw2VN.cjs +18 -18
  144. package/components/circular-gauge-options.config-syWQJHKT.js +18 -18
  145. package/components/circular-gauge-options.de-CXNpTJ5Q.cjs +18 -18
  146. package/components/circular-gauge-options.de-D1DVq08k.js +18 -18
  147. package/components/circular-gauge-options.en-Cbvt0Mn4.cjs +18 -18
  148. package/components/circular-gauge-options.en-CsH_VhDL.js +18 -18
  149. package/components/circular-gauge-options.es-BkiRMNis.js +18 -18
  150. package/components/circular-gauge-options.es-CHmDAZjB.cjs +18 -18
  151. package/components/circular-gauge-options.fr-C4mL6X8Z.cjs +18 -18
  152. package/components/circular-gauge-options.fr-CxySNula.js +18 -18
  153. package/components/circular-gauge-options.nl-B27G1yLw.cjs +18 -18
  154. package/components/circular-gauge-options.nl-CcQpr_DM.js +18 -18
  155. package/components/circular-gauge-positioning.config-6pZUNxYa.js +48 -0
  156. package/components/circular-gauge-positioning.config-BfWAjAY2.cjs +20 -0
  157. package/components/circular-gauge-slots.config-BxjCP1ao.js +18 -18
  158. package/components/circular-gauge-slots.config-DUHabt3G.cjs +18 -18
  159. package/components/classic-BLOsKyb3.js +18 -18
  160. package/components/classic-dark-B-bGXFgE.cjs +18 -18
  161. package/components/classic-dark-Bw01Wzq_.js +18 -18
  162. package/components/classic-fniwVVvX.cjs +18 -18
  163. package/components/color-B7SELPGq.js +3812 -0
  164. package/components/color-BIEQvHs4.cjs +20 -0
  165. package/components/color-palettes-BFpQSXfW.cjs +18 -18
  166. package/components/color-palettes-D4z1ONyx.js +18 -18
  167. package/components/color-range-utils-6oEqHV0y.js +63 -0
  168. package/components/color-range-utils-Bgzuy2bR.cjs +20 -0
  169. package/components/column-chart-options.config-B2LIl9lL.js +18 -18
  170. package/components/column-chart-options.config-xmSH4NKF.cjs +18 -18
  171. package/components/column-chart-options.de-BX13JkAO.cjs +18 -18
  172. package/components/column-chart-options.de-CIYtauiG.js +18 -18
  173. package/components/column-chart-options.en-BkAsfXYV.js +18 -18
  174. package/components/column-chart-options.en-DAee9yHp.cjs +18 -18
  175. package/components/column-chart-options.es-CClMQLE-.cjs +18 -18
  176. package/components/column-chart-options.es-jWM7TxS7.js +18 -18
  177. package/components/column-chart-options.fr-BB6301nS.js +18 -18
  178. package/components/column-chart-options.fr-C2Ic0Dq0.cjs +18 -18
  179. package/components/column-chart-options.nl-Bb6XiSDH.cjs +18 -18
  180. package/components/column-chart-options.nl-HUMDgKdl.js +18 -18
  181. package/components/column-chart-positioning.config-hrAvNd7T.js +55 -0
  182. package/components/column-chart-positioning.config-xgRuA_l5.cjs +20 -0
  183. package/components/column-chart-slots.config-CM5aytbj.cjs +18 -18
  184. package/components/column-chart-slots.config-D6MBTcj4.js +18 -18
  185. package/components/combination-chart-options.config-0ATFph8S.js +18 -18
  186. package/components/combination-chart-options.config-IEamJGCp.cjs +18 -18
  187. package/components/combination-chart-options.de-BiGjuWUS.cjs +18 -18
  188. package/components/combination-chart-options.de-DVJ9sfLC.js +18 -18
  189. package/components/combination-chart-options.en-B5piXq82.js +18 -18
  190. package/components/combination-chart-options.en-e4XMalU0.cjs +18 -18
  191. package/components/combination-chart-options.es-BmuyyP32.js +18 -18
  192. package/components/combination-chart-options.es-OXb8nozF.cjs +18 -18
  193. package/components/combination-chart-options.fr-CIrnpWEu.js +18 -18
  194. package/components/combination-chart-options.fr-CYzANyZs.cjs +18 -18
  195. package/components/combination-chart-options.nl-BDJ7t0BY.js +18 -18
  196. package/components/combination-chart-options.nl-DyAUjvqC.cjs +18 -18
  197. package/components/combination-chart-positioning.config-BI8HroaG.js +48 -0
  198. package/components/combination-chart-positioning.config-D0TU4hge.cjs +20 -0
  199. package/components/combination-chart-slots.config-BwUOXFCR.cjs +18 -18
  200. package/components/combination-chart-slots.config-dYT9lz8M.js +18 -18
  201. package/components/conditional-number-options.config-Bv2xONtI.js +18 -18
  202. package/components/conditional-number-options.config-ZVtstIjn.cjs +18 -18
  203. package/components/conditional-number-options.de-2xle1pGz.js +18 -18
  204. package/components/conditional-number-options.de-B4pb0dOt.cjs +18 -18
  205. package/components/conditional-number-options.en-JLoF4JZy.js +18 -18
  206. package/components/conditional-number-options.en-RlShluZP.cjs +18 -18
  207. package/components/conditional-number-options.es-C_g0UqIh.js +18 -18
  208. package/components/conditional-number-options.es-D6Thuvvq.cjs +18 -18
  209. package/components/conditional-number-options.fr-C5cASVba.js +18 -18
  210. package/components/conditional-number-options.fr-CoObS5Et.cjs +18 -18
  211. package/components/conditional-number-options.nl-BWXoNc8Z.cjs +18 -18
  212. package/components/conditional-number-options.nl-DiV3DzXR.js +18 -18
  213. package/components/conditional-number-positioning.config-B_yISWne.cjs +20 -0
  214. package/components/conditional-number-positioning.config-CWaDhMLA.js +48 -0
  215. package/components/conditional-number-slots.config-B7maHIaG.cjs +18 -18
  216. package/components/conditional-number-slots.config-DtYkqtN8.js +18 -18
  217. package/components/convert-datasets-to-data-fields-B13rl1an.cjs +18 -18
  218. package/components/convert-datasets-to-data-fields-PmQzeVLG.js +18 -18
  219. package/components/create-lazy-loader-BO_oTDF5.js +18 -18
  220. package/components/create-lazy-loader-DYPgQh0L.cjs +18 -18
  221. package/components/cs-a-HHJy3d.cjs +18 -18
  222. package/components/cs-wc4Fl7IN.js +18 -18
  223. package/components/da-BuDewcQL.cjs +18 -18
  224. package/components/da-Byf4w3lJ.js +18 -18
  225. package/components/data-broker-Cb-Fq9xy.cjs +20 -0
  226. package/components/data-broker-DNfq_8Lg.js +1695 -0
  227. package/components/data-field/index.cjs +19 -19
  228. package/components/data-field/index.js +19 -19
  229. package/components/data-field-D4YFqg1H.js +119 -0
  230. package/components/data-field-Hi-ITTzx.cjs +54 -0
  231. package/components/data-field-level/index.cjs +19 -19
  232. package/components/data-field-level/index.js +19 -19
  233. package/components/data-field-level-BWQPtFP5.cjs +55 -0
  234. package/components/data-field-level-CB5GtdU5.js +245 -0
  235. package/components/data-field-panel/index.cjs +19 -19
  236. package/components/data-field-panel/index.js +19 -19
  237. package/components/data-field-panel-64HoViNT.js +383 -0
  238. package/components/data-field-panel-DzKwmQi_.cjs +87 -0
  239. package/components/data-fields-select/index.cjs +19 -19
  240. package/components/data-fields-select/index.js +19 -19
  241. package/components/data-fields-select-BOwoWq0j.js +290 -0
  242. package/components/data-fields-select-DXv6PQHG.cjs +43 -0
  243. package/components/dataset-icon/index.cjs +19 -19
  244. package/components/dataset-icon/index.js +19 -19
  245. package/components/dataset-icon-Bag_eDv8.js +115 -0
  246. package/components/dataset-icon-CWKBYjGJ.cjs +62 -0
  247. package/components/dataset-selector-list/index.cjs +19 -19
  248. package/components/dataset-selector-list/index.js +19 -19
  249. package/components/dataset-selector-list-DFC2bvn0.js +321 -0
  250. package/components/dataset-selector-list-_AL1-GWw.cjs +75 -0
  251. package/components/dataset-selector-row/index.cjs +19 -19
  252. package/components/dataset-selector-row/index.js +19 -19
  253. package/components/dataset-selector-row-By2ko-Rd.cjs +104 -0
  254. package/components/dataset-selector-row-DC6mrVyF.js +448 -0
  255. package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +18 -18
  256. package/components/date-comparison-filter-options.config-DgLx-m3L.js +18 -18
  257. package/components/date-comparison-filter-options.de-BSRz6o0Y.js +18 -18
  258. package/components/date-comparison-filter-options.de-DJ43Wuh1.cjs +18 -18
  259. package/components/date-comparison-filter-options.en-BeWcjUc3.cjs +18 -18
  260. package/components/date-comparison-filter-options.en-DLbsNe_t.js +18 -18
  261. package/components/date-comparison-filter-options.es-ChO2qlIh.js +18 -18
  262. package/components/date-comparison-filter-options.es-mBbFqdyP.cjs +18 -18
  263. package/components/date-comparison-filter-options.fr-CJYSimcC.cjs +18 -18
  264. package/components/date-comparison-filter-options.fr-D9HKPj4L.js +18 -18
  265. package/components/date-comparison-filter-options.nl-BOMQo1X3.js +18 -18
  266. package/components/date-comparison-filter-options.nl-DMCiGzTv.cjs +18 -18
  267. package/components/date-comparison-filter-positioning.config-DZI9jN5L.cjs +18 -18
  268. package/components/date-comparison-filter-positioning.config-DokVHoP8.js +18 -18
  269. package/components/date-comparison-filter-slots.config-BKZ13uzB.js +18 -18
  270. package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +18 -18
  271. package/components/date-filter-options.config-Cbiy0QKd.js +18 -18
  272. package/components/date-filter-options.config-saR_u4w-.cjs +18 -18
  273. package/components/date-filter-options.de-DVRUmqQh.js +18 -18
  274. package/components/date-filter-options.de-Do8uE7X4.cjs +18 -18
  275. package/components/date-filter-options.en-DGay_JgN.cjs +18 -18
  276. package/components/date-filter-options.en-Df-q6Eqf.js +18 -18
  277. package/components/date-filter-options.es-dwt_ouf1.cjs +18 -18
  278. package/components/date-filter-options.es-eclXOdtw.js +18 -18
  279. package/components/date-filter-options.fr-B6CHuun3.js +18 -18
  280. package/components/date-filter-options.fr-D-OlAJSs.cjs +18 -18
  281. package/components/date-filter-options.nl-0pj5_uvF.cjs +18 -18
  282. package/components/date-filter-options.nl-qgltgj2Q.js +18 -18
  283. package/components/date-filter-positioning.config-CtEFg3RO.cjs +18 -18
  284. package/components/date-filter-positioning.config-D8wFL4L9.js +18 -18
  285. package/components/date-filter-slots.config-Cuzz0RjE.cjs +18 -18
  286. package/components/date-filter-slots.config-SzWky1y7.js +18 -18
  287. package/components/de-BLMiWrvE.cjs +18 -18
  288. package/components/de-CjQMTFtl.cjs +20 -0
  289. package/components/de-OHJ9YCFU.js +18 -18
  290. package/components/de-Yl3kqB03.js +594 -0
  291. package/components/decompose-numeric-format-DGJua3rU.cjs +18 -18
  292. package/components/decompose-numeric-format-DS0j2wa1.js +18 -18
  293. package/components/decorate-DCJt-2rt.cjs +18 -18
  294. package/components/decorate-DyMgX_Uh.js +18 -18
  295. package/components/default-B35Bj34G.js +18 -18
  296. package/components/default-B5D3aZAS.cjs +18 -18
  297. package/components/default-acceptable-data-field-types-DFOFWWnT.js +18 -18
  298. package/components/default-acceptable-data-field-types-fPsz64ka.cjs +18 -18
  299. package/components/default-dark-BOvJQVaq.cjs +18 -18
  300. package/components/default-dark-CRMTsWZ1.js +18 -18
  301. package/components/defineProperty-AldSMFEH.js +58 -0
  302. package/components/defineProperty-X1c4tIPD.cjs +20 -0
  303. package/components/display-settings/index.cjs +19 -19
  304. package/components/display-settings/index.js +19 -19
  305. package/components/display-settings-B2V_F_CU.cjs +142 -0
  306. package/components/display-settings-BsCKV9ae.js +316 -0
  307. package/components/display-settings-binning/index.cjs +19 -19
  308. package/components/display-settings-binning/index.js +19 -19
  309. package/components/display-settings-binning-BdtxayZT.cjs +56 -0
  310. package/components/display-settings-binning-CkrbhPVB.js +111 -0
  311. package/components/display-settings-datetime/index.cjs +19 -19
  312. package/components/display-settings-datetime/index.js +19 -19
  313. package/components/display-settings-datetime-CpFyrcGk.cjs +217 -0
  314. package/components/display-settings-datetime-mVh5Tjrx.js +414 -0
  315. package/components/display-settings-grand-totals/index.cjs +19 -19
  316. package/components/display-settings-grand-totals/index.js +19 -19
  317. package/components/display-settings-grand-totals-CwOGoE06.cjs +44 -0
  318. package/components/display-settings-grand-totals-D7unOEKl.js +90 -0
  319. package/components/display-settings-numeric/index.cjs +19 -19
  320. package/components/display-settings-numeric/index.js +19 -19
  321. package/components/display-settings-numeric-DDZyFNFF.js +480 -0
  322. package/components/display-settings-numeric-DhiXPU3f.cjs +190 -0
  323. package/components/display-settings-period-over-period/index.cjs +19 -19
  324. package/components/display-settings-period-over-period/index.js +19 -19
  325. package/components/display-settings-period-over-period-BNFjbgP0.cjs +227 -0
  326. package/components/display-settings-period-over-period-Hd172SzT.js +443 -0
  327. package/components/donut-chart-options.config-C8wpZzyJ.js +18 -18
  328. package/components/donut-chart-options.config-LbmJpNlm.cjs +18 -18
  329. package/components/donut-chart-options.de-MwhxVUQU.cjs +18 -18
  330. package/components/donut-chart-options.de-yLZjyrqC.js +18 -18
  331. package/components/donut-chart-options.en-CtvZekZO.js +18 -18
  332. package/components/donut-chart-options.en-Z9kCIcjz.cjs +18 -18
  333. package/components/donut-chart-options.es-C89OYrl4.js +18 -18
  334. package/components/donut-chart-options.es-Ch83fRxI.cjs +18 -18
  335. package/components/donut-chart-options.fr-B7JWWsro.cjs +18 -18
  336. package/components/donut-chart-options.fr-Cy4UUjdS.js +18 -18
  337. package/components/donut-chart-options.nl-BT6vFbJ5.js +18 -18
  338. package/components/donut-chart-options.nl-Brxyw7wD.cjs +18 -18
  339. package/components/donut-chart-positioning.config-B2CrxOig.js +48 -0
  340. package/components/donut-chart-positioning.config-DQb53kWI.cjs +20 -0
  341. package/components/donut-chart-slots.config-Bi08z-XB.cjs +18 -18
  342. package/components/donut-chart-slots.config-fGqtoKZi.js +18 -18
  343. package/components/dropdown-filter-options.config-BRzYD0KE.cjs +18 -18
  344. package/components/dropdown-filter-options.config-DkiapYtc.js +18 -18
  345. package/components/dropdown-filter-options.de-BdvWDGQ4.cjs +18 -18
  346. package/components/dropdown-filter-options.de-CGwxbXwe.js +18 -18
  347. package/components/dropdown-filter-options.en-D4YCo5Bj.js +18 -18
  348. package/components/dropdown-filter-options.en-DEHrGxy0.cjs +18 -18
  349. package/components/dropdown-filter-options.es-BvFyqxrr.js +18 -18
  350. package/components/dropdown-filter-options.es-C6qkLl6c.cjs +18 -18
  351. package/components/dropdown-filter-options.fr-9KlpP9JQ.js +18 -18
  352. package/components/dropdown-filter-options.fr-DZxfuy7q.cjs +18 -18
  353. package/components/dropdown-filter-options.nl-4HUfHHPT.js +18 -18
  354. package/components/dropdown-filter-options.nl-dmpP9bir.cjs +18 -18
  355. package/components/dropdown-filter-positioning.config-Ck97Moc_.cjs +18 -18
  356. package/components/dropdown-filter-positioning.config-D1tdnuCP.js +18 -18
  357. package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +18 -18
  358. package/components/dropdown-filter-slots.config-DPcT6v-9.js +18 -18
  359. package/components/en-CcLhGxIh.js +18 -18
  360. package/components/en-GB-DzkdeUQh.js +18 -18
  361. package/components/en-GB-uxY5qmIM.cjs +18 -18
  362. package/components/en-US-CcLhGxIh.js +18 -18
  363. package/components/en-US-q_Ruzags.cjs +18 -18
  364. package/components/en-q_Ruzags.cjs +18 -18
  365. package/components/es-Ctf1SIsp.js +594 -0
  366. package/components/es-D8MxHOsN.cjs +18 -18
  367. package/components/es-DmmTP7D0.cjs +20 -0
  368. package/components/es-DuN6cMja.js +18 -18
  369. package/components/evolution-number-options.config-Ca9ABNVM.js +18 -18
  370. package/components/evolution-number-options.config-CoGBgLLw.cjs +18 -18
  371. package/components/evolution-number-options.de-BrdcqfjF.js +18 -18
  372. package/components/evolution-number-options.de-CjNBpzAw.cjs +18 -18
  373. package/components/evolution-number-options.en-B9BpR4nq.cjs +18 -18
  374. package/components/evolution-number-options.en-Sd6L4_T9.js +18 -18
  375. package/components/evolution-number-options.es-CxbiY9G6.cjs +18 -18
  376. package/components/evolution-number-options.es-RgSav5iQ.js +18 -18
  377. package/components/evolution-number-options.fr-BD73JeDU.js +18 -18
  378. package/components/evolution-number-options.fr-Cae20bgZ.cjs +18 -18
  379. package/components/evolution-number-options.nl-BJ-5M5kB.cjs +18 -18
  380. package/components/evolution-number-options.nl-WHBQ04_S.js +18 -18
  381. package/components/evolution-number-positioning.config-BdH8pv6_.js +48 -0
  382. package/components/evolution-number-positioning.config-BzBsGcD4.cjs +20 -0
  383. package/components/evolution-number-slots.config-CKawNqUS.js +18 -18
  384. package/components/evolution-number-slots.config-CikuQYgm.cjs +18 -18
  385. package/components/fi-CzBe3q93.cjs +18 -18
  386. package/components/fi-vuFNiOkH.js +18 -18
  387. package/components/filter-expression-picker/index.cjs +19 -19
  388. package/components/filter-expression-picker/index.js +19 -19
  389. package/components/filter-expression-picker-Bn_jAdQX.cjs +40 -0
  390. package/components/filter-expression-picker-Cjr8xWxy.js +434 -0
  391. package/components/filter-item/index.cjs +19 -19
  392. package/components/filter-item/index.js +19 -19
  393. package/components/filter-item-CHJDVOju.cjs +111 -0
  394. package/components/filter-item-D6y8eCmG.js +793 -0
  395. package/components/filter-parameter-picker/index.cjs +19 -19
  396. package/components/filter-parameter-picker/index.js +19 -19
  397. package/components/filter-parameter-picker-C955tF0T.js +372 -0
  398. package/components/filter-parameter-picker-jyrh3POQ.cjs +124 -0
  399. package/components/filter-value-picker/index.cjs +19 -19
  400. package/components/filter-value-picker/index.js +19 -19
  401. package/components/filter-value-picker-B8nA8hTV.js +170 -0
  402. package/components/filter-value-picker-DmWiNLZH.cjs +69 -0
  403. package/components/filter-value-picker-datetime/index.cjs +19 -19
  404. package/components/filter-value-picker-datetime/index.js +19 -19
  405. package/components/filter-value-picker-datetime-BAhXn1BS.js +160 -0
  406. package/components/filter-value-picker-datetime-U4XWKSFx.cjs +51 -0
  407. package/components/filter-value-picker-hierarchy/index.cjs +19 -19
  408. package/components/filter-value-picker-hierarchy/index.js +19 -19
  409. package/components/filter-value-picker-hierarchy-1ya1_rS3.cjs +54 -0
  410. package/components/filter-value-picker-hierarchy-CUPz5Ggs.js +316 -0
  411. package/components/filter-value-picker-numeric/index.cjs +19 -19
  412. package/components/filter-value-picker-numeric/index.js +19 -19
  413. package/components/filter-value-picker-numeric-D8mLaxzj.js +237 -0
  414. package/components/filter-value-picker-numeric-DrHdHj31.cjs +54 -0
  415. package/components/filters/index.cjs +19 -19
  416. package/components/filters/index.js +19 -19
  417. package/components/filters-Byy8HE19.js +927 -0
  418. package/components/filters-C8xz8DV-.cjs +199 -0
  419. package/components/formatter-BeXmurVe.cjs +18 -18
  420. package/components/formatter-Cq5dFCyU.js +18 -18
  421. package/components/formula/index.cjs +19 -19
  422. package/components/formula/index.js +19 -19
  423. package/components/formula-C6dPJyKm.cjs +45 -0
  424. package/components/formula-D_ipR6d1.js +136 -0
  425. package/components/formula-codemirror-C1UFMf6i.cjs +215 -0
  426. package/components/formula-codemirror-CdlIly66.js +12008 -0
  427. package/components/formula-display-store-B0ifmvCi.cjs +20 -0
  428. package/components/formula-display-store-CfObcBCd.js +1087 -0
  429. package/components/formula-editor/index.cjs +19 -19
  430. package/components/formula-editor/index.js +21 -21
  431. package/components/formula-editor-B9ikCsLK.cjs +224 -0
  432. package/components/formula-editor-DJ-0AVCl.js +685 -0
  433. package/components/formula-field/index.cjs +19 -19
  434. package/components/formula-field/index.js +19 -19
  435. package/components/formula-field-Bq-RYt0H.js +38 -0
  436. package/components/formula-field-CNqn6Xbh.cjs +20 -0
  437. package/components/formula-input-base-Dple-9bo.js +236 -0
  438. package/components/formula-input-base-KSmmN1uI.cjs +49 -0
  439. package/components/fr-BlAUad9k.cjs +18 -18
  440. package/components/fr-CwOLJGv2.js +18 -18
  441. package/components/fr-DKDPLLAZ.cjs +20 -0
  442. package/components/fr-zWhjQv4B.js +594 -0
  443. package/components/funnel-chart-options.config-CygQsQVD.js +18 -18
  444. package/components/funnel-chart-options.config-DgpM8mWb.cjs +18 -18
  445. package/components/funnel-chart-options.de-CW29wkd4.cjs +18 -18
  446. package/components/funnel-chart-options.de-DIoKO3fr.js +18 -18
  447. package/components/funnel-chart-options.en-CGVFwHzU.cjs +18 -18
  448. package/components/funnel-chart-options.en-Doj4mREG.js +18 -18
  449. package/components/funnel-chart-options.es-Bcot5MS3.cjs +18 -18
  450. package/components/funnel-chart-options.es-D-GP_b6C.js +18 -18
  451. package/components/funnel-chart-options.fr-7ZROacsE.cjs +18 -18
  452. package/components/funnel-chart-options.fr-BoQkeuls.js +18 -18
  453. package/components/funnel-chart-options.nl-C0VZ6Ure.cjs +18 -18
  454. package/components/funnel-chart-options.nl-CRq-RjxK.js +18 -18
  455. package/components/funnel-chart-positioning.config-DgRle8n1.js +48 -0
  456. package/components/funnel-chart-positioning.config-DleNZIG-.cjs +20 -0
  457. package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +18 -18
  458. package/components/funnel-chart-slots.config-CfnSH4Ay.js +18 -18
  459. package/components/get-css-variable-CBXsAxR6.cjs +18 -18
  460. package/components/get-css-variable-DYnldi15.js +18 -18
  461. package/components/get-dataset-name-3UfKdy0m.cjs +20 -0
  462. package/components/get-dataset-name-trrlomzY.js +32 -0
  463. package/components/grid-core-BFNgmaGk.js +4490 -0
  464. package/components/grid-core-DY0vyroD.cjs +68 -0
  465. package/components/grid-core.cjs +20 -0
  466. package/components/grid-core.js +21 -0
  467. package/components/groupings-B55Oba6e.js +52 -0
  468. package/components/groupings-DEpTt8DV.cjs +20 -0
  469. package/components/guidelines-options.config-D-ZuReR_.cjs +18 -18
  470. package/components/guidelines-options.config-DyedEeX2.js +18 -18
  471. package/components/he-CdtHCved.cjs +18 -18
  472. package/components/he-Cs_3gvpL.js +18 -18
  473. package/components/heat-map-options.config-D58595hz.js +226 -0
  474. package/components/heat-map-options.config-DhQrM9S9.cjs +20 -0
  475. package/components/heat-map-options.de-CdqO8c7P.js +18 -18
  476. package/components/heat-map-options.de-Zq-m7g1c.cjs +18 -18
  477. package/components/heat-map-options.en-BAnXacHE.js +18 -18
  478. package/components/heat-map-options.en-CbP14v8z.cjs +18 -18
  479. package/components/heat-map-options.es-8rTCVZlw.js +18 -18
  480. package/components/heat-map-options.es-CUkrnKed.cjs +18 -18
  481. package/components/heat-map-options.fr-DXcosm8B.cjs +18 -18
  482. package/components/heat-map-options.fr-DbGhKWbq.js +18 -18
  483. package/components/heat-map-options.nl-B8LsAqqA.cjs +18 -18
  484. package/components/heat-map-options.nl-nw2vqBOn.js +18 -18
  485. package/components/heat-map-positioning.config-BTabq_f9.js +48 -0
  486. package/components/heat-map-positioning.config-DCB3Eagz.cjs +20 -0
  487. package/components/heat-map-slots.config-D2ypExJQ.js +18 -18
  488. package/components/heat-map-slots.config-Wp_oS8JQ.cjs +18 -18
  489. package/components/heat-table-options.config-AhmEjDAb.cjs +20 -0
  490. package/components/heat-table-options.config-x-KBTZo1.js +269 -0
  491. package/components/heat-table-options.de-D16uyY3b.cjs +18 -18
  492. package/components/heat-table-options.de-PCwpTsHu.js +18 -18
  493. package/components/heat-table-options.en-DCNhZ0Qw.js +18 -18
  494. package/components/heat-table-options.en-Dhd_yZdX.cjs +18 -18
  495. package/components/heat-table-options.es-DPqviw02.cjs +18 -18
  496. package/components/heat-table-options.es-Dhtu0ztS.js +18 -18
  497. package/components/heat-table-options.fr-BVwdrQWA.cjs +18 -18
  498. package/components/heat-table-options.fr-dtKsuwpe.js +18 -18
  499. package/components/heat-table-options.nl-BAiKDY6k.cjs +18 -18
  500. package/components/heat-table-options.nl-Bc0JFpfk.js +18 -18
  501. package/components/heat-table-positioning.config-Dnu133l4.cjs +20 -0
  502. package/components/heat-table-positioning.config-pK8Wn1dw.js +55 -0
  503. package/components/heat-table-slots.config-B1iOn6ay.js +18 -18
  504. package/components/heat-table-slots.config-BN7rtHZG.cjs +18 -18
  505. package/components/helpers-B2IWxa9q.cjs +18 -18
  506. package/components/helpers-irnB2xbq.js +18 -18
  507. package/components/hexbin-map-options.config-BGmgxnMh.cjs +18 -18
  508. package/components/hexbin-map-options.config-FK9DrXGD.js +18 -18
  509. package/components/hexbin-map-options.de-Ch56ViJL.cjs +18 -18
  510. package/components/hexbin-map-options.de-IOtNvdRA.js +18 -18
  511. package/components/hexbin-map-options.en-BHNWW3n5.cjs +18 -18
  512. package/components/hexbin-map-options.en-DKEF0zQn.js +18 -18
  513. package/components/hexbin-map-options.es-CinY6Q9x.cjs +18 -18
  514. package/components/hexbin-map-options.es-FkXMepZ7.js +18 -18
  515. package/components/hexbin-map-options.fr-3EQtw1--.cjs +18 -18
  516. package/components/hexbin-map-options.fr-DT7-Cefu.js +18 -18
  517. package/components/hexbin-map-options.nl-2P7aufJe.cjs +18 -18
  518. package/components/hexbin-map-options.nl-BwgDBrw4.js +18 -18
  519. package/components/hexbin-map-positioning.config-DjYp-lX8.js +48 -0
  520. package/components/hexbin-map-positioning.config-IqRt8f29.cjs +20 -0
  521. package/components/hexbin-map-slots.config-CC1xZINm.js +18 -18
  522. package/components/hexbin-map-slots.config-mx5zUTrA.cjs +18 -18
  523. package/components/hu-BXedq4ZF.js +18 -18
  524. package/components/hu-D0kNP1hN.cjs +18 -18
  525. package/components/icon-element-DpN-9yaN.cjs +18 -18
  526. package/components/icon-element-_jY440X2.js +18 -18
  527. package/components/image-options.config-DZ5q1D63.cjs +18 -18
  528. package/components/image-options.config-DxF0RSUF.js +18 -18
  529. package/components/image-options.de-Bh8QqYb_.js +18 -18
  530. package/components/image-options.de-Bm7MsFjT.cjs +18 -18
  531. package/components/image-options.en-Bt3w6SPu.cjs +18 -18
  532. package/components/image-options.en-D2iUVarz.js +18 -18
  533. package/components/image-options.es-CKpabSfB.js +18 -18
  534. package/components/image-options.es-ecJMtP0F.cjs +18 -18
  535. package/components/image-options.fr-D5P3FQRB.cjs +18 -18
  536. package/components/image-options.fr-vfaeguWy.js +18 -18
  537. package/components/image-options.nl-B16JINhD.js +18 -18
  538. package/components/image-options.nl-B7M__YOZ.cjs +18 -18
  539. package/components/image-slots.config-BPJRdlMR.cjs +18 -18
  540. package/components/image-slots.config-Ba8NXeCH.js +18 -18
  541. package/components/index.cjs +19 -19
  542. package/components/index.js +75 -75
  543. package/components/info-tooltip-options.config-B9T0cwSM.cjs +18 -18
  544. package/components/info-tooltip-options.config-BmSMkirf.js +18 -18
  545. package/components/info-tooltip-options.i18n-B3u0H74j.cjs +18 -18
  546. package/components/info-tooltip-options.i18n-CDx47Py-.js +18 -18
  547. package/components/interactive-viz-item/index.cjs +19 -19
  548. package/components/interactive-viz-item/index.js +19 -19
  549. package/components/interactive-viz-item-CM-LoEa5.cjs +261 -0
  550. package/components/interactive-viz-item-D6lWVMHb.js +528 -0
  551. package/components/interactivity-options.config-BjEGNaIz.js +18 -18
  552. package/components/interactivity-options.config-Bzk2L-qh.cjs +18 -18
  553. package/components/interactivity-options.i18n-BsYv4Rh9.cjs +18 -18
  554. package/components/interactivity-options.i18n-UhOnnlBC.js +18 -18
  555. package/components/it-BZF7oRfg.cjs +18 -18
  556. package/components/it-BoudiwDn.js +18 -18
  557. package/components/item-context-configs.cjs +18 -18
  558. package/components/item-context-configs.js +18 -18
  559. package/components/item-grid/helpers/grid-chart-rendering.d.ts +12 -0
  560. package/components/item-grid/helpers/grid-events.d.ts +1 -56
  561. package/components/item-grid/helpers/grid-interactions.d.ts +1 -88
  562. package/components/item-grid/helpers/grid-item-management.d.ts +5 -26
  563. package/components/item-grid/helpers/grid-item-popover.d.ts +1 -21
  564. package/components/item-grid/helpers/grid-items.d.ts +1 -9
  565. package/components/item-grid/helpers/grid-keyboard-updates.d.ts +1 -18
  566. package/components/item-grid/helpers/grid-keydown-event.d.ts +1 -18
  567. package/components/item-grid/helpers/grid-popover-cleanup.d.ts +1 -4
  568. package/components/item-grid/helpers/grid-rendering.d.ts +0 -50
  569. package/components/item-grid/helpers/grid-stack-lifecycle.d.ts +1 -26
  570. package/components/item-grid/helpers/grid-theme.d.ts +2 -14
  571. package/components/item-grid/helpers/grid-update-cycle.d.ts +1 -22
  572. package/components/item-grid/index.cjs +19 -19
  573. package/components/item-grid/index.d.ts +2 -2
  574. package/components/item-grid/index.js +20 -20
  575. package/components/item-grid/item-grid.d.ts +10 -206
  576. package/components/item-grid/types.d.ts +1 -46
  577. package/components/item-grid-CbXKsQm4.js +245 -0
  578. package/components/item-grid-DTishUCb.cjs +41 -0
  579. package/components/item-grid-item-actions-menu/index.cjs +19 -19
  580. package/components/item-grid-item-actions-menu/index.js +19 -19
  581. package/components/item-grid-item-actions-menu/types.d.ts +2 -13
  582. package/components/item-grid-item-actions-menu-B7ylgTwO.js +199 -0
  583. package/components/item-grid-item-actions-menu-C3BUxZJc.cjs +52 -0
  584. package/components/item-list.cjs +18 -18
  585. package/components/item-list.js +18 -18
  586. package/components/item-option/index.cjs +19 -19
  587. package/components/item-option/index.js +19 -19
  588. package/components/item-option-BTSV33ft.cjs +269 -0
  589. package/components/item-option-BUju6ZE1.js +953 -0
  590. package/components/item-option-action-button-group/index.cjs +19 -19
  591. package/components/item-option-action-button-group/index.js +19 -19
  592. package/components/item-option-action-button-group-CuDeyDRi.cjs +53 -0
  593. package/components/item-option-action-button-group-DnTBh3R4.js +117 -0
  594. package/components/item-option-base-BIDIiNfI.js +120 -0
  595. package/components/item-option-base-C6RQH9M8.cjs +56 -0
  596. package/components/item-option-color-palette-picker/index.cjs +19 -19
  597. package/components/item-option-color-palette-picker/index.js +19 -19
  598. package/components/item-option-color-palette-picker-DbsqP2zA.js +2040 -0
  599. package/components/item-option-color-palette-picker-DsG-wxGB.cjs +40 -0
  600. package/components/item-option-color-picker/index.cjs +19 -19
  601. package/components/item-option-color-picker/index.js +19 -19
  602. package/components/item-option-color-picker-BUN5YK-t.cjs +34 -0
  603. package/components/item-option-color-picker-CKGUj3cW.js +86 -0
  604. package/components/item-option-color-range/index.cjs +19 -19
  605. package/components/item-option-color-range/index.js +19 -19
  606. package/components/item-option-color-range-BN81ePAI.cjs +98 -0
  607. package/components/item-option-color-range-dMehrwqA.js +219 -0
  608. package/components/item-option-guidelines/index.cjs +19 -19
  609. package/components/item-option-guidelines/index.js +19 -19
  610. package/components/item-option-guidelines-Bn1HSCgL.js +420 -0
  611. package/components/item-option-guidelines-CmPaMdqb.cjs +135 -0
  612. package/components/item-option-multi-language-field/index.cjs +19 -19
  613. package/components/item-option-multi-language-field/index.js +19 -19
  614. package/components/item-option-multi-language-field-BFgbOzMM.js +81 -0
  615. package/components/item-option-multi-language-field-Du609wC_.cjs +33 -0
  616. package/components/item-option-number-field/index.cjs +19 -19
  617. package/components/item-option-number-field/index.js +19 -19
  618. package/components/item-option-number-field-CDcf6_4D.js +101 -0
  619. package/components/item-option-number-field-CVAtj0UX.cjs +38 -0
  620. package/components/item-option-panel/index.cjs +19 -19
  621. package/components/item-option-panel/index.js +19 -19
  622. package/components/item-option-panel-0iHLl9-q.cjs +67 -0
  623. package/components/item-option-panel-DUlIB6qj.js +181 -0
  624. package/components/item-option-picker/index.cjs +19 -19
  625. package/components/item-option-picker/index.js +19 -19
  626. package/components/item-option-picker-ClKAGpgs.js +76 -0
  627. package/components/item-option-picker-Dkc3nd3x.cjs +37 -0
  628. package/components/item-option-position-picker/index.cjs +19 -19
  629. package/components/item-option-position-picker/index.js +19 -19
  630. package/components/item-option-position-picker-O8PpyiRv.js +116 -0
  631. package/components/item-option-position-picker-qCKh0Mfs.cjs +32 -0
  632. package/components/item-option-positions-number-field/index.cjs +19 -19
  633. package/components/item-option-positions-number-field/index.js +19 -19
  634. package/components/item-option-positions-number-field-CBx4uQ39.js +165 -0
  635. package/components/item-option-positions-number-field-Dfe4ufnF.cjs +49 -0
  636. package/components/item-option-radio-button-group/index.cjs +19 -19
  637. package/components/item-option-radio-button-group/index.js +19 -19
  638. package/components/item-option-radio-button-group-B5OVbLRg.cjs +37 -0
  639. package/components/item-option-radio-button-group-J_ZusHOP.js +73 -0
  640. package/components/item-option-slider/index.cjs +19 -19
  641. package/components/item-option-slider/index.js +19 -19
  642. package/components/item-option-slider-BDAEs7Fk.cjs +33 -0
  643. package/components/item-option-slider-V9z4qqyE.js +97 -0
  644. package/components/item-option-switch/index.cjs +19 -19
  645. package/components/item-option-switch/index.js +19 -19
  646. package/components/item-option-switch-BA4ifIHK.js +68 -0
  647. package/components/item-option-switch-Bzy2VRLg.cjs +30 -0
  648. package/components/item-option-text-field/index.cjs +19 -19
  649. package/components/item-option-text-field/index.js +19 -19
  650. package/components/item-option-text-field-C-sTkUre.cjs +33 -0
  651. package/components/item-option-text-field-Cf0khC48.js +79 -0
  652. package/components/item-options-configs.cjs +19 -19
  653. package/components/item-options-configs.js +23 -23
  654. package/components/item-slot-drop/index.cjs +19 -19
  655. package/components/item-slot-drop/index.js +19 -19
  656. package/components/item-slot-drop-D2VDgqYS.js +329 -0
  657. package/components/item-slot-drop-DrJRtG7b.cjs +91 -0
  658. package/components/item-slot-drop-panel/index.cjs +19 -19
  659. package/components/item-slot-drop-panel/index.js +19 -19
  660. package/components/item-slot-drop-panel-CCCOwtYM.js +353 -0
  661. package/components/item-slot-drop-panel-CFerKcdH.cjs +57 -0
  662. package/components/item-slot-picker/index.cjs +19 -19
  663. package/components/item-slot-picker/index.js +19 -19
  664. package/components/item-slot-picker-BdfYcBKT.js +503 -0
  665. package/components/item-slot-picker-aqePvZ9B.cjs +174 -0
  666. package/components/item-slot-picker-panel/index.cjs +19 -19
  667. package/components/item-slot-picker-panel/index.js +19 -19
  668. package/components/item-slot-picker-panel-DC3i7XZP.js +446 -0
  669. package/components/item-slot-picker-panel-dU6NywBo.cjs +81 -0
  670. package/components/item-slots-configs.cjs +18 -18
  671. package/components/item-slots-configs.js +18 -18
  672. package/components/ja-DOkmGGSd.js +18 -18
  673. package/components/ja-aOzAwMPW.cjs +18 -18
  674. package/components/ko-B50TWXco.cjs +18 -18
  675. package/components/ko-BrzKwqTe.js +18 -18
  676. package/components/line-chart-options.config-C3_RnROS.js +18 -18
  677. package/components/line-chart-options.config-RTYFJQSE.cjs +18 -18
  678. package/components/line-chart-options.de-CKbHARjX.cjs +18 -18
  679. package/components/line-chart-options.de-CtxTZ-Nx.js +18 -18
  680. package/components/line-chart-options.en-BgXtU92P.js +18 -18
  681. package/components/line-chart-options.en-DmtT3Hbw.cjs +18 -18
  682. package/components/line-chart-options.es--u7QlrhG.js +18 -18
  683. package/components/line-chart-options.es-BwyQviz-.cjs +18 -18
  684. package/components/line-chart-options.fr-BUwOFGR7.cjs +18 -18
  685. package/components/line-chart-options.fr-BaPc1M70.js +18 -18
  686. package/components/line-chart-options.nl-BkPXShNF.cjs +18 -18
  687. package/components/line-chart-options.nl-C86fSn7a.js +18 -18
  688. package/components/line-chart-positioning.config-BW19v66B.js +55 -0
  689. package/components/line-chart-positioning.config-DX5mLAP7.cjs +20 -0
  690. package/components/line-chart-slots.config-CA-I6B6o.js +18 -18
  691. package/components/line-chart-slots.config-vv66fcoE.cjs +18 -18
  692. package/components/load-data-fields-for-datasets-C4h8NWIE.cjs +20 -0
  693. package/components/load-data-fields-for-datasets-CInmiDlZ.js +42 -0
  694. package/components/localize-BT7REYBY.js +18 -18
  695. package/components/localize-D3i4Epy_.cjs +18 -18
  696. package/components/localized-mixin-Bt25Frg1.cjs +20 -0
  697. package/components/localized-mixin-CYMFnS-n.js +45 -0
  698. package/components/map-tile-providers-DzSBmFkY.cjs +18 -18
  699. package/components/map-tile-providers-RN2cWRln.js +18 -18
  700. package/components/marker-map-options.config-OMdgbAc4.js +18 -18
  701. package/components/marker-map-options.config-SkhbtEh0.cjs +18 -18
  702. package/components/marker-map-options.de-BSu8VCAw.cjs +18 -18
  703. package/components/marker-map-options.de-DVb2ab5i.js +18 -18
  704. package/components/marker-map-options.en-BNwkDxQB.js +18 -18
  705. package/components/marker-map-options.en-CKMe-zNW.cjs +18 -18
  706. package/components/marker-map-options.es-CY2DRGKv.js +18 -18
  707. package/components/marker-map-options.es-D6x5XPW7.cjs +18 -18
  708. package/components/marker-map-options.fr-D31wgwxG.js +18 -18
  709. package/components/marker-map-options.fr-xZ7ixq37.cjs +18 -18
  710. package/components/marker-map-options.nl-Bvo1Sgwp.cjs +18 -18
  711. package/components/marker-map-options.nl-DyZo_CFt.js +18 -18
  712. package/components/marker-map-positioning.config-BJGwlWKz.js +48 -0
  713. package/components/marker-map-positioning.config-C0V5LZG-.cjs +20 -0
  714. package/components/marker-map-slots.config-CcGNgr1_.js +18 -18
  715. package/components/marker-map-slots.config-DigZk7lN.cjs +18 -18
  716. package/components/mk-CehJi277.cjs +18 -18
  717. package/components/mk-Deht4BwZ.js +18 -18
  718. package/components/nl-BrjaaktE.cjs +20 -0
  719. package/components/nl-C1BTOQ5N.js +18 -18
  720. package/components/nl-TUFktGm6.js +594 -0
  721. package/components/nl-wyer9j4m.cjs +18 -18
  722. package/components/no-C9FQ33Mp.js +18 -18
  723. package/components/no-PqE_GjX_.cjs +18 -18
  724. package/components/ohlc-chart-options.config-CWRI5bXI.js +18 -18
  725. package/components/ohlc-chart-options.config-Pqd5MFIv.cjs +18 -18
  726. package/components/ohlc-chart-options.de-DtanuVcU.cjs +18 -18
  727. package/components/ohlc-chart-options.de-LnJmQjiR.js +18 -18
  728. package/components/ohlc-chart-options.en-B7TU8CK4.js +18 -18
  729. package/components/ohlc-chart-options.en-CStPyUia.cjs +18 -18
  730. package/components/ohlc-chart-options.es-B7m8-_pA.js +18 -18
  731. package/components/ohlc-chart-options.es-CfTI32Rg.cjs +18 -18
  732. package/components/ohlc-chart-options.fr-C53gRLh5.cjs +18 -18
  733. package/components/ohlc-chart-options.fr-u_Bi9raw.js +18 -18
  734. package/components/ohlc-chart-options.nl-BrpwjNGt.js +18 -18
  735. package/components/ohlc-chart-options.nl-Dh9iPIWB.cjs +18 -18
  736. package/components/ohlc-chart-positioning.config-Bu1_IBVK.cjs +20 -0
  737. package/components/ohlc-chart-positioning.config-CFvbZzCR.js +78 -0
  738. package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +18 -18
  739. package/components/ohlc-chart-slots.config-Pv0xst-Y.js +18 -18
  740. package/components/orion-CXeT8EeB.js +18 -18
  741. package/components/orion-DkQrXOy_.cjs +18 -18
  742. package/components/parallel-coordinates-plot-options.config-2BbzNgJ9.cjs +18 -18
  743. package/components/parallel-coordinates-plot-options.config-DbuNgevO.js +18 -18
  744. package/components/parallel-coordinates-plot-options.de-BwbOcCnH.js +18 -18
  745. package/components/parallel-coordinates-plot-options.de-CDtIM_Z2.cjs +18 -18
  746. package/components/parallel-coordinates-plot-options.en-BlzPfF-b.js +18 -18
  747. package/components/parallel-coordinates-plot-options.en-Bu7cMLrv.cjs +18 -18
  748. package/components/parallel-coordinates-plot-options.es-BPgUHedg.cjs +18 -18
  749. package/components/parallel-coordinates-plot-options.es-CPAqJPEY.js +18 -18
  750. package/components/parallel-coordinates-plot-options.fr-BUxk85Ud.cjs +18 -18
  751. package/components/parallel-coordinates-plot-options.fr-DRTOCvqg.js +18 -18
  752. package/components/parallel-coordinates-plot-options.nl-CHuWgaYV.cjs +18 -18
  753. package/components/parallel-coordinates-plot-options.nl-DqXxaV_Z.js +18 -18
  754. package/components/parallel-coordinates-plot-positioning.config-Bc3qCyxq.js +48 -0
  755. package/components/parallel-coordinates-plot-positioning.config-EJz1XA1k.cjs +20 -0
  756. package/components/parallel-coordinates-plot-slots.config-GvYC-RXK.js +18 -18
  757. package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +18 -18
  758. package/components/period-over-period-condition.const-BZ7j5Z5t.js +18 -18
  759. package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +18 -18
  760. package/components/periods.const-Db0nXrwr.cjs +18 -18
  761. package/components/periods.const-NCTkxnvG.js +18 -18
  762. package/components/pinky-CtuaRwwY.js +18 -18
  763. package/components/pinky-TtncdghA.cjs +18 -18
  764. package/components/pivot-table-options.config-CTz4bcGJ.js +18 -18
  765. package/components/pivot-table-options.config-D6Hdgnof.cjs +18 -18
  766. package/components/pivot-table-options.de-CZjCOf23.js +18 -18
  767. package/components/pivot-table-options.de-D4WdihDf.cjs +18 -18
  768. package/components/pivot-table-options.en-Ch0mKBst.cjs +18 -18
  769. package/components/pivot-table-options.en-Z6QZwj0n.js +18 -18
  770. package/components/pivot-table-options.es-DKNkDOBt.cjs +18 -18
  771. package/components/pivot-table-options.es-DW1enov2.js +18 -18
  772. package/components/pivot-table-options.fr-BAKlur9_.cjs +18 -18
  773. package/components/pivot-table-options.fr-Cl4jkSR4.js +18 -18
  774. package/components/pivot-table-options.nl-2mSHbpcz.cjs +18 -18
  775. package/components/pivot-table-options.nl-CaWEP9qN.js +18 -18
  776. package/components/pivot-table-positioning.config-Bay8gxV-.js +55 -0
  777. package/components/pivot-table-positioning.config-CMzGb-BR.cjs +20 -0
  778. package/components/pivot-table-slots.config-BAW0U3nh.js +18 -18
  779. package/components/pivot-table-slots.config-KlYXL90k.cjs +18 -18
  780. package/components/pl-4xvkt0Pl.js +18 -18
  781. package/components/pl-Cu6_UJbA.cjs +18 -18
  782. package/components/pragmatic-element-adapter-D0LRKx5U.js +18 -18
  783. package/components/pragmatic-element-adapter-DdyH32ix.cjs +18 -18
  784. package/components/pt-BUpCBhz9.js +18 -18
  785. package/components/pt-fymmI5Y3.cjs +18 -18
  786. package/components/pyramid-chart-options.config-C7btzuZj.js +18 -18
  787. package/components/pyramid-chart-options.config-ClLsv7PT.cjs +18 -18
  788. package/components/pyramid-chart-options.de-BYqibA2g.cjs +18 -18
  789. package/components/pyramid-chart-options.de-C7n_k-tE.js +18 -18
  790. package/components/pyramid-chart-options.en-Cu93qdAo.js +18 -18
  791. package/components/pyramid-chart-options.en-HiLgjfbn.cjs +18 -18
  792. package/components/pyramid-chart-options.es-BQ8qCZ32.cjs +18 -18
  793. package/components/pyramid-chart-options.es-DCRAv4r_.js +18 -18
  794. package/components/pyramid-chart-options.fr-BA7xAAsG.cjs +18 -18
  795. package/components/pyramid-chart-options.fr-CLXgcrPz.js +18 -18
  796. package/components/pyramid-chart-options.nl-BYiPyjuQ.cjs +18 -18
  797. package/components/pyramid-chart-options.nl-CylUmHpw.js +18 -18
  798. package/components/pyramid-chart-positioning.config-BUSeYxYH.js +55 -0
  799. package/components/pyramid-chart-positioning.config-CrU2vKM-.cjs +20 -0
  800. package/components/pyramid-chart-slots.config-CreUpxI2.cjs +18 -18
  801. package/components/pyramid-chart-slots.config-CsMMyhV3.js +18 -18
  802. package/components/radar-chart-options.config-B5WP2MPc.cjs +18 -18
  803. package/components/radar-chart-options.config-CtA6MpUp.js +18 -18
  804. package/components/radar-chart-options.de-BZPerBca.js +18 -18
  805. package/components/radar-chart-options.de-D9sVJ3e-.cjs +18 -18
  806. package/components/radar-chart-options.en-Brb_kgjH.cjs +18 -18
  807. package/components/radar-chart-options.en-tDJgJQVC.js +18 -18
  808. package/components/radar-chart-options.es-BmpV458O.cjs +18 -18
  809. package/components/radar-chart-options.es-Dz4wRR-P.js +18 -18
  810. package/components/radar-chart-options.fr-B-gaDJX4.cjs +18 -18
  811. package/components/radar-chart-options.fr-D5KXeury.js +18 -18
  812. package/components/radar-chart-options.nl-D3_CmNB3.js +18 -18
  813. package/components/radar-chart-options.nl-DH_wKvgI.cjs +18 -18
  814. package/components/radar-chart-positioning.config-BEzqTXyr.cjs +20 -0
  815. package/components/radar-chart-positioning.config-DOLpdn-d.js +55 -0
  816. package/components/radar-chart-slots.config-8Kf_WAFi.js +18 -18
  817. package/components/radar-chart-slots.config-B3oIp-8w.cjs +18 -18
  818. package/components/radiant-Brxg53Bd.cjs +18 -18
  819. package/components/radiant-CFMCU8Ue.js +18 -18
  820. package/components/regular-table-options.config-BRmS77t-.js +18 -18
  821. package/components/regular-table-options.config-nBBnO4ru.cjs +18 -18
  822. package/components/regular-table-options.de-C1P8Cfb_.cjs +18 -18
  823. package/components/regular-table-options.de-g9j453gb.js +18 -18
  824. package/components/regular-table-options.en-BrufALdp.js +18 -18
  825. package/components/regular-table-options.en-C2gYTBRo.cjs +18 -18
  826. package/components/regular-table-options.es-CTDJJHWO.js +18 -18
  827. package/components/regular-table-options.es-okSFyOya.cjs +18 -18
  828. package/components/regular-table-options.fr-CcAJM6IR.cjs +18 -18
  829. package/components/regular-table-options.fr-CwmYI6Kh.js +18 -18
  830. package/components/regular-table-options.nl-Dco7Br5G.js +18 -18
  831. package/components/regular-table-options.nl-YAFLo-aU.cjs +18 -18
  832. package/components/regular-table-positioning.config-CXabhyJu.cjs +18 -18
  833. package/components/regular-table-positioning.config-DegSA7rc.js +18 -18
  834. package/components/regular-table-slots.config-UwzWj6gg.cjs +18 -18
  835. package/components/regular-table-slots.config-r-N9A-qA.js +18 -18
  836. package/components/resolve-column-presentation-BaEP1mvs.js +18 -18
  837. package/components/resolve-column-presentation-DUETRVCH.cjs +18 -18
  838. package/components/rolldown-runtime-mLOUI7ql.cjs +18 -18
  839. package/components/route-map-options.config-BnufVGcz.js +328 -0
  840. package/components/route-map-options.config-DA3k24sP.cjs +20 -0
  841. package/components/route-map-options.de-B6WL0heF.cjs +18 -18
  842. package/components/route-map-options.de-C8gPppGo.js +18 -18
  843. package/components/route-map-options.en-BCuStpST.cjs +18 -18
  844. package/components/route-map-options.en-Bqo2qPTY.js +18 -18
  845. package/components/route-map-options.es-Bk1nyazp.js +18 -18
  846. package/components/route-map-options.es-DRPguAOv.cjs +18 -18
  847. package/components/route-map-options.fr-CIOd_axV.cjs +18 -18
  848. package/components/route-map-options.fr-vq0ht9wS.js +18 -18
  849. package/components/route-map-options.nl-BQoR8rHj.cjs +18 -18
  850. package/components/route-map-options.nl-CBhNlitV.js +18 -18
  851. package/components/route-map-positioning.config-BgjizdWh.cjs +20 -0
  852. package/components/route-map-positioning.config-Brg6_eCi.js +66 -0
  853. package/components/route-map-slots.config-DMII2UuP.js +18 -18
  854. package/components/route-map-slots.config-DfYT65BF.cjs +18 -18
  855. package/components/royale-BiMs0EtI.cjs +18 -18
  856. package/components/royale-Cy1oOAE2.js +18 -18
  857. package/components/ru-CkNBR3ab.js +18 -18
  858. package/components/ru-RyEkpfw0.cjs +18 -18
  859. package/components/sankey-diagram-options.config-DZDqv5aI.cjs +18 -18
  860. package/components/sankey-diagram-options.config-nQDCRhKs.js +18 -18
  861. package/components/sankey-diagram-options.de-CDt5-4Rb.js +18 -18
  862. package/components/sankey-diagram-options.de-UZnVsw9I.cjs +18 -18
  863. package/components/sankey-diagram-options.en-65nfEWo_.js +18 -18
  864. package/components/sankey-diagram-options.en-BfINAD0e.cjs +18 -18
  865. package/components/sankey-diagram-options.es-JD4SHY3x.js +18 -18
  866. package/components/sankey-diagram-options.es-quSoEKtB.cjs +18 -18
  867. package/components/sankey-diagram-options.fr-B7wQDggY.js +18 -18
  868. package/components/sankey-diagram-options.fr-DeoKurMp.cjs +18 -18
  869. package/components/sankey-diagram-options.nl-2B5ScaJK.cjs +18 -18
  870. package/components/sankey-diagram-options.nl-CHqVVjut.js +18 -18
  871. package/components/sankey-diagram-positioning.config-DJlWiNYL.js +66 -0
  872. package/components/sankey-diagram-positioning.config-vccTz1pG.cjs +20 -0
  873. package/components/sankey-diagram-slots.config-D-_u4w36.cjs +18 -18
  874. package/components/sankey-diagram-slots.config-DmWIGut0.js +18 -18
  875. package/components/scatter-plot-options.config-BplrME7w.js +18 -18
  876. package/components/scatter-plot-options.config-DJW85uFv.cjs +18 -18
  877. package/components/scatter-plot-options.de-3CPVK7Hi.cjs +18 -18
  878. package/components/scatter-plot-options.de-CNLrv6j3.js +18 -18
  879. package/components/scatter-plot-options.en-DigMzpQy.js +18 -18
  880. package/components/scatter-plot-options.en-Dzvigy8-.cjs +18 -18
  881. package/components/scatter-plot-options.es-C-IH7GVH.cjs +18 -18
  882. package/components/scatter-plot-options.es-CQm_VVqJ.js +18 -18
  883. package/components/scatter-plot-options.fr-Cdp6kPQi.cjs +18 -18
  884. package/components/scatter-plot-options.fr-s0M39VT4.js +18 -18
  885. package/components/scatter-plot-options.nl-CqpPIO03.js +18 -18
  886. package/components/scatter-plot-options.nl-DeINlMqc.cjs +18 -18
  887. package/components/scatter-plot-positioning.config-BKqPHMrS.js +77 -0
  888. package/components/scatter-plot-positioning.config-D7uFFBVZ.cjs +20 -0
  889. package/components/scatter-plot-slots.config-B7wQVEEj.js +18 -18
  890. package/components/scatter-plot-slots.config-CrG6wQtV.cjs +18 -18
  891. package/components/search-filter-options.config-B-dGVPhS.cjs +18 -18
  892. package/components/search-filter-options.config-yAz6IIto.js +18 -18
  893. package/components/search-filter-options.de-BxVThclj.js +18 -18
  894. package/components/search-filter-options.de-XhjxPeKG.cjs +18 -18
  895. package/components/search-filter-options.en-Bp3Pgxmd.cjs +18 -18
  896. package/components/search-filter-options.en-CVxOFFq-.js +18 -18
  897. package/components/search-filter-options.es-CXfwE4S3.cjs +18 -18
  898. package/components/search-filter-options.es-YKtCfXeL.js +18 -18
  899. package/components/search-filter-options.fr-GGa8ofab.js +18 -18
  900. package/components/search-filter-options.fr-bif0VBh1.cjs +18 -18
  901. package/components/search-filter-options.nl-DZhs-o0B.cjs +18 -18
  902. package/components/search-filter-options.nl-ysVe1z-i.js +18 -18
  903. package/components/search-filter-positioning.config-BvwxJS-1.cjs +18 -18
  904. package/components/search-filter-positioning.config-DOSL-FX_.js +18 -18
  905. package/components/search-filter-slots.config-D8-V0BT5.js +18 -18
  906. package/components/search-filter-slots.config-DP06ulJA.cjs +18 -18
  907. package/components/seasonal-DTf_okZ2.cjs +18 -18
  908. package/components/seasonal-DZkRSBgY.js +18 -18
  909. package/components/set-locale-Bgz1WNGE.cjs +20 -0
  910. package/components/set-locale-s-1X7Jce.js +43 -0
  911. package/components/set-nested-value-B-4IelRl.cjs +18 -18
  912. package/components/set-nested-value-V1TdquO3.js +18 -18
  913. package/components/slicer-filter-options.config-BtGkT2hI.js +18 -18
  914. package/components/slicer-filter-options.config-Cyjd_SRY.cjs +18 -18
  915. package/components/slicer-filter-options.de-7mpgtwLj.cjs +18 -18
  916. package/components/slicer-filter-options.de-Ck5STkcT.js +18 -18
  917. package/components/slicer-filter-options.en-CiYiPtJB.cjs +18 -18
  918. package/components/slicer-filter-options.en-RaYV5qQy.js +18 -18
  919. package/components/slicer-filter-options.es-B8VkLkMj.cjs +18 -18
  920. package/components/slicer-filter-options.es-C1LS6cqV.js +18 -18
  921. package/components/slicer-filter-options.fr-CYOej3j3.js +18 -18
  922. package/components/slicer-filter-options.fr-DV9DiqqL.cjs +18 -18
  923. package/components/slicer-filter-options.nl-B9CyFXTX.js +18 -18
  924. package/components/slicer-filter-options.nl-DVeUTVn7.cjs +18 -18
  925. package/components/slicer-filter-positioning.config-D1kR4xly.cjs +20 -0
  926. package/components/slicer-filter-positioning.config-Gl9jhO_G.js +48 -0
  927. package/components/slicer-filter-slots.config-CHKpdJvF.cjs +18 -18
  928. package/components/slicer-filter-slots.config-DR0Wg_Zr.js +18 -18
  929. package/components/slider-filter-options.config-BeIw6IrQ.cjs +18 -18
  930. package/components/slider-filter-options.config-D_yZ_nFz.js +18 -18
  931. package/components/slider-filter-options.de-CK9B4Rir.cjs +18 -18
  932. package/components/slider-filter-options.de-CUPN4B_3.js +18 -18
  933. package/components/slider-filter-options.en-CqnlQHF8.js +18 -18
  934. package/components/slider-filter-options.en-ZDfr4vqY.cjs +18 -18
  935. package/components/slider-filter-options.es-CN-cg2rH.js +18 -18
  936. package/components/slider-filter-options.es-CeAMKv7C.cjs +18 -18
  937. package/components/slider-filter-options.fr-BxgSJRs4.js +18 -18
  938. package/components/slider-filter-options.fr-D44hi-fD.cjs +18 -18
  939. package/components/slider-filter-options.nl-Cd41AI1Z.js +18 -18
  940. package/components/slider-filter-options.nl-p1nxsQFL.cjs +18 -18
  941. package/components/slider-filter-positioning.config-DSoEN2ip.js +18 -18
  942. package/components/slider-filter-positioning.config-a7tK-5va.cjs +18 -18
  943. package/components/slider-filter-slots.config-9R298H0t.cjs +18 -18
  944. package/components/slider-filter-slots.config-BUHw-32u.js +18 -18
  945. package/components/slot-labels.config-3nXLBRdr.js +18 -18
  946. package/components/slot-labels.config-DKnxOncr.cjs +18 -18
  947. package/components/slot-menu/index.cjs +19 -19
  948. package/components/slot-menu/index.js +19 -19
  949. package/components/slot-menu-CAhxaK5-.cjs +71 -0
  950. package/components/slot-menu-Dw53Y-iu.js +429 -0
  951. package/components/slot-menu-list/index.cjs +19 -19
  952. package/components/slot-menu-list/index.js +19 -19
  953. package/components/slot-menu-list-5NsRo9XD.js +348 -0
  954. package/components/slot-menu-list-CUsmYkiV.cjs +44 -0
  955. package/components/slot-role-classification-2wChhpcq.cjs +18 -18
  956. package/components/slot-role-classification-B8bkGhQ_.js +18 -18
  957. package/components/slots-config-Cd4xAG4H.cjs +18 -18
  958. package/components/slots-config-GlSNH7Gr.js +18 -18
  959. package/components/spacer-options.config-BsbiQt-1.cjs +18 -18
  960. package/components/spacer-options.config-C27xkF_H.js +18 -18
  961. package/components/speedometer-chart-options.config-BL7evgzP.js +18 -18
  962. package/components/speedometer-chart-options.config-CEIZfeYG.cjs +18 -18
  963. package/components/speedometer-chart-options.de-9J5HFt8T.js +18 -18
  964. package/components/speedometer-chart-options.de-Duicdnfl.cjs +18 -18
  965. package/components/speedometer-chart-options.en-DSQsXJfa.js +18 -18
  966. package/components/speedometer-chart-options.en-t4qxY0EQ.cjs +18 -18
  967. package/components/speedometer-chart-options.es-0JgXONad.cjs +18 -18
  968. package/components/speedometer-chart-options.es-BGphL673.js +18 -18
  969. package/components/speedometer-chart-options.fr-CAsCn9Vw.cjs +18 -18
  970. package/components/speedometer-chart-options.fr-Cj4C4th7.js +18 -18
  971. package/components/speedometer-chart-options.nl-BKNd6tYT.js +18 -18
  972. package/components/speedometer-chart-options.nl-COjZR7lk.cjs +18 -18
  973. package/components/speedometer-chart-positioning.config-VBLrLNmO.js +48 -0
  974. package/components/speedometer-chart-positioning.config-fa90zZdb.cjs +20 -0
  975. package/components/speedometer-chart-slots.config-2Y_x52Gy.js +18 -18
  976. package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +18 -18
  977. package/components/spike-map-options.config-34Vf0UbN.cjs +20 -0
  978. package/components/spike-map-options.config-CBpHkAfo.js +415 -0
  979. package/components/spike-map-options.de-Cdd3EEF2.cjs +18 -18
  980. package/components/spike-map-options.de-J48HW0-l.js +18 -18
  981. package/components/spike-map-options.en-B55b8Jn_.cjs +18 -18
  982. package/components/spike-map-options.en-Cic1NUan.js +18 -18
  983. package/components/spike-map-options.es-DOmj973W.cjs +18 -18
  984. package/components/spike-map-options.es-DbCa45oc.js +18 -18
  985. package/components/spike-map-options.fr-DHr9Aw6b.cjs +18 -18
  986. package/components/spike-map-options.fr-LqDsPbpZ.js +18 -18
  987. package/components/spike-map-options.nl-BYSBD11T.cjs +18 -18
  988. package/components/spike-map-options.nl-CRaM6WoB.js +18 -18
  989. package/components/spike-map-positioning.config-DrxdeFsj.cjs +20 -0
  990. package/components/spike-map-positioning.config-oYjk3n9a.js +55 -0
  991. package/components/spike-map-slots.config-DJWMFPIR.js +18 -18
  992. package/components/spike-map-slots.config-cKfaD6dQ.cjs +18 -18
  993. package/components/strip-plot-options.config-DpRoR04b.cjs +18 -18
  994. package/components/strip-plot-options.config-tDmVlu9U.js +18 -18
  995. package/components/strip-plot-options.de-BhNKiBKE.cjs +18 -18
  996. package/components/strip-plot-options.de-vzJck0Vn.js +18 -18
  997. package/components/strip-plot-options.en-Bdv_ZOrd.js +18 -18
  998. package/components/strip-plot-options.en-Cxfv-AD6.cjs +18 -18
  999. package/components/strip-plot-options.es-B4qu-PBV.cjs +18 -18
  1000. package/components/strip-plot-options.es-B91vttJc.js +18 -18
  1001. package/components/strip-plot-options.fr-BJCQe-Bn.cjs +18 -18
  1002. package/components/strip-plot-options.fr-DJQiJ_Zf.js +18 -18
  1003. package/components/strip-plot-options.nl-BtIGpq6K.cjs +18 -18
  1004. package/components/strip-plot-options.nl-Dx7PVRrW.js +18 -18
  1005. package/components/strip-plot-positioning.config-Bx_fqmEj.cjs +20 -0
  1006. package/components/strip-plot-positioning.config-lMn33cM4.js +48 -0
  1007. package/components/strip-plot-slots.config-DNYlrK_c.cjs +18 -18
  1008. package/components/strip-plot-slots.config-suFyIf5-.js +18 -18
  1009. package/components/sunburst-chart-options.config-Bjue_lQN.js +18 -18
  1010. package/components/sunburst-chart-options.config-DszAtggj.cjs +18 -18
  1011. package/components/sunburst-chart-options.de-Cv5jxNjX.js +18 -18
  1012. package/components/sunburst-chart-options.de-DV_80qR9.cjs +18 -18
  1013. package/components/sunburst-chart-options.en-Zfns8M0i.cjs +18 -18
  1014. package/components/sunburst-chart-options.en-wsOVOyb6.js +18 -18
  1015. package/components/sunburst-chart-options.es-BSKiBxl_.cjs +18 -18
  1016. package/components/sunburst-chart-options.es-Qhu6VcVi.js +18 -18
  1017. package/components/sunburst-chart-options.fr-DOcWgNOZ.cjs +18 -18
  1018. package/components/sunburst-chart-options.fr-GdCEoo8O.js +18 -18
  1019. package/components/sunburst-chart-options.nl-D2JXoYTB.cjs +18 -18
  1020. package/components/sunburst-chart-options.nl-oTUKol5z.js +18 -18
  1021. package/components/sunburst-chart-positioning.config-C-We-zZF.js +48 -0
  1022. package/components/sunburst-chart-positioning.config-D-GRWmyF.cjs +20 -0
  1023. package/components/sunburst-chart-slots.config-BqVT-h0Z.js +18 -18
  1024. package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +18 -18
  1025. package/components/superPropGet-CBezYwzm.js +52 -0
  1026. package/components/superPropGet-DmmlTXgo.cjs +20 -0
  1027. package/components/sv-CtRGTNGV.cjs +18 -18
  1028. package/components/sv-D2kQHkgH.js +18 -18
  1029. package/components/symbol-map-options.config-Ce0Kv7N7.cjs +18 -18
  1030. package/components/symbol-map-options.config-Dyeya5Z2.js +18 -18
  1031. package/components/symbol-map-options.de-BiDrG9dj.cjs +18 -18
  1032. package/components/symbol-map-options.de-CAapWyZM.js +18 -18
  1033. package/components/symbol-map-options.en-CaXeV5i_.js +18 -18
  1034. package/components/symbol-map-options.en-DLHLVF14.cjs +18 -18
  1035. package/components/symbol-map-options.es-Bv7kYGH2.cjs +18 -18
  1036. package/components/symbol-map-options.es-Ccu0xWZb.js +18 -18
  1037. package/components/symbol-map-options.fr-B7F1XlQX.js +18 -18
  1038. package/components/symbol-map-options.fr-BCMc9cTL.cjs +18 -18
  1039. package/components/symbol-map-options.nl-BiSD07Wp.cjs +18 -18
  1040. package/components/symbol-map-options.nl-DkV83AGA.js +18 -18
  1041. package/components/symbol-map-positioning.config-B0sLlLzK.cjs +20 -0
  1042. package/components/symbol-map-positioning.config-_TJSfpVj.js +55 -0
  1043. package/components/symbol-map-slots.config-DwNf547A.cjs +18 -18
  1044. package/components/symbol-map-slots.config-Rhpher5o.js +18 -18
  1045. package/components/text-options.config-BwBCG2yo.cjs +18 -18
  1046. package/components/text-options.config-CXhvzzPF.js +18 -18
  1047. package/components/text-options.de-Rtef15Lz.js +18 -18
  1048. package/components/text-options.de-hh7o6URS.cjs +18 -18
  1049. package/components/text-options.en-Dq7UNCRY.cjs +18 -18
  1050. package/components/text-options.en-YdJ2bVwv.js +18 -18
  1051. package/components/text-options.es-BSxIMxFF.cjs +18 -18
  1052. package/components/text-options.es-Chd8-zuc.js +18 -18
  1053. package/components/text-options.fr-CBUn8HSn.cjs +18 -18
  1054. package/components/text-options.fr-CWeBOXaW.js +18 -18
  1055. package/components/text-options.nl-CUiG2YHs.cjs +18 -18
  1056. package/components/text-options.nl-CyY1z7nM.js +18 -18
  1057. package/components/text-slots.config-CPghLc8b.cjs +18 -18
  1058. package/components/text-slots.config-Dzj4-x2G.js +18 -18
  1059. package/components/themes-CQZd578_.js +18 -18
  1060. package/components/themes-kvrISOTz.cjs +18 -18
  1061. package/components/tokens-BWMfo_w4.cjs +18 -18
  1062. package/components/tokens-Ov1pCR4Y.js +18 -18
  1063. package/components/tr-B66hMkRl.js +18 -18
  1064. package/components/tr-xcDpAdjw.cjs +18 -18
  1065. package/components/treemap-chart-options.config-BzOCEWog.js +18 -18
  1066. package/components/treemap-chart-options.config-Cpj6vD6I.cjs +18 -18
  1067. package/components/treemap-chart-options.de-BWg_01-W.cjs +18 -18
  1068. package/components/treemap-chart-options.de-ByDBntoA.js +18 -18
  1069. package/components/treemap-chart-options.en-0-5g1Vjs.js +18 -18
  1070. package/components/treemap-chart-options.en-D18VTnD9.cjs +18 -18
  1071. package/components/treemap-chart-options.es-BzkqvqXv.cjs +18 -18
  1072. package/components/treemap-chart-options.es-CDkb_3c3.js +18 -18
  1073. package/components/treemap-chart-options.fr-g6917FeS.cjs +18 -18
  1074. package/components/treemap-chart-options.fr-rj0fjvUO.js +18 -18
  1075. package/components/treemap-chart-options.nl-BTh-UB95.cjs +18 -18
  1076. package/components/treemap-chart-options.nl-CQjDtoqG.js +18 -18
  1077. package/components/treemap-chart-positioning.config-CO05Gv7X.cjs +20 -0
  1078. package/components/treemap-chart-positioning.config-DAdvoS2I.js +55 -0
  1079. package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +18 -18
  1080. package/components/treemap-chart-slots.config-DRcafVU-.js +18 -18
  1081. package/components/type-check-BehV9ZL1.cjs +18 -18
  1082. package/components/type-check-CGREdneG.js +18 -18
  1083. package/components/types-DNRGKFSD.js +18 -18
  1084. package/components/types-pVa6ut_v.cjs +18 -18
  1085. package/components/types.cjs +18 -18
  1086. package/components/types.js +18 -18
  1087. package/components/urban-8R0DqHZs.js +18 -18
  1088. package/components/urban-CQa3SGnB.cjs +18 -18
  1089. package/components/utils/base.cjs +19 -19
  1090. package/components/utils/base.js +20 -20
  1091. package/components/utils/store.cjs +19 -19
  1092. package/components/utils/store.js +19 -19
  1093. package/components/utils-CGJh0jrq.cjs +20 -0
  1094. package/components/utils-Dk4dM9xv.js +240 -0
  1095. package/components/utils.cjs +19 -19
  1096. package/components/utils.js +21 -21
  1097. package/components/v4-DIjJgmR0.js +18 -18
  1098. package/components/v4-Dyp-SQ1c.cjs +18 -18
  1099. package/components/venn-diagram-options.config-BMlduwIp.js +18 -18
  1100. package/components/venn-diagram-options.config-BamlR1qo.cjs +18 -18
  1101. package/components/venn-diagram-positioning.config-DKXWVaUI.cjs +20 -0
  1102. package/components/venn-diagram-positioning.config-DUwmPQ1A.js +55 -0
  1103. package/components/venn-diagram-slots.config-CMDndPVi.js +18 -18
  1104. package/components/venn-diagram-slots.config-DYTmU8v2.cjs +18 -18
  1105. package/components/video-options.config-BhBpkaLJ.cjs +18 -18
  1106. package/components/video-options.config-DdfSTJEJ.js +18 -18
  1107. package/components/video-options.de-BCRCouhI.cjs +18 -18
  1108. package/components/video-options.de-CqDvojKb.js +18 -18
  1109. package/components/video-options.en-CQ-1XqqN.cjs +18 -18
  1110. package/components/video-options.en-DWsFJndr.js +18 -18
  1111. package/components/video-options.es-C986CdLZ.js +18 -18
  1112. package/components/video-options.es-HbR-p7Ll.cjs +18 -18
  1113. package/components/video-options.fr-2LYvhyUV.cjs +18 -18
  1114. package/components/video-options.fr-CF8lEOzZ.js +18 -18
  1115. package/components/video-options.nl-CRGUzFaP.cjs +18 -18
  1116. package/components/video-options.nl-DnHgROBb.js +18 -18
  1117. package/components/video-slots.config-DMut7o7r.cjs +18 -18
  1118. package/components/video-slots.config-Utnn0DBW.js +18 -18
  1119. package/components/vivid-K5FZ8F8v.cjs +18 -18
  1120. package/components/vivid-YDTQ3C2-.js +18 -18
  1121. package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +18 -18
  1122. package/components/wordcloud-chart-options.config-y9Z5I_ZN.js +18 -18
  1123. package/components/wordcloud-chart-options.de-0T6RwBxn.js +18 -18
  1124. package/components/wordcloud-chart-options.de-Bi2Qjaam.cjs +18 -18
  1125. package/components/wordcloud-chart-options.en-6YsE8vZq.cjs +18 -18
  1126. package/components/wordcloud-chart-options.en-xMN7HxWU.js +18 -18
  1127. package/components/wordcloud-chart-options.es-BQib5Adk.cjs +18 -18
  1128. package/components/wordcloud-chart-options.es-DPccPG_x.js +18 -18
  1129. package/components/wordcloud-chart-options.fr-4orpVaAN.cjs +18 -18
  1130. package/components/wordcloud-chart-options.fr-D6DKbL9I.js +18 -18
  1131. package/components/wordcloud-chart-options.nl-BAdq6R0h.cjs +18 -18
  1132. package/components/wordcloud-chart-options.nl-CBKMvA4E.js +18 -18
  1133. package/components/wordcloud-chart-positioning.config-CgbB_SI0.cjs +20 -0
  1134. package/components/wordcloud-chart-positioning.config-qK5_CF7v.js +55 -0
  1135. package/components/wordcloud-chart-slots.config-CvabtgbP.js +18 -18
  1136. package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +18 -18
  1137. package/components/zh-CN-CnxgkEiH.cjs +18 -18
  1138. package/components/zh-CN-EbmFbkUF.js +18 -18
  1139. package/components/zh-TW-CnxgkEiH.cjs +18 -18
  1140. package/components/zh-TW-zX5KG7hP.js +18 -18
  1141. package/custom-elements.json +6468 -5635
  1142. package/grid-core/helpers/grid-events.d.ts +56 -0
  1143. package/grid-core/helpers/grid-interactions.d.ts +88 -0
  1144. package/grid-core/helpers/grid-item-management.d.ts +28 -0
  1145. package/grid-core/helpers/grid-item-popover.d.ts +21 -0
  1146. package/grid-core/helpers/grid-items.d.ts +9 -0
  1147. package/grid-core/helpers/grid-keyboard-updates.d.ts +18 -0
  1148. package/grid-core/helpers/grid-keydown-event.d.ts +18 -0
  1149. package/grid-core/helpers/grid-popover-cleanup.d.ts +4 -0
  1150. package/grid-core/helpers/grid-rendering.d.ts +41 -0
  1151. package/grid-core/helpers/grid-stack-lifecycle.d.ts +26 -0
  1152. package/grid-core/helpers/grid-theme.d.ts +15 -0
  1153. package/grid-core/helpers/grid-update-cycle.d.ts +22 -0
  1154. package/grid-core/index.d.ts +5 -0
  1155. package/grid-core/item-grid-base.d.ts +223 -0
  1156. package/grid-core/types.d.ts +57 -0
  1157. package/package.json +8 -2
  1158. package/react/package.json +2 -2
  1159. package/standalone/chunks/add-to-dashboard-BrWieRxp.js +148 -0
  1160. package/standalone/chunks/base-CLcNr-fQ.js +2 -0
  1161. package/standalone/chunks/de-BtQ1ecN1.js +2 -0
  1162. package/standalone/chunks/display-settings-binning-B_lKObyP.js +38 -0
  1163. package/standalone/chunks/display-settings-datetime-CTmJyEOX.js +199 -0
  1164. package/standalone/chunks/display-settings-grand-totals-IjcbBoyZ.js +26 -0
  1165. package/standalone/chunks/display-settings-numeric-D9hvRtfN.js +172 -0
  1166. package/standalone/chunks/display-settings-period-over-period-Dnstsyqe.js +209 -0
  1167. package/standalone/chunks/embed-Dymwil3u.js +228 -0
  1168. package/standalone/chunks/es-CAWreooi.js +2 -0
  1169. package/standalone/chunks/filters-CBmZhipt.js +544 -0
  1170. package/standalone/chunks/formula-codemirror-D2F6Aj2h.js +197 -0
  1171. package/standalone/chunks/fr-BG0nQk8g.js +2 -0
  1172. package/standalone/chunks/item-option-action-button-group-BZyiRTfe.js +35 -0
  1173. package/standalone/chunks/item-option-base-Bk5qxdcQ.js +38 -0
  1174. package/standalone/chunks/item-option-color-palette-picker-O8kT0i8p.js +22 -0
  1175. package/standalone/chunks/item-option-color-picker-CUTCc_yN.js +16 -0
  1176. package/standalone/chunks/item-option-color-range-DsKPvjLj.js +80 -0
  1177. package/standalone/chunks/item-option-guidelines-CZyvhgtN.js +117 -0
  1178. package/standalone/chunks/item-option-multi-language-field-DlC-cCD7.js +15 -0
  1179. package/standalone/chunks/item-option-number-field-BW9VpN9_.js +20 -0
  1180. package/standalone/chunks/item-option-panel-BXA3sIYG.js +298 -0
  1181. package/standalone/chunks/item-option-picker-B2KmO7a6.js +19 -0
  1182. package/standalone/chunks/item-option-position-picker-C9C9SKDD.js +14 -0
  1183. package/standalone/chunks/item-option-positions-number-field-C2ahVlxe.js +31 -0
  1184. package/standalone/chunks/item-option-radio-button-group-2q3doUXH.js +19 -0
  1185. package/standalone/chunks/item-option-slider-C7TT3CqL.js +15 -0
  1186. package/standalone/chunks/item-option-switch-CZR2_Bs9.js +12 -0
  1187. package/standalone/chunks/item-option-text-field-DBUOD_fv.js +15 -0
  1188. package/standalone/chunks/item-slot-picker-panel-CTePASjI.js +439 -0
  1189. package/standalone/chunks/load-data-fields-for-datasets-CPf_Q7p4.js +25 -0
  1190. package/standalone/chunks/load-formula-codemirror-CA7NW4Zq.js +6 -0
  1191. package/standalone/chunks/localized-mixin-DN2aV3CC.js +2 -0
  1192. package/standalone/chunks/luzmo-icon-markup-27PRW8QM.js +13 -0
  1193. package/standalone/chunks/nl-BXPduS2Q.js +2 -0
  1194. package/standalone/chunks/task-CNp3cEJA.js +2 -0
  1195. package/standalone/interactive-viz-item.js +19 -19
  1196. package/standalone/item-grid.js +71 -68
  1197. package/standalone/manifest.json +38 -38
  1198. package/angular/README.md +0 -40
  1199. package/angular/components/add-to-dashboard.ts +0 -130
  1200. package/angular/components/ai-chat-empty-state.ts +0 -105
  1201. package/angular/components/ai-chat.ts +0 -447
  1202. package/angular/components/ai-interaction-textarea.ts +0 -290
  1203. package/angular/components/data-field-level.ts +0 -130
  1204. package/angular/components/data-field-panel.ts +0 -256
  1205. package/angular/components/data-field.ts +0 -130
  1206. package/angular/components/data-fields-select.ts +0 -226
  1207. package/angular/components/dataset-icon.ts +0 -83
  1208. package/angular/components/dataset-selector-list.ts +0 -147
  1209. package/angular/components/dataset-selector-row.ts +0 -205
  1210. package/angular/components/display-settings-binning.ts +0 -92
  1211. package/angular/components/display-settings-datetime.ts +0 -100
  1212. package/angular/components/display-settings-grand-totals.ts +0 -92
  1213. package/angular/components/display-settings-numeric.ts +0 -113
  1214. package/angular/components/display-settings-period-over-period.ts +0 -121
  1215. package/angular/components/display-settings.ts +0 -227
  1216. package/angular/components/filter-expression-picker.ts +0 -168
  1217. package/angular/components/filter-item.ts +0 -207
  1218. package/angular/components/filter-parameter-picker.ts +0 -155
  1219. package/angular/components/filter-value-picker-datetime.ts +0 -125
  1220. package/angular/components/filter-value-picker-hierarchy.ts +0 -146
  1221. package/angular/components/filter-value-picker-numeric.ts +0 -146
  1222. package/angular/components/filter-value-picker.ts +0 -160
  1223. package/angular/components/filters.ts +0 -241
  1224. package/angular/components/formula-editor.ts +0 -229
  1225. package/angular/components/formula-field.ts +0 -198
  1226. package/angular/components/formula.ts +0 -170
  1227. package/angular/components/interactive-viz-item.ts +0 -228
  1228. package/angular/components/item-grid-item-actions-menu.ts +0 -123
  1229. package/angular/components/item-grid.ts +0 -252
  1230. package/angular/components/item-option-action-button-group.ts +0 -105
  1231. package/angular/components/item-option-color-palette-picker.ts +0 -126
  1232. package/angular/components/item-option-color-picker.ts +0 -134
  1233. package/angular/components/item-option-color-range.ts +0 -168
  1234. package/angular/components/item-option-guidelines.ts +0 -84
  1235. package/angular/components/item-option-multi-language-field.ts +0 -133
  1236. package/angular/components/item-option-number-field.ts +0 -161
  1237. package/angular/components/item-option-panel.ts +0 -149
  1238. package/angular/components/item-option-picker.ts +0 -120
  1239. package/angular/components/item-option-position-picker.ts +0 -98
  1240. package/angular/components/item-option-positions-number-field.ts +0 -140
  1241. package/angular/components/item-option-radio-button-group.ts +0 -119
  1242. package/angular/components/item-option-slider.ts +0 -126
  1243. package/angular/components/item-option-switch.ts +0 -98
  1244. package/angular/components/item-option-text-field.ts +0 -112
  1245. package/angular/components/item-option.ts +0 -163
  1246. package/angular/components/item-slot-drop-panel.ts +0 -236
  1247. package/angular/components/item-slot-drop.ts +0 -231
  1248. package/angular/components/item-slot-picker-panel.ts +0 -299
  1249. package/angular/components/item-slot-picker.ts +0 -241
  1250. package/angular/components/slot-menu-list.ts +0 -121
  1251. package/angular/components/slot-menu.ts +0 -304
  1252. package/angular/esm/components/add-to-dashboard.d.ts +0 -48
  1253. package/angular/esm/components/add-to-dashboard.js +0 -129
  1254. package/angular/esm/components/ai-chat-empty-state.d.ts +0 -41
  1255. package/angular/esm/components/ai-chat-empty-state.js +0 -107
  1256. package/angular/esm/components/ai-chat.d.ts +0 -149
  1257. package/angular/esm/components/ai-chat.js +0 -463
  1258. package/angular/esm/components/ai-interaction-textarea.d.ts +0 -108
  1259. package/angular/esm/components/ai-interaction-textarea.js +0 -313
  1260. package/angular/esm/components/data-field-level.d.ts +0 -50
  1261. package/angular/esm/components/data-field-level.js +0 -129
  1262. package/angular/esm/components/data-field-panel.d.ts +0 -86
  1263. package/angular/esm/components/data-field-panel.js +0 -268
  1264. package/angular/esm/components/data-field.d.ts +0 -50
  1265. package/angular/esm/components/data-field.js +0 -129
  1266. package/angular/esm/components/data-fields-select.d.ts +0 -87
  1267. package/angular/esm/components/data-fields-select.js +0 -243
  1268. package/angular/esm/components/dataset-icon.d.ts +0 -34
  1269. package/angular/esm/components/dataset-icon.js +0 -86
  1270. package/angular/esm/components/dataset-selector-list.d.ts +0 -56
  1271. package/angular/esm/components/dataset-selector-list.js +0 -155
  1272. package/angular/esm/components/dataset-selector-row.d.ts +0 -72
  1273. package/angular/esm/components/dataset-selector-row.js +0 -205
  1274. package/angular/esm/components/display-settings-binning.d.ts +0 -37
  1275. package/angular/esm/components/display-settings-binning.js +0 -91
  1276. package/angular/esm/components/display-settings-datetime.d.ts +0 -40
  1277. package/angular/esm/components/display-settings-datetime.js +0 -99
  1278. package/angular/esm/components/display-settings-grand-totals.d.ts +0 -37
  1279. package/angular/esm/components/display-settings-grand-totals.js +0 -91
  1280. package/angular/esm/components/display-settings-numeric.d.ts +0 -45
  1281. package/angular/esm/components/display-settings-numeric.js +0 -115
  1282. package/angular/esm/components/display-settings-period-over-period.d.ts +0 -50
  1283. package/angular/esm/components/display-settings-period-over-period.js +0 -123
  1284. package/angular/esm/components/display-settings.d.ts +0 -83
  1285. package/angular/esm/components/display-settings.js +0 -231
  1286. package/angular/esm/components/filter-expression-picker.d.ts +0 -64
  1287. package/angular/esm/components/filter-expression-picker.js +0 -179
  1288. package/angular/esm/components/filter-item.d.ts +0 -74
  1289. package/angular/esm/components/filter-item.js +0 -222
  1290. package/angular/esm/components/filter-parameter-picker.d.ts +0 -56
  1291. package/angular/esm/components/filter-parameter-picker.js +0 -151
  1292. package/angular/esm/components/filter-value-picker-datetime.d.ts +0 -47
  1293. package/angular/esm/components/filter-value-picker-datetime.js +0 -131
  1294. package/angular/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
  1295. package/angular/esm/components/filter-value-picker-hierarchy.js +0 -155
  1296. package/angular/esm/components/filter-value-picker-numeric.d.ts +0 -53
  1297. package/angular/esm/components/filter-value-picker-numeric.js +0 -155
  1298. package/angular/esm/components/filter-value-picker.d.ts +0 -57
  1299. package/angular/esm/components/filter-value-picker.js +0 -171
  1300. package/angular/esm/components/filters.d.ts +0 -85
  1301. package/angular/esm/components/filters.js +0 -251
  1302. package/angular/esm/components/formula-editor.d.ts +0 -78
  1303. package/angular/esm/components/formula-editor.js +0 -236
  1304. package/angular/esm/components/formula-field.d.ts +0 -70
  1305. package/angular/esm/components/formula-field.js +0 -209
  1306. package/angular/esm/components/formula.d.ts +0 -60
  1307. package/angular/esm/components/formula.js +0 -177
  1308. package/angular/esm/components/interactive-viz-item.d.ts +0 -76
  1309. package/angular/esm/components/interactive-viz-item.js +0 -224
  1310. package/angular/esm/components/item-grid-item-actions-menu.d.ts +0 -47
  1311. package/angular/esm/components/item-grid-item-actions-menu.js +0 -121
  1312. package/angular/esm/components/item-grid.d.ts +0 -82
  1313. package/angular/esm/components/item-grid.js +0 -251
  1314. package/angular/esm/components/item-option-action-button-group.d.ts +0 -41
  1315. package/angular/esm/components/item-option-action-button-group.js +0 -107
  1316. package/angular/esm/components/item-option-color-palette-picker.d.ts +0 -48
  1317. package/angular/esm/components/item-option-color-palette-picker.js +0 -131
  1318. package/angular/esm/components/item-option-color-picker.d.ts +0 -51
  1319. package/angular/esm/components/item-option-color-picker.js +0 -139
  1320. package/angular/esm/components/item-option-color-range.d.ts +0 -66
  1321. package/angular/esm/components/item-option-color-range.js +0 -179
  1322. package/angular/esm/components/item-option-guidelines.d.ts +0 -34
  1323. package/angular/esm/components/item-option-guidelines.js +0 -83
  1324. package/angular/esm/components/item-option-multi-language-field.d.ts +0 -50
  1325. package/angular/esm/components/item-option-multi-language-field.js +0 -139
  1326. package/angular/esm/components/item-option-number-field.d.ts +0 -58
  1327. package/angular/esm/components/item-option-number-field.js +0 -171
  1328. package/angular/esm/components/item-option-panel.d.ts +0 -54
  1329. package/angular/esm/components/item-option-panel.js +0 -155
  1330. package/angular/esm/components/item-option-picker.d.ts +0 -46
  1331. package/angular/esm/components/item-option-picker.js +0 -123
  1332. package/angular/esm/components/item-option-position-picker.d.ts +0 -39
  1333. package/angular/esm/components/item-option-position-picker.js +0 -99
  1334. package/angular/esm/components/item-option-positions-number-field.d.ts +0 -54
  1335. package/angular/esm/components/item-option-positions-number-field.js +0 -147
  1336. package/angular/esm/components/item-option-radio-button-group.d.ts +0 -45
  1337. package/angular/esm/components/item-option-radio-button-group.js +0 -123
  1338. package/angular/esm/components/item-option-slider.d.ts +0 -46
  1339. package/angular/esm/components/item-option-slider.js +0 -131
  1340. package/angular/esm/components/item-option-switch.d.ts +0 -40
  1341. package/angular/esm/components/item-option-switch.js +0 -99
  1342. package/angular/esm/components/item-option-text-field.d.ts +0 -44
  1343. package/angular/esm/components/item-option-text-field.js +0 -115
  1344. package/angular/esm/components/item-option.d.ts +0 -58
  1345. package/angular/esm/components/item-option.js +0 -171
  1346. package/angular/esm/components/item-slot-drop-panel.d.ts +0 -82
  1347. package/angular/esm/components/item-slot-drop-panel.js +0 -249
  1348. package/angular/esm/components/item-slot-drop.d.ts +0 -77
  1349. package/angular/esm/components/item-slot-drop.js +0 -227
  1350. package/angular/esm/components/item-slot-picker-panel.d.ts +0 -97
  1351. package/angular/esm/components/item-slot-picker-panel.js +0 -309
  1352. package/angular/esm/components/item-slot-picker.d.ts +0 -86
  1353. package/angular/esm/components/item-slot-picker.js +0 -259
  1354. package/angular/esm/components/slot-menu-list.d.ts +0 -46
  1355. package/angular/esm/components/slot-menu-list.js +0 -123
  1356. package/angular/esm/components/slot-menu.d.ts +0 -104
  1357. package/angular/esm/components/slot-menu.js +0 -300
  1358. package/angular/esm/index.d.ts +0 -109
  1359. package/angular/esm/index.js +0 -217
  1360. package/angular/index.ts +0 -223
  1361. package/angular/package.json +0 -40
  1362. package/angular/tsconfig.json +0 -36
  1363. package/angular/type-fallbacks.d.ts +0 -0
  1364. package/angular/utils/ai-prompt/attachments.d.ts +0 -10
  1365. package/angular/utils/ai-prompt/dictation.d.ts +0 -50
  1366. package/angular/utils/ai-prompt/image-upload.d.ts +0 -12
  1367. package/angular/utils/ai-prompt/index.d.ts +0 -6
  1368. package/angular/utils/ai-prompt/tests/attachments.test.d.ts +0 -1
  1369. package/angular/utils/ai-prompt/tests/dictation.test.d.ts +0 -1
  1370. package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +0 -1
  1371. package/angular/utils/base/base.d.ts +0 -16
  1372. package/angular/utils/base/focus-visible.d.ts +0 -29
  1373. package/angular/utils/base/focusable.d.ts +0 -58
  1374. package/angular/utils/base/index.d.ts +0 -5
  1375. package/angular/utils/base/localized-mixin.d.ts +0 -22
  1376. package/angular/utils/base/sized-mixin.d.ts +0 -17
  1377. package/angular/utils/color/color-palettes.d.ts +0 -17
  1378. package/angular/utils/color/extrapolate-color.d.ts +0 -1
  1379. package/angular/utils/create-lazy-loader.d.ts +0 -5
  1380. package/angular/utils/data/load-data-fields-for-datasets.d.ts +0 -22
  1381. package/angular/utils/data-broker/index.d.ts +0 -281
  1382. package/angular/utils/data-broker/tests/data-broker.test.d.ts +0 -1
  1383. package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +0 -12
  1384. package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +0 -1
  1385. package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +0 -1
  1386. package/angular/utils/drag/draggable.d.ts +0 -13
  1387. package/angular/utils/drag/pragmatic-element-adapter.d.ts +0 -2
  1388. package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +0 -1
  1389. package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +0 -1
  1390. package/angular/utils/filters/expressions.d.ts +0 -15
  1391. package/angular/utils/filters/filter-text.d.ts +0 -64
  1392. package/angular/utils/filters/index.d.ts +0 -2
  1393. package/angular/utils/filters/presentation.d.ts +0 -4
  1394. package/angular/utils/filters/tests/filter-text.test.d.ts +0 -1
  1395. package/angular/utils/formatter/calculate-duration.d.ts +0 -2
  1396. package/angular/utils/formatter/decompose-numeric-format.d.ts +0 -11
  1397. package/angular/utils/formatter/default-local-formats.d.ts +0 -20
  1398. package/angular/utils/formatter/formats/cs.d.ts +0 -20
  1399. package/angular/utils/formatter/formats/da.d.ts +0 -20
  1400. package/angular/utils/formatter/formats/de.d.ts +0 -21
  1401. package/angular/utils/formatter/formats/en-GB.d.ts +0 -21
  1402. package/angular/utils/formatter/formats/en-US.d.ts +0 -1
  1403. package/angular/utils/formatter/formats/en.d.ts +0 -1
  1404. package/angular/utils/formatter/formats/es.d.ts +0 -54
  1405. package/angular/utils/formatter/formats/fi.d.ts +0 -20
  1406. package/angular/utils/formatter/formats/fr.d.ts +0 -54
  1407. package/angular/utils/formatter/formats/he.d.ts +0 -20
  1408. package/angular/utils/formatter/formats/hu.d.ts +0 -20
  1409. package/angular/utils/formatter/formats/it.d.ts +0 -54
  1410. package/angular/utils/formatter/formats/ja.d.ts +0 -20
  1411. package/angular/utils/formatter/formats/ko.d.ts +0 -20
  1412. package/angular/utils/formatter/formats/mk.d.ts +0 -20
  1413. package/angular/utils/formatter/formats/nl.d.ts +0 -21
  1414. package/angular/utils/formatter/formats/no.d.ts +0 -21
  1415. package/angular/utils/formatter/formats/pl.d.ts +0 -20
  1416. package/angular/utils/formatter/formats/pt.d.ts +0 -20
  1417. package/angular/utils/formatter/formats/ru.d.ts +0 -20
  1418. package/angular/utils/formatter/formats/sv.d.ts +0 -20
  1419. package/angular/utils/formatter/formats/tr.d.ts +0 -21
  1420. package/angular/utils/formatter/formats/zh-CN.d.ts +0 -20
  1421. package/angular/utils/formatter/formats/zh-TW.d.ts +0 -20
  1422. package/angular/utils/formatter/formatter.d.ts +0 -9
  1423. package/angular/utils/formatter/get-dataset-name.d.ts +0 -2
  1424. package/angular/utils/formatter/get-localized-name.d.ts +0 -4
  1425. package/angular/utils/formatter/localize.d.ts +0 -3
  1426. package/angular/utils/formatter/localized-template.d.ts +0 -4
  1427. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +0 -36
  1428. package/angular/utils/formatter/tests/calculate-duration.test.d.ts +0 -1
  1429. package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +0 -1
  1430. package/angular/utils/formatter/tests/default-local-formats.test.d.ts +0 -1
  1431. package/angular/utils/formatter/tests/formatter.test.d.ts +0 -1
  1432. package/angular/utils/formatter/tests/get-localized-name.test.d.ts +0 -1
  1433. package/angular/utils/formatter/tests/localize.test.d.ts +0 -1
  1434. package/angular/utils/formatter/tests/localized-template.test.d.ts +0 -1
  1435. package/angular/utils/formula/base/formula-base.d.ts +0 -117
  1436. package/angular/utils/formula/base/formula-input-base.d.ts +0 -62
  1437. package/angular/utils/formula/codemirror/actions.d.ts +0 -47
  1438. package/angular/utils/formula/codemirror/drop-cursor.d.ts +0 -15
  1439. package/angular/utils/formula/codemirror/icon-element.d.ts +0 -7
  1440. package/angular/utils/formula/codemirror/parser.d.ts +0 -16
  1441. package/angular/utils/formula/codemirror/tests/actions.test.d.ts +0 -1
  1442. package/angular/utils/formula/codemirror/theme.d.ts +0 -20
  1443. package/angular/utils/formula/codemirror/widget.d.ts +0 -18
  1444. package/angular/utils/formula/config/aggregations.d.ts +0 -9
  1445. package/angular/utils/formula/config/build-datasets.d.ts +0 -10
  1446. package/angular/utils/formula/config/expression-helpers.d.ts +0 -42
  1447. package/angular/utils/formula/config/functions.d.ts +0 -3
  1448. package/angular/utils/formula/config/groupings.d.ts +0 -9
  1449. package/angular/utils/formula/config/regex.d.ts +0 -39
  1450. package/angular/utils/formula/config/resolve-column-presentation.d.ts +0 -19
  1451. package/angular/utils/formula/config/tests/build-datasets.test.d.ts +0 -1
  1452. package/angular/utils/formula/config/validate-expression.d.ts +0 -19
  1453. package/angular/utils/formula/load-formula-codemirror.d.ts +0 -4
  1454. package/angular/utils/formula/render-explanation-tooltip.d.ts +0 -7
  1455. package/angular/utils/formula/store/formula-display-store.d.ts +0 -93
  1456. package/angular/utils/formula/store/formula-editor-context.d.ts +0 -8
  1457. package/angular/utils/formula/store/formula-editor-store.d.ts +0 -46
  1458. package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +0 -1
  1459. package/angular/utils/formula/tests/validate-expression.test.d.ts +0 -1
  1460. package/angular/utils/get-css-variable.d.ts +0 -1
  1461. package/angular/utils/index.d.ts +0 -10
  1462. package/angular/utils/localize/set-locale.d.ts +0 -7
  1463. package/angular/utils/map-tile-providers/index.d.ts +0 -93
  1464. package/angular/utils/set-nested-value.d.ts +0 -6
  1465. package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +0 -7
  1466. package/angular/utils/slot-content/render-calculation-label.d.ts +0 -7
  1467. package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +0 -1
  1468. package/angular/utils/slot-state/slot-context.d.ts +0 -4
  1469. package/angular/utils/slot-state/slot-store.d.ts +0 -43
  1470. package/angular/utils/slot-state/tests/slot-store.test.d.ts +0 -1
  1471. package/angular/utils/store/base-store.d.ts +0 -158
  1472. package/angular/utils/store/dashboard-store.d.ts +0 -49
  1473. package/angular/utils/store/index.d.ts +0 -135
  1474. package/angular/utils/store/item-store.d.ts +0 -33
  1475. package/angular/utils/store/store-registry.d.ts +0 -170
  1476. package/angular/utils/store/tests/dashboard-store.test.d.ts +0 -1
  1477. package/angular/utils/store/tests/item-store.test.d.ts +0 -1
  1478. package/angular/utils/store/tests/store-registry.test.d.ts +0 -1
  1479. package/angular/utils/store/types.d.ts +0 -270
  1480. package/angular/utils/switch-item/index.d.ts +0 -34
  1481. package/angular/utils/switch-item/slot-role-classification.d.ts +0 -31
  1482. package/angular/utils/switch-item/stories/switch-item.stories.d.ts +0 -17
  1483. package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +0 -1
  1484. package/angular/utils/switch-item/tests/switch-item.test.d.ts +0 -1
  1485. package/angular/utils/tests/create-lazy-loader.test.d.ts +0 -1
  1486. package/angular/utils/tests/set-nested-value.test.d.ts +0 -1
  1487. package/angular/utils/themes/bliss.d.ts +0 -2
  1488. package/angular/utils/themes/classic-dark.d.ts +0 -2
  1489. package/angular/utils/themes/classic.d.ts +0 -2
  1490. package/angular/utils/themes/default-dark.d.ts +0 -2
  1491. package/angular/utils/themes/default.d.ts +0 -2
  1492. package/angular/utils/themes/index.d.ts +0 -4
  1493. package/angular/utils/themes/orion.d.ts +0 -2
  1494. package/angular/utils/themes/pinky.d.ts +0 -2
  1495. package/angular/utils/themes/radiant.d.ts +0 -2
  1496. package/angular/utils/themes/royale.d.ts +0 -2
  1497. package/angular/utils/themes/seasonal.d.ts +0 -2
  1498. package/angular/utils/themes/urban.d.ts +0 -2
  1499. package/angular/utils/themes/vivid.d.ts +0 -2
  1500. package/angular/utils/time/formats.const.d.ts +0 -4
  1501. package/angular/utils/time/period-over-period-condition.const.d.ts +0 -8
  1502. package/angular/utils/time/periods.const.d.ts +0 -15
  1503. package/angular/utils/timezone/datetime-timezone.d.ts +0 -25
  1504. package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +0 -1
  1505. package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +0 -9
  1506. package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +0 -30
  1507. package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +0 -1
  1508. package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +0 -1
  1509. package/angular/utils/types/tests/type-check.test.d.ts +0 -1
  1510. package/angular/utils/types/type-check.d.ts +0 -28
  1511. package/components/add-to-dashboard-hx-THahq.cjs +0 -166
  1512. package/components/add-to-dashboard-iOGXy8fd.js +0 -805
  1513. package/components/ai-chat-DGjJ7ic0.js +0 -4368
  1514. package/components/ai-chat-DUeIisGK.cjs +0 -338
  1515. package/components/ai-interaction-textarea-D88GfE-d.cjs +0 -101
  1516. package/components/ai-interaction-textarea-uThAGhCk.js +0 -829
  1517. package/components/area-chart-positioning.config-C2FnA1hx.js +0 -55
  1518. package/components/area-chart-positioning.config-D33Vb1eb.cjs +0 -20
  1519. package/components/bar-chart-positioning.config-DQlD500_.js +0 -59
  1520. package/components/bar-chart-positioning.config-WO4Ioe0e.cjs +0 -20
  1521. package/components/base-CKmSGxB1.cjs +0 -20
  1522. package/components/base-CTnR_I0T.js +0 -248
  1523. package/components/base-store-BhGpnbqi.js +0 -152
  1524. package/components/base-store-D5cDq6d4.cjs +0 -20
  1525. package/components/box-plot-positioning.config-GYRxuem_.cjs +0 -20
  1526. package/components/box-plot-positioning.config-q7jrvDsI.js +0 -48
  1527. package/components/bubble-chart-positioning.config-DLnRuyql.js +0 -55
  1528. package/components/bubble-chart-positioning.config-DcIUqLJw.cjs +0 -20
  1529. package/components/bullet-chart-positioning.config-BTnig46m.js +0 -56
  1530. package/components/bullet-chart-positioning.config-RinL5Qd5.cjs +0 -20
  1531. package/components/choropleth-map-options.config-DWWydGJ3.js +0 -352
  1532. package/components/choropleth-map-options.config-VG10yjwC.cjs +0 -20
  1533. package/components/choropleth-map-positioning.config-CFKgd4_j.js +0 -55
  1534. package/components/choropleth-map-positioning.config-cI55IMsI.cjs +0 -20
  1535. package/components/circle-pack-chart-positioning.config-DdX2w_iY.cjs +0 -20
  1536. package/components/circle-pack-chart-positioning.config-DuS19RCV.js +0 -48
  1537. package/components/circular-gauge-positioning.config-CM-uxPFp.js +0 -48
  1538. package/components/circular-gauge-positioning.config-ZYoKdrRK.cjs +0 -20
  1539. package/components/color-BWnYpOu7.js +0 -3812
  1540. package/components/color-Bl8h58rV.cjs +0 -20
  1541. package/components/color-range-utils-C3HJJUS1.cjs +0 -20
  1542. package/components/color-range-utils-CiqduHJS.js +0 -63
  1543. package/components/column-chart-positioning.config-B0jPobmy.cjs +0 -20
  1544. package/components/column-chart-positioning.config-CePNg7vW.js +0 -55
  1545. package/components/combination-chart-positioning.config-BXD_8ZPi.cjs +0 -20
  1546. package/components/combination-chart-positioning.config-D0O5QLnk.js +0 -48
  1547. package/components/conditional-number-positioning.config-B4Qh1ulg.js +0 -48
  1548. package/components/conditional-number-positioning.config-D2AZIyv0.cjs +0 -20
  1549. package/components/data-broker-BNXS5_qc.js +0 -1684
  1550. package/components/data-broker-DWgqaHoY.cjs +0 -20
  1551. package/components/data-field-B8x_Zpwq.js +0 -122
  1552. package/components/data-field-Luhp8f4X.cjs +0 -54
  1553. package/components/data-field-level-C0qStour.js +0 -248
  1554. package/components/data-field-level-C21_h3uh.cjs +0 -55
  1555. package/components/data-field-panel-D6N-9rBI.cjs +0 -87
  1556. package/components/data-field-panel-DQixMmrk.js +0 -386
  1557. package/components/data-fields-select-A-MPXFQo.cjs +0 -43
  1558. package/components/data-fields-select-C74Bnsgg.js +0 -290
  1559. package/components/dataset-icon-CP_oZswB.cjs +0 -62
  1560. package/components/dataset-icon-DUtfpbLX.js +0 -121
  1561. package/components/dataset-selector-list-CKIRMcCZ.js +0 -324
  1562. package/components/dataset-selector-list-CtYE58f4.cjs +0 -75
  1563. package/components/dataset-selector-row-B2-87fd2.js +0 -454
  1564. package/components/dataset-selector-row-B5oziKE4.cjs +0 -104
  1565. package/components/de-DbhgEHM0.js +0 -594
  1566. package/components/de-QUHZWKOb.cjs +0 -20
  1567. package/components/display-settings-BKy_wx8f.cjs +0 -142
  1568. package/components/display-settings-DjGeyjuE.js +0 -316
  1569. package/components/display-settings-binning-CMizwezp.cjs +0 -56
  1570. package/components/display-settings-binning-XDAEuUag.js +0 -111
  1571. package/components/display-settings-datetime-Bm-1QVh7.cjs +0 -217
  1572. package/components/display-settings-datetime-DBA92-9E.js +0 -414
  1573. package/components/display-settings-grand-totals-9I9C6ZUL.cjs +0 -44
  1574. package/components/display-settings-grand-totals-D28lZSE8.js +0 -90
  1575. package/components/display-settings-numeric-p2zbXQAb.js +0 -480
  1576. package/components/display-settings-numeric-rRqNzu5z.cjs +0 -190
  1577. package/components/display-settings-period-over-period-Bz0Ge8RZ.cjs +0 -227
  1578. package/components/display-settings-period-over-period-DKnwx1wY.js +0 -443
  1579. package/components/donut-chart-positioning.config-CunIPDa1.cjs +0 -20
  1580. package/components/donut-chart-positioning.config-wbqlK870.js +0 -48
  1581. package/components/es-DRT-oP0t.cjs +0 -20
  1582. package/components/es-DlaaoQZV.js +0 -594
  1583. package/components/evolution-number-positioning.config-Blqi63gg.js +0 -48
  1584. package/components/evolution-number-positioning.config-CCctf0ua.cjs +0 -20
  1585. package/components/filter-expression-picker-B0P8cowp.cjs +0 -40
  1586. package/components/filter-expression-picker-szMmfqsR.js +0 -434
  1587. package/components/filter-item-7EsWb-O2.js +0 -793
  1588. package/components/filter-item-CVykp1kT.cjs +0 -111
  1589. package/components/filter-parameter-picker-DgwBwHQH.js +0 -372
  1590. package/components/filter-parameter-picker-DmOrl-n_.cjs +0 -124
  1591. package/components/filter-value-picker-BJh9haNV.js +0 -170
  1592. package/components/filter-value-picker-CdNL2K5B.cjs +0 -69
  1593. package/components/filter-value-picker-datetime-BYOLwJ34.cjs +0 -51
  1594. package/components/filter-value-picker-datetime-C1Xmlu97.js +0 -160
  1595. package/components/filter-value-picker-hierarchy-B5zja0r9.js +0 -316
  1596. package/components/filter-value-picker-hierarchy-DG1L63uQ.cjs +0 -54
  1597. package/components/filter-value-picker-numeric-Dt8iVeSW.cjs +0 -54
  1598. package/components/filter-value-picker-numeric-egrpgWQs.js +0 -237
  1599. package/components/filters-3c0U_tkZ.cjs +0 -199
  1600. package/components/filters-Ejth-3Wx.js +0 -927
  1601. package/components/formula-COUex0mE.cjs +0 -45
  1602. package/components/formula-TxxpaABT.js +0 -139
  1603. package/components/formula-codemirror-CiCv8RZ6.js +0 -12019
  1604. package/components/formula-codemirror-D-tTt_QQ.cjs +0 -215
  1605. package/components/formula-display-store-0CsEGwDZ.js +0 -1087
  1606. package/components/formula-display-store-DxlIedpQ.cjs +0 -20
  1607. package/components/formula-editor-CqQJTOTz.cjs +0 -224
  1608. package/components/formula-editor-Cv5jzQk-.js +0 -691
  1609. package/components/formula-field-0iPV3fLW.cjs +0 -20
  1610. package/components/formula-field-BdVrTi10.js +0 -41
  1611. package/components/formula-input-base-DASY-p67.cjs +0 -49
  1612. package/components/formula-input-base-DtHQjbYK.js +0 -236
  1613. package/components/fr-CedzN2zj.js +0 -594
  1614. package/components/fr-DpSoshlB.cjs +0 -20
  1615. package/components/funnel-chart-positioning.config-BFJSJQal.js +0 -48
  1616. package/components/funnel-chart-positioning.config-KODHU82o.cjs +0 -20
  1617. package/components/get-dataset-name-08hRODwz.js +0 -32
  1618. package/components/get-dataset-name-B28v2_Ne.cjs +0 -20
  1619. package/components/groupings-BjVaG4Vo.cjs +0 -20
  1620. package/components/groupings-CzzRrgGp.js +0 -52
  1621. package/components/heat-map-options.config-DtDh9Gpy.cjs +0 -20
  1622. package/components/heat-map-options.config-X96sw-BV.js +0 -226
  1623. package/components/heat-map-positioning.config-BQY32KQK.cjs +0 -20
  1624. package/components/heat-map-positioning.config-CjKY0hww.js +0 -48
  1625. package/components/heat-table-options.config-CugBuoUA.cjs +0 -20
  1626. package/components/heat-table-options.config-D6dA9J97.js +0 -269
  1627. package/components/heat-table-positioning.config--fFwMrAO.js +0 -55
  1628. package/components/heat-table-positioning.config-B13fdFwL.cjs +0 -20
  1629. package/components/hexbin-map-positioning.config-62pc9bSv.js +0 -48
  1630. package/components/hexbin-map-positioning.config-lvlhff07.cjs +0 -20
  1631. package/components/interactive-viz-item-DmODdYqM.js +0 -528
  1632. package/components/interactive-viz-item-YIIIP8st.cjs +0 -261
  1633. package/components/item-grid-BV42JRXN.js +0 -4655
  1634. package/components/item-grid-U4a5JvWj.cjs +0 -86
  1635. package/components/item-grid-item-actions-menu-Bpon76tP.js +0 -199
  1636. package/components/item-grid-item-actions-menu-Csidl82W.cjs +0 -52
  1637. package/components/item-option-C1zZpwcY.js +0 -956
  1638. package/components/item-option-Cl0fk-nP.cjs +0 -269
  1639. package/components/item-option-action-button-group-BeiYXBhn.cjs +0 -53
  1640. package/components/item-option-action-button-group-Busjo07v.js +0 -119
  1641. package/components/item-option-base-BI7o-8Uv.cjs +0 -56
  1642. package/components/item-option-base-n65PEpfv.js +0 -123
  1643. package/components/item-option-color-palette-picker-C7s04NK7.js +0 -2042
  1644. package/components/item-option-color-palette-picker-D7qjmnlu.cjs +0 -40
  1645. package/components/item-option-color-picker-BoWujNll.js +0 -88
  1646. package/components/item-option-color-picker-DR2hUjex.cjs +0 -34
  1647. package/components/item-option-color-range-DQSecMC_.cjs +0 -98
  1648. package/components/item-option-color-range-_NG-Hf3J.js +0 -221
  1649. package/components/item-option-guidelines-DjYkZN3v.cjs +0 -135
  1650. package/components/item-option-guidelines-d0qH0ep-.js +0 -420
  1651. package/components/item-option-multi-language-field-C8AFaTZo.js +0 -83
  1652. package/components/item-option-multi-language-field-Dmz977Fr.cjs +0 -33
  1653. package/components/item-option-number-field-Bn9Vp_uK.js +0 -103
  1654. package/components/item-option-number-field-Vmy2lsgY.cjs +0 -38
  1655. package/components/item-option-panel-Cw8Y2sxT.cjs +0 -67
  1656. package/components/item-option-panel-l1QqlLf0.js +0 -184
  1657. package/components/item-option-picker-DE29HVxB.js +0 -78
  1658. package/components/item-option-picker-DqdL2xSF.cjs +0 -37
  1659. package/components/item-option-position-picker-Dc4G1A6V.js +0 -118
  1660. package/components/item-option-position-picker-cCm-DAu2.cjs +0 -32
  1661. package/components/item-option-positions-number-field-BtpSbGRE.js +0 -165
  1662. package/components/item-option-positions-number-field-Cr5yQvD7.cjs +0 -49
  1663. package/components/item-option-radio-button-group-B8sycC_x.js +0 -75
  1664. package/components/item-option-radio-button-group-J_WpcDiX.cjs +0 -37
  1665. package/components/item-option-slider-BxW16AN7.cjs +0 -33
  1666. package/components/item-option-slider-CsKJaYvI.js +0 -97
  1667. package/components/item-option-switch-BFKaQPA1.cjs +0 -30
  1668. package/components/item-option-switch-fbWKQvlc.js +0 -70
  1669. package/components/item-option-text-field-BfSQ6XS4.cjs +0 -33
  1670. package/components/item-option-text-field-DyAgFDk2.js +0 -81
  1671. package/components/item-slot-drop-DVGqerjg.cjs +0 -91
  1672. package/components/item-slot-drop-DajA9PFi.js +0 -332
  1673. package/components/item-slot-drop-panel-CVwwgxw-.cjs +0 -57
  1674. package/components/item-slot-drop-panel-u_sQH-KY.js +0 -356
  1675. package/components/item-slot-picker-CuPhgLOY.js +0 -506
  1676. package/components/item-slot-picker-aRs0szIM.cjs +0 -174
  1677. package/components/item-slot-picker-panel-Boo_cwql.cjs +0 -81
  1678. package/components/item-slot-picker-panel-DBJ-4GMl.js +0 -449
  1679. package/components/line-chart-positioning.config-CJ2RQxq_.js +0 -55
  1680. package/components/line-chart-positioning.config-Cn6qdGfH.cjs +0 -20
  1681. package/components/load-data-fields-for-datasets-C8QzYyAq.cjs +0 -20
  1682. package/components/load-data-fields-for-datasets-eFeQdDxV.js +0 -42
  1683. package/components/localized-mixin-5ebEzU91.cjs +0 -20
  1684. package/components/localized-mixin-Nbdi2Ynr.js +0 -45
  1685. package/components/marker-map-positioning.config-Fk27Rxka.js +0 -48
  1686. package/components/marker-map-positioning.config-_6jf8eaC.cjs +0 -20
  1687. package/components/nl-D21wahzs.cjs +0 -20
  1688. package/components/nl-Dyx0ufOq.js +0 -594
  1689. package/components/ohlc-chart-positioning.config-BnoQDAm2.js +0 -78
  1690. package/components/ohlc-chart-positioning.config-HycztBpx.cjs +0 -20
  1691. package/components/parallel-coordinates-plot-positioning.config-BydBKkPE.cjs +0 -20
  1692. package/components/parallel-coordinates-plot-positioning.config-Bz07w7pC.js +0 -48
  1693. package/components/pivot-table-positioning.config-CEDxA3r5.cjs +0 -20
  1694. package/components/pivot-table-positioning.config-OATgXuSr.js +0 -55
  1695. package/components/pyramid-chart-positioning.config-D1DebWCO.cjs +0 -20
  1696. package/components/pyramid-chart-positioning.config-Dt57xRF_.js +0 -55
  1697. package/components/radar-chart-positioning.config-BJohk9t3.cjs +0 -20
  1698. package/components/radar-chart-positioning.config-CyD2-U2Q.js +0 -55
  1699. package/components/route-map-options.config-C65J81_7.js +0 -328
  1700. package/components/route-map-options.config-DS9cCAQK.cjs +0 -20
  1701. package/components/route-map-positioning.config-B5-SbXxB.js +0 -66
  1702. package/components/route-map-positioning.config-B9CdfSM1.cjs +0 -20
  1703. package/components/sankey-diagram-positioning.config-0JoEoVmz.cjs +0 -20
  1704. package/components/sankey-diagram-positioning.config-BgbG8JNQ.js +0 -66
  1705. package/components/scatter-plot-positioning.config-BlVDM1kU.js +0 -77
  1706. package/components/scatter-plot-positioning.config-CY8qJXdg.cjs +0 -20
  1707. package/components/set-locale-0GyLYEXo.js +0 -43
  1708. package/components/set-locale-CN7wEnTk.cjs +0 -20
  1709. package/components/slicer-filter-positioning.config-DHTsAnjS.js +0 -48
  1710. package/components/slicer-filter-positioning.config-DsQV6lEf.cjs +0 -20
  1711. package/components/slot-menu-Bn41i0nu.js +0 -429
  1712. package/components/slot-menu-BwxVUCD8.cjs +0 -71
  1713. package/components/slot-menu-list-D10L_ujO.js +0 -348
  1714. package/components/slot-menu-list-TZk8_huB.cjs +0 -44
  1715. package/components/speedometer-chart-positioning.config-CExtaoWC.cjs +0 -20
  1716. package/components/speedometer-chart-positioning.config-DxawdlbB.js +0 -48
  1717. package/components/spike-map-options.config-BRwdTyrp.cjs +0 -20
  1718. package/components/spike-map-options.config-DjoTrAsC.js +0 -415
  1719. package/components/spike-map-positioning.config-CSf3S3DV.js +0 -55
  1720. package/components/spike-map-positioning.config-CykibmZr.cjs +0 -20
  1721. package/components/strip-plot-positioning.config-DTPcRxUU.js +0 -48
  1722. package/components/strip-plot-positioning.config-DnnRCWL5.cjs +0 -20
  1723. package/components/sunburst-chart-positioning.config-DeV7bgTG.js +0 -48
  1724. package/components/sunburst-chart-positioning.config-YqGe_aMM.cjs +0 -20
  1725. package/components/symbol-map-positioning.config-DHbUtFYk.js +0 -55
  1726. package/components/symbol-map-positioning.config-TXXEu7SK.cjs +0 -20
  1727. package/components/treemap-chart-positioning.config-Bl6vZZe0.cjs +0 -20
  1728. package/components/treemap-chart-positioning.config-uekceDyR.js +0 -55
  1729. package/components/utils-OUv4u4cU.cjs +0 -20
  1730. package/components/utils-kqiqLAQ9.js +0 -240
  1731. package/components/venn-diagram-positioning.config-BZYPIWFw.cjs +0 -20
  1732. package/components/venn-diagram-positioning.config-s0-XVoW_.js +0 -55
  1733. package/components/wordcloud-chart-positioning.config-BbX5hVjd.cjs +0 -20
  1734. package/components/wordcloud-chart-positioning.config-D_s8XBj_.js +0 -55
  1735. package/standalone/chunks/add-to-dashboard-BYRLs1CQ.js +0 -148
  1736. package/standalone/chunks/base-DssWPzw8.js +0 -2
  1737. package/standalone/chunks/de-DHiGJEkU.js +0 -2
  1738. package/standalone/chunks/display-settings-binning-BGTZGUU6.js +0 -38
  1739. package/standalone/chunks/display-settings-datetime-DtZzLbjA.js +0 -199
  1740. package/standalone/chunks/display-settings-grand-totals-DA7K3zdq.js +0 -26
  1741. package/standalone/chunks/display-settings-numeric-gkjCT6uw.js +0 -172
  1742. package/standalone/chunks/display-settings-period-over-period-BImYqnlk.js +0 -209
  1743. package/standalone/chunks/embed-DjpHVUzS.js +0 -228
  1744. package/standalone/chunks/es-Bm7v0DSn.js +0 -2
  1745. package/standalone/chunks/filters-D6e5NLXN.js +0 -544
  1746. package/standalone/chunks/formula-codemirror-65uM9xuK.js +0 -197
  1747. package/standalone/chunks/fr-AQyVcxF7.js +0 -2
  1748. package/standalone/chunks/item-option-action-button-group-1vJT13hn.js +0 -35
  1749. package/standalone/chunks/item-option-base-arXn9qIK.js +0 -38
  1750. package/standalone/chunks/item-option-color-palette-picker-BAb1QKFF.js +0 -22
  1751. package/standalone/chunks/item-option-color-picker-DFgEFGvt.js +0 -16
  1752. package/standalone/chunks/item-option-color-range-rNHTH03R.js +0 -80
  1753. package/standalone/chunks/item-option-guidelines-LZVdU6cc.js +0 -117
  1754. package/standalone/chunks/item-option-multi-language-field-CowaxhgV.js +0 -15
  1755. package/standalone/chunks/item-option-number-field-D30URw4j.js +0 -20
  1756. package/standalone/chunks/item-option-panel-BMpL-R40.js +0 -298
  1757. package/standalone/chunks/item-option-picker-Bs29TDV5.js +0 -19
  1758. package/standalone/chunks/item-option-position-picker-CbDkXCzd.js +0 -14
  1759. package/standalone/chunks/item-option-positions-number-field-BeGDu27j.js +0 -31
  1760. package/standalone/chunks/item-option-radio-button-group-Cfvm4Kvu.js +0 -19
  1761. package/standalone/chunks/item-option-slider-DRBazAXX.js +0 -15
  1762. package/standalone/chunks/item-option-switch-Ip5WnkXT.js +0 -12
  1763. package/standalone/chunks/item-option-text-field-b6TYuqP0.js +0 -15
  1764. package/standalone/chunks/item-slot-picker-panel-DL3K7S2U.js +0 -439
  1765. package/standalone/chunks/load-data-fields-for-datasets-B2b_TG8S.js +0 -25
  1766. package/standalone/chunks/load-formula-codemirror-DhXzFUcF.js +0 -6
  1767. package/standalone/chunks/localized-mixin-B_AGm8Ur.js +0 -2
  1768. package/standalone/chunks/luzmo-icon-markup-Cw93OB80.js +0 -13
  1769. package/standalone/chunks/nl-Doo97872.js +0 -2
  1770. package/standalone/chunks/task-pfWn4DHD.js +0 -2
@@ -1,4655 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2026 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
- import "./tokens-Ov1pCR4Y.js";
21
- import { t as e } from "./decorate-DyMgX_Uh.js";
22
- import { t } from "./color-BWnYpOu7.js";
23
- import { t as n } from "./v4-DIjJgmR0.js";
24
- import { n as r, t as i } from "./themes-CQZd578_.js";
25
- import { itemTypes as a } from "./item-list.js";
26
- import "./item-grid-item-actions-menu-Bpon76tP.js";
27
- import { luzmoArrows as o, luzmoCircle as s, luzmoClone as c, luzmoCog as l, luzmoFilterOutline as u, luzmoLockOutline as d, luzmoPencil as f, luzmoTable as p, luzmoTrashOutline as m } from "@luzmo/icons";
28
- import "@luzmo/lucero/icon";
29
- import { html as h, nothing as g, render as _, unsafeCSS as v } from "lit";
30
- import { property as y, query as b, queryAll as x, state as ee } from "lit/decorators.js";
31
- import { msg as S } from "@lit/localize";
32
- import "@luzmo/lucero/action-button";
33
- import { repeat as C } from "lit/directives/repeat.js";
34
- import { guard as w } from "lit/directives/guard.js";
35
- import "@luzmo/embed";
36
- import "@luzmo/lucero/action-group";
37
- import { LuzmoElement as te } from "@luzmo/lucero/utils";
38
- //#region node_modules/gridstack/dist/gridstack.min.css?inline
39
- var ne = ".grid-stack{position:relative}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;width:auto;margin:0;position:absolute;z-index:0!important}.grid-stack>.grid-stack-item{width:var(--gs-column-width);height:var(--gs-cell-height);padding:0;position:absolute;top:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{width:auto;margin:0;position:absolute;overflow:hidden auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item{right:0}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-select:none;user-select:none;z-index:100;font-size:.1px;display:block;position:absolute}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{z-index:101;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"%23666\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"2\\\" viewBox=\\\"0 0 20 20\\\"><path d=\\\"m10 3 2 2H8l2-2v14l-2-2h4l-2 2\\\"/></svg>\");background-position:50%;background-repeat:no-repeat}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,right,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.grid-stack-item.ui-draggable-armed{cursor:move;animation:.25s ease-in-out infinite gs-armed-wiggle}.grid-stack-item>.ui-resizable-handle.ui-resizable-armed{animation:.5s ease-in-out infinite gs-armed-pulse}@keyframes gs-armed-wiggle{0%,to{transform:rotate(0)}25%{transform:rotate(-1.5deg)}75%{transform:rotate(1.5deg)}}@keyframes gs-armed-pulse{0%,to{opacity:1}50%{opacity:.3}}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{opacity:.8;box-shadow:1px 4px 6px #0003}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,right .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left,right,top,height,width}.grid-stack>.grid-stack-item[gs-y=\"0\"]{top:0}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item[gs-x=\"0\"]{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item[gs-x=\"0\"]{right:0}.gs-print-show{display:none}@media print{@page gs-landscape{size:landscape}@page gs-portrait{size:portrait}.grid-stack{height:auto!important;display:block!important;position:static!important}.grid-stack>.grid-stack-item{float:left!important;height:auto!important;width:calc(100% * var(--gs-w)/ var(--gs-columns,12))!important;break-inside:avoid!important;page-break-inside:avoid!important;display:block!important;position:static!important;top:auto!important;left:auto!important}.grid-stack>.grid-stack-item>.grid-stack-item-content{white-space:normal!important;height:auto!important;margin-top:var(--gs-item-margin-top)!important;margin-right:var(--gs-item-margin-right)!important;margin-bottom:var(--gs-item-margin-bottom)!important;margin-left:var(--gs-item-margin-left)!important;position:relative!important;inset:auto!important;overflow:visible!important}.gs-print-hide{display:none}.gs-print-show{display:block}.gs-print-avoid-break-after{break-after:avoid!important;page-break-after:avoid!important}.grid-stack>.grid-stack-item.gs-print-hide{display:none!important}.grid-stack>.grid-stack-item[gs-page-break=true],.grid-stack>.grid-stack-item[gs-print-orientation]{float:none!important;clear:both!important}.grid-stack>.grid-stack-item[gs-page-break=true]{page-break-before:always!important;break-before:page!important}.grid-stack>.grid-stack-item[gs-print-orientation=landscape]{page:gs-landscape;min-width:calc(100vmax * var(--gs-w)/ var(--gs-columns,12))!important}.grid-stack>.grid-stack-item[gs-print-orientation=portrait]{page:gs-portrait;min-width:calc(100vmin * var(--gs-w)/ var(--gs-columns,12))!important}.grid-stack>.grid-stack-item[gs-break-inside=true]{float:none!important;clear:both!important;break-inside:auto!important;page-break-inside:auto!important;width:100%!important}.grid-stack>.grid-stack-item>.ui-resizable-handle{display:none!important}}", re = (e, t) => {
40
- e.forEach((e) => {
41
- let n = e.querySelector("luzmo-embed-viz-item");
42
- n && (n.options = {
43
- ...n.options,
44
- locale: t
45
- });
46
- });
47
- }, ie = ({ action: e, actionType: t, active: n, items: r, element: i, itemId: a, item: o, deletedId: s, originalElement: c, updatedItems: l }) => ({
48
- action: e,
49
- actionType: t,
50
- active: n,
51
- items: r,
52
- element: i,
53
- item: {
54
- ...o,
55
- id: a,
56
- filters: o?.filters ?? []
57
- },
58
- ...s && { deletedId: s },
59
- ...c && { originalElement: c },
60
- ...l && { updatedItems: l }
61
- }), T = ({ target: e, action: t, actionType: n, active: r, items: i, element: a, itemId: o, item: s, deletedId: c, originalElement: l, updatedItems: u }) => {
62
- e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-action", {
63
- detail: ie({
64
- action: t,
65
- actionType: n,
66
- active: r,
67
- items: i,
68
- element: a,
69
- itemId: o,
70
- item: s,
71
- deletedId: c,
72
- originalElement: l,
73
- updatedItems: u
74
- }),
75
- bubbles: !0,
76
- composed: !0,
77
- cancelable: !0
78
- }));
79
- }, E = ({ target: e, itemStates: t, updatedItemStates: n, changedItemStates: r }) => {
80
- e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-states-changed", {
81
- detail: {
82
- itemStates: t,
83
- updatedItemStates: n,
84
- changedItemStates: r
85
- },
86
- bubbles: !0,
87
- composed: !0
88
- }));
89
- }, ae = ({ target: e, eventName: t, detail: n }) => {
90
- e.dispatchEvent(new CustomEvent(t, {
91
- detail: n,
92
- bubbles: !0,
93
- composed: !0
94
- }));
95
- }, oe = (e) => e instanceof Element ? e : void 0, se = (e) => oe(e)?.closest(".grid-stack-item"), ce = ({ event: e, gridItem: t }) => !oe(e.relatedTarget)?.closest(".grid-item-actions-popover") && !t.hasAttribute("active"), le = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => {
96
- let r = se(e.target);
97
- return r ? (t && t !== r && (t.removeAttribute("focused"), n(t)), r.setAttribute("focused", "true"), r) : t;
98
- }, ue = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => t ? oe(e.relatedTarget)?.closest("luzmo-item-grid-item-actions-menu") ? {
99
- focusedItemElement: t,
100
- shouldFocusGrid: !1
101
- } : (t.removeAttribute("focused"), n(t), {
102
- focusedItemElement: void 0,
103
- shouldFocusGrid: !0
104
- }) : {
105
- focusedItemElement: void 0,
106
- shouldFocusGrid: !1
107
- }, de = ({ item: e, activeItemElement: t, gridElement: n, removeItemActionsMenuPopover: r }) => {
108
- if (e.removeAttribute("active"), r(e), t === e) {
109
- n.removeAttribute("has-active-item");
110
- return;
111
- }
112
- return t;
113
- }, fe = ({ event: e, gridElement: t, items: n, state: r, cleanupActiveItem: i, dispatchItemActionEvent: a, createItemActionsMenuPopover: o }) => {
114
- e.stopPropagation();
115
- let s = e.detail, c = e.target?.closest(".grid-stack-item");
116
- if (!c) return r;
117
- let l = c.getAttribute("gs-id"), u = n.find((e) => e.id === l);
118
- return s.type === "toggle" && s.action === r.activeItemActionToggle && c === r.activeItemElement ? (r.activeItemElement = void 0, r.activeItemActionToggle = void 0, t.removeAttribute("has-active-item"), c.removeAttribute("active"), i(c), l && a(s.action, s.type, !1, c, l, u), r) : (t.querySelectorAll(".grid-stack-item").forEach((e) => {
119
- e !== c && i(e);
120
- }), s.type === "toggle" ? (r.activeItemElement = c, r.activeItemActionToggle = s.action, t.setAttribute("has-active-item", "true"), c.setAttribute("active", "true"), o(c, [s.action])) : r.activeItemElement && r.activeItemElement !== c && (r.activeItemElement = void 0, r.activeItemActionToggle = void 0), l && a(s.action, s.type, s.active, c, l, u), r);
121
- }, pe = ({ event: e, gridElement: t, hostElement: n, items: r, activeItemActionToggle: i, cleanupActiveItem: a, dispatchItemActionEvent: o }) => {
122
- let s = e.composedPath();
123
- if (!s.includes(t) && !s.includes(n)) return { activeItemActionToggle: i };
124
- let c = t.querySelector(".grid-stack-item[active]");
125
- if (!c || s.includes(c)) return { activeItemActionToggle: i };
126
- let l = c.querySelector(".grid-item-actions-popover");
127
- if (l && s.includes(l)) return { activeItemActionToggle: i };
128
- let u = c.getAttribute("gs-id"), d = r.find((e) => e.id === u);
129
- return a(c), i && u && o(i, "toggle", !1, c, u, d), { activeItemActionToggle: void 0 };
130
- }, me = ({ gridElement: e, items: t, gridItemData: n, itemId: r, action: i, options: a, state: o, cleanupActiveItem: s, dispatchItemActionEvent: c, createItemActionsMenuPopover: l }) => {
131
- if (!n?.element) return {
132
- result: void 0,
133
- state: o
134
- };
135
- let u = n.element, d = n.item, f = i === o.activeItemActionToggle && u === o.activeItemElement, p = a?.active ?? !f;
136
- if (a?.active !== void 0 && p === f) return {
137
- result: f,
138
- state: o
139
- };
140
- if (!p) return o.activeItemElement = void 0, o.activeItemActionToggle = void 0, e.removeAttribute("has-active-item"), u.removeAttribute("active"), s(u), c(i, "toggle", !1, u, r, d), {
141
- result: !1,
142
- state: o
143
- };
144
- if (o.activeItemElement && o.activeItemElement !== u) {
145
- let e = o.activeItemElement.getAttribute("gs-id"), n = t.find((t) => t.id === e), r = o.activeItemActionToggle, i = o.activeItemElement;
146
- s(o.activeItemElement), o.activeItemElement = void 0, o.activeItemActionToggle = void 0, r && e && n && c(r, "toggle", !1, i, e, n);
147
- }
148
- return o.activeItemElement = u, o.activeItemActionToggle = i, e.setAttribute("has-active-item", "true"), u.setAttribute("active", "true"), l(u, [i]), c(i, "toggle", !0, u, r, d), {
149
- result: !0,
150
- state: o
151
- };
152
- }, he = ({ gridElement: e, items: t, state: n, cleanupActiveItem: r, dispatchItemActionEvent: i }) => {
153
- let a = 0;
154
- if (n.activeItemElement && n.activeItemActionToggle) {
155
- let o = n.activeItemElement.getAttribute("gs-id"), s = t.find((e) => e.id === o), c = n.activeItemActionToggle, l = n.activeItemElement;
156
- r(n.activeItemElement), n.activeItemElement = void 0, n.activeItemActionToggle = void 0, e.removeAttribute("has-active-item"), c && o && s && (i(c, "toggle", !1, l, o, s), a++);
157
- }
158
- return {
159
- deactivatedCount: a,
160
- state: n
161
- };
162
- }, ge = {
163
- sizeX: 1,
164
- sizeY: 1,
165
- col: 0,
166
- row: 0
167
- }, _e = (e) => {
168
- e.forEach((e) => {
169
- if (!e.id) throw Error("Grid item id is required");
170
- });
171
- }, ve = (e) => {
172
- if (!e.id) throw Error("Grid item id is required");
173
- return e.id;
174
- }, ye = (e, t) => ({
175
- id: t,
176
- x: e?.position?.col ?? 0,
177
- y: e?.position?.row ?? 0,
178
- w: e?.position?.sizeX ?? 1,
179
- h: e?.position?.sizeY ?? 1
180
- }), be = (e, t) => ({
181
- ...structuredClone(e),
182
- id: t,
183
- position: {
184
- ...ge,
185
- ...structuredClone(e.position)
186
- },
187
- canFilter: e.canFilter ?? "all"
188
- }), xe = (e, t) => {
189
- if (t) {
190
- for (let n of e) if (n.getAttribute("luzmo-item-grid-item-id") === t) return n;
191
- }
192
- }, Se = (e, t) => e.map((e) => {
193
- let n = {
194
- item: e,
195
- element: t.querySelector(`[gs-id="${e.id}"]`)
196
- }, r = n.element?.querySelector("luzmo-embed-viz-item");
197
- return r && (n.luzmoElement = r), n;
198
- }), Ce = ({ item: e, engine: t, existingItems: n, autoPosition: r, excludeNodeId: i }) => {
199
- let a = e.position, o = i ? t.nodes.filter((e) => e.id !== i) : t.nodes, s = new t.constructor({
200
- column: t.column,
201
- mode: t.mode,
202
- nodes: o.map((e) => ({ ...e }))
203
- }), c = {
204
- x: a.col,
205
- y: a.row,
206
- w: a.sizeX,
207
- h: a.sizeY,
208
- id: e.id,
209
- autoPosition: r
210
- };
211
- s.addNode(c);
212
- let l = {
213
- ...e,
214
- position: {
215
- col: c.x ?? a.col,
216
- row: c.y ?? a.row,
217
- sizeX: c.w ?? a.sizeX,
218
- sizeY: c.h ?? a.sizeY
219
- }
220
- };
221
- return {
222
- resolvedItem: l,
223
- updatedItems: [...n.map((e) => {
224
- let t = s.nodes.find((t) => t.id === e.id);
225
- return t && t.x != null && t.y != null && t.w != null && t.h != null ? {
226
- ...e,
227
- position: {
228
- col: t.x,
229
- row: t.y,
230
- sizeX: t.w,
231
- sizeY: t.h
232
- }
233
- } : e;
234
- }), l]
235
- };
236
- }, we = ({ itemId: e, patch: t, engine: n, existingItems: r }) => {
237
- let i = r.find((t) => t.id === e);
238
- if (!i?.position) return r;
239
- let { resolvedItem: a, updatedItems: o } = Ce({
240
- item: {
241
- ...i,
242
- position: {
243
- ...i.position,
244
- ...t
245
- }
246
- },
247
- engine: n,
248
- existingItems: r.filter((t) => t.id !== e),
249
- autoPosition: !1,
250
- excludeNodeId: e
251
- });
252
- return r.map((t) => t.id === e ? a : o.find((e) => e.id === t.id) ?? t);
253
- }, Te = (e) => be(e, e.id), Ee = Math.min, D = Math.max, De = Math.round, Oe = Math.floor, O = (e) => ({
254
- x: e,
255
- y: e
256
- }), ke = {
257
- left: "right",
258
- right: "left",
259
- bottom: "top",
260
- top: "bottom"
261
- };
262
- function Ae(e, t) {
263
- return typeof e == "function" ? e(t) : e;
264
- }
265
- function k(e) {
266
- return e.split("-")[0];
267
- }
268
- function je(e) {
269
- return e.split("-")[1];
270
- }
271
- function Me(e) {
272
- return e === "x" ? "y" : "x";
273
- }
274
- function Ne(e) {
275
- return e === "y" ? "height" : "width";
276
- }
277
- function A(e) {
278
- let t = e[0];
279
- return t === "t" || t === "b" ? "y" : "x";
280
- }
281
- function Pe(e) {
282
- return Me(A(e));
283
- }
284
- function Fe(e, t, n) {
285
- n === void 0 && (n = !1);
286
- let r = je(e), i = Pe(e), a = Ne(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
287
- return t.reference[a] > t.floating[a] && (o = We(o)), [o, We(o)];
288
- }
289
- function Ie(e) {
290
- let t = We(e);
291
- return [
292
- Le(e),
293
- t,
294
- Le(t)
295
- ];
296
- }
297
- function Le(e) {
298
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
299
- }
300
- var Re = ["left", "right"], ze = ["right", "left"], Be = ["top", "bottom"], Ve = ["bottom", "top"];
301
- function He(e, t, n) {
302
- switch (e) {
303
- case "top":
304
- case "bottom": return n ? t ? ze : Re : t ? Re : ze;
305
- case "left":
306
- case "right": return t ? Be : Ve;
307
- default: return [];
308
- }
309
- }
310
- function Ue(e, t, n, r) {
311
- let i = je(e), a = He(k(e), n === "start", r);
312
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Le)))), a;
313
- }
314
- function We(e) {
315
- let t = k(e);
316
- return ke[t] + e.slice(t.length);
317
- }
318
- function Ge(e) {
319
- return {
320
- top: 0,
321
- right: 0,
322
- bottom: 0,
323
- left: 0,
324
- ...e
325
- };
326
- }
327
- function Ke(e) {
328
- return typeof e == "number" ? {
329
- top: e,
330
- right: e,
331
- bottom: e,
332
- left: e
333
- } : Ge(e);
334
- }
335
- function qe(e) {
336
- let { x: t, y: n, width: r, height: i } = e;
337
- return {
338
- width: r,
339
- height: i,
340
- top: n,
341
- left: t,
342
- right: t + r,
343
- bottom: n + i,
344
- x: t,
345
- y: n
346
- };
347
- }
348
- //#endregion
349
- //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
350
- function Je(e, t, n) {
351
- let { reference: r, floating: i } = e, a = A(t), o = Pe(t), s = Ne(o), c = k(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
352
- switch (c) {
353
- case "top":
354
- p = {
355
- x: u,
356
- y: r.y - i.height
357
- };
358
- break;
359
- case "bottom":
360
- p = {
361
- x: u,
362
- y: r.y + r.height
363
- };
364
- break;
365
- case "right":
366
- p = {
367
- x: r.x + r.width,
368
- y: d
369
- };
370
- break;
371
- case "left":
372
- p = {
373
- x: r.x - i.width,
374
- y: d
375
- };
376
- break;
377
- default: p = {
378
- x: r.x,
379
- y: r.y
380
- };
381
- }
382
- switch (je(t)) {
383
- case "start":
384
- p[o] -= f * (n && l ? -1 : 1);
385
- break;
386
- case "end":
387
- p[o] += f * (n && l ? -1 : 1);
388
- break;
389
- }
390
- return p;
391
- }
392
- async function Ye(e, t) {
393
- t === void 0 && (t = {});
394
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Ae(t, e), p = Ke(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = qe(await i.getClippingRect({
395
- element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
396
- boundary: c,
397
- rootBoundary: l,
398
- strategy: s
399
- })), g = u === "floating" ? {
400
- x: n,
401
- y: r,
402
- width: a.floating.width,
403
- height: a.floating.height
404
- } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
405
- x: 1,
406
- y: 1
407
- }, y = qe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
408
- elements: o,
409
- rect: g,
410
- offsetParent: _,
411
- strategy: s
412
- }) : g);
413
- return {
414
- top: (h.top - y.top + p.top) / v.y,
415
- bottom: (y.bottom - h.bottom + p.bottom) / v.y,
416
- left: (h.left - y.left + p.left) / v.x,
417
- right: (y.right - h.right + p.right) / v.x
418
- };
419
- }
420
- var Xe = 50, Ze = async (e, t, n) => {
421
- let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
422
- ...o,
423
- detectOverflow: Ye
424
- }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
425
- reference: e,
426
- floating: t,
427
- strategy: i
428
- }), { x: u, y: d } = Je(l, r, c), f = r, p = 0, m = {};
429
- for (let n = 0; n < a.length; n++) {
430
- let h = a[n];
431
- if (!h) continue;
432
- let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
433
- x: u,
434
- y: d,
435
- initialPlacement: r,
436
- placement: f,
437
- strategy: i,
438
- middlewareData: m,
439
- rects: l,
440
- platform: s,
441
- elements: {
442
- reference: e,
443
- floating: t
444
- }
445
- });
446
- u = v ?? u, d = y ?? d, m[g] = {
447
- ...m[g],
448
- ...b
449
- }, x && p < Xe && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
450
- reference: e,
451
- floating: t,
452
- strategy: i
453
- }) : x.rects), {x: u, y: d} = Je(l, f, c)), n = -1);
454
- }
455
- return {
456
- x: u,
457
- y: d,
458
- placement: f,
459
- strategy: i,
460
- middlewareData: m
461
- };
462
- }, Qe = function(e) {
463
- return e === void 0 && (e = {}), {
464
- name: "flip",
465
- options: e,
466
- async fn(t) {
467
- var n;
468
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Ae(e, t);
469
- if ((n = i.arrow) != null && n.alignmentOffset) return {};
470
- let g = k(r), _ = A(o), v = k(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [We(o)] : Ie(o)), x = p !== "none";
471
- !d && x && b.push(...Ue(o, m, p, y));
472
- let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
473
- if (l && C.push(S[g]), u) {
474
- let e = Fe(r, a, y);
475
- C.push(S[e[0]], S[e[1]]);
476
- }
477
- if (w = [...w, {
478
- placement: r,
479
- overflows: C
480
- }], !C.every((e) => e <= 0)) {
481
- let e = (i.flip?.index || 0) + 1, t = ee[e];
482
- if (t && (!(u === "alignment" && _ !== A(t)) || w.every((e) => A(e.placement) !== _ || e.overflows[0] > 0))) return {
483
- data: {
484
- index: e,
485
- overflows: w
486
- },
487
- reset: { placement: t }
488
- };
489
- let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
490
- if (!n) switch (f) {
491
- case "bestFit": {
492
- let e = w.filter((e) => {
493
- if (x) {
494
- let t = A(e.placement);
495
- return t === _ || t === "y";
496
- }
497
- return !0;
498
- }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
499
- e && (n = e);
500
- break;
501
- }
502
- case "initialPlacement":
503
- n = o;
504
- break;
505
- }
506
- if (r !== n) return { reset: { placement: n } };
507
- }
508
- return {};
509
- }
510
- };
511
- }, $e = /*#__PURE__*/ new Set(["left", "top"]);
512
- async function et(e, t) {
513
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = k(n), s = je(n), c = A(n) === "y", l = $e.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ae(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
514
- mainAxis: d,
515
- crossAxis: 0,
516
- alignmentAxis: null
517
- } : {
518
- mainAxis: d.mainAxis || 0,
519
- crossAxis: d.crossAxis || 0,
520
- alignmentAxis: d.alignmentAxis
521
- };
522
- return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
523
- x: p * u,
524
- y: f * l
525
- } : {
526
- x: f * l,
527
- y: p * u
528
- };
529
- }
530
- var tt = function(e) {
531
- return e === void 0 && (e = 0), {
532
- name: "offset",
533
- options: e,
534
- async fn(t) {
535
- var n;
536
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await et(t, e);
537
- return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
538
- x: r + s.x,
539
- y: i + s.y,
540
- data: {
541
- ...s,
542
- placement: a
543
- }
544
- };
545
- }
546
- };
547
- };
548
- //#endregion
549
- //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
550
- function nt() {
551
- return typeof window < "u";
552
- }
553
- function j(e) {
554
- return rt(e) ? (e.nodeName || "").toLowerCase() : "#document";
555
- }
556
- function M(e) {
557
- var t;
558
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
559
- }
560
- function N(e) {
561
- return ((rt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
562
- }
563
- function rt(e) {
564
- return nt() ? e instanceof Node || e instanceof M(e).Node : !1;
565
- }
566
- function P(e) {
567
- return nt() ? e instanceof Element || e instanceof M(e).Element : !1;
568
- }
569
- function F(e) {
570
- return nt() ? e instanceof HTMLElement || e instanceof M(e).HTMLElement : !1;
571
- }
572
- function it(e) {
573
- return !nt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M(e).ShadowRoot;
574
- }
575
- function I(e) {
576
- let { overflow: t, overflowX: n, overflowY: r, display: i } = z(e);
577
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
578
- }
579
- function at(e) {
580
- return /^(table|td|th)$/.test(j(e));
581
- }
582
- function ot(e) {
583
- try {
584
- if (e.matches(":popover-open")) return !0;
585
- } catch {}
586
- try {
587
- return e.matches(":modal");
588
- } catch {
589
- return !1;
590
- }
591
- }
592
- var st = /transform|translate|scale|rotate|perspective|filter/, ct = /paint|layout|strict|content/, L = (e) => !!e && e !== "none", lt;
593
- function ut(e) {
594
- let t = P(e) ? z(e) : e;
595
- return L(t.transform) || L(t.translate) || L(t.scale) || L(t.rotate) || L(t.perspective) || !ft() && (L(t.backdropFilter) || L(t.filter)) || st.test(t.willChange || "") || ct.test(t.contain || "");
596
- }
597
- function dt(e) {
598
- let t = B(e);
599
- for (; F(t) && !R(t);) {
600
- if (ut(t)) return t;
601
- if (ot(t)) return null;
602
- t = B(t);
603
- }
604
- return null;
605
- }
606
- function ft() {
607
- return lt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), lt;
608
- }
609
- function R(e) {
610
- return /^(html|body|#document)$/.test(j(e));
611
- }
612
- function z(e) {
613
- return M(e).getComputedStyle(e);
614
- }
615
- function pt(e) {
616
- return P(e) ? {
617
- scrollLeft: e.scrollLeft,
618
- scrollTop: e.scrollTop
619
- } : {
620
- scrollLeft: e.scrollX,
621
- scrollTop: e.scrollY
622
- };
623
- }
624
- function B(e) {
625
- if (j(e) === "html") return e;
626
- let t = e.assignedSlot || e.parentNode || it(e) && e.host || N(e);
627
- return it(t) ? t.host : t;
628
- }
629
- function mt(e) {
630
- let t = B(e);
631
- return R(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : F(t) && I(t) ? t : mt(t);
632
- }
633
- function ht(e, t, n) {
634
- t === void 0 && (t = []), n === void 0 && (n = !0);
635
- let r = mt(e), i = r === e.ownerDocument?.body, a = M(r);
636
- if (i) {
637
- let e = gt(a);
638
- return t.concat(a, a.visualViewport || [], I(r) ? r : [], e && n ? ht(e) : []);
639
- } else return t.concat(r, ht(r, [], n));
640
- }
641
- function gt(e) {
642
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
643
- }
644
- //#endregion
645
- //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
646
- function _t(e) {
647
- let t = z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = F(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = De(n) !== a || De(r) !== o;
648
- return s && (n = a, r = o), {
649
- width: n,
650
- height: r,
651
- $: s
652
- };
653
- }
654
- function vt(e) {
655
- return P(e) ? e : e.contextElement;
656
- }
657
- function V(e) {
658
- let t = vt(e);
659
- if (!F(t)) return O(1);
660
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = _t(t), o = (a ? De(n.width) : n.width) / r, s = (a ? De(n.height) : n.height) / i;
661
- return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
662
- x: o,
663
- y: s
664
- };
665
- }
666
- var yt = /*#__PURE__*/ O(0);
667
- function bt(e) {
668
- let t = M(e);
669
- return !ft() || !t.visualViewport ? yt : {
670
- x: t.visualViewport.offsetLeft,
671
- y: t.visualViewport.offsetTop
672
- };
673
- }
674
- function xt(e, t, n) {
675
- return t === void 0 && (t = !1), !n || t && n !== M(e) ? !1 : t;
676
- }
677
- function H(e, t, n, r) {
678
- t === void 0 && (t = !1), n === void 0 && (n = !1);
679
- let i = e.getBoundingClientRect(), a = vt(e), o = O(1);
680
- t && (r ? P(r) && (o = V(r)) : o = V(e));
681
- let s = xt(a, n, r) ? bt(a) : O(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
682
- if (a) {
683
- let e = M(a), t = r && P(r) ? M(r) : r, n = e, i = gt(n);
684
- for (; i && r && t !== n;) {
685
- let e = V(i), t = i.getBoundingClientRect(), r = z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
686
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = M(i), i = gt(n);
687
- }
688
- }
689
- return qe({
690
- width: u,
691
- height: d,
692
- x: c,
693
- y: l
694
- });
695
- }
696
- function St(e, t) {
697
- let n = pt(e).scrollLeft;
698
- return t ? t.left + n : H(N(e)).left + n;
699
- }
700
- function Ct(e, t) {
701
- let n = e.getBoundingClientRect();
702
- return {
703
- x: n.left + t.scrollLeft - St(e, n),
704
- y: n.top + t.scrollTop
705
- };
706
- }
707
- function wt(e) {
708
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = N(r), s = t ? ot(t.floating) : !1;
709
- if (r === o || s && a) return n;
710
- let c = {
711
- scrollLeft: 0,
712
- scrollTop: 0
713
- }, l = O(1), u = O(0), d = F(r);
714
- if ((d || !d && !a) && ((j(r) !== "body" || I(o)) && (c = pt(r)), d)) {
715
- let e = H(r);
716
- l = V(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
717
- }
718
- let f = o && !d && !a ? Ct(o, c) : O(0);
719
- return {
720
- width: n.width * l.x,
721
- height: n.height * l.y,
722
- x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
723
- y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
724
- };
725
- }
726
- function Tt(e) {
727
- return Array.from(e.getClientRects());
728
- }
729
- function Et(e) {
730
- let t = N(e), n = pt(e), r = e.ownerDocument.body, i = D(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = D(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + St(e), s = -n.scrollTop;
731
- return z(r).direction === "rtl" && (o += D(t.clientWidth, r.clientWidth) - i), {
732
- width: i,
733
- height: a,
734
- x: o,
735
- y: s
736
- };
737
- }
738
- var Dt = 25;
739
- function Ot(e, t) {
740
- let n = M(e), r = N(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
741
- if (i) {
742
- a = i.width, o = i.height;
743
- let e = ft();
744
- (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
745
- }
746
- let l = St(r);
747
- if (l <= 0) {
748
- let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
749
- o <= Dt && (a -= o);
750
- } else l <= Dt && (a += l);
751
- return {
752
- width: a,
753
- height: o,
754
- x: s,
755
- y: c
756
- };
757
- }
758
- function kt(e, t) {
759
- let n = H(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = F(e) ? V(e) : O(1);
760
- return {
761
- width: e.clientWidth * a.x,
762
- height: e.clientHeight * a.y,
763
- x: i * a.x,
764
- y: r * a.y
765
- };
766
- }
767
- function At(e, t, n) {
768
- let r;
769
- if (t === "viewport") r = Ot(e, n);
770
- else if (t === "document") r = Et(N(e));
771
- else if (P(t)) r = kt(t, n);
772
- else {
773
- let n = bt(e);
774
- r = {
775
- x: t.x - n.x,
776
- y: t.y - n.y,
777
- width: t.width,
778
- height: t.height
779
- };
780
- }
781
- return qe(r);
782
- }
783
- function jt(e, t) {
784
- let n = B(e);
785
- return n === t || !P(n) || R(n) ? !1 : z(n).position === "fixed" || jt(n, t);
786
- }
787
- function Mt(e, t) {
788
- let n = t.get(e);
789
- if (n) return n;
790
- let r = ht(e, [], !1).filter((e) => P(e) && j(e) !== "body"), i = null, a = z(e).position === "fixed", o = a ? B(e) : e;
791
- for (; P(o) && !R(o);) {
792
- let t = z(o), n = ut(o);
793
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || I(o) && !n && jt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = B(o);
794
- }
795
- return t.set(e, r), r;
796
- }
797
- function Nt(e) {
798
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ot(t) ? [] : Mt(t, this._c) : [].concat(n), r], o = At(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
799
- for (let e = 1; e < a.length; e++) {
800
- let n = At(t, a[e], i);
801
- s = D(n.top, s), c = Ee(n.right, c), l = Ee(n.bottom, l), u = D(n.left, u);
802
- }
803
- return {
804
- width: c - u,
805
- height: l - s,
806
- x: u,
807
- y: s
808
- };
809
- }
810
- function Pt(e) {
811
- let { width: t, height: n } = _t(e);
812
- return {
813
- width: t,
814
- height: n
815
- };
816
- }
817
- function Ft(e, t, n) {
818
- let r = F(t), i = N(t), a = n === "fixed", o = H(e, !0, a, t), s = {
819
- scrollLeft: 0,
820
- scrollTop: 0
821
- }, c = O(0);
822
- function l() {
823
- c.x = St(i);
824
- }
825
- if (r || !r && !a) if ((j(t) !== "body" || I(i)) && (s = pt(t)), r) {
826
- let e = H(t, !0, a, t);
827
- c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
828
- } else i && l();
829
- a && !r && i && l();
830
- let u = i && !r && !a ? Ct(i, s) : O(0);
831
- return {
832
- x: o.left + s.scrollLeft - c.x - u.x,
833
- y: o.top + s.scrollTop - c.y - u.y,
834
- width: o.width,
835
- height: o.height
836
- };
837
- }
838
- function It(e) {
839
- return z(e).position === "static";
840
- }
841
- function Lt(e, t) {
842
- if (!F(e) || z(e).position === "fixed") return null;
843
- if (t) return t(e);
844
- let n = e.offsetParent;
845
- return N(e) === n && (n = n.ownerDocument.body), n;
846
- }
847
- function Rt(e, t) {
848
- let n = M(e);
849
- if (ot(e)) return n;
850
- if (!F(e)) {
851
- let t = B(e);
852
- for (; t && !R(t);) {
853
- if (P(t) && !It(t)) return t;
854
- t = B(t);
855
- }
856
- return n;
857
- }
858
- let r = Lt(e, t);
859
- for (; r && at(r) && It(r);) r = Lt(r, t);
860
- return r && R(r) && It(r) && !ut(r) ? n : r || dt(e) || n;
861
- }
862
- var zt = async function(e) {
863
- let t = this.getOffsetParent || Rt, n = this.getDimensions, r = await n(e.floating);
864
- return {
865
- reference: Ft(e.reference, await t(e.floating), e.strategy),
866
- floating: {
867
- x: 0,
868
- y: 0,
869
- width: r.width,
870
- height: r.height
871
- }
872
- };
873
- };
874
- function Bt(e) {
875
- return z(e).direction === "rtl";
876
- }
877
- var Vt = {
878
- convertOffsetParentRelativeRectToViewportRelativeRect: wt,
879
- getDocumentElement: N,
880
- getClippingRect: Nt,
881
- getOffsetParent: Rt,
882
- getElementRects: zt,
883
- getClientRects: Tt,
884
- getDimensions: Pt,
885
- getScale: V,
886
- isElement: P,
887
- isRTL: Bt
888
- };
889
- function Ht(e, t) {
890
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
891
- }
892
- function Ut(e, t) {
893
- let n = null, r, i = N(e);
894
- function a() {
895
- var e;
896
- clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
897
- }
898
- function o(s, c) {
899
- s === void 0 && (s = !1), c === void 0 && (c = 1), a();
900
- let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
901
- if (s || t(), !f || !p) return;
902
- let m = Oe(d), h = Oe(i.clientWidth - (u + f)), g = Oe(i.clientHeight - (d + p)), _ = Oe(u), v = {
903
- rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
904
- threshold: D(0, Ee(1, c)) || 1
905
- }, y = !0;
906
- function b(t) {
907
- let n = t[0].intersectionRatio;
908
- if (n !== c) {
909
- if (!y) return o();
910
- n ? o(!1, n) : r = setTimeout(() => {
911
- o(!1, 1e-7);
912
- }, 1e3);
913
- }
914
- n === 1 && !Ht(l, e.getBoundingClientRect()) && o(), y = !1;
915
- }
916
- try {
917
- n = new IntersectionObserver(b, {
918
- ...v,
919
- root: i.ownerDocument
920
- });
921
- } catch {
922
- n = new IntersectionObserver(b, v);
923
- }
924
- n.observe(e);
925
- }
926
- return o(!0), a;
927
- }
928
- function Wt(e, t, n, r) {
929
- r === void 0 && (r = {});
930
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = vt(e), u = i || a ? [...l ? ht(l) : [], ...t ? ht(t) : []] : [];
931
- u.forEach((e) => {
932
- i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
933
- });
934
- let d = l && s ? Ut(l, n) : null, f = -1, p = null;
935
- o && (p = new ResizeObserver((e) => {
936
- let [r] = e;
937
- r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
938
- var e;
939
- (e = p) == null || e.observe(t);
940
- })), n();
941
- }), l && !c && p.observe(l), t && p.observe(t));
942
- let m, h = c ? H(e) : null;
943
- c && g();
944
- function g() {
945
- let t = H(e);
946
- h && !Ht(h, t) && n(), h = t, m = requestAnimationFrame(g);
947
- }
948
- return n(), () => {
949
- var e;
950
- u.forEach((e) => {
951
- i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
952
- }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
953
- };
954
- }
955
- var Gt = tt, Kt = Qe, qt = (e, t, n) => {
956
- let r = /* @__PURE__ */ new Map(), i = {
957
- platform: Vt,
958
- ...n
959
- }, a = {
960
- ...i.platform,
961
- _c: r
962
- };
963
- return Ze(e, t, {
964
- ...i,
965
- platform: a
966
- });
967
- }, Jt = /* @__PURE__ */ new WeakMap(), Yt = (e, t) => {
968
- Xt(e), Jt.set(e, t);
969
- }, Xt = (e) => {
970
- let t = Jt.get(e);
971
- t && (t(), Jt.delete(e));
972
- }, Zt = ({ element: e, activeActions: t, getGridItemById: n, placementItemActionsMenu: r, renderOverlayContent: i, removeItemActionsMenuPopover: a, itemActionsDocumentPopover: o = !0 }) => {
973
- let s = e.querySelector(".grid-item-actions-popover"), c = e.querySelector(".grid-stack-item-content"), l = n(e.getAttribute("gs-id") ?? "");
974
- if (t && t.length > 0 && s && (a(e), s = null), !s) {
975
- let n = document.createDocumentFragment();
976
- _(i(l?.item, t), n), s = n.querySelector(".grid-item-actions-popover"), e.append(s);
977
- }
978
- let u = o ? "absolute" : "fixed", d = Wt(c, s, async () => {
979
- let { x: e, y: t } = await qt(c, s, {
980
- placement: l?.item?.placementActionsMenu ?? r ?? "right-start",
981
- strategy: u,
982
- middleware: [Gt(0), Kt({ crossAxis: !1 })]
983
- });
984
- s.style.left = `${e}px`, s.style.top = `${t}px`, o || (s.style.position = "fixed", s.style.right = "auto", s.style.bottom = "auto", s.style.margin = "0");
985
- });
986
- Yt(s, d), o && s.isConnected && !s.matches(":popover-open") && s.showPopover();
987
- }, Qt = (e) => {
988
- let t = e.querySelector(".grid-item-actions-popover");
989
- t && (Xt(t), t.hasAttribute("popover") && t.matches(":popover-open") && t.hidePopover(), t.remove());
990
- }, $t = (e) => e === "ArrowLeft" || e === "ArrowRight" || e === "ArrowUp" || e === "ArrowDown", en = ({ key: e, node: t, maxColumns: n, shiftKey: r, ctrlKey: i, metaKey: a }) => {
991
- let o = {
992
- ArrowLeft: {
993
- move: { x: t.x - 1 },
994
- resize: {
995
- x: t.x - 1,
996
- w: t.w + 1
997
- },
998
- shrink: { w: t.w - 1 },
999
- canMove: t.x > 0,
1000
- canResize: t.x > 0,
1001
- canShrink: t.w > 1
1002
- },
1003
- ArrowRight: {
1004
- move: { x: t.x + 1 },
1005
- resize: { w: t.w + 1 },
1006
- shrink: {
1007
- x: t.x + 1,
1008
- w: t.w - 1
1009
- },
1010
- canMove: t.x < n - t.w,
1011
- canResize: t.x + t.w < n,
1012
- canShrink: t.w > 1
1013
- },
1014
- ArrowUp: {
1015
- move: { y: t.y - 1 },
1016
- resize: {
1017
- y: t.y - 1,
1018
- h: t.h + 1
1019
- },
1020
- shrink: { h: t.h - 1 },
1021
- canMove: t.y > 0,
1022
- canResize: t.y > 0,
1023
- canShrink: t.h > 1
1024
- },
1025
- ArrowDown: {
1026
- move: { y: t.y + 1 },
1027
- resize: { h: t.h + 1 },
1028
- shrink: {
1029
- y: t.y + 1,
1030
- h: t.h - 1
1031
- },
1032
- canMove: !0,
1033
- canResize: !0,
1034
- canShrink: t.h > 1
1035
- }
1036
- }[e];
1037
- if (r && o.canResize) return o.resize;
1038
- if ((i || a) && o.canShrink) return o.shrink;
1039
- if (o.canMove) return o.move;
1040
- }, tn = ({ event: e, viewMode: t, focusedItemElement: n, activeItemElement: r, gridElement: i, grid: a, columns: o, onDeleteRequest: s, removeItemActionsMenuPopover: c, createItemActionsMenuPopover: l }) => {
1041
- if (t) return {
1042
- focusedItemElement: n,
1043
- activeItemElement: r
1044
- };
1045
- let u = n, d = r;
1046
- if (e.key === "Delete" && n) {
1047
- let e = n.nextElementSibling ?? n.previousElementSibling;
1048
- s(n), u = e ?? void 0, u ? requestAnimationFrame(() => u?.focus()) : i.focus(), r === n && (d = void 0);
1049
- } else if (e.key === "Escape" && n) n.removeAttribute("focused"), c(n), u = void 0, i.focus();
1050
- else if (e.key === "Enter" && n) e.preventDefault(), e.stopPropagation(), r && (r.removeAttribute("active"), i.removeAttribute("has-active-item"), c(r), d = void 0), i.querySelectorAll(".grid-stack-item").forEach((e) => {
1051
- e !== n && c(e);
1052
- }), l(n), requestAnimationFrame(() => {
1053
- let e = n.querySelector("luzmo-item-grid-item-actions-menu");
1054
- e && e.focus();
1055
- });
1056
- else if (n && a && $t(e.key)) {
1057
- e.preventDefault(), e.stopPropagation();
1058
- let t = n.gridstackNode;
1059
- if (!t) return {
1060
- focusedItemElement: u,
1061
- activeItemElement: d
1062
- };
1063
- let r = en({
1064
- key: e.key,
1065
- node: t,
1066
- maxColumns: o,
1067
- shiftKey: e.shiftKey,
1068
- ctrlKey: e.ctrlKey,
1069
- metaKey: e.metaKey
1070
- });
1071
- r && a.update(n, r);
1072
- }
1073
- return {
1074
- focusedItemElement: u,
1075
- activeItemElement: d
1076
- };
1077
- }, U = {
1078
- lock: {
1079
- icon: d,
1080
- label: "Lock",
1081
- tooltip: "Lock",
1082
- action: "lock",
1083
- type: "toggle"
1084
- },
1085
- edit: {
1086
- icon: f,
1087
- label: "Edit",
1088
- tooltip: "Edit",
1089
- action: "edit",
1090
- type: "toggle"
1091
- },
1092
- "edit-data": {
1093
- icon: p,
1094
- label: "Edit data",
1095
- tooltip: "Data",
1096
- action: "edit-data",
1097
- type: "toggle"
1098
- },
1099
- "item-options": {
1100
- icon: l,
1101
- label: "Item options",
1102
- tooltip: "Options",
1103
- action: "item-options",
1104
- type: "toggle"
1105
- },
1106
- filters: {
1107
- icon: u,
1108
- label: "Filters",
1109
- tooltip: "Filters",
1110
- action: "filters",
1111
- type: "toggle"
1112
- },
1113
- clone: {
1114
- icon: c,
1115
- label: "Clone",
1116
- tooltip: "Clone",
1117
- action: "clone",
1118
- type: "button"
1119
- },
1120
- delete: {
1121
- icon: m,
1122
- label: "Delete",
1123
- tooltip: "Delete",
1124
- action: "delete",
1125
- type: "button"
1126
- }
1127
- }, nn = (e) => {
1128
- if (e) return structuredClone(e).map((e) => {
1129
- if (e.type === "group") return e.actions = e.actions ?? [], e.actions = e.actions.map((e) => {
1130
- if (typeof e == "string" && Object.hasOwn(U, e)) return { ...U[e] };
1131
- if (typeof e == "object") return e.icon = e.icon ?? s, e.label = e.label ?? e.action, e.tooltip = e.tooltip ?? e.label ?? e.action, e.type = ["toggle", "button"].includes(e.type ?? "") ? e.type : "button", e;
1132
- }).filter(Boolean), e;
1133
- }).filter(Boolean);
1134
- }, rn = () => [{
1135
- type: "group",
1136
- actions: [
1137
- { ...U["edit-data"] },
1138
- { ...U["item-options"] },
1139
- { ...U.clone }
1140
- ]
1141
- }, {
1142
- type: "group",
1143
- actions: [{ ...U.delete }]
1144
- }], an = 16, on = 10, W = (e, t) => t >= 1 ? `rgba(${e.r},${e.g},${e.b},1)` : t <= 0 ? `rgba(${e.r},${e.g},${e.b},0)` : `rgba(${e.r},${e.g},${e.b},${t})`, sn = async ({ theme: e, currentTheme: t }) => e?.type === "custom" ? structuredClone(e) : e?.id && r.includes(e.id) && t?.id !== e.id ? {
1145
- ...await i(e.id),
1146
- id: e.id
1147
- } : e?.id && t?.id !== e.id || !e && t ? t : await i("default"), cn = (e) => [(e?.margins?.[0] ?? an) / 2, (e?.margins?.[1] ?? an) / 2], ln = (e) => on - (e?.margins?.[0] ?? on), un = (e) => {
1148
- let n = e?.boxShadow;
1149
- if (!n) return "";
1150
- let r = new t(n.color), i = {
1151
- r: Math.round(r.srgb.r * 255),
1152
- g: Math.round(r.srgb.g * 255),
1153
- b: Math.round(r.srgb.b * 255)
1154
- }, a = e?.margins?.[0] ?? an, o = Math.min(a / 10, 2);
1155
- return n.size === "none" ? "none" : n.size === "S" ? `0 ${o * 2}px ${o * 4}px ${W(i, .16)}, 0 ${o * 2}px ${o * 4}px ${W(i, .23)}` : n.size === "M" ? `0 ${o * 8}px ${o * 16}px ${W(i, .19)}, 0 ${o * 4}px ${o * 4}px ${W(i, .23)}` : n.size === "L" ? `0 ${o * 12}px ${o * 24}px ${W(i, .25)}, 0 ${o * 8}px ${o * 8}px ${W(i, .22)}` : "";
1156
- }, dn = (e) => {
1157
- let t = un(e);
1158
- return /* @__PURE__ */ new Map([
1159
- ["--grid-font-family", e?.font?.fontFamily],
1160
- ["--grid-background", e?.background],
1161
- ["--grid-item-box-shadow", t],
1162
- ["--grid-item-background", e?.itemsBackground],
1163
- ["--grid-item-border-color", e?.borders?.["border-color"]],
1164
- ["--grid-item-border-style", e?.borders?.["border-style"]],
1165
- ["--grid-item-border-radius", e?.borders?.["border-radius"]],
1166
- ["--grid-item-border-width", `${e?.borders?.["border-top-width"]}`],
1167
- ["--grid-item-border-top-width", e?.borders?.["border-top-width"]],
1168
- ["--grid-item-border-right-width", e?.borders?.["border-right-width"]],
1169
- ["--grid-item-border-bottom-width", e?.borders?.["border-bottom-width"]],
1170
- ["--grid-item-border-left-width", e?.borders?.["border-left-width"]]
1171
- ]);
1172
- }, fn = (e) => {
1173
- let n = e?.itemsBackground ?? e?.background;
1174
- return n ? new t(n).luminance < .5 : !1;
1175
- }, pn = (e, t) => {
1176
- t && dn(t).forEach((t, n) => {
1177
- t ? e.setProperty(n, t) : e.removeProperty(n);
1178
- });
1179
- }, mn = ({ item: e, defaultItemActionsMenu: t, activeActions: n }) => {
1180
- let r = nn(e?.actionsMenu) ?? nn(t) ?? rn();
1181
- if (!a.find((t) => t.type === e?.type)?.containsData && !e?.actionsMenu && !t && (r = r.map((e) => ({
1182
- ...e,
1183
- actions: e.actions?.filter((e) => e.action !== "edit-data")
1184
- }))), n && n.length > 0) {
1185
- let e = new Set(n);
1186
- r = r.map((t) => ({
1187
- ...t,
1188
- actions: t.actions?.map((t) => ({
1189
- ...t,
1190
- active: t.action && e.has(t.action) ? !0 : t.active
1191
- }))
1192
- }));
1193
- }
1194
- return r;
1195
- }, hn = ({ item: e, activeActions: t, defaultItemActionsMenu: n, placementItemActionsMenu: r, language: i, handleAction: a, itemActionsDocumentPopover: o = !0 }) => {
1196
- let s = mn({
1197
- item: e,
1198
- defaultItemActionsMenu: n,
1199
- activeActions: t
1200
- });
1201
- return h`
1202
- <div class="grid-item-actions-popover" popover=${o ? "manual" : g}>
1203
- <luzmo-item-grid-item-actions-menu
1204
- .actions=${s}
1205
- placement=${e?.placementActionsMenu ?? r ?? "right-start"}
1206
- .language=${i}
1207
- @luzmo-item-grid-item-action=${a}
1208
- >
1209
- </luzmo-item-grid-item-actions-menu>
1210
- </div>
1211
- `;
1212
- }, gn = ({ item: e, index: t, initialized: n, viewMode: r, contentLanguage: i, fullTheme: a, appServer: s, apiHost: c, authKey: l, authToken: u, handleMouseover: d, handleMouseout: f, handleFocus: p, handleBlur: m }) => {
1213
- let g = {
1214
- ...e.options,
1215
- locale: i
1216
- };
1217
- g.theme ||= a?.id ? { id: a.id } : structuredClone(a);
1218
- let _ = !r;
1219
- return h`
1220
- <div
1221
- class="luzmo-item-grid-item has-luzmo-viz-item"
1222
- luzmo-item-grid-item-id=${e.id ?? ""}
1223
- tabindex="0"
1224
- role="row"
1225
- @mouseover=${d}
1226
- @mouseout=${f}
1227
- @focus=${p}
1228
- @blur=${m}
1229
- >
1230
- <div
1231
- class="grid-stack-item-content"
1232
- role="gridcell"
1233
- aria-label=${S("Grid item", { desc: "Accessible label prefix for grid items" }) + ` ${t + 1}`}
1234
- >
1235
- ${_ ? h`
1236
- <div class="grid-item-drag-handle">
1237
- <luzmo-icon .icon=${o} size="s"></luzmo-icon>
1238
- </div>
1239
- ` : h`
1240
-
1241
- `}
1242
- ${n ? h`
1243
- <luzmo-embed-viz-item
1244
- .appServer=${s}
1245
- .apiHost=${c}
1246
- .authKey=${l}
1247
- .authToken=${u}
1248
- .type=${e.type}
1249
- .slots=${e.slots}
1250
- .options=${g}
1251
- .filters=${e.filters}
1252
- .language=${i}
1253
- .canFilter=${e.canFilter ?? "all"}
1254
- ></luzmo-embed-viz-item>` : h`
1255
-
1256
- `}
1257
- </div>
1258
- </div>
1259
- `;
1260
- }, _n = ({ items: e, initialized: t, viewMode: n, contentLanguage: r, fullTheme: i, appServer: a, apiHost: o, authKey: s, authToken: c, renderItem: l }) => C(e, (e) => e.id, (e, u) => w([
1261
- e,
1262
- t,
1263
- n,
1264
- r,
1265
- i,
1266
- a,
1267
- o,
1268
- s,
1269
- c
1270
- ], () => l(e, u))), vn = ({ items: e, initialized: t, viewMode: n, contentLanguage: r, fullTheme: i, appServer: a, apiHost: o, authKey: s, authToken: c, columns: l, ensureGridItemId: u, handleMouseover: d, handleMouseout: f, handleFocus: p, handleBlur: m }) => {
1271
- e.forEach((e) => {
1272
- u(e);
1273
- });
1274
- let g = _n({
1275
- items: e,
1276
- initialized: t,
1277
- viewMode: n,
1278
- contentLanguage: r,
1279
- fullTheme: i,
1280
- appServer: a,
1281
- apiHost: o,
1282
- authKey: s,
1283
- authToken: c,
1284
- renderItem: (e, l) => gn({
1285
- item: e,
1286
- index: l,
1287
- initialized: t,
1288
- viewMode: n,
1289
- contentLanguage: r,
1290
- fullTheme: i,
1291
- appServer: a,
1292
- apiHost: o,
1293
- authKey: s,
1294
- authToken: c,
1295
- handleMouseover: d,
1296
- handleMouseout: f,
1297
- handleFocus: p,
1298
- handleBlur: m
1299
- })
1300
- });
1301
- return h`
1302
- <div
1303
- ?dark-background=${t ? fn(i) : !1}
1304
- class="grid-stack"
1305
- data-grid-columns=${l}
1306
- role="grid"
1307
- aria-label=${S("Dashboard grid", { desc: "Accessible label for the dashboard grid" })}
1308
- >
1309
- ${g}
1310
- </div>
1311
- `;
1312
- }, G = class e {
1313
- static getElements(e, t = document) {
1314
- if (typeof e == "string") {
1315
- let n = "getElementById" in t ? t : void 0;
1316
- if (n && !isNaN(+e[0])) {
1317
- let t = n.getElementById(e);
1318
- return t ? [t] : [];
1319
- }
1320
- let r = t.querySelectorAll(e);
1321
- if (!r.length && e[0] !== "." && e[0] !== "#" && (r = t.querySelectorAll("." + e), r.length || (r = t.querySelectorAll("#" + e)), !r.length)) {
1322
- let n = t.querySelector(`[gs-id="${e}"]`);
1323
- return n ? [n] : [];
1324
- }
1325
- return Array.from(r);
1326
- }
1327
- return [e];
1328
- }
1329
- static getElement(e, t = document) {
1330
- if (typeof e == "string") {
1331
- let n = "getElementById" in t ? t : void 0;
1332
- if (!e.length) return null;
1333
- if (n && e[0] === "#") return n.getElementById(e.substring(1));
1334
- if (e[0] === "#" || e[0] === "." || e[0] === "[") return t.querySelector(e);
1335
- if (n && !isNaN(+e[0])) return n.getElementById(e);
1336
- let r = t.querySelector(e);
1337
- return n && !r && (r = n.getElementById(e)), r ||= t.querySelector("." + e), r;
1338
- }
1339
- return e;
1340
- }
1341
- static lazyLoad(e) {
1342
- return !!(e.lazyLoad || e.grid?.opts?.lazyLoad && e.lazyLoad !== !1);
1343
- }
1344
- static createDiv(e, t) {
1345
- let n = document.createElement("div");
1346
- return e.forEach((e) => {
1347
- e && n.classList.add(e);
1348
- }), t?.appendChild(n), n;
1349
- }
1350
- static shouldSizeToContent(e, t = !1) {
1351
- return !!(e?.grid && (t ? e.sizeToContent === !0 || e.grid.opts.sizeToContent === !0 && e.sizeToContent === void 0 : e.sizeToContent || e.grid.opts.sizeToContent && e.sizeToContent !== !1));
1352
- }
1353
- static isIntercepted(e, t) {
1354
- return !(e.y >= t.y + t.h || e.y + e.h <= t.y || e.x + e.w <= t.x || e.x >= t.x + t.w);
1355
- }
1356
- static isTouching(t, n) {
1357
- return e.isIntercepted(t, {
1358
- x: n.x - .5,
1359
- y: n.y - .5,
1360
- w: n.w + 1,
1361
- h: n.h + 1
1362
- });
1363
- }
1364
- static areaIntercept(e, t) {
1365
- let n = e.x > t.x ? e.x : t.x, r = e.x + e.w < t.x + t.w ? e.x + e.w : t.x + t.w;
1366
- if (r <= n) return 0;
1367
- let i = e.y > t.y ? e.y : t.y, a = e.y + e.h < t.y + t.h ? e.y + e.h : t.y + t.h;
1368
- return a <= i ? 0 : (r - n) * (a - i);
1369
- }
1370
- static area(e) {
1371
- return e.w * e.h;
1372
- }
1373
- static sort(e, t = 1) {
1374
- let n = 2 ** 53 - 1;
1375
- return e.sort((e, r) => {
1376
- let i = t * ((e.y ?? n) - (r.y ?? n));
1377
- return i === 0 ? t * ((e.x ?? n) - (r.x ?? n)) : i;
1378
- });
1379
- }
1380
- static find(e, t) {
1381
- return t ? e.find((e) => e.id === t) : void 0;
1382
- }
1383
- static findInGrid(t, n, r) {
1384
- let i = t.engine.nodes.find((e) => String(e.id) === n);
1385
- if (i || !r) return i;
1386
- for (let r of t.engine.nodes) if (r.subGrid) {
1387
- let t = e.findInGrid(r.subGrid, n);
1388
- if (t) return t;
1389
- }
1390
- }
1391
- static toBool(e) {
1392
- return typeof e == "boolean" ? e : typeof e == "string" ? (e = e.toLowerCase(), !(e === "" || e === "no" || e === "false" || e === "0")) : !!e;
1393
- }
1394
- static toNumber(e) {
1395
- return e === null || e.length === 0 ? void 0 : Number(e);
1396
- }
1397
- static parseHeight(e) {
1398
- let t, n = "px";
1399
- if (typeof e == "string") if (e === "auto" || e === "") t = 0;
1400
- else {
1401
- let r = e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);
1402
- if (!r) throw Error(`Invalid height val = ${e}`);
1403
- n = r[2] || "px", t = parseFloat(r[1]);
1404
- }
1405
- else t = e;
1406
- return {
1407
- h: t,
1408
- unit: n
1409
- };
1410
- }
1411
- static defaults(t, ...n) {
1412
- return n.forEach((n) => {
1413
- for (let r in n) {
1414
- if (!Object.prototype.hasOwnProperty.call(n, r)) return;
1415
- t[r] === null || t[r] === void 0 ? t[r] = n[r] : typeof n[r] == "object" && typeof t[r] == "object" && e.defaults(t[r], n[r]);
1416
- }
1417
- }), t;
1418
- }
1419
- static same(e, t) {
1420
- if (typeof e != "object") return e == t;
1421
- if (typeof e != typeof t) return !1;
1422
- let n = e, r = t;
1423
- if (Object.keys(n).length !== Object.keys(r).length) return !1;
1424
- for (let e in n) if (n[e] !== r[e]) return !1;
1425
- return !0;
1426
- }
1427
- static copyPos(e, t, n = !1) {
1428
- return t.x !== void 0 && (e.x = t.x), t.y !== void 0 && (e.y = t.y), t.w !== void 0 && (e.w = t.w), t.h !== void 0 && (e.h = t.h), n && (t.minW && (e.minW = t.minW), t.minH && (e.minH = t.minH), t.maxW && (e.maxW = t.maxW), t.maxH && (e.maxH = t.maxH)), e;
1429
- }
1430
- static samePos(e, t) {
1431
- return e && t && e.x === t.x && e.y === t.y && (e.w || 1) === (t.w || 1) && (e.h || 1) === (t.h || 1);
1432
- }
1433
- static sanitizeMinMax(e) {
1434
- e.minW || delete e.minW, e.minH || delete e.minH, e.maxW || delete e.maxW, e.maxH || delete e.maxH;
1435
- }
1436
- static removeInternalAndSame(t, n) {
1437
- if (typeof t != "object" || typeof n != "object" || !t || !n || Array.isArray(t) || Array.isArray(n)) return;
1438
- let r = t, i = n;
1439
- for (let t in r) {
1440
- let n = r[t], a = i[t];
1441
- t[0] === "_" || n === a ? delete r[t] : n && typeof n == "object" && a !== void 0 && (e.removeInternalAndSame(n, a), Object.keys(n).length || delete r[t]);
1442
- }
1443
- }
1444
- static removeInternalForSave(e, t = !0) {
1445
- let n = e;
1446
- for (let e in n) (e[0] === "_" || n[e] === null || n[e] === void 0) && delete n[e];
1447
- delete e.grid, t && delete e.el, e.autoPosition || delete e.autoPosition, e.noResize || delete e.noResize, e.noMove || delete e.noMove, e.locked || delete e.locked, (e.w === 1 || e.w === e.minW) && delete e.w, (e.h === 1 || e.h === e.minH) && delete e.h;
1448
- }
1449
- static throttle(e, t) {
1450
- let n = !1;
1451
- return (...r) => {
1452
- n || (n = !0, setTimeout(() => {
1453
- e(...r), n = !1;
1454
- }, t));
1455
- };
1456
- }
1457
- static removePositioningStyles(e) {
1458
- let t = e.style;
1459
- t.position && t.removeProperty("position"), t.left && t.removeProperty("left"), t.top && t.removeProperty("top"), t.width && t.removeProperty("width"), t.height && t.removeProperty("height");
1460
- }
1461
- static getScrollElement(t) {
1462
- if (!t) return document.scrollingElement || document.documentElement;
1463
- let n = getComputedStyle(t).overflowY;
1464
- return (n === "auto" || n === "scroll") && t.scrollHeight > t.clientHeight ? t : e.getScrollElement(t.parentElement ?? void 0);
1465
- }
1466
- static updateScrollResize(t, n, r) {
1467
- let i = e.getScrollElement(n), a = i.clientHeight, o = i === e.getScrollElement() ? 0 : i.getBoundingClientRect().top, s = t.clientY - o, c = s < r, l = s > a - r;
1468
- c ? i.scrollBy({
1469
- behavior: "smooth",
1470
- top: s - r
1471
- }) : l && i.scrollBy({
1472
- behavior: "smooth",
1473
- top: r - (a - s)
1474
- });
1475
- }
1476
- static pauseIframePointerEvents(e) {
1477
- document.querySelectorAll("iframe").forEach((t) => {
1478
- t.style.pointerEvents = e ? "none" : "";
1479
- });
1480
- }
1481
- static clone(e) {
1482
- return typeof e != "object" || !e ? e : e instanceof Array ? [...e] : { ...e };
1483
- }
1484
- static cloneDeep(t) {
1485
- let n = [
1486
- "parentGrid",
1487
- "el",
1488
- "grid",
1489
- "subGrid",
1490
- "engine"
1491
- ], r = e.clone(t);
1492
- for (let i in r) Object.prototype.hasOwnProperty.call(r, i) && typeof r[i] == "object" && i.substring(0, 2) !== "__" && !n.find((e) => e === i) && (r[i] = e.cloneDeep(t[i]));
1493
- return r;
1494
- }
1495
- static cloneNode(e) {
1496
- let t = e.cloneNode(!0);
1497
- return t.removeAttribute("id"), t;
1498
- }
1499
- static appendTo(t, n) {
1500
- let r;
1501
- r = typeof n == "string" ? e.getElement(n) : n, r && r.appendChild(t);
1502
- }
1503
- static addElStyles(e, t) {
1504
- if (t instanceof Object) {
1505
- let n = e.style;
1506
- for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Array.isArray(t[e]) ? t[e].forEach((t) => {
1507
- n[e] = t;
1508
- }) : n[e] = t[e]);
1509
- }
1510
- }
1511
- static initEvent(e, t) {
1512
- let n = { type: t.type }, r = {
1513
- button: 0,
1514
- which: 0,
1515
- buttons: 1,
1516
- bubbles: !0,
1517
- cancelable: !0,
1518
- target: t.target ? t.target : e.target
1519
- }, i = e;
1520
- return [
1521
- "altKey",
1522
- "ctrlKey",
1523
- "metaKey",
1524
- "shiftKey"
1525
- ].forEach((e) => n[e] = i[e]), [
1526
- "pageX",
1527
- "pageY",
1528
- "clientX",
1529
- "clientY",
1530
- "screenX",
1531
- "screenY"
1532
- ].forEach((e) => n[e] = i[e]), {
1533
- ...n,
1534
- ...r
1535
- };
1536
- }
1537
- static simulateMouseEvent(e, t, n) {
1538
- let r = e, i = new MouseEvent(t, {
1539
- bubbles: !0,
1540
- composed: !0,
1541
- cancelable: !0,
1542
- view: window,
1543
- detail: 1,
1544
- screenX: e.screenX,
1545
- screenY: e.screenY,
1546
- clientX: e.clientX,
1547
- clientY: e.clientY,
1548
- ctrlKey: r.ctrlKey ?? !1,
1549
- altKey: r.altKey ?? !1,
1550
- shiftKey: r.shiftKey ?? !1,
1551
- metaKey: r.metaKey ?? !1,
1552
- button: 0,
1553
- relatedTarget: e.target
1554
- });
1555
- (n || e.target).dispatchEvent(i);
1556
- }
1557
- static getValuesFromTransformedElement(t) {
1558
- let n = document.createElement("div");
1559
- e.addElStyles(n, {
1560
- opacity: "0",
1561
- position: "fixed",
1562
- top: "0px",
1563
- left: "0px",
1564
- width: "1px",
1565
- height: "1px",
1566
- zIndex: "-999999"
1567
- }), t.appendChild(n);
1568
- let r = n.getBoundingClientRect();
1569
- return t.removeChild(n), n.remove(), {
1570
- xScale: 1 / r.width,
1571
- yScale: 1 / r.height,
1572
- xOffset: r.left,
1573
- yOffset: r.top
1574
- };
1575
- }
1576
- static swap(e, t, n) {
1577
- if (!e) return;
1578
- let r = e, i = r[t];
1579
- r[t] = r[n], r[n] = i;
1580
- }
1581
- static canBeRotated(e) {
1582
- return !(!e || e.w === e.h || e.locked || e.noResize || e.grid?.opts.disableResize || e.minW && e.minW === e.maxW || e.minH && e.minH === e.maxH);
1583
- }
1584
- }, yn = class e {
1585
- constructor(e = {}) {
1586
- this.addedNodes = [], this.removedNodes = [], this.defaultColumn = 12, this.column = e.column || this.defaultColumn, this.column > this.defaultColumn && (this.defaultColumn = this.column), this.maxRow = e.maxRow ?? 0, this._mode = e.mode || "top", this.nodes = e.nodes || [], this.onChange = e.onChange ?? (() => {});
1587
- }
1588
- batchUpdate(e = !0, t = !0) {
1589
- return !!this.batchMode === e ? this : (this.batchMode = e, e ? (this._prevMode = this._mode, this._mode = "float", this.cleanNodes(), this.nodes.some((e) => e._updating) || this.saveInitial()) : (this._mode = this._prevMode || "top", delete this._prevMode, t && this._packNodes(), this._notify()), this);
1590
- }
1591
- get _realMode() {
1592
- return this.batchMode ? this._prevMode || "top" : this.mode;
1593
- }
1594
- _useEntireRowArea(e, t) {
1595
- return (this.mode !== "float" || this.batchMode && this._prevMode !== "float") && !this._hasLocked && (!e._moving || e._skipDown || t.y <= e.y);
1596
- }
1597
- _fixCollisions(e, t = e, n, r = {}) {
1598
- if (this.sortNodes(-1), n ||= this.collide(e, t), !n) return !1;
1599
- if (e._moving && !e._isExternal && !r.nested && this.mode !== "float" && this.swap(e, n)) return !0;
1600
- let i = t;
1601
- !this._loading && this._useEntireRowArea(e, t) && (i = {
1602
- x: 0,
1603
- w: this.column,
1604
- y: t.y,
1605
- h: t.h
1606
- }, n = this.collide(e, i, r.skip));
1607
- let a = !1, o = {
1608
- nested: !0,
1609
- pack: !1
1610
- }, s = 0;
1611
- for (; n ||= this.collide(e, i, r.skip);) {
1612
- if (s++ > this.nodes.length * 2) throw Error("Infinite collide check");
1613
- let i;
1614
- if (n.locked || this._loading || e._moving && !e._skipDown && t.y > e.y && this.mode !== "float" && (!this.collide(n, {
1615
- ...n,
1616
- y: e.y
1617
- }, e) || !this.collide(n, {
1618
- ...n,
1619
- y: t.y - n.h
1620
- }, e))) {
1621
- e._skipDown = e._skipDown || t.y > e.y;
1622
- let s = {
1623
- ...t,
1624
- y: n.y + n.h,
1625
- ...o
1626
- };
1627
- i = this._loading && G.samePos(e, s) ? !0 : this.moveNode(e, s), (n.locked || this._loading) && i ? G.copyPos(t, e) : !n.locked && i && r.pack && (this._packNodes(), t.y = n.y + n.h, G.copyPos(e, t)), a ||= i;
1628
- } else i = this.moveNode(n, {
1629
- ...n,
1630
- y: t.y + t.h,
1631
- skip: e,
1632
- ...o
1633
- });
1634
- if (!i) return a;
1635
- n = void 0;
1636
- }
1637
- return a;
1638
- }
1639
- collide(e, t = e, n) {
1640
- let r = e._id, i = n?._id;
1641
- return this.nodes.find((e) => e._id !== r && e._id !== i && G.isIntercepted(e, t));
1642
- }
1643
- collideAll(e, t = e, n) {
1644
- let r = e._id, i = n?._id;
1645
- return this.nodes.filter((e) => e._id !== r && e._id !== i && G.isIntercepted(e, t));
1646
- }
1647
- directionCollideCoverage(e, t, n) {
1648
- if (!t.rect || !e._rect) return;
1649
- let r = e._rect, i = { ...t.rect };
1650
- i.y > r.y ? (i.h = i.h + i.y - r.y, i.y = r.y) : i.h = i.h + r.y - i.y, i.x > r.x ? (i.w = i.w + i.x - r.x, i.x = r.x) : i.w = i.w + r.x - i.x;
1651
- let a, o = .5;
1652
- for (let e of n) {
1653
- if (e.locked || !e._rect) continue;
1654
- let t = e._rect, n = Number.MAX_VALUE, s = Number.MAX_VALUE;
1655
- r.y < t.y ? n = (i.y + i.h - t.y) / t.h : r.y + r.h > t.y + t.h && (n = (t.y + t.h - i.y) / t.h), r.x < t.x ? s = (i.x + i.w - t.x) / t.w : r.x + r.w > t.x + t.w && (s = (t.x + t.w - i.x) / t.w);
1656
- let c = Math.min(s, n);
1657
- c > o && (o = c, a = e);
1658
- }
1659
- return t.collide = a, a;
1660
- }
1661
- cacheRects(e, t, n, r, i, a) {
1662
- return this.nodes.forEach((o) => o._rect = {
1663
- y: o.y * t + n,
1664
- x: o.x * e + a,
1665
- w: o.w * e - a - r,
1666
- h: o.h * t - n - i
1667
- }), this;
1668
- }
1669
- swap(e, t) {
1670
- if (!t || t.locked || !e || e.locked) return !1;
1671
- function n() {
1672
- let n = t.x, r = t.y;
1673
- return t.x = e.x, t.y = e.y, e.h == t.h ? e.w == t.w ? (e.x = n, e.y = r) : (e.x = t.x + t.w, e.y = r) : (e.x = n, e.y = t.y + t.h), e._dirty = t._dirty = !0, !0;
1674
- }
1675
- let r;
1676
- if (e.w === t.w && e.h === t.h && (e.x === t.x || e.y === t.y) && (r = G.isTouching(e, t))) return n();
1677
- if (r !== !1) {
1678
- if (e.w === t.w && e.x === t.x && (r ||= G.isTouching(e, t))) {
1679
- if (t.y < e.y) {
1680
- let n = e;
1681
- e = t, t = n;
1682
- }
1683
- return n();
1684
- }
1685
- if (r !== !1) {
1686
- if (e.h === t.h && e.y === t.y && (r ||= G.isTouching(e, t))) {
1687
- if (t.x < e.x) {
1688
- let n = e;
1689
- e = t, t = n;
1690
- }
1691
- return n();
1692
- }
1693
- return !1;
1694
- }
1695
- }
1696
- }
1697
- isAreaEmpty(e, t, n, r) {
1698
- let i = {
1699
- x: e || 0,
1700
- y: t || 0,
1701
- w: n || 1,
1702
- h: r || 1
1703
- };
1704
- return !this.collide(i);
1705
- }
1706
- compact(e = "compact", t = !0) {
1707
- if (this.nodes.length === 0) return this;
1708
- let n = this.batchMode;
1709
- return n || this.batchUpdate(), this._relayout(e, t), n || this.batchUpdate(!1), this;
1710
- }
1711
- _relayout(e, t = !0) {
1712
- if (this.nodes.length === 0) return this;
1713
- t && this.sortNodes();
1714
- let n = this._inColumnResize;
1715
- n || (this._inColumnResize = !0);
1716
- let r = this.nodes;
1717
- this.nodes = r.filter((e) => e.locked);
1718
- let i = /* @__PURE__ */ new Set(), a = 0, o = (e) => {
1719
- for (let t = e.y; t < e.y + e.h; t++) for (let n = e.x; n < e.x + e.w; n++) i.add(t * this.column + n);
1720
- for (; i.has(a);) ++a;
1721
- };
1722
- return this.nodes.forEach(o), r.forEach((t, n, r) => {
1723
- if (t.locked) return;
1724
- t.autoPosition = !0;
1725
- let i = e === "list" ? n ? r[n - 1] : 0 : a;
1726
- this.addNode(t, !1, i), o(t);
1727
- }), n || delete this._inColumnResize, this;
1728
- }
1729
- set mode(e) {
1730
- this._mode !== e && (this._mode = e || "top", this._mode !== "float" && this._packNodes()._notify());
1731
- }
1732
- get mode() {
1733
- return this._mode || "top";
1734
- }
1735
- sortNodes(e = 1) {
1736
- return this.nodes = G.sort(this.nodes, e), this;
1737
- }
1738
- _packNodes() {
1739
- if (this.batchMode) return this;
1740
- if (this.sortNodes(), this.mode === "float") this.nodes.forEach((e) => {
1741
- if (e._updating || e._orig === void 0 || e.y === e._orig.y) return;
1742
- let t = e.y;
1743
- for (; t > e._orig.y;) --t, this.collide(e, {
1744
- x: e.x,
1745
- y: t,
1746
- w: e.w,
1747
- h: e.h
1748
- }) || (e._dirty = !0, e.y = t);
1749
- });
1750
- else if (this.mode === "list" || this.mode === "compact") {
1751
- let e = this.mode === "compact" && this.nodes.some((e) => e._updating) ? "list" : this.mode, t = this.batchMode;
1752
- this.batchMode = !0, this._relayout(e, !1), this.batchMode = t;
1753
- } else this.nodes.forEach((e, t) => {
1754
- if (!e.locked) for (; e.y > 0;) {
1755
- let n = t === 0 ? 0 : e.y - 1;
1756
- if (!(t === 0 || !this.collide(e, {
1757
- x: e.x,
1758
- y: n,
1759
- w: e.w,
1760
- h: e.h
1761
- }))) break;
1762
- e._dirty = e.y !== n, e.y = n;
1763
- }
1764
- });
1765
- return this;
1766
- }
1767
- prepareNode(t, n) {
1768
- t._id = t._id ?? e._idSeq++;
1769
- let r = t.id;
1770
- if (r) {
1771
- let e = 1;
1772
- for (; this.nodes.find((e) => e.id === t.id && e !== t);) t.id = r + "_" + e++;
1773
- }
1774
- (t.x === void 0 || t.y === void 0 || t.x === null || t.y === null) && (t.autoPosition = !0);
1775
- let i = {
1776
- x: 0,
1777
- y: 0,
1778
- w: 1,
1779
- h: 1
1780
- };
1781
- return G.defaults(t, i), t.autoPosition || delete t.autoPosition, t.noResize || delete t.noResize, t.noMove || delete t.noMove, G.sanitizeMinMax(t), typeof t.x == "string" && (t.x = Number(t.x)), typeof t.y == "string" && (t.y = Number(t.y)), typeof t.w == "string" && (t.w = Number(t.w)), typeof t.h == "string" && (t.h = Number(t.h)), isNaN(t.x) && (t.x = i.x, t.autoPosition = !0), isNaN(t.y) && (t.y = i.y, t.autoPosition = !0), isNaN(t.w) && (t.w = i.w), isNaN(t.h) && (t.h = i.h), this.nodeBoundFix(t, n), t;
1782
- }
1783
- nodeBoundFix(e, t) {
1784
- let n = e._orig || G.copyPos({}, e);
1785
- if (e.x !== void 0 && !Number.isFinite(e.x) && (e.x = 0), e.y !== void 0 && !Number.isFinite(e.y) && (e.y = 0), e.w !== void 0 && !Number.isFinite(e.w) && (e.w = 1), e.h !== void 0 && !Number.isFinite(e.h) && (e.h = 1), e.maxW && (e.w = Math.min(e.w || 1, e.maxW)), e.maxH && (e.h = Math.min(e.h || 1, e.maxH)), e.minW && (e.w = Math.max(e.w || 1, e.minW)), e.minH && (e.h = Math.max(e.h || 1, e.minH)), (e.x || 0) + (e.w || 1) > this.column && this.column < this.defaultColumn && !this._inColumnResize && !this.skipCacheUpdate && e._id != null && this.findCacheLayout(e, this.defaultColumn) === -1) {
1786
- let t = { ...e };
1787
- t.autoPosition || t.x === void 0 ? (delete t.x, delete t.y) : t.x = Math.min(this.defaultColumn - 1, t.x), t.w = Math.min(this.defaultColumn, t.w || 1), this.cacheOneLayout(t, this.defaultColumn);
1788
- }
1789
- return e.w > this.column ? e.w = this.column : e.w < 1 && (e.w = 1), this.maxRow && e.h > this.maxRow ? e.h = this.maxRow : e.h < 1 && (e.h = 1), e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), e.x + e.w > this.column && (t ? e.w = this.column - e.x : e.x = this.column - e.w), this.maxRow && e.y + e.h > this.maxRow && (t ? e.h = this.maxRow - e.y : e.y = this.maxRow - e.h), G.samePos(e, n) || (e._dirty = !0), this;
1790
- }
1791
- getDirtyNodes(e) {
1792
- return e ? this.nodes.filter((e) => e._dirty && e._orig && !G.samePos(e, e._orig)) : this.nodes.filter((e) => e._dirty);
1793
- }
1794
- _notify(e) {
1795
- if (this.batchMode || !this.onChange) return this;
1796
- let t = (e || []).concat(this.getDirtyNodes());
1797
- return this.onChange(t), this;
1798
- }
1799
- cleanNodes() {
1800
- return this.batchMode || this.nodes.forEach((e) => {
1801
- delete e._dirty, delete e._lastTried;
1802
- }), this;
1803
- }
1804
- saveInitial() {
1805
- return this.nodes.forEach((e) => {
1806
- e._orig = G.copyPos({}, e), delete e._dirty;
1807
- }), this._hasLocked = this.nodes.some((e) => e.locked), this;
1808
- }
1809
- restoreInitial() {
1810
- return this.nodes.forEach((e) => {
1811
- !e._orig || G.samePos(e, e._orig) || (G.copyPos(e, e._orig), e._dirty = !0);
1812
- }), this._notify(), this;
1813
- }
1814
- findEmptyPosition(e, t = this.nodes, n = this.column, r) {
1815
- let i = typeof r == "number" ? r : r ? r.y * n + (r.x + r.w) : 0, a = !1;
1816
- for (let r = i; !a; ++r) {
1817
- let i = r % n, o = Math.floor(r / n);
1818
- if (i + e.w > n) continue;
1819
- let s = {
1820
- x: i,
1821
- y: o,
1822
- w: e.w,
1823
- h: e.h
1824
- };
1825
- t.find((e) => G.isIntercepted(s, e)) || ((e.x !== i || e.y !== o) && (e._dirty = !0), e.x = i, e.y = o, delete e.autoPosition, a = !0);
1826
- }
1827
- return a;
1828
- }
1829
- addNode(e, t = !1, n) {
1830
- let r = this.nodes.find((t) => t._id === e._id);
1831
- if (r) return r;
1832
- this._inColumnResize ? this.nodeBoundFix(e) : this.prepareNode(e), delete e._temporaryRemoved, delete e._removeDOM;
1833
- let i = !1;
1834
- return e.autoPosition && (n === void 0 && this._realMode === "list" && (n = this.nodes[this.nodes.length - 1]), this.findEmptyPosition(e, this.nodes, this.column, n) && (delete e.autoPosition, i = !0)), !i && (this.mode === "list" || this.mode === "compact") ? (this.nodes.unshift(e), i = !0) : this.nodes.push(e), t && this.addedNodes.push(e), i || this._fixCollisions(e), this.batchMode || this._packNodes()._notify(), e;
1835
- }
1836
- removeNode(e, t = !0, n = !1) {
1837
- return this.nodes.find((t) => t._id === e._id) ? (n && this.removedNodes.push(e), t && (e._removeDOM = !0), this.nodes = this.nodes.filter((t) => t._id !== e._id), e._isAboutToRemove || this._packNodes(), this._notify([e]), this) : this;
1838
- }
1839
- removeAll(e = !0, t = !0) {
1840
- if (delete this._layouts, !this.nodes.length) return this;
1841
- e && this.nodes.forEach((e) => e._removeDOM = !0);
1842
- let n = this.nodes;
1843
- return this.removedNodes = t ? n : [], this.nodes = [], this._notify(n);
1844
- }
1845
- moveNodeCheck(t, n) {
1846
- if (!this.changedPosConstrain(t, n) && !n.forceCollide) return !1;
1847
- if (n.pack === void 0 && !this.batchMode && (n.pack = !0), !this.maxRow) return this.moveNode(t, n);
1848
- let r, i = new e({
1849
- column: this.column,
1850
- mode: this.mode,
1851
- nodes: this.nodes.map((e) => e._id === t._id ? (r = { ...e }, r) : { ...e })
1852
- });
1853
- if (!r) return !1;
1854
- let a = i.moveNode(r, n) && i.getRow() <= Math.max(this.getRow(), this.maxRow);
1855
- if (!a && !n.resizing && n.collide && !t._isExternal) {
1856
- let e = n.collide.el?.gridstackNode;
1857
- if (e && this.swap(t, e)) return this._notify(), !0;
1858
- }
1859
- return a ? (i.nodes.filter((e) => e._dirty).forEach((e) => {
1860
- let t = this.nodes.find((t) => t._id === e._id);
1861
- t && (G.copyPos(t, e), t._dirty = !0);
1862
- }), this._notify(), !0) : !1;
1863
- }
1864
- willItFit(t) {
1865
- if (delete t._willFitPos, !this.maxRow) return !0;
1866
- let n = new e({
1867
- column: this.column,
1868
- mode: this.mode,
1869
- nodes: this.nodes.map((e) => ({ ...e }))
1870
- }), r = { ...t };
1871
- return this.cleanupNode(r), delete r.el, delete r._id, delete r.content, delete r.grid, n.addNode(r), n.getRow() <= this.maxRow ? (t._willFitPos = G.copyPos({}, r), !0) : !1;
1872
- }
1873
- _makeDynamicSubGrid(e, t, n) {
1874
- if (!n || !e.grid?.opts?.subGridDynamic || e.grid._isTemp || !t.rect || !n._rect) return !1;
1875
- let r = G.areaIntercept(t.rect, n._rect), i = G.area(t.rect), a = G.area(n._rect);
1876
- return r / (i < a ? i : a) <= .8 ? !1 : (n.grid.makeSubGrid(n.el, void 0, e), !0);
1877
- }
1878
- changedPosConstrain(e, t) {
1879
- return t.w = t.w || e.w, t.h = t.h || e.h, e.x !== t.x || e.y !== t.y ? !0 : (e.maxW && (t.w = Math.min(t.w, e.maxW)), e.maxH && (t.h = Math.min(t.h, e.maxH)), e.minW && (t.w = Math.max(t.w, e.minW)), e.minH && (t.h = Math.max(t.h, e.minH)), e.w !== t.w || e.h !== t.h);
1880
- }
1881
- moveNode(e, t) {
1882
- if (!e || !t) return !1;
1883
- let n = !1;
1884
- t.pack === void 0 && !this.batchMode && (n = t.pack = !0), typeof t.x != "number" && (t.x = e.x), typeof t.y != "number" && (t.y = e.y), typeof t.w != "number" && (t.w = e.w), typeof t.h != "number" && (t.h = e.h);
1885
- let r = e.w !== t.w || e.h !== t.h, i = G.copyPos({}, e, !0);
1886
- if (G.copyPos(i, t), this.nodeBoundFix(i, r), G.copyPos(t, i), !t.forceCollide && G.samePos(e, t)) return !1;
1887
- let a = G.copyPos({}, e);
1888
- if (this.mode === "list" || this.mode === "compact") {
1889
- let r = !1;
1890
- if (e._moving && !t.nested && e.grid?.opts?.subGridDynamic) {
1891
- let a = this.directionCollideCoverage(e, t, this.collideAll(e, i, t.skip));
1892
- this._makeDynamicSubGrid(e, t, a) && (r = !0, n && delete t.pack);
1893
- }
1894
- if (!r) {
1895
- e._dirty = !0;
1896
- let t = a.y * this.column + a.x;
1897
- G.copyPos(e, i);
1898
- let n = this.nodes.indexOf(e);
1899
- n !== -1 && (this.nodes.splice(n, 1), e.y * this.column + e.x < t ? this.nodes.unshift(e) : this.nodes.push(e));
1900
- }
1901
- } else {
1902
- let r = this.collideAll(e, i, t.skip), a = !0;
1903
- if (r.length) {
1904
- let o = e._moving && !t.nested, s = o ? this.directionCollideCoverage(e, t, r) : r[0];
1905
- o && this._makeDynamicSubGrid(e, t, s) && (s = void 0), s ? a = !this._fixCollisions(e, i, s, t) : (a = !1, n && delete t.pack);
1906
- }
1907
- a && !G.samePos(e, i) && (e._dirty = !0, G.copyPos(e, i));
1908
- }
1909
- return t.pack && this._packNodes()._notify(), !G.samePos(e, a);
1910
- }
1911
- getRow() {
1912
- return this.nodes.reduce((e, t) => Math.max(e, t.y + t.h), 0);
1913
- }
1914
- beginUpdate(e) {
1915
- return e._updating || (e._updating = !0, delete e._skipDown, this.batchMode || this.saveInitial()), this;
1916
- }
1917
- endUpdate() {
1918
- let e = this.nodes.find((e) => e._updating);
1919
- return e && (delete e._updating, delete e._skipDown, this.mode === "compact" && this._packNodes()._notify()), this;
1920
- }
1921
- save(e = !0, t, n) {
1922
- let r = this._layouts?.length || 0, i;
1923
- r && (n ? n !== this.column && (i = this._layouts[n]) : this.column !== r - 1 && (i = this._layouts[r - 1]));
1924
- let a = [];
1925
- return this.sortNodes(), this.nodes.forEach((n) => {
1926
- let r = i?.find((e) => e._id === n._id), o = {
1927
- ...n,
1928
- ...r || {}
1929
- };
1930
- G.removeInternalForSave(o, !e), t && t(n, o), a.push(o);
1931
- }), a;
1932
- }
1933
- layoutsNodesChange(e) {
1934
- return !this._layouts || this._inColumnResize || this._layouts.forEach((t, n) => {
1935
- if (!(!t || n === this.column)) if (n < this.column) this._layouts[n] = void 0;
1936
- else {
1937
- let r = n / this.column;
1938
- e.forEach((e) => {
1939
- if (!e._orig) return;
1940
- let n = t.find((t) => t._id === e._id);
1941
- n && (n.y >= 0 && e.y !== e._orig.y && (n.y += e.y - e._orig.y, n.y < 0 && (n.y = 0)), e.x !== e._orig.x && (n.x = Math.round(e.x * r), n.x < 0 && (n.x = 0)), e.w !== e._orig.w && (n.w = Math.round(e.w * r), n.w < 1 && (n.w = 1)));
1942
- });
1943
- }
1944
- }), this;
1945
- }
1946
- columnChanged(e, t, n) {
1947
- if (!this.nodes.length || !t || e === t) return this;
1948
- n ??= this.mode === "list" || this.mode === "compact" ? this.mode : "moveScale";
1949
- let r = n === "compact" || n === "list" ? n : void 0;
1950
- r && this.sortNodes(1), t < e && this.cacheLayout(this.nodes, e), this.batchUpdate();
1951
- let i = [], a = r ? this.nodes : G.sort(this.nodes, -1);
1952
- if (t > e && this._layouts) {
1953
- let n = this._layouts[t] || [], o = this._layouts.length - 1;
1954
- !n.length && e !== o && this._layouts[o]?.length && (e = o, this._layouts[o].forEach((e) => {
1955
- let t = a.find((t) => t._id === e._id);
1956
- t && (!r && !e.autoPosition && (t.x = e.x ?? t.x, t.y = e.y ?? t.y), t.w = e.w ?? t.w, (e.x == null || e.y === void 0) && (t.autoPosition = !0));
1957
- })), n.forEach((e) => {
1958
- let t = a.findIndex((t) => t._id === e._id);
1959
- if (t !== -1) {
1960
- let n = a[t];
1961
- if (r) {
1962
- n.w = e.w;
1963
- return;
1964
- }
1965
- (e.autoPosition || isNaN(e.x) || isNaN(e.y)) && this.findEmptyPosition(e, i), e.autoPosition || (n.x = e.x ?? n.x, n.y = e.y ?? n.y, n.w = e.w ?? n.w, i.push(n)), a.splice(t, 1);
1966
- }
1967
- });
1968
- }
1969
- if (r) this.compact(r, !1);
1970
- else {
1971
- if (a.length) if (typeof n == "function") n(t, e, i, a);
1972
- else {
1973
- let o = r || n === "none" ? 1 : t / e, s = n === "move" || n === "moveScale", c = n === "scale" || n === "moveScale";
1974
- a.forEach((n) => {
1975
- n.x = t === 1 ? 0 : s ? Math.round(n.x * o) : Math.min(n.x, t - 1), n.w = t === 1 || e === 1 ? 1 : c ? Math.round(n.w * o) || 1 : Math.min(n.w, t), i.push(n);
1976
- }), a = [];
1977
- }
1978
- i = G.sort(i, -1), this._inColumnResize = !0, this.nodes = [], i.forEach((e) => {
1979
- this.addNode(e, !1), delete e._orig;
1980
- });
1981
- }
1982
- return this.nodes.forEach((e) => delete e._orig), this.batchUpdate(!1, !r), delete this._inColumnResize, this;
1983
- }
1984
- cacheLayout(t, n, r = !1) {
1985
- let i = [];
1986
- return t.forEach((t, n) => {
1987
- t._id === void 0 && (t._id = (t.id ? this.nodes.find((e) => e.id === t.id) : void 0)?._id ?? e._idSeq++), i[n] = {
1988
- x: t.x,
1989
- y: t.y,
1990
- w: t.w,
1991
- _id: t._id
1992
- };
1993
- }), this._layouts = r ? [] : this._layouts || [], this._layouts[n] = i, this;
1994
- }
1995
- cacheOneLayout(t, n) {
1996
- t._id = t._id ?? e._idSeq++;
1997
- let r = {
1998
- x: t.x,
1999
- y: t.y,
2000
- w: t.w,
2001
- _id: t._id
2002
- };
2003
- (t.autoPosition || t.x === void 0) && (delete r.x, delete r.y, t.autoPosition && (r.autoPosition = !0)), this._layouts = this._layouts || [], this._layouts[n] = this._layouts[n] || [];
2004
- let i = this.findCacheLayout(t, n);
2005
- return i === -1 ? this._layouts[n].push(r) : this._layouts[n][i] = r, this;
2006
- }
2007
- findCacheLayout(e, t) {
2008
- return this._layouts?.[t]?.findIndex((t) => t._id === e._id) ?? -1;
2009
- }
2010
- removeNodeFromLayoutCache(e) {
2011
- if (this._layouts) for (let t = 0; t < this._layouts.length; t++) {
2012
- let n = this.findCacheLayout(e, t);
2013
- n !== -1 && this._layouts[t].splice(n, 1);
2014
- }
2015
- }
2016
- cleanupNode(e) {
2017
- let t = e;
2018
- for (let e in t) e[0] === "_" && e !== "_id" && delete t[e];
2019
- return this;
2020
- }
2021
- };
2022
- yn._idSeq = 0;
2023
- //#endregion
2024
- //#region node_modules/gridstack/dist/types.js
2025
- var K = {
2026
- alwaysShowResizeHandle: "mobile",
2027
- animate: !0,
2028
- auto: !0,
2029
- cellHeight: "auto",
2030
- cellHeightThrottle: 100,
2031
- cellHeightUnit: "px",
2032
- column: 12,
2033
- draggable: {
2034
- handle: ".grid-stack-item-content",
2035
- appendTo: "body",
2036
- scroll: !0
2037
- },
2038
- handle: ".grid-stack-item-content",
2039
- itemClass: "grid-stack-item",
2040
- margin: 10,
2041
- marginUnit: "px",
2042
- maxRow: 0,
2043
- minRow: 0,
2044
- placeholderClass: "grid-stack-placeholder",
2045
- placeholderText: "",
2046
- removableOptions: {
2047
- accept: "grid-stack-item",
2048
- decline: "grid-stack-non-removable"
2049
- },
2050
- resizable: { handles: "se" },
2051
- rtl: "auto"
2052
- }, q = class {}, J = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 && window.matchMedia("(any-pointer: coarse)").matches || navigator.msMaxTouchPoints > 0), bn = 300, xn = 10, Y = class {};
2053
- function Sn(e) {
2054
- e.preventDefault();
2055
- }
2056
- function Cn() {
2057
- document.addEventListener("contextmenu", Sn, !0), document.addEventListener("selectstart", Sn, !0);
2058
- }
2059
- function wn() {
2060
- document.removeEventListener("contextmenu", Sn, !0), document.removeEventListener("selectstart", Sn, !0);
2061
- }
2062
- function Tn(e, t, n) {
2063
- e.removeEventListener("touchmove", t), e.removeEventListener("touchend", n), e.removeEventListener("touchcancel", n), En();
2064
- }
2065
- function En() {
2066
- Y.touchDelayTimer && (window.clearTimeout(Y.touchDelayTimer), delete Y.touchDelayTimer), wn();
2067
- }
2068
- function Dn(e, t) {
2069
- e.touches.length > 1 || (e.cancelable && e.preventDefault(), G.simulateMouseEvent(e.changedTouches[0], t));
2070
- }
2071
- function On(e, t) {
2072
- e.cancelable && e.preventDefault(), G.simulateMouseEvent(e, t);
2073
- }
2074
- function kn(e) {
2075
- if (Y.touchHandled) return;
2076
- let t = e.currentTarget, n = e.touches[0].clientX, r = e.touches[0].clientY, i = () => Tn(t, a, i), a = (e) => {
2077
- let t = e.touches[0];
2078
- Math.abs(t.clientX - n) + Math.abs(t.clientY - r) > xn && i();
2079
- };
2080
- t.addEventListener("touchmove", a, { passive: !0 }), t.addEventListener("touchend", i, { passive: !0 }), t.addEventListener("touchcancel", i, { passive: !0 }), Y.touchDelayTimer = window.setTimeout(() => {
2081
- Tn(t, a, i), Y.touchHandled = !0, Y.wasDelayed = !0, Cn(), Dn(e, "mousedown"), delete Y.wasDelayed;
2082
- }, bn);
2083
- }
2084
- function An(e) {
2085
- Y.touchHandled && Dn(e, "mousemove");
2086
- }
2087
- function X(e) {
2088
- if (!Y.touchHandled) return;
2089
- wn(), Y.pointerLeaveTimeout && (window.clearTimeout(Y.pointerLeaveTimeout), delete Y.pointerLeaveTimeout);
2090
- let t = !!q.dragElement;
2091
- Dn(e, "mouseup"), !t && e.type !== "touchcancel" && Dn(e, "click"), Y.touchHandled = !1;
2092
- }
2093
- function jn(e) {
2094
- e.pointerType !== "mouse" && e.target.releasePointerCapture(e.pointerId);
2095
- }
2096
- function Mn(e) {
2097
- q.dragElement && e.pointerType !== "mouse" && On(e, "mouseenter");
2098
- }
2099
- function Nn(e) {
2100
- q.dragElement && e.pointerType !== "mouse" && (Y.pointerLeaveTimeout = window.setTimeout(() => {
2101
- delete Y.pointerLeaveTimeout, On(e, "mouseleave");
2102
- }, 10));
2103
- }
2104
- //#endregion
2105
- //#region node_modules/gridstack/dist/dd-resizable-handle.js
2106
- var Pn = class e {
2107
- constructor(e, t, n) {
2108
- this.host = e, this.dir = t, this.option = n, this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this._init();
2109
- }
2110
- _init() {
2111
- if (this.option.element) try {
2112
- this.el = this.option.element instanceof HTMLElement ? this.option.element : this.host.querySelector(this.option.element);
2113
- } catch (e) {
2114
- this.option.element = void 0, console.error("Query for resizeable handle failed, falling back", e);
2115
- }
2116
- return this.el || (this.el = document.createElement("div"), this.host.appendChild(this.el)), this.el.classList.add("ui-resizable-handle"), this.el.classList.add(`${e.prefix}${this.dir}`), this.el.addEventListener("mousedown", this._mouseDown), J && (this.el.addEventListener("touchstart", kn), this.el.addEventListener("pointerdown", jn)), this;
2117
- }
2118
- destroy() {
2119
- return this.mouseDownEvent && this._mouseUp(this.mouseDownEvent), En(), this.el.removeEventListener("mousedown", this._mouseDown), J && (this.el.removeEventListener("touchstart", kn), this.el.removeEventListener("pointerdown", jn)), this.option.element || this.host.removeChild(this.el), this;
2120
- }
2121
- _mouseDown(e) {
2122
- this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, {
2123
- capture: !0,
2124
- passive: !0
2125
- }), document.addEventListener("mouseup", this._mouseUp, !0), J && (this.el.addEventListener("touchmove", An), this.el.addEventListener("touchend", X), this.el.addEventListener("touchcancel", X)), Y.wasDelayed && this.el.classList.add("ui-resizable-armed"), e.stopPropagation(), e.preventDefault();
2126
- }
2127
- _mouseMove(e) {
2128
- let t = this.mouseDownEvent;
2129
- this.moving ? this._triggerEvent("move", e) : Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 2 && (this.moving = !0, this.el.classList.remove("ui-resizable-armed"), this._triggerEvent("start", this.mouseDownEvent), this._triggerEvent("move", e), document.addEventListener("keydown", this._keyEvent)), e.stopPropagation();
2130
- }
2131
- _mouseUp(e) {
2132
- this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), this.el.classList.remove("ui-resizable-armed"), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), J && (this.el.removeEventListener("touchmove", An), this.el.removeEventListener("touchend", X), this.el.removeEventListener("touchcancel", X)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
2133
- }
2134
- _keyEvent(e) {
2135
- e.key === "Escape" && (this.host.gridstackNode?.grid?.engine.restoreInitial(), this._mouseUp(this.mouseDownEvent));
2136
- }
2137
- _triggerEvent(e, t) {
2138
- let n = this.option;
2139
- return n[e] && n[e](t), this;
2140
- }
2141
- };
2142
- Pn.prefix = "ui-resizable-";
2143
- //#endregion
2144
- //#region node_modules/gridstack/dist/dd-base-impl.js
2145
- var Fn = class {
2146
- constructor() {
2147
- this._eventRegister = {};
2148
- }
2149
- get disabled() {
2150
- return this._disabled;
2151
- }
2152
- on(e, t) {
2153
- this._eventRegister[e] = t;
2154
- }
2155
- off(e) {
2156
- delete this._eventRegister[e];
2157
- }
2158
- enable() {
2159
- this._disabled = !1;
2160
- }
2161
- disable() {
2162
- this._disabled = !0;
2163
- }
2164
- destroy() {
2165
- this._eventRegister = {};
2166
- }
2167
- triggerEvent(e, t) {
2168
- if (!this.disabled && this._eventRegister[e]) return this._eventRegister[e](t);
2169
- }
2170
- }, In = class e extends Fn {
2171
- constructor(e, t = {}) {
2172
- super(), this.el = e, this.option = t, this.rectScale = {
2173
- x: 1,
2174
- y: 1
2175
- }, this._ui = () => {
2176
- let e = this.el.parentElement.getBoundingClientRect(), t = {
2177
- width: this.originalRect.width,
2178
- height: this.originalRect.height + this.scrolled,
2179
- left: this.originalRect.left,
2180
- right: this.originalRect.right,
2181
- top: this.originalRect.top - this.scrolled
2182
- }, n = this.temporalRect || t;
2183
- return {
2184
- position: {
2185
- left: this.option.rtl ? (e.right - n.right) * this.rectScale.x : (n.left - e.left) * this.rectScale.x,
2186
- top: (n.top - e.top) * this.rectScale.y
2187
- },
2188
- size: {
2189
- width: n.width * this.rectScale.x,
2190
- height: n.height * this.rectScale.y
2191
- }
2192
- };
2193
- }, this._mouseOver = this._mouseOver.bind(this), this._mouseOut = this._mouseOut.bind(this), this.enable(), this._setupAutoHide(!!this.option.autoHide), this._setupHandlers();
2194
- }
2195
- on(e, t) {
2196
- super.on(e, t);
2197
- }
2198
- off(e) {
2199
- super.off(e);
2200
- }
2201
- enable() {
2202
- super.enable(), this.el.classList.remove("ui-resizable-disabled"), this._setupAutoHide(!!this.option.autoHide);
2203
- }
2204
- disable() {
2205
- super.disable(), this.el.classList.add("ui-resizable-disabled"), this._setupAutoHide(!1);
2206
- }
2207
- destroy() {
2208
- q.resizeElement === this && delete q.resizeElement, this._removeHandlers(), this._setupAutoHide(!1), delete this.el, super.destroy();
2209
- }
2210
- updateOption(e) {
2211
- let t = e.handles && e.handles !== this.option.handles, n = e.autoHide && e.autoHide !== this.option.autoHide;
2212
- return Object.assign(this.option, e), t && (this._removeHandlers(), this._setupHandlers()), n && this._setupAutoHide(!!this.option.autoHide), this;
2213
- }
2214
- _setupAutoHide(e) {
2215
- return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), q.overResizeElement === this && delete q.overResizeElement), this;
2216
- }
2217
- _mouseOver(e) {
2218
- q.overResizeElement || q.dragElement || (q.overResizeElement = this, q.resizeElement || this.el.classList.remove("ui-resizable-autohide"));
2219
- }
2220
- _mouseOut(e) {
2221
- q.overResizeElement === this && (delete q.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
2222
- }
2223
- _setupHandlers() {
2224
- return this.handlers = (this.option.handles ?? "se").split(",").map((e) => e.trim()).map((e) => new Pn(this.el, e, {
2225
- element: this.option.element,
2226
- start: (e) => this._resizeStart(e),
2227
- stop: (e) => this._resizeStop(e),
2228
- move: (t) => this._resizing(t, e)
2229
- })), this;
2230
- }
2231
- _resizeStart(e) {
2232
- this.sizeToContent = G.shouldSizeToContent(this.el.gridstackNode, !0), this.originalRect = this.el.getBoundingClientRect(), this.scrollEl = G.getScrollElement(this.el), this.scrollY = this.scrollEl.scrollTop, this.scrolled = 0, this.startEvent = e, G.pauseIframePointerEvents(!0), this._setupHelper(), this._applyChange();
2233
- let t = G.initEvent(e, {
2234
- type: "resizestart",
2235
- target: this.el
2236
- });
2237
- return q.resizeElement = this, this.option.start && this.option.start(t, this._ui()), this.el.classList.add("ui-resizable-resizing"), this.triggerEvent("resizestart", t), this;
2238
- }
2239
- _resizing(e, t) {
2240
- this.scrolled = this.scrollEl.scrollTop - this.scrollY, this.temporalRect = this._getChange(e, t), this._applyChange();
2241
- let n = G.initEvent(e, {
2242
- type: "resize",
2243
- target: this.el
2244
- });
2245
- return n.resizeDir = t, n.hasMovedX = this.option.rtl ? t.includes("e") : t.includes("w"), n.hasMovedY = t.includes("n"), this.option.resize && this.option.resize(n, this._ui()), this.triggerEvent("resize", n), this;
2246
- }
2247
- _resizeStop(e) {
2248
- let t = G.initEvent(e, {
2249
- type: "resizestop",
2250
- target: this.el
2251
- });
2252
- return G.pauseIframePointerEvents(!1), this._cleanHelper(), this.option.stop && this.option.stop(t), this.el.classList.remove("ui-resizable-resizing"), q.resizeElement === this && delete q.resizeElement, !q.resizeElement && q.overResizeElement && q.overResizeElement.el.classList.remove("ui-resizable-autohide"), this.triggerEvent("resizestop", t), delete this.startEvent, delete this.originalRect, delete this.temporalRect, delete this.scrollY, delete this.scrolled, this;
2253
- }
2254
- _setupHelper() {
2255
- this.elOriginStyleVal = e._originStyleProp.map((e) => this.el.style[e]);
2256
- let t = this.el.parentElement;
2257
- this.parentOriginStylePosition = t.style.position;
2258
- let n = G.getValuesFromTransformedElement(t);
2259
- return this.rectScale = {
2260
- x: n.xScale,
2261
- y: n.yScale
2262
- }, getComputedStyle(t).position.match(/static/) && (t.style.position = "relative"), this.el.style.position = "absolute", this.el.style.opacity = "0.8", this;
2263
- }
2264
- _cleanHelper() {
2265
- return e._originStyleProp.forEach((e, t) => {
2266
- this.el.style[e] = this.elOriginStyleVal[t] || null;
2267
- }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
2268
- }
2269
- _getChange(e, t) {
2270
- let n = this.startEvent, r = {
2271
- width: this.originalRect.width,
2272
- height: this.originalRect.height + this.scrolled,
2273
- left: this.originalRect.left,
2274
- right: this.originalRect.right,
2275
- top: this.originalRect.top - this.scrolled
2276
- }, i = e.clientX - n.clientX, a = this.sizeToContent ? 0 : e.clientY - n.clientY, o = !1, s = !1, c = this.option.rtl;
2277
- !c && t.indexOf("e") > -1 ? r.width += i : c && t.indexOf("w") > -1 ? r.width -= i : !c && t.indexOf("w") > -1 ? (r.width -= i, r.left += i, o = !0) : c && t.indexOf("e") > -1 && (r.width += i, r.right += i, o = !0), t.indexOf("s") > -1 ? r.height += a : t.indexOf("n") > -1 && (r.height -= a, r.top += a, s = !0);
2278
- let l = this._constrainSize(r.width, r.height, o, s);
2279
- return Math.round(r.width) !== Math.round(l.width) && (!c && t.indexOf("w") > -1 ? r.left += r.width - l.width : c && t.indexOf("e") > -1 && (r.right -= r.width - l.width), r.width = l.width), Math.round(r.height) !== Math.round(l.height) && (t.indexOf("n") > -1 && (r.top += r.height - l.height), r.height = l.height), r;
2280
- }
2281
- _constrainSize(e, t, n, r) {
2282
- let i = this.option, a = (n ? i.maxWidthMoveLeft : i.maxWidth) || 2 ** 53 - 1, o = (i.minWidth ?? 0) / this.rectScale.x || e, s = (r ? i.maxHeightMoveUp : i.maxHeight) || 2 ** 53 - 1, c = (i.minHeight ?? 0) / this.rectScale.y || t;
2283
- return {
2284
- width: Math.min(a, Math.max(o, e)),
2285
- height: Math.min(s, Math.max(c, t))
2286
- };
2287
- }
2288
- _applyChange() {
2289
- let e = {
2290
- left: 0,
2291
- right: 0,
2292
- top: 0,
2293
- width: 0,
2294
- height: 0
2295
- };
2296
- if (this.el.style.position === "absolute") {
2297
- let { left: t, right: n, top: r } = this.el.parentElement.getBoundingClientRect();
2298
- e = {
2299
- left: t,
2300
- right: n,
2301
- top: r,
2302
- width: 0,
2303
- height: 0
2304
- };
2305
- }
2306
- if (!this.temporalRect) return this;
2307
- let t = e;
2308
- return Object.entries(this.temporalRect).forEach(([n, r]) => {
2309
- if (this.option.rtl ? n === "left" : n === "right") return;
2310
- let i = n === "width" || n === "left" || n === "right" ? this.rectScale.x : n === "height" || n === "top" ? this.rectScale.y : 1, a;
2311
- a = n === "right" ? (e.right - r) * this.rectScale.x + "px" : (r - t[n]) * i + "px", this.el.style[n] = a;
2312
- }), this;
2313
- }
2314
- _removeHandlers() {
2315
- return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
2316
- }
2317
- };
2318
- In._originStyleProp = [
2319
- "width",
2320
- "height",
2321
- "position",
2322
- "left",
2323
- "right",
2324
- "top",
2325
- "opacity",
2326
- "zIndex"
2327
- ];
2328
- //#endregion
2329
- //#region node_modules/gridstack/dist/dd-draggable.js
2330
- var Ln = "input,textarea,button,select,option,[contenteditable=\"true\"],.ui-resizable-handle", Rn = class e extends Fn {
2331
- constructor(e, t = {}) {
2332
- super(), this.el = e, this.option = t, this.dragTransform = {
2333
- xScale: 1,
2334
- yScale: 1,
2335
- xOffset: 0,
2336
- yOffset: 0
2337
- }, this._autoScrollTick = () => {
2338
- let e = this.helper, t = this._autoScrollContainer;
2339
- if (!e || !t) {
2340
- this._stopScrolling();
2341
- return;
2342
- }
2343
- let n = this._getClipping(e, t);
2344
- if (n === 0) {
2345
- this._stopScrolling();
2346
- return;
2347
- }
2348
- if (!this._autoScrollMaxSpeed) {
2349
- let e = window.innerHeight || document.documentElement.clientHeight;
2350
- this._autoScrollMaxSpeed = Math.max(e / 150, 4);
2351
- }
2352
- let r = Math.min(Math.abs(n) * .5, this._autoScrollMaxSpeed), i = n > 0 ? r : -r, a = t.scrollTop;
2353
- if (t.scrollTop += i, t.scrollTop === a) {
2354
- this._stopScrolling();
2355
- return;
2356
- }
2357
- this.dragging && this.lastDrag && (this._dragFollow(this.lastDrag), this._callDrag(this.lastDrag)), this._autoScrollAnimId = requestAnimationFrame(this._autoScrollTick);
2358
- };
2359
- let n = t?.handle?.substring(1), r = e.gridstackNode;
2360
- this.dragEls = !n || e.classList.contains(n) ? [e] : r?.subGrid ? [e.querySelector(t.handle) || e] : this.getAllHandles(), this.dragEls.length === 0 && (this.dragEls = [e]), this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this.enable();
2361
- }
2362
- getAllHandles() {
2363
- let e = this.option.handle;
2364
- if (!e) return [];
2365
- let t = [], n = (r) => {
2366
- t.push(...Array.from(r.querySelectorAll(e))), r.querySelectorAll("*").forEach((e) => {
2367
- let t = e.shadowRoot;
2368
- t && n(t);
2369
- });
2370
- };
2371
- return n(this.el), t.filter((e) => {
2372
- if (!(e instanceof HTMLElement)) return !1;
2373
- let t = e.closest(".grid-stack-item"), n = e.getRootNode();
2374
- for (; !t && n instanceof ShadowRoot;) t = n.host.closest(".grid-stack-item"), n = n.host.getRootNode();
2375
- return t === this.el || !t;
2376
- });
2377
- }
2378
- on(e, t) {
2379
- super.on(e, t);
2380
- }
2381
- off(e) {
2382
- super.off(e);
2383
- }
2384
- enable() {
2385
- this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
2386
- e.addEventListener("mousedown", this._mouseDown), J && (e.addEventListener("touchstart", kn), e.addEventListener("pointerdown", jn));
2387
- }), this.el.classList.remove("ui-draggable-disabled"));
2388
- }
2389
- disable(e = !1) {
2390
- this.disabled !== !0 && (super.disable(), En(), this.dragEls.forEach((e) => {
2391
- e.removeEventListener("mousedown", this._mouseDown), J && (e.removeEventListener("touchstart", kn), e.removeEventListener("pointerdown", jn));
2392
- }), e || this.el.classList.add("ui-draggable-disabled"));
2393
- }
2394
- destroy() {
2395
- this.dragTimeout && window.clearTimeout(this.dragTimeout), delete this.dragTimeout, this.mouseDownEvent && this._mouseUp(this.mouseDownEvent), this.disable(!0), delete this.el, delete this.option, super.destroy();
2396
- }
2397
- updateOption(e) {
2398
- return Object.assign(this.option, e), this;
2399
- }
2400
- refreshHandles() {
2401
- let e = this.disabled;
2402
- e || this.disable(!0);
2403
- let t = this.option?.handle?.substring(1), n = this.el.gridstackNode;
2404
- this.dragEls = !t || this.el.classList.contains(t) ? [this.el] : n?.subGrid ? [this.el.querySelector(this.option.handle) || this.el] : this.getAllHandles(), this.dragEls.length === 0 && (this.dragEls = [this.el]), e || this.enable();
2405
- }
2406
- _mouseDown(e) {
2407
- if (e.isTrusted && (Y.touchHandled &&= !1, q.mouseHandled && e.timeStamp !== q.mouseHandledTimeStamp && delete q.mouseHandled), q.mouseHandled || e.button !== 0) return !0;
2408
- let t = e.target.closest(Ln);
2409
- return t && !this.dragEls.some((n) => n === e.target || n === t) || this.option.cancel && e.target.closest(this.option.cancel) ? !0 : (this.mouseDownEvent = e, delete this.dragging, delete q.dragElement, delete q.dropElement, delete this._autoScrollMaxSpeed, delete this._autoScrollContainer, document.addEventListener("mousemove", this._mouseMove, {
2410
- capture: !0,
2411
- passive: !0
2412
- }), document.addEventListener("mouseup", this._mouseUp, !0), J && e.currentTarget && (e.currentTarget.addEventListener("touchmove", An), e.currentTarget.addEventListener("touchend", X), e.currentTarget.addEventListener("touchcancel", X)), Y.wasDelayed && this.el.classList.add("ui-draggable-armed"), e.preventDefault(), document.activeElement && document.activeElement.blur(), q.mouseHandled = !0, q.mouseHandledTimeStamp = e.timeStamp, !0);
2413
- }
2414
- _callDrag(e) {
2415
- if (!this.dragging) return;
2416
- let t = G.initEvent(e, {
2417
- target: this.el,
2418
- type: "drag"
2419
- });
2420
- this.option.drag && this.option.drag(t, this.ui()), this.triggerEvent("drag", t);
2421
- }
2422
- _mouseMove(e) {
2423
- let t = this.mouseDownEvent;
2424
- if (this.lastDrag = e, this.dragging) if (this._dragFollow(e), q.pauseDrag) {
2425
- let t = Number.isInteger(q.pauseDrag) ? q.pauseDrag : 100;
2426
- this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), t);
2427
- } else this._callDrag(e);
2428
- else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
2429
- this.dragging = !0, G.pauseIframePointerEvents(!0), this.el.classList.remove("ui-draggable-armed"), q.dragElement = this;
2430
- let t = this.el.gridstackNode?.grid;
2431
- t ? q.dropElement = t.el.ddElement?.ddDroppable : delete q.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = G.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
2432
- let n = G.initEvent(e, {
2433
- target: this.el,
2434
- type: "dragstart"
2435
- });
2436
- this.option.start && this.option.start(n, this.ui()), this.triggerEvent("dragstart", n), document.addEventListener("keydown", this._keyEvent);
2437
- }
2438
- return !0;
2439
- }
2440
- _mouseUp(e) {
2441
- if (this._stopScrolling(), this.el.classList.remove("ui-draggable-armed"), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), J && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", An, !0), e.currentTarget.removeEventListener("touchend", X, !0), e.currentTarget.removeEventListener("touchcancel", X, !0)), this.dragging) {
2442
- delete this.dragging, G.pauseIframePointerEvents(!1), delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent), q.dropElement?.el === this.el.parentElement && delete q.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper && this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
2443
- let t = G.initEvent(e, {
2444
- target: this.el,
2445
- type: "dragstop"
2446
- });
2447
- this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), q.dropElement && q.dropElement.drop(e);
2448
- }
2449
- delete this.helper, delete this.mouseDownEvent, delete q.dragElement, delete q.dropElement, delete q.mouseHandled, delete q.mouseHandledTimeStamp, Y.touchHandled = !1, e.preventDefault();
2450
- }
2451
- _keyEvent(e) {
2452
- let t = this.el.gridstackNode, n = t?.grid || q.dropElement?.el?.gridstack;
2453
- if (e.key === "Escape") t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), n?.cancelDrag(), this._mouseUp(this.mouseDownEvent);
2454
- else if (t && n && (e.key === "r" || e.key === "R")) {
2455
- if (!G.canBeRotated(t)) return;
2456
- t._origRotate = t._origRotate || { ...t._orig }, delete t._moving, n.setAnimation(!1).rotate(t.el, {
2457
- top: -this.dragOffset.offsetTop,
2458
- left: -this.dragOffset.offsetX
2459
- }).setAnimation(), t._moving = !0, this.dragOffset = this._getDragOffset(this.lastDrag, t.el, this.helperContainment), this.helper.style.width = this.dragOffset.width + "px", this.helper.style.height = this.dragOffset.height + "px", G.swap(t._orig, "w", "h"), delete t._rect, this._mouseMove(this.lastDrag);
2460
- }
2461
- }
2462
- _createHelper() {
2463
- let t = this.el;
2464
- return typeof this.option.helper == "function" ? t = this.option.helper(this.el) : this.option.helper === "clone" && (t = G.cloneNode(this.el)), t.parentElement || G.appendTo(t, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo ?? "body"), this.dragElementOriginStyle = e.originStyleProp.map((e) => this.el.style[e]), t;
2465
- }
2466
- _setupHelperStyle(e) {
2467
- this.helper.classList.add("ui-draggable-dragging"), this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");
2468
- let t = this.helper.style;
2469
- return t.pointerEvents = "none", t.width = this.dragOffset.width + "px", t.height = this.dragOffset.height + "px", t.willChange = "left, right, top", t.position = "fixed", this._dragFollow(e), t.transition = "none", setTimeout(() => {
2470
- this.helper && (t.transition = null);
2471
- }, 0), this;
2472
- }
2473
- _removeHelperStyle() {
2474
- if (this.helper.classList.remove("ui-draggable-dragging"), (this.el._gridstackNodeOrig || this.el.gridstackNode)?.grid?.el.classList.remove("grid-stack-dragging"), !this.helper?.gridstackNode?._isAboutToRemove && this.dragElementOriginStyle) {
2475
- let t = this.helper, n = this.dragElementOriginStyle, r = e.originStyleProp.indexOf("transition"), i = n[r] || null;
2476
- t.style.transition = n[r] = "none";
2477
- let a = t.style;
2478
- e.originStyleProp.forEach((e, t) => a[e] = n[t] || null), setTimeout(() => t.style.transition = i || "", 50);
2479
- }
2480
- return delete this.dragElementOriginStyle, this;
2481
- }
2482
- _dragFollow(e) {
2483
- let t = this.helper.style, n = this.dragOffset;
2484
- this.option.rtl ? (t.right = (window.innerWidth - e.clientX + n.offsetX) * this.dragTransform.xScale + "px", t.left &&= "") : (t.left = (e.clientX + n.offsetX) * this.dragTransform.xScale + "px", t.right &&= ""), t.top = (e.clientY + n.offsetTop) * this.dragTransform.yScale + "px";
2485
- }
2486
- _setupHelperContainmentStyle() {
2487
- return this.helperContainment = this.helper.parentElement, this.helper.style.position !== "fixed" && (this.parentOriginStylePosition = this.helperContainment.style.position, getComputedStyle(this.helperContainment).position.match(/static/) && (this.helperContainment.style.position = "relative")), this;
2488
- }
2489
- _getDragOffset(e, t, n) {
2490
- let r = 0, i = 0;
2491
- n && (r = this.dragTransform.xOffset, i = this.dragTransform.yOffset);
2492
- let a = t.getBoundingClientRect(), o = this.option.rtl ? a.right : a.left, s = this.option.rtl ? e.clientX - a.right + r : -e.clientX + a.left - r;
2493
- return {
2494
- x: o,
2495
- top: a.top,
2496
- offsetX: s,
2497
- offsetTop: -e.clientY + a.top - i,
2498
- width: a.width * this.dragTransform.xScale,
2499
- height: a.height * this.dragTransform.yScale
2500
- };
2501
- }
2502
- updateScrollPosition(e) {
2503
- this._autoScrollContainer = G.getScrollElement(e), this._getClipping(this.helper, this._autoScrollContainer) === 0 ? this._stopScrolling() : this._autoScrollAnimId ||= requestAnimationFrame(this._autoScrollTick);
2504
- }
2505
- _getClipping(e, t) {
2506
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight || document.documentElement.clientHeight;
2507
- if (n.bottom < r.top || n.top > r.bottom) return 0;
2508
- let a = n.bottom - Math.min(r.bottom, i), o = n.top - Math.max(r.top, 0);
2509
- return o < 0 ? o : a > 0 ? a : 0;
2510
- }
2511
- _stopScrolling() {
2512
- this._autoScrollAnimId && (cancelAnimationFrame(this._autoScrollAnimId), delete this._autoScrollAnimId);
2513
- }
2514
- ui() {
2515
- let e = this.el.parentElement.getBoundingClientRect(), t = this.helper.getBoundingClientRect(), n = this.option.rtl ? (e.right - t.right) * this.dragTransform.xScale : (t.left - e.left) * this.dragTransform.xScale;
2516
- return { position: {
2517
- top: (t.top - e.top) * this.dragTransform.yScale,
2518
- left: n
2519
- } };
2520
- }
2521
- };
2522
- Rn.originStyleProp = [
2523
- "width",
2524
- "height",
2525
- "transform",
2526
- "transform-origin",
2527
- "transition",
2528
- "pointerEvents",
2529
- "position",
2530
- "left",
2531
- "right",
2532
- "top",
2533
- "minWidth",
2534
- "willChange"
2535
- ];
2536
- //#endregion
2537
- //#region node_modules/gridstack/dist/dd-droppable.js
2538
- var zn = class extends Fn {
2539
- constructor(e, t = {}) {
2540
- super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.eventEl = this.el.closest(".grid-stack-item") || this.el, this.enable(), this._setupAccept();
2541
- }
2542
- on(e, t) {
2543
- super.on(e, t);
2544
- }
2545
- off(e) {
2546
- super.off(e);
2547
- }
2548
- enable() {
2549
- this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.eventEl.addEventListener("mouseenter", this._mouseEnter), this.eventEl.addEventListener("mouseleave", this._mouseLeave), J && (this.eventEl.addEventListener("pointerenter", Mn), this.eventEl.addEventListener("pointerleave", Nn)));
2550
- }
2551
- disable(e = !1) {
2552
- this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.eventEl.removeEventListener("mouseenter", this._mouseEnter), this.eventEl.removeEventListener("mouseleave", this._mouseLeave), J && (this.eventEl.removeEventListener("pointerenter", Mn), this.eventEl.removeEventListener("pointerleave", Nn)));
2553
- }
2554
- destroy() {
2555
- this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
2556
- }
2557
- updateOption(e) {
2558
- return Object.assign(this.option, e), this._setupAccept(), this;
2559
- }
2560
- _mouseEnter(e) {
2561
- if (!q.dragElement || Y.touchHandled && e.isTrusted || !this._canDrop(q.dragElement.el)) return;
2562
- e.preventDefault(), e.stopPropagation(), q.dragElement._stopScrolling(), q.dropElement && q.dropElement !== this && q.dropElement._mouseLeave(e, !0), q.dropElement = this;
2563
- let t = G.initEvent(e, {
2564
- target: this.el,
2565
- type: "dropover"
2566
- });
2567
- this.option.over && this.option.over(t, this._ui(q.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
2568
- }
2569
- _mouseLeave(e, t = !1) {
2570
- if (!q.dragElement || q.dropElement !== this) return;
2571
- e.preventDefault(), e.stopPropagation(), t && q.dragElement._stopScrolling();
2572
- let n = G.initEvent(e, {
2573
- target: this.el,
2574
- type: "dropout"
2575
- });
2576
- if (this.option.out && this.option.out(n, this._ui(q.dragElement)), this.triggerEvent("dropout", n), q.dropElement === this && (delete q.dropElement, !t)) {
2577
- let t, n = this.el.parentElement;
2578
- for (; !t && n;) t = n.ddElement?.ddDroppable, n = n.parentElement;
2579
- t && t._mouseEnter(e);
2580
- }
2581
- }
2582
- drop(e) {
2583
- e.preventDefault();
2584
- let t = G.initEvent(e, {
2585
- target: this.el,
2586
- type: "drop"
2587
- });
2588
- this.option.drop && this.option.drop(t, this._ui(q.dragElement)), this.triggerEvent("drop", t);
2589
- }
2590
- _canDrop(e) {
2591
- return e && (!this.accept || this.accept(e));
2592
- }
2593
- _setupAccept() {
2594
- return this.option.accept && (typeof this.option.accept == "string" ? this.accept = (e) => e.classList.contains(this.option.accept) || e.matches(this.option.accept) : this.accept = this.option.accept), this;
2595
- }
2596
- _ui(e) {
2597
- return {
2598
- draggable: e.el,
2599
- ...e.ui()
2600
- };
2601
- }
2602
- }, Bn = class e {
2603
- static init(t) {
2604
- return t.ddElement ||= new e(t), t.ddElement;
2605
- }
2606
- constructor(e) {
2607
- this.el = e;
2608
- }
2609
- on(e, t) {
2610
- return this.ddDraggable && [
2611
- "drag",
2612
- "dragstart",
2613
- "dragstop"
2614
- ].indexOf(e) > -1 ? this.ddDraggable.on(e, t) : this.ddDroppable && [
2615
- "drop",
2616
- "dropover",
2617
- "dropout"
2618
- ].indexOf(e) > -1 ? this.ddDroppable.on(e, t) : this.ddResizable && [
2619
- "resizestart",
2620
- "resize",
2621
- "resizestop"
2622
- ].indexOf(e) > -1 && this.ddResizable.on(e, t), this;
2623
- }
2624
- off(e) {
2625
- return this.ddDraggable && [
2626
- "drag",
2627
- "dragstart",
2628
- "dragstop"
2629
- ].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && [
2630
- "drop",
2631
- "dropover",
2632
- "dropout"
2633
- ].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && [
2634
- "resizestart",
2635
- "resize",
2636
- "resizestop"
2637
- ].indexOf(e) > -1 && this.ddResizable.off(e), this;
2638
- }
2639
- setupDraggable(e) {
2640
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new Rn(this.el, e), this;
2641
- }
2642
- cleanDraggable() {
2643
- return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
2644
- }
2645
- setupResizable(e) {
2646
- return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new In(this.el, e), this;
2647
- }
2648
- cleanResizable() {
2649
- return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
2650
- }
2651
- setupDroppable(e) {
2652
- return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new zn(this.el, e), this;
2653
- }
2654
- cleanDroppable() {
2655
- return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
2656
- }
2657
- }, Z = new class {
2658
- resizable(e, t, n, r) {
2659
- return this._getDDElements(e, typeof t == "string" ? t : void 0).forEach((e) => {
2660
- if (t === "disable" || t === "enable") e.ddResizable && e.ddResizable[t]();
2661
- else if (t === "destroy") e.ddResizable && e.cleanResizable();
2662
- else if (t === "option") e.setupResizable({ [n]: r });
2663
- else {
2664
- let n = e.el.gridstackNode.grid, r = e.el.getAttribute("gs-resize-handles") || n.opts.resizable.handles || "e,s,se";
2665
- r === "all" && (r = "n,e,s,w,se,sw,ne,nw");
2666
- let i = !n.opts.alwaysShowResizeHandle, a = t;
2667
- e.setupResizable({
2668
- ...n.opts.resizable,
2669
- handles: r,
2670
- autoHide: i,
2671
- start: a.start,
2672
- stop: a.stop,
2673
- resize: a.resize,
2674
- rtl: a.rtl
2675
- });
2676
- }
2677
- }), this;
2678
- }
2679
- draggable(e, t, n, r) {
2680
- return this._getDDElements(e, typeof t == "string" ? t : void 0).forEach((e) => {
2681
- if (t === "disable" || t === "enable") e.ddDraggable && e.ddDraggable[t]();
2682
- else if (t === "destroy") e.ddDraggable && e.cleanDraggable();
2683
- else if (t === "option") e.setupDraggable({ [n]: r });
2684
- else {
2685
- let n = e.el.gridstackNode.grid, r = t;
2686
- e.setupDraggable({
2687
- ...n.opts.draggable,
2688
- start: r.start,
2689
- stop: r.stop,
2690
- drag: r.drag,
2691
- rtl: r.rtl
2692
- });
2693
- }
2694
- }), this;
2695
- }
2696
- dragIn(e, t) {
2697
- return this._getDDElements(e).forEach((e) => e.setupDraggable(t)), this;
2698
- }
2699
- droppable(e, t, n, r) {
2700
- if (typeof t != "string") {
2701
- let e = t;
2702
- typeof e.accept == "function" && !e._accept && (e._accept = e.accept, e.accept = (t) => e._accept(t));
2703
- }
2704
- let i = typeof t == "string" ? t : void 0;
2705
- return this._getDDElements(e, i).forEach((e) => {
2706
- t === "disable" || t === "enable" ? e.ddDroppable && e.ddDroppable[t]() : t === "destroy" ? e.ddDroppable && e.cleanDroppable() : t === "option" ? e.setupDroppable({ [n]: r }) : e.setupDroppable(t);
2707
- }), this;
2708
- }
2709
- isDroppable(e) {
2710
- return !!(e?.ddElement?.ddDroppable && !e.ddElement.ddDroppable.disabled);
2711
- }
2712
- isDraggable(e) {
2713
- return !!(e?.ddElement?.ddDraggable && !e.ddElement.ddDraggable.disabled);
2714
- }
2715
- isResizable(e) {
2716
- return !!(e?.ddElement?.ddResizable && !e.ddElement.ddResizable.disabled);
2717
- }
2718
- on(e, t, n) {
2719
- return this._getDDElements(e).forEach((e) => e.on(t, (e) => {
2720
- n(e, q.dragElement ? q.dragElement.el : e.target, q.dragElement ? q.dragElement.helper : void 0);
2721
- })), this;
2722
- }
2723
- off(e, t) {
2724
- return this._getDDElements(e).forEach((e) => e.off(t)), this;
2725
- }
2726
- _getDDElements(e, t) {
2727
- let n = e.gridstack || t !== "destroy" && t !== "disable", r = G.getElements(e);
2728
- return r.length ? r.map((e) => e.ddElement || (n ? Bn.init(e) : null)).filter((e) => !!e) : [];
2729
- }
2730
- }(), Q = class e {
2731
- static init(t = {}, n = ".grid-stack") {
2732
- if (typeof document > "u") return null;
2733
- let r = e.getGridElement(n);
2734
- return r ? (r.gridstack ||= new e(r, G.cloneDeep(t)), r.gridstack) : (console.error(typeof n == "string" ? "GridStack.initAll() no grid was found with selector \"" + n + "\" - element missing or wrong selector ?\nNote: \".grid-stack\" is required for proper CSS styling and drag/drop, and is the default selector." : "GridStack.init() no grid element was passed."), null);
2735
- }
2736
- static initAll(t = {}, n = ".grid-stack") {
2737
- let r = [];
2738
- return typeof document > "u" ? r : (e.getGridElements(n).forEach((n) => {
2739
- n.gridstack ||= new e(n, G.cloneDeep(t)), r.push(n.gridstack);
2740
- }), r.length === 0 && console.error("GridStack.initAll() no grid was found with selector \"" + n + "\" - element missing or wrong selector ?\nNote: \".grid-stack\" is required for proper CSS styling and drag/drop, and is the default selector."), r);
2741
- }
2742
- static addGrid(t, n = {}) {
2743
- if (!t) return null;
2744
- let r = t;
2745
- if (r.gridstack) {
2746
- let e = r.gridstack;
2747
- return n && (e.opts = {
2748
- ...e.opts,
2749
- ...n
2750
- }), n.children !== void 0 && e.load(n.children), e;
2751
- }
2752
- return (!t.classList.contains("grid-stack") || e.addRemoveCB) && (r = e.addRemoveCB ? e.addRemoveCB(t, n, !0, !0) : G.createDiv(["grid-stack", n.class], t)), e.init(n, r);
2753
- }
2754
- static registerEngine(t) {
2755
- e.engineClass = t;
2756
- }
2757
- static _migrateFloat(e) {
2758
- let t = e.float;
2759
- t !== void 0 && (e.mode === void 0 && (e.mode = t ? "float" : "top"), delete e.float);
2760
- }
2761
- get placeholder() {
2762
- if (!this._placeholder) {
2763
- this._placeholder = G.createDiv([
2764
- this.opts.placeholderClass,
2765
- K.itemClass,
2766
- this.opts.itemClass
2767
- ]);
2768
- let e = G.createDiv(["placeholder-content"], this._placeholder);
2769
- this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
2770
- }
2771
- return this._placeholder;
2772
- }
2773
- constructor(t, n = {}) {
2774
- this.el = t, this.opts = n, this.animationDelay = 310, this._gsEventHandler = {}, this._extraDragRow = 0, this.dragTransform = {
2775
- xScale: 1,
2776
- yScale: 1,
2777
- xOffset: 0,
2778
- yOffset: 0
2779
- }, t.gridstack = this, this.opts = n ||= {}, e._migrateFloat(n), t.classList.contains("grid-stack") || this.el.classList.add("grid-stack"), n.row && (n.minRow = n.maxRow = n.row, delete n.row);
2780
- let r = G.toNumber(t.getAttribute("gs-row"));
2781
- n.column === "auto" && delete n.column, n.alwaysShowResizeHandle !== void 0 && (n._alwaysShowResizeHandle = n.alwaysShowResizeHandle);
2782
- let i = n.columnOpts;
2783
- if (i) {
2784
- let e = i.breakpoints;
2785
- !i.columnWidth && !e?.length ? delete n.columnOpts : (e && e.length > 1 && (e.sort((e, t) => (t.w || 0) - (e.w || 0)), delete i.columnWidth), i.columnMax ??= 12);
2786
- }
2787
- let a = {
2788
- ...G.cloneDeep(K),
2789
- column: G.toNumber(t.getAttribute("gs-column")) || K.column,
2790
- minRow: r || G.toNumber(t.getAttribute("gs-min-row")) || K.minRow,
2791
- maxRow: r || G.toNumber(t.getAttribute("gs-max-row")) || K.maxRow,
2792
- staticGrid: G.toBool(t.getAttribute("gs-static")) || K.staticGrid,
2793
- sizeToContent: G.toBool(t.getAttribute("gs-size-to-content")) || void 0,
2794
- draggable: { handle: (n.handleClass ? "." + n.handleClass : n.handle ? n.handle : "") || K.draggable.handle },
2795
- removableOptions: {
2796
- accept: n.itemClass || K.removableOptions.accept,
2797
- decline: K.removableOptions.decline
2798
- }
2799
- };
2800
- t.getAttribute("gs-animate") && (a.animate = G.toBool(t.getAttribute("gs-animate"))), n = G.defaults(n, a), this._initMargin(), this.checkDynamicColumn(), this._updateColumnVar(n), n.rtl === "auto" && (n.rtl = t.style.direction === "rtl"), n.rtl && this.el.classList.add("grid-stack-rtl");
2801
- let o = this.el.closest("." + K.itemClass)?.gridstackNode;
2802
- if (o && (o.subGrid = this, this.parentGridNode = o, this.el.classList.add("grid-stack-nested"), o.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = n.cellHeight === "auto", this._isFillCellHeight = n.cellHeight === "fill", this._isAutoCellHeight || this._isFillCellHeight || n.cellHeight === "initial") this.cellHeight(void 0);
2803
- else {
2804
- typeof n.cellHeight == "number" && n.cellHeightUnit && n.cellHeightUnit !== K.cellHeightUnit && (n.cellHeight += n.cellHeightUnit, delete n.cellHeightUnit);
2805
- let e = n.cellHeight;
2806
- delete n.cellHeight, this.cellHeight(e);
2807
- }
2808
- n.alwaysShowResizeHandle === "mobile" && (n.alwaysShowResizeHandle = J), this._setStaticClass();
2809
- let s = n.engineClass || e.engineClass || yn;
2810
- if (this.engine = new s({
2811
- column: this.getColumn(),
2812
- mode: n.mode,
2813
- maxRow: n.maxRow,
2814
- onChange: (e) => {
2815
- e.forEach((e) => {
2816
- let t = e.el;
2817
- t && (e._removeDOM ? (t && t.remove(), delete e._removeDOM) : this._writePosAttr(t, e));
2818
- }), this._updateContainerHeight();
2819
- }
2820
- }), n.auto && (this.batchUpdate(), this.engine._loading = !0, this.getGridItems().forEach((e) => this._prepareElement(e)), delete this.engine._loading, this.batchUpdate(!1)), n.children) {
2821
- let e = n.children;
2822
- delete n.children, e.length && this.load(e);
2823
- }
2824
- this.setAnimation(), n.subGridDynamic && !q.pauseDrag && (q.pauseDrag = !0), n.draggable?.pause !== void 0 && (q.pauseDrag = n.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
2825
- }
2826
- _updateColumnVar(e = this.opts) {
2827
- this.el.classList.add("gs-" + e.column), typeof e.column == "number" && (this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`), this.el.style.setProperty("--gs-columns", String(e.column)));
2828
- }
2829
- addWidget(t) {
2830
- if (!t) return;
2831
- if (typeof t == "string") {
2832
- console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");
2833
- return;
2834
- }
2835
- if (t.ELEMENT_NODE) return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(t);
2836
- let n, r = t;
2837
- if (r.grid = this, n = r.el ? r.el : e.addRemoveCB ? e.addRemoveCB(this.el, t, !0, !1) : this.createWidgetDivs(r), !n) return;
2838
- if (r = n.gridstackNode, r && n.parentElement === this.el && this.engine.nodes.find((e) => e._id === r._id)) return n;
2839
- let i = this._readAttr(n);
2840
- return G.defaults(t, i), this.engine.prepareNode(t), this.el.appendChild(n), this.makeWidget(n, t), n;
2841
- }
2842
- createWidgetDivs(t) {
2843
- let n = G.createDiv(["grid-stack-item", this.opts.itemClass]), r = G.createDiv(["grid-stack-item-content"], n);
2844
- return G.lazyLoad(t) ? t.visibleObservable || (t.visibleObservable = new IntersectionObserver(([n]) => {
2845
- n.isIntersecting && (t.visibleObservable?.disconnect(), delete t.visibleObservable, e.renderCB(r, t), t.grid?.prepareDragDrop(t.el));
2846
- }), window.setTimeout(() => t.visibleObservable?.observe(n))) : e.renderCB(r, t), n;
2847
- }
2848
- makeSubGrid(t, n, r, i = !0) {
2849
- let a = t.gridstackNode;
2850
- if (a ||= this.makeWidget(t).gridstackNode, a.subGrid?.el) return a.subGrid;
2851
- let o, s = this;
2852
- for (; s && !o;) o = s.opts?.subGridOpts, s = s.parentGridNode?.grid;
2853
- n = G.cloneDeep({
2854
- ...this.opts,
2855
- id: void 0,
2856
- children: void 0,
2857
- column: "auto",
2858
- columnOpts: void 0,
2859
- layout: "list",
2860
- subGridOpts: void 0,
2861
- ...o || {},
2862
- ...n || a.subGridOpts || {}
2863
- }), a.subGridOpts = n;
2864
- let c = !1;
2865
- n.column === "auto" && (c = !0, n.column = Math.max(a.w || 1, r?.w || 1), delete n.columnOpts);
2866
- let l = a.el.querySelector(".grid-stack-item-content"), u, d;
2867
- if (i && (this._removeDD(a.el), d = {
2868
- ...a,
2869
- x: 0,
2870
- y: 0
2871
- }, G.removeInternalForSave(d), delete d.subGridOpts, a.content && (d.content = a.content, delete a.content), e.addRemoveCB ? u = e.addRemoveCB(this.el, d, !0, !1) || void 0 : (u = G.createDiv(["grid-stack-item"]), u.appendChild(l), l = G.createDiv(["grid-stack-item-content"], a.el)), this.prepareDragDrop(a.el)), r) {
2872
- let e = c ? n.column : a.w, t = a.h + r.h, i = a.el.style;
2873
- i.transition = "none", this.update(a.el, {
2874
- w: e,
2875
- h: t
2876
- }), setTimeout(() => i.transition = "");
2877
- }
2878
- let f = a.subGrid = e.addGrid(l, n) || void 0;
2879
- return r?._moving && (f._isTemp = !0), c && (f._autoColumn = !0), i && f.makeWidget(u, d), r && (r._moving ? window.setTimeout(() => G.simulateMouseEvent(r._event, "mouseenter", f.el), 0) : f.makeWidget(a.el, a)), this.resizeToContentCheck(!1, a), f;
2880
- }
2881
- removeAsSubGrid(e) {
2882
- let t = this.parentGridNode?.grid;
2883
- if (t && (t.batchUpdate(), t.removeWidget(this.parentGridNode.el, !0, !0), this.engine.nodes.forEach((e) => {
2884
- e.x = (e.x ?? 0) + (this.parentGridNode.x ?? 0), e.y = (e.y ?? 0) + (this.parentGridNode.y ?? 0), this._removeDD(e.el), e.el.remove(), delete e.el.gridstackNode, t.makeWidget(e.el, e);
2885
- }), t.batchUpdate(!1), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, e)) {
2886
- let n = e.el?.gridstackNode;
2887
- n && n !== e && (n._temporaryRemoved = !0), window.setTimeout(() => {
2888
- let n = q.dragElement?.lastDrag || e._event;
2889
- n && G.simulateMouseEvent(n, "mouseenter", t.el);
2890
- }, 0);
2891
- }
2892
- }
2893
- save(t = !0, n = !1, r = e.saveCB, i) {
2894
- let a = this.engine.save(t, r, i);
2895
- if (a.forEach((e) => {
2896
- if (t && e.el && !e.subGrid && !r) e.content = e.el.querySelector(".grid-stack-item-content")?.innerHTML, e.content || delete e.content;
2897
- else if (!t && !r && delete e.content, e.subGrid?.el) {
2898
- let i = e.w || e.subGrid.getColumn(), a = e.subGrid.save(t, n, r, i);
2899
- e.subGridOpts = n ? a : { children: a }, delete e.subGrid;
2900
- }
2901
- delete e.el;
2902
- }), n) {
2903
- let e = G.cloneDeep(this.opts);
2904
- e.marginBottom === e.marginTop && e.marginRight === e.marginLeft && e.marginTop === e.marginRight && (e.margin = e.marginTop, delete e.marginTop, delete e.marginRight, delete e.marginBottom, delete e.marginLeft), e.rtl === (this.el.style.direction === "rtl") && (e.rtl = "auto"), this._isAutoCellHeight && (e.cellHeight = "auto"), this._autoColumn && (e.column = "auto");
2905
- let t = e._alwaysShowResizeHandle;
2906
- return delete e._alwaysShowResizeHandle, t === void 0 ? delete e.alwaysShowResizeHandle : e.alwaysShowResizeHandle = t, G.removeInternalAndSame(e, K), e.children = a, e;
2907
- }
2908
- return a;
2909
- }
2910
- load(t, n = e.addRemoveCB || !0) {
2911
- t.forEach((e) => {
2912
- e.w = e.w || e.minW || 1, e.h = e.h || e.minH || 1;
2913
- }), t = G.sort(t), this.engine.skipCacheUpdate = this._ignoreLayoutsNodeChange = !0;
2914
- let r = 0;
2915
- t.forEach((e) => {
2916
- r = Math.max(r, (e.x || 0) + e.w);
2917
- }), r > this.engine.defaultColumn && (this.engine.defaultColumn = r);
2918
- let i = this.getColumn();
2919
- r > i && (this.engine.nodes.length === 0 && this.responseLayout ? (this.engine.nodes = t, this.engine.columnChanged(r, i, this.responseLayout), t = this.engine.nodes, this.engine.nodes = [], delete this.responseLayout) : this.engine.cacheLayout(t, r, !0));
2920
- let a = e.addRemoveCB;
2921
- typeof n == "function" && (e.addRemoveCB = n);
2922
- let o = [];
2923
- this.batchUpdate();
2924
- let s = !this.engine.nodes.length, c = s && this.opts.animate;
2925
- c && this.setAnimation(!1), !s && n && [...this.engine.nodes].forEach((n) => {
2926
- n.id && (G.find(t, n.id) || (e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), o.push(n), this.removeWidget(n.el, !0, !1)));
2927
- }), this.engine._loading = !0;
2928
- let l = [];
2929
- return this.engine.nodes = this.engine.nodes.filter((e) => e.id && G.find(t, e.id) ? (l.push(e), !1) : !0), t.forEach((e) => {
2930
- let t = e.id ? G.find(l, e.id) : void 0;
2931
- if (t) {
2932
- if (G.shouldSizeToContent(t) && (e.h = t.h), this.engine.nodeBoundFix(e), (e.autoPosition || e.x === void 0 || e.y === void 0) && (e.w = e.w || t.w, e.h = e.h || t.h, this.engine.findEmptyPosition(e)), this.engine.nodes.push(t), G.samePos(t, e) && this.engine.nodes.length > 1 && (this.moveNode(t, {
2933
- ...e,
2934
- forceCollide: !0
2935
- }), G.copyPos(e, t)), this.update(t.el, e), e.subGridOpts?.children) {
2936
- let n = t.el.querySelector(".grid-stack");
2937
- n && n.gridstack && n.gridstack.load(e.subGridOpts.children);
2938
- }
2939
- } else n && this.addWidget(e);
2940
- }), delete this.engine._loading, this.engine.removedNodes = o, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, a ? e.addRemoveCB = a : delete e.addRemoveCB, c && this.setAnimation(!0, !0), this;
2941
- }
2942
- batchUpdate(e = !0) {
2943
- return this.engine.batchUpdate(e), e || (this._updateContainerHeight(), this._triggerRemoveEvent(), this._triggerAddEvent(), this._triggerChangeEvent()), this;
2944
- }
2945
- getCellHeight(e = !1) {
2946
- if (this.opts.cellHeight && this.opts.cellHeight !== "auto" && (!e || !this.opts.cellHeightUnit || this.opts.cellHeightUnit === "px")) return this.opts.cellHeight;
2947
- if (this.opts.cellHeightUnit === "rem") return this.opts.cellHeight * parseFloat(getComputedStyle(document.documentElement).fontSize);
2948
- if (this.opts.cellHeightUnit === "em") return this.opts.cellHeight * parseFloat(getComputedStyle(this.el).fontSize);
2949
- if (this.opts.cellHeightUnit === "cm") return this.opts.cellHeight * (96 / 2.54);
2950
- if (this.opts.cellHeightUnit === "mm") return this.opts.cellHeight * (96 / 2.54) / 10;
2951
- let t = this.el.querySelector("." + this.opts.itemClass);
2952
- if (t) {
2953
- let e = G.toNumber(t.getAttribute("gs-h")) || 1;
2954
- return Math.round(t.offsetHeight / e);
2955
- }
2956
- let n = parseInt(this.el.getAttribute("gs-current-row") || "0");
2957
- return n ? Math.round(this.el.getBoundingClientRect().height / n) : this.opts.cellHeight;
2958
- }
2959
- cellHeight(e) {
2960
- if (e !== void 0 && (this._isAutoCellHeight !== (e === "auto") || this._isFillCellHeight !== (e === "fill")) && (this._isAutoCellHeight = e === "auto", this._isFillCellHeight = e === "fill", this._updateResizeEvent()), (e === "initial" || e === "auto" || e === "fill") && (e = void 0), e === void 0 && this._isFillCellHeight) {
2961
- let t = this.getRow() || this.opts.row || this.opts.maxRow || 1, n = this.el.clientHeight;
2962
- n > 0 && (e = Math.max(1, n / t));
2963
- }
2964
- if (e === void 0) {
2965
- let t = -this.opts.marginRight - this.opts.marginLeft + this.opts.marginTop + this.opts.marginBottom;
2966
- e = this.cellWidth() + t;
2967
- }
2968
- let t = G.parseHeight(e);
2969
- return this.opts.cellHeightUnit === t.unit && this.opts.cellHeight === t.h ? this : (this.opts.cellHeightUnit = t.unit, this.opts.cellHeight = t.h, this.el.style.setProperty("--gs-cell-height", `${this.opts.cellHeight}${this.opts.cellHeightUnit}`), this._updateContainerHeight(), this.resizeToContentCheck(), this);
2970
- }
2971
- cellWidth() {
2972
- return this._widthOrContainer() / this.getColumn();
2973
- }
2974
- _widthOrContainer(e = !1) {
2975
- return e && this.opts.columnOpts?.breakpointForWindow ? window.innerWidth : this.el.clientWidth || this.el.parentElement.clientWidth || window.innerWidth;
2976
- }
2977
- checkDynamicColumn() {
2978
- let e = this.opts.columnOpts;
2979
- if (!e || !e.columnWidth && !e.breakpoints?.length) return !1;
2980
- let t = this.getColumn(), n = t, r = this._widthOrContainer(!0);
2981
- if (e.columnWidth) n = Math.min(Math.round(r / e.columnWidth) || 1, e.columnMax);
2982
- else {
2983
- n = e.columnMax;
2984
- let i = 0;
2985
- for (; i < e.breakpoints.length && r <= e.breakpoints[i].w;) n = e.breakpoints[i++].c || t;
2986
- }
2987
- if (n !== t) {
2988
- let t = e.breakpoints?.find((e) => e.c === n);
2989
- return this.column(n, t?.layout || e.layout), !0;
2990
- }
2991
- return !1;
2992
- }
2993
- compact(e = "compact", t = !0) {
2994
- return this.engine.compact(e, t), this._triggerChangeEvent(), this;
2995
- }
2996
- column(e, t) {
2997
- if (!e || e < 1 || this.opts.column === e) return this;
2998
- t ??= this.opts.mode === "list" || this.opts.mode === "compact" ? this.opts.mode : "moveScale";
2999
- let n = this.getColumn();
3000
- return this.opts.column = e, this.engine ? (this.engine.column = e, this.el.classList.remove("gs-" + n), this._updateColumnVar(), this.engine.columnChanged(n, e, t), (this._isAutoCellHeight || this._isFillCellHeight) && this.cellHeight(), this.resizeToContentCheck(!0), this._ignoreLayoutsNodeChange = !0, this._triggerChangeEvent(), delete this._ignoreLayoutsNodeChange, this) : (this.responseLayout = t, this);
3001
- }
3002
- getColumn() {
3003
- return this.opts.column;
3004
- }
3005
- getGridItems() {
3006
- return Array.from(this.el.children).filter((e) => e.matches("." + this.opts.itemClass) && !e.matches("." + this.opts.placeholderClass));
3007
- }
3008
- isIgnoreChangeCB() {
3009
- return !!this._ignoreLayoutsNodeChange;
3010
- }
3011
- destroy(e = !0) {
3012
- return this.el ? (this.offAll(), this._updateResizeEvent(!0), this.setStatic(!0, !1), this.setAnimation(!1), e ? this.el.parentNode.removeChild(this.el) : (this.removeAll(e), this.el.removeAttribute("gs-current-row")), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, delete this.opts, delete this._placeholder?.gridstackNode, delete this._placeholder, delete this.engine, delete this.el.gridstack, delete this.el, this) : this;
3013
- }
3014
- mode(e) {
3015
- return this.opts.mode !== e && (this.opts.mode = this.engine.mode = e, this._triggerChangeEvent()), this;
3016
- }
3017
- getMode() {
3018
- return this.engine.mode;
3019
- }
3020
- getCellFromPixel(e, t = !1) {
3021
- let n = this.el.getBoundingClientRect(), r;
3022
- r = t ? {
3023
- top: n.top + document.documentElement.scrollTop,
3024
- left: n.left
3025
- } : {
3026
- top: this.el.offsetTop,
3027
- left: this.el.offsetLeft
3028
- };
3029
- let i = e.left - r.left, a = e.top - r.top, o = n.width / this.getColumn(), s = n.height / parseInt(this.el.getAttribute("gs-current-row") || "0");
3030
- return {
3031
- x: Math.floor(i / o),
3032
- y: Math.floor(a / s)
3033
- };
3034
- }
3035
- getRow() {
3036
- return Math.max(this.engine?.getRow() || 0, this.opts.minRow || 0);
3037
- }
3038
- isAreaEmpty(e, t, n, r) {
3039
- return this.engine.isAreaEmpty(e, t, n, r);
3040
- }
3041
- makeWidget(t, n) {
3042
- let r = e.getElement(t);
3043
- if (!r || r.gridstackNode) return r;
3044
- r.parentElement || this.el.appendChild(r), this._prepareElement(r, !0, n);
3045
- let i = r.gridstackNode;
3046
- this._updateContainerHeight(), i.subGridOpts && this.makeSubGrid(r, i.subGridOpts, void 0, !1);
3047
- let a = !1;
3048
- return this.opts.column === 1 && !this._ignoreLayoutsNodeChange && (a = this._ignoreLayoutsNodeChange = !0), this._triggerAddEvent(), this._triggerChangeEvent(), a && delete this._ignoreLayoutsNodeChange, r;
3049
- }
3050
- on(e, t) {
3051
- return e.indexOf(" ") === -1 ? (e === "change" || e === "added" || e === "removed" || e === "enable" || e === "disable" ? (e === "enable" || e === "disable" ? this._gsEventHandler[e] = (e) => t(e) : this._gsEventHandler[e] = ((e) => {
3052
- e.detail && t(e, e.detail);
3053
- }), this.el.addEventListener(e, this._gsEventHandler[e])) : e === "drag" || e === "dragstart" || e === "dragstop" || e === "resizestart" || e === "resize" || e === "resizestop" || e === "dropped" || e === "resizecontent" ? this._gsEventHandler[e] = t : console.error("GridStack.on(" + e + ") event not supported"), this) : (e.split(" ").forEach((e) => this.on(e, t)), this);
3054
- }
3055
- off(e) {
3056
- return e.indexOf(" ") === -1 ? ((e === "change" || e === "added" || e === "removed" || e === "enable" || e === "disable") && this._gsEventHandler[e] && this.el.removeEventListener(e, this._gsEventHandler[e]), delete this._gsEventHandler[e], this) : (e.split(" ").forEach((e) => this.off(e)), this);
3057
- }
3058
- offAll() {
3059
- return Object.keys(this._gsEventHandler).forEach((e) => this.off(e)), this;
3060
- }
3061
- removeWidget(t, n = !0, r = !0) {
3062
- return t ? (e.getElements(t).forEach((t) => {
3063
- if (t.parentElement && t.parentElement !== this.el) return;
3064
- let i = t.gridstackNode;
3065
- i ||= this.engine.nodes.find((e) => t === e.el), i && (n && e.addRemoveCB && e.addRemoveCB(this.el, i, !1, !1), delete t.gridstackNode, this._removeDD(t), this.engine.removeNode(i, n, r), n && t.parentElement && t.remove());
3066
- }), r && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
3067
- }
3068
- removeAll(t = !0, n = !0) {
3069
- return this.engine.nodes.forEach((n) => {
3070
- t && e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), delete n.el.gridstackNode, this.opts.staticGrid || this._removeDD(n.el);
3071
- }), this.engine.removeAll(t, n), n && this._triggerRemoveEvent(), this;
3072
- }
3073
- setAnimation(e = this.opts.animate, t) {
3074
- return t ? setTimeout(() => {
3075
- this.opts && this.setAnimation(e);
3076
- }) : e ? this.el.classList.add("grid-stack-animate") : this.el.classList.remove("grid-stack-animate"), this.opts.animate = e, this;
3077
- }
3078
- hasAnimationCSS() {
3079
- return this.el.classList.contains("grid-stack-animate");
3080
- }
3081
- setStatic(e, t = !0, n = !0) {
3082
- return !!this.opts.staticGrid === e ? this : (e ? this.opts.staticGrid = !0 : delete this.opts.staticGrid, this._setupRemoveDrop(), this._setupAcceptWidget(), this.engine.nodes.forEach((r) => {
3083
- this.prepareDragDrop(r.el), r.subGrid && n && r.subGrid.setStatic(e, t, n);
3084
- }), t && this._setStaticClass(), this);
3085
- }
3086
- updateOptions(t) {
3087
- let n = this.opts;
3088
- if (t === n) return this;
3089
- if (e._migrateFloat(t), t.acceptWidgets !== void 0 && (n.acceptWidgets = t.acceptWidgets, this._setupAcceptWidget()), t.animate !== void 0 && this.setAnimation(t.animate), t.cellHeight && this.cellHeight(t.cellHeight), t.class !== void 0 && t.class !== n.class && (n.class && this.el.classList.remove(n.class), t.class && this.el.classList.add(t.class)), t.columnOpts) {
3090
- let e = !!this.opts.columnOpts;
3091
- this.opts.columnOpts = t.columnOpts, e !== !!this.opts.columnOpts && this._updateResizeEvent(), this.checkDynamicColumn();
3092
- } else t.columnOpts === null && this.opts.columnOpts ? (delete this.opts.columnOpts, this._updateResizeEvent()) : typeof t.column == "number" && this.column(t.column);
3093
- return t.margin !== void 0 && this.margin(t.margin), t.staticGrid !== void 0 && this.setStatic(t.staticGrid), t.disableDrag !== void 0 && !t.staticGrid && this.enableMove(!t.disableDrag), t.disableResize !== void 0 && !t.staticGrid && this.enableResize(!t.disableResize), t.mode !== void 0 && this.mode(t.mode), t.row === void 0 ? (t.minRow !== void 0 && (n.minRow = t.minRow, this._updateContainerHeight()), t.maxRow !== void 0 && (n.maxRow = this.engine.maxRow = t.maxRow, this.engine.getRow() > t.maxRow && this.compact())) : (n.minRow = n.maxRow = this.engine.maxRow = n.row = t.row, this._updateContainerHeight(), this.engine.getRow() > t.row && this.compact()), t.lazyLoad !== void 0 && (n.lazyLoad = t.lazyLoad), t.children?.length && this.load(t.children), this;
3094
- }
3095
- update(t, n) {
3096
- return e.getElements(t).forEach((t) => {
3097
- let r = t?.gridstackNode;
3098
- if (!r) return;
3099
- let i = {
3100
- ...G.copyPos({}, r),
3101
- ...G.cloneDeep(n)
3102
- };
3103
- this.engine.nodeBoundFix(i), delete i.autoPosition;
3104
- let a = [
3105
- "x",
3106
- "y",
3107
- "w",
3108
- "h"
3109
- ], o, s = i, c = r;
3110
- if (a.some((e) => s[e] !== void 0 && s[e] !== c[e])) {
3111
- o = {};
3112
- let e = o;
3113
- a.forEach((t) => {
3114
- e[t] = s[t] === void 0 ? c[t] : s[t], delete s[t];
3115
- });
3116
- }
3117
- if (!o && (i.minW || i.minH || i.maxW || i.maxH) && (o = {}), i.content !== void 0) {
3118
- let n = t.querySelector(".grid-stack-item-content");
3119
- n && n.textContent !== i.content && (r.content = i.content, e.renderCB(n, i), r.subGrid?.el && (n.appendChild(r.subGrid.el), r.subGrid._updateContainerHeight())), delete i.content;
3120
- }
3121
- let l = !1, u = !1;
3122
- for (let e in s) e[0] !== "_" && c[e] !== s[e] && (c[e] = s[e], l = !0, u ||= !this.opts.staticGrid && (e === "noResize" || e === "noMove" || e === "locked"));
3123
- if (G.sanitizeMinMax(r), o) {
3124
- let e = o.w !== void 0 && o.w !== r.w;
3125
- this.moveNode(r, o), e && r.subGrid ? r.subGrid.onResize(this.hasAnimationCSS() ? r.w : void 0) : this.resizeToContentCheck(e, r), r._updating || delete r._orig;
3126
- }
3127
- (o || l) && this._writeAttr(t, r), u && this.prepareDragDrop(r.el), e.updateCB && e.updateCB(r);
3128
- }), this;
3129
- }
3130
- moveNode(e, t) {
3131
- let n = e._updating;
3132
- n || this.engine.cleanNodes().beginUpdate(e), this.engine.moveNodeCheck(e, t), this._updateContainerHeight(), n || (this._triggerChangeEvent(), this.engine.endUpdate());
3133
- }
3134
- resizeToContent(t) {
3135
- if (!t || (t.classList.remove("size-to-content-max"), !t.clientHeight)) return;
3136
- let n = t.gridstackNode;
3137
- if (!n) return;
3138
- let r = n.grid;
3139
- if (!r || t.parentElement !== r.el) return;
3140
- let i = r.getCellHeight(!0);
3141
- if (!i) return;
3142
- let a = n.h ? n.h * i : t.clientHeight, o = null;
3143
- if (n.resizeToContentParent && (o = t.querySelector(n.resizeToContentParent)), o ||= t.querySelector(e.resizeToContentParent), !o) return;
3144
- let s = t.clientHeight - o.clientHeight, c = n.h ? n.h * i - s : o.clientHeight, l;
3145
- if (n.subGrid) {
3146
- l = n.subGrid.getRow() * n.subGrid.getCellHeight(!0);
3147
- let e = n.subGrid.el.getBoundingClientRect(), r = t.getBoundingClientRect();
3148
- l += e.top - r.top;
3149
- } else if (n.subGridOpts?.children?.length) return;
3150
- else {
3151
- let t = o.firstElementChild;
3152
- if (!t) {
3153
- console.error(`Error: GridStack.resizeToContent() widget id:${n.id} '${e.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
3154
- return;
3155
- }
3156
- l = t.getBoundingClientRect().height || c;
3157
- }
3158
- if (c === l) return;
3159
- a += l - c;
3160
- let u = Math.ceil(a / i), d = Number.isInteger(n.sizeToContent) ? n.sizeToContent : 0;
3161
- d && u > d && (u = d, t.classList.add("size-to-content-max")), n.minH && u < n.minH ? u = n.minH : n.maxH && u > n.maxH && (u = n.maxH), u !== n.h && (r._ignoreLayoutsNodeChange = !0, r.moveNode(n, { h: u }), delete r._ignoreLayoutsNodeChange);
3162
- }
3163
- resizeToContentCBCheck(t) {
3164
- e.resizeToContentCB ? e.resizeToContentCB(t) : this.resizeToContent(t);
3165
- }
3166
- rotate(t, n) {
3167
- return e.getElements(t).forEach((e) => {
3168
- let t = e.gridstackNode;
3169
- if (!t || !G.canBeRotated(t)) return;
3170
- let r = {
3171
- w: t.h,
3172
- h: t.w,
3173
- minH: t.minW,
3174
- minW: t.minH,
3175
- maxH: t.maxW,
3176
- maxW: t.maxH
3177
- };
3178
- if (n) {
3179
- let e = n.left > 0 ? Math.floor(n.left / this.cellWidth()) : 0, i = n.top > 0 ? Math.floor(n.top / this.opts.cellHeight) : 0;
3180
- r.x = t.x + e - (t.h - (i + 1)), r.y = t.y + i - e;
3181
- }
3182
- let i = r;
3183
- Object.keys(i).forEach((e) => {
3184
- i[e] === void 0 && delete i[e];
3185
- });
3186
- let a = t._orig;
3187
- this.update(e, r), t._orig = a;
3188
- }), this;
3189
- }
3190
- margin(e) {
3191
- if (!(typeof e == "string" && e.split(" ").length > 1)) {
3192
- let t = G.parseHeight(e);
3193
- if (this.opts.marginUnit === t.unit && this.opts.margin === t.h) return this;
3194
- }
3195
- return this.opts.margin = e, this.opts.marginTop = this.opts.marginBottom = this.opts.marginLeft = this.opts.marginRight = void 0, this._initMargin(), this;
3196
- }
3197
- getMargin() {
3198
- return this.opts.margin;
3199
- }
3200
- willItFit(e) {
3201
- return this.engine.willItFit(e);
3202
- }
3203
- _triggerChangeEvent() {
3204
- if (this.engine.batchMode) return this;
3205
- let e = this.engine.getDirtyNodes(!0);
3206
- return e && e.length && (this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(e), this._triggerEvent("change", e)), this.engine.saveInitial(), this._sortDom(), this._isFillCellHeight && this.cellHeight(), this;
3207
- }
3208
- _sortDom() {
3209
- let e = this.engine.nodes;
3210
- if (e.forEach((e) => {
3211
- e.subGrid && e.subGrid._sortDom();
3212
- }), e.length < 2) return this;
3213
- this.engine.sortNodes(), e = this.engine.nodes;
3214
- let t = this.el.children;
3215
- if (e.some((e, n) => e.el !== t[n])) {
3216
- let t = this.el.moveBefore?.bind(this.el);
3217
- e.forEach((e) => {
3218
- e.el && e.el.parentElement === this.el && (t ? t(e.el, null) : this.el.appendChild(e.el));
3219
- });
3220
- }
3221
- return this;
3222
- }
3223
- _triggerAddEvent() {
3224
- if (this.engine.batchMode) return this;
3225
- if (this.engine.addedNodes?.length) {
3226
- this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(this.engine.addedNodes), this.engine.addedNodes.forEach((e) => {
3227
- delete e._dirty;
3228
- });
3229
- let e = [...this.engine.addedNodes];
3230
- this.engine.addedNodes = [], this._triggerEvent("added", e);
3231
- }
3232
- return this;
3233
- }
3234
- _triggerRemoveEvent() {
3235
- if (this.engine.batchMode) return this;
3236
- if (this.engine.removedNodes?.length) {
3237
- let e = [...this.engine.removedNodes];
3238
- this.engine.removedNodes = [], this._triggerEvent("removed", e);
3239
- }
3240
- return this;
3241
- }
3242
- _triggerEvent(e, t) {
3243
- let n = t ? new CustomEvent(e, {
3244
- bubbles: !1,
3245
- detail: t
3246
- }) : new Event(e), r = this;
3247
- for (; r.parentGridNode;) r = r.parentGridNode.grid;
3248
- return r.el.dispatchEvent(n), this;
3249
- }
3250
- _updateContainerHeight() {
3251
- if (!this.engine || this.engine.batchMode) return this;
3252
- let e = this.parentGridNode, t = this.getRow() + this._extraDragRow, n = this.opts.cellHeight, r = this.opts.cellHeightUnit;
3253
- if (!n) return this;
3254
- if (!e && !this.opts.minRow) {
3255
- let e = G.parseHeight(getComputedStyle(this.el).minHeight);
3256
- if (e.h > 0 && e.unit === r) {
3257
- let r = Math.floor(e.h / n);
3258
- t < r && (t = r);
3259
- }
3260
- }
3261
- return this.el.setAttribute("gs-current-row", String(t)), this.el.style.removeProperty("min-height"), this.el.style.removeProperty("height"), t && (e || !this._isFillCellHeight) && (this.el.style[e ? "minHeight" : "height"] = t * n + r), e && G.shouldSizeToContent(e) && e.grid.resizeToContentCBCheck(e.el), this;
3262
- }
3263
- _prepareElement(e, t = !1, n) {
3264
- n ||= this._readAttr(e), e.gridstackNode = n, n.el = e, n.grid = this, n = this.engine.addNode(n, t), this._writeAttr(e, n), e.classList.add(K.itemClass, this.opts.itemClass);
3265
- let r = G.shouldSizeToContent(n);
3266
- return r ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), r && this.resizeToContentCheck(!1, n), (!G.lazyLoad(n) || !n.visibleObservable) && this.prepareDragDrop(n.el), this;
3267
- }
3268
- _writePosAttr(e, t) {
3269
- if (!t._moving && !t._resizing || this._placeholder === e) {
3270
- let n = this.opts.rtl ? "right" : "left", r = e.style;
3271
- r.top = t.y ? t.y === 1 ? "var(--gs-cell-height)" : `calc(${t.y} * var(--gs-cell-height))` : null, r[n] = t.x ? t.x === 1 ? "var(--gs-column-width)" : `calc(${t.x} * var(--gs-column-width))` : null, r.width = t.w > 1 ? `calc(${t.w} * var(--gs-column-width))` : null, r.height = t.h > 1 ? `calc(${t.h} * var(--gs-cell-height))` : null;
3272
- }
3273
- return e.style.setProperty("--gs-x", String(t.x || 0)), e.style.setProperty("--gs-y", String(t.y || 0)), e.style.setProperty("--gs-w", String(t.w || 1)), e.style.setProperty("--gs-h", String(t.h || 1)), e.setAttribute("gs-x", String(t.x ?? 0)), e.setAttribute("gs-y", String(t.y ?? 0)), t.w > 1 ? e.setAttribute("gs-w", String(t.w)) : e.removeAttribute("gs-w"), t.h > 1 ? e.setAttribute("gs-h", String(t.h)) : e.removeAttribute("gs-h"), this;
3274
- }
3275
- _writeAttr(e, t) {
3276
- if (!t) return this;
3277
- this._writePosAttr(e, t);
3278
- let n = {
3279
- noResize: "gs-no-resize",
3280
- noMove: "gs-no-move",
3281
- locked: "gs-locked",
3282
- id: "gs-id",
3283
- sizeToContent: "gs-size-to-content"
3284
- }, r = t, i = n;
3285
- for (let t in i) r[t] !== void 0 && r[t] !== null && r[t] !== !1 ? e.setAttribute(i[t], String(r[t])) : e.removeAttribute(i[t]);
3286
- let a = t.print;
3287
- return a ? (a.pageBreak ? e.setAttribute("gs-page-break", String(a.pageBreak)) : e.removeAttribute("gs-page-break"), a.hide ? e.classList.add("gs-print-hide") : e.classList.remove("gs-print-hide"), a.orientation ? e.setAttribute("gs-print-orientation", String(a.orientation)) : e.removeAttribute("gs-print-orientation"), a.breakInside ? e.setAttribute("gs-break-inside", String(a.breakInside)) : e.removeAttribute("gs-break-inside")) : (e.removeAttribute("gs-page-break"), e.classList.remove("gs-print-hide"), e.removeAttribute("gs-print-orientation"), e.removeAttribute("gs-break-inside")), this;
3288
- }
3289
- _readAttr(e, t = !0) {
3290
- let n = {};
3291
- n.x = G.toNumber(e.getAttribute("gs-x")), n.y = G.toNumber(e.getAttribute("gs-y")), n.w = G.toNumber(e.getAttribute("gs-w")), n.h = G.toNumber(e.getAttribute("gs-h")), n.autoPosition = G.toBool(e.getAttribute("gs-auto-position")), n.noResize = G.toBool(e.getAttribute("gs-no-resize")), n.noMove = G.toBool(e.getAttribute("gs-no-move")), n.locked = G.toBool(e.getAttribute("gs-locked"));
3292
- let r = e.getAttribute("gs-page-break"), i = e.classList.contains("gs-print-hide"), a = e.getAttribute("gs-print-orientation"), o = e.getAttribute("gs-break-inside");
3293
- (r || i || a || o) && (n.print = {}, r && (n.print.pageBreak = G.toBool(r)), i && (n.print.hide = !0), a && (n.print.orientation = a), o && (n.print.breakInside = G.toBool(o)));
3294
- let s = e.getAttribute("gs-size-to-content");
3295
- s && (s === "true" || s === "false" ? n.sizeToContent = G.toBool(s) : n.sizeToContent = parseInt(s, 10)), n.id = e.getAttribute("gs-id") ?? void 0, n.maxW = G.toNumber(e.getAttribute("gs-max-w")), n.minW = G.toNumber(e.getAttribute("gs-min-w")), n.maxH = G.toNumber(e.getAttribute("gs-max-h")), n.minH = G.toNumber(e.getAttribute("gs-min-h")), t && (n.w === 1 && e.removeAttribute("gs-w"), n.h === 1 && e.removeAttribute("gs-h"), n.maxW && e.removeAttribute("gs-max-w"), n.minW && e.removeAttribute("gs-min-w"), n.maxH && e.removeAttribute("gs-max-h"), n.minH && e.removeAttribute("gs-min-h"));
3296
- let c = n;
3297
- for (let e in c) n.hasOwnProperty(e) && !c[e] && c[e] !== 0 && e !== "sizeToContent" && delete c[e];
3298
- return n;
3299
- }
3300
- _setStaticClass() {
3301
- let e = ["grid-stack-static"];
3302
- return this.opts.staticGrid ? (this.el.classList.add(...e), this.el.setAttribute("gs-static", "true")) : (this.el.classList.remove(...e), this.el.removeAttribute("gs-static")), this;
3303
- }
3304
- onResize(e = this.el?.clientWidth, t = this.el?.clientHeight) {
3305
- if (!e || e === this.prevWidth && t === this.prevHeight || e === this.prevWidth && !this._isFillCellHeight) return this;
3306
- this.prevWidth = e, this.prevHeight = t, this.batchUpdate();
3307
- let n = !1;
3308
- return this._autoColumn && this.parentGridNode ? this.opts.column !== this.parentGridNode.w && (this.column(this.parentGridNode.w, this.opts.layout || "list"), n = !0) : n = this.checkDynamicColumn(), (this._isAutoCellHeight || this._isFillCellHeight) && this.cellHeight(), this.engine.nodes.forEach((e) => {
3309
- e.subGrid && e.subGrid.onResize();
3310
- }), this._skipInitialResize || this.resizeToContentCheck(n), delete this._skipInitialResize, this.batchUpdate(!1), this;
3311
- }
3312
- resizeToContentCheck(e = !1, t) {
3313
- if (!this.engine) return;
3314
- if (e && this.hasAnimationCSS()) {
3315
- setTimeout(() => this.resizeToContentCheck(!1, t), this.animationDelay);
3316
- return;
3317
- }
3318
- if (t) G.shouldSizeToContent(t) && this.resizeToContentCBCheck(t.el);
3319
- else if (this.engine.nodes.some((e) => G.shouldSizeToContent(e))) {
3320
- let e = [...this.engine.nodes];
3321
- this.batchUpdate(), e.forEach((e) => {
3322
- G.shouldSizeToContent(e) && this.resizeToContentCBCheck(e.el);
3323
- }), this._ignoreLayoutsNodeChange = !0, this.batchUpdate(!1), this._ignoreLayoutsNodeChange = !1;
3324
- }
3325
- let n = this._gsEventHandler.resizecontent;
3326
- n && n(new Event("resizecontent"), t ? [t] : this.engine.nodes);
3327
- }
3328
- _updateResizeEvent(e = !1) {
3329
- let t = !this.parentGridNode && (this._isAutoCellHeight || this._isFillCellHeight || this.opts.sizeToContent || this.opts.columnOpts || this.engine.nodes.find((e) => e.sizeToContent));
3330
- return !e && t && !this.resizeObserver ? (this._sizeThrottle = G.throttle(() => this.onResize(), this.opts.cellHeightThrottle), this.resizeObserver = new ResizeObserver(() => this._sizeThrottle()), this.resizeObserver.observe(this.el), this._skipInitialResize = !0) : (e || !t) && this.resizeObserver && (this.resizeObserver.disconnect(), delete this.resizeObserver, delete this._sizeThrottle), this;
3331
- }
3332
- static getElement(e = ".grid-stack-item") {
3333
- return G.getElement(e);
3334
- }
3335
- static getElements(e = ".grid-stack-item") {
3336
- return G.getElements(e);
3337
- }
3338
- static getGridElement(t) {
3339
- return e.getElement(t);
3340
- }
3341
- static getGridElements(e) {
3342
- return G.getElements(e);
3343
- }
3344
- _initMargin() {
3345
- let e = {
3346
- h: 0,
3347
- unit: "px"
3348
- }, t = 0, n = [];
3349
- typeof this.opts.margin == "string" && (n = this.opts.margin.split(" ")), n.length === 2 ? (this.opts.marginTop = this.opts.marginBottom = n[0], this.opts.marginLeft = this.opts.marginRight = n[1]) : n.length === 4 ? (this.opts.marginTop = n[0], this.opts.marginRight = n[1], this.opts.marginBottom = n[2], this.opts.marginLeft = n[3]) : (e = G.parseHeight(this.opts.margin), this.opts.marginUnit = e.unit, t = this.opts.margin = e.h);
3350
- let r = [
3351
- "marginTop",
3352
- "marginRight",
3353
- "marginBottom",
3354
- "marginLeft"
3355
- ], i = this.opts;
3356
- r.forEach((n) => {
3357
- i[n] === void 0 ? i[n] = t : (e = G.parseHeight(i[n]), i[n] = e.h, delete this.opts.margin);
3358
- }), this.opts.marginUnit = e.unit, this.opts.marginTop === this.opts.marginBottom && this.opts.marginLeft === this.opts.marginRight && this.opts.marginTop === this.opts.marginRight && (this.opts.margin = this.opts.marginTop);
3359
- let a = this.el.style;
3360
- return a.setProperty("--gs-item-margin-top", `${this.opts.marginTop}${this.opts.marginUnit}`), a.setProperty("--gs-item-margin-bottom", `${this.opts.marginBottom}${this.opts.marginUnit}`), a.setProperty("--gs-item-margin-right", `${this.opts.marginRight}${this.opts.marginUnit}`), a.setProperty("--gs-item-margin-left", `${this.opts.marginLeft}${this.opts.marginUnit}`), this;
3361
- }
3362
- static getDD() {
3363
- return Z;
3364
- }
3365
- static setupDragIn(e, t, n, r = document) {
3366
- t?.pause !== void 0 && (q.pauseDrag = t.pause), t = {
3367
- appendTo: "body",
3368
- helper: "clone",
3369
- ...t || {}
3370
- };
3371
- let i = t.start, a = t.drag, o = t.stop, s = (e, t, n) => e.dispatchEvent(new CustomEvent(t, {
3372
- bubbles: !0,
3373
- detail: {
3374
- el: e,
3375
- ui: n
3376
- }
3377
- }));
3378
- (typeof e == "string" ? G.getElements(e, r) : e).forEach((e, r) => {
3379
- Z.isDraggable(e) || Z.dragIn(e, {
3380
- ...t,
3381
- start: (t, n) => {
3382
- i?.(t, n), s(e, "dragstart", n);
3383
- },
3384
- drag: (t, n) => {
3385
- a?.(t, n), s(e, "drag", n);
3386
- },
3387
- stop: (t) => {
3388
- o?.(t), s(e, "dragstop");
3389
- }
3390
- }), n?.[r] && (e.gridstackNode = n[r]);
3391
- });
3392
- }
3393
- movable(t, n) {
3394
- return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3395
- let t = e.gridstackNode;
3396
- t && (n ? delete t.noMove : t.noMove = !0, this.prepareDragDrop(t.el));
3397
- }), this;
3398
- }
3399
- resizable(t, n) {
3400
- return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3401
- let t = e.gridstackNode;
3402
- t && (n ? delete t.noResize : t.noResize = !0, this.prepareDragDrop(t.el));
3403
- }), this;
3404
- }
3405
- disable(e = !0) {
3406
- return this.opts.staticGrid ? this : (this.enableMove(!1, e), this.enableResize(!1, e), this._triggerEvent("disable"), this);
3407
- }
3408
- enable(e = !0) {
3409
- return this.opts.staticGrid ? this : (this.enableMove(!0, e), this.enableResize(!0, e), this._triggerEvent("enable"), this);
3410
- }
3411
- enableMove(e, t = !0) {
3412
- return this.opts.staticGrid ? this : (e ? delete this.opts.disableDrag : this.opts.disableDrag = !0, this.engine.nodes.forEach((n) => {
3413
- this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableMove(e, t);
3414
- }), this);
3415
- }
3416
- enableResize(e, t = !0) {
3417
- return this.opts.staticGrid ? this : (e ? delete this.opts.disableResize : this.opts.disableResize = !0, this.engine.nodes.forEach((n) => {
3418
- this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableResize(e, t);
3419
- }), this);
3420
- }
3421
- cancelDrag() {
3422
- let t = q.dragElement?.el;
3423
- if (t?._gridstackNodeOrig) {
3424
- let e = t._gridstackNodeOrig, n = e.grid, r = this._placeholder?.gridstackNode;
3425
- r && (r._isAboutToRemove = !0, this.engine.removeNode(r)), this.engine.restoreInitial(), t.gridstackNode = e, delete t._gridstackNodeOrig, delete q.dropElement, n && (n.engine.addNode(e, !1), n.engine.restoreInitial());
3426
- return;
3427
- }
3428
- let n = this._placeholder?.gridstackNode;
3429
- n && (n._isExternal ? (n._isAboutToRemove = !0, this.engine.removeNode(n)) : n._isAboutToRemove && e._itemRemoving(n.el, !1), this.engine.restoreInitial());
3430
- }
3431
- _removeDD(e) {
3432
- return Z.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
3433
- }
3434
- _setupAcceptWidget() {
3435
- if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable) return Z.droppable(this.el, "destroy"), this;
3436
- let t, n, r = (e, r, i) => {
3437
- i ||= r;
3438
- let a = i.gridstackNode;
3439
- if (!a) return;
3440
- if (!a.grid?.el) {
3441
- i.style.transform = `scale(${1 / this.dragTransform.xScale},${1 / this.dragTransform.yScale})`;
3442
- let t = i.getBoundingClientRect();
3443
- i.style.left = t.x + (this.dragTransform.xScale - 1) * (e.clientX - t.x) / this.dragTransform.xScale + "px", i.style.top = t.y + (this.dragTransform.yScale - 1) * (e.clientY - t.y) / this.dragTransform.yScale + "px", i.style.transformOrigin = "0px 0px";
3444
- }
3445
- let { top: o, left: s } = i.getBoundingClientRect(), c = this.el.getBoundingClientRect();
3446
- s -= c.left, o -= c.top;
3447
- let l = { position: {
3448
- top: o * this.dragTransform.xScale,
3449
- left: s * this.dragTransform.yScale
3450
- } };
3451
- if (a._temporaryRemoved) {
3452
- if (a.x = Math.max(0, Math.round(s / n)), a.y = Math.max(0, Math.round(o / t)), delete a.autoPosition, this.engine.nodeBoundFix(a), !this.engine.willItFit(a)) {
3453
- if (a.autoPosition = !0, !this.engine.willItFit(a)) {
3454
- Z.off(r, "drag");
3455
- return;
3456
- }
3457
- a._willFitPos && (G.copyPos(a, a._willFitPos), delete a._willFitPos);
3458
- }
3459
- this._onStartMoving(i, e, l, a, n, t);
3460
- } else this._dragOrResize(i, e, l, a, n, t);
3461
- };
3462
- return Z.droppable(this.el, { accept: (e) => {
3463
- let t = e.gridstackNode || this._readAttr(e, !1);
3464
- if (t?.grid === this) return !0;
3465
- if (!this.opts.acceptWidgets) return !1;
3466
- let n = !0;
3467
- if (typeof this.opts.acceptWidgets == "function") n = this.opts.acceptWidgets(e);
3468
- else {
3469
- let t = this.opts.acceptWidgets === !0 ? ".grid-stack-item" : this.opts.acceptWidgets;
3470
- n = e.matches(t);
3471
- }
3472
- if (n && t && this.opts.maxRow) {
3473
- let e = {
3474
- w: t.w,
3475
- h: t.h,
3476
- minW: t.minW,
3477
- minH: t.minH
3478
- };
3479
- n = this.engine.willItFit(e);
3480
- }
3481
- return n;
3482
- } }).on(this.el, "dropover", (i, a, o) => {
3483
- let s = o?.gridstackNode || a.gridstackNode;
3484
- if (s?.grid === this && !s._temporaryRemoved) return !1;
3485
- if (s?._sidebarOrig && (s.w = s._sidebarOrig.w, s.h = s._sidebarOrig.h), s?.grid && s.grid !== this && !s._temporaryRemoved && s.grid._leave(a, o), o ||= a, n = this.cellWidth(), t = this.getCellHeight(!0), !s) {
3486
- let e = o.getAttribute("data-gs-widget") || o.getAttribute("gridstacknode");
3487
- if (e) {
3488
- try {
3489
- s = JSON.parse(e);
3490
- } catch {
3491
- console.error("Gridstack dropover: Bad JSON format: ", e);
3492
- }
3493
- o.removeAttribute("data-gs-widget"), o.removeAttribute("gridstacknode");
3494
- }
3495
- s ||= this._readAttr(o), s._sidebarOrig = {
3496
- w: s.w,
3497
- h: s.h
3498
- };
3499
- }
3500
- s.grid || (s.el || (s = { ...s }), s._isExternal = !0, o.gridstackNode = s);
3501
- let c = s.w || Math.round(o.offsetWidth / n) || 1, l = s.h || Math.round(o.offsetHeight / t) || 1;
3502
- return s.grid && s.grid !== this ? (a._gridstackNodeOrig ||= s, a.gridstackNode = s = {
3503
- ...s,
3504
- w: c,
3505
- h: l,
3506
- grid: this
3507
- }, delete s.x, delete s.y, this.engine.cleanupNode(s).nodeBoundFix(s), s._initDD = s._isExternal = s._temporaryRemoved = !0) : (s.w = c, s.h = l, s._temporaryRemoved = !0), e._itemRemoving(s.el, !1), Z.on(a, "drag", r), r(i, a, o), !1;
3508
- }).on(this.el, "dropout", (e, t, n) => {
3509
- let r = n?.gridstackNode || t.gridstackNode;
3510
- return r && (!r.grid || r.grid === this) && (this._leave(t, n), this._isTemp && this.removeAsSubGrid(r)), !1;
3511
- }).on(this.el, "drop", (t, n, r) => {
3512
- let i = r?.gridstackNode || n.gridstackNode;
3513
- if (i?.grid === this && !i._isExternal) return !1;
3514
- let a = !!this.placeholder.parentElement, o = n !== r;
3515
- this.placeholder.remove(), delete this.placeholder.gridstackNode, a && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
3516
- let s = n._gridstackNodeOrig;
3517
- if (delete n._gridstackNodeOrig, a && s?.grid && s.grid !== this) {
3518
- let e = s.grid;
3519
- e.engine.removeNodeFromLayoutCache(s), e.engine.removedNodes.push(s), e._triggerRemoveEvent()._triggerChangeEvent(), e.parentGridNode && !e.engine.nodes.length && e.opts.subGridDynamic && e.removeAsSubGrid();
3520
- }
3521
- if (!i || (a && (this.engine.cleanupNode(i), i.grid = this), delete i.grid?._isTemp, Z.off(n, "drag"), r && r !== n ? (r.remove(), n = r) : n.remove(), this._removeDD(n), !a)) return !1;
3522
- let c = i.subGrid?.el?.gridstack;
3523
- return G.copyPos(i, this._readAttr(this.placeholder)), G.removePositioningStyles(n), o && (i.content || i.subGridOpts || e.addRemoveCB) ? (delete i.el, n = this.addWidget(i) || n) : (this._prepareElement(n, !0, i), this.el.appendChild(n), this.resizeToContentCheck(!1, i), c && (c.parentGridNode = i), this._updateContainerHeight()), this.engine.addedNodes.push(i), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({
3524
- ...t,
3525
- type: "dropped"
3526
- }, s && s.grid ? s : void 0, i), !1;
3527
- }), this;
3528
- }
3529
- static _itemRemoving(e, t) {
3530
- if (!e) return;
3531
- let n = e ? e.gridstackNode : void 0;
3532
- !n?.grid || e.classList.contains(n.grid.opts.removableOptions.decline) || (t ? n._isAboutToRemove = !0 : delete n._isAboutToRemove, t ? e.classList.add("grid-stack-item-removing") : e.classList.remove("grid-stack-item-removing"));
3533
- }
3534
- _setupRemoveDrop() {
3535
- if (typeof this.opts.removable != "string") return this;
3536
- let t = document.querySelector(this.opts.removable);
3537
- return t && !this.opts.staticGrid && !Z.isDroppable(t) && Z.droppable(t, this.opts.removableOptions).on(t, "dropover", (t, n) => e._itemRemoving(n, !0)).on(t, "dropout", (t, n) => e._itemRemoving(n, !1)), this;
3538
- }
3539
- refreshDragHandles(t) {
3540
- return e.getElements(t).forEach((e) => {
3541
- e.ddElement?.ddDraggable?.refreshHandles();
3542
- }), this;
3543
- }
3544
- prepareDragDrop(e, t = !1) {
3545
- let n = e?.gridstackNode;
3546
- if (!n) return this;
3547
- let r = n.noMove || this.opts.disableDrag, i = n.noResize || this.opts.disableResize, a = this.opts.staticGrid || r && i;
3548
- if ((t || a) && (n._initDD && (this._removeDD(e), delete n._initDD), a)) return e.classList.add("ui-draggable-disabled", "ui-resizable-disabled"), this;
3549
- if (!n._initDD) {
3550
- let t, r, i = (i, a) => {
3551
- this.triggerEvent(i, i.target), t = this.cellWidth(), r = this.getCellHeight(!0), this._onStartMoving(e, i, a, n, t, r);
3552
- }, a = (i, a) => {
3553
- this._dragOrResize(e, i, a, n, t, r);
3554
- }, o = (t) => {
3555
- this.placeholder.remove(), delete this.placeholder.gridstackNode, delete n._moving, delete n._resizing, delete n._event, delete n._lastTried;
3556
- let r = !!n._orig && n.w !== n._orig.w, i = t.target;
3557
- if (!(!i.gridstackNode || i.gridstackNode.grid !== this)) {
3558
- if (n.el = i, n._isAboutToRemove) {
3559
- let r = e.gridstackNode.grid;
3560
- r._gsEventHandler[t.type] && r._gsEventHandler[t.type](t, i), r.engine.nodes.push(n), r.removeWidget(e, !0, !0);
3561
- } else G.removePositioningStyles(i), n._temporaryRemoved ? (this._writePosAttr(i, n), this.engine.addNode(n)) : this._writePosAttr(i, n), this.triggerEvent(t, i);
3562
- this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), t.type === "resizestop" && (Number.isInteger(n.sizeToContent) && (n.sizeToContent = n.h), this.resizeToContentCheck(r, n));
3563
- }
3564
- };
3565
- Z.draggable(e, {
3566
- start: i,
3567
- stop: o,
3568
- drag: a,
3569
- rtl: this.opts.rtl === "auto" ? void 0 : this.opts.rtl
3570
- }).resizable(e, {
3571
- start: i,
3572
- stop: o,
3573
- resize: a,
3574
- rtl: this.opts.rtl === "auto" ? void 0 : this.opts.rtl
3575
- }), n._initDD = !0;
3576
- }
3577
- return Z.draggable(e, r ? "disable" : "enable").resizable(e, i ? "disable" : "enable"), this;
3578
- }
3579
- _onStartMoving(e, t, n, r, i, a) {
3580
- if (this.engine.cleanNodes().beginUpdate(r), this._writePosAttr(this.placeholder, r), this.el.appendChild(this.placeholder), this.placeholder.gridstackNode = r, r.grid?.el) this.dragTransform = G.getValuesFromTransformedElement(e);
3581
- else if (this.placeholder && this.placeholder.closest(".grid-stack")) {
3582
- let e = this.placeholder.closest(".grid-stack");
3583
- this.dragTransform = G.getValuesFromTransformedElement(e);
3584
- } else this.dragTransform = {
3585
- xScale: 1,
3586
- xOffset: 0,
3587
- yScale: 1,
3588
- yOffset: 0
3589
- };
3590
- if (r.el = this.placeholder, r._lastUiPosition = n.position, r._prevYPix = n.position.top, r._moving = t.type === "dragstart", r._resizing = t.type === "resizestart", delete r._lastTried, t.type === "dropover" && r._temporaryRemoved && (this.engine.addNode(r), r._moving = !0), this.engine.cacheRects(i, a, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
3591
- let t = this.getColumn() - r.x, n = (this.opts.maxRow || 2 ** 53 - 1) - r.y;
3592
- Z.resizable(e, "option", "minWidth", i * Math.min(r.minW || 1, t)).resizable(e, "option", "minHeight", a * Math.min(r.minH || 1, n)).resizable(e, "option", "maxWidth", i * Math.min(r.maxW || 2 ** 53 - 1, t)).resizable(e, "option", "maxWidthMoveLeft", i * Math.min(r.maxW || 2 ** 53 - 1, r.x + r.w)).resizable(e, "option", "maxHeight", a * Math.min(r.maxH || 2 ** 53 - 1, n)).resizable(e, "option", "maxHeightMoveUp", a * Math.min(r.maxH || 2 ** 53 - 1, r.y + r.h));
3593
- }
3594
- }
3595
- _dragOrResize(e, t, n, r, i, a) {
3596
- let o = { ...r._orig }, s = !1, c = this.opts.marginLeft, l = this.opts.marginRight, u = this.opts.marginTop, d = this.opts.marginBottom, f = Math.round(a * .1), p = Math.round(i * .1);
3597
- if (c = Math.min(c, p), l = Math.min(l, p), u = Math.min(u, f), d = Math.min(d, f), t.type === "drag") {
3598
- if (r._temporaryRemoved) return;
3599
- r._prevYPix = n.position.top, this.opts.draggable.scroll !== !1 && q.dragElement?.updateScrollPosition(this.el);
3600
- let e = n.position.left + (n.position.left > r._lastUiPosition.left ? -l : c), t = n.position.top + (n.position.top > r._lastUiPosition.top ? -d : u);
3601
- o.x = Math.round(e / i), o.y = Math.round(t / a);
3602
- let s = this._extraDragRow;
3603
- if (this.engine.collide(r, o)) {
3604
- let e = this.getRow(), t = Math.max(0, o.y + r.h - e);
3605
- this.opts.maxRow && e + t > this.opts.maxRow && (t = Math.max(0, this.opts.maxRow - e)), this._extraDragRow = t;
3606
- } else this._extraDragRow = 0;
3607
- if (this._extraDragRow !== s && this._updateContainerHeight(), r.x === o.x && r.y === o.y) return;
3608
- } else if (t.type === "resize") {
3609
- if ((o.x ?? 0) < 0 || (G.updateScrollResize(t, e, a), o.w = Math.round((n.size.width - c) / i), o.h = Math.round((n.size.height - u) / a), r.w === o.w && r.h === o.h) || r._lastTried && r._lastTried.w === o.w && r._lastTried.h === o.h) return;
3610
- if (t.hasMovedX) {
3611
- let e = r.x - (o.w - r.w);
3612
- o.x = e < 0 ? 0 : e;
3613
- }
3614
- if (t.hasMovedY) {
3615
- let e = r.y - (o.h - r.h);
3616
- o.y = e < 0 ? 0 : e;
3617
- }
3618
- s = !0;
3619
- }
3620
- r._event = t, r._lastTried = o;
3621
- let m = {
3622
- x: n.position.left + c,
3623
- y: n.position.top + u,
3624
- w: (n.size ? n.size.width : r.w * i) - c - l,
3625
- h: (n.size ? n.size.height : r.h * a) - u - d
3626
- };
3627
- if (this.engine.moveNodeCheck(r, {
3628
- ...o,
3629
- cellWidth: i,
3630
- cellHeight: a,
3631
- rect: m,
3632
- resizing: s
3633
- })) {
3634
- r._lastUiPosition = n.position, this.engine.cacheRects(i, a, u, l, d, c), delete r._skipDown, s && r.subGrid && r.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
3635
- let e = t.target;
3636
- r._sidebarOrig || this._writePosAttr(e, r), this.triggerEvent(t, e);
3637
- }
3638
- }
3639
- triggerEvent(e, t) {
3640
- let n = this;
3641
- for (; n.parentGridNode;) n = n.parentGridNode.grid;
3642
- n._gsEventHandler[e.type] && n._gsEventHandler[e.type](e, t);
3643
- }
3644
- _leave(t, n) {
3645
- n ||= t;
3646
- let r = n.gridstackNode;
3647
- if (!r || (n.style.transform = n.style.transformOrigin = "", Z.off(t, "drag"), r._temporaryRemoved)) return;
3648
- r._temporaryRemoved = !0, this.engine.removeNode(r), r.el = r._isExternal && n ? n : t;
3649
- let i = r._sidebarOrig;
3650
- r._isExternal && this.engine.cleanupNode(r), r._sidebarOrig = i, this.opts.removable === !0 && e._itemRemoving(t, !0), t._gridstackNodeOrig ? (t.gridstackNode = t._gridstackNodeOrig, delete t._gridstackNodeOrig) : r._isExternal && this.engine.restoreInitial();
3651
- }
3652
- };
3653
- Q.renderCB = (e, t) => {
3654
- e && t?.content && (e.textContent = t.content);
3655
- }, Q.resizeToContentParent = ".grid-stack-item-content", Q.Utils = G, Q.Engine = yn, Q.GDRev = "14.0.0";
3656
- //#endregion
3657
- //#region src/components/item-grid/helpers/grid-stack-lifecycle.ts
3658
- var Vn = ({ gridElement: e, gridItemElements: t, items: n, columns: r, rowHeight: i, viewMode: a, fullTheme: o, onCreateOrUpdateDimensionsHint: s, onRemoveDimensionsHint: c, onChange: l }) => {
3659
- let [u, d] = cn(o), f = {
3660
- column: r,
3661
- cellHeight: i,
3662
- marginTop: u,
3663
- marginLeft: d,
3664
- marginRight: d,
3665
- marginBottom: u,
3666
- animate: !0,
3667
- auto: !1,
3668
- mode: "top",
3669
- removable: !1,
3670
- acceptWidgets: !0,
3671
- disableDrag: a,
3672
- disableResize: a,
3673
- minRow: 1,
3674
- resizable: { handles: [
3675
- "n",
3676
- "ne",
3677
- "e",
3678
- "se",
3679
- "s",
3680
- "sw",
3681
- "w",
3682
- "nw"
3683
- ].join(", ") },
3684
- handle: ".grid-item-drag-handle"
3685
- }, p = Q.init(f, e);
3686
- if (!p) throw Error("GridStack.init() returned no grid");
3687
- return p._sortDom = () => p, p.batchUpdate(), t.forEach((e) => {
3688
- let t = e.getAttribute("luzmo-item-grid-item-id"), r = ye(n.find((e) => e.id === t), t ?? void 0);
3689
- p.makeWidget(e, r);
3690
- }), p.batchUpdate(!1), p.on("resizestart", (e, t) => {
3691
- s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3692
- }), p.on("resize", (e, t) => {
3693
- s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3694
- }), p.on("resizestop", (e, t) => {
3695
- c(t);
3696
- }), p.on("change", (e, t) => {
3697
- l(t);
3698
- }), p;
3699
- }, Hn = (e, t) => {
3700
- let n = new Map(t.filter((e) => e.id).map((e) => [e.id, e]));
3701
- return e.map((e) => {
3702
- let t = e.id ? n.get(e.id) : void 0;
3703
- return t ? {
3704
- ...e,
3705
- position: {
3706
- sizeX: t.w ?? 1,
3707
- sizeY: t.h ?? 1,
3708
- row: t.y ?? 0,
3709
- col: t.x ?? 0
3710
- }
3711
- } : e;
3712
- });
3713
- }, Un = ({ element: e, numberOfColumns: t, numberOfRows: n, offsetHint: r }) => {
3714
- let i = e.querySelector(".dimensions-hint-popover");
3715
- if (i) {
3716
- i.style.display = t.length > 0 && n.length > 0 ? "block" : "none", i.textContent = `${t} × ${n}`;
3717
- return;
3718
- }
3719
- let a = document.createElement("div");
3720
- a.className = "dimensions-hint-popover", a.setAttribute("popover", "hint"), a.style.display = t.length > 0 && n.length > 0 ? "block" : "none", a.textContent = `${t} × ${n}`, e.append(a), Yt(a, Wt(e, a, async () => {
3721
- let { x: t, y: n } = await qt(e, a, {
3722
- placement: "bottom",
3723
- middleware: [Gt(r), Kt()]
3724
- });
3725
- a.style.left = `${t}px`, a.style.top = `${n}px`;
3726
- })), a.matches(":popover-open") || a.showPopover();
3727
- }, Wn = (e) => {
3728
- let t = e.querySelector(".dimensions-hint-popover");
3729
- t && (Xt(t), t.matches(":popover-open") && t.hidePopover(), t.remove());
3730
- }, Gn = ({ initialized: e, grid: t, hasItemsChanged: n, gridItemElements: r, items: i }) => {
3731
- !e || !t || !n || (t.setAnimation(!1), t.batchUpdate(), t.removeAll(!1), i.forEach((e) => {
3732
- let n = xe(r, e.id);
3733
- n && t.makeWidget(n, ye(e, e.id));
3734
- }), t.batchUpdate(!1), t.setAnimation(!0));
3735
- }, Kn = ({ initialized: e, grid: t, hasViewModeChanged: n, viewMode: r, previousViewMode: i, activeItemElement: a, gridElement: o, cleanupActiveItem: s }) => {
3736
- if (!e || !t || !n || r === i) return a;
3737
- if (r) {
3738
- if (t.disable(), a) {
3739
- s(a), o.removeAttribute("has-active-item");
3740
- return;
3741
- }
3742
- return a;
3743
- }
3744
- return t.enable(), a;
3745
- }, qn = ":host{width:100%;display:block}.grid-stack{width:100%;min-height:var(--luzmo-item-grid-min-height);background:var(--luzmo-item-grid-background,var(--grid-background,var(--luzmo-background-color)));position:relative}.grid-stack[has-active-item] .grid-stack-item:not([active])>.grid-stack-item-content,.grid-stack[has-active-item] .grid-stack-item:not([active])>.grid-item-actions-popover{opacity:.5}.grid-stack .grid-stack-item[active]>.ui-resizable-handle,.grid-stack .grid-stack-item[active].ui-resizable-autohide>.ui-resizable-handle{display:block}.grid-stack .grid-stack-item.ui-resizable-resizing,.grid-stack .grid-stack-item.ui-resizable-resizing>.grid-stack-item-content{opacity:var(--luzmo-item-grid-item-resizing-opacity,.8)!important}.grid-item-drag-handle{color:var(--luzmo-item-grid-item-drag-handle-color,#000);top:var(--luzmo-item-grid-item-drag-handle-position-top,0);left:var(--luzmo-item-grid-item-drag-handle-position-left,0);right:var(--luzmo-item-grid-item-drag-handle-position-right,auto);bottom:var(--luzmo-item-grid-item-drag-handle-position-bottom,auto);padding:var(--luzmo-item-grid-item-drag-handle-padding,.5rem);z-index:var(--luzmo-item-grid-item-drag-handle-z-index,3);cursor:var(--luzmo-item-grid-item-drag-handle-cursor,move);position:absolute}.grid-stack[dark-background] .grid-item-drag-handle{color:var(--luzmo-item-grid-item-drag-handle-color,#fff)}.grid-stack .grid-stack-item .grid-stack-item-content{border-radius:var(--luzmo-item-grid-item-border-radius,var(--grid-item-border-radius,4px));background:var(--luzmo-item-grid-item-background,var(--grid-item-background,transparent));box-shadow:var(--luzmo-item-grid-item-box-shadow,var(--grid-item-box-shadow,none));border-style:var(--luzmo-item-grid-item-border-style,none);border-color:var(--luzmo-item-grid-item-border-color,transparent);-webkit-backdrop-filter:var(--luzmo-item-grid-item-backdrop-filter,none);backdrop-filter:var(--luzmo-item-grid-item-backdrop-filter,none);overflow:hidden}.grid-stack .grid-stack-item:not(.has-luzmo-viz-item) .grid-stack-item-content{border-style:var(--luzmo-item-grid-item-border-style,var(--grid-item-border-style,none));border-color:var(--luzmo-item-grid-item-border-color,var(--grid-item-border-color,transparent));border-width:var(--luzmo-item-grid-item-border-width,var(--grid-item-border-width,0));border-top-width:var(--luzmo-item-grid-item-border-top-width,var(--grid-item-border-top-width,0));border-right-width:var(--luzmo-item-grid-item-border-right-width,var(--grid-item-border-right-width,0));border-bottom-width:var(--luzmo-item-grid-item-border-bottom-width,var(--grid-item-border-bottom-width,0));border-left-width:var(--luzmo-item-grid-item-border-left-width,var(--grid-item-border-left-width,0))}.grid-stack .grid-stack-placeholder>.placeholder-content{border-radius:var(--grid-item-border-radius,4px)}:host .grid-stack-item[active]>.ui-resizable-handle,:host .grid-stack-item:hover>.ui-resizable-handle{z-index:var(--luzmo-item-grid-resize-handle-z-index,100);background:var(--luzmo-item-grid-resize-handle-background,#fff);border-radius:var(--luzmo-item-grid-resize-handle-border-radius,3px);opacity:var(--luzmo-item-grid-resize-handle-opacity,0);transition:var(--luzmo-item-grid-resize-handle-transition,opacity .2s ease);box-shadow:0 0 6px #0000001a,0 0 2px #000000bf;display:block!important;position:absolute!important}:host .grid-stack[dark-background]>.grid-stack-item[active]>.ui-resizable-handle,:host .grid-stack[dark-background]>.grid-stack-item:hover>.ui-resizable-handle{background:var(--luzmo-item-grid-resize-handle-background,#333);box-shadow:0 0 6px #ffffff1a,0 0 2px #ffffffbf}:host .grid-stack-item[active]>.ui-resizable-handle,:host .grid-stack-item:hover>.ui-resizable-handle{opacity:var(--luzmo-item-grid-resize-handle-opacity-hover,1)}:host .grid-stack-item>.ui-resizable-handle:hover{opacity:var(--luzmo-item-grid-resize-handle-opacity-active,1);background:var(--luzmo-item-grid-resize-handle-background-hover,var(--luzmo-background-color-highlight))}:host .grid-stack-item>.ui-resizable-n,:host .grid-stack-item>.ui-resizable-s{height:var(--luzmo-item-grid-resize-handle-edge-size,8px);width:var(--luzmo-item-grid-resize-handle-side-size,18px);left:calc(50% - var(--luzmo-item-grid-resize-handle-side-size,18px) / 2)}:host .grid-stack-item>.ui-resizable-n{cursor:n-resize;top:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-top,0px))}:host .grid-stack-item>.ui-resizable-s{cursor:s-resize;bottom:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-bottom,0px))}:host .grid-stack-item>.ui-resizable-e,:host .grid-stack-item>.ui-resizable-w{width:var(--luzmo-item-grid-resize-handle-edge-size,8px);height:var(--luzmo-item-grid-resize-handle-side-size,18px);top:calc(50% - var(--luzmo-item-grid-resize-handle-side-size,18px) / 2)}:host .grid-stack-item>.ui-resizable-e{cursor:e-resize;right:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-right,0px))}:host .grid-stack-item>.ui-resizable-w{cursor:w-resize;left:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-left,0px))}:host .grid-stack-item>.ui-resizable-ne,:host .grid-stack-item>.ui-resizable-nw,:host .grid-stack-item>.ui-resizable-se,:host .grid-stack-item>.ui-resizable-sw{width:var(--luzmo-item-grid-resize-handle-corner-size,12px);height:var(--luzmo-item-grid-resize-handle-corner-size,12px);background-image:none;transform:none}:host .grid-stack-item>.ui-resizable-ne{cursor:ne-resize;top:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-top,0px));right:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-right,0px))}:host .grid-stack-item>.ui-resizable-nw{cursor:nw-resize;top:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-top,0px));left:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-left,0px))}:host .grid-stack-item>.ui-resizable-se{cursor:se-resize;right:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-right,0px));bottom:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-bottom,0px))}:host .grid-stack-item>.ui-resizable-sw{cursor:sw-resize;left:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-left,0px));bottom:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-bottom,0px))}:host .grid-stack-item>.ui-resizable-resizing .ui-resizable-handle{background:var(--luzmo-item-grid-resize-handle-background-active,var(--luzmo-background-color-highlight));opacity:1!important}.grid-item-actions-popover{z-index:2;background:0 0;border:none;outline:none;margin:0;padding:0;position:absolute;overflow:visible}.grid-item-actions-popover:not([popover]){z-index:var(--luzmo-item-grid-item-actions-in-tree-z-index,50);position:fixed}luzmo-item-grid-item-actions-menu{padding:var(--luzmo-item-grid-item-actions-padding,var(--grid-item-actions-padding))}.dimensions-hint-popover{font-size:var(--luzmo-item-grid-item-dimensions-hint-font-size,var(--luzmo-font-size-xs,10px));font-family:var(--luzmo-item-grid-item-dimensions-hint-font-family,var(--luzmo-font-family,inherit));border-width:var(--luzmo-item-grid-item-dimensions-hint-border-width,var(--luzmo-border-width));border-style:solid;border-color:var(--luzmo-item-grid-item-dimensions-hint-border-color,var(--luzmo-border-color));border-radius:var(--luzmo-item-grid-item-dimensions-hint-border-radius,var(--luzmo-border-radius));padding:var(--luzmo-item-grid-item-dimensions-hint-padding,var(--luzmo-spacing-1) var(--luzmo-spacing-2));z-index:3;background:var(--luzmo-item-grid-item-dimensions-hint-background,var(--luzmo-background-color));color:var(--luzmo-item-grid-item-dimensions-hint-color,var(--luzmo-font-color));pointer-events:none;outline:none;margin:0;position:absolute;overflow:visible}luzmo-item-grid-item-actions-menu{--grid-item-actions-padding:0 .75rem}luzmo-item-grid-item-actions-menu[placement=top-start],luzmo-item-grid-item-actions-menu[placement=top],luzmo-item-grid-item-actions-menu[placement=top-end],luzmo-item-grid-item-actions-menu[placement=bottom-start],luzmo-item-grid-item-actions-menu[placement=bottom],luzmo-item-grid-item-actions-menu[placement=bottom-end]{--grid-item-actions-padding:.75rem 0}.grid-stack-item:focus-visible{outline:none}.grid-stack-item:focus-visible .grid-stack-item-content:after{content:\"\";border:var(--luzmo-indicator-width) solid var(--luzmo-indicator-color,var(--luzmo-primary));box-sizing:border-box;border-radius:var(--luzmo-item-grid-item-border-radius,var(--grid-item-border-radius,4px));z-index:2;width:100%;height:100%;position:absolute;top:0;left:0}", $ = class extends te {
3746
- constructor(...e) {
3747
- super(...e), this.appServer = "https://app.luzmo.com/", this.apiHost = "https://api.luzmo.com", this.language = "en", this.contentLanguage = "en", this.columns = 48, this.rowHeight = 16, this.viewMode = !1, this.itemActionsDocumentPopover = !0, this.placementItemActionsMenu = "right-start", this.clonedItemPositioning = "below-item", this._items = [], this._hasControlledItems = !1, this._initialItems = [], this.renderers = {}, this._initialized = !1, this.defaultRenderer = (e) => h`
3748
- <div class="grid-item-content">
3749
- <div class="grid-item-type">${e.type}</div>
3750
- </div>
3751
- `, this._internalItemStates = {}, this._initialItemStatesApplied = !1, this._internalItems = [], this._initialItemsApplied = !1, this._hasWarnedControlledAndInitialItems = !1, this._hasWarnedIgnoredInitialItems = !1, this._suppressItemStatesEvent = !1, this._suppressNextLayoutChangedEvent = !1, this._hasWarnedControlledAndInitialStates = !1, this._internalItemsVersion = 0, this._handleMouseout = (e) => {
3752
- if (this.viewMode) return;
3753
- let t = se(e.target);
3754
- t && ce({
3755
- event: e,
3756
- gridItem: t
3757
- }) && this._removeItemActionsMenuPopover(t);
3758
- }, this._handleKeyDown = (e) => {
3759
- let t = tn({
3760
- event: e,
3761
- viewMode: this.viewMode,
3762
- focusedItemElement: this._focusedItemElement,
3763
- activeItemElement: this._activeItemElement,
3764
- gridElement: this._gridElement,
3765
- grid: this._grid,
3766
- columns: this.columns ?? 48,
3767
- onDeleteRequest: (e) => {
3768
- let t = e.getAttribute("gs-id");
3769
- if (!t) return;
3770
- let n = this._effectiveItems, r = n.find((e) => e.id === t);
3771
- if (!r) return;
3772
- this._isControlled || this._clearGridItemUiStateForDelete(e);
3773
- let i = n.filter((e) => e.id !== t);
3774
- T({
3775
- target: this,
3776
- action: "delete",
3777
- actionType: "button",
3778
- active: !1,
3779
- items: n,
3780
- element: e,
3781
- itemId: t,
3782
- item: r,
3783
- updatedItems: i
3784
- }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3785
- },
3786
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
3787
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3788
- });
3789
- this._focusedItemElement = t.focusedItemElement, this._activeItemElement = t.activeItemElement;
3790
- }, this._handleFocus = (e) => {
3791
- this._focusedItemElement = le({
3792
- event: e,
3793
- focusedItemElement: this._focusedItemElement,
3794
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3795
- });
3796
- }, this._handleBlur = (e) => {
3797
- let t = ue({
3798
- event: e,
3799
- focusedItemElement: this._focusedItemElement,
3800
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3801
- });
3802
- this._focusedItemElement = t.focusedItemElement, t.shouldFocusGrid && this._gridElement.focus();
3803
- }, this._handleGridClick = (e) => {
3804
- if (this._isControlled) {
3805
- this._emitControlledClickAwayDeactivation(e);
3806
- return;
3807
- }
3808
- let t = pe({
3809
- event: e,
3810
- gridElement: this._gridElement,
3811
- hostElement: this,
3812
- items: this.items,
3813
- activeItemActionToggle: this._activeItemActionToggle,
3814
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
3815
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
3816
- });
3817
- this._activeItemActionToggle = t.activeItemActionToggle;
3818
- }, this._handleAction = (e) => {
3819
- let t = e.detail, r = e.target?.closest(".grid-stack-item"), i = r?.getAttribute("gs-id");
3820
- if (["delete", "clone"].includes(t.action)) {
3821
- if (e.stopPropagation(), !i) return;
3822
- let a = this._effectiveItems, o = a.find((e) => e.id === i);
3823
- if (!o) return;
3824
- let s = this._gridElement.querySelector(".grid-stack-item[active]") ?? this._activeItemElement;
3825
- if (!this._isControlled && s && s !== r) {
3826
- let e = s.getAttribute("gs-id"), t = a.find((t) => t.id === e), n = this._activeItemActionToggle, r = s;
3827
- this._cleanupActiveItem(s), n && e && t && this._dispatchItemActionEvent(n, "toggle", !1, r, e, t), this._activeItemElement = void 0, this._activeItemActionToggle = void 0, this._internalItemStates = {};
3828
- }
3829
- if (t.action === "delete") {
3830
- this._isControlled || this._clearGridItemUiStateForDelete(r);
3831
- let e = a.filter((e) => e.id !== i);
3832
- T({
3833
- target: this,
3834
- action: "delete",
3835
- actionType: t.type,
3836
- active: t.active,
3837
- items: a,
3838
- element: r,
3839
- itemId: i,
3840
- item: o,
3841
- updatedItems: e
3842
- }), this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 });
3843
- } else {
3844
- let e = {
3845
- ...structuredClone(o),
3846
- id: n()
3847
- }, i = this._simulateCloneLayout(e, o), s = i.find((t) => t.id === e.id) ?? e;
3848
- T({
3849
- target: this,
3850
- action: "clone",
3851
- actionType: t.type,
3852
- active: t.active,
3853
- items: a,
3854
- element: r,
3855
- itemId: e.id,
3856
- item: s,
3857
- originalElement: r,
3858
- updatedItems: i
3859
- }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3860
- }
3861
- return;
3862
- }
3863
- if (this._isControlled) {
3864
- if (e.stopPropagation(), !i) return;
3865
- let n = this.items.find((e) => e.id === i);
3866
- if (t.type === "toggle") {
3867
- let e = this._effectiveItemStates, n = t.active, r = this._computeNextItemStates(i, t.action, n);
3868
- E({
3869
- target: this,
3870
- itemStates: e,
3871
- updatedItemStates: r,
3872
- changedItemStates: { [i]: [t.action] }
3873
- });
3874
- } else T({
3875
- target: this,
3876
- action: t.action,
3877
- actionType: t.type,
3878
- active: t.active,
3879
- items: this.items,
3880
- element: r,
3881
- itemId: i,
3882
- item: n
3883
- });
3884
- r && !r.hasAttribute("active") && this._removeItemActionsMenuPopover(r);
3885
- return;
3886
- }
3887
- this._suppressItemStatesEvent = !0;
3888
- let a = fe({
3889
- event: e,
3890
- gridElement: this._gridElement,
3891
- items: this.items,
3892
- state: {
3893
- activeItemElement: this._activeItemElement,
3894
- activeItemActionToggle: this._activeItemActionToggle
3895
- },
3896
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
3897
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
3898
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3899
- });
3900
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = a.activeItemElement, this._activeItemActionToggle = a.activeItemActionToggle, t.type === "toggle" && i) {
3901
- let e = this._effectiveItemStates, n = a.activeItemElement === r && a.activeItemActionToggle === t.action, o = this._computeNextItemStates(i, t.action, n);
3902
- this._internalItemStates = o, E({
3903
- target: this,
3904
- itemStates: e,
3905
- updatedItemStates: o,
3906
- changedItemStates: this._diffItemStates(e, o)
3907
- });
3908
- }
3909
- };
3910
- }
3911
- static get styles() {
3912
- return [v(ne), v(qn)];
3913
- }
3914
- set items(e) {
3915
- let t = this._items, n = structuredClone(e ?? []);
3916
- this._validateItemsHaveIds(n, "items"), this._items = n, this._hasControlledItems = e !== void 0, this._isItemsControlled && !this._hasControlledItems && (this._setInternalItems(t, { reconcileStates: !0 }), this._initialItemsApplied = !0), this.requestUpdate("items", t);
3917
- }
3918
- get items() {
3919
- return this._effectiveItems;
3920
- }
3921
- set initialItems(e) {
3922
- let t = this._initialItems, n = structuredClone(e ?? []);
3923
- this._validateItemsHaveIds(n, "initialItems"), !(!this._isItemsControlled && this._initialItemsApplied) && (this._initialItems = n, this._isItemsControlled || (this._initialItemsApplied = !1), this.requestUpdate("initialItems", t));
3924
- }
3925
- get initialItems() {
3926
- return this._initialItems;
3927
- }
3928
- set itemStates(e) {
3929
- let t = this._itemStates;
3930
- this._itemStates = e ?? void 0, this.requestUpdate("itemStates", t);
3931
- }
3932
- get itemStates() {
3933
- return this._itemStates;
3934
- }
3935
- get _isControlled() {
3936
- return this.itemStates !== void 0;
3937
- }
3938
- get _isItemsControlled() {
3939
- return this._hasControlledItems;
3940
- }
3941
- get _effectiveItems() {
3942
- return this._isItemsControlled ? this._items : this._internalItems;
3943
- }
3944
- get _effectiveItemStates() {
3945
- return this._isControlled ? this.itemStates : this._internalItemStates;
3946
- }
3947
- _validateItemsHaveIds(e, t) {
3948
- for (let n = 0; n < e.length; n += 1) if (!e[n]?.id) throw Error(`luzmo-item-grid: ${t}[${n}] is missing required id`);
3949
- }
3950
- async _loadTheme(e) {
3951
- let t = this._initialized;
3952
- if (this._fullTheme = await sn({
3953
- theme: e,
3954
- currentTheme: this._fullTheme
3955
- }), this._initialized && pn(this.style, this._fullTheme), !this._initialized && this._gridElement && await new Promise((e) => {
3956
- requestAnimationFrame(() => {
3957
- this._initializeGrid(), e();
3958
- });
3959
- }), this._grid) {
3960
- let [e, t] = cn(this.theme);
3961
- this._grid.margin([e, t].join(" "));
3962
- }
3963
- t && this.requestUpdate();
3964
- }
3965
- firstUpdated() {
3966
- document.addEventListener("click", this._handleGridClick), this.addEventListener("keydown", this._handleKeyDown);
3967
- }
3968
- disconnectedCallback() {
3969
- super.disconnectedCallback(), this._cleanup(), document.removeEventListener("click", this._handleGridClick), this.removeEventListener("keydown", this._handleKeyDown);
3970
- }
3971
- willUpdate(e) {
3972
- if (super.willUpdate(e), e.has("_initialized") && (pn(this.style, this._fullTheme), this._initialized && this._grid && this._fullTheme?.margins)) {
3973
- let [e, t] = cn(this._fullTheme);
3974
- this._grid.margin([e, t].join(" "));
3975
- }
3976
- }
3977
- updated(e) {
3978
- super.updated(e);
3979
- let t = e.has("contentLanguage"), n = e.has("viewMode"), r = e.has("items"), i = e.has("initialItems"), a = r || e.has("_internalItemsVersion"), o = e.has("theme"), s = e.has("itemStates");
3980
- this._isItemsControlled && this.initialItems && this.initialItems.length > 0 ? this._hasWarnedControlledAndInitialItems ||= (console.warn("luzmo-item-grid: Both items and initialItems are set. The component will be treated as controlled (initialItems is ignored)."), !0) : this._hasWarnedControlledAndInitialItems = !1, !this._initialItemsApplied && !this._isItemsControlled && this._initialItems.length > 0 ? (this._setInternalItems(this._initialItems, { reconcileStates: !0 }), this._initialItemsApplied = !0) : i && !this._isItemsControlled && this._initialItems.length === 0 && !this._initialItemsApplied && (this._setInternalItems([], { reconcileStates: !0 }), this._initialItemsApplied = !0), this.itemStates !== void 0 && this.initialItemStates !== void 0 ? this._hasWarnedControlledAndInitialStates ||= (console.warn("luzmo-item-grid: Both itemStates and initialItemStates are set. The component will be treated as controlled (initialItemStates is ignored)."), !0) : this._hasWarnedControlledAndInitialStates = !1, !this._initialItemStatesApplied && this.initialItemStates && !this._isControlled && (this._internalItemStates = this._sanitizeInitialItemStates(this.initialItemStates), this._initialItemStatesApplied = !0), _e(this._effectiveItems), Gn({
3981
- initialized: this._initialized,
3982
- grid: this._grid,
3983
- hasItemsChanged: a,
3984
- gridItemElements: this._gridItemElements,
3985
- items: this._effectiveItems
3986
- }), r && this._reconcileStaleItemStates(), t && re(this._gridItemElements, this.contentLanguage), this._activeItemElement = Kn({
3987
- initialized: this._initialized,
3988
- grid: this._grid,
3989
- hasViewModeChanged: n,
3990
- viewMode: this.viewMode,
3991
- previousViewMode: e.get("viewMode"),
3992
- activeItemElement: this._activeItemElement,
3993
- gridElement: this._gridElement,
3994
- cleanupActiveItem: this._cleanupActiveItem.bind(this)
3995
- }), (o || !this._fullTheme && !this._initialized) && this._loadTheme(this.theme), (a || s) && this._initialized && this._applyItemStates();
3996
- }
3997
- _setInternalItems(e, t = {}) {
3998
- let n = structuredClone(e);
3999
- this._validateItemsHaveIds(n, "internalItems"), this._internalItems = n, _e(this._internalItems), this._internalItemsVersion += 1, t.reconcileStates && this._reconcileStaleItemStates();
4000
- }
4001
- _handleMouseover(e) {
4002
- if (this.viewMode) return;
4003
- let t = se(e.target);
4004
- t && this._createItemActionsMenuPopover(t);
4005
- }
4006
- _emitControlledClickAwayDeactivation(e) {
4007
- let t = this._effectiveItemStates, n = Object.entries(t).filter(([, e]) => e.length > 0);
4008
- if (!this._gridElement || n.length === 0) return;
4009
- let r = e.composedPath();
4010
- if (n.some(([e]) => {
4011
- let t = Array.from(this._gridElement.querySelectorAll(".grid-stack-item")).find((t) => t.getAttribute("gs-id") === e);
4012
- if (!t) return !1;
4013
- if (r.includes(t)) return !0;
4014
- let n = t.querySelector(".grid-item-actions-popover");
4015
- return n ? r.includes(n) : !1;
4016
- })) return;
4017
- let i = {}, a = { ...t };
4018
- for (let [e, t] of n) {
4019
- for (let n of t) a = this._computeNextItemStates(e, n, !1, a);
4020
- i[e] = [...t];
4021
- }
4022
- E({
4023
- target: this,
4024
- itemStates: t,
4025
- updatedItemStates: a,
4026
- changedItemStates: i
4027
- });
4028
- }
4029
- _cleanupActiveItem(e) {
4030
- this._activeItemElement = de({
4031
- item: e,
4032
- activeItemElement: this._activeItemElement,
4033
- gridElement: this._gridElement,
4034
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
4035
- });
4036
- }
4037
- _clearGridItemUiStateForDelete(e) {
4038
- e.hasAttribute("focused") && e.removeAttribute("focused"), e.hasAttribute("active") && e.removeAttribute("active"), this._removeItemActionsMenuPopover(e), this._focusedItemElement === e && (this._focusedItemElement = void 0), this._activeItemElement === e && (this._activeItemElement = void 0, this._activeItemActionToggle = void 0), this._gridElement.querySelector(".grid-stack-item[active]") || this._gridElement.removeAttribute("has-active-item");
4039
- }
4040
- _dispatchItemActionEvent(e, t, n, r, i, a, o, s) {
4041
- if (T({
4042
- target: this,
4043
- action: e,
4044
- actionType: t,
4045
- active: n,
4046
- items: this.items,
4047
- element: r,
4048
- itemId: i,
4049
- item: a,
4050
- deletedId: o,
4051
- originalElement: s
4052
- }), t === "toggle" && !this._suppressItemStatesEvent) {
4053
- let t = this._effectiveItemStates, r = this._computeNextItemStates(i, e, n);
4054
- this._isControlled || (this._internalItemStates = r), E({
4055
- target: this,
4056
- itemStates: t,
4057
- updatedItemStates: r,
4058
- changedItemStates: { [i]: [e] }
4059
- });
4060
- }
4061
- }
4062
- _sanitizeInitialItemStates(e) {
4063
- let t = Object.entries(e).filter(([, e]) => e.length > 0), n = t.length, r = t.reduce((e, [, t]) => e + t.length, 0);
4064
- if (n > 1 || r > 1) {
4065
- console.warn("luzmo-item-grid: initialItemStates contains multiple items or actions. In uncontrolled mode, only one item with one active action is supported at a time. Only the first item and its first action will be applied. Use controlled mode (itemStates) for multiple simultaneous active items.");
4066
- let [e, n] = t[0];
4067
- return { [e]: [n[0]] };
4068
- }
4069
- return { ...e };
4070
- }
4071
- _diffItemStates(e, t) {
4072
- let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
4073
- for (let i of r) {
4074
- let r = e[i] ?? [], a = t[i] ?? [], o = a.filter((e) => !r.includes(e)), s = r.filter((e) => !a.includes(e)), c = [...o, ...s];
4075
- c.length > 0 && (n[i] = c);
4076
- }
4077
- return n;
4078
- }
4079
- _computeNextItemStates(e, t, n, r) {
4080
- if (!this._isControlled) return n ? { [e]: [t] } : {};
4081
- let i = { ...r ?? this._effectiveItemStates };
4082
- if (n) {
4083
- let n = i[e] ?? [];
4084
- n.includes(t) || (i[e] = [...n, t]);
4085
- } else {
4086
- let n = i[e];
4087
- if (n) {
4088
- let r = n.filter((e) => e !== t);
4089
- r.length === 0 ? delete i[e] : i[e] = r;
4090
- }
4091
- }
4092
- return i;
4093
- }
4094
- _filterItemStatesToExistingItems(e) {
4095
- let t = new Set(this.items.map((e) => e.id).filter((e) => !!e)), n = {};
4096
- for (let [r, i] of Object.entries(e)) !t.has(r) || i.length === 0 || (n[r] = [...i]);
4097
- return n;
4098
- }
4099
- _reconcileStaleItemStates() {
4100
- let e = this._isControlled ? this._effectiveItemStates : this._internalItemStates, t = this._filterItemStatesToExistingItems(e), n = {};
4101
- for (let [r, i] of Object.entries(e)) !t[r] && i.length > 0 && (n[r] = [...i]);
4102
- Object.keys(n).length > 0 && E({
4103
- target: this,
4104
- itemStates: e,
4105
- updatedItemStates: t,
4106
- changedItemStates: n
4107
- }), this._isControlled || (this._internalItemStates = t);
4108
- }
4109
- _simulateCloneLayout(e, t) {
4110
- let n = this._effectiveItems;
4111
- if (!this._grid) return [...n, e];
4112
- let r = e.position ?? this._resolvePositionFromEngine(t.id);
4113
- if (!r) return [...n, e];
4114
- e = {
4115
- ...e,
4116
- position: { ...r }
4117
- };
4118
- let i = t.position ?? this._resolvePositionFromEngine(t.id);
4119
- this.clonedItemPositioning === "below-item" && i && (e.position = {
4120
- ...e.position,
4121
- col: i.col,
4122
- row: i.row + i.sizeY
4123
- });
4124
- let a = this.clonedItemPositioning !== "below-item" || !i, { updatedItems: o } = Ce({
4125
- item: e,
4126
- engine: this._grid.engine,
4127
- existingItems: this._enrichItemsWithEnginePositions(n),
4128
- autoPosition: a
4129
- });
4130
- return o;
4131
- }
4132
- _cleanup() {
4133
- for (let e of this._gridItemElements) this._cleanupActiveItem(e);
4134
- this._grid &&= (this._grid.destroy(), void 0), this._initialized = !1;
4135
- }
4136
- _restoreItemsLayout(e) {
4137
- if (!this._grid || !this._gridElement || e.length === 0 || !this._isItemsControlled) return;
4138
- let t = [];
4139
- for (let n of e) {
4140
- if (!n.id) continue;
4141
- let e = this._effectiveItems.find((e) => e.id === n.id);
4142
- if (!e) continue;
4143
- let r = e.position ?? this._resolvePositionFromEngine(e.id);
4144
- if (!r) continue;
4145
- let i = this._gridElement.querySelector(`.grid-stack-item[gs-id="${e.id}"]`);
4146
- i && (n.x !== r.col || n.y !== r.row || n.w !== r.sizeX || n.h !== r.sizeY) && t.push({
4147
- element: i,
4148
- position: r
4149
- });
4150
- }
4151
- if (t.length !== 0) {
4152
- this._suppressNextLayoutChangedEvent = !0, this._grid.batchUpdate();
4153
- for (let e of t) this._grid.update(e.element, {
4154
- x: e.position.col,
4155
- y: e.position.row,
4156
- w: e.position.sizeX,
4157
- h: e.position.sizeY
4158
- });
4159
- this._grid.batchUpdate(!1), setTimeout(() => {
4160
- this._suppressNextLayoutChangedEvent &&= !1;
4161
- }, 0);
4162
- }
4163
- }
4164
- _initializeGrid() {
4165
- this._initialized || !this._gridElement || (this._grid = Vn({
4166
- gridElement: this._gridElement,
4167
- gridItemElements: this._gridItemElements,
4168
- items: this._effectiveItems,
4169
- columns: this.columns ?? 48,
4170
- rowHeight: this.rowHeight ?? 16,
4171
- viewMode: this.viewMode,
4172
- fullTheme: this._fullTheme,
4173
- onCreateOrUpdateDimensionsHint: this._createOrUpdateDimensionsHint.bind(this),
4174
- onRemoveDimensionsHint: this._removeDimensionsHint.bind(this),
4175
- onChange: (e) => {
4176
- if (this._suppressNextLayoutChangedEvent) {
4177
- this._suppressNextLayoutChangedEvent = !1;
4178
- return;
4179
- }
4180
- let t = this._effectiveItems, n = Hn(t, e);
4181
- this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), ae({
4182
- target: this,
4183
- eventName: "luzmo-item-grid-layout-changed",
4184
- detail: {
4185
- element: this._gridElement,
4186
- grid: this._grid,
4187
- items: t,
4188
- updatedItems: n
4189
- }
4190
- }), this._restoreItemsLayout(e);
4191
- }
4192
- }), this._initialized = !0, ae({
4193
- target: this,
4194
- eventName: "luzmo-item-grid-ready",
4195
- detail: {
4196
- element: this._gridElement,
4197
- grid: this._grid,
4198
- items: this._effectiveItems
4199
- }
4200
- }), this._applyItemStates());
4201
- }
4202
- _applyItemStates() {
4203
- let e = this._filterItemStatesToExistingItems(this._effectiveItemStates), t = new Set(Object.entries(e).filter(([, e]) => e.length > 0).map(([e]) => e)), n = [], r = this._gridElement?.querySelectorAll(".grid-stack-item[active]");
4204
- if (r) for (let e of r) {
4205
- let n = e.getAttribute("gs-id");
4206
- (!n || !t.has(n)) && (e.removeAttribute("active"), this._removeItemActionsMenuPopover(e));
4207
- }
4208
- if (this._activeItemElement = void 0, this._activeItemActionToggle = void 0, t.size === 0) {
4209
- this._gridElement?.removeAttribute("has-active-item");
4210
- return;
4211
- }
4212
- for (let [t, r] of Object.entries(e)) {
4213
- if (r.length === 0) continue;
4214
- let e = this.getGridItemById(t);
4215
- if (!e?.element) continue;
4216
- let i = e.element;
4217
- i.setAttribute("active", "true"), this._gridElement?.setAttribute("has-active-item", "true"), this._createItemActionsMenuPopover(i, r);
4218
- for (let e of r) n.push({
4219
- element: i,
4220
- action: e
4221
- });
4222
- }
4223
- if (n.length === 0) {
4224
- this._gridElement?.removeAttribute("has-active-item"), this._activeItemElement = void 0, this._activeItemActionToggle = void 0;
4225
- return;
4226
- }
4227
- n.length === 1 ? (this._activeItemElement = n[0].element, this._activeItemActionToggle = n[0].action) : (this._activeItemElement = void 0, this._activeItemActionToggle = void 0);
4228
- }
4229
- _createOrUpdateDimensionsHint(e, t, n) {
4230
- Un({
4231
- element: e,
4232
- numberOfColumns: t,
4233
- numberOfRows: n,
4234
- offsetHint: ln(this.theme)
4235
- });
4236
- }
4237
- _removeDimensionsHint(e) {
4238
- Wn(e);
4239
- }
4240
- get grid() {
4241
- return this._grid;
4242
- }
4243
- get gridItems() {
4244
- return Se(this.items, this._gridElement);
4245
- }
4246
- registerRenderer(e, t) {
4247
- this.renderers = {
4248
- ...this.renderers,
4249
- [e]: t
4250
- };
4251
- }
4252
- _renderOverlayContent(e, t) {
4253
- return hn({
4254
- item: e,
4255
- activeActions: t,
4256
- defaultItemActionsMenu: this.defaultItemActionsMenu,
4257
- placementItemActionsMenu: this.placementItemActionsMenu,
4258
- language: this.language,
4259
- handleAction: this._handleAction,
4260
- itemActionsDocumentPopover: this.itemActionsDocumentPopover
4261
- });
4262
- }
4263
- _createItemActionsMenuPopover(e, t) {
4264
- Zt({
4265
- element: e,
4266
- activeActions: t,
4267
- getGridItemById: this.getGridItemById.bind(this),
4268
- placementItemActionsMenu: this.placementItemActionsMenu,
4269
- renderOverlayContent: this._renderOverlayContent.bind(this),
4270
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
4271
- itemActionsDocumentPopover: this.itemActionsDocumentPopover
4272
- });
4273
- }
4274
- _removeItemActionsMenuPopover(e) {
4275
- Qt(e);
4276
- }
4277
- getGridItemById(e) {
4278
- return this.gridItems.find((t) => t.item.id === e);
4279
- }
4280
- scrollToItem(e) {
4281
- let t = this.getGridItemById(e);
4282
- if (!t?.element) return;
4283
- let n = t.element.getBoundingClientRect();
4284
- (n.bottom > window.innerHeight || n.top < 0) && t.element.scrollIntoView({
4285
- behavior: "smooth",
4286
- block: "center"
4287
- });
4288
- }
4289
- _createMissingItemError(e) {
4290
- return /* @__PURE__ */ Error(`Grid item with id "${e}" not found`);
4291
- }
4292
- _requireGridItem(e) {
4293
- let t = this._effectiveItems.find((t) => t.id === e);
4294
- if (!t) throw this._createMissingItemError(e);
4295
- return t;
4296
- }
4297
- _resolvePositionFromEngine(e) {
4298
- let t = this._grid?.engine.nodes.find((t) => t.id === e);
4299
- if (!(!t || t.x == null || t.y == null || t.w == null || t.h == null)) return {
4300
- col: t.x,
4301
- row: t.y,
4302
- sizeX: t.w,
4303
- sizeY: t.h
4304
- };
4305
- }
4306
- _requireGridItemWithPosition(e) {
4307
- let t = this._requireGridItem(e);
4308
- if (!t.position) {
4309
- let n = this._resolvePositionFromEngine(e);
4310
- if (!n) throw Error(`Grid item with id "${e}" does not have a position`);
4311
- return {
4312
- ...t,
4313
- position: n
4314
- };
4315
- }
4316
- return t;
4317
- }
4318
- _assertAddItemHasId(e) {
4319
- if (!e.id) throw Error("addGridItem requires newItem.id");
4320
- }
4321
- addGridItem(e) {
4322
- if (this._assertAddItemHasId(e), this._effectiveItems.some((t) => t.id === e.id)) throw Error(`addGridItem rejected: an item with id "${e.id}" already exists`);
4323
- let t = Te(e), n = this._effectiveItems;
4324
- if (!this._grid) {
4325
- let r = e.position?.col == null || e.position?.row == null ? {
4326
- ...t,
4327
- position: void 0
4328
- } : t, i = [...n, r];
4329
- return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4330
- }
4331
- if (!t.position) {
4332
- let e = [...n, t];
4333
- return this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 }), e;
4334
- }
4335
- let r = e.position?.col == null || e.position?.row == null, { updatedItems: i } = Ce({
4336
- item: t,
4337
- engine: this._grid.engine,
4338
- existingItems: n,
4339
- autoPosition: r
4340
- });
4341
- return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4342
- }
4343
- _enrichItemsWithEnginePositions(e) {
4344
- return this._grid ? e.map((e) => {
4345
- if (e.position) return e;
4346
- let t = this._resolvePositionFromEngine(e.id);
4347
- return t ? {
4348
- ...e,
4349
- position: t
4350
- } : e;
4351
- }) : e;
4352
- }
4353
- _updateGridItemPosition(e, t) {
4354
- let n = this._effectiveItems, r = this._requireGridItemWithPosition(e);
4355
- return n.map((n) => {
4356
- if (n.id !== e) return n;
4357
- let i = n.position ?? r.position;
4358
- return {
4359
- ...n,
4360
- position: {
4361
- ...i,
4362
- ...t
4363
- }
4364
- };
4365
- });
4366
- }
4367
- _dispatchLayoutChangedEvent(e, t) {
4368
- ae({
4369
- target: this,
4370
- eventName: "luzmo-item-grid-layout-changed",
4371
- detail: {
4372
- element: this._gridElement,
4373
- grid: this._grid,
4374
- items: e,
4375
- updatedItems: t
4376
- }
4377
- });
4378
- }
4379
- _updateItemField(e, t) {
4380
- let n = this._effectiveItems;
4381
- this._requireGridItem(e);
4382
- let r = n.map((n) => n.id === e ? {
4383
- ...n,
4384
- ...t
4385
- } : n);
4386
- return this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4387
- }
4388
- removeGridItem(e) {
4389
- let t = this._effectiveItems, n = this._requireGridItem(e), r = t.filter((t) => t.id !== e);
4390
- return T({
4391
- target: this,
4392
- action: "delete",
4393
- actionType: "button",
4394
- active: !1,
4395
- items: t,
4396
- element: this.getGridItemById(e)?.element ?? this,
4397
- itemId: e,
4398
- item: n,
4399
- updatedItems: r
4400
- }), this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4401
- }
4402
- cloneGridItem(e) {
4403
- let t = this._effectiveItems, r = this._requireGridItem(e), i = {
4404
- ...structuredClone(r),
4405
- id: n()
4406
- }, a = this._simulateCloneLayout(i, r), o = a.find((e) => e.id === i.id) ?? i;
4407
- return T({
4408
- target: this,
4409
- action: "clone",
4410
- actionType: "button",
4411
- active: !1,
4412
- items: t,
4413
- element: this.getGridItemById(e)?.element ?? this,
4414
- itemId: i.id,
4415
- item: o,
4416
- originalElement: this.getGridItemById(e)?.element,
4417
- updatedItems: a
4418
- }), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4419
- }
4420
- updateGridItemPosition(e, t) {
4421
- let n = this._updateGridItemPosition(e, t);
4422
- return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4423
- }
4424
- updateGridItemSize(e, t) {
4425
- let n = this._updateGridItemPosition(e, t);
4426
- return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4427
- }
4428
- updateGridItemSlots(e, t) {
4429
- return this._updateItemField(e, { slots: t });
4430
- }
4431
- updateGridItemOptions(e, t) {
4432
- return this._updateItemField(e, { options: t });
4433
- }
4434
- updateGridItemFilters(e, t) {
4435
- return this._updateItemField(e, { filters: t });
4436
- }
4437
- updateGridItemType(e, t) {
4438
- return this._updateItemField(e, { type: t });
4439
- }
4440
- updateGridItem(e, t) {
4441
- let n = this._effectiveItems;
4442
- this._requireGridItem(e);
4443
- let { position: r, ...i } = t, a;
4444
- return r && this._grid ? (a = we({
4445
- itemId: e,
4446
- patch: r,
4447
- engine: this._grid.engine,
4448
- existingItems: this._enrichItemsWithEnginePositions(n)
4449
- }), a = a.map((t) => t.id === e ? {
4450
- ...t,
4451
- ...i
4452
- } : t)) : a = n.map((t) => t.id === e ? {
4453
- ...t,
4454
- ...i,
4455
- ...r && t.position ? { position: {
4456
- ...t.position,
4457
- ...r
4458
- } } : r ? { position: r } : {}
4459
- } : t), t.position && this._dispatchLayoutChangedEvent(n, a), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4460
- }
4461
- async triggerItemAction(e, t, n) {
4462
- await this.updateComplete;
4463
- let r = this.getGridItemById(e);
4464
- if (!r?.element) {
4465
- console.warn(`Grid item with id "${e}" not found`);
4466
- return;
4467
- }
4468
- if (this._isControlled) return this._triggerControlledItemAction(e, t, n);
4469
- this._suppressItemStatesEvent = !0;
4470
- let i = me({
4471
- gridElement: this._gridElement,
4472
- items: this.items,
4473
- gridItemData: r,
4474
- itemId: e,
4475
- action: t,
4476
- options: n,
4477
- state: {
4478
- activeItemElement: this._activeItemElement,
4479
- activeItemActionToggle: this._activeItemActionToggle
4480
- },
4481
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
4482
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
4483
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
4484
- });
4485
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = i.state.activeItemElement, this._activeItemActionToggle = i.state.activeItemActionToggle, i.result !== void 0) {
4486
- let n = this._effectiveItemStates, r = this._computeNextItemStates(e, t, i.result);
4487
- this._internalItemStates = r, E({
4488
- target: this,
4489
- itemStates: n,
4490
- updatedItemStates: r,
4491
- changedItemStates: this._diffItemStates(n, r)
4492
- });
4493
- }
4494
- return i.result;
4495
- }
4496
- activateItemAction(e, t, n) {
4497
- return this.triggerItemAction(e, t, n);
4498
- }
4499
- _triggerControlledItemAction(e, t, n) {
4500
- let r = (this._effectiveItemStates[e] ?? []).includes(t), i = n?.active ?? !r;
4501
- if (n?.active !== void 0 && i === r) return r;
4502
- let a = this._effectiveItemStates, o = this._computeNextItemStates(e, t, i);
4503
- return E({
4504
- target: this,
4505
- itemStates: a,
4506
- updatedItemStates: o,
4507
- changedItemStates: { [e]: [t] }
4508
- }), i;
4509
- }
4510
- deactivateItems() {
4511
- if (this._isControlled) {
4512
- let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4513
- itemId: e,
4514
- action: t
4515
- })));
4516
- if (t.length === 0) return 0;
4517
- let n = {}, r = { ...e };
4518
- for (let e of t) r = this._computeNextItemStates(e.itemId, e.action, !1, r), n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4519
- return E({
4520
- target: this,
4521
- itemStates: e,
4522
- updatedItemStates: r,
4523
- changedItemStates: n
4524
- }), new Set(t.map((e) => e.itemId)).size;
4525
- }
4526
- let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4527
- itemId: e,
4528
- action: t
4529
- })));
4530
- this._suppressItemStatesEvent = !0;
4531
- let n = he({
4532
- gridElement: this._gridElement,
4533
- items: this.items,
4534
- state: {
4535
- activeItemElement: this._activeItemElement,
4536
- activeItemActionToggle: this._activeItemActionToggle
4537
- },
4538
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
4539
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
4540
- });
4541
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = n.state.activeItemElement, this._activeItemActionToggle = n.state.activeItemActionToggle, this._isControlled || (this._internalItemStates = {}), t.length > 0) {
4542
- let n = {};
4543
- for (let e of t) n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4544
- E({
4545
- target: this,
4546
- itemStates: e,
4547
- updatedItemStates: {},
4548
- changedItemStates: n
4549
- });
4550
- }
4551
- return n.deactivatedCount;
4552
- }
4553
- _renderGrid() {
4554
- return vn({
4555
- items: this.items,
4556
- initialized: this._initialized,
4557
- viewMode: this.viewMode,
4558
- contentLanguage: this.contentLanguage,
4559
- fullTheme: this._fullTheme,
4560
- appServer: this.appServer,
4561
- apiHost: this.apiHost,
4562
- authKey: this.authKey,
4563
- authToken: this.authToken,
4564
- columns: this.columns ?? 48,
4565
- ensureGridItemId: (e) => ve(e),
4566
- handleMouseover: this._handleMouseover.bind(this),
4567
- handleMouseout: this._handleMouseout,
4568
- handleFocus: this._handleFocus,
4569
- handleBlur: this._handleBlur
4570
- });
4571
- }
4572
- render() {
4573
- return this._renderGrid();
4574
- }
4575
- };
4576
- //#endregion
4577
- //#region src/components/item-grid/index.ts
4578
- e([y({
4579
- type: String,
4580
- attribute: "app-server",
4581
- reflect: !0
4582
- })], $.prototype, "appServer", void 0), e([y({
4583
- type: String,
4584
- attribute: "api-host",
4585
- reflect: !0
4586
- })], $.prototype, "apiHost", void 0), e([y({
4587
- type: String,
4588
- attribute: "auth-key",
4589
- reflect: !0
4590
- })], $.prototype, "authKey", void 0), e([y({
4591
- type: String,
4592
- attribute: "auth-token",
4593
- reflect: !0
4594
- })], $.prototype, "authToken", void 0), e([y({
4595
- type: Number,
4596
- attribute: "cache-time",
4597
- reflect: !0
4598
- })], $.prototype, "cacheTime", void 0), e([y({
4599
- type: String,
4600
- reflect: !0
4601
- })], $.prototype, "language", void 0), e([y({
4602
- type: String,
4603
- attribute: "content-language",
4604
- reflect: !0
4605
- })], $.prototype, "contentLanguage", void 0), e([y({
4606
- type: Number,
4607
- reflect: !0
4608
- })], $.prototype, "columns", void 0), e([y({
4609
- type: Number,
4610
- reflect: !0,
4611
- attribute: "row-height"
4612
- })], $.prototype, "rowHeight", void 0), e([y({
4613
- type: Boolean,
4614
- reflect: !0,
4615
- attribute: "view-mode"
4616
- })], $.prototype, "viewMode", void 0), e([y({
4617
- type: Boolean,
4618
- reflect: !0,
4619
- attribute: "item-actions-document-popover"
4620
- })], $.prototype, "itemActionsDocumentPopover", void 0), e([y({
4621
- type: String,
4622
- reflect: !0,
4623
- attribute: "placement-item-actions-menu"
4624
- })], $.prototype, "placementItemActionsMenu", void 0), e([y({
4625
- type: Array,
4626
- reflect: !0,
4627
- attribute: "default-item-actions-menu"
4628
- })], $.prototype, "defaultItemActionsMenu", void 0), e([y({
4629
- type: String,
4630
- reflect: !0,
4631
- attribute: "cloned-item-positioning"
4632
- })], $.prototype, "clonedItemPositioning", void 0), e([y({
4633
- type: Object,
4634
- reflect: !0
4635
- })], $.prototype, "theme", void 0), e([y({
4636
- type: Array,
4637
- reflect: !1
4638
- })], $.prototype, "items", null), e([y({
4639
- type: Array,
4640
- reflect: !1,
4641
- attribute: "initial-items"
4642
- })], $.prototype, "initialItems", null), e([y({
4643
- type: Object,
4644
- reflect: !1
4645
- })], $.prototype, "renderers", void 0), e([y({
4646
- type: Object,
4647
- reflect: !1,
4648
- attribute: "item-states"
4649
- })], $.prototype, "itemStates", null), e([y({
4650
- type: Object,
4651
- reflect: !1,
4652
- attribute: "initial-item-states"
4653
- })], $.prototype, "initialItemStates", void 0), e([ee()], $.prototype, "_initialized", void 0), e([b(".grid-stack")], $.prototype, "_gridElement", void 0), e([x(".luzmo-item-grid-item")], $.prototype, "_gridItemElements", void 0), e([ee()], $.prototype, "_internalItemsVersion", void 0), customElements.get("luzmo-item-grid") || customElements.define("luzmo-item-grid", $);
4654
- //#endregion
4655
- export { $ as t };