@luzmo/analytics-components-kit 1.0.9-beta.14 → 1.0.9-beta.15

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 (1663) hide show
  1. package/components/ad-hoc-slot-content-DWUxMq1x.js +28 -0
  2. package/components/ad-hoc-slot-content-DsRsJzsY.cjs +20 -0
  3. package/components/add-to-dashboard/index.cjs +1 -1
  4. package/components/add-to-dashboard/index.js +1 -2
  5. package/components/add-to-dashboard-NcVHlqrc.js +796 -0
  6. package/components/add-to-dashboard-NwsCPIlg.cjs +166 -0
  7. package/components/ai-chat/index.cjs +1 -1
  8. package/components/ai-chat/index.js +2 -2
  9. package/components/ai-chat-BNcSadGI.cjs +393 -0
  10. package/components/ai-chat-CL894viH.js +4371 -0
  11. package/components/ai-interaction-textarea/index.cjs +1 -1
  12. package/components/ai-interaction-textarea/index.js +1 -2
  13. package/components/ai-interaction-textarea-BmvVVCmL.cjs +101 -0
  14. package/components/ai-interaction-textarea-CnQ2FBc7.js +797 -0
  15. package/components/area-chart-options.config-D99tvt_H.cjs +20 -0
  16. package/components/area-chart-options.config-Dnw8v2CA.js +218 -0
  17. package/components/area-chart-options.de-DXjvU5SP.js +94 -0
  18. package/components/area-chart-options.en-C97TC7i-.js +94 -0
  19. package/components/area-chart-options.es-BRZqqMoH.js +94 -0
  20. package/components/area-chart-options.fr-DdxaNKyG.js +94 -0
  21. package/components/area-chart-options.nl-COBLkBRQ.js +94 -0
  22. package/components/area-chart-positioning.config-BwEs73dl.cjs +20 -0
  23. package/components/area-chart-positioning.config-ygE3-JQW.js +54 -0
  24. package/components/area-chart-slots.config-C-NPoK3J.cjs +20 -0
  25. package/components/area-chart-slots.config-D05HNoJK.js +54 -0
  26. package/components/axis-options.config-Cs5ItswD.js +269 -0
  27. package/components/axis-options.i18n-Bu6vtdMv.js +485 -0
  28. package/components/bar-chart-options.config-BQ-PbucR.cjs +20 -0
  29. package/components/bar-chart-options.config-DHO8grQN.js +265 -0
  30. package/components/bar-chart-options.de-CP33NpEm.js +110 -0
  31. package/components/bar-chart-options.en-Bz116FHK.js +110 -0
  32. package/components/bar-chart-options.es-CXu-5of-.js +110 -0
  33. package/components/bar-chart-options.fr-m4kyuObV.js +110 -0
  34. package/components/bar-chart-options.nl-IYu6IncY.js +110 -0
  35. package/components/bar-chart-positioning.config-CPdIIPp0.cjs +20 -0
  36. package/components/bar-chart-positioning.config-GjqSe7CO.js +58 -0
  37. package/components/bar-chart-slots.config-AkSBrmIW.js +49 -0
  38. package/components/bar-chart-slots.config-CHR8QVRY.cjs +20 -0
  39. package/components/base-CGDNY_7v.cjs +20 -0
  40. package/components/base-rAte-QzM.js +240 -0
  41. package/components/base-store-SgJsjLap.cjs +20 -0
  42. package/components/base-store-g0dt7ru7.js +150 -0
  43. package/components/bliss-BEt3SIfb.js +74 -0
  44. package/components/box-plot-options.config-BcGisybi.cjs +20 -0
  45. package/components/box-plot-options.config-BgiiwSrU.js +351 -0
  46. package/components/box-plot-options.de-BNdJuZsx.js +107 -0
  47. package/components/box-plot-options.en-CnmnMRfg.js +107 -0
  48. package/components/box-plot-options.es-B6RVPU6K.js +107 -0
  49. package/components/box-plot-options.fr-CQVriCXK.js +107 -0
  50. package/components/box-plot-options.nl-bHdxhoY1.js +107 -0
  51. package/components/box-plot-positioning.config-DDUgau2U.js +47 -0
  52. package/components/box-plot-positioning.config-mSIgw923.cjs +20 -0
  53. package/components/box-plot-slots.config-3bkXggok.cjs +20 -0
  54. package/components/box-plot-slots.config-DGx5e4nS.js +39 -0
  55. package/components/bubble-chart-options.config-DMk8Yjfk.cjs +20 -0
  56. package/components/bubble-chart-options.config-UM9w5tBs.js +141 -0
  57. package/components/bubble-chart-options.de-B-CE9HH_.js +48 -0
  58. package/components/bubble-chart-options.en-Dz03_J0z.js +48 -0
  59. package/components/bubble-chart-options.es-F1mNRXZq.js +48 -0
  60. package/components/bubble-chart-options.fr-B8lDK-z9.js +48 -0
  61. package/components/bubble-chart-options.nl-Bg5UEsxM.js +48 -0
  62. package/components/bubble-chart-positioning.config-C3UubNLh.js +54 -0
  63. package/components/bubble-chart-positioning.config-CuOxvXYf.cjs +20 -0
  64. package/components/bubble-chart-slots.config-BHB8xqfy.js +46 -0
  65. package/components/bubble-chart-slots.config-DI8-pPaE.cjs +20 -0
  66. package/components/bullet-chart-options.config-D9HklLUI.js +94 -0
  67. package/components/bullet-chart-options.config-DUAnmPGW.cjs +20 -0
  68. package/components/bullet-chart-options.de-yq4D8cLz.js +46 -0
  69. package/components/bullet-chart-options.en-CwZVlb8N.js +46 -0
  70. package/components/bullet-chart-options.es-DgyTWiW3.js +46 -0
  71. package/components/bullet-chart-options.fr-BfR1KSqo.js +46 -0
  72. package/components/bullet-chart-options.nl-CkCZ8-Tq.js +46 -0
  73. package/components/bullet-chart-positioning.config-BuFhsRMP.js +55 -0
  74. package/components/bullet-chart-positioning.config-DB1Fmx1d.cjs +20 -0
  75. package/components/bullet-chart-slots.config-BG6XKLJg.cjs +20 -0
  76. package/components/bullet-chart-slots.config-ujoj2rwb.js +45 -0
  77. package/components/calculate-data-field-icon-BrFZHlNR.js +148 -0
  78. package/components/chart-helpers-Dng_LGfq.js +249 -0
  79. package/components/choropleth-map-options.config-CXDGMiSJ.cjs +20 -0
  80. package/components/choropleth-map-options.config-D9-u-NwX.js +351 -0
  81. package/components/choropleth-map-options.de-CjnC-9AW.js +71 -0
  82. package/components/choropleth-map-options.en-DKJmimPI.js +71 -0
  83. package/components/choropleth-map-options.es-BWw823D1.js +71 -0
  84. package/components/choropleth-map-options.fr-B6P5TF2j.js +71 -0
  85. package/components/choropleth-map-options.nl-JZsLCT82.js +71 -0
  86. package/components/choropleth-map-positioning.config-6PsCyhsn.js +54 -0
  87. package/components/choropleth-map-positioning.config-fc5IcNoB.cjs +20 -0
  88. package/components/choropleth-map-slots.config-C7e7ZKYl.js +52 -0
  89. package/components/choropleth-map-slots.config-DQUaQxxY.cjs +20 -0
  90. package/components/circle-pack-chart-options.config-DMNMYWZX.cjs +20 -0
  91. package/components/circle-pack-chart-options.config-DQs-uitJ.js +59 -0
  92. package/components/circle-pack-chart-options.de-C0s0u4cP.js +30 -0
  93. package/components/circle-pack-chart-options.en-1SlxJ8D2.js +30 -0
  94. package/components/circle-pack-chart-options.es-n3EDSGVP.js +30 -0
  95. package/components/circle-pack-chart-options.fr-ZwBi9b32.js +30 -0
  96. package/components/circle-pack-chart-options.nl-DtTJ6Vaj.js +30 -0
  97. package/components/circle-pack-chart-positioning.config-DRHNE10H.js +47 -0
  98. package/components/circle-pack-chart-positioning.config-DvQfzJ_Z.cjs +20 -0
  99. package/components/circle-pack-chart-slots.config-37GyNjk7.cjs +20 -0
  100. package/components/circle-pack-chart-slots.config-CA-fJ_Q1.js +37 -0
  101. package/components/circular-gauge-options.config-B4Hk-AXi.cjs +20 -0
  102. package/components/circular-gauge-options.config-CnWE16oE.js +192 -0
  103. package/components/circular-gauge-options.de-D0pLBMXo.js +56 -0
  104. package/components/circular-gauge-options.en-PYvfXZQL.js +56 -0
  105. package/components/circular-gauge-options.es-DfoNDSPk.js +56 -0
  106. package/components/circular-gauge-options.fr-DbmqrGCc.js +56 -0
  107. package/components/circular-gauge-options.nl-iHEN3ip8.js +56 -0
  108. package/components/circular-gauge-positioning.config-CGOX-Vyn.js +47 -0
  109. package/components/circular-gauge-positioning.config-OX1-mPls.cjs +20 -0
  110. package/components/circular-gauge-slots.config-L-NZc7MY.cjs +20 -0
  111. package/components/circular-gauge-slots.config-UYWufX3Z.js +38 -0
  112. package/components/classic-B9EbWt-B.js +81 -0
  113. package/components/classic-dark-BRDXw-Ec.js +72 -0
  114. package/components/color-CQcCK-_O.js +3810 -0
  115. package/components/color-DKdzPrQX.cjs +20 -0
  116. package/components/color-palettes-B194TZ0a.js +1473 -0
  117. package/components/color-range-utils-BCFQAeY1.cjs +20 -0
  118. package/components/color-range-utils-CUCTsRXM.js +62 -0
  119. package/components/column-chart-options.config-BYDJTVx6.js +264 -0
  120. package/components/column-chart-options.config-CyD8V7j4.cjs +20 -0
  121. package/components/column-chart-options.de-BPRcyVXO.js +110 -0
  122. package/components/column-chart-options.en-BmtcG_3n.js +110 -0
  123. package/components/column-chart-options.es-BNDjc5Cj.js +110 -0
  124. package/components/column-chart-options.fr-Cyz4XUm_.js +110 -0
  125. package/components/column-chart-options.nl-Dci9pl7S.js +110 -0
  126. package/components/column-chart-positioning.config-BVYa1A42.js +54 -0
  127. package/components/column-chart-positioning.config-NbQbSa8P.cjs +20 -0
  128. package/components/column-chart-slots.config-h3Kwc61j.cjs +20 -0
  129. package/components/column-chart-slots.config-i2QvhELq.js +49 -0
  130. package/components/combination-chart-options.config-B3zsSUFx.js +156 -0
  131. package/components/combination-chart-options.config-Cg3ZEKMe.cjs +20 -0
  132. package/components/combination-chart-options.de-LcfaqPiY.js +73 -0
  133. package/components/combination-chart-options.en-CKTmecmz.js +73 -0
  134. package/components/combination-chart-options.es-BZvT5fH1.js +73 -0
  135. package/components/combination-chart-options.fr-niQosk62.js +73 -0
  136. package/components/combination-chart-options.nl-Co7JI3vH.js +73 -0
  137. package/components/combination-chart-positioning.config-B7DtfzCV.cjs +20 -0
  138. package/components/combination-chart-positioning.config-yHAgveni.js +47 -0
  139. package/components/combination-chart-slots.config-CxkpKksB.js +42 -0
  140. package/components/combination-chart-slots.config-DV6RMdjE.cjs +20 -0
  141. package/components/conditional-number-options.config-CsEhIU-T.cjs +20 -0
  142. package/components/conditional-number-options.config-DObu2Erh.js +209 -0
  143. package/components/conditional-number-options.de-BEYC3Tkn.js +59 -0
  144. package/components/conditional-number-options.en-CobRwTMJ.js +59 -0
  145. package/components/conditional-number-options.es-CURPGt9l.js +59 -0
  146. package/components/conditional-number-options.fr-DbiJCo-x.js +59 -0
  147. package/components/conditional-number-options.nl-DRbK4wGL.js +59 -0
  148. package/components/conditional-number-positioning.config-BZS99jTT.cjs +20 -0
  149. package/components/conditional-number-positioning.config-DhixJEpv.js +47 -0
  150. package/components/conditional-number-slots.config-CggROf5Y.js +38 -0
  151. package/components/conditional-number-slots.config-Opfq5oAT.cjs +20 -0
  152. package/components/convert-datasets-to-data-fields-DZJstVS2.js +67 -0
  153. package/components/create-lazy-loader-BFqDG_WK.js +30 -0
  154. package/components/cs-OL9Kdu8F.js +125 -0
  155. package/components/da-B0rljMwE.js +125 -0
  156. package/components/data-broker-C1Iz71TN.js +1675 -0
  157. package/components/data-broker-DCghLjhq.cjs +20 -0
  158. package/components/data-field/index.cjs +1 -1
  159. package/components/data-field/index.js +1 -2
  160. package/components/data-field-B9466d0w.js +120 -0
  161. package/components/data-field-BORlpZZk.cjs +54 -0
  162. package/components/data-field-level/index.cjs +1 -1
  163. package/components/data-field-level/index.js +1 -2
  164. package/components/data-field-level-DOEYwcvM.cjs +55 -0
  165. package/components/data-field-level-GrX6yhPV.js +243 -0
  166. package/components/data-field-panel/index.cjs +1 -1
  167. package/components/data-field-panel/index.js +1 -2
  168. package/components/data-field-panel-BedJ9V2r.js +373 -0
  169. package/components/data-field-panel-DmMkAYAz.cjs +87 -0
  170. package/components/data-fields-select/index.cjs +1 -1
  171. package/components/data-fields-select/index.js +1 -2
  172. package/components/data-fields-select-BOqmoE7n.cjs +43 -0
  173. package/components/data-fields-select-af1HZLWS.js +291 -0
  174. package/components/dataset-icon/index.cjs +1 -1
  175. package/components/dataset-icon/index.js +1 -2
  176. package/components/dataset-icon-CmgJeTKm.cjs +62 -0
  177. package/components/dataset-icon-DAeC0MBI.js +109 -0
  178. package/components/dataset-selector-list/index.cjs +1 -1
  179. package/components/dataset-selector-list/index.js +1 -2
  180. package/components/dataset-selector-list-BzI8n_dB.js +319 -0
  181. package/components/dataset-selector-list-CmZaj20L.cjs +75 -0
  182. package/components/dataset-selector-row/index.cjs +1 -1
  183. package/components/dataset-selector-row/index.js +1 -2
  184. package/components/dataset-selector-row-D_7iBmdm.js +442 -0
  185. package/components/dataset-selector-row-mOGioXLM.cjs +104 -0
  186. package/components/date-comparison-filter-options.config-BAhHCVlo.js +125 -0
  187. package/components/date-comparison-filter-options.config-vCXOhzkp.cjs +20 -0
  188. package/components/date-comparison-filter-options.de-CHAepese.js +54 -0
  189. package/components/date-comparison-filter-options.en-GnqPLNOy.js +54 -0
  190. package/components/date-comparison-filter-options.es-CYGgumPR.js +54 -0
  191. package/components/date-comparison-filter-options.fr-CBR4gt5a.js +54 -0
  192. package/components/date-comparison-filter-options.nl-BleWGdSU.js +54 -0
  193. package/components/date-comparison-filter-positioning.config-DYLCdy0p.js +37 -0
  194. package/components/date-comparison-filter-slots.config-ADyQbpVL.js +36 -0
  195. package/components/date-comparison-filter-slots.config-BdvwoigA.cjs +20 -0
  196. package/components/date-filter-options.config-BrfWBIvy.js +117 -0
  197. package/components/date-filter-options.config-D_SMC4NH.cjs +20 -0
  198. package/components/date-filter-options.de-C0_La4e1.js +50 -0
  199. package/components/date-filter-options.en-D61ub6Of.js +50 -0
  200. package/components/date-filter-options.es-DIkmpKCh.js +50 -0
  201. package/components/date-filter-options.fr-DV41ThRu.js +50 -0
  202. package/components/date-filter-options.nl-BitqNpNd.js +50 -0
  203. package/components/date-filter-positioning.config-Bm6cN9d0.js +37 -0
  204. package/components/date-filter-slots.config-dk86EThT.js +36 -0
  205. package/components/date-filter-slots.config-hsRo3Wiz.cjs +20 -0
  206. package/components/de-AOtjGNGZ.js +599 -0
  207. package/components/de-B7zGHvA7.js +137 -0
  208. package/components/decompose-numeric-format-BoLX-V2j.js +35 -0
  209. package/components/decorate-B2TzfnLZ.js +27 -0
  210. package/components/default-C9MysWm4.js +77 -0
  211. package/components/default-acceptable-data-field-types-BNgYdork.js +52 -0
  212. package/components/default-acceptable-data-field-types-BUNRNPPB.cjs +20 -0
  213. package/components/default-dark-1RNfdcoq.js +77 -0
  214. package/components/defineProperty-DIhE-wKn.js +54 -0
  215. package/components/display-settings/index.cjs +1 -1
  216. package/components/display-settings/index.js +1 -2
  217. package/components/display-settings-DaZ3CiKB.cjs +143 -0
  218. package/components/display-settings-Qwp9oJo6.js +312 -0
  219. package/components/display-settings-binning/index.cjs +1 -1
  220. package/components/display-settings-binning/index.js +1 -2
  221. package/components/display-settings-binning-D5zhoC7D.cjs +56 -0
  222. package/components/display-settings-binning-IPVCvx8a.js +109 -0
  223. package/components/display-settings-datetime/index.cjs +1 -1
  224. package/components/display-settings-datetime/index.js +1 -2
  225. package/components/display-settings-datetime-DgBBSYfC.js +412 -0
  226. package/components/display-settings-datetime-t70VEfHe.cjs +217 -0
  227. package/components/display-settings-grand-totals/index.cjs +1 -1
  228. package/components/display-settings-grand-totals/index.js +1 -2
  229. package/components/display-settings-grand-totals-AFtKeeeG.js +88 -0
  230. package/components/display-settings-grand-totals-C_Fzk7oV.cjs +44 -0
  231. package/components/display-settings-numeric/index.cjs +1 -1
  232. package/components/display-settings-numeric/index.js +1 -2
  233. package/components/display-settings-numeric-BF8BA5MH.cjs +190 -0
  234. package/components/display-settings-numeric-DeuXT1UR.js +478 -0
  235. package/components/display-settings-period-over-period/index.cjs +1 -1
  236. package/components/display-settings-period-over-period/index.js +1 -2
  237. package/components/display-settings-period-over-period-B8Ne3lq-.cjs +227 -0
  238. package/components/display-settings-period-over-period-CzxnyVF7.js +441 -0
  239. package/components/donut-chart-options.config-B2vxfMyh.js +225 -0
  240. package/components/donut-chart-options.config-DX-spmaZ.cjs +20 -0
  241. package/components/donut-chart-options.de-DgNmBJiQ.js +85 -0
  242. package/components/donut-chart-options.en-BXwxTVpB.js +85 -0
  243. package/components/donut-chart-options.es-DW_q5HeE.js +85 -0
  244. package/components/donut-chart-options.fr-QU3pGELZ.js +85 -0
  245. package/components/donut-chart-options.nl-D_cgYVAQ.js +85 -0
  246. package/components/donut-chart-positioning.config-Bu1jZwtJ.cjs +20 -0
  247. package/components/donut-chart-positioning.config-C0jkFWni.js +47 -0
  248. package/components/donut-chart-slots.config-MP-ACaLN.js +38 -0
  249. package/components/donut-chart-slots.config-yCDWS8AP.cjs +20 -0
  250. package/components/dropdown-filter-options.config-B2S5I7IG.js +152 -0
  251. package/components/dropdown-filter-options.config-FjrC4F1D.cjs +20 -0
  252. package/components/dropdown-filter-options.de-AEVNdD6Z.js +53 -0
  253. package/components/dropdown-filter-options.en-louYVeNr.js +53 -0
  254. package/components/dropdown-filter-options.es-Cp89jwkQ.js +53 -0
  255. package/components/dropdown-filter-options.fr-g_Sk9N4G.js +53 -0
  256. package/components/dropdown-filter-options.nl-DZALlawB.js +53 -0
  257. package/components/dropdown-filter-positioning.config-B7OQwWln.js +37 -0
  258. package/components/dropdown-filter-slots.config-awL8-LA_.js +37 -0
  259. package/components/dropdown-filter-slots.config-kDbB7STx.cjs +20 -0
  260. package/components/en-C9bDcBWX.cjs +20 -0
  261. package/components/en-CTE7umbs.js +20 -0
  262. package/components/en-GB-DFky6j2B.js +27 -0
  263. package/components/en-GB-DVtn5f2X.cjs +20 -0
  264. package/components/en-US-C9bDcBWX.cjs +20 -0
  265. package/components/en-US-CTE7umbs.js +20 -0
  266. package/components/es-2wpxXQjZ.js +330 -0
  267. package/components/es-CYhv03uu.js +599 -0
  268. package/components/evolution-number-options.config-B5qxlpwU.cjs +20 -0
  269. package/components/evolution-number-options.config-BBWPkY_K.js +229 -0
  270. package/components/evolution-number-options.de-Cnx_5hf-.js +75 -0
  271. package/components/evolution-number-options.en-Beo5xLX4.js +75 -0
  272. package/components/evolution-number-options.es-BSOmGeQs.js +75 -0
  273. package/components/evolution-number-options.fr-BQhExQ6b.js +75 -0
  274. package/components/evolution-number-options.nl-D10AEaNk.js +75 -0
  275. package/components/evolution-number-positioning.config-DD8HBFtv.js +47 -0
  276. package/components/evolution-number-positioning.config-DbH1-ODd.cjs +20 -0
  277. package/components/evolution-number-slots.config-B95BRQY1.js +36 -0
  278. package/components/evolution-number-slots.config-Cte42hyT.cjs +20 -0
  279. package/components/fi-BXIEpAkN.js +125 -0
  280. package/components/filter-expression-picker/index.cjs +1 -1
  281. package/components/filter-expression-picker/index.js +1 -2
  282. package/components/filter-expression-picker-Cc3xfiGT.js +432 -0
  283. package/components/filter-expression-picker-DDSI9bYq.cjs +40 -0
  284. package/components/filter-item/index.cjs +1 -1
  285. package/components/filter-item/index.js +1 -2
  286. package/components/filter-item-DQNbp7Qn.cjs +111 -0
  287. package/components/filter-item-QJ3sDlmG.js +792 -0
  288. package/components/filter-parameter-picker/index.cjs +1 -1
  289. package/components/filter-parameter-picker/index.js +1 -2
  290. package/components/filter-parameter-picker-C8qwIo_H.js +365 -0
  291. package/components/filter-parameter-picker-DjQVFIfg.cjs +124 -0
  292. package/components/filter-value-picker/index.cjs +1 -1
  293. package/components/filter-value-picker/index.js +1 -2
  294. package/components/filter-value-picker-CMNxLzj7.cjs +69 -0
  295. package/components/filter-value-picker-DIYyMymr.js +168 -0
  296. package/components/filter-value-picker-datetime/index.cjs +1 -1
  297. package/components/filter-value-picker-datetime/index.js +1 -2
  298. package/components/filter-value-picker-datetime-BVDQ-og5.cjs +51 -0
  299. package/components/filter-value-picker-datetime-DKblyQrs.js +158 -0
  300. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  301. package/components/filter-value-picker-hierarchy/index.js +1 -2
  302. package/components/filter-value-picker-hierarchy-CXPC_4MU.cjs +54 -0
  303. package/components/filter-value-picker-hierarchy-IswtY6Qa.js +311 -0
  304. package/components/filter-value-picker-numeric/index.cjs +1 -1
  305. package/components/filter-value-picker-numeric/index.js +1 -2
  306. package/components/filter-value-picker-numeric-C7_-Fpol.cjs +54 -0
  307. package/components/filter-value-picker-numeric-DlFnGZ2O.js +236 -0
  308. package/components/filters/index.cjs +1 -1
  309. package/components/filters/index.js +1 -2
  310. package/components/filters-BPbPFOu5.cjs +187 -0
  311. package/components/filters-CxIzuI5q.js +927 -0
  312. package/components/formatter-D_hJ1XXN.cjs +20 -0
  313. package/components/formatter-u-RIfSi3.js +1441 -0
  314. package/components/formula/index.cjs +1 -1
  315. package/components/formula/index.js +1 -2
  316. package/components/formula-CXrr9wJZ.cjs +45 -0
  317. package/components/formula-WqOlEQ5o.js +130 -0
  318. package/components/formula-codemirror-BTYlGSxE.cjs +215 -0
  319. package/components/formula-codemirror-bpEb3M2G.js +12029 -0
  320. package/components/formula-display-store-D7fzKNfW.cjs +20 -0
  321. package/components/formula-display-store-QU-B6xp9.js +1070 -0
  322. package/components/formula-editor/index.cjs +1 -1
  323. package/components/formula-editor/index.js +3 -3
  324. package/components/formula-editor-BbyDf0vM.js +670 -0
  325. package/components/formula-editor-D_NRhjUI.cjs +224 -0
  326. package/components/formula-field/index.cjs +1 -1
  327. package/components/formula-field/index.js +1 -2
  328. package/components/formula-field-BT9K_W6Q.js +36 -0
  329. package/components/formula-field-DSSpI8LB.cjs +20 -0
  330. package/components/formula-input-base-BoWiH97v.cjs +49 -0
  331. package/components/formula-input-base-CQc1OU9G.js +235 -0
  332. package/components/fr-BmrdQkkf.js +330 -0
  333. package/components/fr-DKAoGI_6.js +599 -0
  334. package/components/funnel-chart-options.config-CKp94nx7.cjs +20 -0
  335. package/components/funnel-chart-options.config-W83a8ukL.js +219 -0
  336. package/components/funnel-chart-options.de-CLMiAr0m.js +76 -0
  337. package/components/funnel-chart-options.en-Pu8yU7Yz.js +76 -0
  338. package/components/funnel-chart-options.es-BPjGIJ7s.js +76 -0
  339. package/components/funnel-chart-options.fr-CtWjGa4q.js +76 -0
  340. package/components/funnel-chart-options.nl-2TPEy_CB.js +76 -0
  341. package/components/funnel-chart-positioning.config-Dbex7egf.js +47 -0
  342. package/components/funnel-chart-positioning.config-Dx9E5eiW.cjs +20 -0
  343. package/components/funnel-chart-slots.config-BtQ1-r95.js +42 -0
  344. package/components/funnel-chart-slots.config-C6BS2z-H.cjs +20 -0
  345. package/components/get-css-variable-ClRBOKeI.cjs +20 -0
  346. package/components/get-css-variable-Cnzvg4uu.js +61 -0
  347. package/components/get-dataset-name-BArAzBu2.js +30 -0
  348. package/components/get-dataset-name-C3Sc0hZ0.cjs +20 -0
  349. package/components/grid-core-17um9vkU.cjs +68 -0
  350. package/components/grid-core-BAZu7mfE.js +4464 -0
  351. package/components/grid-core.cjs +1 -1
  352. package/components/grid-core.js +1 -2
  353. package/components/groupings-DMWmtE5F.cjs +20 -0
  354. package/components/groupings-DXJS4XIU.js +51 -0
  355. package/components/guidelines-options.config-DVZrOa3v.js +47 -0
  356. package/components/he-ndbttrR_.js +125 -0
  357. package/components/heat-map-options.config-ChZeslEy.js +225 -0
  358. package/components/heat-map-options.config-DiNa8NnG.cjs +20 -0
  359. package/components/heat-map-options.de-2WGKE1uj.js +74 -0
  360. package/components/heat-map-options.en-BzycxyHN.js +74 -0
  361. package/components/heat-map-options.es-B2m_je_2.js +74 -0
  362. package/components/heat-map-options.fr-DLkEEMp-.js +74 -0
  363. package/components/heat-map-options.nl-CYxHV_cw.js +74 -0
  364. package/components/heat-map-positioning.config-Bzg0DG60.cjs +20 -0
  365. package/components/heat-map-positioning.config-D4T7PQzN.js +47 -0
  366. package/components/heat-map-slots.config-BFZuGyAK.cjs +20 -0
  367. package/components/heat-map-slots.config-Cd6J4Q33.js +36 -0
  368. package/components/heat-table-options.config-BPCszrFn.js +276 -0
  369. package/components/heat-table-options.config-BvE6coaV.cjs +20 -0
  370. package/components/heat-table-options.de-BjW2r5Di.js +113 -0
  371. package/components/heat-table-options.en-CNQyVmPW.js +113 -0
  372. package/components/heat-table-options.es-DM03r8u7.js +113 -0
  373. package/components/heat-table-options.fr-PKUURBoA.js +113 -0
  374. package/components/heat-table-options.nl-BCVLfuQK.js +113 -0
  375. package/components/heat-table-positioning.config-Cj6LlLe3.cjs +20 -0
  376. package/components/heat-table-positioning.config-DVQiJfC4.js +54 -0
  377. package/components/heat-table-slots.config-52DDtG_7.js +48 -0
  378. package/components/heat-table-slots.config-C_JKGLP3.cjs +20 -0
  379. package/components/helpers-CYA1cJcv.js +67 -0
  380. package/components/hexbin-map-options.config-DUbhSv0B.js +277 -0
  381. package/components/hexbin-map-options.config-DZLLOr7D.cjs +20 -0
  382. package/components/hexbin-map-options.de-BecXyFba.js +107 -0
  383. package/components/hexbin-map-options.en-C2u4_34W.js +107 -0
  384. package/components/hexbin-map-options.es-Cef5NzFK.js +107 -0
  385. package/components/hexbin-map-options.fr-C37I85X2.js +107 -0
  386. package/components/hexbin-map-options.nl-CGYc3Tzm.js +107 -0
  387. package/components/hexbin-map-positioning.config-ChoCCure.cjs +20 -0
  388. package/components/hexbin-map-positioning.config-csNrvMwp.js +47 -0
  389. package/components/hexbin-map-slots.config-DiYcKnDG.cjs +20 -0
  390. package/components/hexbin-map-slots.config-DmITrQD3.js +36 -0
  391. package/components/hu-DBxO0Baz.js +125 -0
  392. package/components/icon-element-py6Nkaaz.js +83 -0
  393. package/components/image-options.config-D_QOqkE_.js +152 -0
  394. package/components/image-options.config-Dc8N_USB.cjs +20 -0
  395. package/components/image-options.de-03hJ2g0T.js +85 -0
  396. package/components/image-options.en-CjqpTh_m.js +85 -0
  397. package/components/image-options.es-BjZ9dYXp.js +85 -0
  398. package/components/image-options.fr-BZZ2scJt.js +85 -0
  399. package/components/image-options.nl-DGlo-Y7n.js +85 -0
  400. package/components/image-slots.config-CfaLrVzD.cjs +20 -0
  401. package/components/image-slots.config-FlUYF49C.js +23 -0
  402. package/components/index.cjs +1 -1
  403. package/components/index.js +67 -68
  404. package/components/info-tooltip-options.config-CyFz6pUU.js +58 -0
  405. package/components/info-tooltip-options.i18n-Cmmn-9tw.js +73 -0
  406. package/components/interactive-viz-item/index.cjs +1 -1
  407. package/components/interactive-viz-item/index.js +2 -2
  408. package/components/interactive-viz-item-CofUkpP6.js +523 -0
  409. package/components/interactive-viz-item-D537mo3l.cjs +261 -0
  410. package/components/interactivity-options.config-MuEP5vSt.js +72 -0
  411. package/components/interactivity-options.i18n-DY947PNz.js +58 -0
  412. package/components/it-SNChaNqP.js +330 -0
  413. package/components/item-context-configs.js +1 -2
  414. package/components/item-grid/index.cjs +1 -1
  415. package/components/item-grid/index.js +2 -2
  416. package/components/item-grid-DscQOFMu.js +243 -0
  417. package/components/item-grid-DveTRc7D.cjs +41 -0
  418. package/components/item-grid-item-actions-menu/index.cjs +1 -1
  419. package/components/item-grid-item-actions-menu/index.js +1 -2
  420. package/components/item-grid-item-actions-menu-B1bKfagj.js +197 -0
  421. package/components/item-grid-item-actions-menu-xRrT9dkY.cjs +52 -0
  422. package/components/item-list.js +1 -2
  423. package/components/item-option/index.cjs +1 -1
  424. package/components/item-option/index.js +1 -2
  425. package/components/item-option-Cgx3c08E.js +957 -0
  426. package/components/item-option-CqGDFdPj.cjs +269 -0
  427. package/components/item-option-action-button-group/index.cjs +1 -1
  428. package/components/item-option-action-button-group/index.js +1 -2
  429. package/components/item-option-action-button-group-BMgUwveA.cjs +53 -0
  430. package/components/item-option-action-button-group-Cpd_CNn-.js +115 -0
  431. package/components/item-option-base-BMy6dWbc.cjs +56 -0
  432. package/components/item-option-base-BfHciede.js +119 -0
  433. package/components/item-option-color-palette-picker/index.cjs +1 -1
  434. package/components/item-option-color-palette-picker/index.js +1 -2
  435. package/components/item-option-color-palette-picker-8KFuRU1D.js +2037 -0
  436. package/components/item-option-color-palette-picker-CnM1Gi6o.cjs +40 -0
  437. package/components/item-option-color-picker/index.cjs +1 -1
  438. package/components/item-option-color-picker/index.js +1 -2
  439. package/components/item-option-color-picker-BpPoOO2b.cjs +34 -0
  440. package/components/item-option-color-picker-cojuCvu5.js +84 -0
  441. package/components/item-option-color-range/index.cjs +1 -1
  442. package/components/item-option-color-range/index.js +1 -2
  443. package/components/item-option-color-range-CMBEx1fi.cjs +98 -0
  444. package/components/item-option-color-range-Dt7Bv06p.js +217 -0
  445. package/components/item-option-guidelines/index.cjs +1 -1
  446. package/components/item-option-guidelines/index.js +2 -2
  447. package/components/item-option-guidelines-Beh0DlG0.cjs +135 -0
  448. package/components/item-option-guidelines-DNJevmVD.js +414 -0
  449. package/components/item-option-multi-language-field/index.cjs +1 -1
  450. package/components/item-option-multi-language-field/index.js +1 -2
  451. package/components/item-option-multi-language-field-CqtBl3gM.js +80 -0
  452. package/components/item-option-multi-language-field-DM2PENxV.cjs +33 -0
  453. package/components/item-option-number-field/index.cjs +1 -1
  454. package/components/item-option-number-field/index.js +1 -2
  455. package/components/item-option-number-field-BgQRhFj3.js +99 -0
  456. package/components/item-option-number-field-Cw2ofJL7.cjs +38 -0
  457. package/components/item-option-panel/index.cjs +1 -1
  458. package/components/item-option-panel/index.js +1 -2
  459. package/components/item-option-panel-DHdnisRb.js +183 -0
  460. package/components/item-option-panel-Dl3aYBNe.cjs +67 -0
  461. package/components/item-option-picker/index.cjs +1 -1
  462. package/components/item-option-picker/index.js +1 -2
  463. package/components/item-option-picker-DkAENDES.js +74 -0
  464. package/components/item-option-picker-EJlc0bmj.cjs +37 -0
  465. package/components/item-option-position-picker/index.cjs +1 -1
  466. package/components/item-option-position-picker/index.js +1 -2
  467. package/components/item-option-position-picker-Ba7cBvlL.cjs +32 -0
  468. package/components/item-option-position-picker-DX7lLZKO.js +114 -0
  469. package/components/item-option-positions-number-field/index.cjs +1 -1
  470. package/components/item-option-positions-number-field/index.js +1 -2
  471. package/components/item-option-positions-number-field-BQ8gFOAn.cjs +49 -0
  472. package/components/item-option-positions-number-field-Bqfg0MJm.js +166 -0
  473. package/components/item-option-radio-button-group/index.cjs +1 -1
  474. package/components/item-option-radio-button-group/index.js +1 -2
  475. package/components/item-option-radio-button-group-2hX-E2WV.cjs +37 -0
  476. package/components/item-option-radio-button-group-Bk7VQlpx.js +72 -0
  477. package/components/item-option-slider/index.cjs +1 -1
  478. package/components/item-option-slider/index.js +1 -2
  479. package/components/item-option-slider-Bo5vs6nr.js +89 -0
  480. package/components/item-option-slider-CyWKWr5D.cjs +33 -0
  481. package/components/item-option-switch/index.cjs +1 -1
  482. package/components/item-option-switch/index.js +1 -2
  483. package/components/item-option-switch-BUteU1mc.cjs +30 -0
  484. package/components/item-option-switch-cGWccE79.js +66 -0
  485. package/components/item-option-text-field/index.cjs +1 -1
  486. package/components/item-option-text-field/index.js +1 -2
  487. package/components/item-option-text-field-BC9fR-yW.cjs +33 -0
  488. package/components/item-option-text-field-Dy8pqVKJ.js +77 -0
  489. package/components/item-options-configs.cjs +1 -1
  490. package/components/item-options-configs.js +45 -45
  491. package/components/item-slot-drop/index.cjs +1 -1
  492. package/components/item-slot-drop/index.js +1 -2
  493. package/components/item-slot-drop-CwZT8bTP.js +327 -0
  494. package/components/item-slot-drop-DLzi4Dik.cjs +91 -0
  495. package/components/item-slot-drop-panel/index.cjs +1 -1
  496. package/components/item-slot-drop-panel/index.js +1 -2
  497. package/components/item-slot-drop-panel-Oh8zdKJH.cjs +57 -0
  498. package/components/item-slot-drop-panel-o5UdVrY_.js +347 -0
  499. package/components/item-slot-picker/index.cjs +1 -1
  500. package/components/item-slot-picker/index.js +1 -2
  501. package/components/item-slot-picker-932qNxCI.js +550 -0
  502. package/components/item-slot-picker-D1JA8pny.cjs +158 -0
  503. package/components/item-slot-picker-panel/index.cjs +1 -1
  504. package/components/item-slot-picker-panel/index.js +1 -2
  505. package/components/item-slot-picker-panel-C0BIQu07.cjs +82 -0
  506. package/components/item-slot-picker-panel-vEh6bb35.js +442 -0
  507. package/components/item-slots-configs.cjs +1 -1
  508. package/components/item-slots-configs.js +45 -45
  509. package/components/ja-B4YHU4-z.js +125 -0
  510. package/components/ko-DzfeXi4F.js +125 -0
  511. package/components/kpi-options.config-D9WuRe5z.js +331 -0
  512. package/components/kpi-options.de-B5lQkGks.js +108 -0
  513. package/components/kpi-options.en-BKN2-5Jq.js +108 -0
  514. package/components/kpi-options.es-DngzlxEn.js +108 -0
  515. package/components/kpi-options.fr-DNRUn0Pk.js +108 -0
  516. package/components/kpi-options.nl-Bw3N2x-C.js +108 -0
  517. package/components/kpi-positioning.config-DIYWUwID.cjs +20 -0
  518. package/components/kpi-positioning.config-mQuxf1ke.js +47 -0
  519. package/components/kpi-slots.config-AMUlgt-H.js +35 -0
  520. package/components/line-chart-options.config-DOGbeJhy.cjs +20 -0
  521. package/components/line-chart-options.config-Opoz2jPk.js +254 -0
  522. package/components/line-chart-options.de-yLHBsR0G.js +88 -0
  523. package/components/line-chart-options.en-By_Pq6Kc.js +88 -0
  524. package/components/line-chart-options.es-C28q-RTL.js +88 -0
  525. package/components/line-chart-options.fr-oMPIRzOe.js +88 -0
  526. package/components/line-chart-options.nl-C_1T9G-w.js +88 -0
  527. package/components/line-chart-positioning.config-DK9PycZ_.cjs +20 -0
  528. package/components/line-chart-positioning.config-DqjrWmxJ.js +54 -0
  529. package/components/line-chart-slots.config-CLSl3ODI.js +54 -0
  530. package/components/line-chart-slots.config-vyb4U5Ba.cjs +20 -0
  531. package/components/load-data-fields-for-datasets-DYgA0164.cjs +20 -0
  532. package/components/load-data-fields-for-datasets-avT5OQVv.js +42 -0
  533. package/components/localize-BNystXyK.js +28 -0
  534. package/components/localized-mixin-EoNvtTBG.cjs +20 -0
  535. package/components/localized-mixin-FPDNaZhb.js +44 -0
  536. package/components/map-tile-providers-cK8Xlerl.js +114 -0
  537. package/components/marker-map-options.config-DMPwJHEO.js +121 -0
  538. package/components/marker-map-options.config-DxcxzLu_.cjs +20 -0
  539. package/components/marker-map-options.de-CUZg_M2c.js +62 -0
  540. package/components/marker-map-options.en-BfCjBsXX.js +62 -0
  541. package/components/marker-map-options.es-BO7Joctq.js +62 -0
  542. package/components/marker-map-options.fr-CsbyRnt7.js +62 -0
  543. package/components/marker-map-options.nl-Cnsb5g0n.js +62 -0
  544. package/components/marker-map-positioning.config-BB51kE8O.cjs +20 -0
  545. package/components/marker-map-positioning.config-CA08hZcp.js +47 -0
  546. package/components/marker-map-slots.config-BPAExcmN.cjs +20 -0
  547. package/components/marker-map-slots.config-mCnPFESe.js +36 -0
  548. package/components/mk-BoGKhggN.js +125 -0
  549. package/components/nl-ByDvxFKr.js +137 -0
  550. package/components/nl-DNWGcGqO.js +599 -0
  551. package/components/no-C9RQnknk.js +137 -0
  552. package/components/ohlc-chart-options.config-C-TCUtOt.js +93 -0
  553. package/components/ohlc-chart-options.config-CvlHm6hy.cjs +20 -0
  554. package/components/ohlc-chart-options.de-Bd9HtCU3.js +62 -0
  555. package/components/ohlc-chart-options.en-D32KZA3W.js +62 -0
  556. package/components/ohlc-chart-options.es-B42fuflG.js +62 -0
  557. package/components/ohlc-chart-options.fr-B0tdOmTO.js +62 -0
  558. package/components/ohlc-chart-options.nl-DEy_8xhr.js +62 -0
  559. package/components/ohlc-chart-positioning.config-BqFHD1oj.js +77 -0
  560. package/components/ohlc-chart-positioning.config-CDL2vGsl.cjs +20 -0
  561. package/components/ohlc-chart-slots.config-AC68CvCP.js +67 -0
  562. package/components/ohlc-chart-slots.config-SfLpuCud.cjs +20 -0
  563. package/components/orion-CL_Y_8id.js +67 -0
  564. package/components/parallel-coordinates-plot-options.config-C3HTFBTl.js +47 -0
  565. package/components/parallel-coordinates-plot-options.config-UHrCS9q5.cjs +20 -0
  566. package/components/parallel-coordinates-plot-options.de-_f7GTJXa.js +30 -0
  567. package/components/parallel-coordinates-plot-options.en-B7oIQWii.js +30 -0
  568. package/components/parallel-coordinates-plot-options.es-Dyh1h81o.js +30 -0
  569. package/components/parallel-coordinates-plot-options.fr-Ct3SBZ1v.js +30 -0
  570. package/components/parallel-coordinates-plot-options.nl-DcFKAVMO.js +30 -0
  571. package/components/parallel-coordinates-plot-positioning.config-Cc-ooVxV.cjs +20 -0
  572. package/components/parallel-coordinates-plot-positioning.config-D6IuAk_K.js +47 -0
  573. package/components/parallel-coordinates-plot-slots.config-BQWa5Xe2.js +45 -0
  574. package/components/parallel-coordinates-plot-slots.config-mEYlLRQy.cjs +20 -0
  575. package/components/period-over-period-condition.const-AE_2h-9O.js +28 -0
  576. package/components/periods.const-DZBBRkvS.js +154 -0
  577. package/components/pinky-hbHsDCfd.js +67 -0
  578. package/components/pivot-table-options.config-5pYvqc35.cjs +20 -0
  579. package/components/pivot-table-options.config-BlrguysB.js +248 -0
  580. package/components/pivot-table-options.de-C16jiVYY.js +66 -0
  581. package/components/pivot-table-options.en-Dbp63wyH.js +66 -0
  582. package/components/pivot-table-options.es-D78TGQMg.js +66 -0
  583. package/components/pivot-table-options.fr-CHnKYQkR.js +66 -0
  584. package/components/pivot-table-options.nl-ByxevE1T.js +66 -0
  585. package/components/pivot-table-positioning.config-DDwXH70O.js +54 -0
  586. package/components/pivot-table-positioning.config-DvwKNjoD.cjs +20 -0
  587. package/components/pivot-table-slots.config-C18Mnk6Y.js +54 -0
  588. package/components/pivot-table-slots.config-FSIW-Owh.cjs +20 -0
  589. package/components/pl-Br_k8GI8.js +125 -0
  590. package/components/pragmatic-element-adapter-B0tn35C8.cjs +24 -0
  591. package/components/pragmatic-element-adapter-CyTyN1YC.js +1210 -0
  592. package/components/pt-DA-XGRCP.js +125 -0
  593. package/components/pyramid-chart-options.config-0Qf1naIx.js +221 -0
  594. package/components/pyramid-chart-options.config-CAC6cMmt.cjs +20 -0
  595. package/components/pyramid-chart-options.de-2tKl9Efb.js +102 -0
  596. package/components/pyramid-chart-options.en-C5QKcY71.js +102 -0
  597. package/components/pyramid-chart-options.es-B4vyswPg.js +102 -0
  598. package/components/pyramid-chart-options.fr-BoyFMPfp.js +102 -0
  599. package/components/pyramid-chart-options.nl-3ErSugyh.js +102 -0
  600. package/components/pyramid-chart-positioning.config-10BYkgv8.cjs +20 -0
  601. package/components/pyramid-chart-positioning.config-DWou2jnm.js +54 -0
  602. package/components/pyramid-chart-slots.config-C1JeQSzK.cjs +20 -0
  603. package/components/pyramid-chart-slots.config-CGJcv00A.js +49 -0
  604. package/components/radar-chart-options.config-C1gfNkE6.cjs +20 -0
  605. package/components/radar-chart-options.config-Dd6SMpMz.js +172 -0
  606. package/components/radar-chart-options.de-BcugS2tU.js +53 -0
  607. package/components/radar-chart-options.en-B7ewze8f.js +53 -0
  608. package/components/radar-chart-options.es-CHPp1rma.js +53 -0
  609. package/components/radar-chart-options.fr-BBJTEXWb.js +53 -0
  610. package/components/radar-chart-options.nl-CBFeVHx5.js +53 -0
  611. package/components/radar-chart-positioning.config-B0O8vn-B.js +54 -0
  612. package/components/radar-chart-positioning.config-Dg41uYWY.cjs +20 -0
  613. package/components/radar-chart-slots.config-C3ZoIXnK.cjs +20 -0
  614. package/components/radar-chart-slots.config-rLD9dRCQ.js +52 -0
  615. package/components/radiant-D08Q3MEi.js +70 -0
  616. package/components/regular-table-options.config-BCth1USK.cjs +20 -0
  617. package/components/regular-table-options.config-TXfzXF_Y.js +152 -0
  618. package/components/regular-table-options.de-BUJ9aAeo.js +56 -0
  619. package/components/regular-table-options.en-DlLy4DDY.js +56 -0
  620. package/components/regular-table-options.es-BZ_emUc6.js +56 -0
  621. package/components/regular-table-options.fr-DT_jwFhs.js +56 -0
  622. package/components/regular-table-options.nl-BmGfp2Sx.js +56 -0
  623. package/components/regular-table-positioning.config-BxyFeemR.js +37 -0
  624. package/components/regular-table-slots.config-CRU_nLHI.cjs +20 -0
  625. package/components/regular-table-slots.config-sVD_kGbe.js +34 -0
  626. package/components/resolve-column-presentation-FSQv-qiE.js +33 -0
  627. package/components/rolldown-runtime-DbbDpzbe.cjs +20 -0
  628. package/components/route-map-options.config-B7vT6KG_.js +327 -0
  629. package/components/route-map-options.config-DdCaVtIF.cjs +20 -0
  630. package/components/route-map-options.de-CxZnN008.js +75 -0
  631. package/components/route-map-options.en-CaTwhZYj.js +75 -0
  632. package/components/route-map-options.es-Da8nQnch.js +75 -0
  633. package/components/route-map-options.fr-BBSfOGdE.js +75 -0
  634. package/components/route-map-options.nl-B5gdyD3P.js +75 -0
  635. package/components/route-map-positioning.config-C1iUodTh.js +65 -0
  636. package/components/route-map-positioning.config-DlM6xJTP.cjs +20 -0
  637. package/components/route-map-slots.config-BaZwLyjW.js +58 -0
  638. package/components/route-map-slots.config-DbSYH_Gm.cjs +20 -0
  639. package/components/royale-Dx1_PBDN.js +59 -0
  640. package/components/ru-BskkPpk1.js +125 -0
  641. package/components/sankey-diagram-options.config-B8aHKfFt.cjs +20 -0
  642. package/components/sankey-diagram-options.config-Y6jRK3wk.js +129 -0
  643. package/components/sankey-diagram-options.de-DnHlLknR.js +62 -0
  644. package/components/sankey-diagram-options.en-D8mL9pQF.js +62 -0
  645. package/components/sankey-diagram-options.es-uqM9X09a.js +62 -0
  646. package/components/sankey-diagram-options.fr-Chiln2jM.js +62 -0
  647. package/components/sankey-diagram-options.nl-DiohN2Qc.js +62 -0
  648. package/components/sankey-diagram-positioning.config-5EXNleL5.js +65 -0
  649. package/components/sankey-diagram-positioning.config-BSu02GJ1.cjs +20 -0
  650. package/components/sankey-diagram-slots.config-CWKuPz6x.js +60 -0
  651. package/components/sankey-diagram-slots.config-DF6_NJGq.cjs +20 -0
  652. package/components/scatter-plot-options.config-DhOGahRc.cjs +20 -0
  653. package/components/scatter-plot-options.config-DvGofFzR.js +164 -0
  654. package/components/scatter-plot-options.de-D5QbEAIZ.js +114 -0
  655. package/components/scatter-plot-options.en-FGRhx7Nu.js +114 -0
  656. package/components/scatter-plot-options.es-CQU2STZG.js +114 -0
  657. package/components/scatter-plot-options.fr-CWhv8L_g.js +114 -0
  658. package/components/scatter-plot-options.nl-DRfh8i_W.js +114 -0
  659. package/components/scatter-plot-positioning.config-CuyJUmiV.cjs +20 -0
  660. package/components/scatter-plot-positioning.config-nDbkUUqa.js +76 -0
  661. package/components/scatter-plot-slots.config-Dda9uF05.js +73 -0
  662. package/components/scatter-plot-slots.config-DuKQWkKZ.cjs +20 -0
  663. package/components/search-filter-options.config-DcPuNHyG.cjs +20 -0
  664. package/components/search-filter-options.config-JvAotvWb.js +102 -0
  665. package/components/search-filter-options.de-C5mfpqao.js +41 -0
  666. package/components/search-filter-options.en-CcDritg-.js +41 -0
  667. package/components/search-filter-options.es-Dd3Jgur8.js +41 -0
  668. package/components/search-filter-options.fr-CZss0Gbq.js +41 -0
  669. package/components/search-filter-options.nl-IjlN2XAx.js +41 -0
  670. package/components/search-filter-positioning.config-CY5Yo1sZ.js +37 -0
  671. package/components/search-filter-slots.config-BnDGoz_4.cjs +20 -0
  672. package/components/search-filter-slots.config-DtUQAwGn.js +38 -0
  673. package/components/seasonal-D0SDLKlK.js +75 -0
  674. package/components/set-locale-BkMmLcm6.cjs +20 -0
  675. package/components/set-locale-m257lVi3.js +42 -0
  676. package/components/set-nested-value-DmCMg2V3.js +32 -0
  677. package/components/slicer-filter-options.config-Bc38dVoU.js +234 -0
  678. package/components/slicer-filter-options.config-DqI9WtAi.cjs +20 -0
  679. package/components/slicer-filter-options.de-CaQJtPre.js +68 -0
  680. package/components/slicer-filter-options.en-BERi9NJr.js +68 -0
  681. package/components/slicer-filter-options.es-HyaV_xUy.js +68 -0
  682. package/components/slicer-filter-options.fr-BvhYoAXq.js +68 -0
  683. package/components/slicer-filter-options.nl-veviscxn.js +68 -0
  684. package/components/slicer-filter-positioning.config-BT5aNPHe.js +47 -0
  685. package/components/slicer-filter-positioning.config-D7ZLoaGu.cjs +20 -0
  686. package/components/slicer-filter-slots.config-BwlXABsj.cjs +20 -0
  687. package/components/slicer-filter-slots.config-D3AUD4PD.js +43 -0
  688. package/components/slider-filter-options.config-BaoIKTFj.js +71 -0
  689. package/components/slider-filter-options.config-CgMb9Xmz.cjs +20 -0
  690. package/components/slider-filter-options.de-BedVleOo.js +34 -0
  691. package/components/slider-filter-options.en-Cw7_6spM.js +34 -0
  692. package/components/slider-filter-options.es-Crr8myAG.js +34 -0
  693. package/components/slider-filter-options.fr-mUxX9zrU.js +34 -0
  694. package/components/slider-filter-options.nl-CooD4Lau.js +34 -0
  695. package/components/slider-filter-positioning.config-DAKt4bpW.js +37 -0
  696. package/components/slider-filter-slots.config-B-_6iJX8.cjs +20 -0
  697. package/components/slider-filter-slots.config-CQG0j5KX.js +42 -0
  698. package/components/slot-content-DE6NXHcl.js +22 -0
  699. package/components/slot-labels.config-DH2Dm3Yd.js +62 -0
  700. package/components/slot-menu/index.cjs +1 -1
  701. package/components/slot-menu/index.js +1 -2
  702. package/components/slot-menu-BB_nJWZx.js +427 -0
  703. package/components/slot-menu-C8p0nkVS.cjs +71 -0
  704. package/components/slot-menu-list/index.cjs +1 -1
  705. package/components/slot-menu-list/index.js +1 -2
  706. package/components/slot-menu-list-3QkrOWgG.js +341 -0
  707. package/components/slot-menu-list-C2nLODML.cjs +44 -0
  708. package/components/slot-role-classification-DGc-M0Of.js +132 -0
  709. package/components/slots-config-B6AOo19R.cjs +20 -0
  710. package/components/slots-config-CsKGGLNg.js +76 -0
  711. package/components/spacer-options.config-Dd_j69HB.js +22 -0
  712. package/components/speedometer-chart-options.config-C3o5xpCj.cjs +20 -0
  713. package/components/speedometer-chart-options.config-CIZKRvbg.js +250 -0
  714. package/components/speedometer-chart-options.de-CfMm0o9p.js +65 -0
  715. package/components/speedometer-chart-options.en-Ct8GyQCI.js +65 -0
  716. package/components/speedometer-chart-options.es-KA0EJ21O.js +65 -0
  717. package/components/speedometer-chart-options.fr-B1FxaP-j.js +65 -0
  718. package/components/speedometer-chart-options.nl-DHNdYT7E.js +65 -0
  719. package/components/speedometer-chart-positioning.config-BtDD3TiP.cjs +20 -0
  720. package/components/speedometer-chart-positioning.config-CO1MtdU3.js +47 -0
  721. package/components/speedometer-chart-slots.config-BhhQ0q7n.cjs +20 -0
  722. package/components/speedometer-chart-slots.config-DIShNh4T.js +38 -0
  723. package/components/spike-map-options.config-B3hDh2qU.cjs +20 -0
  724. package/components/spike-map-options.config-DkmRZ1JZ.js +414 -0
  725. package/components/spike-map-options.de-BrXqrF-u.js +102 -0
  726. package/components/spike-map-options.en-DSy6nt2M.js +102 -0
  727. package/components/spike-map-options.es-DuN_Li7Z.js +102 -0
  728. package/components/spike-map-options.fr-UPx664xO.js +102 -0
  729. package/components/spike-map-options.nl-C-b0qHyw.js +102 -0
  730. package/components/spike-map-positioning.config-BhKVutm1.cjs +20 -0
  731. package/components/spike-map-positioning.config-CQkcCdHD.js +54 -0
  732. package/components/spike-map-slots.config-B63KfULj.js +46 -0
  733. package/components/spike-map-slots.config-DHgVNtSl.cjs +20 -0
  734. package/components/strip-plot-options.config-CoiMZRzM.cjs +20 -0
  735. package/components/strip-plot-options.config-D1h3YBHj.js +53 -0
  736. package/components/strip-plot-options.de-BY8O0m1R.js +30 -0
  737. package/components/strip-plot-options.en-D2XEAFMd.js +30 -0
  738. package/components/strip-plot-options.es-DbQvKoCu.js +30 -0
  739. package/components/strip-plot-options.fr-BK_mGl7Y.js +30 -0
  740. package/components/strip-plot-options.nl-BaFVxWEI.js +30 -0
  741. package/components/strip-plot-positioning.config-CEYgtT13.cjs +20 -0
  742. package/components/strip-plot-positioning.config-DEyOR-yS.js +47 -0
  743. package/components/strip-plot-slots.config-D9blbOAz.cjs +20 -0
  744. package/components/strip-plot-slots.config-DjItZdiF.js +37 -0
  745. package/components/sunburst-chart-options.config-CZdd6qx0.cjs +20 -0
  746. package/components/sunburst-chart-options.config-DVETeZFc.js +189 -0
  747. package/components/sunburst-chart-options.de-B0mIITIx.js +60 -0
  748. package/components/sunburst-chart-options.en-LoUPN34r.js +60 -0
  749. package/components/sunburst-chart-options.es-DBje7CMN.js +60 -0
  750. package/components/sunburst-chart-options.fr-Cnbpsj6t.js +60 -0
  751. package/components/sunburst-chart-options.nl-CluctKYY.js +60 -0
  752. package/components/sunburst-chart-positioning.config-DNtHXpHg.cjs +20 -0
  753. package/components/sunburst-chart-positioning.config-DP-ifsmn.js +47 -0
  754. package/components/sunburst-chart-slots.config-CeB0g1Jz.js +37 -0
  755. package/components/sunburst-chart-slots.config-DwXruOTF.cjs +20 -0
  756. package/components/superPropGet-CUPN9Fvv.js +48 -0
  757. package/components/sv-C6Tu9rpj.js +125 -0
  758. package/components/symbol-map-options.config-BwZ7_S4w.js +178 -0
  759. package/components/symbol-map-options.config-C3RTDsGN.cjs +20 -0
  760. package/components/symbol-map-options.de-CjMtnkPp.js +65 -0
  761. package/components/symbol-map-options.en-D3yzVDgP.js +65 -0
  762. package/components/symbol-map-options.es-B6XECjy2.js +65 -0
  763. package/components/symbol-map-options.fr-tZF8dXgD.js +65 -0
  764. package/components/symbol-map-options.nl-BYykoWAL.js +65 -0
  765. package/components/symbol-map-positioning.config-CoLDPgYM.cjs +20 -0
  766. package/components/symbol-map-positioning.config-Nj7pDOAu.js +54 -0
  767. package/components/symbol-map-slots.config-Bcg4tTKu.js +52 -0
  768. package/components/symbol-map-slots.config-Cp9Wp3vo.cjs +20 -0
  769. package/components/text-options.config-BomEcU58.js +66 -0
  770. package/components/text-options.config-D9EkimNf.cjs +20 -0
  771. package/components/text-options.de-B4NOm0u-.js +29 -0
  772. package/components/text-options.en-Cb3U3pRQ.js +29 -0
  773. package/components/text-options.es-Bo7gnIX1.js +29 -0
  774. package/components/text-options.fr-CShH2v0S.js +29 -0
  775. package/components/text-options.nl-DWxZsCiw.js +29 -0
  776. package/components/text-slots.config-11KBADL7.js +23 -0
  777. package/components/text-slots.config-Rt7OwjzL.cjs +20 -0
  778. package/components/themes-BO_1ebSB.js +71 -0
  779. package/components/tokens-6HmQYnEP.js +27 -0
  780. package/components/tr-DJnNMcm5.js +137 -0
  781. package/components/treemap-chart-options.config-DLEY6YuI.cjs +20 -0
  782. package/components/treemap-chart-options.config-DsqsX9So.js +210 -0
  783. package/components/treemap-chart-options.de-CXIYs3oT.js +63 -0
  784. package/components/treemap-chart-options.en-B7NFLNe9.js +63 -0
  785. package/components/treemap-chart-options.es-CKX8PeWE.js +63 -0
  786. package/components/treemap-chart-options.fr-CPacPcag.js +63 -0
  787. package/components/treemap-chart-options.nl-OOTGXzol.js +63 -0
  788. package/components/treemap-chart-positioning.config-BVOqj2V1.cjs +20 -0
  789. package/components/treemap-chart-positioning.config-B_R_cmFs.js +54 -0
  790. package/components/treemap-chart-slots.config-CmPHhmR2.cjs +20 -0
  791. package/components/treemap-chart-slots.config-CpCIdFAM.js +46 -0
  792. package/components/type-check-D6K_INvg.js +51 -0
  793. package/components/types-DJuS9IwG.js +43 -0
  794. package/components/urban-CGKIB8yR.js +70 -0
  795. package/components/utils/base.cjs +1 -1
  796. package/components/utils/base.js +2 -2
  797. package/components/utils/store.cjs +1 -1
  798. package/components/utils/store.js +10 -18
  799. package/components/utils-DIKmx9O1.cjs +20 -0
  800. package/components/utils-DS6Pthr4.js +238 -0
  801. package/components/utils.cjs +1 -1
  802. package/components/utils.js +9 -9
  803. package/components/v4-YCkfo8OR.js +46 -0
  804. package/components/venn-diagram-options.config-3-Adz8wM.js +23 -0
  805. package/components/venn-diagram-options.config-BsxzLI46.cjs +20 -0
  806. package/components/venn-diagram-positioning.config-8JCVpYOt.cjs +20 -0
  807. package/components/venn-diagram-positioning.config-DOsSkJYl.js +54 -0
  808. package/components/venn-diagram-slots.config-CfOs3HFk.cjs +20 -0
  809. package/components/venn-diagram-slots.config-DIFovfS5.js +46 -0
  810. package/components/video-options.config-BACuLmHj.cjs +20 -0
  811. package/components/video-options.config-DVxtlO5_.js +126 -0
  812. package/components/video-options.de-ORwnqA8n.js +59 -0
  813. package/components/video-options.en-Bs_Lh_CI.js +59 -0
  814. package/components/video-options.es-BvVdDjfZ.js +59 -0
  815. package/components/video-options.fr-BesFW-1s.js +59 -0
  816. package/components/video-options.nl-BW4_pRnk.js +59 -0
  817. package/components/video-slots.config-B12oMaQR.js +23 -0
  818. package/components/video-slots.config-Diz5vhEg.cjs +20 -0
  819. package/components/vivid-DILEKRlz.js +71 -0
  820. package/components/wordcloud-chart-options.config-DiyF596X.cjs +20 -0
  821. package/components/wordcloud-chart-options.config-UAl2hfU7.js +96 -0
  822. package/components/wordcloud-chart-options.de-D9c2kOhf.js +48 -0
  823. package/components/wordcloud-chart-options.en-B2eVzZ8F.js +48 -0
  824. package/components/wordcloud-chart-options.es-C6dUmFLy.js +48 -0
  825. package/components/wordcloud-chart-options.fr-dNSX7uyQ.js +48 -0
  826. package/components/wordcloud-chart-options.nl-D1CFGAGK.js +48 -0
  827. package/components/wordcloud-chart-positioning.config-D13iPEEg.cjs +20 -0
  828. package/components/wordcloud-chart-positioning.config-DSVw_z7Y.js +54 -0
  829. package/components/wordcloud-chart-slots.config-Bw2N-_FE.cjs +20 -0
  830. package/components/wordcloud-chart-slots.config-D-ZKO6Za.js +44 -0
  831. package/components/zh-CN-BTatoior.js +125 -0
  832. package/components/zh-TW-frHWROW3.js +125 -0
  833. package/package.json +1 -1
  834. package/react/package.json +2 -2
  835. package/standalone/add-to-dashboard.js +168 -0
  836. package/standalone/chunks/axis-options.i18n-BiaLcciz.js +2 -0
  837. package/standalone/chunks/chart-helpers-CoM_spnw.js +4 -0
  838. package/standalone/chunks/choropleth-map-options.config-Cs4Kvr9h.js +2 -0
  839. package/standalone/chunks/color-7IgCGZKz.js +2 -0
  840. package/standalone/chunks/color-range-utils-CKDpd3gZ.js +2 -0
  841. package/standalone/chunks/data-broker-DXDyIrj_.js +2 -0
  842. package/standalone/chunks/de-yrAUETjd.js +2 -0
  843. package/standalone/chunks/display-settings-binning-aUdR_pl2.js +38 -0
  844. package/standalone/chunks/display-settings-datetime-MWX6WJfR.js +199 -0
  845. package/standalone/chunks/display-settings-grand-totals-CrLyCXa9.js +26 -0
  846. package/standalone/chunks/display-settings-numeric-DRLqLBPl.js +172 -0
  847. package/standalone/chunks/display-settings-period-over-period-CkrW5hwS.js +209 -0
  848. package/standalone/chunks/embed-qIfaqHst.js +231 -0
  849. package/standalone/chunks/en-B6bMcgxP.js +2 -0
  850. package/standalone/chunks/en-GB-DH8YypSn.js +2 -0
  851. package/standalone/chunks/en-US-B6bMcgxP.js +2 -0
  852. package/standalone/chunks/es-C_uf-Da9.js +2 -0
  853. package/standalone/chunks/filters-D5OomAPr.js +532 -0
  854. package/standalone/chunks/formula-codemirror-r84qaS68.js +197 -0
  855. package/standalone/chunks/fr-m_sBTT4C.js +2 -0
  856. package/standalone/chunks/heat-map-options.config-DF5kjOOe.js +2 -0
  857. package/standalone/chunks/heat-table-options.config-DaePzfHG.js +2 -0
  858. package/standalone/chunks/item-option-action-button-group-7TAKa9Jv.js +35 -0
  859. package/standalone/chunks/item-option-base-kKSun9-5.js +38 -0
  860. package/standalone/chunks/item-option-color-palette-picker-BLJ3oKWz.js +22 -0
  861. package/standalone/chunks/item-option-color-picker-mTwDOvMr.js +16 -0
  862. package/standalone/chunks/item-option-color-range-BGS1eITH.js +80 -0
  863. package/standalone/chunks/item-option-guidelines-B_GK-6l2.js +117 -0
  864. package/standalone/chunks/item-option-multi-language-field-opUNVMda.js +15 -0
  865. package/standalone/chunks/item-option-number-field-Wf9oPXWH.js +20 -0
  866. package/standalone/chunks/item-option-panel-DOpaihOS.js +298 -0
  867. package/standalone/chunks/item-option-picker-Dx6jkrsF.js +19 -0
  868. package/standalone/chunks/item-option-position-picker-D25kwrJg.js +14 -0
  869. package/standalone/chunks/item-option-positions-number-field-J611kQ17.js +31 -0
  870. package/standalone/chunks/item-option-radio-button-group-16bjQRie.js +19 -0
  871. package/standalone/chunks/item-option-slider-CxKHhowp.js +15 -0
  872. package/standalone/chunks/item-option-switch-DAsuIDtF.js +12 -0
  873. package/standalone/chunks/item-option-text-field-CqGS5yfy.js +15 -0
  874. package/standalone/chunks/item-slot-picker-panel-Bwwqsvl0.js +429 -0
  875. package/standalone/chunks/kpi-options.config-DGl2N2HJ.js +2 -0
  876. package/standalone/chunks/load-data-fields-for-datasets-BGDeFNgF.js +25 -0
  877. package/standalone/chunks/localize-DXRmGRe-.js +2 -0
  878. package/standalone/chunks/localized-decorator-BqhGbFmo.js +2 -0
  879. package/standalone/chunks/nl-DgIDoj0Z.js +2 -0
  880. package/standalone/chunks/route-map-options.config-D7FfzIiU.js +2 -0
  881. package/standalone/chunks/spike-map-options.config-CZiFzDm9.js +2 -0
  882. package/standalone/chunks/task-CbG1zqv3.js +2 -0
  883. package/standalone/chunks/themes-C2pxFlIq.js +2 -0
  884. package/standalone/chunks/v4-BxSu4gkw.js +2 -0
  885. package/standalone/chunks/version-CpfuYajE.js +2 -0
  886. package/standalone/interactive-viz-item.js +36 -36
  887. package/standalone/item-grid.js +17 -17
  888. package/standalone/manifest.json +51 -63
  889. package/components/ad-hoc-slot-content-B-qsBK5Y.cjs +0 -20
  890. package/components/ad-hoc-slot-content-BJ2TwuZ_.js +0 -29
  891. package/components/add-to-dashboard-BKNT88zB.cjs +0 -166
  892. package/components/add-to-dashboard-BZBGM2hD.js +0 -808
  893. package/components/ai-chat-DSUhzo6e.js +0 -4464
  894. package/components/ai-chat-DbkKSLz7.cjs +0 -393
  895. package/components/ai-interaction-textarea-AKHc6-I9.js +0 -823
  896. package/components/ai-interaction-textarea-IvhGBwNO.cjs +0 -101
  897. package/components/area-chart-options.config-CPHMgC3Z.cjs +0 -20
  898. package/components/area-chart-options.config-_vAFPSCl.js +0 -219
  899. package/components/area-chart-options.de-DQgBZ85Q.js +0 -95
  900. package/components/area-chart-options.en-C_8QeDtL.js +0 -95
  901. package/components/area-chart-options.es-qtqhkLAN.js +0 -95
  902. package/components/area-chart-options.fr-Dj1ppAEP.js +0 -95
  903. package/components/area-chart-options.nl-zW_03PWa.js +0 -95
  904. package/components/area-chart-positioning.config-Bwu4c8Vf.js +0 -55
  905. package/components/area-chart-positioning.config-C5225m3C.cjs +0 -20
  906. package/components/area-chart-slots.config-BOhwdLnr.cjs +0 -20
  907. package/components/area-chart-slots.config-ClE-gYVY.js +0 -55
  908. package/components/axis-options.config-Dv2BIt_L.js +0 -270
  909. package/components/axis-options.i18n-b4sAT2xv.js +0 -486
  910. package/components/bar-chart-options.config-CIoiRY3c.cjs +0 -20
  911. package/components/bar-chart-options.config-DTg8EtZB.js +0 -266
  912. package/components/bar-chart-options.de-Cx7sIY-k.js +0 -111
  913. package/components/bar-chart-options.en-TmptkrCq.js +0 -111
  914. package/components/bar-chart-options.es-BOKqltQs.js +0 -111
  915. package/components/bar-chart-options.fr-_QYj4ma-.js +0 -111
  916. package/components/bar-chart-options.nl-zBlLF4Am.js +0 -111
  917. package/components/bar-chart-positioning.config-CSJBuZ7T.js +0 -59
  918. package/components/bar-chart-positioning.config-DIguone1.cjs +0 -20
  919. package/components/bar-chart-slots.config-DMWjAd5a.cjs +0 -20
  920. package/components/bar-chart-slots.config-rMFwFprg.js +0 -50
  921. package/components/base-BsT8c1LS.js +0 -248
  922. package/components/base-store-CkIsrRcu.cjs +0 -20
  923. package/components/base-store-gYqg__8A.js +0 -151
  924. package/components/base-v18CO1Nj.cjs +0 -20
  925. package/components/bliss-CK3rEnFv.js +0 -75
  926. package/components/box-plot-options.config-rGZR7gQB.js +0 -352
  927. package/components/box-plot-options.config-zD7Csp-M.cjs +0 -20
  928. package/components/box-plot-options.de-DkOqW1qm.js +0 -108
  929. package/components/box-plot-options.en-BwkPF9ow.js +0 -108
  930. package/components/box-plot-options.es-Bem6QOwX.js +0 -108
  931. package/components/box-plot-options.fr-D6uGRFn8.js +0 -108
  932. package/components/box-plot-options.nl-KTVKF4-A.js +0 -108
  933. package/components/box-plot-positioning.config-C48E3MKZ.js +0 -48
  934. package/components/box-plot-positioning.config-DOQLo_nN.cjs +0 -20
  935. package/components/box-plot-slots.config-5B_pTjPJ.cjs +0 -20
  936. package/components/box-plot-slots.config-DS2UIfRF.js +0 -40
  937. package/components/bubble-chart-options.config-B6aLA_1d.js +0 -142
  938. package/components/bubble-chart-options.config-e_0LM1Uw.cjs +0 -20
  939. package/components/bubble-chart-options.de-Q2nhAQfu.js +0 -49
  940. package/components/bubble-chart-options.en-DedkSXEc.js +0 -49
  941. package/components/bubble-chart-options.es-B7bZFlIa.js +0 -49
  942. package/components/bubble-chart-options.fr-Cz9T05xx.js +0 -49
  943. package/components/bubble-chart-options.nl-BeiE-TWG.js +0 -49
  944. package/components/bubble-chart-positioning.config-CPV43VU9.js +0 -55
  945. package/components/bubble-chart-positioning.config-CqHzs5hk.cjs +0 -20
  946. package/components/bubble-chart-slots.config-2qy2RqaU.js +0 -47
  947. package/components/bubble-chart-slots.config-VHKuntJk.cjs +0 -20
  948. package/components/bullet-chart-options.config-BHw1SMf2.cjs +0 -20
  949. package/components/bullet-chart-options.config-BMWFhdUY.js +0 -95
  950. package/components/bullet-chart-options.de-DeGc5a3k.js +0 -47
  951. package/components/bullet-chart-options.en-BCzDF69d.js +0 -47
  952. package/components/bullet-chart-options.es-D6acIGZV.js +0 -47
  953. package/components/bullet-chart-options.fr-Bb6iNEnb.js +0 -47
  954. package/components/bullet-chart-options.nl-BSRoEom3.js +0 -47
  955. package/components/bullet-chart-positioning.config-DEqBtDsC.cjs +0 -20
  956. package/components/bullet-chart-positioning.config-DTaomKB-.js +0 -56
  957. package/components/bullet-chart-slots.config-BaMmwIH0.js +0 -46
  958. package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +0 -20
  959. package/components/calculate-data-field-icon-DrSg1PuD.js +0 -149
  960. package/components/chart-helpers-DQS2iqSd.js +0 -250
  961. package/components/choropleth-map-options.config-CP-IK-4W.js +0 -352
  962. package/components/choropleth-map-options.config-DSXndhIY.cjs +0 -20
  963. package/components/choropleth-map-options.de-DXLufNgZ.js +0 -72
  964. package/components/choropleth-map-options.en-DGENug11.js +0 -72
  965. package/components/choropleth-map-options.es-Dn2Cv5D-.js +0 -72
  966. package/components/choropleth-map-options.fr-CK0tUEO3.js +0 -72
  967. package/components/choropleth-map-options.nl-CwA4TtvT.js +0 -72
  968. package/components/choropleth-map-positioning.config-Bp4qYXAy.cjs +0 -20
  969. package/components/choropleth-map-positioning.config-DBAi4Bd0.js +0 -55
  970. package/components/choropleth-map-slots.config-CZKWF1qV.cjs +0 -20
  971. package/components/choropleth-map-slots.config-DqOi1kCn.js +0 -53
  972. package/components/circle-pack-chart-options.config-BmX0w3cH.cjs +0 -20
  973. package/components/circle-pack-chart-options.config-D2RCikyA.js +0 -60
  974. package/components/circle-pack-chart-options.de-BrrPqSBf.js +0 -31
  975. package/components/circle-pack-chart-options.en-BdoNRanZ.js +0 -31
  976. package/components/circle-pack-chart-options.es-DLQWaD31.js +0 -31
  977. package/components/circle-pack-chart-options.fr-B66YY6lg.js +0 -31
  978. package/components/circle-pack-chart-options.nl-kOeRMk4n.js +0 -31
  979. package/components/circle-pack-chart-positioning.config-CjQ3GrIe.js +0 -48
  980. package/components/circle-pack-chart-positioning.config-SjlJjLuA.cjs +0 -20
  981. package/components/circle-pack-chart-slots.config-B7_1p86m.js +0 -38
  982. package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +0 -20
  983. package/components/circular-gauge-options.config-CSIUw2VN.cjs +0 -20
  984. package/components/circular-gauge-options.config-syWQJHKT.js +0 -193
  985. package/components/circular-gauge-options.de-D1DVq08k.js +0 -57
  986. package/components/circular-gauge-options.en-CsH_VhDL.js +0 -57
  987. package/components/circular-gauge-options.es-BkiRMNis.js +0 -57
  988. package/components/circular-gauge-options.fr-CxySNula.js +0 -57
  989. package/components/circular-gauge-options.nl-CcQpr_DM.js +0 -57
  990. package/components/circular-gauge-positioning.config-BIDyJWE-.js +0 -48
  991. package/components/circular-gauge-positioning.config-U4B9jf5K.cjs +0 -20
  992. package/components/circular-gauge-slots.config-BxjCP1ao.js +0 -39
  993. package/components/circular-gauge-slots.config-DUHabt3G.cjs +0 -20
  994. package/components/classic-BLOsKyb3.js +0 -82
  995. package/components/classic-dark-Bw01Wzq_.js +0 -73
  996. package/components/color-B7SELPGq.js +0 -3812
  997. package/components/color-BIEQvHs4.cjs +0 -20
  998. package/components/color-palettes-D4z1ONyx.js +0 -1474
  999. package/components/color-range-utils-6oEqHV0y.js +0 -63
  1000. package/components/color-range-utils-Bgzuy2bR.cjs +0 -20
  1001. package/components/column-chart-options.config-TQf4dANz.cjs +0 -20
  1002. package/components/column-chart-options.config-YW0LC1-g.js +0 -265
  1003. package/components/column-chart-options.de-B3M7bxIf.js +0 -111
  1004. package/components/column-chart-options.en-BBFX9b4K.js +0 -111
  1005. package/components/column-chart-options.es-BEfuaiCj.js +0 -111
  1006. package/components/column-chart-options.fr-DVqNXI8g.js +0 -111
  1007. package/components/column-chart-options.nl-CinPRAJ5.js +0 -111
  1008. package/components/column-chart-positioning.config-sLFbLZVk.cjs +0 -20
  1009. package/components/column-chart-positioning.config-yG0tn_Vu.js +0 -55
  1010. package/components/column-chart-slots.config-CM5aytbj.cjs +0 -20
  1011. package/components/column-chart-slots.config-D6MBTcj4.js +0 -50
  1012. package/components/combination-chart-options.config-C8SPwDDG.cjs +0 -20
  1013. package/components/combination-chart-options.config-DeWB-bAh.js +0 -157
  1014. package/components/combination-chart-options.de-COVn8bgM.js +0 -74
  1015. package/components/combination-chart-options.en-3zjVUwIY.js +0 -74
  1016. package/components/combination-chart-options.es-Cl5Z-GI5.js +0 -74
  1017. package/components/combination-chart-options.fr-CBaz1Lhf.js +0 -74
  1018. package/components/combination-chart-options.nl-D32yA2uX.js +0 -74
  1019. package/components/combination-chart-positioning.config-CY6VVSB8.cjs +0 -20
  1020. package/components/combination-chart-positioning.config-DYcpPyto.js +0 -48
  1021. package/components/combination-chart-slots.config-BwUOXFCR.cjs +0 -20
  1022. package/components/combination-chart-slots.config-dYT9lz8M.js +0 -43
  1023. package/components/conditional-number-options.config-Bv2xONtI.js +0 -210
  1024. package/components/conditional-number-options.config-ZVtstIjn.cjs +0 -20
  1025. package/components/conditional-number-options.de-2xle1pGz.js +0 -60
  1026. package/components/conditional-number-options.en-JLoF4JZy.js +0 -60
  1027. package/components/conditional-number-options.es-C_g0UqIh.js +0 -60
  1028. package/components/conditional-number-options.fr-C5cASVba.js +0 -60
  1029. package/components/conditional-number-options.nl-DiV3DzXR.js +0 -60
  1030. package/components/conditional-number-positioning.config-59HfQM-h.js +0 -48
  1031. package/components/conditional-number-positioning.config-7nOlYwZJ.cjs +0 -20
  1032. package/components/conditional-number-slots.config-B7maHIaG.cjs +0 -20
  1033. package/components/conditional-number-slots.config-DtYkqtN8.js +0 -39
  1034. package/components/convert-datasets-to-data-fields-PmQzeVLG.js +0 -68
  1035. package/components/create-lazy-loader-BO_oTDF5.js +0 -31
  1036. package/components/cs-wc4Fl7IN.js +0 -126
  1037. package/components/da-Byf4w3lJ.js +0 -126
  1038. package/components/data-broker-Cb-Fq9xy.cjs +0 -20
  1039. package/components/data-broker-DNfq_8Lg.js +0 -1695
  1040. package/components/data-field-B97ZdRqF.cjs +0 -54
  1041. package/components/data-field-BFy57vAz.js +0 -119
  1042. package/components/data-field-level-DYgKgOlW.cjs +0 -55
  1043. package/components/data-field-level-r11un3Vd.js +0 -245
  1044. package/components/data-field-panel-B-fmhPYi.cjs +0 -87
  1045. package/components/data-field-panel-vDNd2Ba2.js +0 -383
  1046. package/components/data-fields-select-BFJitJP4.js +0 -293
  1047. package/components/data-fields-select-CMUg-UZ2.cjs +0 -43
  1048. package/components/dataset-icon-Bag_eDv8.js +0 -115
  1049. package/components/dataset-icon-CWKBYjGJ.cjs +0 -62
  1050. package/components/dataset-selector-list-BbbjTcYP.cjs +0 -75
  1051. package/components/dataset-selector-list-C_Kru4z5.js +0 -321
  1052. package/components/dataset-selector-row-DDNtBnFA.cjs +0 -104
  1053. package/components/dataset-selector-row-acXjsrw2.js +0 -448
  1054. package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +0 -20
  1055. package/components/date-comparison-filter-options.config-DgLx-m3L.js +0 -126
  1056. package/components/date-comparison-filter-options.de-BSRz6o0Y.js +0 -55
  1057. package/components/date-comparison-filter-options.en-DLbsNe_t.js +0 -55
  1058. package/components/date-comparison-filter-options.es-ChO2qlIh.js +0 -55
  1059. package/components/date-comparison-filter-options.fr-D9HKPj4L.js +0 -55
  1060. package/components/date-comparison-filter-options.nl-BOMQo1X3.js +0 -55
  1061. package/components/date-comparison-filter-positioning.config-DokVHoP8.js +0 -38
  1062. package/components/date-comparison-filter-slots.config-BNgZHORP.cjs +0 -20
  1063. package/components/date-comparison-filter-slots.config-CO_C1qq2.js +0 -37
  1064. package/components/date-filter-options.config-Cbiy0QKd.js +0 -118
  1065. package/components/date-filter-options.config-saR_u4w-.cjs +0 -20
  1066. package/components/date-filter-options.de-DVRUmqQh.js +0 -51
  1067. package/components/date-filter-options.en-Df-q6Eqf.js +0 -51
  1068. package/components/date-filter-options.es-eclXOdtw.js +0 -51
  1069. package/components/date-filter-options.fr-B6CHuun3.js +0 -51
  1070. package/components/date-filter-options.nl-qgltgj2Q.js +0 -51
  1071. package/components/date-filter-positioning.config-D8wFL4L9.js +0 -38
  1072. package/components/date-filter-slots.config-Cuzz0RjE.cjs +0 -20
  1073. package/components/date-filter-slots.config-SzWky1y7.js +0 -37
  1074. package/components/de-DAgEJMr7.js +0 -600
  1075. package/components/de-OHJ9YCFU.js +0 -138
  1076. package/components/decompose-numeric-format-DS0j2wa1.js +0 -36
  1077. package/components/decorate-DyMgX_Uh.js +0 -28
  1078. package/components/default-B35Bj34G.js +0 -78
  1079. package/components/default-acceptable-data-field-types-DFOFWWnT.js +0 -53
  1080. package/components/default-acceptable-data-field-types-fPsz64ka.cjs +0 -20
  1081. package/components/default-dark-CRMTsWZ1.js +0 -78
  1082. package/components/defineProperty-AldSMFEH.js +0 -58
  1083. package/components/display-settings-CZs_f4BT.cjs +0 -143
  1084. package/components/display-settings-D1nFyWkQ.js +0 -317
  1085. package/components/display-settings-binning-6ilwimwX.js +0 -111
  1086. package/components/display-settings-binning-B6QXS_y7.cjs +0 -56
  1087. package/components/display-settings-datetime-BBkz5RnD.cjs +0 -217
  1088. package/components/display-settings-datetime-BcGYD1qG.js +0 -414
  1089. package/components/display-settings-grand-totals-BK4OUxe3.js +0 -90
  1090. package/components/display-settings-grand-totals-BWVQ24RA.cjs +0 -44
  1091. package/components/display-settings-numeric-CdPQbCrV.js +0 -480
  1092. package/components/display-settings-numeric-sx1xoB9i.cjs +0 -190
  1093. package/components/display-settings-period-over-period-BnzPZThi.js +0 -443
  1094. package/components/display-settings-period-over-period-DcI0sSyY.cjs +0 -227
  1095. package/components/donut-chart-options.config-DAetuaMj.cjs +0 -20
  1096. package/components/donut-chart-options.config-DoX09FLQ.js +0 -226
  1097. package/components/donut-chart-options.de-CSSodjBg.js +0 -86
  1098. package/components/donut-chart-options.en-Du6sBhqy.js +0 -86
  1099. package/components/donut-chart-options.es-BWI72OH_.js +0 -86
  1100. package/components/donut-chart-options.fr-DeUbrL1Y.js +0 -86
  1101. package/components/donut-chart-options.nl-bixP46Bs.js +0 -86
  1102. package/components/donut-chart-positioning.config-C7gvsaut.cjs +0 -20
  1103. package/components/donut-chart-positioning.config-CG349i8L.js +0 -48
  1104. package/components/donut-chart-slots.config-Bi08z-XB.cjs +0 -20
  1105. package/components/donut-chart-slots.config-fGqtoKZi.js +0 -39
  1106. package/components/dropdown-filter-options.config-BRzYD0KE.cjs +0 -20
  1107. package/components/dropdown-filter-options.config-DkiapYtc.js +0 -153
  1108. package/components/dropdown-filter-options.de-CGwxbXwe.js +0 -54
  1109. package/components/dropdown-filter-options.en-D4YCo5Bj.js +0 -54
  1110. package/components/dropdown-filter-options.es-BvFyqxrr.js +0 -54
  1111. package/components/dropdown-filter-options.fr-9KlpP9JQ.js +0 -54
  1112. package/components/dropdown-filter-options.nl-4HUfHHPT.js +0 -54
  1113. package/components/dropdown-filter-positioning.config-D1tdnuCP.js +0 -38
  1114. package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +0 -20
  1115. package/components/dropdown-filter-slots.config-DPcT6v-9.js +0 -38
  1116. package/components/en-CcLhGxIh.js +0 -21
  1117. package/components/en-GB-DzkdeUQh.js +0 -28
  1118. package/components/en-GB-uxY5qmIM.cjs +0 -20
  1119. package/components/en-US-CcLhGxIh.js +0 -21
  1120. package/components/en-US-q_Ruzags.cjs +0 -20
  1121. package/components/en-q_Ruzags.cjs +0 -20
  1122. package/components/es-CwVsQ3c4.js +0 -600
  1123. package/components/es-DuN6cMja.js +0 -331
  1124. package/components/evolution-number-options.config-B6iEr_Bp.cjs +0 -20
  1125. package/components/evolution-number-options.config-BGvfrpHI.js +0 -230
  1126. package/components/evolution-number-options.de-DcLx_BOR.js +0 -76
  1127. package/components/evolution-number-options.en-Afr-jy0u.js +0 -76
  1128. package/components/evolution-number-options.es-BQKSc22r.js +0 -76
  1129. package/components/evolution-number-options.fr-97NjkE_T.js +0 -76
  1130. package/components/evolution-number-options.nl-BxQ9H4Ml.js +0 -76
  1131. package/components/evolution-number-positioning.config-NDW5CylY.js +0 -48
  1132. package/components/evolution-number-positioning.config-hRqiCxx0.cjs +0 -20
  1133. package/components/evolution-number-slots.config-CKawNqUS.js +0 -37
  1134. package/components/evolution-number-slots.config-CikuQYgm.cjs +0 -20
  1135. package/components/fi-vuFNiOkH.js +0 -126
  1136. package/components/filter-expression-picker-AhZsJX6t.cjs +0 -40
  1137. package/components/filter-expression-picker-Bzh0ijdV.js +0 -434
  1138. package/components/filter-item-DtfYrF72.cjs +0 -111
  1139. package/components/filter-item-r_VQX0aN.js +0 -793
  1140. package/components/filter-parameter-picker-47fKNqOQ.cjs +0 -124
  1141. package/components/filter-parameter-picker-9gKRRIoC.js +0 -372
  1142. package/components/filter-value-picker-CMVAElyO.cjs +0 -69
  1143. package/components/filter-value-picker-DOpnmys1.js +0 -170
  1144. package/components/filter-value-picker-datetime-Bsw3gRMY.js +0 -160
  1145. package/components/filter-value-picker-datetime-CmCXIZr6.cjs +0 -51
  1146. package/components/filter-value-picker-hierarchy-BKfB-ITE.js +0 -316
  1147. package/components/filter-value-picker-hierarchy-s7Wpaw4o.cjs +0 -54
  1148. package/components/filter-value-picker-numeric-BoynFKq3.js +0 -237
  1149. package/components/filter-value-picker-numeric-DZiqJKfo.cjs +0 -54
  1150. package/components/filters-BwMrnE1n.js +0 -942
  1151. package/components/filters-EeGorv1h.cjs +0 -187
  1152. package/components/formatter-BeXmurVe.cjs +0 -20
  1153. package/components/formatter-Cq5dFCyU.js +0 -1473
  1154. package/components/formula-BXB-WHDl.js +0 -136
  1155. package/components/formula-By6_aBbk.cjs +0 -45
  1156. package/components/formula-codemirror-BIxpbZ4c.js +0 -12008
  1157. package/components/formula-codemirror-CnVOiz8D.cjs +0 -215
  1158. package/components/formula-display-store-1gG5RHaQ.js +0 -1087
  1159. package/components/formula-display-store-xGdjmHOy.cjs +0 -20
  1160. package/components/formula-editor-Djnvotr9.cjs +0 -224
  1161. package/components/formula-editor-QYHi0BS7.js +0 -685
  1162. package/components/formula-field-CAciAbM2.js +0 -38
  1163. package/components/formula-field-cda3Lt6q.cjs +0 -20
  1164. package/components/formula-input-base-3nBrYYjr.js +0 -236
  1165. package/components/formula-input-base-BlX1TmVt.cjs +0 -49
  1166. package/components/fr-Bj3lqI74.js +0 -600
  1167. package/components/fr-CwOLJGv2.js +0 -331
  1168. package/components/funnel-chart-options.config-BjAeGQO1.js +0 -220
  1169. package/components/funnel-chart-options.config-D2zw9c3U.cjs +0 -20
  1170. package/components/funnel-chart-options.de-D677e-vT.js +0 -77
  1171. package/components/funnel-chart-options.en-B7fjBNs8.js +0 -77
  1172. package/components/funnel-chart-options.es-CyfC7rHm.js +0 -77
  1173. package/components/funnel-chart-options.fr-BnAHH5Tc.js +0 -77
  1174. package/components/funnel-chart-options.nl-DeidG7iM.js +0 -77
  1175. package/components/funnel-chart-positioning.config-DfgLOGYz.cjs +0 -20
  1176. package/components/funnel-chart-positioning.config-NaXm8rlC.js +0 -48
  1177. package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +0 -20
  1178. package/components/funnel-chart-slots.config-CfnSH4Ay.js +0 -43
  1179. package/components/get-css-variable-CBXsAxR6.cjs +0 -20
  1180. package/components/get-css-variable-DYnldi15.js +0 -63
  1181. package/components/get-dataset-name-90zXJyuv.cjs +0 -20
  1182. package/components/get-dataset-name-zQn6LfbI.js +0 -32
  1183. package/components/grid-core-BFNgmaGk.js +0 -4490
  1184. package/components/grid-core-DY0vyroD.cjs +0 -68
  1185. package/components/groupings-CZTbYFZG.cjs +0 -20
  1186. package/components/groupings-_daQkDfw.js +0 -52
  1187. package/components/guidelines-options.config-DyedEeX2.js +0 -48
  1188. package/components/he-Cs_3gvpL.js +0 -126
  1189. package/components/heat-map-options.config-D58595hz.js +0 -226
  1190. package/components/heat-map-options.config-DhQrM9S9.cjs +0 -20
  1191. package/components/heat-map-options.de-CdqO8c7P.js +0 -75
  1192. package/components/heat-map-options.en-BAnXacHE.js +0 -75
  1193. package/components/heat-map-options.es-8rTCVZlw.js +0 -75
  1194. package/components/heat-map-options.fr-DbGhKWbq.js +0 -75
  1195. package/components/heat-map-options.nl-nw2vqBOn.js +0 -75
  1196. package/components/heat-map-positioning.config-BuHVU1A6.cjs +0 -20
  1197. package/components/heat-map-positioning.config-DF015WoQ.js +0 -48
  1198. package/components/heat-map-slots.config-D2ypExJQ.js +0 -37
  1199. package/components/heat-map-slots.config-Wp_oS8JQ.cjs +0 -20
  1200. package/components/heat-table-options.config-CcG12s1p.cjs +0 -20
  1201. package/components/heat-table-options.config-CiAQfvyb.js +0 -277
  1202. package/components/heat-table-options.de-CuJLYAKD.js +0 -114
  1203. package/components/heat-table-options.en-BxaSIKKl.js +0 -114
  1204. package/components/heat-table-options.es-IS8jBtX3.js +0 -114
  1205. package/components/heat-table-options.fr-Rnhqij20.js +0 -114
  1206. package/components/heat-table-options.nl-Blzg45N9.js +0 -114
  1207. package/components/heat-table-positioning.config-B1quiLXK.cjs +0 -20
  1208. package/components/heat-table-positioning.config-DYNmIe8W.js +0 -55
  1209. package/components/heat-table-slots.config-B1iOn6ay.js +0 -49
  1210. package/components/heat-table-slots.config-BN7rtHZG.cjs +0 -20
  1211. package/components/helpers-irnB2xbq.js +0 -68
  1212. package/components/hexbin-map-options.config-BGmgxnMh.cjs +0 -20
  1213. package/components/hexbin-map-options.config-FK9DrXGD.js +0 -278
  1214. package/components/hexbin-map-options.de-IOtNvdRA.js +0 -108
  1215. package/components/hexbin-map-options.en-DKEF0zQn.js +0 -108
  1216. package/components/hexbin-map-options.es-FkXMepZ7.js +0 -108
  1217. package/components/hexbin-map-options.fr-DT7-Cefu.js +0 -108
  1218. package/components/hexbin-map-options.nl-BwgDBrw4.js +0 -108
  1219. package/components/hexbin-map-positioning.config-BuQibmnS.cjs +0 -20
  1220. package/components/hexbin-map-positioning.config-DOSka6-0.js +0 -48
  1221. package/components/hexbin-map-slots.config-CC1xZINm.js +0 -37
  1222. package/components/hexbin-map-slots.config-mx5zUTrA.cjs +0 -20
  1223. package/components/hu-BXedq4ZF.js +0 -126
  1224. package/components/icon-element-_jY440X2.js +0 -85
  1225. package/components/image-options.config-DZ5q1D63.cjs +0 -20
  1226. package/components/image-options.config-DxF0RSUF.js +0 -153
  1227. package/components/image-options.de-Bh8QqYb_.js +0 -86
  1228. package/components/image-options.en-D2iUVarz.js +0 -86
  1229. package/components/image-options.es-CKpabSfB.js +0 -86
  1230. package/components/image-options.fr-vfaeguWy.js +0 -86
  1231. package/components/image-options.nl-B16JINhD.js +0 -86
  1232. package/components/image-slots.config-BPJRdlMR.cjs +0 -20
  1233. package/components/image-slots.config-Ba8NXeCH.js +0 -24
  1234. package/components/info-tooltip-options.config-BmSMkirf.js +0 -59
  1235. package/components/info-tooltip-options.i18n-CDx47Py-.js +0 -74
  1236. package/components/interactive-viz-item-Dz21DPw7.js +0 -528
  1237. package/components/interactive-viz-item-bwfCVuux.cjs +0 -261
  1238. package/components/interactivity-options.config-BjEGNaIz.js +0 -73
  1239. package/components/interactivity-options.i18n-UhOnnlBC.js +0 -59
  1240. package/components/it-BoudiwDn.js +0 -331
  1241. package/components/item-grid-C-PV_XGU.js +0 -245
  1242. package/components/item-grid-DfeibuSF.cjs +0 -41
  1243. package/components/item-grid-item-actions-menu-N-RwxYbV.js +0 -199
  1244. package/components/item-grid-item-actions-menu-oi66hGyu.cjs +0 -52
  1245. package/components/item-option-BSMUNIei.cjs +0 -269
  1246. package/components/item-option-DUqd5Yk5.js +0 -959
  1247. package/components/item-option-action-button-group-CQ_KNlor.cjs +0 -53
  1248. package/components/item-option-action-button-group-DwQjz36l.js +0 -117
  1249. package/components/item-option-base-BqB689cF.js +0 -120
  1250. package/components/item-option-base-WwVKCua8.cjs +0 -56
  1251. package/components/item-option-color-palette-picker-BSa6iQ4Q.js +0 -2040
  1252. package/components/item-option-color-palette-picker-DMIH7Lx3.cjs +0 -40
  1253. package/components/item-option-color-picker-B8QOlpjW.cjs +0 -34
  1254. package/components/item-option-color-picker-Bot8vsVS.js +0 -86
  1255. package/components/item-option-color-range-CVXxGF_j.cjs +0 -98
  1256. package/components/item-option-color-range-DkpI1_u0.js +0 -219
  1257. package/components/item-option-guidelines-DqHu1UaW.cjs +0 -135
  1258. package/components/item-option-guidelines-Vf9KVBT1.js +0 -420
  1259. package/components/item-option-multi-language-field-COkiV-Ex.js +0 -81
  1260. package/components/item-option-multi-language-field-DcVU47bG.cjs +0 -33
  1261. package/components/item-option-number-field-CBEnez7J.cjs +0 -38
  1262. package/components/item-option-number-field-DLt9d2q_.js +0 -101
  1263. package/components/item-option-panel-CWL9_KcH.cjs +0 -67
  1264. package/components/item-option-panel-D8duTZJC.js +0 -181
  1265. package/components/item-option-picker-D0fLmX1i.cjs +0 -37
  1266. package/components/item-option-picker-Dsp8mLT2.js +0 -76
  1267. package/components/item-option-position-picker-Bywf-OUq.cjs +0 -32
  1268. package/components/item-option-position-picker-ConiNjAK.js +0 -116
  1269. package/components/item-option-positions-number-field-BM47f9X1.cjs +0 -49
  1270. package/components/item-option-positions-number-field-C8CQV2Sp.js +0 -165
  1271. package/components/item-option-radio-button-group-CeiVKYTC.js +0 -73
  1272. package/components/item-option-radio-button-group-EWnKhsKv.cjs +0 -37
  1273. package/components/item-option-slider-C7Luz7WZ.js +0 -97
  1274. package/components/item-option-slider-ax9GzaT-.cjs +0 -33
  1275. package/components/item-option-switch-D5ce8MJt.cjs +0 -30
  1276. package/components/item-option-switch-ZR6Adrci.js +0 -68
  1277. package/components/item-option-text-field-C6Q_5w_e.js +0 -79
  1278. package/components/item-option-text-field-CKE5PhDl.cjs +0 -33
  1279. package/components/item-slot-drop-BJzr-tMe.cjs +0 -91
  1280. package/components/item-slot-drop-Dzj7M3DQ.js +0 -329
  1281. package/components/item-slot-drop-panel-BfPNKgTF.js +0 -354
  1282. package/components/item-slot-drop-panel-Dpq0wmjK.cjs +0 -57
  1283. package/components/item-slot-picker-CfVBGhtn.js +0 -556
  1284. package/components/item-slot-picker-Dd6Kbogr.cjs +0 -158
  1285. package/components/item-slot-picker-panel-CCuNfI-H.js +0 -451
  1286. package/components/item-slot-picker-panel-CJeNRlV7.cjs +0 -82
  1287. package/components/ja-DOkmGGSd.js +0 -126
  1288. package/components/ko-BrzKwqTe.js +0 -126
  1289. package/components/kpi-options.config-CNBlWUeE.js +0 -334
  1290. package/components/kpi-options.de-DTuT_w_B.js +0 -109
  1291. package/components/kpi-options.en-Bnf64PJC.js +0 -109
  1292. package/components/kpi-options.es-a0gSVDp5.js +0 -109
  1293. package/components/kpi-options.fr-BRlaWkQ_.js +0 -109
  1294. package/components/kpi-options.nl-01k2djoO.js +0 -109
  1295. package/components/kpi-positioning.config-2U0uwmlg.js +0 -48
  1296. package/components/kpi-positioning.config-CsszJTwW.cjs +0 -20
  1297. package/components/kpi-slots.config-tk6nFpOZ.js +0 -36
  1298. package/components/line-chart-options.config-Bmru689o.cjs +0 -20
  1299. package/components/line-chart-options.config-fYL7fjSK.js +0 -255
  1300. package/components/line-chart-options.de-CFcXltXH.js +0 -89
  1301. package/components/line-chart-options.en-B2gp-KSj.js +0 -89
  1302. package/components/line-chart-options.es-OxOYh4jd.js +0 -89
  1303. package/components/line-chart-options.fr-CHk40Imh.js +0 -89
  1304. package/components/line-chart-options.nl-C6ncBb5a.js +0 -89
  1305. package/components/line-chart-positioning.config-BNkVCkEi.js +0 -55
  1306. package/components/line-chart-positioning.config-BPDjzkOl.cjs +0 -20
  1307. package/components/line-chart-slots.config-CA-I6B6o.js +0 -55
  1308. package/components/line-chart-slots.config-vv66fcoE.cjs +0 -20
  1309. package/components/load-data-fields-for-datasets-C4h8NWIE.cjs +0 -20
  1310. package/components/load-data-fields-for-datasets-CInmiDlZ.js +0 -42
  1311. package/components/localize-BT7REYBY.js +0 -29
  1312. package/components/localized-mixin-1pXLxru-.js +0 -45
  1313. package/components/localized-mixin-B90--eee.cjs +0 -20
  1314. package/components/map-tile-providers-RN2cWRln.js +0 -115
  1315. package/components/marker-map-options.config-OMdgbAc4.js +0 -122
  1316. package/components/marker-map-options.config-SkhbtEh0.cjs +0 -20
  1317. package/components/marker-map-options.de-DVb2ab5i.js +0 -63
  1318. package/components/marker-map-options.en-BNwkDxQB.js +0 -63
  1319. package/components/marker-map-options.es-CY2DRGKv.js +0 -63
  1320. package/components/marker-map-options.fr-D31wgwxG.js +0 -63
  1321. package/components/marker-map-options.nl-DyZo_CFt.js +0 -63
  1322. package/components/marker-map-positioning.config-B7HZROjC.cjs +0 -20
  1323. package/components/marker-map-positioning.config-RbKCqlow.js +0 -48
  1324. package/components/marker-map-slots.config-CcGNgr1_.js +0 -37
  1325. package/components/marker-map-slots.config-DigZk7lN.cjs +0 -20
  1326. package/components/mk-Deht4BwZ.js +0 -126
  1327. package/components/nl-C1BTOQ5N.js +0 -138
  1328. package/components/nl-DCnweL_d.js +0 -600
  1329. package/components/no-C9FQ33Mp.js +0 -138
  1330. package/components/ohlc-chart-options.config-C2Ki7XH3.cjs +0 -20
  1331. package/components/ohlc-chart-options.config-DpYG3lZD.js +0 -94
  1332. package/components/ohlc-chart-options.de-LnJmQjiR.js +0 -63
  1333. package/components/ohlc-chart-options.en-B7TU8CK4.js +0 -63
  1334. package/components/ohlc-chart-options.es-B7m8-_pA.js +0 -63
  1335. package/components/ohlc-chart-options.fr-u_Bi9raw.js +0 -63
  1336. package/components/ohlc-chart-options.nl-BrpwjNGt.js +0 -63
  1337. package/components/ohlc-chart-positioning.config-fms6Xm7c.cjs +0 -20
  1338. package/components/ohlc-chart-positioning.config-fvQ1NA0s.js +0 -78
  1339. package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +0 -20
  1340. package/components/ohlc-chart-slots.config-Pv0xst-Y.js +0 -68
  1341. package/components/orion-CXeT8EeB.js +0 -68
  1342. package/components/parallel-coordinates-plot-options.config-2BbzNgJ9.cjs +0 -20
  1343. package/components/parallel-coordinates-plot-options.config-DbuNgevO.js +0 -48
  1344. package/components/parallel-coordinates-plot-options.de-BwbOcCnH.js +0 -31
  1345. package/components/parallel-coordinates-plot-options.en-BlzPfF-b.js +0 -31
  1346. package/components/parallel-coordinates-plot-options.es-CPAqJPEY.js +0 -31
  1347. package/components/parallel-coordinates-plot-options.fr-DRTOCvqg.js +0 -31
  1348. package/components/parallel-coordinates-plot-options.nl-DqXxaV_Z.js +0 -31
  1349. package/components/parallel-coordinates-plot-positioning.config-CdoqYr8U.js +0 -48
  1350. package/components/parallel-coordinates-plot-positioning.config-Dca9E5x1.cjs +0 -20
  1351. package/components/parallel-coordinates-plot-slots.config-GvYC-RXK.js +0 -46
  1352. package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +0 -20
  1353. package/components/period-over-period-condition.const-BZ7j5Z5t.js +0 -29
  1354. package/components/periods.const-NCTkxnvG.js +0 -155
  1355. package/components/pinky-CtuaRwwY.js +0 -68
  1356. package/components/pivot-table-options.config-CTz4bcGJ.js +0 -249
  1357. package/components/pivot-table-options.config-D6Hdgnof.cjs +0 -20
  1358. package/components/pivot-table-options.de-CZjCOf23.js +0 -67
  1359. package/components/pivot-table-options.en-Z6QZwj0n.js +0 -67
  1360. package/components/pivot-table-options.es-DW1enov2.js +0 -67
  1361. package/components/pivot-table-options.fr-Cl4jkSR4.js +0 -67
  1362. package/components/pivot-table-options.nl-CaWEP9qN.js +0 -67
  1363. package/components/pivot-table-positioning.config-B452mjRQ.js +0 -55
  1364. package/components/pivot-table-positioning.config-D4Ufe0a4.cjs +0 -20
  1365. package/components/pivot-table-slots.config-BAW0U3nh.js +0 -55
  1366. package/components/pivot-table-slots.config-KlYXL90k.cjs +0 -20
  1367. package/components/pl-4xvkt0Pl.js +0 -126
  1368. package/components/pragmatic-element-adapter-D0LRKx5U.js +0 -1253
  1369. package/components/pragmatic-element-adapter-DdyH32ix.cjs +0 -24
  1370. package/components/pt-BUpCBhz9.js +0 -126
  1371. package/components/pyramid-chart-options.config-BCBDjb4p.js +0 -222
  1372. package/components/pyramid-chart-options.config-CCts-5RK.cjs +0 -20
  1373. package/components/pyramid-chart-options.de-DF-c80dq.js +0 -103
  1374. package/components/pyramid-chart-options.en-CUA9TibF.js +0 -103
  1375. package/components/pyramid-chart-options.es-DOU8E08a.js +0 -103
  1376. package/components/pyramid-chart-options.fr-DqUZ4U9J.js +0 -103
  1377. package/components/pyramid-chart-options.nl-8nKaQ7cp.js +0 -103
  1378. package/components/pyramid-chart-positioning.config-B_i_YM3u.cjs +0 -20
  1379. package/components/pyramid-chart-positioning.config-D_IQJ54d.js +0 -55
  1380. package/components/pyramid-chart-slots.config-CreUpxI2.cjs +0 -20
  1381. package/components/pyramid-chart-slots.config-CsMMyhV3.js +0 -50
  1382. package/components/radar-chart-options.config-BR1P1bC2.cjs +0 -20
  1383. package/components/radar-chart-options.config-Cso1juLq.js +0 -173
  1384. package/components/radar-chart-options.de-vQACT9qo.js +0 -54
  1385. package/components/radar-chart-options.en-DPzqlJP6.js +0 -54
  1386. package/components/radar-chart-options.es-CYh8qQtu.js +0 -54
  1387. package/components/radar-chart-options.fr-xpzxqPGa.js +0 -54
  1388. package/components/radar-chart-options.nl-03B6BgO1.js +0 -54
  1389. package/components/radar-chart-positioning.config-Binwswco.js +0 -55
  1390. package/components/radar-chart-positioning.config-o4DUvLDH.cjs +0 -20
  1391. package/components/radar-chart-slots.config-8Kf_WAFi.js +0 -53
  1392. package/components/radar-chart-slots.config-B3oIp-8w.cjs +0 -20
  1393. package/components/radiant-CFMCU8Ue.js +0 -71
  1394. package/components/regular-table-options.config-BRmS77t-.js +0 -153
  1395. package/components/regular-table-options.config-nBBnO4ru.cjs +0 -20
  1396. package/components/regular-table-options.de-g9j453gb.js +0 -57
  1397. package/components/regular-table-options.en-BrufALdp.js +0 -57
  1398. package/components/regular-table-options.es-CTDJJHWO.js +0 -57
  1399. package/components/regular-table-options.fr-CwmYI6Kh.js +0 -57
  1400. package/components/regular-table-options.nl-Dco7Br5G.js +0 -57
  1401. package/components/regular-table-positioning.config-DegSA7rc.js +0 -38
  1402. package/components/regular-table-slots.config-UwzWj6gg.cjs +0 -20
  1403. package/components/regular-table-slots.config-r-N9A-qA.js +0 -35
  1404. package/components/resolve-column-presentation-BaEP1mvs.js +0 -34
  1405. package/components/rolldown-runtime-mLOUI7ql.cjs +0 -20
  1406. package/components/route-map-options.config-BnufVGcz.js +0 -328
  1407. package/components/route-map-options.config-DA3k24sP.cjs +0 -20
  1408. package/components/route-map-options.de-C8gPppGo.js +0 -76
  1409. package/components/route-map-options.en-Bqo2qPTY.js +0 -76
  1410. package/components/route-map-options.es-Bk1nyazp.js +0 -76
  1411. package/components/route-map-options.fr-vq0ht9wS.js +0 -76
  1412. package/components/route-map-options.nl-CBhNlitV.js +0 -76
  1413. package/components/route-map-positioning.config-Cx8m_rSE.cjs +0 -20
  1414. package/components/route-map-positioning.config-DEczJEXT.js +0 -66
  1415. package/components/route-map-slots.config-DMII2UuP.js +0 -59
  1416. package/components/route-map-slots.config-DfYT65BF.cjs +0 -20
  1417. package/components/royale-Cy1oOAE2.js +0 -60
  1418. package/components/ru-CkNBR3ab.js +0 -126
  1419. package/components/sankey-diagram-options.config-DZDqv5aI.cjs +0 -20
  1420. package/components/sankey-diagram-options.config-nQDCRhKs.js +0 -130
  1421. package/components/sankey-diagram-options.de-CDt5-4Rb.js +0 -63
  1422. package/components/sankey-diagram-options.en-65nfEWo_.js +0 -63
  1423. package/components/sankey-diagram-options.es-JD4SHY3x.js +0 -63
  1424. package/components/sankey-diagram-options.fr-B7wQDggY.js +0 -63
  1425. package/components/sankey-diagram-options.nl-CHqVVjut.js +0 -63
  1426. package/components/sankey-diagram-positioning.config-CTqWiBUJ.js +0 -66
  1427. package/components/sankey-diagram-positioning.config-mR-LUCqf.cjs +0 -20
  1428. package/components/sankey-diagram-slots.config-D-_u4w36.cjs +0 -20
  1429. package/components/sankey-diagram-slots.config-DmWIGut0.js +0 -61
  1430. package/components/scatter-plot-options.config-BjkL6NKA.js +0 -165
  1431. package/components/scatter-plot-options.config-iJwa8WRA.cjs +0 -20
  1432. package/components/scatter-plot-options.de-DiT6Dfgy.js +0 -115
  1433. package/components/scatter-plot-options.en-DaPAnBDH.js +0 -115
  1434. package/components/scatter-plot-options.es-DKVASEN4.js +0 -115
  1435. package/components/scatter-plot-options.fr-DPt3Ffoy.js +0 -115
  1436. package/components/scatter-plot-options.nl-B5ytQ1Si.js +0 -115
  1437. package/components/scatter-plot-positioning.config-BTGs9-I8.cjs +0 -20
  1438. package/components/scatter-plot-positioning.config-Bp7rL91c.js +0 -77
  1439. package/components/scatter-plot-slots.config-B7wQVEEj.js +0 -74
  1440. package/components/scatter-plot-slots.config-CrG6wQtV.cjs +0 -20
  1441. package/components/search-filter-options.config-B-dGVPhS.cjs +0 -20
  1442. package/components/search-filter-options.config-yAz6IIto.js +0 -103
  1443. package/components/search-filter-options.de-BxVThclj.js +0 -42
  1444. package/components/search-filter-options.en-CVxOFFq-.js +0 -42
  1445. package/components/search-filter-options.es-YKtCfXeL.js +0 -42
  1446. package/components/search-filter-options.fr-GGa8ofab.js +0 -42
  1447. package/components/search-filter-options.nl-ysVe1z-i.js +0 -42
  1448. package/components/search-filter-positioning.config-DOSL-FX_.js +0 -38
  1449. package/components/search-filter-slots.config-D8-V0BT5.js +0 -39
  1450. package/components/search-filter-slots.config-DP06ulJA.cjs +0 -20
  1451. package/components/seasonal-DZkRSBgY.js +0 -76
  1452. package/components/set-locale-7HTPxGjw.cjs +0 -20
  1453. package/components/set-locale-Bs5YY20M.js +0 -43
  1454. package/components/set-nested-value-V1TdquO3.js +0 -33
  1455. package/components/slicer-filter-options.config-BtGkT2hI.js +0 -235
  1456. package/components/slicer-filter-options.config-Cyjd_SRY.cjs +0 -20
  1457. package/components/slicer-filter-options.de-Ck5STkcT.js +0 -69
  1458. package/components/slicer-filter-options.en-RaYV5qQy.js +0 -69
  1459. package/components/slicer-filter-options.es-C1LS6cqV.js +0 -69
  1460. package/components/slicer-filter-options.fr-CYOej3j3.js +0 -69
  1461. package/components/slicer-filter-options.nl-B9CyFXTX.js +0 -69
  1462. package/components/slicer-filter-positioning.config-CsJLDnDr.cjs +0 -20
  1463. package/components/slicer-filter-positioning.config-aFwENsde.js +0 -48
  1464. package/components/slicer-filter-slots.config-CHKpdJvF.cjs +0 -20
  1465. package/components/slicer-filter-slots.config-DR0Wg_Zr.js +0 -44
  1466. package/components/slider-filter-options.config-BeIw6IrQ.cjs +0 -20
  1467. package/components/slider-filter-options.config-D_yZ_nFz.js +0 -72
  1468. package/components/slider-filter-options.de-CUPN4B_3.js +0 -35
  1469. package/components/slider-filter-options.en-CqnlQHF8.js +0 -35
  1470. package/components/slider-filter-options.es-CN-cg2rH.js +0 -35
  1471. package/components/slider-filter-options.fr-BxgSJRs4.js +0 -35
  1472. package/components/slider-filter-options.nl-Cd41AI1Z.js +0 -35
  1473. package/components/slider-filter-positioning.config-DSoEN2ip.js +0 -38
  1474. package/components/slider-filter-slots.config-9R298H0t.cjs +0 -20
  1475. package/components/slider-filter-slots.config-BUHw-32u.js +0 -43
  1476. package/components/slot-content-C9m-z0Ux.js +0 -23
  1477. package/components/slot-labels.config-3nXLBRdr.js +0 -63
  1478. package/components/slot-menu-8u11TsUc.js +0 -436
  1479. package/components/slot-menu-NXDPZnP6.cjs +0 -71
  1480. package/components/slot-menu-list-B7MZhB0X.js +0 -348
  1481. package/components/slot-menu-list-Bu-9QjNs.cjs +0 -44
  1482. package/components/slot-role-classification-DKClEpT3.js +0 -133
  1483. package/components/slots-config-ChJNgCJz.js +0 -77
  1484. package/components/slots-config-Cy9pA0wm.cjs +0 -20
  1485. package/components/spacer-options.config-C27xkF_H.js +0 -23
  1486. package/components/speedometer-chart-options.config-BL7evgzP.js +0 -251
  1487. package/components/speedometer-chart-options.config-CEIZfeYG.cjs +0 -20
  1488. package/components/speedometer-chart-options.de-9J5HFt8T.js +0 -66
  1489. package/components/speedometer-chart-options.en-DSQsXJfa.js +0 -66
  1490. package/components/speedometer-chart-options.es-BGphL673.js +0 -66
  1491. package/components/speedometer-chart-options.fr-Cj4C4th7.js +0 -66
  1492. package/components/speedometer-chart-options.nl-BKNd6tYT.js +0 -66
  1493. package/components/speedometer-chart-positioning.config-ByucHpVq.cjs +0 -20
  1494. package/components/speedometer-chart-positioning.config-M5bbwHnf.js +0 -48
  1495. package/components/speedometer-chart-slots.config-2Y_x52Gy.js +0 -39
  1496. package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +0 -20
  1497. package/components/spike-map-options.config-34Vf0UbN.cjs +0 -20
  1498. package/components/spike-map-options.config-CBpHkAfo.js +0 -415
  1499. package/components/spike-map-options.de-J48HW0-l.js +0 -103
  1500. package/components/spike-map-options.en-Cic1NUan.js +0 -103
  1501. package/components/spike-map-options.es-DbCa45oc.js +0 -103
  1502. package/components/spike-map-options.fr-LqDsPbpZ.js +0 -103
  1503. package/components/spike-map-options.nl-CRaM6WoB.js +0 -103
  1504. package/components/spike-map-positioning.config-DYEWpWkA.cjs +0 -20
  1505. package/components/spike-map-positioning.config-dNm1lk3j.js +0 -55
  1506. package/components/spike-map-slots.config-DJWMFPIR.js +0 -47
  1507. package/components/spike-map-slots.config-cKfaD6dQ.cjs +0 -20
  1508. package/components/strip-plot-options.config-DpRoR04b.cjs +0 -20
  1509. package/components/strip-plot-options.config-tDmVlu9U.js +0 -54
  1510. package/components/strip-plot-options.de-vzJck0Vn.js +0 -31
  1511. package/components/strip-plot-options.en-Bdv_ZOrd.js +0 -31
  1512. package/components/strip-plot-options.es-B91vttJc.js +0 -31
  1513. package/components/strip-plot-options.fr-DJQiJ_Zf.js +0 -31
  1514. package/components/strip-plot-options.nl-Dx7PVRrW.js +0 -31
  1515. package/components/strip-plot-positioning.config-B3cbP2kI.js +0 -48
  1516. package/components/strip-plot-positioning.config-CdAnENxc.cjs +0 -20
  1517. package/components/strip-plot-slots.config-DNYlrK_c.cjs +0 -20
  1518. package/components/strip-plot-slots.config-suFyIf5-.js +0 -38
  1519. package/components/sunburst-chart-options.config-C5ChdoMM.js +0 -190
  1520. package/components/sunburst-chart-options.config-CtT-pBM0.cjs +0 -20
  1521. package/components/sunburst-chart-options.de-DPRW5IB9.js +0 -61
  1522. package/components/sunburst-chart-options.en-BU4abvh8.js +0 -61
  1523. package/components/sunburst-chart-options.es-Bo65ZQ0Y.js +0 -61
  1524. package/components/sunburst-chart-options.fr-5_0gm7hs.js +0 -61
  1525. package/components/sunburst-chart-options.nl-Bcqm8ykQ.js +0 -61
  1526. package/components/sunburst-chart-positioning.config-BSrxf6KC.js +0 -48
  1527. package/components/sunburst-chart-positioning.config-DiJnTxYQ.cjs +0 -20
  1528. package/components/sunburst-chart-slots.config-BqVT-h0Z.js +0 -38
  1529. package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +0 -20
  1530. package/components/superPropGet-CBezYwzm.js +0 -52
  1531. package/components/sv-D2kQHkgH.js +0 -126
  1532. package/components/symbol-map-options.config-Ce0Kv7N7.cjs +0 -20
  1533. package/components/symbol-map-options.config-Dyeya5Z2.js +0 -179
  1534. package/components/symbol-map-options.de-CAapWyZM.js +0 -66
  1535. package/components/symbol-map-options.en-CaXeV5i_.js +0 -66
  1536. package/components/symbol-map-options.es-Ccu0xWZb.js +0 -66
  1537. package/components/symbol-map-options.fr-B7F1XlQX.js +0 -66
  1538. package/components/symbol-map-options.nl-DkV83AGA.js +0 -66
  1539. package/components/symbol-map-positioning.config-CM8nQeNy.cjs +0 -20
  1540. package/components/symbol-map-positioning.config-rLomOVfq.js +0 -55
  1541. package/components/symbol-map-slots.config-DwNf547A.cjs +0 -20
  1542. package/components/symbol-map-slots.config-Rhpher5o.js +0 -53
  1543. package/components/text-options.config-BwBCG2yo.cjs +0 -20
  1544. package/components/text-options.config-CXhvzzPF.js +0 -67
  1545. package/components/text-options.de-Rtef15Lz.js +0 -30
  1546. package/components/text-options.en-YdJ2bVwv.js +0 -30
  1547. package/components/text-options.es-Chd8-zuc.js +0 -30
  1548. package/components/text-options.fr-CWeBOXaW.js +0 -30
  1549. package/components/text-options.nl-CyY1z7nM.js +0 -30
  1550. package/components/text-slots.config-CPghLc8b.cjs +0 -20
  1551. package/components/text-slots.config-Dzj4-x2G.js +0 -24
  1552. package/components/themes-CQZd578_.js +0 -72
  1553. package/components/tokens-Ov1pCR4Y.js +0 -29
  1554. package/components/tr-B66hMkRl.js +0 -138
  1555. package/components/treemap-chart-options.config-BzOCEWog.js +0 -211
  1556. package/components/treemap-chart-options.config-Cpj6vD6I.cjs +0 -20
  1557. package/components/treemap-chart-options.de-ByDBntoA.js +0 -64
  1558. package/components/treemap-chart-options.en-0-5g1Vjs.js +0 -64
  1559. package/components/treemap-chart-options.es-CDkb_3c3.js +0 -64
  1560. package/components/treemap-chart-options.fr-rj0fjvUO.js +0 -64
  1561. package/components/treemap-chart-options.nl-CQjDtoqG.js +0 -64
  1562. package/components/treemap-chart-positioning.config-CNI_L1cu.cjs +0 -20
  1563. package/components/treemap-chart-positioning.config-YlPQDHr3.js +0 -55
  1564. package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +0 -20
  1565. package/components/treemap-chart-slots.config-DRcafVU-.js +0 -47
  1566. package/components/type-check-CGREdneG.js +0 -52
  1567. package/components/types-DNRGKFSD.js +0 -44
  1568. package/components/urban-8R0DqHZs.js +0 -71
  1569. package/components/utils-C80zlrQc.js +0 -240
  1570. package/components/utils-GBxc3BlF.cjs +0 -20
  1571. package/components/v4-DIjJgmR0.js +0 -49
  1572. package/components/venn-diagram-options.config-BMlduwIp.js +0 -24
  1573. package/components/venn-diagram-options.config-BamlR1qo.cjs +0 -20
  1574. package/components/venn-diagram-positioning.config-BETZMKZU.cjs +0 -20
  1575. package/components/venn-diagram-positioning.config-BdsCGNon.js +0 -55
  1576. package/components/venn-diagram-slots.config-CMDndPVi.js +0 -47
  1577. package/components/venn-diagram-slots.config-DYTmU8v2.cjs +0 -20
  1578. package/components/video-options.config-BhBpkaLJ.cjs +0 -20
  1579. package/components/video-options.config-DdfSTJEJ.js +0 -127
  1580. package/components/video-options.de-CqDvojKb.js +0 -60
  1581. package/components/video-options.en-DWsFJndr.js +0 -60
  1582. package/components/video-options.es-C986CdLZ.js +0 -60
  1583. package/components/video-options.fr-CF8lEOzZ.js +0 -60
  1584. package/components/video-options.nl-DnHgROBb.js +0 -60
  1585. package/components/video-slots.config-DMut7o7r.cjs +0 -20
  1586. package/components/video-slots.config-Utnn0DBW.js +0 -24
  1587. package/components/vivid-YDTQ3C2-.js +0 -72
  1588. package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +0 -20
  1589. package/components/wordcloud-chart-options.config-y9Z5I_ZN.js +0 -97
  1590. package/components/wordcloud-chart-options.de-0T6RwBxn.js +0 -49
  1591. package/components/wordcloud-chart-options.en-xMN7HxWU.js +0 -49
  1592. package/components/wordcloud-chart-options.es-DPccPG_x.js +0 -49
  1593. package/components/wordcloud-chart-options.fr-D6DKbL9I.js +0 -49
  1594. package/components/wordcloud-chart-options.nl-CBKMvA4E.js +0 -49
  1595. package/components/wordcloud-chart-positioning.config-CTyeSljW.cjs +0 -20
  1596. package/components/wordcloud-chart-positioning.config-D5fF1omH.js +0 -55
  1597. package/components/wordcloud-chart-slots.config-CvabtgbP.js +0 -45
  1598. package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +0 -20
  1599. package/components/zh-CN-EbmFbkUF.js +0 -126
  1600. package/components/zh-TW-zX5KG7hP.js +0 -126
  1601. package/standalone/chunks/add-to-dashboard-PmAMsZVR.js +0 -148
  1602. package/standalone/chunks/axis-options.i18n-WUQx3mVm.js +0 -2
  1603. package/standalone/chunks/base-BDb1i8ts.js +0 -2
  1604. package/standalone/chunks/calculate-data-field-icon-CrEVAfzJ.js +0 -2
  1605. package/standalone/chunks/chart-helpers-BplLoVQz.js +0 -2
  1606. package/standalone/chunks/choropleth-map-options.config-Ul1FSTwf.js +0 -2
  1607. package/standalone/chunks/color-DaeCRJ5Q.js +0 -2
  1608. package/standalone/chunks/color-range-utils-CLqVCA5J.js +0 -2
  1609. package/standalone/chunks/data-broker-Dgg5mQze.js +0 -2
  1610. package/standalone/chunks/de-BmUc_yRK.js +0 -2
  1611. package/standalone/chunks/decompose-numeric-format-BXLQ97e2.js +0 -2
  1612. package/standalone/chunks/default-local-formats-CES1ItiK.js +0 -2
  1613. package/standalone/chunks/display-settings-binning-BdPPJQgr.js +0 -38
  1614. package/standalone/chunks/display-settings-datetime-CA0XZBCf.js +0 -199
  1615. package/standalone/chunks/display-settings-grand-totals-BxaxX738.js +0 -26
  1616. package/standalone/chunks/display-settings-numeric-DCcaY0CT.js +0 -172
  1617. package/standalone/chunks/display-settings-period-over-period-BV2-BD3x.js +0 -209
  1618. package/standalone/chunks/embed-NStEUFPE.js +0 -228
  1619. package/standalone/chunks/en-BD2RCLuw.js +0 -2
  1620. package/standalone/chunks/en-GB-DnwmFNwC.js +0 -2
  1621. package/standalone/chunks/en-US-BD2RCLuw.js +0 -2
  1622. package/standalone/chunks/es-ALGHlhRU.js +0 -2
  1623. package/standalone/chunks/filters-BWbmBnJQ.js +0 -532
  1624. package/standalone/chunks/formatter-B7zz6UOp.js +0 -2
  1625. package/standalone/chunks/formula-codemirror-B3OKlAeE.js +0 -197
  1626. package/standalone/chunks/fr-7fW7st9t.js +0 -2
  1627. package/standalone/chunks/heat-map-options.config-DYIrP8cV.js +0 -2
  1628. package/standalone/chunks/heat-table-options.config-BmtIS2zc.js +0 -2
  1629. package/standalone/chunks/item-option-action-button-group-C1Zzs6lu.js +0 -35
  1630. package/standalone/chunks/item-option-base-BwVEqzsL.js +0 -38
  1631. package/standalone/chunks/item-option-color-palette-picker-BEsQ8X2M.js +0 -22
  1632. package/standalone/chunks/item-option-color-picker-DRixczVh.js +0 -16
  1633. package/standalone/chunks/item-option-color-range-BIr16B6g.js +0 -80
  1634. package/standalone/chunks/item-option-guidelines-lNUkkYnR.js +0 -117
  1635. package/standalone/chunks/item-option-multi-language-field-CiWgrnnb.js +0 -15
  1636. package/standalone/chunks/item-option-number-field-BDARuu3f.js +0 -20
  1637. package/standalone/chunks/item-option-panel-axHc4RhZ.js +0 -298
  1638. package/standalone/chunks/item-option-picker-D37EGzLW.js +0 -19
  1639. package/standalone/chunks/item-option-position-picker-CRyjGhtO.js +0 -14
  1640. package/standalone/chunks/item-option-positions-number-field-DRuBQrdp.js +0 -31
  1641. package/standalone/chunks/item-option-radio-button-group-BS6BA4h7.js +0 -19
  1642. package/standalone/chunks/item-option-slider-CdY1pYVs.js +0 -15
  1643. package/standalone/chunks/item-option-switch-QnA2BZUl.js +0 -12
  1644. package/standalone/chunks/item-option-text-field-Dv2-990V.js +0 -15
  1645. package/standalone/chunks/item-slot-picker-panel-D6Sks3Px.js +0 -425
  1646. package/standalone/chunks/kpi-options.config-Brq70MGS.js +0 -2
  1647. package/standalone/chunks/lit-localize-CIGP-NUw.js +0 -2
  1648. package/standalone/chunks/load-data-fields-for-datasets-DvtF89uI.js +0 -25
  1649. package/standalone/chunks/load-formula-codemirror-DO2Dte88.js +0 -6
  1650. package/standalone/chunks/localize-BXHWaHdZ.js +0 -2
  1651. package/standalone/chunks/localized-decorator-Buib6Rq1.js +0 -2
  1652. package/standalone/chunks/localized-mixin-C3TNnUAB.js +0 -2
  1653. package/standalone/chunks/nl-B-xrnrUr.js +0 -2
  1654. package/standalone/chunks/period-over-period-condition.const-AC_onvUf.js +0 -2
  1655. package/standalone/chunks/periods.const-Cie50jR4.js +0 -2
  1656. package/standalone/chunks/route-map-options.config-CWyA9_SB.js +0 -2
  1657. package/standalone/chunks/spike-map-options.config-YOYHTzZs.js +0 -2
  1658. package/standalone/chunks/task-CNp3cEJA.js +0 -2
  1659. package/standalone/chunks/themes-BD5sKr3j.js +0 -2
  1660. package/standalone/chunks/type-check-CC6bgirK.js +0 -2
  1661. package/standalone/chunks/types-BS6dxSMT.js +0 -2
  1662. package/standalone/chunks/v4-CI0qP0ur.js +0 -2
  1663. package/standalone/chunks/version-Byoa09L1.js +0 -2
@@ -1,4490 +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-B7SELPGq.js";
23
- import { t as n } from "./v4-DIjJgmR0.js";
24
- import { luzmoArrows as r } from "@luzmo/icons";
25
- import "@luzmo/lucero/icon";
26
- import { html as i, render as a, unsafeCSS as o } from "lit";
27
- import { property as s, query as c, queryAll as l, state as u } from "lit/decorators.js";
28
- import { msg as d, str as f } from "@lit/localize";
29
- import { repeat as p } from "lit/directives/repeat.js";
30
- import { guard as m } from "lit/directives/guard.js";
31
- import { LuzmoElement as h } from "@luzmo/lucero/utils";
32
- //#region node_modules/gridstack/dist/gridstack.min.css?inline
33
- var g = ".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;top:auto!important;bottom:auto!important;left:auto!important;right: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}}", _ = ({ action: e, actionType: t, active: n, items: r, element: i, itemId: a, item: o, deletedId: s, originalElement: c, updatedItems: l }) => ({
34
- action: e,
35
- actionType: t,
36
- active: n,
37
- items: r,
38
- element: i,
39
- item: {
40
- ...o,
41
- id: a,
42
- filters: o?.filters ?? []
43
- },
44
- ...s && { deletedId: s },
45
- ...c && { originalElement: c },
46
- ...l && { updatedItems: l }
47
- }), v = ({ target: e, action: t, actionType: n, active: r, items: i, element: a, itemId: o, item: s, deletedId: c, originalElement: l, updatedItems: u }) => {
48
- e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-action", {
49
- detail: _({
50
- action: t,
51
- actionType: n,
52
- active: r,
53
- items: i,
54
- element: a,
55
- itemId: o,
56
- item: s,
57
- deletedId: c,
58
- originalElement: l,
59
- updatedItems: u
60
- }),
61
- bubbles: !0,
62
- composed: !0,
63
- cancelable: !0
64
- }));
65
- }, y = ({ target: e, itemStates: t, updatedItemStates: n, changedItemStates: r }) => {
66
- e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-states-changed", {
67
- detail: {
68
- itemStates: t,
69
- updatedItemStates: n,
70
- changedItemStates: r
71
- },
72
- bubbles: !0,
73
- composed: !0
74
- }));
75
- }, b = ({ target: e, eventName: t, detail: n }) => {
76
- e.dispatchEvent(new CustomEvent(t, {
77
- detail: n,
78
- bubbles: !0,
79
- composed: !0
80
- }));
81
- }, x = (e) => e instanceof Element ? e : void 0, ee = (e) => x(e)?.closest(".grid-stack-item"), te = ({ event: e, gridItem: t }) => !x(e.relatedTarget)?.closest(".grid-item-actions-popover") && !t.hasAttribute("active"), S = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => {
82
- let r = ee(e.target);
83
- return r ? (t && t !== r && (t.removeAttribute("focused"), n(t)), r.setAttribute("focused", "true"), r) : t;
84
- }, C = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => t ? x(e.relatedTarget)?.closest("luzmo-item-grid-item-actions-menu") ? {
85
- focusedItemElement: t,
86
- shouldFocusGrid: !1
87
- } : (t.removeAttribute("focused"), n(t), {
88
- focusedItemElement: void 0,
89
- shouldFocusGrid: !0
90
- }) : {
91
- focusedItemElement: void 0,
92
- shouldFocusGrid: !1
93
- }, ne = ({ item: e, activeItemElement: t, gridElement: n, removeItemActionsMenuPopover: r }) => {
94
- if (e.removeAttribute("active"), r(e), t === e) {
95
- n.removeAttribute("has-active-item");
96
- return;
97
- }
98
- return t;
99
- }, re = ({ event: e, gridElement: t, items: n, state: r, cleanupActiveItem: i, dispatchItemActionEvent: a, createItemActionsMenuPopover: o }) => {
100
- e.stopPropagation();
101
- let s = e.detail, c = e.target?.closest(".grid-stack-item");
102
- if (!c) return r;
103
- let l = c.getAttribute("gs-id"), u = n.find((e) => e.id === l);
104
- 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) => {
105
- e !== c && i(e);
106
- }), 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);
107
- }, ie = ({ event: e, gridElement: t, hostElement: n, items: r, activeItemActionToggle: i, cleanupActiveItem: a, dispatchItemActionEvent: o }) => {
108
- let s = e.composedPath();
109
- if (!s.includes(t) && !s.includes(n)) return { activeItemActionToggle: i };
110
- let c = t.querySelector(".grid-stack-item[active]");
111
- if (!c || s.includes(c)) return { activeItemActionToggle: i };
112
- let l = c.querySelector(".grid-item-actions-popover");
113
- if (l && s.includes(l)) return { activeItemActionToggle: i };
114
- let u = c.getAttribute("gs-id"), d = r.find((e) => e.id === u);
115
- return a(c), i && u && o(i, "toggle", !1, c, u, d), { activeItemActionToggle: void 0 };
116
- }, ae = ({ gridElement: e, items: t, gridItemData: n, itemId: r, action: i, options: a, state: o, cleanupActiveItem: s, dispatchItemActionEvent: c, createItemActionsMenuPopover: l }) => {
117
- if (!n?.element) return {
118
- result: void 0,
119
- state: o
120
- };
121
- let u = n.element, d = n.item, f = i === o.activeItemActionToggle && u === o.activeItemElement, p = a?.active ?? !f;
122
- if (a?.active !== void 0 && p === f) return {
123
- result: f,
124
- state: o
125
- };
126
- 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), {
127
- result: !1,
128
- state: o
129
- };
130
- if (o.activeItemElement && o.activeItemElement !== u) {
131
- let e = o.activeItemElement.getAttribute("gs-id"), n = t.find((t) => t.id === e), r = o.activeItemActionToggle, i = o.activeItemElement;
132
- s(o.activeItemElement), o.activeItemElement = void 0, o.activeItemActionToggle = void 0, r && e && n && c(r, "toggle", !1, i, e, n);
133
- }
134
- 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), {
135
- result: !0,
136
- state: o
137
- };
138
- }, oe = ({ gridElement: e, items: t, state: n, cleanupActiveItem: r, dispatchItemActionEvent: i }) => {
139
- let a = 0;
140
- if (n.activeItemElement && n.activeItemActionToggle) {
141
- let o = n.activeItemElement.getAttribute("gs-id"), s = t.find((e) => e.id === o), c = n.activeItemActionToggle, l = n.activeItemElement;
142
- 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++);
143
- }
144
- return {
145
- deactivatedCount: a,
146
- state: n
147
- };
148
- }, se = {
149
- sizeX: 1,
150
- sizeY: 1,
151
- col: 0,
152
- row: 0
153
- }, ce = (e) => {
154
- e.forEach((e) => {
155
- if (!e.id) throw Error("Grid item id is required");
156
- });
157
- }, le = (e) => {
158
- if (!e.id) throw Error("Grid item id is required");
159
- return e.id;
160
- }, ue = (e, t) => ({
161
- id: t,
162
- x: e?.position?.col ?? 0,
163
- y: e?.position?.row ?? 0,
164
- w: e?.position?.sizeX ?? 1,
165
- h: e?.position?.sizeY ?? 1
166
- }), de = (e, t) => ({
167
- ...structuredClone(e),
168
- id: t,
169
- position: {
170
- ...se,
171
- ...structuredClone(e.position)
172
- },
173
- canFilter: e.canFilter ?? "all"
174
- }), fe = (e, t) => {
175
- if (t) {
176
- for (let n of e) if (n.getAttribute("luzmo-item-grid-item-id") === t) return n;
177
- }
178
- }, pe = (e, t) => e.map((e) => ({
179
- item: e,
180
- element: t.querySelector(`[gs-id="${CSS.escape(e.id)}"]`)
181
- })), me = ({ item: e, engine: t, existingItems: n, autoPosition: r, excludeNodeId: i }) => {
182
- let a = e.position, o = i ? t.nodes.filter((e) => e.id !== i) : t.nodes, s = new t.constructor({
183
- column: t.column,
184
- mode: t.mode,
185
- nodes: o.map((e) => ({ ...e }))
186
- }), c = {
187
- x: a.col,
188
- y: a.row,
189
- w: a.sizeX,
190
- h: a.sizeY,
191
- id: e.id,
192
- autoPosition: r
193
- };
194
- s.addNode(c);
195
- let l = {
196
- ...e,
197
- position: {
198
- col: c.x ?? a.col,
199
- row: c.y ?? a.row,
200
- sizeX: c.w ?? a.sizeX,
201
- sizeY: c.h ?? a.sizeY
202
- }
203
- };
204
- return {
205
- resolvedItem: l,
206
- updatedItems: [...n.map((e) => {
207
- let t = s.nodes.find((t) => t.id === e.id);
208
- return t && t.x != null && t.y != null && t.w != null && t.h != null ? {
209
- ...e,
210
- position: {
211
- col: t.x,
212
- row: t.y,
213
- sizeX: t.w,
214
- sizeY: t.h
215
- }
216
- } : e;
217
- }), l]
218
- };
219
- }, he = ({ itemId: e, patch: t, engine: n, existingItems: r }) => {
220
- let i = r.find((t) => t.id === e);
221
- if (!i?.position) return r;
222
- let { resolvedItem: a, updatedItems: o } = me({
223
- item: {
224
- ...i,
225
- position: {
226
- ...i.position,
227
- ...t
228
- }
229
- },
230
- engine: n,
231
- existingItems: r.filter((t) => t.id !== e),
232
- autoPosition: !1,
233
- excludeNodeId: e
234
- });
235
- return r.map((t) => t.id === e ? a : o.find((e) => e.id === t.id) ?? t);
236
- }, ge = (e) => de(e, e.id), _e = Math.min, w = Math.max, ve = Math.round, ye = Math.floor, T = (e) => ({
237
- x: e,
238
- y: e
239
- }), be = {
240
- left: "right",
241
- right: "left",
242
- bottom: "top",
243
- top: "bottom"
244
- };
245
- function xe(e, t) {
246
- return typeof e == "function" ? e(t) : e;
247
- }
248
- function E(e) {
249
- return e.split("-")[0];
250
- }
251
- function Se(e) {
252
- return e.split("-")[1];
253
- }
254
- function Ce(e) {
255
- return e === "x" ? "y" : "x";
256
- }
257
- function we(e) {
258
- return e === "y" ? "height" : "width";
259
- }
260
- function D(e) {
261
- let t = e[0];
262
- return t === "t" || t === "b" ? "y" : "x";
263
- }
264
- function Te(e) {
265
- return Ce(D(e));
266
- }
267
- function Ee(e, t, n) {
268
- n === void 0 && (n = !1);
269
- let r = Se(e), i = Te(e), a = we(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
270
- return t.reference[a] > t.floating[a] && (o = O(o)), [o, O(o)];
271
- }
272
- function De(e) {
273
- let t = O(e);
274
- return [
275
- Oe(e),
276
- t,
277
- Oe(t)
278
- ];
279
- }
280
- function Oe(e) {
281
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
282
- }
283
- var ke = ["left", "right"], Ae = ["right", "left"], je = ["top", "bottom"], Me = ["bottom", "top"];
284
- function Ne(e, t, n) {
285
- switch (e) {
286
- case "top":
287
- case "bottom": return n ? t ? Ae : ke : t ? ke : Ae;
288
- case "left":
289
- case "right": return t ? je : Me;
290
- default: return [];
291
- }
292
- }
293
- function Pe(e, t, n, r) {
294
- let i = Se(e), a = Ne(E(e), n === "start", r);
295
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Oe)))), a;
296
- }
297
- function O(e) {
298
- let t = E(e);
299
- return be[t] + e.slice(t.length);
300
- }
301
- function Fe(e) {
302
- return {
303
- top: 0,
304
- right: 0,
305
- bottom: 0,
306
- left: 0,
307
- ...e
308
- };
309
- }
310
- function Ie(e) {
311
- return typeof e == "number" ? {
312
- top: e,
313
- right: e,
314
- bottom: e,
315
- left: e
316
- } : Fe(e);
317
- }
318
- function k(e) {
319
- let { x: t, y: n, width: r, height: i } = e;
320
- return {
321
- width: r,
322
- height: i,
323
- top: n,
324
- left: t,
325
- right: t + r,
326
- bottom: n + i,
327
- x: t,
328
- y: n
329
- };
330
- }
331
- //#endregion
332
- //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
333
- function Le(e, t, n) {
334
- let { reference: r, floating: i } = e, a = D(t), o = Te(t), s = we(o), c = E(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;
335
- switch (c) {
336
- case "top":
337
- p = {
338
- x: u,
339
- y: r.y - i.height
340
- };
341
- break;
342
- case "bottom":
343
- p = {
344
- x: u,
345
- y: r.y + r.height
346
- };
347
- break;
348
- case "right":
349
- p = {
350
- x: r.x + r.width,
351
- y: d
352
- };
353
- break;
354
- case "left":
355
- p = {
356
- x: r.x - i.width,
357
- y: d
358
- };
359
- break;
360
- default: p = {
361
- x: r.x,
362
- y: r.y
363
- };
364
- }
365
- switch (Se(t)) {
366
- case "start":
367
- p[o] -= f * (n && l ? -1 : 1);
368
- break;
369
- case "end":
370
- p[o] += f * (n && l ? -1 : 1);
371
- break;
372
- }
373
- return p;
374
- }
375
- async function Re(e, t) {
376
- t === void 0 && (t = {});
377
- 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 } = xe(t, e), p = Ie(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = k(await i.getClippingRect({
378
- element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
379
- boundary: c,
380
- rootBoundary: l,
381
- strategy: s
382
- })), g = u === "floating" ? {
383
- x: n,
384
- y: r,
385
- width: a.floating.width,
386
- height: a.floating.height
387
- } : 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(_)) || {
388
- x: 1,
389
- y: 1
390
- }, y = k(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
391
- elements: o,
392
- rect: g,
393
- offsetParent: _,
394
- strategy: s
395
- }) : g);
396
- return {
397
- top: (h.top - y.top + p.top) / v.y,
398
- bottom: (y.bottom - h.bottom + p.bottom) / v.y,
399
- left: (h.left - y.left + p.left) / v.x,
400
- right: (y.right - h.right + p.right) / v.x
401
- };
402
- }
403
- var ze = 50, Be = async (e, t, n) => {
404
- let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
405
- ...o,
406
- detectOverflow: Re
407
- }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
408
- reference: e,
409
- floating: t,
410
- strategy: i
411
- }), { x: u, y: d } = Le(l, r, c), f = r, p = 0, m = {};
412
- for (let n = 0; n < a.length; n++) {
413
- let h = a[n];
414
- if (!h) continue;
415
- let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
416
- x: u,
417
- y: d,
418
- initialPlacement: r,
419
- placement: f,
420
- strategy: i,
421
- middlewareData: m,
422
- rects: l,
423
- platform: s,
424
- elements: {
425
- reference: e,
426
- floating: t
427
- }
428
- });
429
- u = v ?? u, d = y ?? d, m[g] = {
430
- ...m[g],
431
- ...b
432
- }, x && p < ze && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
433
- reference: e,
434
- floating: t,
435
- strategy: i
436
- }) : x.rects), {x: u, y: d} = Le(l, f, c)), n = -1);
437
- }
438
- return {
439
- x: u,
440
- y: d,
441
- placement: f,
442
- strategy: i,
443
- middlewareData: m
444
- };
445
- }, Ve = function(e) {
446
- return e === void 0 && (e = {}), {
447
- name: "flip",
448
- options: e,
449
- async fn(t) {
450
- var n;
451
- 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 } = xe(e, t);
452
- if ((n = i.arrow) != null && n.alignmentOffset) return {};
453
- let g = E(r), _ = D(o), v = E(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [O(o)] : De(o)), x = p !== "none";
454
- !d && x && b.push(...Pe(o, m, p, y));
455
- let ee = [o, ...b], te = await s.detectOverflow(t, h), S = [], C = i.flip?.overflows || [];
456
- if (l && S.push(te[g]), u) {
457
- let e = Ee(r, a, y);
458
- S.push(te[e[0]], te[e[1]]);
459
- }
460
- if (C = [...C, {
461
- placement: r,
462
- overflows: S
463
- }], !S.every((e) => e <= 0)) {
464
- let e = (i.flip?.index || 0) + 1, t = ee[e];
465
- if (t && (!(u === "alignment" && _ !== D(t)) || C.every((e) => D(e.placement) !== _ || e.overflows[0] > 0))) return {
466
- data: {
467
- index: e,
468
- overflows: C
469
- },
470
- reset: { placement: t }
471
- };
472
- let n = C.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
473
- if (!n) switch (f) {
474
- case "bestFit": {
475
- let e = C.filter((e) => {
476
- if (x) {
477
- let t = D(e.placement);
478
- return t === _ || t === "y";
479
- }
480
- return !0;
481
- }).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];
482
- e && (n = e);
483
- break;
484
- }
485
- case "initialPlacement":
486
- n = o;
487
- break;
488
- }
489
- if (r !== n) return { reset: { placement: n } };
490
- }
491
- return {};
492
- }
493
- };
494
- }, He = /*#__PURE__*/ new Set(["left", "top"]);
495
- async function Ue(e, t) {
496
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = E(n), s = Se(n), c = D(n) === "y", l = He.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = xe(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
497
- mainAxis: d,
498
- crossAxis: 0,
499
- alignmentAxis: null
500
- } : {
501
- mainAxis: d.mainAxis || 0,
502
- crossAxis: d.crossAxis || 0,
503
- alignmentAxis: d.alignmentAxis
504
- };
505
- return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
506
- x: p * u,
507
- y: f * l
508
- } : {
509
- x: f * l,
510
- y: p * u
511
- };
512
- }
513
- var We = function(e) {
514
- return e === void 0 && (e = 0), {
515
- name: "offset",
516
- options: e,
517
- async fn(t) {
518
- var n;
519
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await Ue(t, e);
520
- return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
521
- x: r + s.x,
522
- y: i + s.y,
523
- data: {
524
- ...s,
525
- placement: a
526
- }
527
- };
528
- }
529
- };
530
- };
531
- //#endregion
532
- //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
533
- function Ge() {
534
- return typeof window < "u";
535
- }
536
- function A(e) {
537
- return Ke(e) ? (e.nodeName || "").toLowerCase() : "#document";
538
- }
539
- function j(e) {
540
- var t;
541
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
542
- }
543
- function M(e) {
544
- return ((Ke(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
545
- }
546
- function Ke(e) {
547
- return Ge() ? e instanceof Node || e instanceof j(e).Node : !1;
548
- }
549
- function N(e) {
550
- return Ge() ? e instanceof Element || e instanceof j(e).Element : !1;
551
- }
552
- function P(e) {
553
- return Ge() ? e instanceof HTMLElement || e instanceof j(e).HTMLElement : !1;
554
- }
555
- function qe(e) {
556
- return !Ge() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof j(e).ShadowRoot;
557
- }
558
- function F(e) {
559
- let { overflow: t, overflowX: n, overflowY: r, display: i } = R(e);
560
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
561
- }
562
- function Je(e) {
563
- return /^(table|td|th)$/.test(A(e));
564
- }
565
- function Ye(e) {
566
- try {
567
- if (e.matches(":popover-open")) return !0;
568
- } catch {}
569
- try {
570
- return e.matches(":modal");
571
- } catch {
572
- return !1;
573
- }
574
- }
575
- var Xe = /transform|translate|scale|rotate|perspective|filter/, Ze = /paint|layout|strict|content/, I = (e) => !!e && e !== "none", Qe;
576
- function $e(e) {
577
- let t = N(e) ? R(e) : e;
578
- return I(t.transform) || I(t.translate) || I(t.scale) || I(t.rotate) || I(t.perspective) || !tt() && (I(t.backdropFilter) || I(t.filter)) || Xe.test(t.willChange || "") || Ze.test(t.contain || "");
579
- }
580
- function et(e) {
581
- let t = z(e);
582
- for (; P(t) && !L(t);) {
583
- if ($e(t)) return t;
584
- if (Ye(t)) return null;
585
- t = z(t);
586
- }
587
- return null;
588
- }
589
- function tt() {
590
- return Qe ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Qe;
591
- }
592
- function L(e) {
593
- return /^(html|body|#document)$/.test(A(e));
594
- }
595
- function R(e) {
596
- return j(e).getComputedStyle(e);
597
- }
598
- function nt(e) {
599
- return N(e) ? {
600
- scrollLeft: e.scrollLeft,
601
- scrollTop: e.scrollTop
602
- } : {
603
- scrollLeft: e.scrollX,
604
- scrollTop: e.scrollY
605
- };
606
- }
607
- function z(e) {
608
- if (A(e) === "html") return e;
609
- let t = e.assignedSlot || e.parentNode || qe(e) && e.host || M(e);
610
- return qe(t) ? t.host : t;
611
- }
612
- function rt(e) {
613
- let t = z(e);
614
- return L(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : P(t) && F(t) ? t : rt(t);
615
- }
616
- function B(e, t, n) {
617
- t === void 0 && (t = []), n === void 0 && (n = !0);
618
- let r = rt(e), i = r === e.ownerDocument?.body, a = j(r);
619
- if (i) {
620
- let e = it(a);
621
- return t.concat(a, a.visualViewport || [], F(r) ? r : [], e && n ? B(e) : []);
622
- } else return t.concat(r, B(r, [], n));
623
- }
624
- function it(e) {
625
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
626
- }
627
- //#endregion
628
- //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
629
- function at(e) {
630
- let t = R(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = P(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ve(n) !== a || ve(r) !== o;
631
- return s && (n = a, r = o), {
632
- width: n,
633
- height: r,
634
- $: s
635
- };
636
- }
637
- function ot(e) {
638
- return N(e) ? e : e.contextElement;
639
- }
640
- function V(e) {
641
- let t = ot(e);
642
- if (!P(t)) return T(1);
643
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = at(t), o = (a ? ve(n.width) : n.width) / r, s = (a ? ve(n.height) : n.height) / i;
644
- return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
645
- x: o,
646
- y: s
647
- };
648
- }
649
- var st = /*#__PURE__*/ T(0);
650
- function ct(e) {
651
- let t = j(e);
652
- return !tt() || !t.visualViewport ? st : {
653
- x: t.visualViewport.offsetLeft,
654
- y: t.visualViewport.offsetTop
655
- };
656
- }
657
- function lt(e, t, n) {
658
- return t === void 0 && (t = !1), !n || t && n !== j(e) ? !1 : t;
659
- }
660
- function H(e, t, n, r) {
661
- t === void 0 && (t = !1), n === void 0 && (n = !1);
662
- let i = e.getBoundingClientRect(), a = ot(e), o = T(1);
663
- t && (r ? N(r) && (o = V(r)) : o = V(e));
664
- let s = lt(a, n, r) ? ct(a) : T(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;
665
- if (a) {
666
- let e = j(a), t = r && N(r) ? j(r) : r, n = e, i = it(n);
667
- for (; i && r && t !== n;) {
668
- let e = V(i), t = i.getBoundingClientRect(), r = R(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
669
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = j(i), i = it(n);
670
- }
671
- }
672
- return k({
673
- width: u,
674
- height: d,
675
- x: c,
676
- y: l
677
- });
678
- }
679
- function ut(e, t) {
680
- let n = nt(e).scrollLeft;
681
- return t ? t.left + n : H(M(e)).left + n;
682
- }
683
- function dt(e, t) {
684
- let n = e.getBoundingClientRect();
685
- return {
686
- x: n.left + t.scrollLeft - ut(e, n),
687
- y: n.top + t.scrollTop
688
- };
689
- }
690
- function ft(e) {
691
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = M(r), s = t ? Ye(t.floating) : !1;
692
- if (r === o || s && a) return n;
693
- let c = {
694
- scrollLeft: 0,
695
- scrollTop: 0
696
- }, l = T(1), u = T(0), d = P(r);
697
- if ((d || !d && !a) && ((A(r) !== "body" || F(o)) && (c = nt(r)), d)) {
698
- let e = H(r);
699
- l = V(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
700
- }
701
- let f = o && !d && !a ? dt(o, c) : T(0);
702
- return {
703
- width: n.width * l.x,
704
- height: n.height * l.y,
705
- x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
706
- y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
707
- };
708
- }
709
- function pt(e) {
710
- return Array.from(e.getClientRects());
711
- }
712
- function mt(e) {
713
- let t = M(e), n = nt(e), r = e.ownerDocument.body, i = w(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = w(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ut(e), s = -n.scrollTop;
714
- return R(r).direction === "rtl" && (o += w(t.clientWidth, r.clientWidth) - i), {
715
- width: i,
716
- height: a,
717
- x: o,
718
- y: s
719
- };
720
- }
721
- var ht = 25;
722
- function gt(e, t) {
723
- let n = j(e), r = M(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
724
- if (i) {
725
- a = i.width, o = i.height;
726
- let e = tt();
727
- (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
728
- }
729
- let l = ut(r);
730
- if (l <= 0) {
731
- 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);
732
- o <= ht && (a -= o);
733
- } else l <= ht && (a += l);
734
- return {
735
- width: a,
736
- height: o,
737
- x: s,
738
- y: c
739
- };
740
- }
741
- function _t(e, t) {
742
- let n = H(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = P(e) ? V(e) : T(1);
743
- return {
744
- width: e.clientWidth * a.x,
745
- height: e.clientHeight * a.y,
746
- x: i * a.x,
747
- y: r * a.y
748
- };
749
- }
750
- function vt(e, t, n) {
751
- let r;
752
- if (t === "viewport") r = gt(e, n);
753
- else if (t === "document") r = mt(M(e));
754
- else if (N(t)) r = _t(t, n);
755
- else {
756
- let n = ct(e);
757
- r = {
758
- x: t.x - n.x,
759
- y: t.y - n.y,
760
- width: t.width,
761
- height: t.height
762
- };
763
- }
764
- return k(r);
765
- }
766
- function yt(e, t) {
767
- let n = z(e);
768
- return n === t || !N(n) || L(n) ? !1 : R(n).position === "fixed" || yt(n, t);
769
- }
770
- function bt(e, t) {
771
- let n = t.get(e);
772
- if (n) return n;
773
- let r = B(e, [], !1).filter((e) => N(e) && A(e) !== "body"), i = null, a = R(e).position === "fixed", o = a ? z(e) : e;
774
- for (; N(o) && !L(o);) {
775
- let t = R(o), n = $e(o);
776
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || F(o) && !n && yt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = z(o);
777
- }
778
- return t.set(e, r), r;
779
- }
780
- function xt(e) {
781
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Ye(t) ? [] : bt(t, this._c) : [].concat(n), r], o = vt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
782
- for (let e = 1; e < a.length; e++) {
783
- let n = vt(t, a[e], i);
784
- s = w(n.top, s), c = _e(n.right, c), l = _e(n.bottom, l), u = w(n.left, u);
785
- }
786
- return {
787
- width: c - u,
788
- height: l - s,
789
- x: u,
790
- y: s
791
- };
792
- }
793
- function St(e) {
794
- let { width: t, height: n } = at(e);
795
- return {
796
- width: t,
797
- height: n
798
- };
799
- }
800
- function Ct(e, t, n) {
801
- let r = P(t), i = M(t), a = n === "fixed", o = H(e, !0, a, t), s = {
802
- scrollLeft: 0,
803
- scrollTop: 0
804
- }, c = T(0);
805
- function l() {
806
- c.x = ut(i);
807
- }
808
- if (r || !r && !a) if ((A(t) !== "body" || F(i)) && (s = nt(t)), r) {
809
- let e = H(t, !0, a, t);
810
- c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
811
- } else i && l();
812
- a && !r && i && l();
813
- let u = i && !r && !a ? dt(i, s) : T(0);
814
- return {
815
- x: o.left + s.scrollLeft - c.x - u.x,
816
- y: o.top + s.scrollTop - c.y - u.y,
817
- width: o.width,
818
- height: o.height
819
- };
820
- }
821
- function wt(e) {
822
- return R(e).position === "static";
823
- }
824
- function Tt(e, t) {
825
- if (!P(e) || R(e).position === "fixed") return null;
826
- if (t) return t(e);
827
- let n = e.offsetParent;
828
- return M(e) === n && (n = n.ownerDocument.body), n;
829
- }
830
- function Et(e, t) {
831
- let n = j(e);
832
- if (Ye(e)) return n;
833
- if (!P(e)) {
834
- let t = z(e);
835
- for (; t && !L(t);) {
836
- if (N(t) && !wt(t)) return t;
837
- t = z(t);
838
- }
839
- return n;
840
- }
841
- let r = Tt(e, t);
842
- for (; r && Je(r) && wt(r);) r = Tt(r, t);
843
- return r && L(r) && wt(r) && !$e(r) ? n : r || et(e) || n;
844
- }
845
- var Dt = async function(e) {
846
- let t = this.getOffsetParent || Et, n = this.getDimensions, r = await n(e.floating);
847
- return {
848
- reference: Ct(e.reference, await t(e.floating), e.strategy),
849
- floating: {
850
- x: 0,
851
- y: 0,
852
- width: r.width,
853
- height: r.height
854
- }
855
- };
856
- };
857
- function Ot(e) {
858
- return R(e).direction === "rtl";
859
- }
860
- var kt = {
861
- convertOffsetParentRelativeRectToViewportRelativeRect: ft,
862
- getDocumentElement: M,
863
- getClippingRect: xt,
864
- getOffsetParent: Et,
865
- getElementRects: Dt,
866
- getClientRects: pt,
867
- getDimensions: St,
868
- getScale: V,
869
- isElement: N,
870
- isRTL: Ot
871
- };
872
- function At(e, t) {
873
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
874
- }
875
- function jt(e, t) {
876
- let n = null, r, i = M(e);
877
- function a() {
878
- var e;
879
- clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
880
- }
881
- function o(s, c) {
882
- s === void 0 && (s = !1), c === void 0 && (c = 1), a();
883
- let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
884
- if (s || t(), !f || !p) return;
885
- let m = ye(d), h = ye(i.clientWidth - (u + f)), g = ye(i.clientHeight - (d + p)), _ = ye(u), v = {
886
- rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
887
- threshold: w(0, _e(1, c)) || 1
888
- }, y = !0;
889
- function b(t) {
890
- let n = t[0].intersectionRatio;
891
- if (n !== c) {
892
- if (!y) return o();
893
- n ? o(!1, n) : r = setTimeout(() => {
894
- o(!1, 1e-7);
895
- }, 1e3);
896
- }
897
- n === 1 && !At(l, e.getBoundingClientRect()) && o(), y = !1;
898
- }
899
- try {
900
- n = new IntersectionObserver(b, {
901
- ...v,
902
- root: i.ownerDocument
903
- });
904
- } catch {
905
- n = new IntersectionObserver(b, v);
906
- }
907
- n.observe(e);
908
- }
909
- return o(!0), a;
910
- }
911
- function Mt(e, t, n, r) {
912
- r === void 0 && (r = {});
913
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ot(e), u = i || a ? [...l ? B(l) : [], ...t ? B(t) : []] : [];
914
- u.forEach((e) => {
915
- i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
916
- });
917
- let d = l && s ? jt(l, n) : null, f = -1, p = null;
918
- o && (p = new ResizeObserver((e) => {
919
- let [r] = e;
920
- r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
921
- var e;
922
- (e = p) == null || e.observe(t);
923
- })), n();
924
- }), l && !c && p.observe(l), t && p.observe(t));
925
- let m, h = c ? H(e) : null;
926
- c && g();
927
- function g() {
928
- let t = H(e);
929
- h && !At(h, t) && n(), h = t, m = requestAnimationFrame(g);
930
- }
931
- return n(), () => {
932
- var e;
933
- u.forEach((e) => {
934
- i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
935
- }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
936
- };
937
- }
938
- var Nt = We, Pt = Ve, Ft = (e, t, n) => {
939
- let r = /* @__PURE__ */ new Map(), i = {
940
- platform: kt,
941
- ...n
942
- }, a = {
943
- ...i.platform,
944
- _c: r
945
- };
946
- return Be(e, t, {
947
- ...i,
948
- platform: a
949
- });
950
- }, It = /* @__PURE__ */ new WeakMap(), Lt = (e, t) => {
951
- Rt(e), It.set(e, t);
952
- }, Rt = (e) => {
953
- let t = It.get(e);
954
- t && (t(), It.delete(e));
955
- }, zt = ({ element: e, activeActions: t, getGridItemById: n, placementItemActionsMenu: r, renderOverlayContent: i, removeItemActionsMenuPopover: o, itemActionsDocumentPopover: s = !0 }) => {
956
- let c = e.querySelector(".grid-item-actions-popover"), l = e.querySelector(".grid-stack-item-content"), u = n(e.getAttribute("gs-id") ?? "");
957
- if (t && t.length > 0 && c && (o(e), c = null), !c) {
958
- let n = document.createDocumentFragment();
959
- if (a(i(u?.item, t), n), c = n.querySelector(".grid-item-actions-popover"), !c) return;
960
- e.append(c);
961
- }
962
- let d = s ? "absolute" : "fixed", f = Mt(l, c, async () => {
963
- let { x: e, y: t } = await Ft(l, c, {
964
- placement: u?.item?.placementActionsMenu ?? r ?? "right-start",
965
- strategy: d,
966
- middleware: [Nt(0), Pt({ crossAxis: !1 })]
967
- });
968
- c.style.left = `${e}px`, c.style.top = `${t}px`, s || (c.style.position = "fixed", c.style.right = "auto", c.style.bottom = "auto", c.style.margin = "0");
969
- });
970
- Lt(c, f), s && c.isConnected && !c.matches(":popover-open") && c.showPopover();
971
- }, Bt = (e) => {
972
- let t = e.querySelector(".grid-item-actions-popover");
973
- t && (Rt(t), t.hasAttribute("popover") && t.matches(":popover-open") && t.hidePopover(), t.remove());
974
- }, Vt = (e) => e === "ArrowLeft" || e === "ArrowRight" || e === "ArrowUp" || e === "ArrowDown", Ht = ({ key: e, node: t, maxColumns: n, shiftKey: r, ctrlKey: i, metaKey: a }) => {
975
- let o = {
976
- ArrowLeft: {
977
- move: { x: t.x - 1 },
978
- resize: {
979
- x: t.x - 1,
980
- w: t.w + 1
981
- },
982
- shrink: { w: t.w - 1 },
983
- canMove: t.x > 0,
984
- canResize: t.x > 0,
985
- canShrink: t.w > 1
986
- },
987
- ArrowRight: {
988
- move: { x: t.x + 1 },
989
- resize: { w: t.w + 1 },
990
- shrink: {
991
- x: t.x + 1,
992
- w: t.w - 1
993
- },
994
- canMove: t.x < n - t.w,
995
- canResize: t.x + t.w < n,
996
- canShrink: t.w > 1
997
- },
998
- ArrowUp: {
999
- move: { y: t.y - 1 },
1000
- resize: {
1001
- y: t.y - 1,
1002
- h: t.h + 1
1003
- },
1004
- shrink: { h: t.h - 1 },
1005
- canMove: t.y > 0,
1006
- canResize: t.y > 0,
1007
- canShrink: t.h > 1
1008
- },
1009
- ArrowDown: {
1010
- move: { y: t.y + 1 },
1011
- resize: { h: t.h + 1 },
1012
- shrink: {
1013
- y: t.y + 1,
1014
- h: t.h - 1
1015
- },
1016
- canMove: !0,
1017
- canResize: !0,
1018
- canShrink: t.h > 1
1019
- }
1020
- }[e];
1021
- if (r && o.canResize) return o.resize;
1022
- if ((i || a) && o.canShrink) return o.shrink;
1023
- if (o.canMove) return o.move;
1024
- }, Ut = ({ event: e, viewMode: t, focusedItemElement: n, activeItemElement: r, gridElement: i, grid: a, columns: o, onDeleteRequest: s, removeItemActionsMenuPopover: c, createItemActionsMenuPopover: l }) => {
1025
- if (t) return {
1026
- focusedItemElement: n,
1027
- activeItemElement: r
1028
- };
1029
- let u = n, d = r;
1030
- if (e.key === "Delete" && n) {
1031
- let e = n.nextElementSibling ?? n.previousElementSibling;
1032
- s(n), u = e ?? void 0, u ? requestAnimationFrame(() => u?.focus()) : i.focus(), r === n && (d = void 0);
1033
- } else if (e.key === "Escape" && n) n.removeAttribute("focused"), c(n), u = void 0, i.focus();
1034
- 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) => {
1035
- e !== n && c(e);
1036
- }), l(n), requestAnimationFrame(() => {
1037
- let e = n.querySelector("luzmo-item-grid-item-actions-menu");
1038
- e && e.focus();
1039
- });
1040
- else if (n && a && Vt(e.key)) {
1041
- e.preventDefault(), e.stopPropagation();
1042
- let t = n.gridstackNode;
1043
- if (!t) return {
1044
- focusedItemElement: u,
1045
- activeItemElement: d
1046
- };
1047
- let r = Ht({
1048
- key: e.key,
1049
- node: t,
1050
- maxColumns: o,
1051
- shiftKey: e.shiftKey,
1052
- ctrlKey: e.ctrlKey,
1053
- metaKey: e.metaKey
1054
- });
1055
- r && a.update(n, r);
1056
- }
1057
- return {
1058
- focusedItemElement: u,
1059
- activeItemElement: d
1060
- };
1061
- }, Wt = 16, Gt = 10, U = (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})`, Kt = (e) => [(e?.margins?.[0] ?? Wt) / 2, (e?.margins?.[1] ?? Wt) / 2], qt = (e) => Gt - (e?.margins?.[0] ?? Gt), Jt = (e) => {
1062
- let n = e?.boxShadow;
1063
- if (!n) return "";
1064
- let r = new t(n.color), i = {
1065
- r: Math.round(r.srgb.r * 255),
1066
- g: Math.round(r.srgb.g * 255),
1067
- b: Math.round(r.srgb.b * 255)
1068
- }, a = e?.margins?.[0] ?? Wt, o = Math.min(a / 10, 2);
1069
- return n.size === "none" ? "none" : n.size === "S" ? `0 ${o * 2}px ${o * 4}px ${U(i, .16)}, 0 ${o * 2}px ${o * 4}px ${U(i, .23)}` : n.size === "M" ? `0 ${o * 8}px ${o * 16}px ${U(i, .19)}, 0 ${o * 4}px ${o * 4}px ${U(i, .23)}` : n.size === "L" ? `0 ${o * 12}px ${o * 24}px ${U(i, .25)}, 0 ${o * 8}px ${o * 8}px ${U(i, .22)}` : "";
1070
- }, Yt = (e) => {
1071
- let t = Jt(e);
1072
- return /* @__PURE__ */ new Map([
1073
- ["--grid-font-family", e?.font?.fontFamily],
1074
- ["--grid-background", e?.background],
1075
- ["--grid-item-box-shadow", t],
1076
- ["--grid-item-background", e?.itemsBackground],
1077
- ["--grid-item-border-color", e?.borders?.["border-color"]],
1078
- ["--grid-item-border-style", e?.borders?.["border-style"]],
1079
- ["--grid-item-border-radius", e?.borders?.["border-radius"]],
1080
- ["--grid-item-border-width", `${e?.borders?.["border-top-width"]}`],
1081
- ["--grid-item-border-top-width", e?.borders?.["border-top-width"]],
1082
- ["--grid-item-border-right-width", e?.borders?.["border-right-width"]],
1083
- ["--grid-item-border-bottom-width", e?.borders?.["border-bottom-width"]],
1084
- ["--grid-item-border-left-width", e?.borders?.["border-left-width"]]
1085
- ]);
1086
- }, Xt = (e) => {
1087
- let n = e?.itemsBackground ?? e?.background;
1088
- return n ? new t(n).luminance < .5 : !1;
1089
- }, Zt = (e, t) => {
1090
- t && Yt(t).forEach((t, n) => {
1091
- t ? e.setProperty(n, t) : e.removeProperty(n);
1092
- });
1093
- }, Qt = ({ item: e, index: t, initialized: n, viewMode: a, renderItemContent: o, handleMouseover: s, handleMouseout: c, handleFocus: l, handleBlur: u }) => {
1094
- let p = !a;
1095
- return i`
1096
- <div
1097
- class="luzmo-item-grid-item has-luzmo-viz-item"
1098
- luzmo-item-grid-item-id=${e.id ?? ""}
1099
- tabindex="0"
1100
- role="row"
1101
- @mouseover=${s}
1102
- @mouseout=${c}
1103
- @focus=${l}
1104
- @blur=${u}
1105
- >
1106
- <div
1107
- class="grid-stack-item-content"
1108
- role="gridcell"
1109
- aria-label=${d(f`Grid item ${t + 1}`, { desc: "Accessible label for a grid item with its position" })}
1110
- >
1111
- ${p ? i`
1112
- <div class="grid-item-drag-handle">
1113
- <luzmo-icon .icon=${r} size="s"></luzmo-icon>
1114
- </div>
1115
- ` : i`
1116
-
1117
- `}
1118
- ${n ? o(e, t) : i`
1119
-
1120
- `}
1121
- </div>
1122
- </div>
1123
- `;
1124
- }, $t = ({ items: e, initialized: t, viewMode: n, fullTheme: r, renderItem: i, renderDependencies: a }) => p(e, (e) => e.id, (e, o) => m([
1125
- e,
1126
- t,
1127
- n,
1128
- r,
1129
- ...a
1130
- ], () => i(e, o))), en = ({ items: e, initialized: t, viewMode: n, fullTheme: r, columns: a, renderItemContent: o, renderDependencies: s, ensureGridItemId: c, handleMouseover: l, handleMouseout: u, handleFocus: f, handleBlur: p }) => {
1131
- e.forEach((e) => {
1132
- c(e);
1133
- });
1134
- let m = $t({
1135
- items: e,
1136
- initialized: t,
1137
- viewMode: n,
1138
- fullTheme: r,
1139
- renderDependencies: s,
1140
- renderItem: (e, r) => Qt({
1141
- item: e,
1142
- index: r,
1143
- initialized: t,
1144
- viewMode: n,
1145
- renderItemContent: o,
1146
- handleMouseover: l,
1147
- handleMouseout: u,
1148
- handleFocus: f,
1149
- handleBlur: p
1150
- })
1151
- });
1152
- return i`
1153
- <div
1154
- ?dark-background=${t ? Xt(r) : !1}
1155
- class="grid-stack"
1156
- data-grid-columns=${a}
1157
- role="grid"
1158
- aria-label=${d("Dashboard grid", { desc: "Accessible label for the dashboard grid" })}
1159
- >
1160
- ${m}
1161
- </div>
1162
- `;
1163
- }, W = class e {
1164
- static getElements(e, t = document) {
1165
- if (typeof e == "string") {
1166
- let n = "getElementById" in t ? t : void 0;
1167
- if (n && !isNaN(+e[0])) {
1168
- let t = n.getElementById(e);
1169
- return t ? [t] : [];
1170
- }
1171
- let r = t.querySelectorAll(e);
1172
- if (!r.length && e[0] !== "." && e[0] !== "#" && (r = t.querySelectorAll("." + e), r.length || (r = t.querySelectorAll("#" + e)), !r.length)) {
1173
- let n = t.querySelector(`[gs-id="${e}"]`);
1174
- return n ? [n] : [];
1175
- }
1176
- return Array.from(r);
1177
- }
1178
- return [e];
1179
- }
1180
- static getElement(e, t = document) {
1181
- if (typeof e == "string") {
1182
- let n = "getElementById" in t ? t : void 0;
1183
- if (!e.length) return null;
1184
- if (n && e[0] === "#") return n.getElementById(e.substring(1));
1185
- if (e[0] === "#" || e[0] === "." || e[0] === "[") return t.querySelector(e);
1186
- if (n && !isNaN(+e[0])) return n.getElementById(e);
1187
- let r = t.querySelector(e);
1188
- return n && !r && (r = n.getElementById(e)), r ||= t.querySelector("." + e), r;
1189
- }
1190
- return e;
1191
- }
1192
- static lazyLoad(e) {
1193
- return !!(e.lazyLoad || e.grid?.opts?.lazyLoad && e.lazyLoad !== !1);
1194
- }
1195
- static createDiv(e, t) {
1196
- let n = document.createElement("div");
1197
- return e.forEach((e) => {
1198
- e && n.classList.add(e);
1199
- }), t?.appendChild(n), n;
1200
- }
1201
- static shouldSizeToContent(e, t = !1) {
1202
- 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));
1203
- }
1204
- static isIntercepted(e, t) {
1205
- 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);
1206
- }
1207
- static isTouching(t, n) {
1208
- return e.isIntercepted(t, {
1209
- x: n.x - .5,
1210
- y: n.y - .5,
1211
- w: n.w + 1,
1212
- h: n.h + 1
1213
- });
1214
- }
1215
- static areaIntercept(e, t) {
1216
- 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;
1217
- if (r <= n) return 0;
1218
- 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;
1219
- return a <= i ? 0 : (r - n) * (a - i);
1220
- }
1221
- static area(e) {
1222
- return e.w * e.h;
1223
- }
1224
- static sort(e, t = 1) {
1225
- let n = 2 ** 53 - 1;
1226
- return e.sort((e, r) => {
1227
- let i = t * ((e.y ?? n) - (r.y ?? n));
1228
- return i === 0 ? t * ((e.x ?? n) - (r.x ?? n)) : i;
1229
- });
1230
- }
1231
- static find(e, t) {
1232
- return t ? e.find((e) => e.id === t) : void 0;
1233
- }
1234
- static findInGrid(t, n, r) {
1235
- let i = t.engine.nodes.find((e) => String(e.id) === n);
1236
- if (i || !r) return i;
1237
- for (let r of t.engine.nodes) if (r.subGrid) {
1238
- let t = e.findInGrid(r.subGrid, n);
1239
- if (t) return t;
1240
- }
1241
- }
1242
- static toBool(e) {
1243
- return typeof e == "boolean" ? e : typeof e == "string" ? (e = e.toLowerCase(), !(e === "" || e === "no" || e === "false" || e === "0")) : !!e;
1244
- }
1245
- static toNumber(e) {
1246
- return e === null || e.length === 0 ? void 0 : Number(e);
1247
- }
1248
- static parseHeight(e) {
1249
- let t, n = "px";
1250
- if (typeof e == "string") if (e === "auto" || e === "") t = 0;
1251
- else {
1252
- let r = e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);
1253
- if (!r) throw Error(`Invalid height val = ${e}`);
1254
- n = r[2] || "px", t = parseFloat(r[1]);
1255
- }
1256
- else t = e;
1257
- return {
1258
- h: t,
1259
- unit: n
1260
- };
1261
- }
1262
- static defaults(t, ...n) {
1263
- return n.forEach((n) => {
1264
- for (let r in n) {
1265
- if (!Object.prototype.hasOwnProperty.call(n, r)) return;
1266
- 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]);
1267
- }
1268
- }), t;
1269
- }
1270
- static same(e, t) {
1271
- if (typeof e != "object") return e == t;
1272
- if (typeof e != typeof t) return !1;
1273
- let n = e, r = t;
1274
- if (Object.keys(n).length !== Object.keys(r).length) return !1;
1275
- for (let e in n) if (n[e] !== r[e]) return !1;
1276
- return !0;
1277
- }
1278
- static copyPos(e, t, n = !1) {
1279
- 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;
1280
- }
1281
- static samePos(e, t) {
1282
- return e && t && e.x === t.x && e.y === t.y && (e.w || 1) === (t.w || 1) && (e.h || 1) === (t.h || 1);
1283
- }
1284
- static sanitizeMinMax(e) {
1285
- e.minW || delete e.minW, e.minH || delete e.minH, e.maxW || delete e.maxW, e.maxH || delete e.maxH;
1286
- }
1287
- static removeInternalAndSame(t, n) {
1288
- if (typeof t != "object" || typeof n != "object" || !t || !n || Array.isArray(t) || Array.isArray(n)) return;
1289
- let r = t, i = n;
1290
- for (let t in r) {
1291
- let n = r[t], a = i[t];
1292
- 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]);
1293
- }
1294
- }
1295
- static removeInternalForSave(e, t = !0) {
1296
- let n = e;
1297
- for (let e in n) (e[0] === "_" || n[e] === null || n[e] === void 0) && delete n[e];
1298
- 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;
1299
- }
1300
- static throttle(e, t) {
1301
- let n = !1;
1302
- return (...r) => {
1303
- n || (n = !0, setTimeout(() => {
1304
- e(...r), n = !1;
1305
- }, t));
1306
- };
1307
- }
1308
- static removePositioningStyles(e) {
1309
- let t = e.style;
1310
- 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");
1311
- }
1312
- static getScrollElement(t) {
1313
- if (!t) return document.scrollingElement || document.documentElement;
1314
- let n = getComputedStyle(t).overflowY;
1315
- return (n === "auto" || n === "scroll") && t.scrollHeight > t.clientHeight ? t : e.getScrollElement(t.parentElement ?? void 0);
1316
- }
1317
- static updateScrollResize(t, n, r) {
1318
- 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;
1319
- c ? i.scrollBy({
1320
- behavior: "smooth",
1321
- top: s - r
1322
- }) : l && i.scrollBy({
1323
- behavior: "smooth",
1324
- top: r - (a - s)
1325
- });
1326
- }
1327
- static pauseIframePointerEvents(e) {
1328
- document.querySelectorAll("iframe").forEach((t) => {
1329
- t.style.pointerEvents = e ? "none" : "";
1330
- });
1331
- }
1332
- static clone(e) {
1333
- return typeof e != "object" || !e ? e : e instanceof Array ? [...e] : { ...e };
1334
- }
1335
- static cloneDeep(t) {
1336
- let n = [
1337
- "parentGrid",
1338
- "el",
1339
- "grid",
1340
- "subGrid",
1341
- "engine"
1342
- ], r = e.clone(t);
1343
- 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]));
1344
- return r;
1345
- }
1346
- static cloneNode(e) {
1347
- let t = e.cloneNode(!0);
1348
- return t.removeAttribute("id"), t;
1349
- }
1350
- static appendTo(t, n) {
1351
- let r;
1352
- r = typeof n == "string" ? e.getElement(n) : n, r && r.appendChild(t);
1353
- }
1354
- static addElStyles(e, t) {
1355
- if (t instanceof Object) {
1356
- let n = e.style;
1357
- for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Array.isArray(t[e]) ? t[e].forEach((t) => {
1358
- n[e] = t;
1359
- }) : n[e] = t[e]);
1360
- }
1361
- }
1362
- static initEvent(e, t) {
1363
- let n = { type: t.type }, r = {
1364
- button: 0,
1365
- which: 0,
1366
- buttons: 1,
1367
- bubbles: !0,
1368
- cancelable: !0,
1369
- target: t.target ? t.target : e.target
1370
- }, i = e;
1371
- return [
1372
- "altKey",
1373
- "ctrlKey",
1374
- "metaKey",
1375
- "shiftKey"
1376
- ].forEach((e) => n[e] = i[e]), [
1377
- "pageX",
1378
- "pageY",
1379
- "clientX",
1380
- "clientY",
1381
- "screenX",
1382
- "screenY"
1383
- ].forEach((e) => n[e] = i[e]), {
1384
- ...n,
1385
- ...r
1386
- };
1387
- }
1388
- static simulateMouseEvent(e, t, n) {
1389
- let r = e, i = new MouseEvent(t, {
1390
- bubbles: !0,
1391
- composed: !0,
1392
- cancelable: !0,
1393
- view: window,
1394
- detail: 1,
1395
- screenX: e.screenX,
1396
- screenY: e.screenY,
1397
- clientX: e.clientX,
1398
- clientY: e.clientY,
1399
- ctrlKey: r.ctrlKey ?? !1,
1400
- altKey: r.altKey ?? !1,
1401
- shiftKey: r.shiftKey ?? !1,
1402
- metaKey: r.metaKey ?? !1,
1403
- button: 0,
1404
- relatedTarget: e.target
1405
- });
1406
- (n || e.target).dispatchEvent(i);
1407
- }
1408
- static getValuesFromTransformedElement(t) {
1409
- let n = document.createElement("div");
1410
- e.addElStyles(n, {
1411
- opacity: "0",
1412
- position: "fixed",
1413
- top: "0px",
1414
- left: "0px",
1415
- width: "1px",
1416
- height: "1px",
1417
- zIndex: "-999999"
1418
- }), t.appendChild(n);
1419
- let r = n.getBoundingClientRect();
1420
- return t.removeChild(n), n.remove(), {
1421
- xScale: 1 / r.width,
1422
- yScale: 1 / r.height,
1423
- xOffset: r.left,
1424
- yOffset: r.top
1425
- };
1426
- }
1427
- static swap(e, t, n) {
1428
- if (!e) return;
1429
- let r = e, i = r[t];
1430
- r[t] = r[n], r[n] = i;
1431
- }
1432
- static canBeRotated(e) {
1433
- 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);
1434
- }
1435
- }, tn = class e {
1436
- constructor(e = {}) {
1437
- 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 ?? (() => {});
1438
- }
1439
- batchUpdate(e = !0, t = !0) {
1440
- 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);
1441
- }
1442
- get _realMode() {
1443
- return this.batchMode ? this._prevMode || "top" : this.mode;
1444
- }
1445
- _useEntireRowArea(e, t) {
1446
- return (this.mode !== "float" || this.batchMode && this._prevMode !== "float") && !this._hasLocked && (!e._moving || e._skipDown || t.y <= e.y);
1447
- }
1448
- _fixCollisions(e, t = e, n, r = {}) {
1449
- if (this.sortNodes(-1), n ||= this.collide(e, t), !n) return !1;
1450
- if (e._moving && !e._isExternal && !r.nested && this.mode !== "float" && this.swap(e, n)) return !0;
1451
- let i = t;
1452
- !this._loading && this._useEntireRowArea(e, t) && (i = {
1453
- x: 0,
1454
- w: this.column,
1455
- y: t.y,
1456
- h: t.h
1457
- }, n = this.collide(e, i, r.skip));
1458
- let a = !1, o = {
1459
- nested: !0,
1460
- pack: !1
1461
- }, s = 0;
1462
- for (; n ||= this.collide(e, i, r.skip);) {
1463
- if (s++ > this.nodes.length * 2) throw Error("Infinite collide check");
1464
- let i;
1465
- if (n.locked || this._loading || e._moving && !e._skipDown && t.y > e.y && this.mode !== "float" && (!this.collide(n, {
1466
- ...n,
1467
- y: e.y
1468
- }, e) || !this.collide(n, {
1469
- ...n,
1470
- y: t.y - n.h
1471
- }, e))) {
1472
- e._skipDown = e._skipDown || t.y > e.y;
1473
- let s = {
1474
- ...t,
1475
- y: n.y + n.h,
1476
- ...o
1477
- };
1478
- i = this._loading && W.samePos(e, s) ? !0 : this.moveNode(e, s), (n.locked || this._loading) && i ? W.copyPos(t, e) : !n.locked && i && r.pack && (this._packNodes(), t.y = n.y + n.h, W.copyPos(e, t)), a ||= i;
1479
- } else i = this.moveNode(n, {
1480
- ...n,
1481
- y: t.y + t.h,
1482
- skip: e,
1483
- ...o
1484
- });
1485
- if (!i) return a;
1486
- n = void 0;
1487
- }
1488
- return a;
1489
- }
1490
- collide(e, t = e, n) {
1491
- let r = e._id, i = n?._id;
1492
- return this.nodes.find((e) => e._id !== r && e._id !== i && W.isIntercepted(e, t));
1493
- }
1494
- collideAll(e, t = e, n) {
1495
- let r = e._id, i = n?._id;
1496
- return this.nodes.filter((e) => e._id !== r && e._id !== i && W.isIntercepted(e, t));
1497
- }
1498
- directionCollideCoverage(e, t, n) {
1499
- if (!t.rect || !e._rect) return;
1500
- let r = e._rect, i = { ...t.rect };
1501
- 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;
1502
- let a, o = .5;
1503
- for (let e of n) {
1504
- if (e.locked || !e._rect) continue;
1505
- let t = e._rect, n = Number.MAX_VALUE, s = Number.MAX_VALUE;
1506
- 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);
1507
- let c = Math.min(s, n);
1508
- c > o && (o = c, a = e);
1509
- }
1510
- return t.collide = a, a;
1511
- }
1512
- cacheRects(e, t, n, r, i, a) {
1513
- return this.nodes.forEach((o) => o._rect = {
1514
- y: o.y * t + n,
1515
- x: o.x * e + a,
1516
- w: o.w * e - a - r,
1517
- h: o.h * t - n - i
1518
- }), this;
1519
- }
1520
- swap(e, t) {
1521
- if (!t || t.locked || !e || e.locked) return !1;
1522
- function n() {
1523
- let n = t.x, r = t.y;
1524
- 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;
1525
- }
1526
- let r;
1527
- if (e.w === t.w && e.h === t.h && (e.x === t.x || e.y === t.y) && (r = W.isTouching(e, t))) return n();
1528
- if (r !== !1) {
1529
- if (e.w === t.w && e.x === t.x && (r ||= W.isTouching(e, t))) {
1530
- if (t.y < e.y) {
1531
- let n = e;
1532
- e = t, t = n;
1533
- }
1534
- return n();
1535
- }
1536
- if (r !== !1) {
1537
- if (e.h === t.h && e.y === t.y && (r ||= W.isTouching(e, t))) {
1538
- if (t.x < e.x) {
1539
- let n = e;
1540
- e = t, t = n;
1541
- }
1542
- return n();
1543
- }
1544
- return !1;
1545
- }
1546
- }
1547
- }
1548
- isAreaEmpty(e, t, n, r) {
1549
- let i = {
1550
- x: e || 0,
1551
- y: t || 0,
1552
- w: n || 1,
1553
- h: r || 1
1554
- };
1555
- return !this.collide(i);
1556
- }
1557
- compact(e = "compact", t = !0) {
1558
- if (this.nodes.length === 0) return this;
1559
- let n = this.batchMode;
1560
- return n || this.batchUpdate(), this._relayout(e, t), n || this.batchUpdate(!1), this;
1561
- }
1562
- _relayout(e, t = !0) {
1563
- if (this.nodes.length === 0) return this;
1564
- t && this.sortNodes();
1565
- let n = this._inColumnResize;
1566
- n || (this._inColumnResize = !0);
1567
- let r = this.nodes;
1568
- this.nodes = r.filter((e) => e.locked);
1569
- let i = /* @__PURE__ */ new Set(), a = 0, o = (e) => {
1570
- 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);
1571
- for (; i.has(a);) ++a;
1572
- };
1573
- return this.nodes.forEach(o), r.forEach((t, n, r) => {
1574
- if (t.locked) return;
1575
- t.autoPosition = !0;
1576
- let i = e === "list" ? n ? r[n - 1] : 0 : a;
1577
- this.addNode(t, !1, i), o(t);
1578
- }), n || delete this._inColumnResize, this;
1579
- }
1580
- set mode(e) {
1581
- this._mode !== e && (this._mode = e || "top", this._mode !== "float" && this._packNodes()._notify());
1582
- }
1583
- get mode() {
1584
- return this._mode || "top";
1585
- }
1586
- sortNodes(e = 1) {
1587
- return this.nodes = W.sort(this.nodes, e), this;
1588
- }
1589
- _packNodes() {
1590
- if (this.batchMode) return this;
1591
- if (this.sortNodes(), this.mode === "float") this.nodes.forEach((e) => {
1592
- if (e._updating || e._orig === void 0 || e.y === e._orig.y) return;
1593
- let t = e.y;
1594
- for (; t > e._orig.y;) --t, this.collide(e, {
1595
- x: e.x,
1596
- y: t,
1597
- w: e.w,
1598
- h: e.h
1599
- }) || (e._dirty = !0, e.y = t);
1600
- });
1601
- else if (this.mode === "list" || this.mode === "compact") {
1602
- let e = this.mode === "compact" && this.nodes.some((e) => e._updating) ? "list" : this.mode, t = this.batchMode;
1603
- this.batchMode = !0, this._relayout(e, !1), this.batchMode = t;
1604
- } else this.nodes.forEach((e, t) => {
1605
- if (!e.locked) for (; e.y > 0;) {
1606
- let n = t === 0 ? 0 : e.y - 1;
1607
- if (!(t === 0 || !this.collide(e, {
1608
- x: e.x,
1609
- y: n,
1610
- w: e.w,
1611
- h: e.h
1612
- }))) break;
1613
- e._dirty = e.y !== n, e.y = n;
1614
- }
1615
- });
1616
- return this;
1617
- }
1618
- prepareNode(t, n) {
1619
- t._id = t._id ?? e._idSeq++;
1620
- let r = t.id;
1621
- if (r) {
1622
- let e = 1;
1623
- for (; this.nodes.find((e) => e.id === t.id && e !== t);) t.id = r + "_" + e++;
1624
- }
1625
- (t.x === void 0 || t.y === void 0 || t.x === null || t.y === null) && (t.autoPosition = !0);
1626
- let i = {
1627
- x: 0,
1628
- y: 0,
1629
- w: 1,
1630
- h: 1
1631
- };
1632
- return W.defaults(t, i), t.autoPosition || delete t.autoPosition, t.noResize || delete t.noResize, t.noMove || delete t.noMove, W.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;
1633
- }
1634
- nodeBoundFix(e, t) {
1635
- let n = e._orig || W.copyPos({}, e);
1636
- 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) {
1637
- let t = { ...e };
1638
- 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);
1639
- }
1640
- 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), W.samePos(e, n) || (e._dirty = !0), this;
1641
- }
1642
- getDirtyNodes(e) {
1643
- return e ? this.nodes.filter((e) => e._dirty && e._orig && !W.samePos(e, e._orig)) : this.nodes.filter((e) => e._dirty);
1644
- }
1645
- _notify(e) {
1646
- if (this.batchMode || !this.onChange) return this;
1647
- let t = (e || []).concat(this.getDirtyNodes());
1648
- return this.onChange(t), this;
1649
- }
1650
- cleanNodes() {
1651
- return this.batchMode || this.nodes.forEach((e) => {
1652
- delete e._dirty, delete e._lastTried;
1653
- }), this;
1654
- }
1655
- saveInitial() {
1656
- return this.nodes.forEach((e) => {
1657
- e._orig = W.copyPos({}, e), delete e._dirty;
1658
- }), this._hasLocked = this.nodes.some((e) => e.locked), this;
1659
- }
1660
- restoreInitial() {
1661
- return this.nodes.forEach((e) => {
1662
- !e._orig || W.samePos(e, e._orig) || (W.copyPos(e, e._orig), e._dirty = !0);
1663
- }), this._notify(), this;
1664
- }
1665
- findEmptyPosition(e, t = this.nodes, n = this.column, r) {
1666
- let i = typeof r == "number" ? r : r ? r.y * n + (r.x + r.w) : 0, a = !1;
1667
- for (let r = i; !a; ++r) {
1668
- let i = r % n, o = Math.floor(r / n);
1669
- if (i + e.w > n) continue;
1670
- let s = {
1671
- x: i,
1672
- y: o,
1673
- w: e.w,
1674
- h: e.h
1675
- };
1676
- t.find((e) => W.isIntercepted(s, e)) || ((e.x !== i || e.y !== o) && (e._dirty = !0), e.x = i, e.y = o, delete e.autoPosition, a = !0);
1677
- }
1678
- return a;
1679
- }
1680
- addNode(e, t = !1, n) {
1681
- let r = this.nodes.find((t) => t._id === e._id);
1682
- if (r) return r;
1683
- this._inColumnResize ? this.nodeBoundFix(e) : this.prepareNode(e), delete e._temporaryRemoved, delete e._removeDOM;
1684
- let i = !1;
1685
- 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;
1686
- }
1687
- removeNode(e, t = !0, n = !1) {
1688
- 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;
1689
- }
1690
- removeAll(e = !0, t = !0) {
1691
- if (delete this._layouts, !this.nodes.length) return this;
1692
- e && this.nodes.forEach((e) => e._removeDOM = !0);
1693
- let n = this.nodes;
1694
- return this.removedNodes = t ? n : [], this.nodes = [], this._notify(n);
1695
- }
1696
- moveNodeCheck(t, n) {
1697
- if (!this.changedPosConstrain(t, n) && !n.forceCollide) return !1;
1698
- if (n.pack === void 0 && !this.batchMode && (n.pack = !0), !this.maxRow) return this.moveNode(t, n);
1699
- let r, i = new e({
1700
- column: this.column,
1701
- mode: this.mode,
1702
- nodes: this.nodes.map((e) => e._id === t._id ? (r = { ...e }, r) : { ...e })
1703
- });
1704
- if (!r) return !1;
1705
- let a = i.moveNode(r, n) && i.getRow() <= Math.max(this.getRow(), this.maxRow);
1706
- if (!a && !n.resizing && n.collide && !t._isExternal) {
1707
- let e = n.collide.el?.gridstackNode;
1708
- if (e && this.swap(t, e)) return this._notify(), !0;
1709
- }
1710
- return a ? (i.nodes.filter((e) => e._dirty).forEach((e) => {
1711
- let t = this.nodes.find((t) => t._id === e._id);
1712
- t && (W.copyPos(t, e), t._dirty = !0);
1713
- }), this._notify(), !0) : !1;
1714
- }
1715
- willItFit(t) {
1716
- if (delete t._willFitPos, !this.maxRow) return !0;
1717
- let n = new e({
1718
- column: this.column,
1719
- mode: this.mode,
1720
- nodes: this.nodes.map((e) => ({ ...e }))
1721
- }), r = { ...t };
1722
- 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 = W.copyPos({}, r), !0) : !1;
1723
- }
1724
- _makeDynamicSubGrid(e, t, n) {
1725
- if (!n || !e.grid?.opts?.subGridDynamic || e.grid._isTemp || !t.rect || !n._rect) return !1;
1726
- let r = W.areaIntercept(t.rect, n._rect), i = W.area(t.rect), a = W.area(n._rect);
1727
- return r / (i < a ? i : a) <= .8 ? !1 : (n.grid.makeSubGrid(n.el, void 0, e), !0);
1728
- }
1729
- changedPosConstrain(e, t) {
1730
- 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);
1731
- }
1732
- moveNode(e, t) {
1733
- if (!e || !t) return !1;
1734
- let n = !1;
1735
- 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);
1736
- let r = e.w !== t.w || e.h !== t.h, i = W.copyPos({}, e, !0);
1737
- if (W.copyPos(i, t), this.nodeBoundFix(i, r), W.copyPos(t, i), !t.forceCollide && W.samePos(e, t)) return !1;
1738
- let a = W.copyPos({}, e);
1739
- if (this.mode === "list" || this.mode === "compact") {
1740
- let r = !1;
1741
- if (e._moving && !t.nested && e.grid?.opts?.subGridDynamic) {
1742
- let a = this.directionCollideCoverage(e, t, this.collideAll(e, i, t.skip));
1743
- this._makeDynamicSubGrid(e, t, a) && (r = !0, n && delete t.pack);
1744
- }
1745
- if (!r) {
1746
- e._dirty = !0;
1747
- let t = a.y * this.column + a.x;
1748
- W.copyPos(e, i);
1749
- let n = this.nodes.indexOf(e);
1750
- n !== -1 && (this.nodes.splice(n, 1), e.y * this.column + e.x < t ? this.nodes.unshift(e) : this.nodes.push(e));
1751
- }
1752
- } else {
1753
- let r = this.collideAll(e, i, t.skip), a = !0;
1754
- if (r.length) {
1755
- let o = e._moving && !t.nested, s = o ? this.directionCollideCoverage(e, t, r) : r[0];
1756
- o && this._makeDynamicSubGrid(e, t, s) && (s = void 0), s ? a = !this._fixCollisions(e, i, s, t) : (a = !1, n && delete t.pack);
1757
- }
1758
- a && !W.samePos(e, i) && (e._dirty = !0, W.copyPos(e, i));
1759
- }
1760
- return t.pack && this._packNodes()._notify(), !W.samePos(e, a);
1761
- }
1762
- getRow() {
1763
- return this.nodes.reduce((e, t) => Math.max(e, t.y + t.h), 0);
1764
- }
1765
- beginUpdate(e) {
1766
- return e._updating || (e._updating = !0, delete e._skipDown, this.batchMode || this.saveInitial()), this;
1767
- }
1768
- endUpdate() {
1769
- let e = this.nodes.find((e) => e._updating);
1770
- return e && (delete e._updating, delete e._skipDown, this.mode === "compact" && this._packNodes()._notify()), this;
1771
- }
1772
- save(e = !0, t, n) {
1773
- let r = this._layouts?.length || 0, i;
1774
- r && (n ? n !== this.column && (i = this._layouts[n]) : this.column !== r - 1 && (i = this._layouts[r - 1]));
1775
- let a = [];
1776
- return this.sortNodes(), this.nodes.forEach((n) => {
1777
- let r = i?.find((e) => e._id === n._id), o = {
1778
- ...n,
1779
- ...r || {}
1780
- };
1781
- W.removeInternalForSave(o, !e), t && t(n, o), a.push(o);
1782
- }), a;
1783
- }
1784
- layoutsNodesChange(e) {
1785
- return !this._layouts || this._inColumnResize || this._layouts.forEach((t, n) => {
1786
- if (!(!t || n === this.column)) if (n < this.column) this._layouts[n] = void 0;
1787
- else {
1788
- let r = n / this.column;
1789
- e.forEach((e) => {
1790
- if (!e._orig) return;
1791
- let n = t.find((t) => t._id === e._id);
1792
- 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)));
1793
- });
1794
- }
1795
- }), this;
1796
- }
1797
- columnChanged(e, t, n) {
1798
- if (!this.nodes.length || !t || e === t) return this;
1799
- n ??= this.mode === "list" || this.mode === "compact" ? this.mode : "moveScale";
1800
- let r = n === "compact" || n === "list" ? n : void 0;
1801
- r && this.sortNodes(1), t < e && this.cacheLayout(this.nodes, e), this.batchUpdate();
1802
- let i = [], a = r ? this.nodes : W.sort(this.nodes, -1);
1803
- if (t > e && this._layouts) {
1804
- let n = this._layouts[t] || [], o = this._layouts.length - 1;
1805
- !n.length && e !== o && this._layouts[o]?.length && (e = o, this._layouts[o].forEach((e) => {
1806
- let t = a.find((t) => t._id === e._id);
1807
- 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));
1808
- })), n.forEach((e) => {
1809
- let t = a.findIndex((t) => t._id === e._id);
1810
- if (t !== -1) {
1811
- let n = a[t];
1812
- if (r) {
1813
- n.w = e.w;
1814
- return;
1815
- }
1816
- (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);
1817
- }
1818
- });
1819
- }
1820
- if (r) this.compact(r, !1);
1821
- else {
1822
- if (a.length) if (typeof n == "function") n(t, e, i, a);
1823
- else {
1824
- let o = r || n === "none" ? 1 : t / e, s = n === "move" || n === "moveScale", c = n === "scale" || n === "moveScale";
1825
- a.forEach((n) => {
1826
- 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);
1827
- }), a = [];
1828
- }
1829
- i = W.sort(i, -1), this._inColumnResize = !0, this.nodes = [], i.forEach((e) => {
1830
- this.addNode(e, !1), delete e._orig;
1831
- });
1832
- }
1833
- return this.nodes.forEach((e) => delete e._orig), this.batchUpdate(!1, !r), delete this._inColumnResize, this;
1834
- }
1835
- cacheLayout(t, n, r = !1) {
1836
- let i = [];
1837
- return t.forEach((t, n) => {
1838
- t._id === void 0 && (t._id = (t.id ? this.nodes.find((e) => e.id === t.id) : void 0)?._id ?? e._idSeq++), i[n] = {
1839
- x: t.x,
1840
- y: t.y,
1841
- w: t.w,
1842
- _id: t._id
1843
- };
1844
- }), this._layouts = r ? [] : this._layouts || [], this._layouts[n] = i, this;
1845
- }
1846
- cacheOneLayout(t, n) {
1847
- t._id = t._id ?? e._idSeq++;
1848
- let r = {
1849
- x: t.x,
1850
- y: t.y,
1851
- w: t.w,
1852
- _id: t._id
1853
- };
1854
- (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] || [];
1855
- let i = this.findCacheLayout(t, n);
1856
- return i === -1 ? this._layouts[n].push(r) : this._layouts[n][i] = r, this;
1857
- }
1858
- findCacheLayout(e, t) {
1859
- return this._layouts?.[t]?.findIndex((t) => t._id === e._id) ?? -1;
1860
- }
1861
- removeNodeFromLayoutCache(e) {
1862
- if (this._layouts) for (let t = 0; t < this._layouts.length; t++) {
1863
- let n = this.findCacheLayout(e, t);
1864
- n !== -1 && this._layouts[t].splice(n, 1);
1865
- }
1866
- }
1867
- cleanupNode(e) {
1868
- let t = e;
1869
- for (let e in t) e[0] === "_" && e !== "_id" && delete t[e];
1870
- return this;
1871
- }
1872
- };
1873
- tn._idSeq = 0;
1874
- //#endregion
1875
- //#region node_modules/gridstack/dist/types.js
1876
- var G = {
1877
- alwaysShowResizeHandle: "mobile",
1878
- animate: !0,
1879
- auto: !0,
1880
- cellHeight: "auto",
1881
- cellHeightThrottle: 100,
1882
- cellHeightUnit: "px",
1883
- column: 12,
1884
- draggable: {
1885
- handle: ".grid-stack-item-content",
1886
- appendTo: "body",
1887
- scroll: !0
1888
- },
1889
- handle: ".grid-stack-item-content",
1890
- itemClass: "grid-stack-item",
1891
- margin: 10,
1892
- marginUnit: "px",
1893
- maxRow: 0,
1894
- minRow: 0,
1895
- placeholderClass: "grid-stack-placeholder",
1896
- placeholderText: "",
1897
- removableOptions: {
1898
- accept: "grid-stack-item",
1899
- decline: "grid-stack-non-removable"
1900
- },
1901
- resizable: { handles: "se" },
1902
- rtl: "auto"
1903
- }, K = class {}, q = 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), nn = 300, rn = 10, J = class {};
1904
- function Y(e) {
1905
- e.preventDefault();
1906
- }
1907
- function an() {
1908
- document.addEventListener("contextmenu", Y, !0), document.addEventListener("selectstart", Y, !0);
1909
- }
1910
- function on() {
1911
- document.removeEventListener("contextmenu", Y, !0), document.removeEventListener("selectstart", Y, !0);
1912
- }
1913
- function sn(e, t, n) {
1914
- e.removeEventListener("touchmove", t), e.removeEventListener("touchend", n), e.removeEventListener("touchcancel", n), cn();
1915
- }
1916
- function cn() {
1917
- J.touchDelayTimer && (window.clearTimeout(J.touchDelayTimer), delete J.touchDelayTimer), on();
1918
- }
1919
- function ln(e, t) {
1920
- e.touches.length > 1 || (e.cancelable && e.preventDefault(), W.simulateMouseEvent(e.changedTouches[0], t));
1921
- }
1922
- function un(e, t) {
1923
- e.cancelable && e.preventDefault(), W.simulateMouseEvent(e, t);
1924
- }
1925
- function dn(e) {
1926
- if (J.touchHandled) return;
1927
- let t = e.currentTarget, n = e.touches[0].clientX, r = e.touches[0].clientY, i = () => sn(t, a, i), a = (e) => {
1928
- let t = e.touches[0];
1929
- Math.abs(t.clientX - n) + Math.abs(t.clientY - r) > rn && i();
1930
- };
1931
- t.addEventListener("touchmove", a, { passive: !0 }), t.addEventListener("touchend", i, { passive: !0 }), t.addEventListener("touchcancel", i, { passive: !0 }), J.touchDelayTimer = window.setTimeout(() => {
1932
- sn(t, a, i), J.touchHandled = !0, J.wasDelayed = !0, an(), ln(e, "mousedown"), delete J.wasDelayed;
1933
- }, nn);
1934
- }
1935
- function fn(e) {
1936
- J.touchHandled && ln(e, "mousemove");
1937
- }
1938
- function X(e) {
1939
- if (!J.touchHandled) return;
1940
- on(), J.pointerLeaveTimeout && (window.clearTimeout(J.pointerLeaveTimeout), delete J.pointerLeaveTimeout);
1941
- let t = !!K.dragElement;
1942
- ln(e, "mouseup"), !t && e.type !== "touchcancel" && ln(e, "click"), J.touchHandled = !1;
1943
- }
1944
- function pn(e) {
1945
- e.pointerType !== "mouse" && e.target.releasePointerCapture(e.pointerId);
1946
- }
1947
- function mn(e) {
1948
- K.dragElement && e.pointerType !== "mouse" && un(e, "mouseenter");
1949
- }
1950
- function hn(e) {
1951
- K.dragElement && e.pointerType !== "mouse" && (J.pointerLeaveTimeout = window.setTimeout(() => {
1952
- delete J.pointerLeaveTimeout, un(e, "mouseleave");
1953
- }, 10));
1954
- }
1955
- //#endregion
1956
- //#region node_modules/gridstack/dist/dd-resizable-handle.js
1957
- var gn = class e {
1958
- constructor(e, t, n) {
1959
- 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();
1960
- }
1961
- _init() {
1962
- if (this.option.element) try {
1963
- this.el = this.option.element instanceof HTMLElement ? this.option.element : this.host.querySelector(this.option.element);
1964
- } catch (e) {
1965
- this.option.element = void 0, console.error("Query for resizeable handle failed, falling back", e);
1966
- }
1967
- 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), q && (this.el.addEventListener("touchstart", dn), this.el.addEventListener("pointerdown", pn)), this;
1968
- }
1969
- destroy() {
1970
- return this.mouseDownEvent && this._mouseUp(this.mouseDownEvent), cn(), this.el.removeEventListener("mousedown", this._mouseDown), q && (this.el.removeEventListener("touchstart", dn), this.el.removeEventListener("pointerdown", pn)), this.option.element || this.host.removeChild(this.el), this;
1971
- }
1972
- _mouseDown(e) {
1973
- this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, {
1974
- capture: !0,
1975
- passive: !0
1976
- }), document.addEventListener("mouseup", this._mouseUp, !0), q && (this.el.addEventListener("touchmove", fn), this.el.addEventListener("touchend", X), this.el.addEventListener("touchcancel", X)), J.wasDelayed && this.el.classList.add("ui-resizable-armed"), e.stopPropagation(), e.preventDefault();
1977
- }
1978
- _mouseMove(e) {
1979
- let t = this.mouseDownEvent;
1980
- 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();
1981
- }
1982
- _mouseUp(e) {
1983
- 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), q && (this.el.removeEventListener("touchmove", fn), this.el.removeEventListener("touchend", X), this.el.removeEventListener("touchcancel", X)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
1984
- }
1985
- _keyEvent(e) {
1986
- e.key === "Escape" && (this.host.gridstackNode?.grid?.engine.restoreInitial(), this._mouseUp(this.mouseDownEvent));
1987
- }
1988
- _triggerEvent(e, t) {
1989
- let n = this.option;
1990
- return n[e] && n[e](t), this;
1991
- }
1992
- };
1993
- gn.prefix = "ui-resizable-";
1994
- //#endregion
1995
- //#region node_modules/gridstack/dist/dd-base-impl.js
1996
- var _n = class {
1997
- constructor() {
1998
- this._eventRegister = {};
1999
- }
2000
- get disabled() {
2001
- return this._disabled;
2002
- }
2003
- on(e, t) {
2004
- this._eventRegister[e] = t;
2005
- }
2006
- off(e) {
2007
- delete this._eventRegister[e];
2008
- }
2009
- enable() {
2010
- this._disabled = !1;
2011
- }
2012
- disable() {
2013
- this._disabled = !0;
2014
- }
2015
- destroy() {
2016
- this._eventRegister = {};
2017
- }
2018
- triggerEvent(e, t) {
2019
- if (!this.disabled && this._eventRegister[e]) return this._eventRegister[e](t);
2020
- }
2021
- }, vn = class e extends _n {
2022
- constructor(e, t = {}) {
2023
- super(), this.el = e, this.option = t, this.rectScale = {
2024
- x: 1,
2025
- y: 1
2026
- }, this._ui = () => {
2027
- let e = this.el.parentElement.getBoundingClientRect(), t = {
2028
- width: this.originalRect.width,
2029
- height: this.originalRect.height + this.scrolled,
2030
- left: this.originalRect.left,
2031
- right: this.originalRect.right,
2032
- top: this.originalRect.top - this.scrolled
2033
- }, n = this.temporalRect || t;
2034
- return {
2035
- position: {
2036
- left: this.option.rtl ? (e.right - n.right) * this.rectScale.x : (n.left - e.left) * this.rectScale.x,
2037
- top: (n.top - e.top) * this.rectScale.y
2038
- },
2039
- size: {
2040
- width: n.width * this.rectScale.x,
2041
- height: n.height * this.rectScale.y
2042
- }
2043
- };
2044
- }, this._mouseOver = this._mouseOver.bind(this), this._mouseOut = this._mouseOut.bind(this), this.enable(), this._setupAutoHide(!!this.option.autoHide), this._setupHandlers();
2045
- }
2046
- on(e, t) {
2047
- super.on(e, t);
2048
- }
2049
- off(e) {
2050
- super.off(e);
2051
- }
2052
- enable() {
2053
- super.enable(), this.el.classList.remove("ui-resizable-disabled"), this._setupAutoHide(!!this.option.autoHide);
2054
- }
2055
- disable() {
2056
- super.disable(), this.el.classList.add("ui-resizable-disabled"), this._setupAutoHide(!1);
2057
- }
2058
- destroy() {
2059
- K.resizeElement === this && delete K.resizeElement, this._removeHandlers(), this._setupAutoHide(!1), delete this.el, super.destroy();
2060
- }
2061
- updateOption(e) {
2062
- let t = e.handles && e.handles !== this.option.handles, n = e.autoHide && e.autoHide !== this.option.autoHide;
2063
- return Object.assign(this.option, e), t && (this._removeHandlers(), this._setupHandlers()), n && this._setupAutoHide(!!this.option.autoHide), this;
2064
- }
2065
- _setupAutoHide(e) {
2066
- 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), K.overResizeElement === this && delete K.overResizeElement), this;
2067
- }
2068
- _mouseOver(e) {
2069
- K.overResizeElement || K.dragElement || (K.overResizeElement = this, K.resizeElement || this.el.classList.remove("ui-resizable-autohide"));
2070
- }
2071
- _mouseOut(e) {
2072
- K.overResizeElement === this && (delete K.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
2073
- }
2074
- _setupHandlers() {
2075
- return this.handlers = (this.option.handles ?? "se").split(",").map((e) => e.trim()).map((e) => new gn(this.el, e, {
2076
- element: this.option.element,
2077
- start: (e) => this._resizeStart(e),
2078
- stop: (e) => this._resizeStop(e),
2079
- move: (t) => this._resizing(t, e)
2080
- })), this;
2081
- }
2082
- _resizeStart(e) {
2083
- this.sizeToContent = W.shouldSizeToContent(this.el.gridstackNode, !0), this.originalRect = this.el.getBoundingClientRect(), this.scrollEl = W.getScrollElement(this.el), this.scrollY = this.scrollEl.scrollTop, this.scrolled = 0, this.startEvent = e, W.pauseIframePointerEvents(!0), this._setupHelper(), this._applyChange();
2084
- let t = W.initEvent(e, {
2085
- type: "resizestart",
2086
- target: this.el
2087
- });
2088
- return K.resizeElement = this, this.option.start && this.option.start(t, this._ui()), this.el.classList.add("ui-resizable-resizing"), this.triggerEvent("resizestart", t), this;
2089
- }
2090
- _resizing(e, t) {
2091
- this.scrolled = this.scrollEl.scrollTop - this.scrollY, this.temporalRect = this._getChange(e, t), this._applyChange();
2092
- let n = W.initEvent(e, {
2093
- type: "resize",
2094
- target: this.el
2095
- });
2096
- 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;
2097
- }
2098
- _resizeStop(e) {
2099
- let t = W.initEvent(e, {
2100
- type: "resizestop",
2101
- target: this.el
2102
- });
2103
- return W.pauseIframePointerEvents(!1), this._cleanHelper(), this.option.stop && this.option.stop(t), this.el.classList.remove("ui-resizable-resizing"), K.resizeElement === this && delete K.resizeElement, !K.resizeElement && K.overResizeElement && K.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;
2104
- }
2105
- _setupHelper() {
2106
- this.elOriginStyleVal = e._originStyleProp.map((e) => this.el.style[e]);
2107
- let t = this.el.parentElement;
2108
- this.parentOriginStylePosition = t.style.position;
2109
- let n = W.getValuesFromTransformedElement(t);
2110
- return this.rectScale = {
2111
- x: n.xScale,
2112
- y: n.yScale
2113
- }, getComputedStyle(t).position.match(/static/) && (t.style.position = "relative"), this.el.style.position = "absolute", this.el.style.opacity = "0.8", this;
2114
- }
2115
- _cleanHelper() {
2116
- return e._originStyleProp.forEach((e, t) => {
2117
- this.el.style[e] = this.elOriginStyleVal[t] || null;
2118
- }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
2119
- }
2120
- _getChange(e, t) {
2121
- let n = this.startEvent, r = {
2122
- width: this.originalRect.width,
2123
- height: this.originalRect.height + this.scrolled,
2124
- left: this.originalRect.left,
2125
- right: this.originalRect.right,
2126
- top: this.originalRect.top - this.scrolled
2127
- }, i = e.clientX - n.clientX, a = this.sizeToContent ? 0 : e.clientY - n.clientY, o = !1, s = !1, c = this.option.rtl;
2128
- !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);
2129
- let l = this._constrainSize(r.width, r.height, o, s);
2130
- 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;
2131
- }
2132
- _constrainSize(e, t, n, r) {
2133
- 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;
2134
- return {
2135
- width: Math.min(a, Math.max(o, e)),
2136
- height: Math.min(s, Math.max(c, t))
2137
- };
2138
- }
2139
- _applyChange() {
2140
- let e = {
2141
- left: 0,
2142
- right: 0,
2143
- top: 0,
2144
- width: 0,
2145
- height: 0
2146
- };
2147
- if (this.el.style.position === "absolute") {
2148
- let { left: t, right: n, top: r } = this.el.parentElement.getBoundingClientRect();
2149
- e = {
2150
- left: t,
2151
- right: n,
2152
- top: r,
2153
- width: 0,
2154
- height: 0
2155
- };
2156
- }
2157
- if (!this.temporalRect) return this;
2158
- let t = e;
2159
- return Object.entries(this.temporalRect).forEach(([n, r]) => {
2160
- if (this.option.rtl ? n === "left" : n === "right") return;
2161
- let i = n === "width" || n === "left" || n === "right" ? this.rectScale.x : n === "height" || n === "top" ? this.rectScale.y : 1, a;
2162
- a = n === "right" ? (e.right - r) * this.rectScale.x + "px" : (r - t[n]) * i + "px", this.el.style[n] = a;
2163
- }), this;
2164
- }
2165
- _removeHandlers() {
2166
- return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
2167
- }
2168
- };
2169
- vn._originStyleProp = [
2170
- "width",
2171
- "height",
2172
- "position",
2173
- "left",
2174
- "right",
2175
- "top",
2176
- "opacity",
2177
- "zIndex"
2178
- ];
2179
- //#endregion
2180
- //#region node_modules/gridstack/dist/dd-draggable.js
2181
- var yn = "input,textarea,button,select,option,[contenteditable=\"true\"],.ui-resizable-handle", bn = class e extends _n {
2182
- constructor(e, t = {}) {
2183
- super(), this.el = e, this.option = t, this.dragTransform = {
2184
- xScale: 1,
2185
- yScale: 1,
2186
- xOffset: 0,
2187
- yOffset: 0
2188
- }, this._autoScrollTick = () => {
2189
- let e = this.helper, t = this._autoScrollContainer;
2190
- if (!e || !t) {
2191
- this._stopScrolling();
2192
- return;
2193
- }
2194
- let n = this._getClipping(e, t);
2195
- if (n === 0) {
2196
- this._stopScrolling();
2197
- return;
2198
- }
2199
- if (!this._autoScrollMaxSpeed) {
2200
- let e = window.innerHeight || document.documentElement.clientHeight;
2201
- this._autoScrollMaxSpeed = Math.max(e / 150, 4);
2202
- }
2203
- let r = Math.min(Math.abs(n) * .5, this._autoScrollMaxSpeed), i = n > 0 ? r : -r, a = t.scrollTop;
2204
- if (t.scrollTop += i, t.scrollTop === a) {
2205
- this._stopScrolling();
2206
- return;
2207
- }
2208
- this.dragging && this.lastDrag && (this._dragFollow(this.lastDrag), this._callDrag(this.lastDrag)), this._autoScrollAnimId = requestAnimationFrame(this._autoScrollTick);
2209
- };
2210
- let n = t?.handle?.substring(1), r = e.gridstackNode;
2211
- 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();
2212
- }
2213
- getAllHandles() {
2214
- let e = this.option.handle;
2215
- if (!e) return [];
2216
- let t = [], n = (r) => {
2217
- t.push(...Array.from(r.querySelectorAll(e))), r.querySelectorAll("*").forEach((e) => {
2218
- let t = e.shadowRoot;
2219
- t && n(t);
2220
- });
2221
- };
2222
- return n(this.el), t.filter((e) => {
2223
- if (!(e instanceof HTMLElement)) return !1;
2224
- let t = e.closest(".grid-stack-item"), n = e.getRootNode();
2225
- for (; !t && n instanceof ShadowRoot;) t = n.host.closest(".grid-stack-item"), n = n.host.getRootNode();
2226
- return t === this.el || !t;
2227
- });
2228
- }
2229
- on(e, t) {
2230
- super.on(e, t);
2231
- }
2232
- off(e) {
2233
- super.off(e);
2234
- }
2235
- enable() {
2236
- this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
2237
- e.addEventListener("mousedown", this._mouseDown), q && (e.addEventListener("touchstart", dn), e.addEventListener("pointerdown", pn));
2238
- }), this.el.classList.remove("ui-draggable-disabled"));
2239
- }
2240
- disable(e = !1) {
2241
- this.disabled !== !0 && (super.disable(), cn(), this.dragEls.forEach((e) => {
2242
- e.removeEventListener("mousedown", this._mouseDown), q && (e.removeEventListener("touchstart", dn), e.removeEventListener("pointerdown", pn));
2243
- }), e || this.el.classList.add("ui-draggable-disabled"));
2244
- }
2245
- destroy() {
2246
- 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();
2247
- }
2248
- updateOption(e) {
2249
- return Object.assign(this.option, e), this;
2250
- }
2251
- refreshHandles() {
2252
- let e = this.disabled;
2253
- e || this.disable(!0);
2254
- let t = this.option?.handle?.substring(1), n = this.el.gridstackNode;
2255
- 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();
2256
- }
2257
- _mouseDown(e) {
2258
- if (e.isTrusted && (J.touchHandled &&= !1, K.mouseHandled && e.timeStamp !== K.mouseHandledTimeStamp && delete K.mouseHandled), K.mouseHandled || e.button !== 0) return !0;
2259
- let t = e.target.closest(yn);
2260
- 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 K.dragElement, delete K.dropElement, delete this._autoScrollMaxSpeed, delete this._autoScrollContainer, document.addEventListener("mousemove", this._mouseMove, {
2261
- capture: !0,
2262
- passive: !0
2263
- }), document.addEventListener("mouseup", this._mouseUp, !0), q && e.currentTarget && (e.currentTarget.addEventListener("touchmove", fn), e.currentTarget.addEventListener("touchend", X), e.currentTarget.addEventListener("touchcancel", X)), J.wasDelayed && this.el.classList.add("ui-draggable-armed"), e.preventDefault(), document.activeElement && document.activeElement.blur(), K.mouseHandled = !0, K.mouseHandledTimeStamp = e.timeStamp, !0);
2264
- }
2265
- _callDrag(e) {
2266
- if (!this.dragging) return;
2267
- let t = W.initEvent(e, {
2268
- target: this.el,
2269
- type: "drag"
2270
- });
2271
- this.option.drag && this.option.drag(t, this.ui()), this.triggerEvent("drag", t);
2272
- }
2273
- _mouseMove(e) {
2274
- let t = this.mouseDownEvent;
2275
- if (this.lastDrag = e, this.dragging) if (this._dragFollow(e), K.pauseDrag) {
2276
- let t = Number.isInteger(K.pauseDrag) ? K.pauseDrag : 100;
2277
- this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), t);
2278
- } else this._callDrag(e);
2279
- else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
2280
- this.dragging = !0, W.pauseIframePointerEvents(!0), this.el.classList.remove("ui-draggable-armed"), K.dragElement = this;
2281
- let t = this.el.gridstackNode?.grid;
2282
- t ? K.dropElement = t.el.ddElement?.ddDroppable : delete K.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = W.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
2283
- let n = W.initEvent(e, {
2284
- target: this.el,
2285
- type: "dragstart"
2286
- });
2287
- this.option.start && this.option.start(n, this.ui()), this.triggerEvent("dragstart", n), document.addEventListener("keydown", this._keyEvent);
2288
- }
2289
- return !0;
2290
- }
2291
- _mouseUp(e) {
2292
- if (this._stopScrolling(), this.el.classList.remove("ui-draggable-armed"), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), q && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", fn, !0), e.currentTarget.removeEventListener("touchend", X, !0), e.currentTarget.removeEventListener("touchcancel", X, !0)), this.dragging) {
2293
- delete this.dragging, W.pauseIframePointerEvents(!1), delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent), K.dropElement?.el === this.el.parentElement && delete K.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper && this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
2294
- let t = W.initEvent(e, {
2295
- target: this.el,
2296
- type: "dragstop"
2297
- });
2298
- this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), K.dropElement && K.dropElement.drop(e);
2299
- }
2300
- delete this.helper, delete this.mouseDownEvent, delete K.dragElement, delete K.dropElement, delete K.mouseHandled, delete K.mouseHandledTimeStamp, J.touchHandled = !1, e.preventDefault();
2301
- }
2302
- _keyEvent(e) {
2303
- let t = this.el.gridstackNode, n = t?.grid || K.dropElement?.el?.gridstack;
2304
- if (e.key === "Escape") t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), n?.cancelDrag(), this._mouseUp(this.mouseDownEvent);
2305
- else if (t && n && (e.key === "r" || e.key === "R")) {
2306
- if (!W.canBeRotated(t)) return;
2307
- t._origRotate = t._origRotate || { ...t._orig }, delete t._moving, n.setAnimation(!1).rotate(t.el, {
2308
- top: -this.dragOffset.offsetTop,
2309
- left: -this.dragOffset.offsetX
2310
- }).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", W.swap(t._orig, "w", "h"), delete t._rect, this._mouseMove(this.lastDrag);
2311
- }
2312
- }
2313
- _createHelper() {
2314
- let t = this.el;
2315
- return typeof this.option.helper == "function" ? t = this.option.helper(this.el) : this.option.helper === "clone" && (t = W.cloneNode(this.el)), t.parentElement || W.appendTo(t, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo ?? "body"), this.dragElementOriginStyle = e.originStyleProp.map((e) => this.el.style[e]), t;
2316
- }
2317
- _setupHelperStyle(e) {
2318
- this.helper.classList.add("ui-draggable-dragging"), this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");
2319
- let t = this.helper.style;
2320
- 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(() => {
2321
- this.helper && (t.transition = null);
2322
- }, 0), this;
2323
- }
2324
- _removeHelperStyle() {
2325
- 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) {
2326
- let t = this.helper, n = this.dragElementOriginStyle, r = e.originStyleProp.indexOf("transition"), i = n[r] || null;
2327
- t.style.transition = n[r] = "none";
2328
- let a = t.style;
2329
- e.originStyleProp.forEach((e, t) => a[e] = n[t] || null), setTimeout(() => t.style.transition = i || "", 50);
2330
- }
2331
- return delete this.dragElementOriginStyle, this;
2332
- }
2333
- _dragFollow(e) {
2334
- let t = this.helper.style, n = this.dragOffset;
2335
- 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";
2336
- }
2337
- _setupHelperContainmentStyle() {
2338
- 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;
2339
- }
2340
- _getDragOffset(e, t, n) {
2341
- let r = 0, i = 0;
2342
- n && (r = this.dragTransform.xOffset, i = this.dragTransform.yOffset);
2343
- 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;
2344
- return {
2345
- x: o,
2346
- top: a.top,
2347
- offsetX: s,
2348
- offsetTop: -e.clientY + a.top - i,
2349
- width: a.width * this.dragTransform.xScale,
2350
- height: a.height * this.dragTransform.yScale
2351
- };
2352
- }
2353
- updateScrollPosition(e) {
2354
- this._autoScrollContainer = W.getScrollElement(e), this._getClipping(this.helper, this._autoScrollContainer) === 0 ? this._stopScrolling() : this._autoScrollAnimId ||= requestAnimationFrame(this._autoScrollTick);
2355
- }
2356
- _getClipping(e, t) {
2357
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight || document.documentElement.clientHeight;
2358
- if (n.bottom < r.top || n.top > r.bottom) return 0;
2359
- let a = n.bottom - Math.min(r.bottom, i), o = n.top - Math.max(r.top, 0);
2360
- return o < 0 ? o : a > 0 ? a : 0;
2361
- }
2362
- _stopScrolling() {
2363
- this._autoScrollAnimId && (cancelAnimationFrame(this._autoScrollAnimId), delete this._autoScrollAnimId);
2364
- }
2365
- ui() {
2366
- 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;
2367
- return { position: {
2368
- top: (t.top - e.top) * this.dragTransform.yScale,
2369
- left: n
2370
- } };
2371
- }
2372
- };
2373
- bn.originStyleProp = [
2374
- "width",
2375
- "height",
2376
- "transform",
2377
- "transform-origin",
2378
- "transition",
2379
- "pointerEvents",
2380
- "position",
2381
- "left",
2382
- "right",
2383
- "top",
2384
- "minWidth",
2385
- "willChange"
2386
- ];
2387
- //#endregion
2388
- //#region node_modules/gridstack/dist/dd-droppable.js
2389
- var xn = class extends _n {
2390
- constructor(e, t = {}) {
2391
- 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();
2392
- }
2393
- on(e, t) {
2394
- super.on(e, t);
2395
- }
2396
- off(e) {
2397
- super.off(e);
2398
- }
2399
- enable() {
2400
- 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), q && (this.eventEl.addEventListener("pointerenter", mn), this.eventEl.addEventListener("pointerleave", hn)));
2401
- }
2402
- disable(e = !1) {
2403
- 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), q && (this.eventEl.removeEventListener("pointerenter", mn), this.eventEl.removeEventListener("pointerleave", hn)));
2404
- }
2405
- destroy() {
2406
- this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
2407
- }
2408
- updateOption(e) {
2409
- return Object.assign(this.option, e), this._setupAccept(), this;
2410
- }
2411
- _mouseEnter(e) {
2412
- if (!K.dragElement || J.touchHandled && e.isTrusted || !this._canDrop(K.dragElement.el)) return;
2413
- e.preventDefault(), e.stopPropagation(), K.dragElement._stopScrolling(), K.dropElement && K.dropElement !== this && K.dropElement._mouseLeave(e, !0), K.dropElement = this;
2414
- let t = W.initEvent(e, {
2415
- target: this.el,
2416
- type: "dropover"
2417
- });
2418
- this.option.over && this.option.over(t, this._ui(K.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
2419
- }
2420
- _mouseLeave(e, t = !1) {
2421
- if (!K.dragElement || K.dropElement !== this) return;
2422
- e.preventDefault(), e.stopPropagation(), t && K.dragElement._stopScrolling();
2423
- let n = W.initEvent(e, {
2424
- target: this.el,
2425
- type: "dropout"
2426
- });
2427
- if (this.option.out && this.option.out(n, this._ui(K.dragElement)), this.triggerEvent("dropout", n), K.dropElement === this && (delete K.dropElement, !t)) {
2428
- let t, n = this.el.parentElement;
2429
- for (; !t && n;) t = n.ddElement?.ddDroppable, n = n.parentElement;
2430
- t && t._mouseEnter(e);
2431
- }
2432
- }
2433
- drop(e) {
2434
- e.preventDefault();
2435
- let t = W.initEvent(e, {
2436
- target: this.el,
2437
- type: "drop"
2438
- });
2439
- this.option.drop && this.option.drop(t, this._ui(K.dragElement)), this.triggerEvent("drop", t);
2440
- }
2441
- _canDrop(e) {
2442
- return e && (!this.accept || this.accept(e));
2443
- }
2444
- _setupAccept() {
2445
- 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;
2446
- }
2447
- _ui(e) {
2448
- return {
2449
- draggable: e.el,
2450
- ...e.ui()
2451
- };
2452
- }
2453
- }, Sn = class e {
2454
- static init(t) {
2455
- return t.ddElement ||= new e(t), t.ddElement;
2456
- }
2457
- constructor(e) {
2458
- this.el = e;
2459
- }
2460
- on(e, t) {
2461
- return this.ddDraggable && [
2462
- "drag",
2463
- "dragstart",
2464
- "dragstop"
2465
- ].indexOf(e) > -1 ? this.ddDraggable.on(e, t) : this.ddDroppable && [
2466
- "drop",
2467
- "dropover",
2468
- "dropout"
2469
- ].indexOf(e) > -1 ? this.ddDroppable.on(e, t) : this.ddResizable && [
2470
- "resizestart",
2471
- "resize",
2472
- "resizestop"
2473
- ].indexOf(e) > -1 && this.ddResizable.on(e, t), this;
2474
- }
2475
- off(e) {
2476
- return this.ddDraggable && [
2477
- "drag",
2478
- "dragstart",
2479
- "dragstop"
2480
- ].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && [
2481
- "drop",
2482
- "dropover",
2483
- "dropout"
2484
- ].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && [
2485
- "resizestart",
2486
- "resize",
2487
- "resizestop"
2488
- ].indexOf(e) > -1 && this.ddResizable.off(e), this;
2489
- }
2490
- setupDraggable(e) {
2491
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new bn(this.el, e), this;
2492
- }
2493
- cleanDraggable() {
2494
- return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
2495
- }
2496
- setupResizable(e) {
2497
- return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new vn(this.el, e), this;
2498
- }
2499
- cleanResizable() {
2500
- return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
2501
- }
2502
- setupDroppable(e) {
2503
- return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new xn(this.el, e), this;
2504
- }
2505
- cleanDroppable() {
2506
- return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
2507
- }
2508
- }, Z = new class {
2509
- resizable(e, t, n, r) {
2510
- return this._getDDElements(e, typeof t == "string" ? t : void 0).forEach((e) => {
2511
- if (t === "disable" || t === "enable") e.ddResizable && e.ddResizable[t]();
2512
- else if (t === "destroy") e.ddResizable && e.cleanResizable();
2513
- else if (t === "option") e.setupResizable({ [n]: r });
2514
- else {
2515
- let n = e.el.gridstackNode.grid, r = e.el.getAttribute("gs-resize-handles") || n.opts.resizable.handles || "e,s,se";
2516
- r === "all" && (r = "n,e,s,w,se,sw,ne,nw");
2517
- let i = !n.opts.alwaysShowResizeHandle, a = t;
2518
- e.setupResizable({
2519
- ...n.opts.resizable,
2520
- handles: r,
2521
- autoHide: i,
2522
- start: a.start,
2523
- stop: a.stop,
2524
- resize: a.resize,
2525
- rtl: a.rtl
2526
- });
2527
- }
2528
- }), this;
2529
- }
2530
- draggable(e, t, n, r) {
2531
- return this._getDDElements(e, typeof t == "string" ? t : void 0).forEach((e) => {
2532
- if (t === "disable" || t === "enable") e.ddDraggable && e.ddDraggable[t]();
2533
- else if (t === "destroy") e.ddDraggable && e.cleanDraggable();
2534
- else if (t === "option") e.setupDraggable({ [n]: r });
2535
- else {
2536
- let n = e.el.gridstackNode.grid, r = t;
2537
- e.setupDraggable({
2538
- ...n.opts.draggable,
2539
- start: r.start,
2540
- stop: r.stop,
2541
- drag: r.drag,
2542
- rtl: r.rtl
2543
- });
2544
- }
2545
- }), this;
2546
- }
2547
- dragIn(e, t) {
2548
- return this._getDDElements(e).forEach((e) => e.setupDraggable(t)), this;
2549
- }
2550
- droppable(e, t, n, r) {
2551
- if (typeof t != "string") {
2552
- let e = t;
2553
- typeof e.accept == "function" && !e._accept && (e._accept = e.accept, e.accept = (t) => e._accept(t));
2554
- }
2555
- let i = typeof t == "string" ? t : void 0;
2556
- return this._getDDElements(e, i).forEach((e) => {
2557
- t === "disable" || t === "enable" ? e.ddDroppable && e.ddDroppable[t]() : t === "destroy" ? e.ddDroppable && e.cleanDroppable() : t === "option" ? e.setupDroppable({ [n]: r }) : e.setupDroppable(t);
2558
- }), this;
2559
- }
2560
- isDroppable(e) {
2561
- return !!(e?.ddElement?.ddDroppable && !e.ddElement.ddDroppable.disabled);
2562
- }
2563
- isDraggable(e) {
2564
- return !!(e?.ddElement?.ddDraggable && !e.ddElement.ddDraggable.disabled);
2565
- }
2566
- isResizable(e) {
2567
- return !!(e?.ddElement?.ddResizable && !e.ddElement.ddResizable.disabled);
2568
- }
2569
- on(e, t, n) {
2570
- return this._getDDElements(e).forEach((e) => e.on(t, (e) => {
2571
- n(e, K.dragElement ? K.dragElement.el : e.target, K.dragElement ? K.dragElement.helper : void 0);
2572
- })), this;
2573
- }
2574
- off(e, t) {
2575
- return this._getDDElements(e).forEach((e) => e.off(t)), this;
2576
- }
2577
- _getDDElements(e, t) {
2578
- let n = e.gridstack || t !== "destroy" && t !== "disable", r = W.getElements(e);
2579
- return r.length ? r.map((e) => e.ddElement || (n ? Sn.init(e) : null)).filter((e) => !!e) : [];
2580
- }
2581
- }(), Q = class e {
2582
- static init(t = {}, n = ".grid-stack") {
2583
- if (typeof document > "u") return null;
2584
- let r = e.getGridElement(n);
2585
- return r ? (r.gridstack ||= new e(r, W.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);
2586
- }
2587
- static initAll(t = {}, n = ".grid-stack") {
2588
- let r = [];
2589
- return typeof document > "u" ? r : (e.getGridElements(n).forEach((n) => {
2590
- n.gridstack ||= new e(n, W.cloneDeep(t)), r.push(n.gridstack);
2591
- }), 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);
2592
- }
2593
- static addGrid(t, n = {}) {
2594
- if (!t) return null;
2595
- let r = t;
2596
- if (r.gridstack) {
2597
- let e = r.gridstack;
2598
- return n && (e.opts = {
2599
- ...e.opts,
2600
- ...n
2601
- }), n.children !== void 0 && e.load(n.children), e;
2602
- }
2603
- return (!t.classList.contains("grid-stack") || e.addRemoveCB) && (r = e.addRemoveCB ? e.addRemoveCB(t, n, !0, !0) : W.createDiv(["grid-stack", n.class], t)), e.init(n, r);
2604
- }
2605
- static registerEngine(t) {
2606
- e.engineClass = t;
2607
- }
2608
- static _migrateFloat(e) {
2609
- let t = e.float;
2610
- t !== void 0 && (e.mode === void 0 && (e.mode = t ? "float" : "top"), delete e.float);
2611
- }
2612
- get placeholder() {
2613
- if (!this._placeholder) {
2614
- this._placeholder = W.createDiv([
2615
- this.opts.placeholderClass,
2616
- G.itemClass,
2617
- this.opts.itemClass
2618
- ]);
2619
- let e = W.createDiv(["placeholder-content"], this._placeholder);
2620
- this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
2621
- }
2622
- return this._placeholder;
2623
- }
2624
- constructor(t, n = {}) {
2625
- this.el = t, this.opts = n, this.animationDelay = 310, this._gsEventHandler = {}, this._extraDragRow = 0, this.dragTransform = {
2626
- xScale: 1,
2627
- yScale: 1,
2628
- xOffset: 0,
2629
- yOffset: 0
2630
- }, 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);
2631
- let r = W.toNumber(t.getAttribute("gs-row"));
2632
- n.column === "auto" && delete n.column, n.alwaysShowResizeHandle !== void 0 && (n._alwaysShowResizeHandle = n.alwaysShowResizeHandle);
2633
- let i = n.columnOpts;
2634
- if (i) {
2635
- let e = i.breakpoints;
2636
- !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);
2637
- }
2638
- let a = {
2639
- ...W.cloneDeep(G),
2640
- column: W.toNumber(t.getAttribute("gs-column")) || G.column,
2641
- minRow: r || W.toNumber(t.getAttribute("gs-min-row")) || G.minRow,
2642
- maxRow: r || W.toNumber(t.getAttribute("gs-max-row")) || G.maxRow,
2643
- staticGrid: W.toBool(t.getAttribute("gs-static")) || G.staticGrid,
2644
- sizeToContent: W.toBool(t.getAttribute("gs-size-to-content")) || void 0,
2645
- draggable: { handle: (n.handleClass ? "." + n.handleClass : n.handle ? n.handle : "") || G.draggable.handle },
2646
- removableOptions: {
2647
- accept: n.itemClass || G.removableOptions.accept,
2648
- decline: G.removableOptions.decline
2649
- }
2650
- };
2651
- t.getAttribute("gs-animate") && (a.animate = W.toBool(t.getAttribute("gs-animate"))), n = W.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");
2652
- let o = this.el.closest("." + G.itemClass)?.gridstackNode;
2653
- 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);
2654
- else {
2655
- typeof n.cellHeight == "number" && n.cellHeightUnit && n.cellHeightUnit !== G.cellHeightUnit && (n.cellHeight += n.cellHeightUnit, delete n.cellHeightUnit);
2656
- let e = n.cellHeight;
2657
- delete n.cellHeight, this.cellHeight(e);
2658
- }
2659
- n.alwaysShowResizeHandle === "mobile" && (n.alwaysShowResizeHandle = q), this._setStaticClass();
2660
- let s = n.engineClass || e.engineClass || tn;
2661
- if (this.engine = new s({
2662
- column: this.getColumn(),
2663
- mode: n.mode,
2664
- maxRow: n.maxRow,
2665
- onChange: (e) => {
2666
- e.forEach((e) => {
2667
- let t = e.el;
2668
- t && (e._removeDOM ? (t && t.remove(), delete e._removeDOM) : this._writePosAttr(t, e));
2669
- }), this._updateContainerHeight();
2670
- }
2671
- }), n.auto && (this.batchUpdate(), this.engine._loading = !0, this.getGridItems().forEach((e) => this._prepareElement(e)), delete this.engine._loading, this.batchUpdate(!1)), n.children) {
2672
- let e = n.children;
2673
- delete n.children, e.length && this.load(e);
2674
- }
2675
- this.setAnimation(), n.subGridDynamic && !K.pauseDrag && (K.pauseDrag = !0), n.draggable?.pause !== void 0 && (K.pauseDrag = n.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
2676
- }
2677
- _updateColumnVar(e = this.opts) {
2678
- 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)));
2679
- }
2680
- addWidget(t) {
2681
- if (!t) return;
2682
- if (typeof t == "string") {
2683
- console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");
2684
- return;
2685
- }
2686
- if (t.ELEMENT_NODE) return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(t);
2687
- let n, r = t;
2688
- if (r.grid = this, n = r.el ? r.el : e.addRemoveCB ? e.addRemoveCB(this.el, t, !0, !1) : this.createWidgetDivs(r), !n) return;
2689
- if (r = n.gridstackNode, r && n.parentElement === this.el && this.engine.nodes.find((e) => e._id === r._id)) return n;
2690
- let i = this._readAttr(n);
2691
- return W.defaults(t, i), this.engine.prepareNode(t), this.el.appendChild(n), this.makeWidget(n, t), n;
2692
- }
2693
- createWidgetDivs(t) {
2694
- let n = W.createDiv(["grid-stack-item", this.opts.itemClass]), r = W.createDiv(["grid-stack-item-content"], n);
2695
- return W.lazyLoad(t) ? t.visibleObservable || (t.visibleObservable = new IntersectionObserver(([n]) => {
2696
- n.isIntersecting && (t.visibleObservable?.disconnect(), delete t.visibleObservable, e.renderCB(r, t), t.grid?.prepareDragDrop(t.el));
2697
- }), window.setTimeout(() => t.visibleObservable?.observe(n))) : e.renderCB(r, t), n;
2698
- }
2699
- makeSubGrid(t, n, r, i = !0) {
2700
- let a = t.gridstackNode;
2701
- if (a ||= this.makeWidget(t).gridstackNode, a.subGrid?.el) return a.subGrid;
2702
- let o, s = this;
2703
- for (; s && !o;) o = s.opts?.subGridOpts, s = s.parentGridNode?.grid;
2704
- n = W.cloneDeep({
2705
- ...this.opts,
2706
- id: void 0,
2707
- children: void 0,
2708
- column: "auto",
2709
- columnOpts: void 0,
2710
- layout: "list",
2711
- subGridOpts: void 0,
2712
- ...o || {},
2713
- ...n || a.subGridOpts || {}
2714
- }), a.subGridOpts = n;
2715
- let c = !1;
2716
- n.column === "auto" && (c = !0, n.column = Math.max(a.w || 1, r?.w || 1), delete n.columnOpts);
2717
- let l = a.el.querySelector(".grid-stack-item-content"), u, d;
2718
- if (i && (this._removeDD(a.el), d = {
2719
- ...a,
2720
- x: 0,
2721
- y: 0
2722
- }, W.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 = W.createDiv(["grid-stack-item"]), u.appendChild(l), l = W.createDiv(["grid-stack-item-content"], a.el)), this.prepareDragDrop(a.el)), r) {
2723
- let e = c ? n.column : a.w, t = a.h + r.h, i = a.el.style;
2724
- i.transition = "none", this.update(a.el, {
2725
- w: e,
2726
- h: t
2727
- }), setTimeout(() => i.transition = "");
2728
- }
2729
- let f = a.subGrid = e.addGrid(l, n) || void 0;
2730
- return r?._moving && (f._isTemp = !0), c && (f._autoColumn = !0), i && f.makeWidget(u, d), r && (r._moving ? window.setTimeout(() => W.simulateMouseEvent(r._event, "mouseenter", f.el), 0) : f.makeWidget(a.el, a)), this.resizeToContentCheck(!1, a), f;
2731
- }
2732
- removeAsSubGrid(e) {
2733
- let t = this.parentGridNode?.grid;
2734
- if (t && (t.batchUpdate(), t.removeWidget(this.parentGridNode.el, !0, !0), this.engine.nodes.forEach((e) => {
2735
- 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);
2736
- }), t.batchUpdate(!1), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, e)) {
2737
- let n = e.el?.gridstackNode;
2738
- n && n !== e && (n._temporaryRemoved = !0), window.setTimeout(() => {
2739
- let n = K.dragElement?.lastDrag || e._event;
2740
- n && W.simulateMouseEvent(n, "mouseenter", t.el);
2741
- }, 0);
2742
- }
2743
- }
2744
- save(t = !0, n = !1, r = e.saveCB, i) {
2745
- let a = this.engine.save(t, r, i);
2746
- if (a.forEach((e) => {
2747
- if (t && e.el && !e.subGrid && !r) e.content = e.el.querySelector(".grid-stack-item-content")?.innerHTML, e.content || delete e.content;
2748
- else if (!t && !r && delete e.content, e.subGrid?.el) {
2749
- let i = e.w || e.subGrid.getColumn(), a = e.subGrid.save(t, n, r, i);
2750
- e.subGridOpts = n ? a : { children: a }, delete e.subGrid;
2751
- }
2752
- delete e.el;
2753
- }), n) {
2754
- let e = W.cloneDeep(this.opts);
2755
- 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");
2756
- let t = e._alwaysShowResizeHandle;
2757
- return delete e._alwaysShowResizeHandle, t === void 0 ? delete e.alwaysShowResizeHandle : e.alwaysShowResizeHandle = t, W.removeInternalAndSame(e, G), e.children = a, e;
2758
- }
2759
- return a;
2760
- }
2761
- load(t, n = e.addRemoveCB || !0) {
2762
- t.forEach((e) => {
2763
- e.w = e.w || e.minW || 1, e.h = e.h || e.minH || 1;
2764
- }), t = W.sort(t), this.engine.skipCacheUpdate = this._ignoreLayoutsNodeChange = !0;
2765
- let r = 0;
2766
- t.forEach((e) => {
2767
- r = Math.max(r, (e.x || 0) + e.w);
2768
- }), r > this.engine.defaultColumn && (this.engine.defaultColumn = r);
2769
- let i = this.getColumn();
2770
- 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));
2771
- let a = e.addRemoveCB;
2772
- typeof n == "function" && (e.addRemoveCB = n);
2773
- let o = [];
2774
- this.batchUpdate();
2775
- let s = !this.engine.nodes.length, c = s && this.opts.animate;
2776
- c && this.setAnimation(!1), !s && n && [...this.engine.nodes].forEach((n) => {
2777
- n.id && (W.find(t, n.id) || (e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), o.push(n), this.removeWidget(n.el, !0, !1)));
2778
- }), this.engine._loading = !0;
2779
- let l = [];
2780
- return this.engine.nodes = this.engine.nodes.filter((e) => e.id && W.find(t, e.id) ? (l.push(e), !1) : !0), t.forEach((e) => {
2781
- let t = e.id ? W.find(l, e.id) : void 0;
2782
- if (t) {
2783
- if (W.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), W.samePos(t, e) && this.engine.nodes.length > 1 && (this.moveNode(t, {
2784
- ...e,
2785
- forceCollide: !0
2786
- }), W.copyPos(e, t)), this.update(t.el, e), e.subGridOpts?.children) {
2787
- let n = t.el.querySelector(".grid-stack");
2788
- n && n.gridstack && n.gridstack.load(e.subGridOpts.children);
2789
- }
2790
- } else n && this.addWidget(e);
2791
- }), 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;
2792
- }
2793
- batchUpdate(e = !0) {
2794
- return this.engine.batchUpdate(e), e || (this._updateContainerHeight(), this._triggerRemoveEvent(), this._triggerAddEvent(), this._triggerChangeEvent()), this;
2795
- }
2796
- getCellHeight(e = !1) {
2797
- if (this.opts.cellHeight && this.opts.cellHeight !== "auto" && (!e || !this.opts.cellHeightUnit || this.opts.cellHeightUnit === "px")) return this.opts.cellHeight;
2798
- if (this.opts.cellHeightUnit === "rem") return this.opts.cellHeight * parseFloat(getComputedStyle(document.documentElement).fontSize);
2799
- if (this.opts.cellHeightUnit === "em") return this.opts.cellHeight * parseFloat(getComputedStyle(this.el).fontSize);
2800
- if (this.opts.cellHeightUnit === "cm") return this.opts.cellHeight * (96 / 2.54);
2801
- if (this.opts.cellHeightUnit === "mm") return this.opts.cellHeight * (96 / 2.54) / 10;
2802
- let t = this.el.querySelector("." + this.opts.itemClass);
2803
- if (t) {
2804
- let e = W.toNumber(t.getAttribute("gs-h")) || 1;
2805
- return Math.round(t.offsetHeight / e);
2806
- }
2807
- let n = parseInt(this.el.getAttribute("gs-current-row") || "0");
2808
- return n ? Math.round(this.el.getBoundingClientRect().height / n) : this.opts.cellHeight;
2809
- }
2810
- cellHeight(e) {
2811
- 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) {
2812
- let t = this.getRow() || this.opts.row || this.opts.maxRow || 1, n = this.el.clientHeight;
2813
- n > 0 && (e = Math.max(1, n / t));
2814
- }
2815
- if (e === void 0) {
2816
- let t = -this.opts.marginRight - this.opts.marginLeft + this.opts.marginTop + this.opts.marginBottom;
2817
- e = this.cellWidth() + t;
2818
- }
2819
- let t = W.parseHeight(e);
2820
- 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);
2821
- }
2822
- cellWidth() {
2823
- return this._widthOrContainer() / this.getColumn();
2824
- }
2825
- _widthOrContainer(e = !1) {
2826
- return e && this.opts.columnOpts?.breakpointForWindow ? window.innerWidth : this.el.clientWidth || this.el.parentElement.clientWidth || window.innerWidth;
2827
- }
2828
- checkDynamicColumn() {
2829
- let e = this.opts.columnOpts;
2830
- if (!e || !e.columnWidth && !e.breakpoints?.length) return !1;
2831
- let t = this.getColumn(), n = t, r = this._widthOrContainer(!0);
2832
- if (e.columnWidth) n = Math.min(Math.round(r / e.columnWidth) || 1, e.columnMax);
2833
- else {
2834
- n = e.columnMax;
2835
- let i = 0;
2836
- for (; i < e.breakpoints.length && r <= e.breakpoints[i].w;) n = e.breakpoints[i++].c || t;
2837
- }
2838
- if (n !== t) {
2839
- let t = e.breakpoints?.find((e) => e.c === n);
2840
- return this.column(n, t?.layout || e.layout), !0;
2841
- }
2842
- return !1;
2843
- }
2844
- compact(e = "compact", t = !0) {
2845
- return this.engine.compact(e, t), this._triggerChangeEvent(), this;
2846
- }
2847
- column(e, t) {
2848
- if (!e || e < 1 || this.opts.column === e) return this;
2849
- t ??= this.opts.mode === "list" || this.opts.mode === "compact" ? this.opts.mode : "moveScale";
2850
- let n = this.getColumn();
2851
- 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);
2852
- }
2853
- getColumn() {
2854
- return this.opts.column;
2855
- }
2856
- getGridItems() {
2857
- return Array.from(this.el.children).filter((e) => e.matches("." + this.opts.itemClass) && !e.matches("." + this.opts.placeholderClass));
2858
- }
2859
- isIgnoreChangeCB() {
2860
- return !!this._ignoreLayoutsNodeChange;
2861
- }
2862
- destroy(e = !0) {
2863
- 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;
2864
- }
2865
- mode(e) {
2866
- return this.opts.mode !== e && (this.opts.mode = this.engine.mode = e, this._triggerChangeEvent()), this;
2867
- }
2868
- getMode() {
2869
- return this.engine.mode;
2870
- }
2871
- getCellFromPixel(e, t = !1) {
2872
- let n = this.el.getBoundingClientRect(), r;
2873
- r = t ? {
2874
- top: n.top + document.documentElement.scrollTop,
2875
- left: n.left
2876
- } : {
2877
- top: this.el.offsetTop,
2878
- left: this.el.offsetLeft
2879
- };
2880
- 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");
2881
- return {
2882
- x: Math.floor(i / o),
2883
- y: Math.floor(a / s)
2884
- };
2885
- }
2886
- getRow() {
2887
- return Math.max(this.engine?.getRow() || 0, this.opts.minRow || 0);
2888
- }
2889
- isAreaEmpty(e, t, n, r) {
2890
- return this.engine.isAreaEmpty(e, t, n, r);
2891
- }
2892
- makeWidget(t, n) {
2893
- let r = e.getElement(t);
2894
- if (!r || r.gridstackNode) return r;
2895
- r.parentElement || this.el.appendChild(r), this._prepareElement(r, !0, n);
2896
- let i = r.gridstackNode;
2897
- this._updateContainerHeight(), i.subGridOpts && this.makeSubGrid(r, i.subGridOpts, void 0, !1);
2898
- let a = !1;
2899
- return this.opts.column === 1 && !this._ignoreLayoutsNodeChange && (a = this._ignoreLayoutsNodeChange = !0), this._triggerAddEvent(), this._triggerChangeEvent(), a && delete this._ignoreLayoutsNodeChange, r;
2900
- }
2901
- on(e, t) {
2902
- 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) => {
2903
- e.detail && t(e, e.detail);
2904
- }), 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);
2905
- }
2906
- off(e) {
2907
- 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);
2908
- }
2909
- offAll() {
2910
- return Object.keys(this._gsEventHandler).forEach((e) => this.off(e)), this;
2911
- }
2912
- removeWidget(t, n = !0, r = !0) {
2913
- return t ? (e.getElements(t).forEach((t) => {
2914
- if (t.parentElement && t.parentElement !== this.el) return;
2915
- let i = t.gridstackNode;
2916
- 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());
2917
- }), r && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
2918
- }
2919
- removeAll(t = !0, n = !0) {
2920
- return this.engine.nodes.forEach((n) => {
2921
- t && e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), delete n.el.gridstackNode, this.opts.staticGrid || this._removeDD(n.el);
2922
- }), this.engine.removeAll(t, n), n && this._triggerRemoveEvent(), this;
2923
- }
2924
- setAnimation(e = this.opts.animate, t) {
2925
- return t ? setTimeout(() => {
2926
- this.opts && this.setAnimation(e);
2927
- }) : e ? this.el.classList.add("grid-stack-animate") : this.el.classList.remove("grid-stack-animate"), this.opts.animate = e, this;
2928
- }
2929
- hasAnimationCSS() {
2930
- return this.el.classList.contains("grid-stack-animate");
2931
- }
2932
- setStatic(e, t = !0, n = !0) {
2933
- return !!this.opts.staticGrid === e ? this : (e ? this.opts.staticGrid = !0 : delete this.opts.staticGrid, this._setupRemoveDrop(), this._setupAcceptWidget(), this.engine.nodes.forEach((r) => {
2934
- this.prepareDragDrop(r.el), r.subGrid && n && r.subGrid.setStatic(e, t, n);
2935
- }), t && this._setStaticClass(), this);
2936
- }
2937
- updateOptions(t) {
2938
- let n = this.opts;
2939
- if (t === n) return this;
2940
- 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) {
2941
- let e = !!this.opts.columnOpts;
2942
- this.opts.columnOpts = t.columnOpts, e !== !!this.opts.columnOpts && this._updateResizeEvent(), this.checkDynamicColumn();
2943
- } else t.columnOpts === null && this.opts.columnOpts ? (delete this.opts.columnOpts, this._updateResizeEvent()) : typeof t.column == "number" && this.column(t.column);
2944
- 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;
2945
- }
2946
- update(t, n) {
2947
- return e.getElements(t).forEach((t) => {
2948
- let r = t?.gridstackNode;
2949
- if (!r) return;
2950
- let i = {
2951
- ...W.copyPos({}, r),
2952
- ...W.cloneDeep(n)
2953
- };
2954
- this.engine.nodeBoundFix(i), delete i.autoPosition;
2955
- let a = [
2956
- "x",
2957
- "y",
2958
- "w",
2959
- "h"
2960
- ], o, s = i, c = r;
2961
- if (a.some((e) => s[e] !== void 0 && s[e] !== c[e])) {
2962
- o = {};
2963
- let e = o;
2964
- a.forEach((t) => {
2965
- e[t] = s[t] === void 0 ? c[t] : s[t], delete s[t];
2966
- });
2967
- }
2968
- if (!o && (i.minW || i.minH || i.maxW || i.maxH) && (o = {}), i.content !== void 0) {
2969
- let n = t.querySelector(".grid-stack-item-content");
2970
- 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;
2971
- }
2972
- let l = !1, u = !1;
2973
- 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"));
2974
- if (W.sanitizeMinMax(r), o) {
2975
- let e = o.w !== void 0 && o.w !== r.w;
2976
- 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;
2977
- }
2978
- (o || l) && this._writeAttr(t, r), u && this.prepareDragDrop(r.el), e.updateCB && e.updateCB(r);
2979
- }), this;
2980
- }
2981
- moveNode(e, t) {
2982
- let n = e._updating;
2983
- n || this.engine.cleanNodes().beginUpdate(e), this.engine.moveNodeCheck(e, t), this._updateContainerHeight(), n || (this._triggerChangeEvent(), this.engine.endUpdate());
2984
- }
2985
- resizeToContent(t) {
2986
- if (!t || (t.classList.remove("size-to-content-max"), !t.clientHeight)) return;
2987
- let n = t.gridstackNode;
2988
- if (!n) return;
2989
- let r = n.grid;
2990
- if (!r || t.parentElement !== r.el) return;
2991
- let i = r.getCellHeight(!0);
2992
- if (!i) return;
2993
- let a = n.h ? n.h * i : t.clientHeight, o = null;
2994
- if (n.resizeToContentParent && (o = t.querySelector(n.resizeToContentParent)), o ||= t.querySelector(e.resizeToContentParent), !o) return;
2995
- let s = t.clientHeight - o.clientHeight, c = n.h ? n.h * i - s : o.clientHeight, l;
2996
- if (n.subGrid) {
2997
- l = n.subGrid.getRow() * n.subGrid.getCellHeight(!0);
2998
- let e = n.subGrid.el.getBoundingClientRect(), r = t.getBoundingClientRect();
2999
- l += e.top - r.top;
3000
- } else if (n.subGridOpts?.children?.length) return;
3001
- else {
3002
- let t = o.firstElementChild;
3003
- if (!t) {
3004
- console.error(`Error: GridStack.resizeToContent() widget id:${n.id} '${e.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
3005
- return;
3006
- }
3007
- l = t.getBoundingClientRect().height || c;
3008
- }
3009
- if (c === l) return;
3010
- a += l - c;
3011
- let u = Math.ceil(a / i), d = Number.isInteger(n.sizeToContent) ? n.sizeToContent : 0;
3012
- 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);
3013
- }
3014
- resizeToContentCBCheck(t) {
3015
- e.resizeToContentCB ? e.resizeToContentCB(t) : this.resizeToContent(t);
3016
- }
3017
- rotate(t, n) {
3018
- return e.getElements(t).forEach((e) => {
3019
- let t = e.gridstackNode;
3020
- if (!t || !W.canBeRotated(t)) return;
3021
- let r = {
3022
- w: t.h,
3023
- h: t.w,
3024
- minH: t.minW,
3025
- minW: t.minH,
3026
- maxH: t.maxW,
3027
- maxW: t.maxH
3028
- };
3029
- if (n) {
3030
- let e = n.left > 0 ? Math.floor(n.left / this.cellWidth()) : 0, i = n.top > 0 ? Math.floor(n.top / this.opts.cellHeight) : 0;
3031
- r.x = t.x + e - (t.h - (i + 1)), r.y = t.y + i - e;
3032
- }
3033
- let i = r;
3034
- Object.keys(i).forEach((e) => {
3035
- i[e] === void 0 && delete i[e];
3036
- });
3037
- let a = t._orig;
3038
- this.update(e, r), t._orig = a;
3039
- }), this;
3040
- }
3041
- margin(e) {
3042
- if (!(typeof e == "string" && e.split(" ").length > 1)) {
3043
- let t = W.parseHeight(e);
3044
- if (this.opts.marginUnit === t.unit && this.opts.margin === t.h) return this;
3045
- }
3046
- return this.opts.margin = e, this.opts.marginTop = this.opts.marginBottom = this.opts.marginLeft = this.opts.marginRight = void 0, this._initMargin(), this;
3047
- }
3048
- getMargin() {
3049
- return this.opts.margin;
3050
- }
3051
- willItFit(e) {
3052
- return this.engine.willItFit(e);
3053
- }
3054
- _triggerChangeEvent() {
3055
- if (this.engine.batchMode) return this;
3056
- let e = this.engine.getDirtyNodes(!0);
3057
- return e && e.length && (this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(e), this._triggerEvent("change", e)), this.engine.saveInitial(), this._sortDom(), this._isFillCellHeight && this.cellHeight(), this;
3058
- }
3059
- _sortDom() {
3060
- let e = this.engine.nodes;
3061
- if (e.forEach((e) => {
3062
- e.subGrid && e.subGrid._sortDom();
3063
- }), e.length < 2) return this;
3064
- this.engine.sortNodes(), e = this.engine.nodes;
3065
- let t = this.el.children;
3066
- if (e.some((e, n) => e.el !== t[n])) {
3067
- let t = this.el.moveBefore?.bind(this.el);
3068
- e.forEach((e) => {
3069
- e.el && e.el.parentElement === this.el && (t ? t(e.el, null) : this.el.appendChild(e.el));
3070
- });
3071
- }
3072
- return this;
3073
- }
3074
- _triggerAddEvent() {
3075
- if (this.engine.batchMode) return this;
3076
- if (this.engine.addedNodes?.length) {
3077
- this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(this.engine.addedNodes), this.engine.addedNodes.forEach((e) => {
3078
- delete e._dirty;
3079
- });
3080
- let e = [...this.engine.addedNodes];
3081
- this.engine.addedNodes = [], this._triggerEvent("added", e);
3082
- }
3083
- return this;
3084
- }
3085
- _triggerRemoveEvent() {
3086
- if (this.engine.batchMode) return this;
3087
- if (this.engine.removedNodes?.length) {
3088
- let e = [...this.engine.removedNodes];
3089
- this.engine.removedNodes = [], this._triggerEvent("removed", e);
3090
- }
3091
- return this;
3092
- }
3093
- _triggerEvent(e, t) {
3094
- let n = t ? new CustomEvent(e, {
3095
- bubbles: !1,
3096
- detail: t
3097
- }) : new Event(e), r = this;
3098
- for (; r.parentGridNode;) r = r.parentGridNode.grid;
3099
- return r.el.dispatchEvent(n), this;
3100
- }
3101
- _updateContainerHeight() {
3102
- if (!this.engine || this.engine.batchMode) return this;
3103
- let e = this.parentGridNode, t = this.getRow() + this._extraDragRow, n = this.opts.cellHeight, r = this.opts.cellHeightUnit;
3104
- if (!n) return this;
3105
- if (!e && !this.opts.minRow) {
3106
- let e = W.parseHeight(getComputedStyle(this.el).minHeight);
3107
- if (e.h > 0 && e.unit === r) {
3108
- let r = Math.floor(e.h / n);
3109
- t < r && (t = r);
3110
- }
3111
- }
3112
- 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 && W.shouldSizeToContent(e) && e.grid.resizeToContentCBCheck(e.el), this;
3113
- }
3114
- _prepareElement(e, t = !1, n) {
3115
- 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(G.itemClass, this.opts.itemClass);
3116
- let r = W.shouldSizeToContent(n);
3117
- return r ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), r && this.resizeToContentCheck(!1, n), (!W.lazyLoad(n) || !n.visibleObservable) && this.prepareDragDrop(n.el), this;
3118
- }
3119
- _writePosAttr(e, t) {
3120
- if (!t._moving && !t._resizing || this._placeholder === e) {
3121
- let n = this.opts.rtl ? "right" : "left", r = e.style;
3122
- 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;
3123
- }
3124
- 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;
3125
- }
3126
- _writeAttr(e, t) {
3127
- if (!t) return this;
3128
- this._writePosAttr(e, t);
3129
- let n = {
3130
- noResize: "gs-no-resize",
3131
- noMove: "gs-no-move",
3132
- locked: "gs-locked",
3133
- id: "gs-id",
3134
- sizeToContent: "gs-size-to-content"
3135
- }, r = t, i = n;
3136
- 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]);
3137
- let a = t.print;
3138
- 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;
3139
- }
3140
- _readAttr(e, t = !0) {
3141
- let n = {};
3142
- n.x = W.toNumber(e.getAttribute("gs-x")), n.y = W.toNumber(e.getAttribute("gs-y")), n.w = W.toNumber(e.getAttribute("gs-w")), n.h = W.toNumber(e.getAttribute("gs-h")), n.autoPosition = W.toBool(e.getAttribute("gs-auto-position")), n.noResize = W.toBool(e.getAttribute("gs-no-resize")), n.noMove = W.toBool(e.getAttribute("gs-no-move")), n.locked = W.toBool(e.getAttribute("gs-locked"));
3143
- 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");
3144
- (r || i || a || o) && (n.print = {}, r && (n.print.pageBreak = W.toBool(r)), i && (n.print.hide = !0), a && (n.print.orientation = a), o && (n.print.breakInside = W.toBool(o)));
3145
- let s = e.getAttribute("gs-size-to-content");
3146
- s && (s === "true" || s === "false" ? n.sizeToContent = W.toBool(s) : n.sizeToContent = parseInt(s, 10)), n.id = e.getAttribute("gs-id") ?? void 0, n.maxW = W.toNumber(e.getAttribute("gs-max-w")), n.minW = W.toNumber(e.getAttribute("gs-min-w")), n.maxH = W.toNumber(e.getAttribute("gs-max-h")), n.minH = W.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"));
3147
- let c = n;
3148
- for (let e in c) n.hasOwnProperty(e) && !c[e] && c[e] !== 0 && e !== "sizeToContent" && delete c[e];
3149
- return n;
3150
- }
3151
- _setStaticClass() {
3152
- let e = ["grid-stack-static"];
3153
- 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;
3154
- }
3155
- onResize(e = this.el?.clientWidth, t = this.el?.clientHeight) {
3156
- if (!e || e === this.prevWidth && t === this.prevHeight || e === this.prevWidth && !this._isFillCellHeight) return this;
3157
- this.prevWidth = e, this.prevHeight = t, this.batchUpdate();
3158
- let n = !1;
3159
- 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) => {
3160
- e.subGrid && e.subGrid.onResize();
3161
- }), this._skipInitialResize || this.resizeToContentCheck(n), delete this._skipInitialResize, this.batchUpdate(!1), this;
3162
- }
3163
- resizeToContentCheck(e = !1, t) {
3164
- if (!this.engine) return;
3165
- if (e && this.hasAnimationCSS()) {
3166
- setTimeout(() => this.resizeToContentCheck(!1, t), this.animationDelay);
3167
- return;
3168
- }
3169
- if (t) W.shouldSizeToContent(t) && this.resizeToContentCBCheck(t.el);
3170
- else if (this.engine.nodes.some((e) => W.shouldSizeToContent(e))) {
3171
- let e = [...this.engine.nodes];
3172
- this.batchUpdate(), e.forEach((e) => {
3173
- W.shouldSizeToContent(e) && this.resizeToContentCBCheck(e.el);
3174
- }), this._ignoreLayoutsNodeChange = !0, this.batchUpdate(!1), this._ignoreLayoutsNodeChange = !1;
3175
- }
3176
- let n = this._gsEventHandler.resizecontent;
3177
- n && n(new Event("resizecontent"), t ? [t] : this.engine.nodes);
3178
- }
3179
- _updateResizeEvent(e = !1) {
3180
- let t = !this.parentGridNode && (this._isAutoCellHeight || this._isFillCellHeight || this.opts.sizeToContent || this.opts.columnOpts || this.engine.nodes.find((e) => e.sizeToContent));
3181
- return !e && t && !this.resizeObserver ? (this._sizeThrottle = W.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;
3182
- }
3183
- static getElement(e = ".grid-stack-item") {
3184
- return W.getElement(e);
3185
- }
3186
- static getElements(e = ".grid-stack-item") {
3187
- return W.getElements(e);
3188
- }
3189
- static getGridElement(t) {
3190
- return e.getElement(t);
3191
- }
3192
- static getGridElements(e) {
3193
- return W.getElements(e);
3194
- }
3195
- _initMargin() {
3196
- let e = {
3197
- h: 0,
3198
- unit: "px"
3199
- }, t = 0, n = [];
3200
- 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 = W.parseHeight(this.opts.margin), this.opts.marginUnit = e.unit, t = this.opts.margin = e.h);
3201
- let r = [
3202
- "marginTop",
3203
- "marginRight",
3204
- "marginBottom",
3205
- "marginLeft"
3206
- ], i = this.opts;
3207
- r.forEach((n) => {
3208
- i[n] === void 0 ? i[n] = t : (e = W.parseHeight(i[n]), i[n] = e.h, delete this.opts.margin);
3209
- }), 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);
3210
- let a = this.el.style;
3211
- 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;
3212
- }
3213
- static getDD() {
3214
- return Z;
3215
- }
3216
- static setupDragIn(e, t, n, r = document) {
3217
- t?.pause !== void 0 && (K.pauseDrag = t.pause), t = {
3218
- appendTo: "body",
3219
- helper: "clone",
3220
- ...t || {}
3221
- };
3222
- let i = t.start, a = t.drag, o = t.stop, s = (e, t, n) => e.dispatchEvent(new CustomEvent(t, {
3223
- bubbles: !0,
3224
- detail: {
3225
- el: e,
3226
- ui: n
3227
- }
3228
- }));
3229
- (typeof e == "string" ? W.getElements(e, r) : e).forEach((e, r) => {
3230
- Z.isDraggable(e) || Z.dragIn(e, {
3231
- ...t,
3232
- start: (t, n) => {
3233
- i?.(t, n), s(e, "dragstart", n);
3234
- },
3235
- drag: (t, n) => {
3236
- a?.(t, n), s(e, "drag", n);
3237
- },
3238
- stop: (t) => {
3239
- o?.(t), s(e, "dragstop");
3240
- }
3241
- }), n?.[r] && (e.gridstackNode = n[r]);
3242
- });
3243
- }
3244
- movable(t, n) {
3245
- return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3246
- let t = e.gridstackNode;
3247
- t && (n ? delete t.noMove : t.noMove = !0, this.prepareDragDrop(t.el));
3248
- }), this;
3249
- }
3250
- resizable(t, n) {
3251
- return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3252
- let t = e.gridstackNode;
3253
- t && (n ? delete t.noResize : t.noResize = !0, this.prepareDragDrop(t.el));
3254
- }), this;
3255
- }
3256
- disable(e = !0) {
3257
- return this.opts.staticGrid ? this : (this.enableMove(!1, e), this.enableResize(!1, e), this._triggerEvent("disable"), this);
3258
- }
3259
- enable(e = !0) {
3260
- return this.opts.staticGrid ? this : (this.enableMove(!0, e), this.enableResize(!0, e), this._triggerEvent("enable"), this);
3261
- }
3262
- enableMove(e, t = !0) {
3263
- return this.opts.staticGrid ? this : (e ? delete this.opts.disableDrag : this.opts.disableDrag = !0, this.engine.nodes.forEach((n) => {
3264
- this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableMove(e, t);
3265
- }), this);
3266
- }
3267
- enableResize(e, t = !0) {
3268
- return this.opts.staticGrid ? this : (e ? delete this.opts.disableResize : this.opts.disableResize = !0, this.engine.nodes.forEach((n) => {
3269
- this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableResize(e, t);
3270
- }), this);
3271
- }
3272
- cancelDrag() {
3273
- let t = K.dragElement?.el;
3274
- if (t?._gridstackNodeOrig) {
3275
- let e = t._gridstackNodeOrig, n = e.grid, r = this._placeholder?.gridstackNode;
3276
- r && (r._isAboutToRemove = !0, this.engine.removeNode(r)), this.engine.restoreInitial(), t.gridstackNode = e, delete t._gridstackNodeOrig, delete K.dropElement, n && (n.engine.addNode(e, !1), n.engine.restoreInitial());
3277
- return;
3278
- }
3279
- let n = this._placeholder?.gridstackNode;
3280
- n && (n._isExternal ? (n._isAboutToRemove = !0, this.engine.removeNode(n)) : n._isAboutToRemove && e._itemRemoving(n.el, !1), this.engine.restoreInitial());
3281
- }
3282
- _removeDD(e) {
3283
- return Z.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
3284
- }
3285
- _setupAcceptWidget() {
3286
- if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable) return Z.droppable(this.el, "destroy"), this;
3287
- let t, n, r = (e, r, i) => {
3288
- i ||= r;
3289
- let a = i.gridstackNode;
3290
- if (!a) return;
3291
- if (!a.grid?.el) {
3292
- i.style.transform = `scale(${1 / this.dragTransform.xScale},${1 / this.dragTransform.yScale})`;
3293
- let t = i.getBoundingClientRect();
3294
- 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";
3295
- }
3296
- let { top: o, left: s } = i.getBoundingClientRect(), c = this.el.getBoundingClientRect();
3297
- s -= c.left, o -= c.top;
3298
- let l = { position: {
3299
- top: o * this.dragTransform.xScale,
3300
- left: s * this.dragTransform.yScale
3301
- } };
3302
- if (a._temporaryRemoved) {
3303
- 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)) {
3304
- if (a.autoPosition = !0, !this.engine.willItFit(a)) {
3305
- Z.off(r, "drag");
3306
- return;
3307
- }
3308
- a._willFitPos && (W.copyPos(a, a._willFitPos), delete a._willFitPos);
3309
- }
3310
- this._onStartMoving(i, e, l, a, n, t);
3311
- } else this._dragOrResize(i, e, l, a, n, t);
3312
- };
3313
- return Z.droppable(this.el, { accept: (e) => {
3314
- let t = e.gridstackNode || this._readAttr(e, !1);
3315
- if (t?.grid === this) return !0;
3316
- if (!this.opts.acceptWidgets) return !1;
3317
- let n = !0;
3318
- if (typeof this.opts.acceptWidgets == "function") n = this.opts.acceptWidgets(e);
3319
- else {
3320
- let t = this.opts.acceptWidgets === !0 ? ".grid-stack-item" : this.opts.acceptWidgets;
3321
- n = e.matches(t);
3322
- }
3323
- if (n && t && this.opts.maxRow) {
3324
- let e = {
3325
- w: t.w,
3326
- h: t.h,
3327
- minW: t.minW,
3328
- minH: t.minH
3329
- };
3330
- n = this.engine.willItFit(e);
3331
- }
3332
- return n;
3333
- } }).on(this.el, "dropover", (i, a, o) => {
3334
- let s = o?.gridstackNode || a.gridstackNode;
3335
- if (s?.grid === this && !s._temporaryRemoved) return !1;
3336
- 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) {
3337
- let e = o.getAttribute("data-gs-widget") || o.getAttribute("gridstacknode");
3338
- if (e) {
3339
- try {
3340
- s = JSON.parse(e);
3341
- } catch {
3342
- console.error("Gridstack dropover: Bad JSON format: ", e);
3343
- }
3344
- o.removeAttribute("data-gs-widget"), o.removeAttribute("gridstacknode");
3345
- }
3346
- s ||= this._readAttr(o), s._sidebarOrig = {
3347
- w: s.w,
3348
- h: s.h
3349
- };
3350
- }
3351
- s.grid || (s.el || (s = { ...s }), s._isExternal = !0, o.gridstackNode = s);
3352
- let c = s.w || Math.round(o.offsetWidth / n) || 1, l = s.h || Math.round(o.offsetHeight / t) || 1;
3353
- return s.grid && s.grid !== this ? (a._gridstackNodeOrig ||= s, a.gridstackNode = s = {
3354
- ...s,
3355
- w: c,
3356
- h: l,
3357
- grid: this
3358
- }, 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;
3359
- }).on(this.el, "dropout", (e, t, n) => {
3360
- let r = n?.gridstackNode || t.gridstackNode;
3361
- return r && (!r.grid || r.grid === this) && (this._leave(t, n), this._isTemp && this.removeAsSubGrid(r)), !1;
3362
- }).on(this.el, "drop", (t, n, r) => {
3363
- let i = r?.gridstackNode || n.gridstackNode;
3364
- if (i?.grid === this && !i._isExternal) return !1;
3365
- let a = !!this.placeholder.parentElement, o = n !== r;
3366
- this.placeholder.remove(), delete this.placeholder.gridstackNode, a && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
3367
- let s = n._gridstackNodeOrig;
3368
- if (delete n._gridstackNodeOrig, a && s?.grid && s.grid !== this) {
3369
- let e = s.grid;
3370
- e.engine.removeNodeFromLayoutCache(s), e.engine.removedNodes.push(s), e._triggerRemoveEvent()._triggerChangeEvent(), e.parentGridNode && !e.engine.nodes.length && e.opts.subGridDynamic && e.removeAsSubGrid();
3371
- }
3372
- 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;
3373
- let c = i.subGrid?.el?.gridstack;
3374
- return W.copyPos(i, this._readAttr(this.placeholder)), W.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({
3375
- ...t,
3376
- type: "dropped"
3377
- }, s && s.grid ? s : void 0, i), !1;
3378
- }), this;
3379
- }
3380
- static _itemRemoving(e, t) {
3381
- if (!e) return;
3382
- let n = e ? e.gridstackNode : void 0;
3383
- !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"));
3384
- }
3385
- _setupRemoveDrop() {
3386
- if (typeof this.opts.removable != "string") return this;
3387
- let t = document.querySelector(this.opts.removable);
3388
- 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;
3389
- }
3390
- refreshDragHandles(t) {
3391
- return e.getElements(t).forEach((e) => {
3392
- e.ddElement?.ddDraggable?.refreshHandles();
3393
- }), this;
3394
- }
3395
- prepareDragDrop(e, t = !1) {
3396
- let n = e?.gridstackNode;
3397
- if (!n) return this;
3398
- let r = n.noMove || this.opts.disableDrag, i = n.noResize || this.opts.disableResize, a = this.opts.staticGrid || r && i;
3399
- if ((t || a) && (n._initDD && (this._removeDD(e), delete n._initDD), a)) return e.classList.add("ui-draggable-disabled", "ui-resizable-disabled"), this;
3400
- if (!n._initDD) {
3401
- let t, r, i = (i, a) => {
3402
- this.triggerEvent(i, i.target), t = this.cellWidth(), r = this.getCellHeight(!0), this._onStartMoving(e, i, a, n, t, r);
3403
- }, a = (i, a) => {
3404
- this._dragOrResize(e, i, a, n, t, r);
3405
- }, o = (t) => {
3406
- this.placeholder.remove(), delete this.placeholder.gridstackNode, delete n._moving, delete n._resizing, delete n._event, delete n._lastTried;
3407
- let r = !!n._orig && n.w !== n._orig.w, i = t.target;
3408
- if (!(!i.gridstackNode || i.gridstackNode.grid !== this)) {
3409
- if (n.el = i, n._isAboutToRemove) {
3410
- let r = e.gridstackNode.grid;
3411
- r._gsEventHandler[t.type] && r._gsEventHandler[t.type](t, i), r.engine.nodes.push(n), r.removeWidget(e, !0, !0);
3412
- } else W.removePositioningStyles(i), n._temporaryRemoved ? (this._writePosAttr(i, n), this.engine.addNode(n)) : this._writePosAttr(i, n), this.triggerEvent(t, i);
3413
- 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));
3414
- }
3415
- };
3416
- Z.draggable(e, {
3417
- start: i,
3418
- stop: o,
3419
- drag: a,
3420
- rtl: this.opts.rtl === "auto" ? void 0 : this.opts.rtl
3421
- }).resizable(e, {
3422
- start: i,
3423
- stop: o,
3424
- resize: a,
3425
- rtl: this.opts.rtl === "auto" ? void 0 : this.opts.rtl
3426
- }), n._initDD = !0;
3427
- }
3428
- return Z.draggable(e, r ? "disable" : "enable").resizable(e, i ? "disable" : "enable"), this;
3429
- }
3430
- _onStartMoving(e, t, n, r, i, a) {
3431
- 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 = W.getValuesFromTransformedElement(e);
3432
- else if (this.placeholder && this.placeholder.closest(".grid-stack")) {
3433
- let e = this.placeholder.closest(".grid-stack");
3434
- this.dragTransform = W.getValuesFromTransformedElement(e);
3435
- } else this.dragTransform = {
3436
- xScale: 1,
3437
- xOffset: 0,
3438
- yScale: 1,
3439
- yOffset: 0
3440
- };
3441
- 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") {
3442
- let t = this.getColumn() - r.x, n = (this.opts.maxRow || 2 ** 53 - 1) - r.y;
3443
- 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));
3444
- }
3445
- }
3446
- _dragOrResize(e, t, n, r, i, a) {
3447
- 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);
3448
- if (c = Math.min(c, p), l = Math.min(l, p), u = Math.min(u, f), d = Math.min(d, f), t.type === "drag") {
3449
- if (r._temporaryRemoved) return;
3450
- r._prevYPix = n.position.top, this.opts.draggable.scroll !== !1 && K.dragElement?.updateScrollPosition(this.el);
3451
- 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);
3452
- o.x = Math.round(e / i), o.y = Math.round(t / a);
3453
- let s = this._extraDragRow;
3454
- if (this.engine.collide(r, o)) {
3455
- let e = this.getRow(), t = Math.max(0, o.y + r.h - e);
3456
- this.opts.maxRow && e + t > this.opts.maxRow && (t = Math.max(0, this.opts.maxRow - e)), this._extraDragRow = t;
3457
- } else this._extraDragRow = 0;
3458
- if (this._extraDragRow !== s && this._updateContainerHeight(), r.x === o.x && r.y === o.y) return;
3459
- } else if (t.type === "resize") {
3460
- if ((o.x ?? 0) < 0 || (W.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;
3461
- if (t.hasMovedX) {
3462
- let e = r.x - (o.w - r.w);
3463
- o.x = e < 0 ? 0 : e;
3464
- }
3465
- if (t.hasMovedY) {
3466
- let e = r.y - (o.h - r.h);
3467
- o.y = e < 0 ? 0 : e;
3468
- }
3469
- s = !0;
3470
- }
3471
- r._event = t, r._lastTried = o;
3472
- let m = {
3473
- x: n.position.left + c,
3474
- y: n.position.top + u,
3475
- w: (n.size ? n.size.width : r.w * i) - c - l,
3476
- h: (n.size ? n.size.height : r.h * a) - u - d
3477
- };
3478
- if (this.engine.moveNodeCheck(r, {
3479
- ...o,
3480
- cellWidth: i,
3481
- cellHeight: a,
3482
- rect: m,
3483
- resizing: s
3484
- })) {
3485
- 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();
3486
- let e = t.target;
3487
- r._sidebarOrig || this._writePosAttr(e, r), this.triggerEvent(t, e);
3488
- }
3489
- }
3490
- triggerEvent(e, t) {
3491
- let n = this;
3492
- for (; n.parentGridNode;) n = n.parentGridNode.grid;
3493
- n._gsEventHandler[e.type] && n._gsEventHandler[e.type](e, t);
3494
- }
3495
- _leave(t, n) {
3496
- n ||= t;
3497
- let r = n.gridstackNode;
3498
- if (!r || (n.style.transform = n.style.transformOrigin = "", Z.off(t, "drag"), r._temporaryRemoved)) return;
3499
- r._temporaryRemoved = !0, this.engine.removeNode(r), r.el = r._isExternal && n ? n : t;
3500
- let i = r._sidebarOrig;
3501
- 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();
3502
- }
3503
- };
3504
- Q.renderCB = (e, t) => {
3505
- e && t?.content && (e.textContent = t.content);
3506
- }, Q.resizeToContentParent = ".grid-stack-item-content", Q.Utils = W, Q.Engine = tn, Q.GDRev = "14.0.0";
3507
- //#endregion
3508
- //#region src/grid-core/helpers/grid-stack-lifecycle.ts
3509
- var Cn = ({ gridElement: e, gridItemElements: t, items: n, columns: r, rowHeight: i, viewMode: a, fullTheme: o, onCreateOrUpdateDimensionsHint: s, onRemoveDimensionsHint: c, onChange: l }) => {
3510
- let [u, d] = Kt(o), f = {
3511
- column: r,
3512
- cellHeight: i,
3513
- marginTop: u,
3514
- marginLeft: d,
3515
- marginRight: d,
3516
- marginBottom: u,
3517
- animate: !0,
3518
- auto: !1,
3519
- mode: "top",
3520
- removable: !1,
3521
- acceptWidgets: !0,
3522
- disableDrag: a,
3523
- disableResize: a,
3524
- minRow: 1,
3525
- resizable: { handles: [
3526
- "n",
3527
- "ne",
3528
- "e",
3529
- "se",
3530
- "s",
3531
- "sw",
3532
- "w",
3533
- "nw"
3534
- ].join(", ") },
3535
- handle: ".grid-item-drag-handle"
3536
- }, p = Q.init(f, e);
3537
- if (!p) throw Error("GridStack.init() returned no grid");
3538
- return p._sortDom = () => p, p.batchUpdate(), t.forEach((e) => {
3539
- let t = e.getAttribute("luzmo-item-grid-item-id"), r = ue(n.find((e) => e.id === t), t ?? void 0);
3540
- p.makeWidget(e, r);
3541
- }), p.batchUpdate(!1), p.on("resizestart", (e, t) => {
3542
- s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3543
- }), p.on("resize", (e, t) => {
3544
- s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3545
- }), p.on("resizestop", (e, t) => {
3546
- c(t);
3547
- }), p.on("change", (e, t) => {
3548
- l(t);
3549
- }), p;
3550
- }, wn = (e, t) => {
3551
- let n = new Map(t.filter((e) => e.id).map((e) => [e.id, e]));
3552
- return e.map((e) => {
3553
- let t = e.id ? n.get(e.id) : void 0;
3554
- return t ? {
3555
- ...e,
3556
- position: {
3557
- sizeX: t.w ?? 1,
3558
- sizeY: t.h ?? 1,
3559
- row: t.y ?? 0,
3560
- col: t.x ?? 0
3561
- }
3562
- } : e;
3563
- });
3564
- }, Tn = ({ element: e, numberOfColumns: t, numberOfRows: n, offsetHint: r }) => {
3565
- let i = e.querySelector(".dimensions-hint-popover");
3566
- if (i) {
3567
- i.style.display = t.length > 0 && n.length > 0 ? "block" : "none", i.textContent = `${t} × ${n}`;
3568
- return;
3569
- }
3570
- let a = document.createElement("div");
3571
- 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), Lt(a, Mt(e, a, async () => {
3572
- let { x: t, y: n } = await Ft(e, a, {
3573
- placement: "bottom",
3574
- middleware: [Nt(r), Pt()]
3575
- });
3576
- a.style.left = `${t}px`, a.style.top = `${n}px`;
3577
- })), a.matches(":popover-open") || a.showPopover();
3578
- }, En = (e) => {
3579
- let t = e.querySelector(".dimensions-hint-popover");
3580
- t && (Rt(t), t.matches(":popover-open") && t.hidePopover(), t.remove());
3581
- }, Dn = ({ initialized: e, grid: t, hasItemsChanged: n, gridItemElements: r, items: i }) => {
3582
- !e || !t || !n || (t.setAnimation(!1), t.batchUpdate(), t.removeAll(!1), i.forEach((e) => {
3583
- let n = fe(r, e.id);
3584
- n && t.makeWidget(n, ue(e, e.id));
3585
- }), t.batchUpdate(!1), t.setAnimation(!0));
3586
- }, On = ({ initialized: e, grid: t, hasViewModeChanged: n, viewMode: r, previousViewMode: i, activeItemElement: a, gridElement: o, cleanupActiveItem: s }) => {
3587
- if (!e || !t || !n || r === i) return a;
3588
- if (r) {
3589
- if (t.disable(), a) {
3590
- s(a), o.removeAttribute("has-active-item");
3591
- return;
3592
- }
3593
- return a;
3594
- }
3595
- return t.enable(), a;
3596
- }, kn = ":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 h {
3597
- constructor(...e) {
3598
- super(...e), 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._themeLoadVersion = 0, this.defaultRenderer = (e) => i`
3599
- <div class="grid-item-content">
3600
- <div class="grid-item-type">${e.type}</div>
3601
- </div>
3602
- `, 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) => {
3603
- if (this.viewMode) return;
3604
- let t = ee(e.target);
3605
- t && te({
3606
- event: e,
3607
- gridItem: t
3608
- }) && this._removeItemActionsMenuPopover(t);
3609
- }, this._handleKeyDown = (e) => {
3610
- let t = Ut({
3611
- event: e,
3612
- viewMode: this.viewMode,
3613
- focusedItemElement: this._focusedItemElement,
3614
- activeItemElement: this._activeItemElement,
3615
- gridElement: this._gridElement,
3616
- grid: this._grid,
3617
- columns: this.columns ?? 48,
3618
- onDeleteRequest: (e) => {
3619
- let t = e.getAttribute("gs-id");
3620
- if (!t) return;
3621
- let n = this._effectiveItems, r = n.find((e) => e.id === t);
3622
- if (!r) return;
3623
- this._isControlled || this._clearGridItemUiStateForDelete(e);
3624
- let i = n.filter((e) => e.id !== t);
3625
- v({
3626
- target: this,
3627
- action: "delete",
3628
- actionType: "button",
3629
- active: !1,
3630
- items: n,
3631
- element: e,
3632
- itemId: t,
3633
- item: r,
3634
- updatedItems: i
3635
- }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3636
- },
3637
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
3638
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3639
- });
3640
- this._focusedItemElement = t.focusedItemElement, this._activeItemElement = t.activeItemElement;
3641
- }, this._handleFocus = (e) => {
3642
- this._focusedItemElement = S({
3643
- event: e,
3644
- focusedItemElement: this._focusedItemElement,
3645
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3646
- });
3647
- }, this._handleBlur = (e) => {
3648
- let t = C({
3649
- event: e,
3650
- focusedItemElement: this._focusedItemElement,
3651
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3652
- });
3653
- this._focusedItemElement = t.focusedItemElement, t.shouldFocusGrid && this._gridElement.focus();
3654
- }, this._handleGridClick = (e) => {
3655
- if (this._isControlled) {
3656
- this._emitControlledClickAwayDeactivation(e);
3657
- return;
3658
- }
3659
- let t = ie({
3660
- event: e,
3661
- gridElement: this._gridElement,
3662
- hostElement: this,
3663
- items: this.items,
3664
- activeItemActionToggle: this._activeItemActionToggle,
3665
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
3666
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
3667
- });
3668
- this._activeItemActionToggle = t.activeItemActionToggle;
3669
- }, this.handleItemAction = (e) => {
3670
- let t = e.detail, r = e.target?.closest(".grid-stack-item"), i = r?.getAttribute("gs-id");
3671
- if (["delete", "clone"].includes(t.action)) {
3672
- if (e.stopPropagation(), !i) return;
3673
- let a = this._effectiveItems, o = a.find((e) => e.id === i);
3674
- if (!o) return;
3675
- let s = this._gridElement.querySelector(".grid-stack-item[active]") ?? this._activeItemElement;
3676
- if (!this._isControlled && s && s !== r) {
3677
- let e = s.getAttribute("gs-id"), t = a.find((t) => t.id === e), n = this._activeItemActionToggle, r = s;
3678
- this._cleanupActiveItem(s), n && e && t && this._dispatchItemActionEvent(n, "toggle", !1, r, e, t), this._activeItemElement = void 0, this._activeItemActionToggle = void 0, this._internalItemStates = {};
3679
- }
3680
- if (t.action === "delete") {
3681
- this._isControlled || this._clearGridItemUiStateForDelete(r);
3682
- let e = a.filter((e) => e.id !== i);
3683
- v({
3684
- target: this,
3685
- action: "delete",
3686
- actionType: t.type,
3687
- active: t.active,
3688
- items: a,
3689
- element: r,
3690
- itemId: i,
3691
- item: o,
3692
- updatedItems: e
3693
- }), this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 });
3694
- } else {
3695
- let e = {
3696
- ...structuredClone(o),
3697
- id: n()
3698
- }, i = this._simulateCloneLayout(e, o), s = i.find((t) => t.id === e.id) ?? e;
3699
- v({
3700
- target: this,
3701
- action: "clone",
3702
- actionType: t.type,
3703
- active: t.active,
3704
- items: a,
3705
- element: r,
3706
- itemId: e.id,
3707
- item: s,
3708
- originalElement: r,
3709
- updatedItems: i
3710
- }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3711
- }
3712
- return;
3713
- }
3714
- if (this._isControlled) {
3715
- if (e.stopPropagation(), !i) return;
3716
- let n = this.items.find((e) => e.id === i);
3717
- if (t.type === "toggle") {
3718
- let e = this._effectiveItemStates, n = t.active, r = this._computeNextItemStates(i, t.action, n);
3719
- y({
3720
- target: this,
3721
- itemStates: e,
3722
- updatedItemStates: r,
3723
- changedItemStates: { [i]: [t.action] }
3724
- });
3725
- } else v({
3726
- target: this,
3727
- action: t.action,
3728
- actionType: t.type,
3729
- active: t.active,
3730
- items: this.items,
3731
- element: r,
3732
- itemId: i,
3733
- item: n
3734
- });
3735
- r && !r.hasAttribute("active") && this._removeItemActionsMenuPopover(r);
3736
- return;
3737
- }
3738
- this._suppressItemStatesEvent = !0;
3739
- let a = re({
3740
- event: e,
3741
- gridElement: this._gridElement,
3742
- items: this.items,
3743
- state: {
3744
- activeItemElement: this._activeItemElement,
3745
- activeItemActionToggle: this._activeItemActionToggle
3746
- },
3747
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
3748
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
3749
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3750
- });
3751
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = a.activeItemElement, this._activeItemActionToggle = a.activeItemActionToggle, t.type === "toggle" && i) {
3752
- let e = this._effectiveItemStates, n = a.activeItemElement === r && a.activeItemActionToggle === t.action, o = this._computeNextItemStates(i, t.action, n);
3753
- this._internalItemStates = o, y({
3754
- target: this,
3755
- itemStates: e,
3756
- updatedItemStates: o,
3757
- changedItemStates: this._diffItemStates(e, o)
3758
- });
3759
- }
3760
- };
3761
- }
3762
- static get styles() {
3763
- return [o(g), o(kn)];
3764
- }
3765
- set items(e) {
3766
- let t = this._items, n = structuredClone(e ?? []);
3767
- this._validateItemsHaveIds(n, "items");
3768
- let r = this._hasControlledItems;
3769
- this._items = n, this._hasControlledItems = e !== void 0, r && !this._hasControlledItems && (this._setInternalItems(t, { reconcileStates: !0 }), this._initialItemsApplied = !0), this.requestUpdate("items", t);
3770
- }
3771
- get items() {
3772
- return this._effectiveItems;
3773
- }
3774
- set initialItems(e) {
3775
- let t = this._initialItems, n = structuredClone(e ?? []);
3776
- this._validateItemsHaveIds(n, "initialItems"), !(!this._isItemsControlled && this._initialItemsApplied) && (this._initialItems = n, this._isItemsControlled || (this._initialItemsApplied = !1), this.requestUpdate("initialItems", t));
3777
- }
3778
- get initialItems() {
3779
- return this._initialItems;
3780
- }
3781
- set itemStates(e) {
3782
- let t = this._itemStates;
3783
- this._itemStates = e ?? void 0, this.requestUpdate("itemStates", t);
3784
- }
3785
- get itemStates() {
3786
- return this._itemStates;
3787
- }
3788
- get _isControlled() {
3789
- return this.itemStates !== void 0;
3790
- }
3791
- get _isItemsControlled() {
3792
- return this._hasControlledItems;
3793
- }
3794
- get _effectiveItems() {
3795
- return this._isItemsControlled ? this._items : this._internalItems;
3796
- }
3797
- get _effectiveItemStates() {
3798
- return this._isControlled ? this.itemStates : this._internalItemStates;
3799
- }
3800
- _validateItemsHaveIds(e, t) {
3801
- for (let n = 0; n < e.length; n += 1) if (!e[n]?.id) throw Error(`luzmo-item-grid: ${t}[${n}] is missing required id`);
3802
- }
3803
- async _loadTheme(e) {
3804
- let t = this._initialized, n = ++this._themeLoadVersion, r = await this.resolveTheme(e, this._fullTheme);
3805
- if (!(!this.isConnected || n !== this._themeLoadVersion)) {
3806
- if (this._fullTheme = r, this._initialized && Zt(this.style, this._fullTheme), !this._initialized && this._gridElement && await new Promise((e) => {
3807
- requestAnimationFrame(() => {
3808
- this.isConnected && n === this._themeLoadVersion && this._initializeGrid(), e();
3809
- });
3810
- }), this._grid) {
3811
- let [e, t] = Kt(this._fullTheme);
3812
- this._grid.margin([e, t].join(" "));
3813
- }
3814
- t && this.requestUpdate();
3815
- }
3816
- }
3817
- connectedCallback() {
3818
- super.connectedCallback(), this.requestUpdate(), document.addEventListener("click", this._handleGridClick), this.addEventListener("keydown", this._handleKeyDown);
3819
- }
3820
- disconnectedCallback() {
3821
- super.disconnectedCallback(), this._themeLoadVersion += 1, this._cleanup(), document.removeEventListener("click", this._handleGridClick), this.removeEventListener("keydown", this._handleKeyDown);
3822
- }
3823
- willUpdate(e) {
3824
- if (super.willUpdate(e), e.has("_initialized") && (Zt(this.style, this._fullTheme), this._initialized && this._grid && this._fullTheme?.margins)) {
3825
- let [e, t] = Kt(this._fullTheme);
3826
- this._grid.margin([e, t].join(" "));
3827
- }
3828
- }
3829
- updated(e) {
3830
- super.updated(e);
3831
- let t = e.has("viewMode"), n = e.has("items"), r = e.has("initialItems"), i = n || e.has("_internalItemsVersion"), a = e.has("theme"), o = e.has("itemStates");
3832
- 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) : r && !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), ce(this._effectiveItems), Dn({
3833
- initialized: this._initialized,
3834
- grid: this._grid,
3835
- hasItemsChanged: i,
3836
- gridItemElements: this._gridItemElements,
3837
- items: this._effectiveItems
3838
- }), n && this._reconcileStaleItemStates(), this._activeItemElement = On({
3839
- initialized: this._initialized,
3840
- grid: this._grid,
3841
- hasViewModeChanged: t,
3842
- viewMode: this.viewMode,
3843
- previousViewMode: e.get("viewMode"),
3844
- activeItemElement: this._activeItemElement,
3845
- gridElement: this._gridElement,
3846
- cleanupActiveItem: this._cleanupActiveItem.bind(this)
3847
- }), this.isConnected && (a || !this._initialized) && this._loadTheme(this.theme), (i || o) && this._initialized && this._applyItemStates();
3848
- }
3849
- _setInternalItems(e, t = {}) {
3850
- let n = structuredClone(e);
3851
- this._validateItemsHaveIds(n, "internalItems"), this._internalItems = n, ce(this._internalItems), this._internalItemsVersion += 1, t.reconcileStates && this._reconcileStaleItemStates();
3852
- }
3853
- _handleMouseover(e) {
3854
- if (this.viewMode) return;
3855
- let t = ee(e.target);
3856
- t && this._createItemActionsMenuPopover(t);
3857
- }
3858
- _emitControlledClickAwayDeactivation(e) {
3859
- let t = this._effectiveItemStates, n = Object.entries(t).filter(([, e]) => e.length > 0);
3860
- if (!this._gridElement || n.length === 0) return;
3861
- let r = e.composedPath();
3862
- if (n.some(([e]) => {
3863
- let t = Array.from(this._gridElement.querySelectorAll(".grid-stack-item")).find((t) => t.getAttribute("gs-id") === e);
3864
- if (!t) return !1;
3865
- if (r.includes(t)) return !0;
3866
- let n = t.querySelector(".grid-item-actions-popover");
3867
- return n ? r.includes(n) : !1;
3868
- })) return;
3869
- let i = {}, a = { ...t };
3870
- for (let [e, t] of n) {
3871
- for (let n of t) a = this._computeNextItemStates(e, n, !1, a);
3872
- i[e] = [...t];
3873
- }
3874
- y({
3875
- target: this,
3876
- itemStates: t,
3877
- updatedItemStates: a,
3878
- changedItemStates: i
3879
- });
3880
- }
3881
- _cleanupActiveItem(e) {
3882
- this._activeItemElement = ne({
3883
- item: e,
3884
- activeItemElement: this._activeItemElement,
3885
- gridElement: this._gridElement,
3886
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3887
- });
3888
- }
3889
- _clearGridItemUiStateForDelete(e) {
3890
- 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");
3891
- }
3892
- _dispatchItemActionEvent(e, t, n, r, i, a, o, s) {
3893
- if (v({
3894
- target: this,
3895
- action: e,
3896
- actionType: t,
3897
- active: n,
3898
- items: this.items,
3899
- element: r,
3900
- itemId: i,
3901
- item: a,
3902
- deletedId: o,
3903
- originalElement: s
3904
- }), t === "toggle" && !this._suppressItemStatesEvent) {
3905
- let t = this._effectiveItemStates, r = this._computeNextItemStates(i, e, n);
3906
- this._isControlled || (this._internalItemStates = r), y({
3907
- target: this,
3908
- itemStates: t,
3909
- updatedItemStates: r,
3910
- changedItemStates: { [i]: [e] }
3911
- });
3912
- }
3913
- }
3914
- _sanitizeInitialItemStates(e) {
3915
- let t = Object.entries(e).filter(([, e]) => e.length > 0), n = t.length, r = t.reduce((e, [, t]) => e + t.length, 0);
3916
- if (n > 1 || r > 1) {
3917
- 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.");
3918
- let [e, n] = t[0];
3919
- return { [e]: [n[0]] };
3920
- }
3921
- return { ...e };
3922
- }
3923
- _diffItemStates(e, t) {
3924
- let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
3925
- for (let i of r) {
3926
- let r = e[i] ?? [], a = t[i] ?? [], o = a.filter((e) => !r.includes(e)), s = r.filter((e) => !a.includes(e)), c = [...o, ...s];
3927
- c.length > 0 && (n[i] = c);
3928
- }
3929
- return n;
3930
- }
3931
- _computeNextItemStates(e, t, n, r) {
3932
- if (!this._isControlled) return n ? { [e]: [t] } : {};
3933
- let i = { ...r ?? this._effectiveItemStates };
3934
- if (n) {
3935
- let n = i[e] ?? [];
3936
- n.includes(t) || (i[e] = [...n, t]);
3937
- } else {
3938
- let n = i[e];
3939
- if (n) {
3940
- let r = n.filter((e) => e !== t);
3941
- r.length === 0 ? delete i[e] : i[e] = r;
3942
- }
3943
- }
3944
- return i;
3945
- }
3946
- _filterItemStatesToExistingItems(e) {
3947
- let t = new Set(this.items.map((e) => e.id).filter((e) => !!e)), n = {};
3948
- for (let [r, i] of Object.entries(e)) !t.has(r) || i.length === 0 || (n[r] = [...i]);
3949
- return n;
3950
- }
3951
- _reconcileStaleItemStates() {
3952
- let e = this._isControlled ? this._effectiveItemStates : this._internalItemStates, t = this._filterItemStatesToExistingItems(e), n = {};
3953
- for (let [r, i] of Object.entries(e)) !t[r] && i.length > 0 && (n[r] = [...i]);
3954
- Object.keys(n).length > 0 && y({
3955
- target: this,
3956
- itemStates: e,
3957
- updatedItemStates: t,
3958
- changedItemStates: n
3959
- }), this._isControlled || (this._internalItemStates = t);
3960
- }
3961
- _simulateCloneLayout(e, t) {
3962
- let n = this._effectiveItems;
3963
- if (!this._grid) return [...n, e];
3964
- let r = e.position ?? this._resolvePositionFromEngine(t.id);
3965
- if (!r) return [...n, e];
3966
- e = {
3967
- ...e,
3968
- position: { ...r }
3969
- };
3970
- let i = t.position ?? this._resolvePositionFromEngine(t.id);
3971
- this.clonedItemPositioning === "below-item" && i && (e.position = {
3972
- ...e.position,
3973
- col: i.col,
3974
- row: i.row + i.sizeY
3975
- });
3976
- let a = this.clonedItemPositioning !== "below-item" || !i, { updatedItems: o } = me({
3977
- item: e,
3978
- engine: this._grid.engine,
3979
- existingItems: this._enrichItemsWithEnginePositions(n),
3980
- autoPosition: a
3981
- });
3982
- return o;
3983
- }
3984
- _cleanup() {
3985
- for (let e of this._gridItemElements) this._cleanupActiveItem(e);
3986
- this._grid &&= (this._grid.destroy(!1), void 0), this._initialized = !1;
3987
- }
3988
- _restoreItemsLayout(e) {
3989
- if (!this._grid || !this._gridElement || e.length === 0 || !this._isItemsControlled) return;
3990
- let t = [];
3991
- for (let n of e) {
3992
- if (!n.id) continue;
3993
- let e = this._effectiveItems.find((e) => e.id === n.id);
3994
- if (!e) continue;
3995
- let r = e.position ?? this._resolvePositionFromEngine(e.id);
3996
- if (!r) continue;
3997
- let i = this._gridElement.querySelector(`.grid-stack-item[gs-id="${CSS.escape(e.id)}"]`);
3998
- i && (n.x !== r.col || n.y !== r.row || n.w !== r.sizeX || n.h !== r.sizeY) && t.push({
3999
- element: i,
4000
- position: r
4001
- });
4002
- }
4003
- if (t.length !== 0) {
4004
- this._suppressNextLayoutChangedEvent = !0, this._grid.batchUpdate();
4005
- for (let e of t) this._grid.update(e.element, {
4006
- x: e.position.col,
4007
- y: e.position.row,
4008
- w: e.position.sizeX,
4009
- h: e.position.sizeY
4010
- });
4011
- this._grid.batchUpdate(!1), setTimeout(() => {
4012
- this._suppressNextLayoutChangedEvent &&= !1;
4013
- }, 0);
4014
- }
4015
- }
4016
- _initializeGrid() {
4017
- this._initialized || !this._gridElement || (this._grid = Cn({
4018
- gridElement: this._gridElement,
4019
- gridItemElements: this._gridItemElements,
4020
- items: this._effectiveItems,
4021
- columns: this.columns ?? 48,
4022
- rowHeight: this.rowHeight ?? 16,
4023
- viewMode: this.viewMode,
4024
- fullTheme: this._fullTheme,
4025
- onCreateOrUpdateDimensionsHint: this._createOrUpdateDimensionsHint.bind(this),
4026
- onRemoveDimensionsHint: this._removeDimensionsHint.bind(this),
4027
- onChange: (e) => {
4028
- if (this._suppressNextLayoutChangedEvent) {
4029
- this._suppressNextLayoutChangedEvent = !1;
4030
- return;
4031
- }
4032
- let t = this._effectiveItems, n = wn(t, e);
4033
- this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), b({
4034
- target: this,
4035
- eventName: "luzmo-item-grid-layout-changed",
4036
- detail: {
4037
- element: this._gridElement,
4038
- grid: this._grid,
4039
- items: t,
4040
- updatedItems: n
4041
- }
4042
- }), this._restoreItemsLayout(e);
4043
- }
4044
- }), this._initialized = !0, b({
4045
- target: this,
4046
- eventName: "luzmo-item-grid-ready",
4047
- detail: {
4048
- element: this._gridElement,
4049
- grid: this._grid,
4050
- items: this._effectiveItems
4051
- }
4052
- }), this._applyItemStates());
4053
- }
4054
- _applyItemStates() {
4055
- 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]");
4056
- if (r) for (let e of r) {
4057
- let n = e.getAttribute("gs-id");
4058
- (!n || !t.has(n)) && (e.removeAttribute("active"), this._removeItemActionsMenuPopover(e));
4059
- }
4060
- if (this._activeItemElement = void 0, this._activeItemActionToggle = void 0, t.size === 0) {
4061
- this._gridElement?.removeAttribute("has-active-item");
4062
- return;
4063
- }
4064
- for (let [t, r] of Object.entries(e)) {
4065
- if (r.length === 0) continue;
4066
- let e = this.getGridItemById(t);
4067
- if (!e?.element) continue;
4068
- let i = e.element;
4069
- i.setAttribute("active", "true"), this._gridElement?.setAttribute("has-active-item", "true"), this._createItemActionsMenuPopover(i, r);
4070
- for (let e of r) n.push({
4071
- element: i,
4072
- action: e
4073
- });
4074
- }
4075
- if (n.length === 0) {
4076
- this._gridElement?.removeAttribute("has-active-item"), this._activeItemElement = void 0, this._activeItemActionToggle = void 0;
4077
- return;
4078
- }
4079
- n.length === 1 ? (this._activeItemElement = n[0].element, this._activeItemActionToggle = n[0].action) : (this._activeItemElement = void 0, this._activeItemActionToggle = void 0);
4080
- }
4081
- _createOrUpdateDimensionsHint(e, t, n) {
4082
- Tn({
4083
- element: e,
4084
- numberOfColumns: t,
4085
- numberOfRows: n,
4086
- offsetHint: qt(this._fullTheme)
4087
- });
4088
- }
4089
- _removeDimensionsHint(e) {
4090
- En(e);
4091
- }
4092
- get grid() {
4093
- return this._grid;
4094
- }
4095
- get gridItems() {
4096
- return pe(this.items, this._gridElement);
4097
- }
4098
- registerRenderer(e, t) {
4099
- this.renderers = {
4100
- ...this.renderers,
4101
- [e]: t
4102
- };
4103
- }
4104
- renderItemContent(e, t) {
4105
- return i`
4106
-
4107
- `;
4108
- }
4109
- getItemRenderDependencies() {
4110
- return [];
4111
- }
4112
- resolveTheme(e, t) {
4113
- return Promise.resolve(e ? structuredClone(e) : t);
4114
- }
4115
- get resolvedTheme() {
4116
- return this._fullTheme;
4117
- }
4118
- renderOverlayContent(e, t) {
4119
- return i`
4120
-
4121
- `;
4122
- }
4123
- _createItemActionsMenuPopover(e, t) {
4124
- zt({
4125
- element: e,
4126
- activeActions: t,
4127
- getGridItemById: this.getGridItemById.bind(this),
4128
- placementItemActionsMenu: this.placementItemActionsMenu,
4129
- renderOverlayContent: this.renderOverlayContent.bind(this),
4130
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
4131
- itemActionsDocumentPopover: this.itemActionsDocumentPopover
4132
- });
4133
- }
4134
- _removeItemActionsMenuPopover(e) {
4135
- Bt(e);
4136
- }
4137
- getGridItemById(e) {
4138
- return this.gridItems.find((t) => t.item.id === e);
4139
- }
4140
- scrollToItem(e) {
4141
- let t = this.getGridItemById(e);
4142
- if (!t?.element) return;
4143
- let n = t.element.getBoundingClientRect();
4144
- (n.bottom > window.innerHeight || n.top < 0) && t.element.scrollIntoView({
4145
- behavior: "smooth",
4146
- block: "center"
4147
- });
4148
- }
4149
- _createMissingItemError(e) {
4150
- return /* @__PURE__ */ Error(`Grid item with id "${e}" not found`);
4151
- }
4152
- _requireGridItem(e) {
4153
- let t = this._effectiveItems.find((t) => t.id === e);
4154
- if (!t) throw this._createMissingItemError(e);
4155
- return t;
4156
- }
4157
- _resolvePositionFromEngine(e) {
4158
- let t = this._grid?.engine.nodes.find((t) => t.id === e);
4159
- if (!(!t || t.x == null || t.y == null || t.w == null || t.h == null)) return {
4160
- col: t.x,
4161
- row: t.y,
4162
- sizeX: t.w,
4163
- sizeY: t.h
4164
- };
4165
- }
4166
- _requireGridItemWithPosition(e) {
4167
- let t = this._requireGridItem(e);
4168
- if (!t.position) {
4169
- let n = this._resolvePositionFromEngine(e);
4170
- if (!n) throw Error(`Grid item with id "${e}" does not have a position`);
4171
- return {
4172
- ...t,
4173
- position: n
4174
- };
4175
- }
4176
- return t;
4177
- }
4178
- _assertAddItemHasId(e) {
4179
- if (!e.id) throw Error("addGridItem requires newItem.id");
4180
- }
4181
- addGridItem(e) {
4182
- if (this._assertAddItemHasId(e), this._effectiveItems.some((t) => t.id === e.id)) throw Error(`addGridItem rejected: an item with id "${e.id}" already exists`);
4183
- let t = ge(e), n = this._effectiveItems;
4184
- if (!this._grid) {
4185
- let r = e.position?.col == null || e.position?.row == null ? {
4186
- ...t,
4187
- position: void 0
4188
- } : t, i = [...n, r];
4189
- return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4190
- }
4191
- if (!t.position) {
4192
- let e = [...n, t];
4193
- return this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 }), e;
4194
- }
4195
- let r = e.position?.col == null || e.position?.row == null, { updatedItems: i } = me({
4196
- item: t,
4197
- engine: this._grid.engine,
4198
- existingItems: n,
4199
- autoPosition: r
4200
- });
4201
- return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4202
- }
4203
- _enrichItemsWithEnginePositions(e) {
4204
- return this._grid ? e.map((e) => {
4205
- if (e.position) return e;
4206
- let t = this._resolvePositionFromEngine(e.id);
4207
- return t ? {
4208
- ...e,
4209
- position: t
4210
- } : e;
4211
- }) : e;
4212
- }
4213
- _updateGridItemPosition(e, t) {
4214
- let n = this._effectiveItems, r = this._requireGridItemWithPosition(e);
4215
- return n.map((n) => {
4216
- if (n.id !== e) return n;
4217
- let i = n.position ?? r.position;
4218
- return {
4219
- ...n,
4220
- position: {
4221
- ...i,
4222
- ...t
4223
- }
4224
- };
4225
- });
4226
- }
4227
- _dispatchLayoutChangedEvent(e, t) {
4228
- b({
4229
- target: this,
4230
- eventName: "luzmo-item-grid-layout-changed",
4231
- detail: {
4232
- element: this._gridElement,
4233
- grid: this._grid,
4234
- items: e,
4235
- updatedItems: t
4236
- }
4237
- });
4238
- }
4239
- _updateItemField(e, t) {
4240
- let n = this._effectiveItems;
4241
- this._requireGridItem(e);
4242
- let r = n.map((n) => n.id === e ? {
4243
- ...n,
4244
- ...t
4245
- } : n);
4246
- return this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4247
- }
4248
- removeGridItem(e) {
4249
- let t = this._effectiveItems, n = this._requireGridItem(e), r = t.filter((t) => t.id !== e);
4250
- return v({
4251
- target: this,
4252
- action: "delete",
4253
- actionType: "button",
4254
- active: !1,
4255
- items: t,
4256
- element: this.getGridItemById(e)?.element ?? this,
4257
- itemId: e,
4258
- item: n,
4259
- updatedItems: r
4260
- }), this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4261
- }
4262
- cloneGridItem(e) {
4263
- let t = this._effectiveItems, r = this._requireGridItem(e), i = {
4264
- ...structuredClone(r),
4265
- id: n()
4266
- }, a = this._simulateCloneLayout(i, r), o = a.find((e) => e.id === i.id) ?? i;
4267
- return v({
4268
- target: this,
4269
- action: "clone",
4270
- actionType: "button",
4271
- active: !1,
4272
- items: t,
4273
- element: this.getGridItemById(e)?.element ?? this,
4274
- itemId: i.id,
4275
- item: o,
4276
- originalElement: this.getGridItemById(e)?.element,
4277
- updatedItems: a
4278
- }), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4279
- }
4280
- updateGridItemPosition(e, t) {
4281
- let n = this._updateGridItemPosition(e, t);
4282
- return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4283
- }
4284
- updateGridItemSize(e, t) {
4285
- let n = this._updateGridItemPosition(e, t);
4286
- return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4287
- }
4288
- updateGridItemSlots(e, t) {
4289
- return this._updateItemField(e, { slots: t });
4290
- }
4291
- updateGridItemOptions(e, t) {
4292
- return this._updateItemField(e, { options: t });
4293
- }
4294
- updateGridItemFilters(e, t) {
4295
- return this._updateItemField(e, { filters: t });
4296
- }
4297
- updateGridItemType(e, t) {
4298
- return this._updateItemField(e, { type: t });
4299
- }
4300
- updateGridItem(e, t) {
4301
- let n = this._effectiveItems;
4302
- this._requireGridItem(e);
4303
- let { position: r, ...i } = t, a;
4304
- return r && this._grid ? (a = he({
4305
- itemId: e,
4306
- patch: r,
4307
- engine: this._grid.engine,
4308
- existingItems: this._enrichItemsWithEnginePositions(n)
4309
- }), a = a.map((t) => t.id === e ? {
4310
- ...t,
4311
- ...i
4312
- } : t)) : a = n.map((t) => t.id === e ? {
4313
- ...t,
4314
- ...i,
4315
- ...r && t.position ? { position: {
4316
- ...t.position,
4317
- ...r
4318
- } } : r ? { position: r } : {}
4319
- } : t), t.position && this._dispatchLayoutChangedEvent(n, a), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4320
- }
4321
- async triggerItemAction(e, t, n) {
4322
- await this.updateComplete;
4323
- let r = this.getGridItemById(e);
4324
- if (!r?.element) {
4325
- console.warn(`Grid item with id "${e}" not found`);
4326
- return;
4327
- }
4328
- if (this._isControlled) return this._triggerControlledItemAction(e, t, n);
4329
- this._suppressItemStatesEvent = !0;
4330
- let i = ae({
4331
- gridElement: this._gridElement,
4332
- items: this.items,
4333
- gridItemData: r,
4334
- itemId: e,
4335
- action: t,
4336
- options: n,
4337
- state: {
4338
- activeItemElement: this._activeItemElement,
4339
- activeItemActionToggle: this._activeItemActionToggle
4340
- },
4341
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
4342
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
4343
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
4344
- });
4345
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = i.state.activeItemElement, this._activeItemActionToggle = i.state.activeItemActionToggle, i.result !== void 0) {
4346
- let n = this._effectiveItemStates, r = this._computeNextItemStates(e, t, i.result);
4347
- this._internalItemStates = r, y({
4348
- target: this,
4349
- itemStates: n,
4350
- updatedItemStates: r,
4351
- changedItemStates: this._diffItemStates(n, r)
4352
- });
4353
- }
4354
- return i.result;
4355
- }
4356
- activateItemAction(e, t, n) {
4357
- return this.triggerItemAction(e, t, n);
4358
- }
4359
- _triggerControlledItemAction(e, t, n) {
4360
- let r = (this._effectiveItemStates[e] ?? []).includes(t), i = n?.active ?? !r;
4361
- if (n?.active !== void 0 && i === r) return r;
4362
- let a = this._effectiveItemStates, o = this._computeNextItemStates(e, t, i);
4363
- return y({
4364
- target: this,
4365
- itemStates: a,
4366
- updatedItemStates: o,
4367
- changedItemStates: { [e]: [t] }
4368
- }), i;
4369
- }
4370
- deactivateItems() {
4371
- if (this._isControlled) {
4372
- let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4373
- itemId: e,
4374
- action: t
4375
- })));
4376
- if (t.length === 0) return 0;
4377
- let n = {}, r = { ...e };
4378
- for (let e of t) r = this._computeNextItemStates(e.itemId, e.action, !1, r), n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4379
- return y({
4380
- target: this,
4381
- itemStates: e,
4382
- updatedItemStates: r,
4383
- changedItemStates: n
4384
- }), new Set(t.map((e) => e.itemId)).size;
4385
- }
4386
- let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4387
- itemId: e,
4388
- action: t
4389
- })));
4390
- this._suppressItemStatesEvent = !0;
4391
- let n = oe({
4392
- gridElement: this._gridElement,
4393
- items: this.items,
4394
- state: {
4395
- activeItemElement: this._activeItemElement,
4396
- activeItemActionToggle: this._activeItemActionToggle
4397
- },
4398
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
4399
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
4400
- });
4401
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = n.state.activeItemElement, this._activeItemActionToggle = n.state.activeItemActionToggle, this._isControlled || (this._internalItemStates = {}), t.length > 0) {
4402
- let n = {};
4403
- for (let e of t) n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4404
- y({
4405
- target: this,
4406
- itemStates: e,
4407
- updatedItemStates: {},
4408
- changedItemStates: n
4409
- });
4410
- }
4411
- return n.deactivatedCount;
4412
- }
4413
- _renderGrid() {
4414
- return en({
4415
- items: this.items,
4416
- initialized: this._initialized,
4417
- viewMode: this.viewMode,
4418
- fullTheme: this._fullTheme,
4419
- columns: this.columns ?? 48,
4420
- renderItemContent: this.renderItemContent.bind(this),
4421
- renderDependencies: this.getItemRenderDependencies(),
4422
- ensureGridItemId: (e) => le(e),
4423
- handleMouseover: this._handleMouseover.bind(this),
4424
- handleMouseout: this._handleMouseout,
4425
- handleFocus: this._handleFocus,
4426
- handleBlur: this._handleBlur
4427
- });
4428
- }
4429
- render() {
4430
- return this._renderGrid();
4431
- }
4432
- };
4433
- e([s({
4434
- type: String,
4435
- reflect: !0
4436
- })], $.prototype, "language", void 0), e([s({
4437
- type: String,
4438
- attribute: "content-language",
4439
- reflect: !0
4440
- })], $.prototype, "contentLanguage", void 0), e([s({
4441
- type: Number,
4442
- reflect: !0
4443
- })], $.prototype, "columns", void 0), e([s({
4444
- type: Number,
4445
- reflect: !0,
4446
- attribute: "row-height"
4447
- })], $.prototype, "rowHeight", void 0), e([s({
4448
- type: Boolean,
4449
- reflect: !0,
4450
- attribute: "view-mode"
4451
- })], $.prototype, "viewMode", void 0), e([s({
4452
- type: Boolean,
4453
- reflect: !0,
4454
- attribute: "item-actions-document-popover"
4455
- })], $.prototype, "itemActionsDocumentPopover", void 0), e([s({
4456
- type: String,
4457
- reflect: !0,
4458
- attribute: "placement-item-actions-menu"
4459
- })], $.prototype, "placementItemActionsMenu", void 0), e([s({
4460
- type: Array,
4461
- reflect: !0,
4462
- attribute: "default-item-actions-menu"
4463
- })], $.prototype, "defaultItemActionsMenu", void 0), e([s({
4464
- type: String,
4465
- reflect: !0,
4466
- attribute: "cloned-item-positioning"
4467
- })], $.prototype, "clonedItemPositioning", void 0), e([s({
4468
- type: Object,
4469
- reflect: !0
4470
- })], $.prototype, "theme", void 0), e([s({
4471
- type: Array,
4472
- reflect: !1
4473
- })], $.prototype, "items", null), e([s({
4474
- type: Array,
4475
- reflect: !1,
4476
- attribute: "initial-items"
4477
- })], $.prototype, "initialItems", null), e([s({
4478
- type: Object,
4479
- reflect: !1
4480
- })], $.prototype, "renderers", void 0), e([s({
4481
- type: Object,
4482
- reflect: !1,
4483
- attribute: "item-states"
4484
- })], $.prototype, "itemStates", null), e([s({
4485
- type: Object,
4486
- reflect: !1,
4487
- attribute: "initial-item-states"
4488
- })], $.prototype, "initialItemStates", void 0), e([u()], $.prototype, "_initialized", void 0), e([c(".grid-stack")], $.prototype, "_gridElement", void 0), e([l(".luzmo-item-grid-item")], $.prototype, "_gridItemElements", void 0), e([u()], $.prototype, "_internalItemsVersion", void 0);
4489
- //#endregion
4490
- export { pe as n, $ as t };