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

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 (2378) hide show
  1. package/LICENSE +18 -18
  2. package/README.md +8 -4
  3. package/angular/README.md +40 -0
  4. package/angular/components/add-to-dashboard.ts +130 -0
  5. package/angular/components/ai-chat-empty-state.ts +105 -0
  6. package/angular/components/ai-chat.ts +447 -0
  7. package/angular/components/ai-interaction-textarea.ts +290 -0
  8. package/angular/components/data-field-level.ts +130 -0
  9. package/angular/components/data-field-panel.ts +256 -0
  10. package/angular/components/data-field.ts +130 -0
  11. package/angular/components/data-fields-select.ts +226 -0
  12. package/angular/components/dataset-icon.ts +83 -0
  13. package/angular/components/dataset-selector-list.ts +147 -0
  14. package/angular/components/dataset-selector-row.ts +205 -0
  15. package/angular/components/display-settings-binning.ts +92 -0
  16. package/angular/components/display-settings-datetime.ts +100 -0
  17. package/angular/components/display-settings-grand-totals.ts +92 -0
  18. package/angular/components/display-settings-numeric.ts +113 -0
  19. package/angular/components/display-settings-period-over-period.ts +121 -0
  20. package/angular/components/display-settings.ts +227 -0
  21. package/angular/components/filter-expression-picker.ts +168 -0
  22. package/angular/components/filter-item.ts +207 -0
  23. package/angular/components/filter-parameter-picker.ts +155 -0
  24. package/angular/components/filter-value-picker-datetime.ts +125 -0
  25. package/angular/components/filter-value-picker-hierarchy.ts +146 -0
  26. package/angular/components/filter-value-picker-numeric.ts +146 -0
  27. package/angular/components/filter-value-picker.ts +160 -0
  28. package/angular/components/filters.ts +241 -0
  29. package/angular/components/formula-editor.ts +229 -0
  30. package/angular/components/formula-field.ts +198 -0
  31. package/angular/components/formula.ts +170 -0
  32. package/angular/components/interactive-viz-item.ts +228 -0
  33. package/angular/components/item-grid-item-actions-menu.ts +123 -0
  34. package/angular/components/item-grid.ts +252 -0
  35. package/angular/components/item-option-action-button-group.ts +105 -0
  36. package/angular/components/item-option-color-palette-picker.ts +126 -0
  37. package/angular/components/item-option-color-picker.ts +134 -0
  38. package/angular/components/item-option-color-range.ts +168 -0
  39. package/angular/components/item-option-guidelines.ts +84 -0
  40. package/angular/components/item-option-multi-language-field.ts +133 -0
  41. package/angular/components/item-option-number-field.ts +161 -0
  42. package/angular/components/item-option-panel.ts +149 -0
  43. package/angular/components/item-option-picker.ts +120 -0
  44. package/angular/components/item-option-position-picker.ts +98 -0
  45. package/angular/components/item-option-positions-number-field.ts +140 -0
  46. package/angular/components/item-option-radio-button-group.ts +119 -0
  47. package/angular/components/item-option-slider.ts +126 -0
  48. package/angular/components/item-option-switch.ts +98 -0
  49. package/angular/components/item-option-text-field.ts +112 -0
  50. package/angular/components/item-option.ts +163 -0
  51. package/angular/components/item-slot-drop-panel.ts +236 -0
  52. package/angular/components/item-slot-drop.ts +231 -0
  53. package/angular/components/item-slot-picker-panel.ts +299 -0
  54. package/angular/components/item-slot-picker.ts +241 -0
  55. package/angular/components/slot-menu-list.ts +121 -0
  56. package/angular/components/slot-menu.ts +304 -0
  57. package/angular/esm/components/add-to-dashboard.d.ts +48 -0
  58. package/angular/esm/components/add-to-dashboard.js +129 -0
  59. package/angular/esm/components/ai-chat-empty-state.d.ts +41 -0
  60. package/angular/esm/components/ai-chat-empty-state.js +107 -0
  61. package/angular/esm/components/ai-chat.d.ts +149 -0
  62. package/angular/esm/components/ai-chat.js +463 -0
  63. package/angular/esm/components/ai-interaction-textarea.d.ts +108 -0
  64. package/angular/esm/components/ai-interaction-textarea.js +313 -0
  65. package/angular/esm/components/data-field-level.d.ts +50 -0
  66. package/angular/esm/components/data-field-level.js +129 -0
  67. package/angular/esm/components/data-field-panel.d.ts +86 -0
  68. package/angular/esm/components/data-field-panel.js +268 -0
  69. package/angular/esm/components/data-field.d.ts +50 -0
  70. package/angular/esm/components/data-field.js +129 -0
  71. package/angular/esm/components/data-fields-select.d.ts +87 -0
  72. package/angular/esm/components/data-fields-select.js +243 -0
  73. package/angular/esm/components/dataset-icon.d.ts +34 -0
  74. package/angular/esm/components/dataset-icon.js +86 -0
  75. package/angular/esm/components/dataset-selector-list.d.ts +56 -0
  76. package/angular/esm/components/dataset-selector-list.js +155 -0
  77. package/angular/esm/components/dataset-selector-row.d.ts +72 -0
  78. package/angular/esm/components/dataset-selector-row.js +205 -0
  79. package/angular/esm/components/display-settings-binning.d.ts +37 -0
  80. package/angular/esm/components/display-settings-binning.js +91 -0
  81. package/angular/esm/components/display-settings-datetime.d.ts +40 -0
  82. package/angular/esm/components/display-settings-datetime.js +99 -0
  83. package/angular/esm/components/display-settings-grand-totals.d.ts +37 -0
  84. package/angular/esm/components/display-settings-grand-totals.js +91 -0
  85. package/angular/esm/components/display-settings-numeric.d.ts +45 -0
  86. package/angular/esm/components/display-settings-numeric.js +115 -0
  87. package/angular/esm/components/display-settings-period-over-period.d.ts +50 -0
  88. package/angular/esm/components/display-settings-period-over-period.js +123 -0
  89. package/angular/esm/components/display-settings.d.ts +83 -0
  90. package/angular/esm/components/display-settings.js +231 -0
  91. package/angular/esm/components/filter-expression-picker.d.ts +64 -0
  92. package/angular/esm/components/filter-expression-picker.js +179 -0
  93. package/angular/esm/components/filter-item.d.ts +74 -0
  94. package/angular/esm/components/filter-item.js +222 -0
  95. package/angular/esm/components/filter-parameter-picker.d.ts +56 -0
  96. package/angular/esm/components/filter-parameter-picker.js +151 -0
  97. package/angular/esm/components/filter-value-picker-datetime.d.ts +47 -0
  98. package/angular/esm/components/filter-value-picker-datetime.js +131 -0
  99. package/angular/esm/components/filter-value-picker-hierarchy.d.ts +53 -0
  100. package/angular/esm/components/filter-value-picker-hierarchy.js +155 -0
  101. package/angular/esm/components/filter-value-picker-numeric.d.ts +53 -0
  102. package/angular/esm/components/filter-value-picker-numeric.js +155 -0
  103. package/angular/esm/components/filter-value-picker.d.ts +57 -0
  104. package/angular/esm/components/filter-value-picker.js +171 -0
  105. package/angular/esm/components/filters.d.ts +85 -0
  106. package/angular/esm/components/filters.js +251 -0
  107. package/angular/esm/components/formula-editor.d.ts +78 -0
  108. package/angular/esm/components/formula-editor.js +236 -0
  109. package/angular/esm/components/formula-field.d.ts +70 -0
  110. package/angular/esm/components/formula-field.js +209 -0
  111. package/angular/esm/components/formula.d.ts +60 -0
  112. package/angular/esm/components/formula.js +177 -0
  113. package/angular/esm/components/interactive-viz-item.d.ts +76 -0
  114. package/angular/esm/components/interactive-viz-item.js +224 -0
  115. package/angular/esm/components/item-grid-item-actions-menu.d.ts +47 -0
  116. package/angular/esm/components/item-grid-item-actions-menu.js +121 -0
  117. package/angular/esm/components/item-grid.d.ts +82 -0
  118. package/angular/esm/components/item-grid.js +251 -0
  119. package/angular/esm/components/item-option-action-button-group.d.ts +41 -0
  120. package/angular/esm/components/item-option-action-button-group.js +107 -0
  121. package/angular/esm/components/item-option-color-palette-picker.d.ts +48 -0
  122. package/angular/esm/components/item-option-color-palette-picker.js +131 -0
  123. package/angular/esm/components/item-option-color-picker.d.ts +51 -0
  124. package/angular/esm/components/item-option-color-picker.js +139 -0
  125. package/angular/esm/components/item-option-color-range.d.ts +66 -0
  126. package/angular/esm/components/item-option-color-range.js +179 -0
  127. package/angular/esm/components/item-option-guidelines.d.ts +34 -0
  128. package/angular/esm/components/item-option-guidelines.js +83 -0
  129. package/angular/esm/components/item-option-multi-language-field.d.ts +50 -0
  130. package/angular/esm/components/item-option-multi-language-field.js +139 -0
  131. package/angular/esm/components/item-option-number-field.d.ts +58 -0
  132. package/angular/esm/components/item-option-number-field.js +171 -0
  133. package/angular/esm/components/item-option-panel.d.ts +54 -0
  134. package/angular/esm/components/item-option-panel.js +155 -0
  135. package/angular/esm/components/item-option-picker.d.ts +46 -0
  136. package/angular/esm/components/item-option-picker.js +123 -0
  137. package/angular/esm/components/item-option-position-picker.d.ts +39 -0
  138. package/angular/esm/components/item-option-position-picker.js +99 -0
  139. package/angular/esm/components/item-option-positions-number-field.d.ts +54 -0
  140. package/angular/esm/components/item-option-positions-number-field.js +147 -0
  141. package/angular/esm/components/item-option-radio-button-group.d.ts +45 -0
  142. package/angular/esm/components/item-option-radio-button-group.js +123 -0
  143. package/angular/esm/components/item-option-slider.d.ts +46 -0
  144. package/angular/esm/components/item-option-slider.js +131 -0
  145. package/angular/esm/components/item-option-switch.d.ts +40 -0
  146. package/angular/esm/components/item-option-switch.js +99 -0
  147. package/angular/esm/components/item-option-text-field.d.ts +44 -0
  148. package/angular/esm/components/item-option-text-field.js +115 -0
  149. package/angular/esm/components/item-option.d.ts +58 -0
  150. package/angular/esm/components/item-option.js +171 -0
  151. package/angular/esm/components/item-slot-drop-panel.d.ts +82 -0
  152. package/angular/esm/components/item-slot-drop-panel.js +249 -0
  153. package/angular/esm/components/item-slot-drop.d.ts +77 -0
  154. package/angular/esm/components/item-slot-drop.js +227 -0
  155. package/angular/esm/components/item-slot-picker-panel.d.ts +97 -0
  156. package/angular/esm/components/item-slot-picker-panel.js +309 -0
  157. package/angular/esm/components/item-slot-picker.d.ts +86 -0
  158. package/angular/esm/components/item-slot-picker.js +259 -0
  159. package/angular/esm/components/slot-menu-list.d.ts +46 -0
  160. package/angular/esm/components/slot-menu-list.js +123 -0
  161. package/angular/esm/components/slot-menu.d.ts +104 -0
  162. package/angular/esm/components/slot-menu.js +300 -0
  163. package/angular/esm/index.d.ts +109 -0
  164. package/angular/esm/index.js +217 -0
  165. package/angular/index.ts +223 -0
  166. package/angular/package.json +40 -0
  167. package/angular/tsconfig.json +36 -0
  168. package/angular/type-fallbacks.d.ts +0 -0
  169. package/angular/utils/ai-prompt/attachments.d.ts +10 -0
  170. package/angular/utils/ai-prompt/dictation.d.ts +50 -0
  171. package/angular/utils/ai-prompt/image-upload.d.ts +12 -0
  172. package/angular/utils/ai-prompt/index.d.ts +6 -0
  173. package/angular/utils/ai-prompt/tests/attachments.test.d.ts +1 -0
  174. package/angular/utils/ai-prompt/tests/dictation.test.d.ts +1 -0
  175. package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +1 -0
  176. package/angular/utils/base/base.d.ts +16 -0
  177. package/angular/utils/base/focus-visible.d.ts +29 -0
  178. package/angular/utils/base/focusable.d.ts +58 -0
  179. package/angular/utils/base/index.d.ts +5 -0
  180. package/angular/utils/base/localized-mixin.d.ts +22 -0
  181. package/angular/utils/base/sized-mixin.d.ts +17 -0
  182. package/angular/utils/color/color-palettes.d.ts +17 -0
  183. package/angular/utils/color/extrapolate-color.d.ts +1 -0
  184. package/angular/utils/create-lazy-loader.d.ts +5 -0
  185. package/angular/utils/data/load-data-fields-for-datasets.d.ts +22 -0
  186. package/angular/utils/data-broker/index.d.ts +281 -0
  187. package/angular/utils/data-broker/tests/data-broker.test.d.ts +1 -0
  188. package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +12 -0
  189. package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +1 -0
  190. package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +1 -0
  191. package/angular/utils/drag/draggable.d.ts +13 -0
  192. package/angular/utils/drag/pragmatic-element-adapter.d.ts +2 -0
  193. package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +1 -0
  194. package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +1 -0
  195. package/angular/utils/filters/expressions.d.ts +15 -0
  196. package/angular/utils/filters/filter-text.d.ts +64 -0
  197. package/angular/utils/filters/index.d.ts +2 -0
  198. package/angular/utils/filters/presentation.d.ts +4 -0
  199. package/angular/utils/filters/tests/filter-text.test.d.ts +1 -0
  200. package/angular/utils/formatter/calculate-duration.d.ts +2 -0
  201. package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
  202. package/angular/utils/formatter/default-local-formats.d.ts +20 -0
  203. package/angular/utils/formatter/formats/cs.d.ts +20 -0
  204. package/angular/utils/formatter/formats/da.d.ts +20 -0
  205. package/angular/utils/formatter/formats/de.d.ts +21 -0
  206. package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
  207. package/angular/utils/formatter/formats/en-US.d.ts +1 -0
  208. package/angular/utils/formatter/formats/en.d.ts +1 -0
  209. package/angular/utils/formatter/formats/es.d.ts +54 -0
  210. package/angular/utils/formatter/formats/fi.d.ts +20 -0
  211. package/angular/utils/formatter/formats/fr.d.ts +54 -0
  212. package/angular/utils/formatter/formats/he.d.ts +20 -0
  213. package/angular/utils/formatter/formats/hu.d.ts +20 -0
  214. package/angular/utils/formatter/formats/it.d.ts +54 -0
  215. package/angular/utils/formatter/formats/ja.d.ts +20 -0
  216. package/angular/utils/formatter/formats/ko.d.ts +20 -0
  217. package/angular/utils/formatter/formats/mk.d.ts +20 -0
  218. package/angular/utils/formatter/formats/nl.d.ts +21 -0
  219. package/angular/utils/formatter/formats/no.d.ts +21 -0
  220. package/angular/utils/formatter/formats/pl.d.ts +20 -0
  221. package/angular/utils/formatter/formats/pt.d.ts +20 -0
  222. package/angular/utils/formatter/formats/ru.d.ts +20 -0
  223. package/angular/utils/formatter/formats/sv.d.ts +20 -0
  224. package/angular/utils/formatter/formats/tr.d.ts +21 -0
  225. package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
  226. package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
  227. package/angular/utils/formatter/formatter.d.ts +9 -0
  228. package/angular/utils/formatter/get-dataset-name.d.ts +2 -0
  229. package/angular/utils/formatter/get-localized-name.d.ts +4 -0
  230. package/angular/utils/formatter/localize.d.ts +3 -0
  231. package/angular/utils/formatter/localized-template.d.ts +4 -0
  232. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  233. package/angular/utils/formatter/tests/calculate-duration.test.d.ts +1 -0
  234. package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +1 -0
  235. package/angular/utils/formatter/tests/default-local-formats.test.d.ts +1 -0
  236. package/angular/utils/formatter/tests/formatter.test.d.ts +1 -0
  237. package/angular/utils/formatter/tests/get-localized-name.test.d.ts +1 -0
  238. package/angular/utils/formatter/tests/localize.test.d.ts +1 -0
  239. package/angular/utils/formatter/tests/localized-template.test.d.ts +1 -0
  240. package/angular/utils/formula/base/formula-base.d.ts +117 -0
  241. package/angular/utils/formula/base/formula-input-base.d.ts +62 -0
  242. package/angular/utils/formula/codemirror/actions.d.ts +47 -0
  243. package/angular/utils/formula/codemirror/drop-cursor.d.ts +15 -0
  244. package/angular/utils/formula/codemirror/icon-element.d.ts +7 -0
  245. package/angular/utils/formula/codemirror/parser.d.ts +16 -0
  246. package/angular/utils/formula/codemirror/tests/actions.test.d.ts +1 -0
  247. package/angular/utils/formula/codemirror/theme.d.ts +20 -0
  248. package/angular/utils/formula/codemirror/widget.d.ts +18 -0
  249. package/angular/utils/formula/config/aggregations.d.ts +9 -0
  250. package/angular/utils/formula/config/build-datasets.d.ts +10 -0
  251. package/angular/utils/formula/config/expression-helpers.d.ts +42 -0
  252. package/angular/utils/formula/config/functions.d.ts +3 -0
  253. package/angular/utils/formula/config/groupings.d.ts +9 -0
  254. package/angular/utils/formula/config/regex.d.ts +39 -0
  255. package/angular/utils/formula/config/resolve-column-presentation.d.ts +19 -0
  256. package/angular/utils/formula/config/tests/build-datasets.test.d.ts +1 -0
  257. package/angular/utils/formula/config/validate-expression.d.ts +19 -0
  258. package/angular/utils/formula/load-formula-codemirror.d.ts +4 -0
  259. package/angular/utils/formula/render-explanation-tooltip.d.ts +7 -0
  260. package/angular/utils/formula/store/formula-display-store.d.ts +93 -0
  261. package/angular/utils/formula/store/formula-editor-context.d.ts +8 -0
  262. package/angular/utils/formula/store/formula-editor-store.d.ts +46 -0
  263. package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +1 -0
  264. package/angular/utils/formula/tests/validate-expression.test.d.ts +1 -0
  265. package/angular/utils/get-css-variable.d.ts +1 -0
  266. package/angular/utils/index.d.ts +10 -0
  267. package/angular/utils/localize/set-locale.d.ts +7 -0
  268. package/angular/utils/map-tile-providers/index.d.ts +93 -0
  269. package/angular/utils/set-nested-value.d.ts +6 -0
  270. package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
  271. package/angular/utils/slot-content/render-calculation-label.d.ts +7 -0
  272. package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +1 -0
  273. package/angular/utils/slot-state/slot-context.d.ts +4 -0
  274. package/angular/utils/slot-state/slot-store.d.ts +43 -0
  275. package/angular/utils/slot-state/tests/slot-store.test.d.ts +1 -0
  276. package/angular/utils/store/base-store.d.ts +158 -0
  277. package/angular/utils/store/dashboard-store.d.ts +49 -0
  278. package/angular/utils/store/index.d.ts +135 -0
  279. package/angular/utils/store/item-store.d.ts +33 -0
  280. package/angular/utils/store/store-registry.d.ts +170 -0
  281. package/angular/utils/store/tests/dashboard-store.test.d.ts +1 -0
  282. package/angular/utils/store/tests/item-store.test.d.ts +1 -0
  283. package/angular/utils/store/tests/store-registry.test.d.ts +1 -0
  284. package/angular/utils/store/types.d.ts +270 -0
  285. package/angular/utils/switch-item/index.d.ts +34 -0
  286. package/angular/utils/switch-item/slot-role-classification.d.ts +31 -0
  287. package/angular/utils/switch-item/stories/switch-item.stories.d.ts +17 -0
  288. package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +1 -0
  289. package/angular/utils/switch-item/tests/switch-item.test.d.ts +1 -0
  290. package/angular/utils/tests/create-lazy-loader.test.d.ts +1 -0
  291. package/angular/utils/tests/set-nested-value.test.d.ts +1 -0
  292. package/angular/utils/themes/bliss.d.ts +2 -0
  293. package/angular/utils/themes/classic-dark.d.ts +2 -0
  294. package/angular/utils/themes/classic.d.ts +2 -0
  295. package/angular/utils/themes/default-dark.d.ts +2 -0
  296. package/angular/utils/themes/default.d.ts +2 -0
  297. package/angular/utils/themes/index.d.ts +4 -0
  298. package/angular/utils/themes/orion.d.ts +2 -0
  299. package/angular/utils/themes/pinky.d.ts +2 -0
  300. package/angular/utils/themes/radiant.d.ts +2 -0
  301. package/angular/utils/themes/royale.d.ts +2 -0
  302. package/angular/utils/themes/seasonal.d.ts +2 -0
  303. package/angular/utils/themes/urban.d.ts +2 -0
  304. package/angular/utils/themes/vivid.d.ts +2 -0
  305. package/angular/utils/time/formats.const.d.ts +4 -0
  306. package/angular/utils/time/period-over-period-condition.const.d.ts +8 -0
  307. package/angular/utils/time/periods.const.d.ts +15 -0
  308. package/angular/utils/timezone/datetime-timezone.d.ts +25 -0
  309. package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +1 -0
  310. package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +9 -0
  311. package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +30 -0
  312. package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +1 -0
  313. package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +1 -0
  314. package/angular/utils/types/tests/type-check.test.d.ts +1 -0
  315. package/angular/utils/types/type-check.d.ts +28 -0
  316. package/components/ad-hoc-slot-content-BwcFfXCV.cjs +20 -0
  317. package/components/ad-hoc-slot-content-hSlT62VS.js +29 -0
  318. package/components/add-to-dashboard/add-to-dashboard.d.ts +134 -0
  319. package/components/add-to-dashboard/dashboard-actions.d.ts +14 -0
  320. package/components/add-to-dashboard/helpers/add-to-dashboard-helpers.d.ts +3 -0
  321. package/components/add-to-dashboard/index.cjs +20 -0
  322. package/components/add-to-dashboard/index.d.ts +11 -0
  323. package/components/add-to-dashboard/index.js +21 -0
  324. package/components/add-to-dashboard/types.d.ts +7 -0
  325. package/components/add-to-dashboard-hx-THahq.cjs +166 -0
  326. package/components/add-to-dashboard-iOGXy8fd.js +805 -0
  327. package/components/ai-chat/ai-chat-events.d.ts +139 -0
  328. package/components/ai-chat/ai-chat-request.d.ts +25 -0
  329. package/components/ai-chat/ai-chat.d.ts +355 -0
  330. package/components/ai-chat/ai-prompt-types.d.ts +133 -0
  331. package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +53 -0
  332. package/components/ai-chat/empty-state/index.d.ts +8 -0
  333. package/components/ai-chat/empty-state/types.d.ts +14 -0
  334. package/components/ai-chat/helpers/agent-config.d.ts +12 -0
  335. package/components/ai-chat/helpers/elicitation-template.d.ts +20 -0
  336. package/components/ai-chat/index.cjs +20 -0
  337. package/components/ai-chat/index.d.ts +24 -0
  338. package/components/ai-chat/index.js +22 -0
  339. package/components/ai-chat/session/ai-chat-session-controller.d.ts +60 -0
  340. package/components/ai-chat/session/ai-chat-session-types.d.ts +119 -0
  341. package/components/ai-chat/session/ai-chat-session.d.ts +119 -0
  342. package/components/ai-chat/session/index.d.ts +2 -0
  343. package/components/ai-chat/stream/chunk-extractors.d.ts +29 -0
  344. package/components/ai-chat/stream/index.d.ts +53 -0
  345. package/components/ai-chat/stream/progress.d.ts +3 -0
  346. package/components/ai-chat/stream/registry.d.ts +6 -0
  347. package/components/ai-chat/stream/stream-processor.d.ts +2 -0
  348. package/components/ai-chat/stream/transport.d.ts +26 -0
  349. package/components/ai-chat/stream/types.d.ts +59 -0
  350. package/components/ai-chat/types.d.ts +24 -0
  351. package/components/ai-chat-DGjJ7ic0.js +4368 -0
  352. package/components/ai-chat-DUeIisGK.cjs +338 -0
  353. package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +239 -0
  354. package/components/ai-interaction-textarea/index.cjs +20 -0
  355. package/components/ai-interaction-textarea/index.d.ts +10 -0
  356. package/components/ai-interaction-textarea/index.js +21 -0
  357. package/components/ai-interaction-textarea/types.d.ts +12 -0
  358. package/components/ai-interaction-textarea-D88GfE-d.cjs +101 -0
  359. package/components/ai-interaction-textarea-uThAGhCk.js +829 -0
  360. package/components/area-chart-options.config-Bf5kti7Z.cjs +18 -18
  361. package/components/area-chart-options.config-DJnPr93H.js +201 -0
  362. package/components/area-chart-options.de-_tPBzxvf.cjs +18 -18
  363. package/components/area-chart-options.de-pUCTG-s0.js +18 -18
  364. package/components/area-chart-options.en-AuSHs27k.cjs +18 -18
  365. package/components/area-chart-options.en-YNsUeMwN.js +18 -18
  366. package/components/area-chart-options.es-2styw_Fz.js +18 -18
  367. package/components/area-chart-options.es-BzRHGbo6.cjs +18 -18
  368. package/components/area-chart-options.fr--WzQVf2z.js +18 -18
  369. package/components/area-chart-options.fr-DYxUQE3x.cjs +18 -18
  370. package/components/area-chart-options.nl-BTEIqBtE.js +18 -18
  371. package/components/area-chart-options.nl-M0xQQ_la.cjs +18 -18
  372. package/components/area-chart-positioning.config-C2FnA1hx.js +55 -0
  373. package/components/area-chart-positioning.config-D33Vb1eb.cjs +20 -0
  374. package/components/area-chart-slots.config-BOhwdLnr.cjs +18 -18
  375. package/components/area-chart-slots.config-ClE-gYVY.js +55 -0
  376. package/components/axis-options.config-BCP0Z8VI.js +18 -18
  377. package/components/axis-options.config-s-Js3ug-.cjs +18 -18
  378. package/components/axis-options.i18n-BOGRmWjp.js +18 -18
  379. package/components/axis-options.i18n-Cw-DmewV.cjs +18 -18
  380. package/components/bar-chart-options.config-CI17HU2I.cjs +18 -18
  381. package/components/bar-chart-options.config-D1x5WPbL.js +261 -0
  382. package/components/bar-chart-options.de-3qSh2TNr.js +18 -18
  383. package/components/bar-chart-options.de-545XMRGl.cjs +18 -18
  384. package/components/bar-chart-options.en-DAee9yHp.cjs +18 -18
  385. package/components/bar-chart-options.en-DrhQe9rV.js +18 -18
  386. package/components/bar-chart-options.es-BZ1yNzUQ.js +18 -18
  387. package/components/bar-chart-options.es-CfoAEZ-0.cjs +18 -18
  388. package/components/bar-chart-options.fr-5i13R8bs.js +18 -18
  389. package/components/bar-chart-options.fr-C2Ic0Dq0.cjs +18 -18
  390. package/components/bar-chart-options.nl-Bb6XiSDH.cjs +18 -18
  391. package/components/bar-chart-options.nl-DLj-qucU.js +18 -18
  392. package/components/bar-chart-positioning.config-DQlD500_.js +59 -0
  393. package/components/bar-chart-positioning.config-WO4Ioe0e.cjs +20 -0
  394. package/components/bar-chart-slots.config-DMWjAd5a.cjs +18 -18
  395. package/components/bar-chart-slots.config-rMFwFprg.js +50 -0
  396. package/components/base-CKmSGxB1.cjs +20 -0
  397. package/components/base-CTnR_I0T.js +248 -0
  398. package/components/base-store-BhGpnbqi.js +18 -18
  399. package/components/base-store-D5cDq6d4.cjs +18 -18
  400. package/components/bliss-CK3rEnFv.js +18 -18
  401. package/components/bliss-Cggxb-YF.cjs +18 -18
  402. package/components/box-plot-options.config-CooBIc6N.js +334 -0
  403. package/components/box-plot-options.config-Cp6H9fyb.cjs +18 -18
  404. package/components/box-plot-options.de-BkgscmvG.js +18 -18
  405. package/components/box-plot-options.de-alI5_N9d.cjs +18 -18
  406. package/components/box-plot-options.en-5kGlvxx8.js +18 -18
  407. package/components/box-plot-options.en-DUlXF9r9.cjs +18 -18
  408. package/components/box-plot-options.es-CIm06Gpk.cjs +18 -18
  409. package/components/box-plot-options.es-v_B9Xb9H.js +18 -18
  410. package/components/box-plot-options.fr-C5j-Dzj6.cjs +18 -18
  411. package/components/box-plot-options.fr-CRSOCgU5.js +18 -18
  412. package/components/box-plot-options.nl-DtnBbRo5.cjs +18 -18
  413. package/components/box-plot-options.nl-ZQjVZPau.js +18 -18
  414. package/components/box-plot-positioning.config-GYRxuem_.cjs +20 -0
  415. package/components/box-plot-positioning.config-q7jrvDsI.js +48 -0
  416. package/components/box-plot-slots.config-5B_pTjPJ.cjs +18 -18
  417. package/components/box-plot-slots.config-DS2UIfRF.js +40 -0
  418. package/components/bubble-chart-options.config-B6aLA_1d.js +142 -0
  419. package/components/bubble-chart-options.config-e_0LM1Uw.cjs +18 -18
  420. package/components/bubble-chart-options.de-D-ylbLIk.cjs +18 -18
  421. package/components/bubble-chart-options.de-Q2nhAQfu.js +18 -18
  422. package/components/bubble-chart-options.en-DedkSXEc.js +18 -18
  423. package/components/bubble-chart-options.en-YjokcFur.cjs +18 -18
  424. package/components/bubble-chart-options.es-B7bZFlIa.js +18 -18
  425. package/components/bubble-chart-options.es-BiM9exvv.cjs +18 -18
  426. package/components/bubble-chart-options.fr-CB4rhJRR.cjs +18 -18
  427. package/components/bubble-chart-options.fr-Cz9T05xx.js +18 -18
  428. package/components/bubble-chart-options.nl-BeiE-TWG.js +18 -18
  429. package/components/bubble-chart-options.nl-tG0U8b3q.cjs +18 -18
  430. package/components/bubble-chart-positioning.config-DLnRuyql.js +55 -0
  431. package/components/bubble-chart-positioning.config-DcIUqLJw.cjs +20 -0
  432. package/components/bubble-chart-slots.config-2qy2RqaU.js +47 -0
  433. package/components/bubble-chart-slots.config-VHKuntJk.cjs +18 -18
  434. package/components/bullet-chart-options.config-CBmbmhzI.js +76 -0
  435. package/components/bullet-chart-options.config-Drv0yQ4x.cjs +18 -18
  436. package/components/bullet-chart-options.de-DHqxFlm7.js +18 -18
  437. package/components/bullet-chart-options.de-DQhoZIdV.cjs +18 -18
  438. package/components/bullet-chart-options.en-6vj0tO4B.js +18 -18
  439. package/components/bullet-chart-options.en-CTpxw73t.cjs +18 -18
  440. package/components/bullet-chart-options.es-Cc4GzyJG.cjs +18 -18
  441. package/components/bullet-chart-options.es-DeDFLO8Z.js +18 -18
  442. package/components/bullet-chart-options.fr-750sl4sT.js +18 -18
  443. package/components/bullet-chart-options.fr-D2Z5WBfJ.cjs +18 -18
  444. package/components/bullet-chart-options.nl-B7tw2hO6.cjs +18 -18
  445. package/components/bullet-chart-options.nl-CS-xSSVr.js +18 -18
  446. package/components/bullet-chart-positioning.config-BTnig46m.js +56 -0
  447. package/components/bullet-chart-positioning.config-RinL5Qd5.cjs +20 -0
  448. package/components/bullet-chart-slots.config-BaMmwIH0.js +46 -0
  449. package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +18 -18
  450. package/components/calculate-data-field-icon-DenGmW74.cjs +18 -18
  451. package/components/calculate-data-field-icon-DrSg1PuD.js +18 -18
  452. package/components/chart-helpers-DQS2iqSd.js +250 -0
  453. package/components/chart-helpers-ufZ6VbXs.cjs +20 -0
  454. package/components/choropleth-map-options.config-DWWydGJ3.js +352 -0
  455. package/components/choropleth-map-options.config-VG10yjwC.cjs +18 -18
  456. package/components/choropleth-map-options.de-DXLufNgZ.js +18 -18
  457. package/components/choropleth-map-options.de-GB7-eHSP.cjs +18 -18
  458. package/components/choropleth-map-options.en-CT3LM0TX.cjs +18 -18
  459. package/components/choropleth-map-options.en-DGENug11.js +18 -18
  460. package/components/choropleth-map-options.es-D13n2Wh1.cjs +18 -18
  461. package/components/choropleth-map-options.es-Dn2Cv5D-.js +18 -18
  462. package/components/choropleth-map-options.fr-CK0tUEO3.js +18 -18
  463. package/components/choropleth-map-options.fr-CqIpVZuN.cjs +18 -18
  464. package/components/choropleth-map-options.nl-CwA4TtvT.js +18 -18
  465. package/components/choropleth-map-options.nl-YqFPhBJJ.cjs +18 -18
  466. package/components/choropleth-map-positioning.config-CFKgd4_j.js +55 -0
  467. package/components/choropleth-map-positioning.config-cI55IMsI.cjs +20 -0
  468. package/components/choropleth-map-slots.config-CZKWF1qV.cjs +18 -18
  469. package/components/choropleth-map-slots.config-DqOi1kCn.js +53 -0
  470. package/components/circle-pack-chart-options.config-BmX0w3cH.cjs +18 -18
  471. package/components/circle-pack-chart-options.config-D2RCikyA.js +60 -0
  472. package/components/circle-pack-chart-options.de-BrrPqSBf.js +18 -18
  473. package/components/circle-pack-chart-options.de-Dlg-Dtyq.cjs +18 -18
  474. package/components/circle-pack-chart-options.en-ARMcjtyu.cjs +18 -18
  475. package/components/circle-pack-chart-options.en-BdoNRanZ.js +18 -18
  476. package/components/circle-pack-chart-options.es-CHFiuQ-k.cjs +18 -18
  477. package/components/circle-pack-chart-options.es-DLQWaD31.js +18 -18
  478. package/components/circle-pack-chart-options.fr-B66YY6lg.js +18 -18
  479. package/components/circle-pack-chart-options.fr-CxDnnCxR.cjs +18 -18
  480. package/components/circle-pack-chart-options.nl-Dp-iaTw6.cjs +18 -18
  481. package/components/circle-pack-chart-options.nl-kOeRMk4n.js +18 -18
  482. package/components/circle-pack-chart-positioning.config-DdX2w_iY.cjs +20 -0
  483. package/components/circle-pack-chart-positioning.config-DuS19RCV.js +48 -0
  484. package/components/circle-pack-chart-slots.config-B7_1p86m.js +38 -0
  485. package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +18 -18
  486. package/components/circular-gauge-options.config-CSIUw2VN.cjs +18 -18
  487. package/components/circular-gauge-options.config-syWQJHKT.js +193 -0
  488. package/components/circular-gauge-options.de-CXNpTJ5Q.cjs +18 -18
  489. package/components/circular-gauge-options.de-D1DVq08k.js +18 -18
  490. package/components/circular-gauge-options.en-Cbvt0Mn4.cjs +18 -18
  491. package/components/circular-gauge-options.en-CsH_VhDL.js +18 -18
  492. package/components/circular-gauge-options.es-BkiRMNis.js +18 -18
  493. package/components/circular-gauge-options.es-CHmDAZjB.cjs +18 -18
  494. package/components/circular-gauge-options.fr-C4mL6X8Z.cjs +18 -18
  495. package/components/circular-gauge-options.fr-CxySNula.js +18 -18
  496. package/components/circular-gauge-options.nl-B27G1yLw.cjs +18 -18
  497. package/components/circular-gauge-options.nl-CcQpr_DM.js +18 -18
  498. package/components/circular-gauge-positioning.config-CM-uxPFp.js +48 -0
  499. package/components/circular-gauge-positioning.config-ZYoKdrRK.cjs +20 -0
  500. package/components/circular-gauge-slots.config-BxjCP1ao.js +39 -0
  501. package/components/circular-gauge-slots.config-DUHabt3G.cjs +18 -18
  502. package/components/classic-BLOsKyb3.js +18 -18
  503. package/components/classic-dark-B-bGXFgE.cjs +18 -18
  504. package/components/classic-dark-Bw01Wzq_.js +18 -18
  505. package/components/classic-fniwVVvX.cjs +18 -18
  506. package/components/color-BWnYpOu7.js +18 -18
  507. package/components/color-Bl8h58rV.cjs +18 -18
  508. package/components/color-palettes-BFpQSXfW.cjs +18 -18
  509. package/components/color-palettes-D4z1ONyx.js +18 -18
  510. package/components/color-range-utils-C3HJJUS1.cjs +18 -18
  511. package/components/color-range-utils-CiqduHJS.js +18 -18
  512. package/components/column-chart-options.config-B2LIl9lL.js +260 -0
  513. package/components/column-chart-options.config-xmSH4NKF.cjs +18 -18
  514. package/components/column-chart-options.de-BX13JkAO.cjs +18 -18
  515. package/components/column-chart-options.de-CIYtauiG.js +18 -18
  516. package/components/column-chart-options.en-BkAsfXYV.js +18 -18
  517. package/components/column-chart-options.en-DAee9yHp.cjs +18 -18
  518. package/components/column-chart-options.es-CClMQLE-.cjs +18 -18
  519. package/components/column-chart-options.es-jWM7TxS7.js +18 -18
  520. package/components/column-chart-options.fr-BB6301nS.js +18 -18
  521. package/components/column-chart-options.fr-C2Ic0Dq0.cjs +18 -18
  522. package/components/column-chart-options.nl-Bb6XiSDH.cjs +18 -18
  523. package/components/column-chart-options.nl-HUMDgKdl.js +18 -18
  524. package/components/column-chart-positioning.config-B0jPobmy.cjs +20 -0
  525. package/components/column-chart-positioning.config-CePNg7vW.js +55 -0
  526. package/components/column-chart-slots.config-CM5aytbj.cjs +18 -18
  527. package/components/column-chart-slots.config-D6MBTcj4.js +50 -0
  528. package/components/combination-chart-options.config-0ATFph8S.js +139 -0
  529. package/components/combination-chart-options.config-IEamJGCp.cjs +18 -18
  530. package/components/combination-chart-options.de-BiGjuWUS.cjs +18 -18
  531. package/components/combination-chart-options.de-DVJ9sfLC.js +18 -18
  532. package/components/combination-chart-options.en-B5piXq82.js +18 -18
  533. package/components/combination-chart-options.en-e4XMalU0.cjs +18 -18
  534. package/components/combination-chart-options.es-BmuyyP32.js +18 -18
  535. package/components/combination-chart-options.es-OXb8nozF.cjs +18 -18
  536. package/components/combination-chart-options.fr-CIrnpWEu.js +18 -18
  537. package/components/combination-chart-options.fr-CYzANyZs.cjs +18 -18
  538. package/components/combination-chart-options.nl-BDJ7t0BY.js +18 -18
  539. package/components/combination-chart-options.nl-DyAUjvqC.cjs +18 -18
  540. package/components/combination-chart-positioning.config-BXD_8ZPi.cjs +20 -0
  541. package/components/combination-chart-positioning.config-D0O5QLnk.js +48 -0
  542. package/components/combination-chart-slots.config-BwUOXFCR.cjs +18 -18
  543. package/components/combination-chart-slots.config-dYT9lz8M.js +43 -0
  544. package/components/conditional-number-options.config-Bv2xONtI.js +210 -0
  545. package/components/conditional-number-options.config-ZVtstIjn.cjs +18 -18
  546. package/components/conditional-number-options.de-2xle1pGz.js +18 -18
  547. package/components/conditional-number-options.de-B4pb0dOt.cjs +18 -18
  548. package/components/conditional-number-options.en-JLoF4JZy.js +18 -18
  549. package/components/conditional-number-options.en-RlShluZP.cjs +18 -18
  550. package/components/conditional-number-options.es-C_g0UqIh.js +18 -18
  551. package/components/conditional-number-options.es-D6Thuvvq.cjs +18 -18
  552. package/components/conditional-number-options.fr-C5cASVba.js +18 -18
  553. package/components/conditional-number-options.fr-CoObS5Et.cjs +18 -18
  554. package/components/conditional-number-options.nl-BWXoNc8Z.cjs +18 -18
  555. package/components/conditional-number-options.nl-DiV3DzXR.js +18 -18
  556. package/components/conditional-number-positioning.config-B4Qh1ulg.js +48 -0
  557. package/components/conditional-number-positioning.config-D2AZIyv0.cjs +20 -0
  558. package/components/conditional-number-slots.config-B7maHIaG.cjs +18 -18
  559. package/components/conditional-number-slots.config-DtYkqtN8.js +39 -0
  560. package/components/convert-datasets-to-data-fields-B13rl1an.cjs +20 -0
  561. package/components/convert-datasets-to-data-fields-PmQzeVLG.js +68 -0
  562. package/components/create-lazy-loader-BO_oTDF5.js +31 -0
  563. package/components/create-lazy-loader-DYPgQh0L.cjs +20 -0
  564. package/components/cs-a-HHJy3d.cjs +18 -18
  565. package/components/cs-wc4Fl7IN.js +18 -18
  566. package/components/da-BuDewcQL.cjs +18 -18
  567. package/components/da-Byf4w3lJ.js +18 -18
  568. package/components/data-broker-BNXS5_qc.js +1684 -0
  569. package/components/data-broker-DWgqaHoY.cjs +20 -0
  570. package/components/data-field/index.cjs +19 -19
  571. package/components/data-field/index.d.ts +1 -0
  572. package/components/data-field/index.js +19 -26
  573. package/components/data-field-B8x_Zpwq.js +122 -0
  574. package/components/data-field-Luhp8f4X.cjs +54 -0
  575. package/components/data-field-level/data-field-level.d.ts +40 -0
  576. package/components/data-field-level/helpers/generate-preview.d.ts +9 -0
  577. package/components/data-field-level/index.cjs +20 -0
  578. package/components/data-field-level/index.d.ts +8 -0
  579. package/components/data-field-level/index.js +21 -0
  580. package/components/data-field-level-C0qStour.js +248 -0
  581. package/components/data-field-level-C21_h3uh.cjs +55 -0
  582. package/components/data-field-panel/index.cjs +19 -19
  583. package/components/data-field-panel/index.d.ts +1 -0
  584. package/components/data-field-panel/index.js +19 -26
  585. package/components/data-field-panel-D6N-9rBI.cjs +87 -0
  586. package/components/data-field-panel-DQixMmrk.js +386 -0
  587. package/components/data-fields-select/data-fields-select.d.ts +137 -0
  588. package/components/data-fields-select/index.cjs +20 -0
  589. package/components/data-fields-select/index.d.ts +9 -0
  590. package/components/data-fields-select/index.js +21 -0
  591. package/components/data-fields-select/types.d.ts +4 -0
  592. package/components/data-fields-select-A-MPXFQo.cjs +43 -0
  593. package/components/data-fields-select-C74Bnsgg.js +290 -0
  594. package/components/dataset-icon/dataset-icon.d.ts +46 -0
  595. package/components/dataset-icon/index.cjs +20 -0
  596. package/components/dataset-icon/index.d.ts +8 -0
  597. package/components/dataset-icon/index.js +21 -0
  598. package/components/dataset-icon/types.d.ts +11 -0
  599. package/components/dataset-icon-CP_oZswB.cjs +62 -0
  600. package/components/dataset-icon-DUtfpbLX.js +121 -0
  601. package/components/dataset-selector-list/dataset-selector-list.d.ts +106 -0
  602. package/components/dataset-selector-list/index.cjs +20 -0
  603. package/components/dataset-selector-list/index.d.ts +8 -0
  604. package/components/dataset-selector-list/index.js +21 -0
  605. package/components/dataset-selector-list-CKIRMcCZ.js +324 -0
  606. package/components/dataset-selector-list-CtYE58f4.cjs +75 -0
  607. package/components/dataset-selector-row/dataset-selector-row.d.ts +144 -0
  608. package/components/dataset-selector-row/index.cjs +20 -0
  609. package/components/dataset-selector-row/index.d.ts +9 -0
  610. package/components/dataset-selector-row/index.js +21 -0
  611. package/components/dataset-selector-row-B2-87fd2.js +454 -0
  612. package/components/dataset-selector-row-B5oziKE4.cjs +104 -0
  613. package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +18 -18
  614. package/components/date-comparison-filter-options.config-DgLx-m3L.js +126 -0
  615. package/components/date-comparison-filter-options.de-BSRz6o0Y.js +18 -18
  616. package/components/date-comparison-filter-options.de-DJ43Wuh1.cjs +18 -18
  617. package/components/date-comparison-filter-options.en-BeWcjUc3.cjs +18 -18
  618. package/components/date-comparison-filter-options.en-DLbsNe_t.js +18 -18
  619. package/components/date-comparison-filter-options.es-ChO2qlIh.js +18 -18
  620. package/components/date-comparison-filter-options.es-mBbFqdyP.cjs +18 -18
  621. package/components/date-comparison-filter-options.fr-CJYSimcC.cjs +18 -18
  622. package/components/date-comparison-filter-options.fr-D9HKPj4L.js +18 -18
  623. package/components/date-comparison-filter-options.nl-BOMQo1X3.js +18 -18
  624. package/components/date-comparison-filter-options.nl-DMCiGzTv.cjs +18 -18
  625. package/components/date-comparison-filter-positioning.config-DZI9jN5L.cjs +18 -18
  626. package/components/date-comparison-filter-positioning.config-DokVHoP8.js +18 -18
  627. package/components/date-comparison-filter-slots.config-BKZ13uzB.js +33 -0
  628. package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +18 -18
  629. package/components/date-filter-options.config-Cbiy0QKd.js +118 -0
  630. package/components/date-filter-options.config-saR_u4w-.cjs +18 -18
  631. package/components/date-filter-options.de-DVRUmqQh.js +18 -18
  632. package/components/date-filter-options.de-Do8uE7X4.cjs +18 -18
  633. package/components/date-filter-options.en-DGay_JgN.cjs +18 -18
  634. package/components/date-filter-options.en-Df-q6Eqf.js +18 -18
  635. package/components/date-filter-options.es-dwt_ouf1.cjs +18 -18
  636. package/components/date-filter-options.es-eclXOdtw.js +18 -18
  637. package/components/date-filter-options.fr-B6CHuun3.js +18 -18
  638. package/components/date-filter-options.fr-D-OlAJSs.cjs +18 -18
  639. package/components/date-filter-options.nl-0pj5_uvF.cjs +18 -18
  640. package/components/date-filter-options.nl-qgltgj2Q.js +18 -18
  641. package/components/date-filter-positioning.config-CtEFg3RO.cjs +18 -18
  642. package/components/date-filter-positioning.config-D8wFL4L9.js +18 -18
  643. package/components/date-filter-slots.config-Cuzz0RjE.cjs +18 -18
  644. package/components/date-filter-slots.config-SzWky1y7.js +37 -0
  645. package/components/de-BLMiWrvE.cjs +18 -18
  646. package/components/de-DbhgEHM0.js +594 -0
  647. package/components/de-OHJ9YCFU.js +18 -18
  648. package/components/de-QUHZWKOb.cjs +20 -0
  649. package/components/decompose-numeric-format-DGJua3rU.cjs +20 -0
  650. package/components/decompose-numeric-format-DS0j2wa1.js +36 -0
  651. package/components/decorate-DCJt-2rt.cjs +20 -0
  652. package/components/decorate-DyMgX_Uh.js +28 -0
  653. package/components/default-B35Bj34G.js +18 -18
  654. package/components/default-B5D3aZAS.cjs +18 -18
  655. package/components/default-acceptable-data-field-types-DFOFWWnT.js +53 -0
  656. package/components/default-acceptable-data-field-types-fPsz64ka.cjs +20 -0
  657. package/components/default-dark-BOvJQVaq.cjs +18 -18
  658. package/components/default-dark-CRMTsWZ1.js +18 -18
  659. package/components/display-settings/display-settings.d.ts +117 -0
  660. package/components/display-settings/index.cjs +20 -0
  661. package/components/display-settings/index.d.ts +8 -0
  662. package/components/display-settings/index.js +21 -0
  663. package/components/display-settings/types.d.ts +9 -0
  664. package/components/display-settings-BKy_wx8f.cjs +142 -0
  665. package/components/display-settings-DjGeyjuE.js +316 -0
  666. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  667. package/components/display-settings-binning/index.cjs +20 -0
  668. package/components/display-settings-binning/index.d.ts +8 -0
  669. package/components/display-settings-binning/index.js +21 -0
  670. package/components/display-settings-binning-CMizwezp.cjs +56 -0
  671. package/components/display-settings-binning-XDAEuUag.js +111 -0
  672. package/components/display-settings-datetime/display-settings-datetime.d.ts +86 -0
  673. package/components/display-settings-datetime/index.cjs +20 -0
  674. package/components/display-settings-datetime/index.d.ts +8 -0
  675. package/components/display-settings-datetime/index.js +21 -0
  676. package/components/display-settings-datetime-Bm-1QVh7.cjs +217 -0
  677. package/components/display-settings-datetime-DBA92-9E.js +414 -0
  678. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +29 -0
  679. package/components/display-settings-grand-totals/index.cjs +20 -0
  680. package/components/display-settings-grand-totals/index.d.ts +8 -0
  681. package/components/display-settings-grand-totals/index.js +21 -0
  682. package/components/display-settings-grand-totals-9I9C6ZUL.cjs +44 -0
  683. package/components/display-settings-grand-totals-D28lZSE8.js +90 -0
  684. package/components/display-settings-numeric/display-settings-numeric.d.ts +82 -0
  685. package/components/display-settings-numeric/helpers/constants.d.ts +19 -0
  686. package/components/display-settings-numeric/index.cjs +20 -0
  687. package/components/display-settings-numeric/index.d.ts +8 -0
  688. package/components/display-settings-numeric/index.js +21 -0
  689. package/components/display-settings-numeric-p2zbXQAb.js +480 -0
  690. package/components/display-settings-numeric-rRqNzu5z.cjs +190 -0
  691. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +76 -0
  692. package/components/display-settings-period-over-period/helpers/constants.d.ts +44 -0
  693. package/components/display-settings-period-over-period/index.cjs +20 -0
  694. package/components/display-settings-period-over-period/index.d.ts +8 -0
  695. package/components/display-settings-period-over-period/index.js +21 -0
  696. package/components/display-settings-period-over-period-Bz0Ge8RZ.cjs +227 -0
  697. package/components/display-settings-period-over-period-DKnwx1wY.js +443 -0
  698. package/components/donut-chart-options.config-C8wpZzyJ.js +217 -0
  699. package/components/donut-chart-options.config-LbmJpNlm.cjs +18 -18
  700. package/components/donut-chart-options.de-MwhxVUQU.cjs +18 -18
  701. package/components/donut-chart-options.de-yLZjyrqC.js +18 -18
  702. package/components/donut-chart-options.en-CtvZekZO.js +18 -18
  703. package/components/donut-chart-options.en-Z9kCIcjz.cjs +18 -18
  704. package/components/donut-chart-options.es-C89OYrl4.js +18 -18
  705. package/components/donut-chart-options.es-Ch83fRxI.cjs +18 -18
  706. package/components/donut-chart-options.fr-B7JWWsro.cjs +18 -18
  707. package/components/donut-chart-options.fr-Cy4UUjdS.js +18 -18
  708. package/components/donut-chart-options.nl-BT6vFbJ5.js +18 -18
  709. package/components/donut-chart-options.nl-Brxyw7wD.cjs +18 -18
  710. package/components/donut-chart-positioning.config-CunIPDa1.cjs +20 -0
  711. package/components/donut-chart-positioning.config-wbqlK870.js +48 -0
  712. package/components/donut-chart-slots.config-Bi08z-XB.cjs +18 -18
  713. package/components/donut-chart-slots.config-fGqtoKZi.js +39 -0
  714. package/components/dropdown-filter-options.config-BRzYD0KE.cjs +18 -18
  715. package/components/dropdown-filter-options.config-DkiapYtc.js +153 -0
  716. package/components/dropdown-filter-options.de-BdvWDGQ4.cjs +18 -18
  717. package/components/dropdown-filter-options.de-CGwxbXwe.js +18 -18
  718. package/components/dropdown-filter-options.en-D4YCo5Bj.js +18 -18
  719. package/components/dropdown-filter-options.en-DEHrGxy0.cjs +18 -18
  720. package/components/dropdown-filter-options.es-BvFyqxrr.js +18 -18
  721. package/components/dropdown-filter-options.es-C6qkLl6c.cjs +18 -18
  722. package/components/dropdown-filter-options.fr-9KlpP9JQ.js +18 -18
  723. package/components/dropdown-filter-options.fr-DZxfuy7q.cjs +18 -18
  724. package/components/dropdown-filter-options.nl-4HUfHHPT.js +18 -18
  725. package/components/dropdown-filter-options.nl-dmpP9bir.cjs +18 -18
  726. package/components/dropdown-filter-positioning.config-Ck97Moc_.cjs +18 -18
  727. package/components/dropdown-filter-positioning.config-D1tdnuCP.js +18 -18
  728. package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +18 -18
  729. package/components/dropdown-filter-slots.config-DPcT6v-9.js +38 -0
  730. package/components/en-CcLhGxIh.js +21 -0
  731. package/components/en-GB-DzkdeUQh.js +28 -0
  732. package/components/en-GB-uxY5qmIM.cjs +20 -0
  733. package/components/en-US-CcLhGxIh.js +21 -0
  734. package/components/en-US-q_Ruzags.cjs +20 -0
  735. package/components/en-q_Ruzags.cjs +20 -0
  736. package/components/es-D8MxHOsN.cjs +18 -18
  737. package/components/es-DRT-oP0t.cjs +20 -0
  738. package/components/es-DlaaoQZV.js +594 -0
  739. package/components/es-DuN6cMja.js +18 -18
  740. package/components/evolution-number-options.config-Ca9ABNVM.js +230 -0
  741. package/components/evolution-number-options.config-CoGBgLLw.cjs +18 -18
  742. package/components/evolution-number-options.de-BrdcqfjF.js +18 -18
  743. package/components/evolution-number-options.de-CjNBpzAw.cjs +18 -18
  744. package/components/evolution-number-options.en-B9BpR4nq.cjs +18 -18
  745. package/components/evolution-number-options.en-Sd6L4_T9.js +18 -18
  746. package/components/evolution-number-options.es-CxbiY9G6.cjs +18 -18
  747. package/components/evolution-number-options.es-RgSav5iQ.js +18 -18
  748. package/components/evolution-number-options.fr-BD73JeDU.js +18 -18
  749. package/components/evolution-number-options.fr-Cae20bgZ.cjs +18 -18
  750. package/components/evolution-number-options.nl-BJ-5M5kB.cjs +18 -18
  751. package/components/evolution-number-options.nl-WHBQ04_S.js +18 -18
  752. package/components/evolution-number-positioning.config-Blqi63gg.js +48 -0
  753. package/components/evolution-number-positioning.config-CCctf0ua.cjs +20 -0
  754. package/components/evolution-number-slots.config-CKawNqUS.js +37 -0
  755. package/components/evolution-number-slots.config-CikuQYgm.cjs +18 -18
  756. package/components/fi-CzBe3q93.cjs +18 -18
  757. package/components/fi-vuFNiOkH.js +18 -18
  758. package/components/filter-expression-picker/filter-expression-picker.d.ts +77 -0
  759. package/components/filter-expression-picker/index.cjs +20 -0
  760. package/components/filter-expression-picker/index.d.ts +7 -0
  761. package/components/filter-expression-picker/index.js +21 -0
  762. package/components/filter-expression-picker-B0P8cowp.cjs +40 -0
  763. package/components/filter-expression-picker-szMmfqsR.js +434 -0
  764. package/components/filter-item/filter-item.d.ts +142 -0
  765. package/components/filter-item/index.cjs +20 -0
  766. package/components/filter-item/index.d.ts +8 -0
  767. package/components/filter-item/index.js +21 -0
  768. package/components/filter-item-7EsWb-O2.js +793 -0
  769. package/components/filter-item-CVykp1kT.cjs +111 -0
  770. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +91 -0
  771. package/components/filter-parameter-picker/filter-parameter-picker.helpers.d.ts +8 -0
  772. package/components/filter-parameter-picker/index.cjs +20 -0
  773. package/components/filter-parameter-picker/index.d.ts +9 -0
  774. package/components/filter-parameter-picker/index.js +21 -0
  775. package/components/filter-parameter-picker/types.d.ts +4 -0
  776. package/components/filter-parameter-picker-DgwBwHQH.js +372 -0
  777. package/components/filter-parameter-picker-DmOrl-n_.cjs +124 -0
  778. package/components/filter-value-picker/filter-value-picker.d.ts +72 -0
  779. package/components/filter-value-picker/index.cjs +20 -0
  780. package/components/filter-value-picker/index.d.ts +7 -0
  781. package/components/filter-value-picker/index.js +21 -0
  782. package/components/filter-value-picker-BJh9haNV.js +170 -0
  783. package/components/filter-value-picker-CdNL2K5B.cjs +69 -0
  784. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +51 -0
  785. package/components/filter-value-picker-datetime/index.cjs +20 -0
  786. package/components/filter-value-picker-datetime/index.d.ts +7 -0
  787. package/components/filter-value-picker-datetime/index.js +21 -0
  788. package/components/filter-value-picker-datetime-BYOLwJ34.cjs +51 -0
  789. package/components/filter-value-picker-datetime-C1Xmlu97.js +160 -0
  790. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +105 -0
  791. package/components/filter-value-picker-hierarchy/index.cjs +20 -0
  792. package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
  793. package/components/filter-value-picker-hierarchy/index.js +21 -0
  794. package/components/filter-value-picker-hierarchy-B5zja0r9.js +316 -0
  795. package/components/filter-value-picker-hierarchy-DG1L63uQ.cjs +54 -0
  796. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +89 -0
  797. package/components/filter-value-picker-numeric/index.cjs +20 -0
  798. package/components/filter-value-picker-numeric/index.d.ts +7 -0
  799. package/components/filter-value-picker-numeric/index.js +21 -0
  800. package/components/filter-value-picker-numeric-Dt8iVeSW.cjs +54 -0
  801. package/components/filter-value-picker-numeric-egrpgWQs.js +237 -0
  802. package/components/filters/filters.d.ts +62 -2
  803. package/components/filters/index.cjs +19 -19
  804. package/components/filters/index.d.ts +2 -1
  805. package/components/filters/index.js +20 -27
  806. package/components/filters/types.d.ts +2 -0
  807. package/components/filters-3c0U_tkZ.cjs +199 -0
  808. package/components/filters-Ejth-3Wx.js +927 -0
  809. package/components/formatter-BeXmurVe.cjs +20 -0
  810. package/components/formatter-Cq5dFCyU.js +1473 -0
  811. package/components/formula/formula.d.ts +2 -2
  812. package/components/formula/index.cjs +19 -19
  813. package/components/formula/index.js +19 -26
  814. package/components/formula-COUex0mE.cjs +45 -0
  815. package/components/formula-TxxpaABT.js +139 -0
  816. package/components/formula-codemirror/formula-codemirror.d.ts +79 -0
  817. package/components/formula-codemirror/index.d.ts +7 -0
  818. package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +125 -0
  819. package/components/formula-codemirror/pills/formula-aggregation/index.d.ts +7 -0
  820. package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +28 -0
  821. package/components/formula-codemirror/pills/formula-empty-argument-pill/index.d.ts +7 -0
  822. package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +38 -0
  823. package/components/formula-codemirror-CiCv8RZ6.js +12019 -0
  824. package/components/formula-codemirror-D-tTt_QQ.cjs +215 -0
  825. package/components/formula-display-store-0CsEGwDZ.js +1087 -0
  826. package/components/formula-display-store-DxlIedpQ.cjs +20 -0
  827. package/components/formula-draggable-field/formula-draggable-field.d.ts +53 -0
  828. package/components/formula-draggable-field/index.d.ts +8 -0
  829. package/components/formula-draggable-field/types.d.ts +24 -0
  830. package/components/formula-editor/formula-aggregations-list.d.ts +2 -2
  831. package/components/formula-editor/formula-datasets-list.d.ts +2 -2
  832. package/components/formula-editor/formula-description.d.ts +1 -1
  833. package/components/formula-editor/formula-editor.d.ts +1 -1
  834. package/components/formula-editor/formula-functions-list.d.ts +2 -2
  835. package/components/formula-editor/index.cjs +19 -19
  836. package/components/formula-editor/index.d.ts +4 -3
  837. package/components/formula-editor/index.js +22 -28
  838. package/components/formula-editor-CqQJTOTz.cjs +224 -0
  839. package/components/formula-editor-Cv5jzQk-.js +691 -0
  840. package/components/formula-field/formula-field.d.ts +20 -0
  841. package/components/formula-field/index.cjs +20 -0
  842. package/components/formula-field/index.d.ts +7 -0
  843. package/components/formula-field/index.js +21 -0
  844. package/components/formula-field-0iPV3fLW.cjs +20 -0
  845. package/components/formula-field-BdVrTi10.js +41 -0
  846. package/components/formula-input-base-DASY-p67.cjs +49 -0
  847. package/components/formula-input-base-DtHQjbYK.js +236 -0
  848. package/components/fr-BlAUad9k.cjs +18 -18
  849. package/components/fr-CedzN2zj.js +594 -0
  850. package/components/fr-CwOLJGv2.js +18 -18
  851. package/components/fr-DpSoshlB.cjs +20 -0
  852. package/components/funnel-chart-options.config-CygQsQVD.js +211 -0
  853. package/components/funnel-chart-options.config-DgpM8mWb.cjs +18 -18
  854. package/components/funnel-chart-options.de-CW29wkd4.cjs +18 -18
  855. package/components/funnel-chart-options.de-DIoKO3fr.js +18 -18
  856. package/components/funnel-chart-options.en-CGVFwHzU.cjs +18 -18
  857. package/components/funnel-chart-options.en-Doj4mREG.js +18 -18
  858. package/components/funnel-chart-options.es-Bcot5MS3.cjs +18 -18
  859. package/components/funnel-chart-options.es-D-GP_b6C.js +18 -18
  860. package/components/funnel-chart-options.fr-7ZROacsE.cjs +18 -18
  861. package/components/funnel-chart-options.fr-BoQkeuls.js +18 -18
  862. package/components/funnel-chart-options.nl-C0VZ6Ure.cjs +18 -18
  863. package/components/funnel-chart-options.nl-CRq-RjxK.js +18 -18
  864. package/components/funnel-chart-positioning.config-BFJSJQal.js +48 -0
  865. package/components/funnel-chart-positioning.config-KODHU82o.cjs +20 -0
  866. package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +18 -18
  867. package/components/funnel-chart-slots.config-CfnSH4Ay.js +43 -0
  868. package/components/get-css-variable-CBXsAxR6.cjs +20 -0
  869. package/components/get-css-variable-DYnldi15.js +63 -0
  870. package/components/get-dataset-name-08hRODwz.js +32 -0
  871. package/components/get-dataset-name-B28v2_Ne.cjs +20 -0
  872. package/components/groupings-BjVaG4Vo.cjs +20 -0
  873. package/components/groupings-CzzRrgGp.js +52 -0
  874. package/components/guidelines-options.config-D-ZuReR_.cjs +18 -18
  875. package/components/guidelines-options.config-DyedEeX2.js +18 -18
  876. package/components/he-CdtHCved.cjs +18 -18
  877. package/components/he-Cs_3gvpL.js +18 -18
  878. package/components/heat-map-options.config-DtDh9Gpy.cjs +18 -18
  879. package/components/heat-map-options.config-X96sw-BV.js +226 -0
  880. package/components/heat-map-options.de-CdqO8c7P.js +18 -18
  881. package/components/heat-map-options.de-Zq-m7g1c.cjs +18 -18
  882. package/components/heat-map-options.en-BAnXacHE.js +18 -18
  883. package/components/heat-map-options.en-CbP14v8z.cjs +18 -18
  884. package/components/heat-map-options.es-8rTCVZlw.js +18 -18
  885. package/components/heat-map-options.es-CUkrnKed.cjs +18 -18
  886. package/components/heat-map-options.fr-DXcosm8B.cjs +18 -18
  887. package/components/heat-map-options.fr-DbGhKWbq.js +18 -18
  888. package/components/heat-map-options.nl-B8LsAqqA.cjs +18 -18
  889. package/components/heat-map-options.nl-nw2vqBOn.js +18 -18
  890. package/components/heat-map-positioning.config-BQY32KQK.cjs +20 -0
  891. package/components/heat-map-positioning.config-CjKY0hww.js +48 -0
  892. package/components/heat-map-slots.config-D2ypExJQ.js +37 -0
  893. package/components/heat-map-slots.config-Wp_oS8JQ.cjs +18 -18
  894. package/components/heat-table-options.config-CugBuoUA.cjs +18 -18
  895. package/components/heat-table-options.config-D6dA9J97.js +269 -0
  896. package/components/heat-table-options.de-D16uyY3b.cjs +18 -18
  897. package/components/heat-table-options.de-PCwpTsHu.js +18 -18
  898. package/components/heat-table-options.en-DCNhZ0Qw.js +18 -18
  899. package/components/heat-table-options.en-Dhd_yZdX.cjs +18 -18
  900. package/components/heat-table-options.es-DPqviw02.cjs +18 -18
  901. package/components/heat-table-options.es-Dhtu0ztS.js +18 -18
  902. package/components/heat-table-options.fr-BVwdrQWA.cjs +18 -18
  903. package/components/heat-table-options.fr-dtKsuwpe.js +18 -18
  904. package/components/heat-table-options.nl-BAiKDY6k.cjs +18 -18
  905. package/components/heat-table-options.nl-Bc0JFpfk.js +18 -18
  906. package/components/heat-table-positioning.config--fFwMrAO.js +55 -0
  907. package/components/heat-table-positioning.config-B13fdFwL.cjs +20 -0
  908. package/components/heat-table-slots.config-B1iOn6ay.js +49 -0
  909. package/components/heat-table-slots.config-BN7rtHZG.cjs +18 -18
  910. package/components/helpers-B2IWxa9q.cjs +18 -18
  911. package/components/helpers-irnB2xbq.js +18 -18
  912. package/components/hexbin-map-options.config-BGmgxnMh.cjs +18 -18
  913. package/components/hexbin-map-options.config-FK9DrXGD.js +278 -0
  914. package/components/hexbin-map-options.de-Ch56ViJL.cjs +18 -18
  915. package/components/hexbin-map-options.de-IOtNvdRA.js +18 -18
  916. package/components/hexbin-map-options.en-BHNWW3n5.cjs +18 -18
  917. package/components/hexbin-map-options.en-DKEF0zQn.js +18 -18
  918. package/components/hexbin-map-options.es-CinY6Q9x.cjs +18 -18
  919. package/components/hexbin-map-options.es-FkXMepZ7.js +18 -18
  920. package/components/hexbin-map-options.fr-3EQtw1--.cjs +18 -18
  921. package/components/hexbin-map-options.fr-DT7-Cefu.js +18 -18
  922. package/components/hexbin-map-options.nl-2P7aufJe.cjs +18 -18
  923. package/components/hexbin-map-options.nl-BwgDBrw4.js +18 -18
  924. package/components/hexbin-map-positioning.config-62pc9bSv.js +48 -0
  925. package/components/hexbin-map-positioning.config-lvlhff07.cjs +20 -0
  926. package/components/hexbin-map-slots.config-CC1xZINm.js +37 -0
  927. package/components/hexbin-map-slots.config-mx5zUTrA.cjs +18 -18
  928. package/components/hu-BXedq4ZF.js +18 -18
  929. package/components/hu-D0kNP1hN.cjs +18 -18
  930. package/components/icon-element-DpN-9yaN.cjs +18 -18
  931. package/components/icon-element-_jY440X2.js +18 -18
  932. package/components/image-options.config-DZ5q1D63.cjs +18 -18
  933. package/components/image-options.config-DxF0RSUF.js +153 -0
  934. package/components/image-options.de-Bh8QqYb_.js +18 -18
  935. package/components/image-options.de-Bm7MsFjT.cjs +18 -18
  936. package/components/image-options.en-Bt3w6SPu.cjs +18 -18
  937. package/components/image-options.en-D2iUVarz.js +18 -18
  938. package/components/image-options.es-CKpabSfB.js +18 -18
  939. package/components/image-options.es-ecJMtP0F.cjs +18 -18
  940. package/components/image-options.fr-D5P3FQRB.cjs +18 -18
  941. package/components/image-options.fr-vfaeguWy.js +18 -18
  942. package/components/image-options.nl-B16JINhD.js +18 -18
  943. package/components/image-options.nl-B7M__YOZ.cjs +18 -18
  944. package/components/image-slots.config-BPJRdlMR.cjs +18 -18
  945. package/components/image-slots.config-Ba8NXeCH.js +24 -0
  946. package/components/index.cjs +19 -858
  947. package/components/index.js +88 -6808
  948. package/components/info-tooltip-options.config-B9T0cwSM.cjs +18 -18
  949. package/components/info-tooltip-options.config-BmSMkirf.js +18 -18
  950. package/components/info-tooltip-options.i18n-B3u0H74j.cjs +18 -18
  951. package/components/info-tooltip-options.i18n-CDx47Py-.js +18 -18
  952. package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
  953. package/components/interactive-viz-item/index.cjs +20 -0
  954. package/components/interactive-viz-item/index.d.ts +12 -0
  955. package/components/interactive-viz-item/index.js +22 -0
  956. package/components/interactive-viz-item/interactive-viz-item.d.ts +114 -0
  957. package/components/interactive-viz-item/load-add-to-dashboard.d.ts +1 -0
  958. package/components/interactive-viz-item/load-config-panel.d.ts +2 -0
  959. package/components/interactive-viz-item/types.d.ts +117 -0
  960. package/components/interactive-viz-item-DmODdYqM.js +528 -0
  961. package/components/interactive-viz-item-YIIIP8st.cjs +261 -0
  962. package/components/interactivity-options.config-BjEGNaIz.js +18 -18
  963. package/components/interactivity-options.config-Bzk2L-qh.cjs +18 -18
  964. package/components/interactivity-options.i18n-BsYv4Rh9.cjs +18 -18
  965. package/components/interactivity-options.i18n-UhOnnlBC.js +18 -18
  966. package/components/it-BZF7oRfg.cjs +18 -18
  967. package/components/it-BoudiwDn.js +18 -18
  968. package/components/item-context-configs.cjs +18 -18
  969. package/components/item-context-configs.js +18 -18
  970. package/components/item-grid/actions.d.ts +2 -1
  971. package/components/item-grid/index.cjs +19 -19
  972. package/components/item-grid/index.d.ts +4 -4
  973. package/components/item-grid/index.js +21 -27
  974. package/components/item-grid/item-grid.d.ts +2 -1
  975. package/components/item-grid/types.d.ts +2 -13
  976. package/components/item-grid-BV42JRXN.js +4655 -0
  977. package/components/item-grid-U4a5JvWj.cjs +86 -0
  978. package/components/item-grid-item-actions-menu/index.cjs +20 -0
  979. package/components/item-grid-item-actions-menu/index.d.ts +8 -0
  980. package/components/item-grid-item-actions-menu/index.js +21 -0
  981. package/components/item-grid-item-actions-menu/item-grid-item-actions-menu.d.ts +70 -0
  982. package/components/item-grid-item-actions-menu/types.d.ts +22 -0
  983. package/components/item-grid-item-actions-menu-Bpon76tP.js +199 -0
  984. package/components/item-grid-item-actions-menu-Csidl82W.cjs +52 -0
  985. package/components/item-list.cjs +18 -18
  986. package/components/item-list.js +18 -18
  987. package/components/item-menu/item-list/item-list.d.ts +37 -0
  988. package/components/item-option/index.cjs +19 -19
  989. package/components/item-option/index.js +19 -26
  990. package/components/item-option-C1zZpwcY.js +956 -0
  991. package/components/item-option-Cl0fk-nP.cjs +269 -0
  992. package/components/item-option-action-button-group/index.cjs +19 -19
  993. package/components/item-option-action-button-group/index.js +19 -26
  994. package/components/item-option-action-button-group-BeiYXBhn.cjs +53 -0
  995. package/components/item-option-action-button-group-Busjo07v.js +119 -0
  996. package/components/item-option-base/item-option-base.d.ts +23 -0
  997. package/components/item-option-base-BI7o-8Uv.cjs +56 -0
  998. package/components/item-option-base-n65PEpfv.js +123 -0
  999. package/components/item-option-color-palette-picker/index.cjs +19 -19
  1000. package/components/item-option-color-palette-picker/index.js +19 -26
  1001. package/components/item-option-color-palette-picker-C7s04NK7.js +2042 -0
  1002. package/components/item-option-color-palette-picker-D7qjmnlu.cjs +40 -0
  1003. package/components/item-option-color-picker/index.cjs +19 -19
  1004. package/components/item-option-color-picker/index.js +19 -26
  1005. package/components/item-option-color-picker-BoWujNll.js +88 -0
  1006. package/components/item-option-color-picker-DR2hUjex.cjs +34 -0
  1007. package/components/item-option-color-range/index.cjs +19 -19
  1008. package/components/item-option-color-range/index.js +19 -26
  1009. package/components/item-option-color-range-DQSecMC_.cjs +98 -0
  1010. package/components/item-option-color-range-_NG-Hf3J.js +221 -0
  1011. package/components/item-option-guidelines/index.cjs +19 -19
  1012. package/components/item-option-guidelines/index.js +19 -26
  1013. package/components/item-option-guidelines-DjYkZN3v.cjs +135 -0
  1014. package/components/item-option-guidelines-d0qH0ep-.js +420 -0
  1015. package/components/item-option-multi-language-field/index.cjs +19 -19
  1016. package/components/item-option-multi-language-field/index.js +19 -26
  1017. package/components/item-option-multi-language-field-C8AFaTZo.js +83 -0
  1018. package/components/item-option-multi-language-field-Dmz977Fr.cjs +33 -0
  1019. package/components/item-option-number-field/index.cjs +19 -19
  1020. package/components/item-option-number-field/index.js +19 -26
  1021. package/components/item-option-number-field-Bn9Vp_uK.js +103 -0
  1022. package/components/item-option-number-field-Vmy2lsgY.cjs +38 -0
  1023. package/components/item-option-panel/index.cjs +19 -19
  1024. package/components/item-option-panel/index.js +19 -26
  1025. package/components/item-option-panel-Cw8Y2sxT.cjs +67 -0
  1026. package/components/item-option-panel-l1QqlLf0.js +184 -0
  1027. package/components/item-option-picker/index.cjs +19 -19
  1028. package/components/item-option-picker/index.js +19 -26
  1029. package/components/item-option-picker-DE29HVxB.js +78 -0
  1030. package/components/item-option-picker-DqdL2xSF.cjs +37 -0
  1031. package/components/item-option-position-picker/index.cjs +19 -19
  1032. package/components/item-option-position-picker/index.js +19 -26
  1033. package/components/item-option-position-picker-Dc4G1A6V.js +118 -0
  1034. package/components/item-option-position-picker-cCm-DAu2.cjs +32 -0
  1035. package/components/item-option-positions-number-field/index.cjs +19 -19
  1036. package/components/item-option-positions-number-field/index.js +19 -26
  1037. package/components/item-option-positions-number-field-BtpSbGRE.js +165 -0
  1038. package/components/item-option-positions-number-field-Cr5yQvD7.cjs +49 -0
  1039. package/components/item-option-radio-button-group/index.cjs +19 -19
  1040. package/components/item-option-radio-button-group/index.js +19 -26
  1041. package/components/item-option-radio-button-group-B8sycC_x.js +75 -0
  1042. package/components/item-option-radio-button-group-J_WpcDiX.cjs +37 -0
  1043. package/components/item-option-slider/index.cjs +19 -19
  1044. package/components/item-option-slider/index.js +19 -26
  1045. package/components/item-option-slider-BxW16AN7.cjs +33 -0
  1046. package/components/item-option-slider-CsKJaYvI.js +97 -0
  1047. package/components/item-option-switch/index.cjs +19 -19
  1048. package/components/item-option-switch/index.js +19 -26
  1049. package/components/item-option-switch-BFKaQPA1.cjs +30 -0
  1050. package/components/item-option-switch-fbWKQvlc.js +70 -0
  1051. package/components/item-option-text-field/index.cjs +19 -19
  1052. package/components/item-option-text-field/index.js +19 -26
  1053. package/components/item-option-text-field-BfSQ6XS4.cjs +33 -0
  1054. package/components/item-option-text-field-DyAgFDk2.js +81 -0
  1055. package/components/item-options-configs.cjs +18 -18
  1056. package/components/item-options-configs.js +63 -63
  1057. package/components/item-slot-drop/index.cjs +19 -19
  1058. package/components/item-slot-drop/index.d.ts +2 -0
  1059. package/components/item-slot-drop/index.js +19 -26
  1060. package/components/item-slot-drop-DVGqerjg.cjs +91 -0
  1061. package/components/item-slot-drop-DajA9PFi.js +332 -0
  1062. package/components/item-slot-drop-panel/index.cjs +19 -19
  1063. package/components/item-slot-drop-panel/index.js +19 -26
  1064. package/components/item-slot-drop-panel-CVwwgxw-.cjs +57 -0
  1065. package/components/item-slot-drop-panel-u_sQH-KY.js +356 -0
  1066. package/components/item-slot-picker/index.cjs +19 -19
  1067. package/components/item-slot-picker/index.js +19 -26
  1068. package/components/item-slot-picker-CuPhgLOY.js +506 -0
  1069. package/components/item-slot-picker-aRs0szIM.cjs +174 -0
  1070. package/components/item-slot-picker-panel/index.cjs +19 -19
  1071. package/components/item-slot-picker-panel/index.js +19 -26
  1072. package/components/item-slot-picker-panel-Boo_cwql.cjs +81 -0
  1073. package/components/item-slot-picker-panel-DBJ-4GMl.js +449 -0
  1074. package/components/item-slots-configs.cjs +18 -18
  1075. package/components/item-slots-configs.js +63 -63
  1076. package/components/ja-DOkmGGSd.js +18 -18
  1077. package/components/ja-aOzAwMPW.cjs +18 -18
  1078. package/components/ko-B50TWXco.cjs +18 -18
  1079. package/components/ko-BrzKwqTe.js +18 -18
  1080. package/components/line-chart-options.config-C3_RnROS.js +237 -0
  1081. package/components/line-chart-options.config-RTYFJQSE.cjs +18 -18
  1082. package/components/line-chart-options.de-CKbHARjX.cjs +18 -18
  1083. package/components/line-chart-options.de-CtxTZ-Nx.js +18 -18
  1084. package/components/line-chart-options.en-BgXtU92P.js +18 -18
  1085. package/components/line-chart-options.en-DmtT3Hbw.cjs +18 -18
  1086. package/components/line-chart-options.es--u7QlrhG.js +18 -18
  1087. package/components/line-chart-options.es-BwyQviz-.cjs +18 -18
  1088. package/components/line-chart-options.fr-BUwOFGR7.cjs +18 -18
  1089. package/components/line-chart-options.fr-BaPc1M70.js +18 -18
  1090. package/components/line-chart-options.nl-BkPXShNF.cjs +18 -18
  1091. package/components/line-chart-options.nl-C86fSn7a.js +18 -18
  1092. package/components/line-chart-positioning.config-CJ2RQxq_.js +55 -0
  1093. package/components/line-chart-positioning.config-Cn6qdGfH.cjs +20 -0
  1094. package/components/line-chart-slots.config-CA-I6B6o.js +55 -0
  1095. package/components/line-chart-slots.config-vv66fcoE.cjs +18 -18
  1096. package/components/load-data-fields-for-datasets-C8QzYyAq.cjs +20 -0
  1097. package/components/load-data-fields-for-datasets-eFeQdDxV.js +42 -0
  1098. package/components/localize-BT7REYBY.js +18 -18
  1099. package/components/localize-D3i4Epy_.cjs +18 -18
  1100. package/components/localized-mixin-5ebEzU91.cjs +20 -0
  1101. package/components/localized-mixin-Nbdi2Ynr.js +45 -0
  1102. package/components/map-tile-providers-DzSBmFkY.cjs +18 -18
  1103. package/components/map-tile-providers-RN2cWRln.js +18 -18
  1104. package/components/marker-map-options.config-OMdgbAc4.js +122 -0
  1105. package/components/marker-map-options.config-SkhbtEh0.cjs +18 -18
  1106. package/components/marker-map-options.de-BSu8VCAw.cjs +18 -18
  1107. package/components/marker-map-options.de-DVb2ab5i.js +18 -18
  1108. package/components/marker-map-options.en-BNwkDxQB.js +18 -18
  1109. package/components/marker-map-options.en-CKMe-zNW.cjs +18 -18
  1110. package/components/marker-map-options.es-CY2DRGKv.js +18 -18
  1111. package/components/marker-map-options.es-D6x5XPW7.cjs +18 -18
  1112. package/components/marker-map-options.fr-D31wgwxG.js +18 -18
  1113. package/components/marker-map-options.fr-xZ7ixq37.cjs +18 -18
  1114. package/components/marker-map-options.nl-Bvo1Sgwp.cjs +18 -18
  1115. package/components/marker-map-options.nl-DyZo_CFt.js +18 -18
  1116. package/components/marker-map-positioning.config-Fk27Rxka.js +48 -0
  1117. package/components/marker-map-positioning.config-_6jf8eaC.cjs +20 -0
  1118. package/components/marker-map-slots.config-CcGNgr1_.js +37 -0
  1119. package/components/marker-map-slots.config-DigZk7lN.cjs +18 -18
  1120. package/components/mk-CehJi277.cjs +18 -18
  1121. package/components/mk-Deht4BwZ.js +18 -18
  1122. package/components/nl-C1BTOQ5N.js +18 -18
  1123. package/components/nl-D21wahzs.cjs +20 -0
  1124. package/components/nl-Dyx0ufOq.js +594 -0
  1125. package/components/nl-wyer9j4m.cjs +18 -18
  1126. package/components/no-C9FQ33Mp.js +18 -18
  1127. package/components/no-PqE_GjX_.cjs +18 -18
  1128. package/components/ohlc-chart-options.config-CWRI5bXI.js +94 -0
  1129. package/components/ohlc-chart-options.config-Pqd5MFIv.cjs +18 -18
  1130. package/components/ohlc-chart-options.de-DtanuVcU.cjs +18 -18
  1131. package/components/ohlc-chart-options.de-LnJmQjiR.js +18 -18
  1132. package/components/ohlc-chart-options.en-B7TU8CK4.js +18 -18
  1133. package/components/ohlc-chart-options.en-CStPyUia.cjs +18 -18
  1134. package/components/ohlc-chart-options.es-B7m8-_pA.js +18 -18
  1135. package/components/ohlc-chart-options.es-CfTI32Rg.cjs +18 -18
  1136. package/components/ohlc-chart-options.fr-C53gRLh5.cjs +18 -18
  1137. package/components/ohlc-chart-options.fr-u_Bi9raw.js +18 -18
  1138. package/components/ohlc-chart-options.nl-BrpwjNGt.js +18 -18
  1139. package/components/ohlc-chart-options.nl-Dh9iPIWB.cjs +18 -18
  1140. package/components/ohlc-chart-positioning.config-BnoQDAm2.js +78 -0
  1141. package/components/ohlc-chart-positioning.config-HycztBpx.cjs +20 -0
  1142. package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +18 -18
  1143. package/components/ohlc-chart-slots.config-Pv0xst-Y.js +68 -0
  1144. package/components/orion-CXeT8EeB.js +18 -18
  1145. package/components/orion-DkQrXOy_.cjs +18 -18
  1146. package/components/parallel-coordinates-plot-options.config-2BbzNgJ9.cjs +18 -18
  1147. package/components/parallel-coordinates-plot-options.config-DbuNgevO.js +48 -0
  1148. package/components/parallel-coordinates-plot-options.de-BwbOcCnH.js +18 -18
  1149. package/components/parallel-coordinates-plot-options.de-CDtIM_Z2.cjs +18 -18
  1150. package/components/parallel-coordinates-plot-options.en-BlzPfF-b.js +18 -18
  1151. package/components/parallel-coordinates-plot-options.en-Bu7cMLrv.cjs +18 -18
  1152. package/components/parallel-coordinates-plot-options.es-BPgUHedg.cjs +18 -18
  1153. package/components/parallel-coordinates-plot-options.es-CPAqJPEY.js +18 -18
  1154. package/components/parallel-coordinates-plot-options.fr-BUxk85Ud.cjs +18 -18
  1155. package/components/parallel-coordinates-plot-options.fr-DRTOCvqg.js +18 -18
  1156. package/components/parallel-coordinates-plot-options.nl-CHuWgaYV.cjs +18 -18
  1157. package/components/parallel-coordinates-plot-options.nl-DqXxaV_Z.js +18 -18
  1158. package/components/parallel-coordinates-plot-positioning.config-BydBKkPE.cjs +20 -0
  1159. package/components/parallel-coordinates-plot-positioning.config-Bz07w7pC.js +48 -0
  1160. package/components/parallel-coordinates-plot-slots.config-GvYC-RXK.js +46 -0
  1161. package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +18 -18
  1162. package/components/period-over-period-condition.const-BZ7j5Z5t.js +29 -0
  1163. package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +20 -0
  1164. package/components/periods.const-Db0nXrwr.cjs +18 -18
  1165. package/components/periods.const-NCTkxnvG.js +18 -18
  1166. package/components/pinky-CtuaRwwY.js +18 -18
  1167. package/components/pinky-TtncdghA.cjs +18 -18
  1168. package/components/pivot-table-options.config-CTz4bcGJ.js +249 -0
  1169. package/components/pivot-table-options.config-D6Hdgnof.cjs +18 -18
  1170. package/components/pivot-table-options.de-CZjCOf23.js +18 -18
  1171. package/components/pivot-table-options.de-D4WdihDf.cjs +18 -18
  1172. package/components/pivot-table-options.en-Ch0mKBst.cjs +18 -18
  1173. package/components/pivot-table-options.en-Z6QZwj0n.js +18 -18
  1174. package/components/pivot-table-options.es-DKNkDOBt.cjs +18 -18
  1175. package/components/pivot-table-options.es-DW1enov2.js +18 -18
  1176. package/components/pivot-table-options.fr-BAKlur9_.cjs +18 -18
  1177. package/components/pivot-table-options.fr-Cl4jkSR4.js +18 -18
  1178. package/components/pivot-table-options.nl-2mSHbpcz.cjs +18 -18
  1179. package/components/pivot-table-options.nl-CaWEP9qN.js +18 -18
  1180. package/components/pivot-table-positioning.config-CEDxA3r5.cjs +20 -0
  1181. package/components/pivot-table-positioning.config-OATgXuSr.js +55 -0
  1182. package/components/pivot-table-slots.config-BAW0U3nh.js +55 -0
  1183. package/components/pivot-table-slots.config-KlYXL90k.cjs +18 -18
  1184. package/components/pl-4xvkt0Pl.js +18 -18
  1185. package/components/pl-Cu6_UJbA.cjs +18 -18
  1186. package/components/pragmatic-element-adapter-D0LRKx5U.js +1253 -0
  1187. package/components/pragmatic-element-adapter-DdyH32ix.cjs +24 -0
  1188. package/components/pt-BUpCBhz9.js +18 -18
  1189. package/components/pt-fymmI5Y3.cjs +18 -18
  1190. package/components/pyramid-chart-options.config-C7btzuZj.js +220 -0
  1191. package/components/pyramid-chart-options.config-ClLsv7PT.cjs +18 -18
  1192. package/components/pyramid-chart-options.de-BYqibA2g.cjs +18 -18
  1193. package/components/pyramid-chart-options.de-C7n_k-tE.js +18 -18
  1194. package/components/pyramid-chart-options.en-Cu93qdAo.js +18 -18
  1195. package/components/pyramid-chart-options.en-HiLgjfbn.cjs +18 -18
  1196. package/components/pyramid-chart-options.es-BQ8qCZ32.cjs +18 -18
  1197. package/components/pyramid-chart-options.es-DCRAv4r_.js +18 -18
  1198. package/components/pyramid-chart-options.fr-BA7xAAsG.cjs +18 -18
  1199. package/components/pyramid-chart-options.fr-CLXgcrPz.js +18 -18
  1200. package/components/pyramid-chart-options.nl-BYiPyjuQ.cjs +18 -18
  1201. package/components/pyramid-chart-options.nl-CylUmHpw.js +18 -18
  1202. package/components/pyramid-chart-positioning.config-D1DebWCO.cjs +20 -0
  1203. package/components/pyramid-chart-positioning.config-Dt57xRF_.js +55 -0
  1204. package/components/pyramid-chart-slots.config-CreUpxI2.cjs +18 -18
  1205. package/components/pyramid-chart-slots.config-CsMMyhV3.js +50 -0
  1206. package/components/radar-chart-options.config-B5WP2MPc.cjs +18 -18
  1207. package/components/radar-chart-options.config-CtA6MpUp.js +152 -0
  1208. package/components/radar-chart-options.de-BZPerBca.js +18 -18
  1209. package/components/radar-chart-options.de-D9sVJ3e-.cjs +18 -18
  1210. package/components/radar-chart-options.en-Brb_kgjH.cjs +18 -18
  1211. package/components/radar-chart-options.en-tDJgJQVC.js +18 -18
  1212. package/components/radar-chart-options.es-BmpV458O.cjs +18 -18
  1213. package/components/radar-chart-options.es-Dz4wRR-P.js +18 -18
  1214. package/components/radar-chart-options.fr-B-gaDJX4.cjs +18 -18
  1215. package/components/radar-chart-options.fr-D5KXeury.js +18 -18
  1216. package/components/radar-chart-options.nl-D3_CmNB3.js +18 -18
  1217. package/components/radar-chart-options.nl-DH_wKvgI.cjs +18 -18
  1218. package/components/radar-chart-positioning.config-BJohk9t3.cjs +20 -0
  1219. package/components/radar-chart-positioning.config-CyD2-U2Q.js +55 -0
  1220. package/components/radar-chart-slots.config-8Kf_WAFi.js +53 -0
  1221. package/components/radar-chart-slots.config-B3oIp-8w.cjs +18 -18
  1222. package/components/radiant-Brxg53Bd.cjs +18 -18
  1223. package/components/radiant-CFMCU8Ue.js +18 -18
  1224. package/components/regular-table-options.config-BRmS77t-.js +153 -0
  1225. package/components/regular-table-options.config-nBBnO4ru.cjs +18 -18
  1226. package/components/regular-table-options.de-C1P8Cfb_.cjs +18 -18
  1227. package/components/regular-table-options.de-g9j453gb.js +18 -18
  1228. package/components/regular-table-options.en-BrufALdp.js +18 -18
  1229. package/components/regular-table-options.en-C2gYTBRo.cjs +18 -18
  1230. package/components/regular-table-options.es-CTDJJHWO.js +18 -18
  1231. package/components/regular-table-options.es-okSFyOya.cjs +18 -18
  1232. package/components/regular-table-options.fr-CcAJM6IR.cjs +18 -18
  1233. package/components/regular-table-options.fr-CwmYI6Kh.js +18 -18
  1234. package/components/regular-table-options.nl-Dco7Br5G.js +18 -18
  1235. package/components/regular-table-options.nl-YAFLo-aU.cjs +18 -18
  1236. package/components/regular-table-positioning.config-CXabhyJu.cjs +18 -18
  1237. package/components/regular-table-positioning.config-DegSA7rc.js +18 -18
  1238. package/components/regular-table-slots.config-UwzWj6gg.cjs +18 -18
  1239. package/components/regular-table-slots.config-r-N9A-qA.js +35 -0
  1240. package/components/resolve-column-presentation-BaEP1mvs.js +18 -18
  1241. package/components/resolve-column-presentation-DUETRVCH.cjs +18 -18
  1242. package/components/rolldown-runtime-mLOUI7ql.cjs +18 -18
  1243. package/components/route-map-options.config-C65J81_7.js +328 -0
  1244. package/components/route-map-options.config-DS9cCAQK.cjs +18 -18
  1245. package/components/route-map-options.de-B6WL0heF.cjs +18 -18
  1246. package/components/route-map-options.de-C8gPppGo.js +18 -18
  1247. package/components/route-map-options.en-BCuStpST.cjs +18 -18
  1248. package/components/route-map-options.en-Bqo2qPTY.js +18 -18
  1249. package/components/route-map-options.es-Bk1nyazp.js +18 -18
  1250. package/components/route-map-options.es-DRPguAOv.cjs +18 -18
  1251. package/components/route-map-options.fr-CIOd_axV.cjs +18 -18
  1252. package/components/route-map-options.fr-vq0ht9wS.js +18 -18
  1253. package/components/route-map-options.nl-BQoR8rHj.cjs +18 -18
  1254. package/components/route-map-options.nl-CBhNlitV.js +18 -18
  1255. package/components/route-map-positioning.config-B5-SbXxB.js +66 -0
  1256. package/components/route-map-positioning.config-B9CdfSM1.cjs +20 -0
  1257. package/components/route-map-slots.config-DMII2UuP.js +59 -0
  1258. package/components/route-map-slots.config-DfYT65BF.cjs +18 -18
  1259. package/components/royale-BiMs0EtI.cjs +18 -18
  1260. package/components/royale-Cy1oOAE2.js +18 -18
  1261. package/components/ru-CkNBR3ab.js +18 -18
  1262. package/components/ru-RyEkpfw0.cjs +18 -18
  1263. package/components/sankey-diagram-options.config-DZDqv5aI.cjs +18 -18
  1264. package/components/sankey-diagram-options.config-nQDCRhKs.js +130 -0
  1265. package/components/sankey-diagram-options.de-CDt5-4Rb.js +18 -18
  1266. package/components/sankey-diagram-options.de-UZnVsw9I.cjs +18 -18
  1267. package/components/sankey-diagram-options.en-65nfEWo_.js +18 -18
  1268. package/components/sankey-diagram-options.en-BfINAD0e.cjs +18 -18
  1269. package/components/sankey-diagram-options.es-JD4SHY3x.js +18 -18
  1270. package/components/sankey-diagram-options.es-quSoEKtB.cjs +18 -18
  1271. package/components/sankey-diagram-options.fr-B7wQDggY.js +18 -18
  1272. package/components/sankey-diagram-options.fr-DeoKurMp.cjs +18 -18
  1273. package/components/sankey-diagram-options.nl-2B5ScaJK.cjs +18 -18
  1274. package/components/sankey-diagram-options.nl-CHqVVjut.js +18 -18
  1275. package/components/sankey-diagram-positioning.config-0JoEoVmz.cjs +20 -0
  1276. package/components/sankey-diagram-positioning.config-BgbG8JNQ.js +66 -0
  1277. package/components/sankey-diagram-slots.config-D-_u4w36.cjs +18 -18
  1278. package/components/sankey-diagram-slots.config-DmWIGut0.js +61 -0
  1279. package/components/scatter-plot-options.config-BplrME7w.js +133 -0
  1280. package/components/scatter-plot-options.config-DJW85uFv.cjs +18 -18
  1281. package/components/scatter-plot-options.de-3CPVK7Hi.cjs +18 -18
  1282. package/components/scatter-plot-options.de-CNLrv6j3.js +18 -18
  1283. package/components/scatter-plot-options.en-DigMzpQy.js +18 -18
  1284. package/components/scatter-plot-options.en-Dzvigy8-.cjs +18 -18
  1285. package/components/scatter-plot-options.es-C-IH7GVH.cjs +18 -18
  1286. package/components/scatter-plot-options.es-CQm_VVqJ.js +18 -18
  1287. package/components/scatter-plot-options.fr-Cdp6kPQi.cjs +18 -18
  1288. package/components/scatter-plot-options.fr-s0M39VT4.js +18 -18
  1289. package/components/scatter-plot-options.nl-CqpPIO03.js +18 -18
  1290. package/components/scatter-plot-options.nl-DeINlMqc.cjs +18 -18
  1291. package/components/scatter-plot-positioning.config-BlVDM1kU.js +77 -0
  1292. package/components/scatter-plot-positioning.config-CY8qJXdg.cjs +20 -0
  1293. package/components/scatter-plot-slots.config-B7wQVEEj.js +74 -0
  1294. package/components/scatter-plot-slots.config-CrG6wQtV.cjs +18 -18
  1295. package/components/search-filter-options.config-B-dGVPhS.cjs +18 -18
  1296. package/components/search-filter-options.config-yAz6IIto.js +103 -0
  1297. package/components/search-filter-options.de-BxVThclj.js +18 -18
  1298. package/components/search-filter-options.de-XhjxPeKG.cjs +18 -18
  1299. package/components/search-filter-options.en-Bp3Pgxmd.cjs +18 -18
  1300. package/components/search-filter-options.en-CVxOFFq-.js +18 -18
  1301. package/components/search-filter-options.es-CXfwE4S3.cjs +18 -18
  1302. package/components/search-filter-options.es-YKtCfXeL.js +18 -18
  1303. package/components/search-filter-options.fr-GGa8ofab.js +18 -18
  1304. package/components/search-filter-options.fr-bif0VBh1.cjs +18 -18
  1305. package/components/search-filter-options.nl-DZhs-o0B.cjs +18 -18
  1306. package/components/search-filter-options.nl-ysVe1z-i.js +18 -18
  1307. package/components/search-filter-positioning.config-BvwxJS-1.cjs +18 -18
  1308. package/components/search-filter-positioning.config-DOSL-FX_.js +18 -18
  1309. package/components/search-filter-slots.config-D8-V0BT5.js +39 -0
  1310. package/components/search-filter-slots.config-DP06ulJA.cjs +18 -18
  1311. package/components/seasonal-DTf_okZ2.cjs +18 -18
  1312. package/components/seasonal-DZkRSBgY.js +18 -18
  1313. package/components/set-locale-0GyLYEXo.js +43 -0
  1314. package/components/set-locale-CN7wEnTk.cjs +20 -0
  1315. package/components/set-nested-value-B-4IelRl.cjs +18 -18
  1316. package/components/set-nested-value-V1TdquO3.js +18 -18
  1317. package/components/slicer-filter-options.config-BtGkT2hI.js +235 -0
  1318. package/components/slicer-filter-options.config-Cyjd_SRY.cjs +18 -18
  1319. package/components/slicer-filter-options.de-7mpgtwLj.cjs +18 -18
  1320. package/components/slicer-filter-options.de-Ck5STkcT.js +18 -18
  1321. package/components/slicer-filter-options.en-CiYiPtJB.cjs +18 -18
  1322. package/components/slicer-filter-options.en-RaYV5qQy.js +18 -18
  1323. package/components/slicer-filter-options.es-B8VkLkMj.cjs +18 -18
  1324. package/components/slicer-filter-options.es-C1LS6cqV.js +18 -18
  1325. package/components/slicer-filter-options.fr-CYOej3j3.js +18 -18
  1326. package/components/slicer-filter-options.fr-DV9DiqqL.cjs +18 -18
  1327. package/components/slicer-filter-options.nl-B9CyFXTX.js +18 -18
  1328. package/components/slicer-filter-options.nl-DVeUTVn7.cjs +18 -18
  1329. package/components/slicer-filter-positioning.config-DHTsAnjS.js +48 -0
  1330. package/components/slicer-filter-positioning.config-DsQV6lEf.cjs +20 -0
  1331. package/components/slicer-filter-slots.config-CHKpdJvF.cjs +18 -18
  1332. package/components/slicer-filter-slots.config-DR0Wg_Zr.js +44 -0
  1333. package/components/slider-filter-options.config-BeIw6IrQ.cjs +18 -18
  1334. package/components/slider-filter-options.config-D_yZ_nFz.js +72 -0
  1335. package/components/slider-filter-options.de-CK9B4Rir.cjs +18 -18
  1336. package/components/slider-filter-options.de-CUPN4B_3.js +18 -18
  1337. package/components/slider-filter-options.en-CqnlQHF8.js +18 -18
  1338. package/components/slider-filter-options.en-ZDfr4vqY.cjs +18 -18
  1339. package/components/slider-filter-options.es-CN-cg2rH.js +18 -18
  1340. package/components/slider-filter-options.es-CeAMKv7C.cjs +18 -18
  1341. package/components/slider-filter-options.fr-BxgSJRs4.js +18 -18
  1342. package/components/slider-filter-options.fr-D44hi-fD.cjs +18 -18
  1343. package/components/slider-filter-options.nl-Cd41AI1Z.js +18 -18
  1344. package/components/slider-filter-options.nl-p1nxsQFL.cjs +18 -18
  1345. package/components/slider-filter-positioning.config-DSoEN2ip.js +18 -18
  1346. package/components/slider-filter-positioning.config-a7tK-5va.cjs +18 -18
  1347. package/components/slider-filter-slots.config-9R298H0t.cjs +18 -18
  1348. package/components/slider-filter-slots.config-BUHw-32u.js +43 -0
  1349. package/components/slot-labels.config-3nXLBRdr.js +18 -18
  1350. package/components/slot-labels.config-DKnxOncr.cjs +18 -18
  1351. package/components/slot-menu/index.cjs +20 -0
  1352. package/components/slot-menu/index.d.ts +10 -0
  1353. package/components/slot-menu/index.js +21 -0
  1354. package/components/slot-menu/slot-menu.d.ts +148 -0
  1355. package/components/slot-menu/types.d.ts +24 -0
  1356. package/components/slot-menu-Bn41i0nu.js +429 -0
  1357. package/components/slot-menu-BwxVUCD8.cjs +71 -0
  1358. package/components/slot-menu-list/index.cjs +20 -0
  1359. package/components/slot-menu-list/index.d.ts +8 -0
  1360. package/components/slot-menu-list/index.js +21 -0
  1361. package/components/slot-menu-list/slot-menu-list.d.ts +47 -0
  1362. package/components/slot-menu-list-D10L_ujO.js +348 -0
  1363. package/components/slot-menu-list-TZk8_huB.cjs +44 -0
  1364. package/components/slot-role-classification-2wChhpcq.cjs +20 -0
  1365. package/components/slot-role-classification-B8bkGhQ_.js +133 -0
  1366. package/components/slots-config-Cd4xAG4H.cjs +20 -0
  1367. package/components/slots-config-GlSNH7Gr.js +76 -0
  1368. package/components/spacer-options.config-BsbiQt-1.cjs +18 -18
  1369. package/components/spacer-options.config-C27xkF_H.js +18 -18
  1370. package/components/speedometer-chart-options.config-BL7evgzP.js +251 -0
  1371. package/components/speedometer-chart-options.config-CEIZfeYG.cjs +18 -18
  1372. package/components/speedometer-chart-options.de-9J5HFt8T.js +18 -18
  1373. package/components/speedometer-chart-options.de-Duicdnfl.cjs +18 -18
  1374. package/components/speedometer-chart-options.en-DSQsXJfa.js +18 -18
  1375. package/components/speedometer-chart-options.en-t4qxY0EQ.cjs +18 -18
  1376. package/components/speedometer-chart-options.es-0JgXONad.cjs +18 -18
  1377. package/components/speedometer-chart-options.es-BGphL673.js +18 -18
  1378. package/components/speedometer-chart-options.fr-CAsCn9Vw.cjs +18 -18
  1379. package/components/speedometer-chart-options.fr-Cj4C4th7.js +18 -18
  1380. package/components/speedometer-chart-options.nl-BKNd6tYT.js +18 -18
  1381. package/components/speedometer-chart-options.nl-COjZR7lk.cjs +18 -18
  1382. package/components/speedometer-chart-positioning.config-CExtaoWC.cjs +20 -0
  1383. package/components/speedometer-chart-positioning.config-DxawdlbB.js +48 -0
  1384. package/components/speedometer-chart-slots.config-2Y_x52Gy.js +39 -0
  1385. package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +18 -18
  1386. package/components/spike-map-options.config-BRwdTyrp.cjs +18 -18
  1387. package/components/spike-map-options.config-DjoTrAsC.js +415 -0
  1388. package/components/spike-map-options.de-Cdd3EEF2.cjs +18 -18
  1389. package/components/spike-map-options.de-J48HW0-l.js +18 -18
  1390. package/components/spike-map-options.en-B55b8Jn_.cjs +18 -18
  1391. package/components/spike-map-options.en-Cic1NUan.js +18 -18
  1392. package/components/spike-map-options.es-DOmj973W.cjs +18 -18
  1393. package/components/spike-map-options.es-DbCa45oc.js +18 -18
  1394. package/components/spike-map-options.fr-DHr9Aw6b.cjs +18 -18
  1395. package/components/spike-map-options.fr-LqDsPbpZ.js +18 -18
  1396. package/components/spike-map-options.nl-BYSBD11T.cjs +18 -18
  1397. package/components/spike-map-options.nl-CRaM6WoB.js +18 -18
  1398. package/components/spike-map-positioning.config-CSf3S3DV.js +55 -0
  1399. package/components/spike-map-positioning.config-CykibmZr.cjs +20 -0
  1400. package/components/spike-map-slots.config-DJWMFPIR.js +47 -0
  1401. package/components/spike-map-slots.config-cKfaD6dQ.cjs +18 -18
  1402. package/components/strip-plot-options.config-DpRoR04b.cjs +18 -18
  1403. package/components/strip-plot-options.config-tDmVlu9U.js +54 -0
  1404. package/components/strip-plot-options.de-BhNKiBKE.cjs +18 -18
  1405. package/components/strip-plot-options.de-vzJck0Vn.js +18 -18
  1406. package/components/strip-plot-options.en-Bdv_ZOrd.js +18 -18
  1407. package/components/strip-plot-options.en-Cxfv-AD6.cjs +18 -18
  1408. package/components/strip-plot-options.es-B4qu-PBV.cjs +18 -18
  1409. package/components/strip-plot-options.es-B91vttJc.js +18 -18
  1410. package/components/strip-plot-options.fr-BJCQe-Bn.cjs +18 -18
  1411. package/components/strip-plot-options.fr-DJQiJ_Zf.js +18 -18
  1412. package/components/strip-plot-options.nl-BtIGpq6K.cjs +18 -18
  1413. package/components/strip-plot-options.nl-Dx7PVRrW.js +18 -18
  1414. package/components/strip-plot-positioning.config-DTPcRxUU.js +48 -0
  1415. package/components/strip-plot-positioning.config-DnnRCWL5.cjs +20 -0
  1416. package/components/strip-plot-slots.config-DNYlrK_c.cjs +18 -18
  1417. package/components/strip-plot-slots.config-suFyIf5-.js +38 -0
  1418. package/components/sunburst-chart-options.config-Bjue_lQN.js +184 -0
  1419. package/components/sunburst-chart-options.config-DszAtggj.cjs +18 -18
  1420. package/components/sunburst-chart-options.de-Cv5jxNjX.js +18 -18
  1421. package/components/sunburst-chart-options.de-DV_80qR9.cjs +18 -18
  1422. package/components/sunburst-chart-options.en-Zfns8M0i.cjs +18 -18
  1423. package/components/sunburst-chart-options.en-wsOVOyb6.js +18 -18
  1424. package/components/sunburst-chart-options.es-BSKiBxl_.cjs +18 -18
  1425. package/components/sunburst-chart-options.es-Qhu6VcVi.js +18 -18
  1426. package/components/sunburst-chart-options.fr-DOcWgNOZ.cjs +18 -18
  1427. package/components/sunburst-chart-options.fr-GdCEoo8O.js +18 -18
  1428. package/components/sunburst-chart-options.nl-D2JXoYTB.cjs +18 -18
  1429. package/components/sunburst-chart-options.nl-oTUKol5z.js +18 -18
  1430. package/components/sunburst-chart-positioning.config-DeV7bgTG.js +48 -0
  1431. package/components/sunburst-chart-positioning.config-YqGe_aMM.cjs +20 -0
  1432. package/components/sunburst-chart-slots.config-BqVT-h0Z.js +38 -0
  1433. package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +18 -18
  1434. package/components/sv-CtRGTNGV.cjs +18 -18
  1435. package/components/sv-D2kQHkgH.js +18 -18
  1436. package/components/symbol-map-options.config-Ce0Kv7N7.cjs +18 -18
  1437. package/components/symbol-map-options.config-Dyeya5Z2.js +179 -0
  1438. package/components/symbol-map-options.de-BiDrG9dj.cjs +18 -18
  1439. package/components/symbol-map-options.de-CAapWyZM.js +18 -18
  1440. package/components/symbol-map-options.en-CaXeV5i_.js +18 -18
  1441. package/components/symbol-map-options.en-DLHLVF14.cjs +18 -18
  1442. package/components/symbol-map-options.es-Bv7kYGH2.cjs +18 -18
  1443. package/components/symbol-map-options.es-Ccu0xWZb.js +18 -18
  1444. package/components/symbol-map-options.fr-B7F1XlQX.js +18 -18
  1445. package/components/symbol-map-options.fr-BCMc9cTL.cjs +18 -18
  1446. package/components/symbol-map-options.nl-BiSD07Wp.cjs +18 -18
  1447. package/components/symbol-map-options.nl-DkV83AGA.js +18 -18
  1448. package/components/symbol-map-positioning.config-DHbUtFYk.js +55 -0
  1449. package/components/symbol-map-positioning.config-TXXEu7SK.cjs +20 -0
  1450. package/components/symbol-map-slots.config-DwNf547A.cjs +18 -18
  1451. package/components/symbol-map-slots.config-Rhpher5o.js +53 -0
  1452. package/components/text-options.config-BwBCG2yo.cjs +18 -18
  1453. package/components/text-options.config-CXhvzzPF.js +67 -0
  1454. package/components/text-options.de-Rtef15Lz.js +18 -18
  1455. package/components/text-options.de-hh7o6URS.cjs +18 -18
  1456. package/components/text-options.en-Dq7UNCRY.cjs +18 -18
  1457. package/components/text-options.en-YdJ2bVwv.js +18 -18
  1458. package/components/text-options.es-BSxIMxFF.cjs +18 -18
  1459. package/components/text-options.es-Chd8-zuc.js +18 -18
  1460. package/components/text-options.fr-CBUn8HSn.cjs +18 -18
  1461. package/components/text-options.fr-CWeBOXaW.js +18 -18
  1462. package/components/text-options.nl-CUiG2YHs.cjs +18 -18
  1463. package/components/text-options.nl-CyY1z7nM.js +18 -18
  1464. package/components/text-slots.config-CPghLc8b.cjs +18 -18
  1465. package/components/text-slots.config-Dzj4-x2G.js +24 -0
  1466. package/components/themes-CQZd578_.js +18 -18
  1467. package/components/themes-kvrISOTz.cjs +18 -18
  1468. package/components/tokens-BWMfo_w4.cjs +20 -0
  1469. package/components/tokens-Ov1pCR4Y.js +29 -0
  1470. package/components/tr-B66hMkRl.js +18 -18
  1471. package/components/tr-xcDpAdjw.cjs +18 -18
  1472. package/components/treemap-chart-options.config-BzOCEWog.js +211 -0
  1473. package/components/treemap-chart-options.config-Cpj6vD6I.cjs +18 -18
  1474. package/components/treemap-chart-options.de-BWg_01-W.cjs +18 -18
  1475. package/components/treemap-chart-options.de-ByDBntoA.js +18 -18
  1476. package/components/treemap-chart-options.en-0-5g1Vjs.js +18 -18
  1477. package/components/treemap-chart-options.en-D18VTnD9.cjs +18 -18
  1478. package/components/treemap-chart-options.es-BzkqvqXv.cjs +18 -18
  1479. package/components/treemap-chart-options.es-CDkb_3c3.js +18 -18
  1480. package/components/treemap-chart-options.fr-g6917FeS.cjs +18 -18
  1481. package/components/treemap-chart-options.fr-rj0fjvUO.js +18 -18
  1482. package/components/treemap-chart-options.nl-BTh-UB95.cjs +18 -18
  1483. package/components/treemap-chart-options.nl-CQjDtoqG.js +18 -18
  1484. package/components/treemap-chart-positioning.config-Bl6vZZe0.cjs +20 -0
  1485. package/components/treemap-chart-positioning.config-uekceDyR.js +55 -0
  1486. package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +18 -18
  1487. package/components/treemap-chart-slots.config-DRcafVU-.js +47 -0
  1488. package/components/type-check-BehV9ZL1.cjs +18 -18
  1489. package/components/type-check-CGREdneG.js +18 -18
  1490. package/components/types-DNRGKFSD.js +18 -18
  1491. package/components/types-pVa6ut_v.cjs +18 -18
  1492. package/components/types.cjs +18 -18
  1493. package/components/types.js +18 -18
  1494. package/components/urban-8R0DqHZs.js +18 -18
  1495. package/components/urban-CQa3SGnB.cjs +18 -18
  1496. package/components/utils/base.cjs +19 -19
  1497. package/components/utils/base.js +20 -20
  1498. package/components/utils/store.cjs +18 -18
  1499. package/components/utils/store.js +19 -19
  1500. package/components/utils-OUv4u4cU.cjs +20 -0
  1501. package/components/utils-kqiqLAQ9.js +240 -0
  1502. package/components/utils.cjs +19 -19
  1503. package/components/utils.js +27 -24
  1504. package/components/v4-DIjJgmR0.js +18 -18
  1505. package/components/v4-Dyp-SQ1c.cjs +18 -18
  1506. package/components/venn-diagram-options.config-BMlduwIp.js +24 -0
  1507. package/components/venn-diagram-options.config-BamlR1qo.cjs +18 -18
  1508. package/components/venn-diagram-positioning.config-BZYPIWFw.cjs +20 -0
  1509. package/components/venn-diagram-positioning.config-s0-XVoW_.js +55 -0
  1510. package/components/venn-diagram-slots.config-CMDndPVi.js +47 -0
  1511. package/components/venn-diagram-slots.config-DYTmU8v2.cjs +18 -18
  1512. package/components/video-options.config-BhBpkaLJ.cjs +18 -18
  1513. package/components/video-options.config-DdfSTJEJ.js +127 -0
  1514. package/components/video-options.de-BCRCouhI.cjs +18 -18
  1515. package/components/video-options.de-CqDvojKb.js +18 -18
  1516. package/components/video-options.en-CQ-1XqqN.cjs +18 -18
  1517. package/components/video-options.en-DWsFJndr.js +18 -18
  1518. package/components/video-options.es-C986CdLZ.js +18 -18
  1519. package/components/video-options.es-HbR-p7Ll.cjs +18 -18
  1520. package/components/video-options.fr-2LYvhyUV.cjs +18 -18
  1521. package/components/video-options.fr-CF8lEOzZ.js +18 -18
  1522. package/components/video-options.nl-CRGUzFaP.cjs +18 -18
  1523. package/components/video-options.nl-DnHgROBb.js +18 -18
  1524. package/components/video-slots.config-DMut7o7r.cjs +18 -18
  1525. package/components/video-slots.config-Utnn0DBW.js +24 -0
  1526. package/components/vivid-K5FZ8F8v.cjs +18 -18
  1527. package/components/vivid-YDTQ3C2-.js +18 -18
  1528. package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +18 -18
  1529. package/components/wordcloud-chart-options.config-y9Z5I_ZN.js +97 -0
  1530. package/components/wordcloud-chart-options.de-0T6RwBxn.js +18 -18
  1531. package/components/wordcloud-chart-options.de-Bi2Qjaam.cjs +18 -18
  1532. package/components/wordcloud-chart-options.en-6YsE8vZq.cjs +18 -18
  1533. package/components/wordcloud-chart-options.en-xMN7HxWU.js +18 -18
  1534. package/components/wordcloud-chart-options.es-BQib5Adk.cjs +18 -18
  1535. package/components/wordcloud-chart-options.es-DPccPG_x.js +18 -18
  1536. package/components/wordcloud-chart-options.fr-4orpVaAN.cjs +18 -18
  1537. package/components/wordcloud-chart-options.fr-D6DKbL9I.js +18 -18
  1538. package/components/wordcloud-chart-options.nl-BAdq6R0h.cjs +18 -18
  1539. package/components/wordcloud-chart-options.nl-CBKMvA4E.js +18 -18
  1540. package/components/wordcloud-chart-positioning.config-BbX5hVjd.cjs +20 -0
  1541. package/components/wordcloud-chart-positioning.config-D_s8XBj_.js +55 -0
  1542. package/components/wordcloud-chart-slots.config-CvabtgbP.js +45 -0
  1543. package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +18 -18
  1544. package/components/zh-CN-CnxgkEiH.cjs +18 -18
  1545. package/components/zh-CN-EbmFbkUF.js +18 -18
  1546. package/components/zh-TW-CnxgkEiH.cjs +18 -18
  1547. package/components/zh-TW-zX5KG7hP.js +18 -18
  1548. package/custom-elements.json +19309 -6912
  1549. package/deprecated-react/components/add-to-dashboard.component.cjs +1 -0
  1550. package/deprecated-react/components/ai-chat.component.cjs +1 -0
  1551. package/deprecated-react/components/ai-interaction-textarea.component.cjs +1 -0
  1552. package/deprecated-react/components/data-field-level.component.cjs +1 -0
  1553. package/deprecated-react/components/data-fields-select.component.cjs +1 -0
  1554. package/deprecated-react/components/dataset-icon.component.cjs +1 -0
  1555. package/deprecated-react/components/dataset-selector-list.component.cjs +1 -0
  1556. package/deprecated-react/components/dataset-selector-row.component.cjs +1 -0
  1557. package/deprecated-react/components/display-settings-binning.component.cjs +1 -0
  1558. package/deprecated-react/components/display-settings-datetime.component.cjs +1 -0
  1559. package/deprecated-react/components/display-settings-grand-totals.component.cjs +1 -0
  1560. package/deprecated-react/components/display-settings-numeric.component.cjs +1 -0
  1561. package/deprecated-react/components/display-settings-period-over-period.component.cjs +1 -0
  1562. package/deprecated-react/components/display-settings.component.cjs +1 -0
  1563. package/deprecated-react/components/filter-expression-picker.component.cjs +1 -0
  1564. package/deprecated-react/components/filter-item.component.cjs +1 -0
  1565. package/deprecated-react/components/filter-parameter-picker.component.cjs +1 -0
  1566. package/deprecated-react/components/filter-value-picker-datetime.component.cjs +1 -0
  1567. package/deprecated-react/components/filter-value-picker-hierarchy.component.cjs +1 -0
  1568. package/deprecated-react/components/filter-value-picker-numeric.component.cjs +1 -0
  1569. package/deprecated-react/components/filter-value-picker.component.cjs +1 -0
  1570. package/deprecated-react/components/formula-field.component.cjs +1 -0
  1571. package/deprecated-react/components/interactive-viz-item.component.cjs +1 -0
  1572. package/deprecated-react/components/item-grid-item-actions-menu.component.cjs +1 -0
  1573. package/deprecated-react/components/slot-menu-list.component.cjs +1 -0
  1574. package/deprecated-react/components/slot-menu.component.cjs +1 -0
  1575. package/index.d.ts +26 -0
  1576. package/package.json +134 -4
  1577. package/react/components/add-to-dashboard.component.ts +30 -0
  1578. package/react/components/ai-chat.component.ts +45 -0
  1579. package/react/components/ai-interaction-textarea.component.ts +30 -0
  1580. package/react/components/data-field-level.component.ts +30 -0
  1581. package/react/components/data-fields-select.component.ts +27 -0
  1582. package/react/components/dataset-icon.component.ts +22 -0
  1583. package/react/components/dataset-selector-list.component.ts +27 -0
  1584. package/react/components/dataset-selector-row.component.ts +36 -0
  1585. package/react/components/display-settings-binning.component.ts +27 -0
  1586. package/react/components/display-settings-datetime.component.ts +27 -0
  1587. package/react/components/display-settings-grand-totals.component.ts +27 -0
  1588. package/react/components/display-settings-numeric.component.ts +27 -0
  1589. package/react/components/display-settings-period-over-period.component.ts +27 -0
  1590. package/react/components/display-settings.component.ts +33 -0
  1591. package/react/components/filter-expression-picker.component.ts +27 -0
  1592. package/react/components/filter-item.component.ts +27 -0
  1593. package/react/components/filter-parameter-picker.component.ts +33 -0
  1594. package/react/components/filter-value-picker-datetime.component.ts +27 -0
  1595. package/react/components/filter-value-picker-hierarchy.component.ts +27 -0
  1596. package/react/components/filter-value-picker-numeric.component.ts +27 -0
  1597. package/react/components/filter-value-picker.component.ts +27 -0
  1598. package/react/components/filters.component.ts +1 -1
  1599. package/react/components/formula-field.component.ts +30 -0
  1600. package/react/components/interactive-viz-item.component.ts +39 -0
  1601. package/react/components/item-grid-item-actions-menu.component.ts +30 -0
  1602. package/react/components/item-grid.component.ts +4 -1
  1603. package/react/components/slot-menu-list.component.ts +27 -0
  1604. package/react/components/slot-menu.component.ts +42 -0
  1605. package/react/esm/components/add-to-dashboard.component.d.ts +14 -0
  1606. package/react/esm/components/add-to-dashboard.component.js +19 -0
  1607. package/react/esm/components/ai-chat.component.d.ts +24 -0
  1608. package/react/esm/components/ai-chat.component.js +29 -0
  1609. package/react/esm/components/ai-interaction-textarea.component.d.ts +14 -0
  1610. package/react/esm/components/ai-interaction-textarea.component.js +19 -0
  1611. package/react/esm/components/data-field-level.component.d.ts +14 -0
  1612. package/react/esm/components/data-field-level.component.js +19 -0
  1613. package/react/esm/components/data-fields-select.component.d.ts +12 -0
  1614. package/react/esm/components/data-fields-select.component.js +17 -0
  1615. package/react/esm/components/dataset-icon.component.d.ts +8 -0
  1616. package/react/esm/components/dataset-icon.component.js +13 -0
  1617. package/react/esm/components/dataset-selector-list.component.d.ts +12 -0
  1618. package/react/esm/components/dataset-selector-list.component.js +17 -0
  1619. package/react/esm/components/dataset-selector-row.component.d.ts +18 -0
  1620. package/react/esm/components/dataset-selector-row.component.js +23 -0
  1621. package/react/esm/components/display-settings-binning.component.d.ts +12 -0
  1622. package/react/esm/components/display-settings-binning.component.js +17 -0
  1623. package/react/esm/components/display-settings-datetime.component.d.ts +12 -0
  1624. package/react/esm/components/display-settings-datetime.component.js +17 -0
  1625. package/react/esm/components/display-settings-grand-totals.component.d.ts +12 -0
  1626. package/react/esm/components/display-settings-grand-totals.component.js +17 -0
  1627. package/react/esm/components/display-settings-numeric.component.d.ts +12 -0
  1628. package/react/esm/components/display-settings-numeric.component.js +17 -0
  1629. package/react/esm/components/display-settings-period-over-period.component.d.ts +12 -0
  1630. package/react/esm/components/display-settings-period-over-period.component.js +17 -0
  1631. package/react/esm/components/display-settings.component.d.ts +16 -0
  1632. package/react/esm/components/display-settings.component.js +21 -0
  1633. package/react/esm/components/filter-expression-picker.component.d.ts +12 -0
  1634. package/react/esm/components/filter-expression-picker.component.js +17 -0
  1635. package/react/esm/components/filter-item.component.d.ts +12 -0
  1636. package/react/esm/components/filter-item.component.js +17 -0
  1637. package/react/esm/components/filter-parameter-picker.component.d.ts +16 -0
  1638. package/react/esm/components/filter-parameter-picker.component.js +21 -0
  1639. package/react/esm/components/filter-value-picker-datetime.component.d.ts +12 -0
  1640. package/react/esm/components/filter-value-picker-datetime.component.js +17 -0
  1641. package/react/esm/components/filter-value-picker-hierarchy.component.d.ts +12 -0
  1642. package/react/esm/components/filter-value-picker-hierarchy.component.js +17 -0
  1643. package/react/esm/components/filter-value-picker-numeric.component.d.ts +12 -0
  1644. package/react/esm/components/filter-value-picker-numeric.component.js +17 -0
  1645. package/react/esm/components/filter-value-picker.component.d.ts +12 -0
  1646. package/react/esm/components/filter-value-picker.component.js +17 -0
  1647. package/react/esm/components/filters.component.d.ts +1 -1
  1648. package/react/esm/components/filters.component.js +1 -1
  1649. package/react/esm/components/formula-field.component.d.ts +14 -0
  1650. package/react/esm/components/formula-field.component.js +19 -0
  1651. package/react/esm/components/interactive-viz-item.component.d.ts +20 -0
  1652. package/react/esm/components/interactive-viz-item.component.js +25 -0
  1653. package/react/esm/components/item-grid-item-actions-menu.component.d.ts +14 -0
  1654. package/react/esm/components/item-grid-item-actions-menu.component.js +19 -0
  1655. package/react/esm/components/item-grid.component.d.ts +3 -1
  1656. package/react/esm/components/item-grid.component.js +2 -0
  1657. package/react/esm/components/slot-menu-list.component.d.ts +12 -0
  1658. package/react/esm/components/slot-menu-list.component.js +17 -0
  1659. package/react/esm/components/slot-menu.component.d.ts +22 -0
  1660. package/react/esm/components/slot-menu.component.js +27 -0
  1661. package/react/esm/index.d.ts +28 -2
  1662. package/react/esm/index.js +106 -2
  1663. package/react/index.ts +106 -2
  1664. package/react/luzmo-stub.d.ts +149 -0
  1665. package/react/package.json +2 -2
  1666. package/standalone/chunks/add-to-dashboard-BYRLs1CQ.js +148 -0
  1667. package/standalone/chunks/area-chart-options.config-CXWPLl-0.js +2 -0
  1668. package/standalone/chunks/area-chart-options.de-Dr8RVJtb.js +2 -0
  1669. package/standalone/chunks/area-chart-options.en-DV1AZ274.js +2 -0
  1670. package/standalone/chunks/area-chart-options.es-Cg7uU7OK.js +2 -0
  1671. package/standalone/chunks/area-chart-options.fr-CJjgrAt2.js +2 -0
  1672. package/standalone/chunks/area-chart-options.nl-CTGxVXNo.js +2 -0
  1673. package/standalone/chunks/area-chart-slots.config-Bxvau_Ii.js +2 -0
  1674. package/standalone/chunks/axis-options.config-DP9f04t6.js +2 -0
  1675. package/standalone/chunks/axis-options.i18n-BwkGC9PX.js +2 -0
  1676. package/standalone/chunks/bar-chart-options.config-w4REKu0t.js +2 -0
  1677. package/standalone/chunks/bar-chart-options.de-DCVBVtFi.js +2 -0
  1678. package/standalone/chunks/bar-chart-options.en-B4xiZxTy.js +2 -0
  1679. package/standalone/chunks/bar-chart-options.es-UqehXB9Z.js +2 -0
  1680. package/standalone/chunks/bar-chart-options.fr-CaUBeZBK.js +2 -0
  1681. package/standalone/chunks/bar-chart-options.nl-C2tFvUE8.js +2 -0
  1682. package/standalone/chunks/bar-chart-slots.config-BWQoKCYJ.js +2 -0
  1683. package/standalone/chunks/base-DssWPzw8.js +2 -0
  1684. package/standalone/chunks/bliss-BS5cbLqS.js +2 -0
  1685. package/standalone/chunks/box-plot-options.config-BlYMd4FN.js +2 -0
  1686. package/standalone/chunks/box-plot-options.de-RDAv8kHb.js +2 -0
  1687. package/standalone/chunks/box-plot-options.en-kGLfLsv3.js +2 -0
  1688. package/standalone/chunks/box-plot-options.es-Dw3ivv22.js +2 -0
  1689. package/standalone/chunks/box-plot-options.fr-De5nkQNr.js +2 -0
  1690. package/standalone/chunks/box-plot-options.nl-DD1f-Nlt.js +2 -0
  1691. package/standalone/chunks/box-plot-slots.config-4hmeA6nr.js +2 -0
  1692. package/standalone/chunks/bubble-chart-options.config-BKPTymfC.js +2 -0
  1693. package/standalone/chunks/bubble-chart-options.de-C4pA9ZdS.js +2 -0
  1694. package/standalone/chunks/bubble-chart-options.en-DM-MH8pT.js +2 -0
  1695. package/standalone/chunks/bubble-chart-options.es-C2VE7E7k.js +2 -0
  1696. package/standalone/chunks/bubble-chart-options.fr-BugyvkW9.js +2 -0
  1697. package/standalone/chunks/bubble-chart-options.nl-oDPNybDE.js +2 -0
  1698. package/standalone/chunks/bubble-chart-slots.config-CqTUMwvW.js +2 -0
  1699. package/standalone/chunks/bullet-chart-options.config-Cc5lKDjs.js +2 -0
  1700. package/standalone/chunks/bullet-chart-options.de-Ci81seQn.js +2 -0
  1701. package/standalone/chunks/bullet-chart-options.en-Dk95moRX.js +2 -0
  1702. package/standalone/chunks/bullet-chart-options.es-eIqahAOr.js +2 -0
  1703. package/standalone/chunks/bullet-chart-options.fr-CEABbpT0.js +2 -0
  1704. package/standalone/chunks/bullet-chart-options.nl-B3gOPn5D.js +2 -0
  1705. package/standalone/chunks/bullet-chart-slots.config-BiFMJsgN.js +2 -0
  1706. package/standalone/chunks/calculate-data-field-icon-CrEVAfzJ.js +2 -0
  1707. package/standalone/chunks/chart-helpers-BplLoVQz.js +2 -0
  1708. package/standalone/chunks/choropleth-map-options.config-Ul1FSTwf.js +2 -0
  1709. package/standalone/chunks/choropleth-map-options.de-eALhIYgW.js +2 -0
  1710. package/standalone/chunks/choropleth-map-options.en-DNdPCTz7.js +2 -0
  1711. package/standalone/chunks/choropleth-map-options.es-BoHXBNpE.js +2 -0
  1712. package/standalone/chunks/choropleth-map-options.fr-Di8f-OWA.js +2 -0
  1713. package/standalone/chunks/choropleth-map-options.nl-XKS-glHm.js +2 -0
  1714. package/standalone/chunks/choropleth-map-slots.config-CRF7J3QP.js +2 -0
  1715. package/standalone/chunks/circle-pack-chart-options.config-CjDkh4DG.js +2 -0
  1716. package/standalone/chunks/circle-pack-chart-options.de-Dwf0pYf1.js +2 -0
  1717. package/standalone/chunks/circle-pack-chart-options.en-DhCFF4vx.js +2 -0
  1718. package/standalone/chunks/circle-pack-chart-options.es-DDKEbXse.js +2 -0
  1719. package/standalone/chunks/circle-pack-chart-options.fr-Dezqd3QL.js +2 -0
  1720. package/standalone/chunks/circle-pack-chart-options.nl-BNXyskRD.js +2 -0
  1721. package/standalone/chunks/circle-pack-chart-slots.config-Deq7IUoK.js +2 -0
  1722. package/standalone/chunks/circular-gauge-options.config-p2zb-ORR.js +2 -0
  1723. package/standalone/chunks/circular-gauge-options.de-DXGoiD0i.js +2 -0
  1724. package/standalone/chunks/circular-gauge-options.en-SHYrAgsX.js +2 -0
  1725. package/standalone/chunks/circular-gauge-options.es-D4xJXTQ-.js +2 -0
  1726. package/standalone/chunks/circular-gauge-options.fr-6vBd5iUe.js +2 -0
  1727. package/standalone/chunks/circular-gauge-options.nl-CDoO99Is.js +2 -0
  1728. package/standalone/chunks/circular-gauge-slots.config-C7yUFfFJ.js +2 -0
  1729. package/standalone/chunks/classic-CHhNczKi.js +2 -0
  1730. package/standalone/chunks/classic-dark-Cmrn7jod.js +2 -0
  1731. package/standalone/chunks/color-DaeCRJ5Q.js +2 -0
  1732. package/standalone/chunks/color-palettes-B41FvzWH.js +2 -0
  1733. package/standalone/chunks/color-range-utils-CLqVCA5J.js +2 -0
  1734. package/standalone/chunks/column-chart-options.config-v7fBgXRI.js +2 -0
  1735. package/standalone/chunks/column-chart-options.de-OoMpZc7N.js +2 -0
  1736. package/standalone/chunks/column-chart-options.en-B4xiZxTy.js +2 -0
  1737. package/standalone/chunks/column-chart-options.es-BL-wKXpp.js +2 -0
  1738. package/standalone/chunks/column-chart-options.fr-CaUBeZBK.js +2 -0
  1739. package/standalone/chunks/column-chart-options.nl-C2tFvUE8.js +2 -0
  1740. package/standalone/chunks/column-chart-slots.config-ZBLvqhEb.js +2 -0
  1741. package/standalone/chunks/combination-chart-options.config-C9hmUPal.js +2 -0
  1742. package/standalone/chunks/combination-chart-options.de-ChlEhT09.js +2 -0
  1743. package/standalone/chunks/combination-chart-options.en-DhCXqnwj.js +2 -0
  1744. package/standalone/chunks/combination-chart-options.es-DESqZp0U.js +2 -0
  1745. package/standalone/chunks/combination-chart-options.fr-v6P2xQCi.js +2 -0
  1746. package/standalone/chunks/combination-chart-options.nl-D8ato2ve.js +2 -0
  1747. package/standalone/chunks/combination-chart-slots.config-BNVJfRB2.js +2 -0
  1748. package/standalone/chunks/conditional-number-options.config-hdARPTD7.js +2 -0
  1749. package/standalone/chunks/conditional-number-options.de-BNkYWqfn.js +2 -0
  1750. package/standalone/chunks/conditional-number-options.en-J7yPXdbP.js +2 -0
  1751. package/standalone/chunks/conditional-number-options.es-CKDTBiYp.js +2 -0
  1752. package/standalone/chunks/conditional-number-options.fr-BX1cbt1S.js +2 -0
  1753. package/standalone/chunks/conditional-number-options.nl-6IE86oA9.js +2 -0
  1754. package/standalone/chunks/conditional-number-slots.config-B4kqODqw.js +2 -0
  1755. package/standalone/chunks/create-lazy-loader-DC0rJePE.js +2 -0
  1756. package/standalone/chunks/cs-DLnr3a23.js +2 -0
  1757. package/standalone/chunks/da-BJgbo0uE.js +2 -0
  1758. package/standalone/chunks/data-broker-Dgg5mQze.js +2 -0
  1759. package/standalone/chunks/date-comparison-filter-options.config-a_qCDcWA.js +2 -0
  1760. package/standalone/chunks/date-comparison-filter-options.de-WqpVCnC1.js +2 -0
  1761. package/standalone/chunks/date-comparison-filter-options.en-Obm6KfbI.js +2 -0
  1762. package/standalone/chunks/date-comparison-filter-options.es-CxYTNaTq.js +2 -0
  1763. package/standalone/chunks/date-comparison-filter-options.fr-DhrKNPxX.js +2 -0
  1764. package/standalone/chunks/date-comparison-filter-options.nl-D2RV7246.js +2 -0
  1765. package/standalone/chunks/date-comparison-filter-slots.config-DfHq9lB8.js +2 -0
  1766. package/standalone/chunks/date-filter-options.config-DHTbxiWn.js +2 -0
  1767. package/standalone/chunks/date-filter-options.de-B83VkpDz.js +2 -0
  1768. package/standalone/chunks/date-filter-options.en-DKQexBC1.js +2 -0
  1769. package/standalone/chunks/date-filter-options.es-DfDqzkVB.js +2 -0
  1770. package/standalone/chunks/date-filter-options.fr-DoZy8DU8.js +2 -0
  1771. package/standalone/chunks/date-filter-options.nl-DKtF0sFB.js +2 -0
  1772. package/standalone/chunks/date-filter-slots.config-DHaOkULx.js +2 -0
  1773. package/standalone/chunks/de-DHiGJEkU.js +2 -0
  1774. package/standalone/chunks/de-DPgYMyja.js +2 -0
  1775. package/standalone/chunks/decompose-numeric-format-BXLQ97e2.js +2 -0
  1776. package/standalone/chunks/default-Bi3Z4SMm.js +2 -0
  1777. package/standalone/chunks/default-dark-C2ykXPQt.js +2 -0
  1778. package/standalone/chunks/default-local-formats-CES1ItiK.js +2 -0
  1779. package/standalone/chunks/display-settings-binning-BGTZGUU6.js +38 -0
  1780. package/standalone/chunks/display-settings-datetime-DtZzLbjA.js +199 -0
  1781. package/standalone/chunks/display-settings-grand-totals-DA7K3zdq.js +26 -0
  1782. package/standalone/chunks/display-settings-numeric-gkjCT6uw.js +172 -0
  1783. package/standalone/chunks/display-settings-period-over-period-BImYqnlk.js +209 -0
  1784. package/standalone/chunks/donut-chart-options.config-BuZj-QX5.js +2 -0
  1785. package/standalone/chunks/donut-chart-options.de-QusCBL9B.js +2 -0
  1786. package/standalone/chunks/donut-chart-options.en-D0ligFH6.js +2 -0
  1787. package/standalone/chunks/donut-chart-options.es-Bmn34sGt.js +2 -0
  1788. package/standalone/chunks/donut-chart-options.fr-DGBawYKp.js +2 -0
  1789. package/standalone/chunks/donut-chart-options.nl-DzNTu0v4.js +2 -0
  1790. package/standalone/chunks/donut-chart-slots.config-7pDpzNBG.js +2 -0
  1791. package/standalone/chunks/dropdown-filter-options.config-zwR7hmkX.js +2 -0
  1792. package/standalone/chunks/dropdown-filter-options.de-dj6aTNQQ.js +2 -0
  1793. package/standalone/chunks/dropdown-filter-options.en-DH7Jfk8Q.js +2 -0
  1794. package/standalone/chunks/dropdown-filter-options.es-K2L8ln9j.js +2 -0
  1795. package/standalone/chunks/dropdown-filter-options.fr-CMapzFiR.js +2 -0
  1796. package/standalone/chunks/dropdown-filter-options.nl-BLAyit4D.js +2 -0
  1797. package/standalone/chunks/dropdown-filter-slots.config-DkqLjilE.js +2 -0
  1798. package/standalone/chunks/embed-DjpHVUzS.js +228 -0
  1799. package/standalone/chunks/en-BD2RCLuw.js +2 -0
  1800. package/standalone/chunks/en-GB-DnwmFNwC.js +2 -0
  1801. package/standalone/chunks/en-US-BD2RCLuw.js +2 -0
  1802. package/standalone/chunks/es-Bm7v0DSn.js +2 -0
  1803. package/standalone/chunks/es-Dp1UuDDz.js +2 -0
  1804. package/standalone/chunks/evolution-number-options.config-B5Cj0YAQ.js +2 -0
  1805. package/standalone/chunks/evolution-number-options.de-Ch0LaHwI.js +2 -0
  1806. package/standalone/chunks/evolution-number-options.en-riChGfa6.js +2 -0
  1807. package/standalone/chunks/evolution-number-options.es-BdG3lvVQ.js +2 -0
  1808. package/standalone/chunks/evolution-number-options.fr-_h0kLeRL.js +2 -0
  1809. package/standalone/chunks/evolution-number-options.nl-CqycrLe1.js +2 -0
  1810. package/standalone/chunks/evolution-number-slots.config-IqPfnCrw.js +2 -0
  1811. package/standalone/chunks/fi-CLQ6vC7V.js +2 -0
  1812. package/standalone/chunks/filters-D6e5NLXN.js +544 -0
  1813. package/standalone/chunks/formatter-B7zz6UOp.js +2 -0
  1814. package/standalone/chunks/formula-codemirror-65uM9xuK.js +197 -0
  1815. package/standalone/chunks/fr-AQyVcxF7.js +2 -0
  1816. package/standalone/chunks/fr-D8xrUEX4.js +2 -0
  1817. package/standalone/chunks/funnel-chart-options.config-1SyJ_qYd.js +2 -0
  1818. package/standalone/chunks/funnel-chart-options.de-BTxwd7Pe.js +2 -0
  1819. package/standalone/chunks/funnel-chart-options.en-CmY-uO1P.js +2 -0
  1820. package/standalone/chunks/funnel-chart-options.es-DLqBydsE.js +2 -0
  1821. package/standalone/chunks/funnel-chart-options.fr-ztQ5OMZi.js +2 -0
  1822. package/standalone/chunks/funnel-chart-options.nl-DVysx7tP.js +2 -0
  1823. package/standalone/chunks/funnel-chart-slots.config-DfeuNGEL.js +2 -0
  1824. package/standalone/chunks/guidelines-options.config-CS29_J9M.js +2 -0
  1825. package/standalone/chunks/he-DHPb0VBo.js +2 -0
  1826. package/standalone/chunks/heat-map-options.config-DYIrP8cV.js +2 -0
  1827. package/standalone/chunks/heat-map-options.de-BfJMMX2Q.js +2 -0
  1828. package/standalone/chunks/heat-map-options.en-Dr653pN6.js +2 -0
  1829. package/standalone/chunks/heat-map-options.es-CklrBP1w.js +2 -0
  1830. package/standalone/chunks/heat-map-options.fr-DwtCOHrA.js +2 -0
  1831. package/standalone/chunks/heat-map-options.nl-DQBLussF.js +2 -0
  1832. package/standalone/chunks/heat-map-slots.config-BVBzVjJJ.js +2 -0
  1833. package/standalone/chunks/heat-table-options.config-ByHwT44G.js +2 -0
  1834. package/standalone/chunks/heat-table-options.de-BMx67hXo.js +2 -0
  1835. package/standalone/chunks/heat-table-options.en-BbobGoXs.js +2 -0
  1836. package/standalone/chunks/heat-table-options.es-zKo-QMBY.js +2 -0
  1837. package/standalone/chunks/heat-table-options.fr-XSTL1CSb.js +2 -0
  1838. package/standalone/chunks/heat-table-options.nl-Cgcccsee.js +2 -0
  1839. package/standalone/chunks/heat-table-slots.config-CcOl-PCp.js +2 -0
  1840. package/standalone/chunks/helpers-DalWg6k7.js +2 -0
  1841. package/standalone/chunks/hexbin-map-options.config-Elr44Jin.js +2 -0
  1842. package/standalone/chunks/hexbin-map-options.de-C45yz1mZ.js +2 -0
  1843. package/standalone/chunks/hexbin-map-options.en-CIrLRJJ1.js +2 -0
  1844. package/standalone/chunks/hexbin-map-options.es-wf4yF2eW.js +2 -0
  1845. package/standalone/chunks/hexbin-map-options.fr-C0SN47Nq.js +2 -0
  1846. package/standalone/chunks/hexbin-map-options.nl-CweMyvfk.js +2 -0
  1847. package/standalone/chunks/hexbin-map-slots.config-D6qVm4nj.js +2 -0
  1848. package/standalone/chunks/hu-BpaYooip.js +2 -0
  1849. package/standalone/chunks/image-options.config-Cj4r1ypi.js +2 -0
  1850. package/standalone/chunks/image-options.de-CFUHfYzb.js +2 -0
  1851. package/standalone/chunks/image-options.en-BIyq9f_H.js +2 -0
  1852. package/standalone/chunks/image-options.es-BD---IOk.js +2 -0
  1853. package/standalone/chunks/image-options.fr-BGFgsNTs.js +2 -0
  1854. package/standalone/chunks/image-options.nl-DD1JEJSa.js +2 -0
  1855. package/standalone/chunks/image-slots.config-CdWEUY0l.js +2 -0
  1856. package/standalone/chunks/info-tooltip-options.config-DtfU5ZO8.js +2 -0
  1857. package/standalone/chunks/info-tooltip-options.i18n-B_gjTq0R.js +2 -0
  1858. package/standalone/chunks/interactivity-options.config-09eXx6k6.js +2 -0
  1859. package/standalone/chunks/interactivity-options.i18n-BLDCmZkC.js +2 -0
  1860. package/standalone/chunks/it-DWTvD2Xn.js +2 -0
  1861. package/standalone/chunks/item-option-action-button-group-1vJT13hn.js +35 -0
  1862. package/standalone/chunks/item-option-base-arXn9qIK.js +38 -0
  1863. package/standalone/chunks/item-option-color-palette-picker-BAb1QKFF.js +22 -0
  1864. package/standalone/chunks/item-option-color-picker-DFgEFGvt.js +16 -0
  1865. package/standalone/chunks/item-option-color-range-rNHTH03R.js +80 -0
  1866. package/standalone/chunks/item-option-guidelines-LZVdU6cc.js +117 -0
  1867. package/standalone/chunks/item-option-multi-language-field-CowaxhgV.js +15 -0
  1868. package/standalone/chunks/item-option-number-field-D30URw4j.js +20 -0
  1869. package/standalone/chunks/item-option-panel-BMpL-R40.js +298 -0
  1870. package/standalone/chunks/item-option-picker-Bs29TDV5.js +19 -0
  1871. package/standalone/chunks/item-option-position-picker-CbDkXCzd.js +14 -0
  1872. package/standalone/chunks/item-option-positions-number-field-BeGDu27j.js +31 -0
  1873. package/standalone/chunks/item-option-radio-button-group-Cfvm4Kvu.js +19 -0
  1874. package/standalone/chunks/item-option-slider-DRBazAXX.js +15 -0
  1875. package/standalone/chunks/item-option-switch-Ip5WnkXT.js +12 -0
  1876. package/standalone/chunks/item-option-text-field-b6TYuqP0.js +15 -0
  1877. package/standalone/chunks/item-slot-picker-panel-DL3K7S2U.js +439 -0
  1878. package/standalone/chunks/ja-CtDlXHD1.js +2 -0
  1879. package/standalone/chunks/ko-CekuHU50.js +2 -0
  1880. package/standalone/chunks/line-chart-options.config-DyqQLGw8.js +2 -0
  1881. package/standalone/chunks/line-chart-options.de-BScjvJsI.js +2 -0
  1882. package/standalone/chunks/line-chart-options.en-BVWFsre-.js +2 -0
  1883. package/standalone/chunks/line-chart-options.es-CxNJevNs.js +2 -0
  1884. package/standalone/chunks/line-chart-options.fr-LCsLx0Uh.js +2 -0
  1885. package/standalone/chunks/line-chart-options.nl-BOgcjx48.js +2 -0
  1886. package/standalone/chunks/line-chart-slots.config-CavGuJXK.js +2 -0
  1887. package/standalone/chunks/lit-localize-CIGP-NUw.js +2 -0
  1888. package/standalone/chunks/load-data-fields-for-datasets-B2b_TG8S.js +25 -0
  1889. package/standalone/chunks/load-formula-codemirror-DhXzFUcF.js +6 -0
  1890. package/standalone/chunks/localize-BXHWaHdZ.js +2 -0
  1891. package/standalone/chunks/localized-decorator-Buib6Rq1.js +2 -0
  1892. package/standalone/chunks/localized-mixin-B_AGm8Ur.js +2 -0
  1893. package/standalone/chunks/luzmo-icon-markup-Cw93OB80.js +13 -0
  1894. package/standalone/chunks/luzmoAlignLeft-HA-XKPHy.js +2 -0
  1895. package/standalone/chunks/luzmoAngleDown-PNrItYzK.js +2 -0
  1896. package/standalone/chunks/luzmoAngleLeft-ebJO7ROy.js +2 -0
  1897. package/standalone/chunks/luzmoArrowsHorizontal-TohKbcQD.js +2 -0
  1898. package/standalone/chunks/luzmoBorderDotted-CWXwQ_Hm.js +2 -0
  1899. package/standalone/chunks/luzmoCheckbox-BksyONqE.js +2 -0
  1900. package/standalone/chunks/luzmoCog-C4v4vc5N.js +2 -0
  1901. package/standalone/chunks/luzmoLockOutline-Dctb86HR.js +2 -0
  1902. package/standalone/chunks/luzmoPlus-Dyrrz0v8.js +2 -0
  1903. package/standalone/chunks/luzmoTable-BYeZ8pW6.js +2 -0
  1904. package/standalone/chunks/luzmoTrashOutline-DXZpJx7f.js +2 -0
  1905. package/standalone/chunks/map-tile-providers-DZT1QZX_.js +2 -0
  1906. package/standalone/chunks/marker-map-options.config-D_OTOZRe.js +2 -0
  1907. package/standalone/chunks/marker-map-options.de-SuCAxwxR.js +2 -0
  1908. package/standalone/chunks/marker-map-options.en-B-gl_14v.js +2 -0
  1909. package/standalone/chunks/marker-map-options.es-CSJGCzjk.js +2 -0
  1910. package/standalone/chunks/marker-map-options.fr-D5P_HjSn.js +2 -0
  1911. package/standalone/chunks/marker-map-options.nl-DdeyYFJQ.js +2 -0
  1912. package/standalone/chunks/marker-map-slots.config-CtzpU-rK.js +2 -0
  1913. package/standalone/chunks/mk-Dq3YK4jD.js +2 -0
  1914. package/standalone/chunks/nl-7csxtU-I.js +2 -0
  1915. package/standalone/chunks/nl-Doo97872.js +2 -0
  1916. package/standalone/chunks/no-DJNRx8au.js +2 -0
  1917. package/standalone/chunks/ohlc-chart-options.config-Bu2GKlAH.js +2 -0
  1918. package/standalone/chunks/ohlc-chart-options.de-DeQ8wdeE.js +2 -0
  1919. package/standalone/chunks/ohlc-chart-options.en-DopM1kPj.js +2 -0
  1920. package/standalone/chunks/ohlc-chart-options.es-BKjQWwH0.js +2 -0
  1921. package/standalone/chunks/ohlc-chart-options.fr-DWhV_lXz.js +2 -0
  1922. package/standalone/chunks/ohlc-chart-options.nl-D8lhNKIv.js +2 -0
  1923. package/standalone/chunks/ohlc-chart-slots.config-xYpPbmg2.js +2 -0
  1924. package/standalone/chunks/orion-BHOu-xse.js +2 -0
  1925. package/standalone/chunks/parallel-coordinates-plot-options.config-BcIYCRdF.js +2 -0
  1926. package/standalone/chunks/parallel-coordinates-plot-options.de-Dvi0gBbB.js +2 -0
  1927. package/standalone/chunks/parallel-coordinates-plot-options.en-LdifcLcc.js +2 -0
  1928. package/standalone/chunks/parallel-coordinates-plot-options.es-DNisZWdC.js +2 -0
  1929. package/standalone/chunks/parallel-coordinates-plot-options.fr-DwOBR0cp.js +2 -0
  1930. package/standalone/chunks/parallel-coordinates-plot-options.nl-DCXeTldD.js +2 -0
  1931. package/standalone/chunks/parallel-coordinates-plot-slots.config-DvJljfr8.js +2 -0
  1932. package/standalone/chunks/period-over-period-condition.const-AC_onvUf.js +2 -0
  1933. package/standalone/chunks/periods.const-Cie50jR4.js +2 -0
  1934. package/standalone/chunks/pinky-CkEB6Fvc.js +2 -0
  1935. package/standalone/chunks/pivot-table-options.config-BZpId1ju.js +2 -0
  1936. package/standalone/chunks/pivot-table-options.de-B0l711Q7.js +2 -0
  1937. package/standalone/chunks/pivot-table-options.en-D3MYHTWH.js +2 -0
  1938. package/standalone/chunks/pivot-table-options.es-CDACogGQ.js +2 -0
  1939. package/standalone/chunks/pivot-table-options.fr-C-w1sys8.js +2 -0
  1940. package/standalone/chunks/pivot-table-options.nl-Dy9VJ1bm.js +2 -0
  1941. package/standalone/chunks/pivot-table-slots.config-DZOE04Ea.js +2 -0
  1942. package/standalone/chunks/pl-zDnuk9Gd.js +2 -0
  1943. package/standalone/chunks/pt-BEVAH5AJ.js +2 -0
  1944. package/standalone/chunks/pyramid-chart-options.config-CBd-pgn_.js +2 -0
  1945. package/standalone/chunks/pyramid-chart-options.de-CBL_8UjH.js +2 -0
  1946. package/standalone/chunks/pyramid-chart-options.en-CTozc1Uh.js +2 -0
  1947. package/standalone/chunks/pyramid-chart-options.es-BKciL-nO.js +2 -0
  1948. package/standalone/chunks/pyramid-chart-options.fr-B04m8B_b.js +2 -0
  1949. package/standalone/chunks/pyramid-chart-options.nl-DIhj1NYF.js +2 -0
  1950. package/standalone/chunks/pyramid-chart-slots.config-DKBFy-TL.js +2 -0
  1951. package/standalone/chunks/radar-chart-options.config-CnQ8mbs9.js +2 -0
  1952. package/standalone/chunks/radar-chart-options.de-_LSueG69.js +2 -0
  1953. package/standalone/chunks/radar-chart-options.en-DBA8TpKJ.js +2 -0
  1954. package/standalone/chunks/radar-chart-options.es-DjSsFQkP.js +2 -0
  1955. package/standalone/chunks/radar-chart-options.fr-CCh2jYPS.js +2 -0
  1956. package/standalone/chunks/radar-chart-options.nl-tZ0JRjXD.js +2 -0
  1957. package/standalone/chunks/radar-chart-slots.config-CHauNDhi.js +2 -0
  1958. package/standalone/chunks/radiant-BfVbXYeP.js +2 -0
  1959. package/standalone/chunks/regular-table-options.config-BnhDzc-m.js +2 -0
  1960. package/standalone/chunks/regular-table-options.de-DPmii-jp.js +2 -0
  1961. package/standalone/chunks/regular-table-options.en-DQugncwx.js +2 -0
  1962. package/standalone/chunks/regular-table-options.es-DzbTEFoh.js +2 -0
  1963. package/standalone/chunks/regular-table-options.fr-roRCzuK8.js +2 -0
  1964. package/standalone/chunks/regular-table-options.nl-DxYUm_Rz.js +2 -0
  1965. package/standalone/chunks/regular-table-slots.config-BqEJgzhG.js +2 -0
  1966. package/standalone/chunks/route-map-options.config-CWyA9_SB.js +2 -0
  1967. package/standalone/chunks/route-map-options.de-Ke-Bybpi.js +2 -0
  1968. package/standalone/chunks/route-map-options.en-CDXIcBc0.js +2 -0
  1969. package/standalone/chunks/route-map-options.es-CCEXcHLb.js +2 -0
  1970. package/standalone/chunks/route-map-options.fr-BXoMKK54.js +2 -0
  1971. package/standalone/chunks/route-map-options.nl-U52AE8MW.js +2 -0
  1972. package/standalone/chunks/route-map-slots.config-B5G4JVnI.js +2 -0
  1973. package/standalone/chunks/royale-Bcd5VvC5.js +2 -0
  1974. package/standalone/chunks/ru-Ceji1Fqk.js +2 -0
  1975. package/standalone/chunks/sankey-diagram-options.config-Curc2-If.js +2 -0
  1976. package/standalone/chunks/sankey-diagram-options.de-Bisx6mpj.js +2 -0
  1977. package/standalone/chunks/sankey-diagram-options.en-DonChVRz.js +2 -0
  1978. package/standalone/chunks/sankey-diagram-options.es-TCXmlth5.js +2 -0
  1979. package/standalone/chunks/sankey-diagram-options.fr-B3iAnJNW.js +2 -0
  1980. package/standalone/chunks/sankey-diagram-options.nl-BnXZQEKn.js +2 -0
  1981. package/standalone/chunks/sankey-diagram-slots.config-jyKqjUsV.js +2 -0
  1982. package/standalone/chunks/scatter-plot-options.config-BV9Lb6-v.js +2 -0
  1983. package/standalone/chunks/scatter-plot-options.de-Dg3O1b2R.js +2 -0
  1984. package/standalone/chunks/scatter-plot-options.en-CJH2ZlFW.js +2 -0
  1985. package/standalone/chunks/scatter-plot-options.es-7kExRi4J.js +2 -0
  1986. package/standalone/chunks/scatter-plot-options.fr-Bbkf8efT.js +2 -0
  1987. package/standalone/chunks/scatter-plot-options.nl-zrEXoM-k.js +2 -0
  1988. package/standalone/chunks/scatter-plot-slots.config-CF2Ii2Ez.js +2 -0
  1989. package/standalone/chunks/search-filter-options.config-DPhYMtlJ.js +2 -0
  1990. package/standalone/chunks/search-filter-options.de-DewLFwK0.js +2 -0
  1991. package/standalone/chunks/search-filter-options.en-DyIupnO9.js +2 -0
  1992. package/standalone/chunks/search-filter-options.es-Dx1WGz-q.js +2 -0
  1993. package/standalone/chunks/search-filter-options.fr-BdnlKNNx.js +2 -0
  1994. package/standalone/chunks/search-filter-options.nl-DsKcc6ke.js +2 -0
  1995. package/standalone/chunks/search-filter-slots.config-BcTF-DAh.js +2 -0
  1996. package/standalone/chunks/seasonal-f6I--CYV.js +2 -0
  1997. package/standalone/chunks/slicer-filter-options.config-BQ1vpcTb.js +2 -0
  1998. package/standalone/chunks/slicer-filter-options.de-v0So4hDH.js +2 -0
  1999. package/standalone/chunks/slicer-filter-options.en-BkVZDku6.js +2 -0
  2000. package/standalone/chunks/slicer-filter-options.es-BATOs827.js +2 -0
  2001. package/standalone/chunks/slicer-filter-options.fr-DROih5R8.js +2 -0
  2002. package/standalone/chunks/slicer-filter-options.nl-CT4HfMiT.js +2 -0
  2003. package/standalone/chunks/slicer-filter-slots.config-DL3Q0Zbm.js +2 -0
  2004. package/standalone/chunks/slider-filter-options.config-ZCkBkeXQ.js +2 -0
  2005. package/standalone/chunks/slider-filter-options.de-BToTmIkJ.js +2 -0
  2006. package/standalone/chunks/slider-filter-options.en-Du0cf6NC.js +2 -0
  2007. package/standalone/chunks/slider-filter-options.es-6yGUkJ9r.js +2 -0
  2008. package/standalone/chunks/slider-filter-options.fr-DeupuOm1.js +2 -0
  2009. package/standalone/chunks/slider-filter-options.nl-K6BEul4-.js +2 -0
  2010. package/standalone/chunks/slider-filter-slots.config-52Bs7zu3.js +2 -0
  2011. package/standalone/chunks/spacer-options.config-DmYOnwBz.js +2 -0
  2012. package/standalone/chunks/speedometer-chart-options.config-YmUv49lQ.js +2 -0
  2013. package/standalone/chunks/speedometer-chart-options.de-CWVMBrx9.js +2 -0
  2014. package/standalone/chunks/speedometer-chart-options.en-DtCdA113.js +2 -0
  2015. package/standalone/chunks/speedometer-chart-options.es-BC1Y-Hje.js +2 -0
  2016. package/standalone/chunks/speedometer-chart-options.fr-BqnVNM9x.js +2 -0
  2017. package/standalone/chunks/speedometer-chart-options.nl-D2dmDbhJ.js +2 -0
  2018. package/standalone/chunks/speedometer-chart-slots.config-Cfsna_2O.js +2 -0
  2019. package/standalone/chunks/spike-map-options.config-YOYHTzZs.js +2 -0
  2020. package/standalone/chunks/spike-map-options.de-cIVh4l8Z.js +2 -0
  2021. package/standalone/chunks/spike-map-options.en-CKjynYQl.js +2 -0
  2022. package/standalone/chunks/spike-map-options.es-_GxcrK73.js +2 -0
  2023. package/standalone/chunks/spike-map-options.fr-DHi_gHN6.js +2 -0
  2024. package/standalone/chunks/spike-map-options.nl-Bicq35x0.js +2 -0
  2025. package/standalone/chunks/spike-map-slots.config-FfXNX2O3.js +2 -0
  2026. package/standalone/chunks/strip-plot-options.config-D84diNaB.js +2 -0
  2027. package/standalone/chunks/strip-plot-options.de-DjNnWJl2.js +2 -0
  2028. package/standalone/chunks/strip-plot-options.en-Of1sTT_A.js +2 -0
  2029. package/standalone/chunks/strip-plot-options.es-BEHY8I7g.js +2 -0
  2030. package/standalone/chunks/strip-plot-options.fr-DLfEoXBO.js +2 -0
  2031. package/standalone/chunks/strip-plot-options.nl-CA3oh18P.js +2 -0
  2032. package/standalone/chunks/strip-plot-slots.config-DQrrby2Y.js +2 -0
  2033. package/standalone/chunks/sunburst-chart-options.config-DRjBFJV0.js +2 -0
  2034. package/standalone/chunks/sunburst-chart-options.de-D6enQCjV.js +2 -0
  2035. package/standalone/chunks/sunburst-chart-options.en-D9DSivE2.js +2 -0
  2036. package/standalone/chunks/sunburst-chart-options.es-Bb7iCI1h.js +2 -0
  2037. package/standalone/chunks/sunburst-chart-options.fr-CCzUgv7r.js +2 -0
  2038. package/standalone/chunks/sunburst-chart-options.nl-bGOCvc4m.js +2 -0
  2039. package/standalone/chunks/sunburst-chart-slots.config-DqW1e0nf.js +2 -0
  2040. package/standalone/chunks/sv-CgssnOqA.js +2 -0
  2041. package/standalone/chunks/symbol-map-options.config-Bbb3xIKg.js +2 -0
  2042. package/standalone/chunks/symbol-map-options.de-CqxosoVr.js +2 -0
  2043. package/standalone/chunks/symbol-map-options.en-DT7vsjRh.js +2 -0
  2044. package/standalone/chunks/symbol-map-options.es-PGR-C-uM.js +2 -0
  2045. package/standalone/chunks/symbol-map-options.fr-CPNydqFW.js +2 -0
  2046. package/standalone/chunks/symbol-map-options.nl-BBHmJwLF.js +2 -0
  2047. package/standalone/chunks/symbol-map-slots.config-B_UtYexb.js +2 -0
  2048. package/standalone/chunks/task-pfWn4DHD.js +2 -0
  2049. package/standalone/chunks/text-options.config-Chv14kyQ.js +2 -0
  2050. package/standalone/chunks/text-options.de-CRVu5VAm.js +2 -0
  2051. package/standalone/chunks/text-options.en-CupCY5Us.js +2 -0
  2052. package/standalone/chunks/text-options.es-uKgRI4LZ.js +2 -0
  2053. package/standalone/chunks/text-options.fr-C256Njqd.js +2 -0
  2054. package/standalone/chunks/text-options.nl-CpMqMCOZ.js +2 -0
  2055. package/standalone/chunks/text-slots.config-D33nu0FP.js +2 -0
  2056. package/standalone/chunks/themes-BD5sKr3j.js +2 -0
  2057. package/standalone/chunks/tr-i3G2sFi4.js +2 -0
  2058. package/standalone/chunks/treemap-chart-options.config-DxkumoYq.js +2 -0
  2059. package/standalone/chunks/treemap-chart-options.de-DdhcpjTu.js +2 -0
  2060. package/standalone/chunks/treemap-chart-options.en-DB87QjbN.js +2 -0
  2061. package/standalone/chunks/treemap-chart-options.es-DEImFeIB.js +2 -0
  2062. package/standalone/chunks/treemap-chart-options.fr-BzM5c_vV.js +2 -0
  2063. package/standalone/chunks/treemap-chart-options.nl-CFJgBJi2.js +2 -0
  2064. package/standalone/chunks/treemap-chart-slots.config-CaearczZ.js +2 -0
  2065. package/standalone/chunks/type-check-CC6bgirK.js +2 -0
  2066. package/standalone/chunks/types-BS6dxSMT.js +2 -0
  2067. package/standalone/chunks/urban-BEeGnayr.js +2 -0
  2068. package/standalone/chunks/v4-CI0qP0ur.js +2 -0
  2069. package/standalone/chunks/venn-diagram-options.config-DmYOnwBz.js +2 -0
  2070. package/standalone/chunks/venn-diagram-slots.config-GnP5AAAL.js +2 -0
  2071. package/standalone/chunks/version-DJES6maY.js +2 -0
  2072. package/standalone/chunks/video-options.config-CfgT_MAw.js +2 -0
  2073. package/standalone/chunks/video-options.de-Cxs3-JN3.js +2 -0
  2074. package/standalone/chunks/video-options.en-ck74JByC.js +2 -0
  2075. package/standalone/chunks/video-options.es-UdEH3Rzk.js +2 -0
  2076. package/standalone/chunks/video-options.fr-p5bOI-bw.js +2 -0
  2077. package/standalone/chunks/video-options.nl-CBYWp-Df.js +2 -0
  2078. package/standalone/chunks/video-slots.config-ufoVcXKL.js +2 -0
  2079. package/standalone/chunks/vivid-BC9AYKyD.js +2 -0
  2080. package/standalone/chunks/wordcloud-chart-options.config-b-ibtRWp.js +2 -0
  2081. package/standalone/chunks/wordcloud-chart-options.de-B0CeI2KB.js +2 -0
  2082. package/standalone/chunks/wordcloud-chart-options.en-BQ-8ciOw.js +2 -0
  2083. package/standalone/chunks/wordcloud-chart-options.es-DyMrHpJL.js +2 -0
  2084. package/standalone/chunks/wordcloud-chart-options.fr-V1k_70yq.js +2 -0
  2085. package/standalone/chunks/wordcloud-chart-options.nl-CrfYuaYy.js +2 -0
  2086. package/standalone/chunks/wordcloud-chart-slots.config-g7QwS2dG.js +2 -0
  2087. package/standalone/chunks/zh-CN-NVnv57dz.js +2 -0
  2088. package/standalone/chunks/zh-TW-NVnv57dz.js +2 -0
  2089. package/standalone/interactive-viz-item.js +263 -0
  2090. package/standalone/item-grid.js +120 -0
  2091. package/standalone/manifest.json +436 -0
  2092. package/storybook/register-components.d.ts +58 -0
  2093. package/styles/tokens.d.ts +1 -0
  2094. package/types/add-to-dashboard.types.d.ts +51 -0
  2095. package/types/agent.types.d.ts +4 -0
  2096. package/types/ai-chat.types.d.ts +104 -0
  2097. package/types/data-field-events.types.d.ts +7 -0
  2098. package/types.d.ts +11 -0
  2099. package/utils/create-lazy-loader.d.ts +5 -0
  2100. package/utils/data-broker/index.d.ts +19 -1
  2101. package/utils/data-broker/tests/data-broker.test.d.ts +1 -0
  2102. package/utils/filters/filter-text.d.ts +64 -0
  2103. package/utils/filters/index.d.ts +1 -0
  2104. package/utils/filters/presentation.d.ts +4 -0
  2105. package/utils/filters/tests/filter-text.test.d.ts +1 -0
  2106. package/utils/formatter/localized-template.d.ts +4 -0
  2107. package/utils/formatter/tests/localized-template.test.d.ts +1 -0
  2108. package/utils/formula/base/formula-base.d.ts +2 -2
  2109. package/utils/formula/config/build-datasets.d.ts +2 -2
  2110. package/utils/formula/store/formula-display-store.d.ts +1 -1
  2111. package/utils/tests/create-lazy-loader.test.d.ts +1 -0
  2112. package/components/area-chart-options.config-B94ERc30.js +0 -201
  2113. package/components/area-chart-positioning.config-BJK4Q4NL.js +0 -55
  2114. package/components/area-chart-positioning.config-Cbeon6-x.cjs +0 -20
  2115. package/components/area-chart-slots.config-DdPO34_g.js +0 -55
  2116. package/components/bar-chart-options.config-B1C3t6uk.js +0 -261
  2117. package/components/bar-chart-positioning.config-B4UuSMIW.js +0 -59
  2118. package/components/bar-chart-positioning.config-BnhZQUtb.cjs +0 -20
  2119. package/components/bar-chart-slots.config-BnbZRLIr.js +0 -50
  2120. package/components/base-BtRS5vm6.cjs +0 -20
  2121. package/components/base-IE9Qxmub.js +0 -248
  2122. package/components/box-plot-options.config-sBfVzPTw.js +0 -334
  2123. package/components/box-plot-positioning.config-CYk5koLu.js +0 -48
  2124. package/components/box-plot-positioning.config-DsldCFWm.cjs +0 -20
  2125. package/components/box-plot-slots.config-D6F2R2dw.js +0 -40
  2126. package/components/bubble-chart-options.config-DKeBF5A0.js +0 -142
  2127. package/components/bubble-chart-positioning.config-BSDmuPwq.js +0 -55
  2128. package/components/bubble-chart-positioning.config-BV-T_2cy.cjs +0 -20
  2129. package/components/bubble-chart-slots.config-BJdtdpS0.js +0 -47
  2130. package/components/bullet-chart-options.config-DdTBWTAF.js +0 -76
  2131. package/components/bullet-chart-positioning.config-B3GeLs8o.js +0 -56
  2132. package/components/bullet-chart-positioning.config-BoqQq4g_.cjs +0 -20
  2133. package/components/bullet-chart-slots.config-NeUTKgYI.js +0 -46
  2134. package/components/choropleth-map-options.config-nOE0NWaD.js +0 -352
  2135. package/components/choropleth-map-positioning.config-6OT0sZa5.js +0 -55
  2136. package/components/choropleth-map-positioning.config-C_I3wf8H.cjs +0 -20
  2137. package/components/choropleth-map-slots.config-BbBwTeuw.js +0 -53
  2138. package/components/circle-pack-chart-options.config-CgE8vGP9.js +0 -60
  2139. package/components/circle-pack-chart-positioning.config-BuuhKB85.js +0 -48
  2140. package/components/circle-pack-chart-positioning.config-D7Oke8BW.cjs +0 -20
  2141. package/components/circle-pack-chart-slots.config-CJFjalBn.js +0 -38
  2142. package/components/circular-gauge-options.config-DtNYelhq.js +0 -193
  2143. package/components/circular-gauge-positioning.config-B_IJzIBn.cjs +0 -20
  2144. package/components/circular-gauge-positioning.config-DlWvKl0e.js +0 -48
  2145. package/components/circular-gauge-slots.config-DAKsa5Hq.js +0 -39
  2146. package/components/column-chart-options.config-C2GGiHOI.js +0 -260
  2147. package/components/column-chart-positioning.config-BLacEiY5.js +0 -55
  2148. package/components/column-chart-positioning.config-DngsP5So.cjs +0 -20
  2149. package/components/column-chart-slots.config-Bpr-WaCi.js +0 -50
  2150. package/components/combination-chart-options.config-LddX4naq.js +0 -139
  2151. package/components/combination-chart-positioning.config-BVV0Bq-d.cjs +0 -20
  2152. package/components/combination-chart-positioning.config-DxnmzV6O.js +0 -48
  2153. package/components/combination-chart-slots.config-u-QLoQQ-.js +0 -43
  2154. package/components/conditional-number-options.config-qdX9T4zu.js +0 -210
  2155. package/components/conditional-number-positioning.config-DfitbPT6.cjs +0 -20
  2156. package/components/conditional-number-positioning.config-YEo_yFBu.js +0 -48
  2157. package/components/conditional-number-slots.config-CiLUXRSe.js +0 -39
  2158. package/components/data-broker-B0uUO5er.js +0 -1684
  2159. package/components/data-broker-CyMYR6w1.cjs +0 -20
  2160. package/components/data-field-fvlYzmfX.cjs +0 -89
  2161. package/components/data-field-panel-BWBr1Fog.js +0 -384
  2162. package/components/data-field-panel-Yrqn4L79.cjs +0 -87
  2163. package/components/data-field-yTJb-R63.js +0 -341
  2164. package/components/data-fields-select-Bb1HXwlO.js +0 -279
  2165. package/components/data-fields-select-Cor6sfzL.cjs +0 -41
  2166. package/components/date-comparison-filter-options.config-BSzzAJPM.js +0 -126
  2167. package/components/date-comparison-filter-slots.config-Cvze969w.js +0 -33
  2168. package/components/date-filter-options.config-C6VvDjd8.js +0 -118
  2169. package/components/date-filter-slots.config-Y8hmQh0S.js +0 -37
  2170. package/components/de-C5CMIy08.js +0 -531
  2171. package/components/de-CdZnQbKI.cjs +0 -20
  2172. package/components/display-settings-binning-CaE87u3h.js +0 -112
  2173. package/components/display-settings-binning-CjvB12ds.cjs +0 -56
  2174. package/components/display-settings-datetime-5rq55OAn.js +0 -415
  2175. package/components/display-settings-datetime-B23w7aH4.cjs +0 -217
  2176. package/components/display-settings-grand-totals-BZ0nlLhu.cjs +0 -44
  2177. package/components/display-settings-grand-totals-DnKvI34n.js +0 -91
  2178. package/components/display-settings-numeric-B8MCRz-V.js +0 -481
  2179. package/components/display-settings-numeric-DoScgfRy.cjs +0 -190
  2180. package/components/display-settings-period-over-period-C-hp0ZKN.cjs +0 -227
  2181. package/components/display-settings-period-over-period-W3dPK8LR.js +0 -443
  2182. package/components/donut-chart-options.config-CPHgS1Wi.js +0 -217
  2183. package/components/donut-chart-positioning.config-QOZXaJmt.cjs +0 -20
  2184. package/components/donut-chart-positioning.config-fGckMun2.js +0 -48
  2185. package/components/donut-chart-slots.config-DilGk7ju.js +0 -39
  2186. package/components/dropdown-filter-options.config-DFJKns3l.js +0 -153
  2187. package/components/dropdown-filter-slots.config-7heZtoEY.js +0 -38
  2188. package/components/en-CSPDwq2y.cjs +0 -20
  2189. package/components/en-DdS5q1ZT.js +0 -21
  2190. package/components/en-GB-CJR66Ci_.cjs +0 -20
  2191. package/components/en-GB-Cn0xDC0K.js +0 -28
  2192. package/components/en-US-CSPDwq2y.cjs +0 -20
  2193. package/components/en-US-DdS5q1ZT.js +0 -21
  2194. package/components/es-7RD7O4q3.cjs +0 -20
  2195. package/components/es-BCur0-77.js +0 -531
  2196. package/components/evolution-number-options.config-DT7iGQA8.js +0 -230
  2197. package/components/evolution-number-positioning.config-B7lBArog.cjs +0 -20
  2198. package/components/evolution-number-positioning.config-CVIysE4H.js +0 -48
  2199. package/components/evolution-number-slots.config-noZzIHkT.js +0 -37
  2200. package/components/filters-DndJU6D5.js +0 -2454
  2201. package/components/filters-oB9qOk_M.cjs +0 -443
  2202. package/components/formula-BFvxm8kj.cjs +0 -45
  2203. package/components/formula-CdAkO1za.js +0 -137
  2204. package/components/formula-codemirror-jVC8mjQ3.js +0 -12016
  2205. package/components/formula-codemirror-ucFOD-2a.cjs +0 -215
  2206. package/components/formula-display-store-CLAt_fik.js +0 -1122
  2207. package/components/formula-display-store-DmT65fUB.cjs +0 -20
  2208. package/components/formula-editor-Bd9F-xdZ.js +0 -895
  2209. package/components/formula-editor-BeZ-fu-7.cjs +0 -253
  2210. package/components/fr-BnECl1nx.js +0 -531
  2211. package/components/fr-CGw2IwXh.cjs +0 -20
  2212. package/components/funnel-chart-options.config-D21WdHBI.js +0 -211
  2213. package/components/funnel-chart-positioning.config-BGi7ixet.js +0 -48
  2214. package/components/funnel-chart-positioning.config-zEqgz9Wz.cjs +0 -20
  2215. package/components/funnel-chart-slots.config-BWszdEe8.js +0 -43
  2216. package/components/get-css-variable-B8sJUuig.cjs +0 -20
  2217. package/components/get-css-variable-r1spgqX0.js +0 -63
  2218. package/components/heat-map-options.config-DkuYkbWu.js +0 -226
  2219. package/components/heat-map-positioning.config-3dxU6qwG.cjs +0 -20
  2220. package/components/heat-map-positioning.config-CK2DBngE.js +0 -48
  2221. package/components/heat-map-slots.config-Cwun49Qb.js +0 -37
  2222. package/components/heat-table-options.config-BJP1jVB8.js +0 -269
  2223. package/components/heat-table-positioning.config-C55D814C.js +0 -55
  2224. package/components/heat-table-positioning.config-CbscS7w1.cjs +0 -20
  2225. package/components/heat-table-slots.config-nGB_B2mh.js +0 -49
  2226. package/components/hexbin-map-options.config-Bqp3u2bH.js +0 -278
  2227. package/components/hexbin-map-positioning.config-9nnyZGzx.js +0 -48
  2228. package/components/hexbin-map-positioning.config-CHecaD9p.cjs +0 -20
  2229. package/components/hexbin-map-slots.config-BK-ftozd.js +0 -37
  2230. package/components/image-options.config-Cz55iN7J.js +0 -153
  2231. package/components/image-slots.config-kvHutBFK.js +0 -24
  2232. package/components/item-grid/item-grid-item-actions-menu.d.ts +0 -35
  2233. package/components/item-grid-C2ZvM04g.cjs +0 -113
  2234. package/components/item-grid-D4xYhMOD.js +0 -4558
  2235. package/components/item-option-28BU_oaD.js +0 -955
  2236. package/components/item-option-BQpS6rM_.cjs +0 -269
  2237. package/components/item-option-action-button-group-BwBxRLzB.cjs +0 -53
  2238. package/components/item-option-action-button-group-D_g6aoYd.js +0 -118
  2239. package/components/item-option-base-C6uwowJD.cjs +0 -56
  2240. package/components/item-option-base-CxQhI83u.js +0 -123
  2241. package/components/item-option-color-palette-picker-BjHadiN0.cjs +0 -40
  2242. package/components/item-option-color-palette-picker-CRDFqhWx.js +0 -2041
  2243. package/components/item-option-color-picker-BJgpBbDp.cjs +0 -34
  2244. package/components/item-option-color-picker-BlkpWjQh.js +0 -87
  2245. package/components/item-option-color-range-3Wp-Ywz6.js +0 -220
  2246. package/components/item-option-color-range-CQo8uThO.cjs +0 -98
  2247. package/components/item-option-guidelines-CQ_yb7Ar.js +0 -418
  2248. package/components/item-option-guidelines-Daf8Ce5z.cjs +0 -135
  2249. package/components/item-option-multi-language-field-BApbe3pp.cjs +0 -33
  2250. package/components/item-option-multi-language-field-aLIpQWiQ.js +0 -82
  2251. package/components/item-option-number-field-B72ZYOAX.cjs +0 -38
  2252. package/components/item-option-number-field-Bv5eGoxB.js +0 -102
  2253. package/components/item-option-panel-A8Jxzwml.cjs +0 -67
  2254. package/components/item-option-panel-kRH7GbzA.js +0 -183
  2255. package/components/item-option-picker-BuUtW6gD.js +0 -77
  2256. package/components/item-option-picker-DOFJ1CnI.cjs +0 -37
  2257. package/components/item-option-position-picker-Cnis4wLA.cjs +0 -32
  2258. package/components/item-option-position-picker-mf3JQu5q.js +0 -117
  2259. package/components/item-option-positions-number-field-B7gI1IKO.cjs +0 -49
  2260. package/components/item-option-positions-number-field-BIBWpagB.js +0 -164
  2261. package/components/item-option-radio-button-group-B2HYZguB.cjs +0 -37
  2262. package/components/item-option-radio-button-group-CFnfadK2.js +0 -74
  2263. package/components/item-option-slider--7hmhi97.cjs +0 -33
  2264. package/components/item-option-slider-CH1l0Ena.js +0 -96
  2265. package/components/item-option-switch-hUFRE9MC.cjs +0 -30
  2266. package/components/item-option-switch-rqu2ePVU.js +0 -69
  2267. package/components/item-option-text-field-C6CocZ5q.cjs +0 -33
  2268. package/components/item-option-text-field-CBFMmuK2.js +0 -80
  2269. package/components/item-slot-drop-DDGclwbP.js +0 -326
  2270. package/components/item-slot-drop-hK-rLhwa.cjs +0 -91
  2271. package/components/item-slot-drop-panel-CE4f9X6F.cjs +0 -57
  2272. package/components/item-slot-drop-panel-Cj6vbgJl.js +0 -354
  2273. package/components/item-slot-picker-CjQH3MU-.js +0 -500
  2274. package/components/item-slot-picker-Wf50lM5u.cjs +0 -174
  2275. package/components/item-slot-picker-panel-7IFk5QFC.js +0 -447
  2276. package/components/item-slot-picker-panel-Csn1tabr.cjs +0 -81
  2277. package/components/line-chart-options.config-D8gRtfj3.js +0 -237
  2278. package/components/line-chart-positioning.config-D5WVvIZT.js +0 -55
  2279. package/components/line-chart-positioning.config-DuXn1WD-.cjs +0 -20
  2280. package/components/line-chart-slots.config-C6LEwEwh.js +0 -55
  2281. package/components/load-data-fields-for-datasets-B76UR0sG.js +0 -86
  2282. package/components/load-data-fields-for-datasets-DFYeACsu.cjs +0 -20
  2283. package/components/localized-mixin-DfpurTYo.cjs +0 -20
  2284. package/components/localized-mixin-DhiGdPMj.js +0 -52
  2285. package/components/marker-map-options.config-BE8GnY_T.js +0 -122
  2286. package/components/marker-map-positioning.config-D2L7cvCP.js +0 -48
  2287. package/components/marker-map-positioning.config-DfN39a-Q.cjs +0 -20
  2288. package/components/marker-map-slots.config-Cyk-QFPT.js +0 -37
  2289. package/components/nl-BnzS_ZtB.cjs +0 -20
  2290. package/components/nl-h9vVAk2e.js +0 -531
  2291. package/components/ohlc-chart-options.config-xgegn34C.js +0 -94
  2292. package/components/ohlc-chart-positioning.config-C53dCwaT.js +0 -78
  2293. package/components/ohlc-chart-positioning.config-DsBuB0VU.cjs +0 -20
  2294. package/components/ohlc-chart-slots.config-CQFi8BIT.js +0 -68
  2295. package/components/parallel-coordinates-plot-options.config-BUQLHO1k.js +0 -48
  2296. package/components/parallel-coordinates-plot-positioning.config-DhoVstsb.js +0 -48
  2297. package/components/parallel-coordinates-plot-positioning.config-aiFzLnnh.cjs +0 -20
  2298. package/components/parallel-coordinates-plot-slots.config-D5o-5y_j.js +0 -46
  2299. package/components/period-over-period-condition.const-DDgiXIfR.cjs +0 -20
  2300. package/components/period-over-period-condition.const-IOVIrgKJ.js +0 -1663
  2301. package/components/pivot-table-options.config-DW9UDipI.js +0 -249
  2302. package/components/pivot-table-positioning.config-Bq9BoQWM.cjs +0 -20
  2303. package/components/pivot-table-positioning.config-Cnai84AH.js +0 -55
  2304. package/components/pivot-table-slots.config-Cl5z3IQo.js +0 -55
  2305. package/components/pragmatic-element-adapter-C_7HSvGV.js +0 -1252
  2306. package/components/pragmatic-element-adapter-DPWYJiW9.cjs +0 -24
  2307. package/components/pyramid-chart-options.config-Cbg351Yy.js +0 -220
  2308. package/components/pyramid-chart-positioning.config-BeJ5R_Ln.js +0 -55
  2309. package/components/pyramid-chart-positioning.config-D5AKNCPb.cjs +0 -20
  2310. package/components/pyramid-chart-slots.config-DNzq2hMx.js +0 -50
  2311. package/components/radar-chart-options.config-DrNyOkHq.js +0 -152
  2312. package/components/radar-chart-positioning.config-BEIwrzhb.cjs +0 -20
  2313. package/components/radar-chart-positioning.config-DsfUBq4B.js +0 -55
  2314. package/components/radar-chart-slots.config-CXgfvAkt.js +0 -53
  2315. package/components/regular-table-options.config-CweBtAvm.js +0 -153
  2316. package/components/regular-table-slots.config-DCkw4Xkq.js +0 -35
  2317. package/components/route-map-options.config-DXHqb8Ve.js +0 -328
  2318. package/components/route-map-positioning.config-4Wyvj5OH.cjs +0 -20
  2319. package/components/route-map-positioning.config-CuiRWzbs.js +0 -66
  2320. package/components/route-map-slots.config-DJ76FOsJ.js +0 -59
  2321. package/components/sankey-diagram-options.config-1lSECht4.js +0 -130
  2322. package/components/sankey-diagram-positioning.config-CZ-zVCQo.cjs +0 -20
  2323. package/components/sankey-diagram-positioning.config-DtN7dARd.js +0 -66
  2324. package/components/sankey-diagram-slots.config-BCc8P4j0.js +0 -61
  2325. package/components/scatter-plot-options.config-9zL4v24E.js +0 -133
  2326. package/components/scatter-plot-positioning.config-BXrzdLIc.js +0 -77
  2327. package/components/scatter-plot-positioning.config-CfAf_FUW.cjs +0 -20
  2328. package/components/scatter-plot-slots.config-BMTdhTZG.js +0 -74
  2329. package/components/search-filter-options.config-B_qQjr68.js +0 -103
  2330. package/components/search-filter-slots.config-qCILSYzs.js +0 -39
  2331. package/components/set-locale-B-GvqA1H.cjs +0 -20
  2332. package/components/set-locale-CgCeLPlb.js +0 -43
  2333. package/components/slicer-filter-options.config-DK62SCMp.js +0 -235
  2334. package/components/slicer-filter-positioning.config-BLGeCJys.js +0 -48
  2335. package/components/slicer-filter-positioning.config-CU86hJi6.cjs +0 -20
  2336. package/components/slicer-filter-slots.config-C9_NdJm4.js +0 -44
  2337. package/components/slider-filter-options.config-CP5bXdih.js +0 -72
  2338. package/components/slider-filter-slots.config-15eAAGVn.js +0 -43
  2339. package/components/slot-menu-1zlmyLVl.js +0 -1060
  2340. package/components/slot-menu-BSu8wKLi.cjs +0 -217
  2341. package/components/speedometer-chart-options.config-dsUupCqm.js +0 -251
  2342. package/components/speedometer-chart-positioning.config-AeMlNxSj.cjs +0 -20
  2343. package/components/speedometer-chart-positioning.config-Dam0wOqp.js +0 -48
  2344. package/components/speedometer-chart-slots.config-DfTw7JTF.js +0 -39
  2345. package/components/spike-map-options.config-Dh4Ky5ZP.js +0 -415
  2346. package/components/spike-map-positioning.config-9ShV1fUh.cjs +0 -20
  2347. package/components/spike-map-positioning.config-BVzewpfi.js +0 -55
  2348. package/components/spike-map-slots.config-i-c0F9QM.js +0 -47
  2349. package/components/strip-plot-options.config-Vw3GoLef.js +0 -54
  2350. package/components/strip-plot-positioning.config-BVBdHZvL.cjs +0 -20
  2351. package/components/strip-plot-positioning.config-OHm3LEo3.js +0 -48
  2352. package/components/strip-plot-slots.config-BuF7X3xN.js +0 -38
  2353. package/components/sunburst-chart-options.config-CXOrVmIe.js +0 -184
  2354. package/components/sunburst-chart-positioning.config-BynNbbxB.js +0 -48
  2355. package/components/sunburst-chart-positioning.config-DQmuKm-N.cjs +0 -20
  2356. package/components/sunburst-chart-slots.config-Cq-E6kyI.js +0 -38
  2357. package/components/symbol-map-options.config-Dultd0tF.js +0 -179
  2358. package/components/symbol-map-positioning.config-D6rgxXTO.cjs +0 -20
  2359. package/components/symbol-map-positioning.config-bQk_pdAr.js +0 -55
  2360. package/components/symbol-map-slots.config-BfdBHkzN.js +0 -53
  2361. package/components/text-options.config-BUiRyi3L.js +0 -67
  2362. package/components/text-slots.config-CM_ZaW3p.js +0 -24
  2363. package/components/treemap-chart-options.config-6l3HzikF.js +0 -211
  2364. package/components/treemap-chart-positioning.config-BB1-rZKL.js +0 -55
  2365. package/components/treemap-chart-positioning.config-ZaoIngRn.cjs +0 -20
  2366. package/components/treemap-chart-slots.config-CHkGtIOa.js +0 -47
  2367. package/components/utils-CPIzW8sp.cjs +0 -20
  2368. package/components/utils-ZoJ1cp2P.js +0 -239
  2369. package/components/venn-diagram-options.config-Wi0dQsAu.js +0 -24
  2370. package/components/venn-diagram-positioning.config-C9ARqREi.js +0 -55
  2371. package/components/venn-diagram-positioning.config-Cb10sStL.cjs +0 -20
  2372. package/components/venn-diagram-slots.config-DY04aeYK.js +0 -47
  2373. package/components/video-options.config-B6pQUPB7.js +0 -127
  2374. package/components/video-slots.config-C-kXGzo3.js +0 -24
  2375. package/components/wordcloud-chart-options.config-CpMtpG7q.js +0 -97
  2376. package/components/wordcloud-chart-positioning.config-D59ntNtd.js +0 -55
  2377. package/components/wordcloud-chart-positioning.config-DC89_DYc.cjs +0 -20
  2378. package/components/wordcloud-chart-slots.config-Cc5F92Tv.js +0 -45
@@ -0,0 +1,4655 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2026 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import "./tokens-Ov1pCR4Y.js";
21
+ import { t as e } from "./decorate-DyMgX_Uh.js";
22
+ import { t } from "./color-BWnYpOu7.js";
23
+ import { t as n } from "./v4-DIjJgmR0.js";
24
+ import { n as r, t as i } from "./themes-CQZd578_.js";
25
+ import { itemTypes as a } from "./item-list.js";
26
+ import "./item-grid-item-actions-menu-Bpon76tP.js";
27
+ import { luzmoArrows as o, luzmoCircle as s, luzmoClone as c, luzmoCog as l, luzmoFilterOutline as u, luzmoLockOutline as d, luzmoPencil as f, luzmoTable as p, luzmoTrashOutline as m } from "@luzmo/icons";
28
+ import "@luzmo/lucero/icon";
29
+ import { html as h, nothing as g, render as _, unsafeCSS as v } from "lit";
30
+ import { property as y, query as b, queryAll as x, state as ee } from "lit/decorators.js";
31
+ import { msg as S } from "@lit/localize";
32
+ import "@luzmo/lucero/action-button";
33
+ import { repeat as C } from "lit/directives/repeat.js";
34
+ import { guard as w } from "lit/directives/guard.js";
35
+ import "@luzmo/embed";
36
+ import "@luzmo/lucero/action-group";
37
+ import { LuzmoElement as te } from "@luzmo/lucero/utils";
38
+ //#region node_modules/gridstack/dist/gridstack.min.css?inline
39
+ var ne = ".grid-stack{position:relative}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;width:auto;margin:0;position:absolute;z-index:0!important}.grid-stack>.grid-stack-item{width:var(--gs-column-width);height:var(--gs-cell-height);padding:0;position:absolute;top:0}.grid-stack>.grid-stack-item>.grid-stack-item-content{width:auto;margin:0;position:absolute;overflow:hidden auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item{right:0}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{-ms-touch-action:manipulation;touch-action:manipulation;-webkit-user-select:none;user-select:none;z-index:100;font-size:.1px;display:block;position:absolute}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{z-index:101;background-image:url(\"data:image/svg+xml;utf8,<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" fill=\\\"none\\\" stroke=\\\"%23666\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\" stroke-width=\\\"2\\\" viewBox=\\\"0 0 20 20\\\"><path d=\\\"m10 3 2 2H8l2-2v14l-2-2h4l-2 2\\\"/></svg>\");background-position:50%;background-repeat:no-repeat}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,right,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.grid-stack-item.ui-draggable-armed{cursor:move;animation:.25s ease-in-out infinite gs-armed-wiggle}.grid-stack-item>.ui-resizable-handle.ui-resizable-armed{animation:.5s ease-in-out infinite gs-armed-pulse}@keyframes gs-armed-wiggle{0%,to{transform:rotate(0)}25%{transform:rotate(-1.5deg)}75%{transform:rotate(1.5deg)}}@keyframes gs-armed-pulse{0%,to{opacity:1}50%{opacity:.3}}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{opacity:.8;box-shadow:1px 4px 6px #0003}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,right .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left,right,top,height,width}.grid-stack>.grid-stack-item[gs-y=\"0\"]{top:0}.grid-stack:not(.grid-stack-rtl)>.grid-stack-item[gs-x=\"0\"]{left:0}.grid-stack.grid-stack-rtl>.grid-stack-item[gs-x=\"0\"]{right:0}.gs-print-show{display:none}@media print{@page gs-landscape{size:landscape}@page gs-portrait{size:portrait}.grid-stack{height:auto!important;display:block!important;position:static!important}.grid-stack>.grid-stack-item{float:left!important;height:auto!important;width:calc(100% * var(--gs-w)/ var(--gs-columns,12))!important;break-inside:avoid!important;page-break-inside:avoid!important;display:block!important;position:static!important;top:auto!important;left:auto!important}.grid-stack>.grid-stack-item>.grid-stack-item-content{white-space:normal!important;height:auto!important;margin-top:var(--gs-item-margin-top)!important;margin-right:var(--gs-item-margin-right)!important;margin-bottom:var(--gs-item-margin-bottom)!important;margin-left:var(--gs-item-margin-left)!important;position:relative!important;inset:auto!important;overflow:visible!important}.gs-print-hide{display:none}.gs-print-show{display:block}.gs-print-avoid-break-after{break-after:avoid!important;page-break-after:avoid!important}.grid-stack>.grid-stack-item.gs-print-hide{display:none!important}.grid-stack>.grid-stack-item[gs-page-break=true],.grid-stack>.grid-stack-item[gs-print-orientation]{float:none!important;clear:both!important}.grid-stack>.grid-stack-item[gs-page-break=true]{page-break-before:always!important;break-before:page!important}.grid-stack>.grid-stack-item[gs-print-orientation=landscape]{page:gs-landscape;min-width:calc(100vmax * var(--gs-w)/ var(--gs-columns,12))!important}.grid-stack>.grid-stack-item[gs-print-orientation=portrait]{page:gs-portrait;min-width:calc(100vmin * var(--gs-w)/ var(--gs-columns,12))!important}.grid-stack>.grid-stack-item[gs-break-inside=true]{float:none!important;clear:both!important;break-inside:auto!important;page-break-inside:auto!important;width:100%!important}.grid-stack>.grid-stack-item>.ui-resizable-handle{display:none!important}}", re = (e, t) => {
40
+ e.forEach((e) => {
41
+ let n = e.querySelector("luzmo-embed-viz-item");
42
+ n && (n.options = {
43
+ ...n.options,
44
+ locale: t
45
+ });
46
+ });
47
+ }, ie = ({ action: e, actionType: t, active: n, items: r, element: i, itemId: a, item: o, deletedId: s, originalElement: c, updatedItems: l }) => ({
48
+ action: e,
49
+ actionType: t,
50
+ active: n,
51
+ items: r,
52
+ element: i,
53
+ item: {
54
+ ...o,
55
+ id: a,
56
+ filters: o?.filters ?? []
57
+ },
58
+ ...s && { deletedId: s },
59
+ ...c && { originalElement: c },
60
+ ...l && { updatedItems: l }
61
+ }), T = ({ target: e, action: t, actionType: n, active: r, items: i, element: a, itemId: o, item: s, deletedId: c, originalElement: l, updatedItems: u }) => {
62
+ e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-action", {
63
+ detail: ie({
64
+ action: t,
65
+ actionType: n,
66
+ active: r,
67
+ items: i,
68
+ element: a,
69
+ itemId: o,
70
+ item: s,
71
+ deletedId: c,
72
+ originalElement: l,
73
+ updatedItems: u
74
+ }),
75
+ bubbles: !0,
76
+ composed: !0,
77
+ cancelable: !0
78
+ }));
79
+ }, E = ({ target: e, itemStates: t, updatedItemStates: n, changedItemStates: r }) => {
80
+ e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-states-changed", {
81
+ detail: {
82
+ itemStates: t,
83
+ updatedItemStates: n,
84
+ changedItemStates: r
85
+ },
86
+ bubbles: !0,
87
+ composed: !0
88
+ }));
89
+ }, ae = ({ target: e, eventName: t, detail: n }) => {
90
+ e.dispatchEvent(new CustomEvent(t, {
91
+ detail: n,
92
+ bubbles: !0,
93
+ composed: !0
94
+ }));
95
+ }, oe = (e) => e instanceof Element ? e : void 0, se = (e) => oe(e)?.closest(".grid-stack-item"), ce = ({ event: e, gridItem: t }) => !oe(e.relatedTarget)?.closest(".grid-item-actions-popover") && !t.hasAttribute("active"), le = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => {
96
+ let r = se(e.target);
97
+ return r ? (t && t !== r && (t.removeAttribute("focused"), n(t)), r.setAttribute("focused", "true"), r) : t;
98
+ }, ue = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => t ? oe(e.relatedTarget)?.closest("luzmo-item-grid-item-actions-menu") ? {
99
+ focusedItemElement: t,
100
+ shouldFocusGrid: !1
101
+ } : (t.removeAttribute("focused"), n(t), {
102
+ focusedItemElement: void 0,
103
+ shouldFocusGrid: !0
104
+ }) : {
105
+ focusedItemElement: void 0,
106
+ shouldFocusGrid: !1
107
+ }, de = ({ item: e, activeItemElement: t, gridElement: n, removeItemActionsMenuPopover: r }) => {
108
+ if (e.removeAttribute("active"), r(e), t === e) {
109
+ n.removeAttribute("has-active-item");
110
+ return;
111
+ }
112
+ return t;
113
+ }, fe = ({ event: e, gridElement: t, items: n, state: r, cleanupActiveItem: i, dispatchItemActionEvent: a, createItemActionsMenuPopover: o }) => {
114
+ e.stopPropagation();
115
+ let s = e.detail, c = e.target?.closest(".grid-stack-item");
116
+ if (!c) return r;
117
+ let l = c.getAttribute("gs-id"), u = n.find((e) => e.id === l);
118
+ return s.type === "toggle" && s.action === r.activeItemActionToggle && c === r.activeItemElement ? (r.activeItemElement = void 0, r.activeItemActionToggle = void 0, t.removeAttribute("has-active-item"), c.removeAttribute("active"), i(c), l && a(s.action, s.type, !1, c, l, u), r) : (t.querySelectorAll(".grid-stack-item").forEach((e) => {
119
+ e !== c && i(e);
120
+ }), s.type === "toggle" ? (r.activeItemElement = c, r.activeItemActionToggle = s.action, t.setAttribute("has-active-item", "true"), c.setAttribute("active", "true"), o(c, [s.action])) : r.activeItemElement && r.activeItemElement !== c && (r.activeItemElement = void 0, r.activeItemActionToggle = void 0), l && a(s.action, s.type, s.active, c, l, u), r);
121
+ }, pe = ({ event: e, gridElement: t, hostElement: n, items: r, activeItemActionToggle: i, cleanupActiveItem: a, dispatchItemActionEvent: o }) => {
122
+ let s = e.composedPath();
123
+ if (!s.includes(t) && !s.includes(n)) return { activeItemActionToggle: i };
124
+ let c = t.querySelector(".grid-stack-item[active]");
125
+ if (!c || s.includes(c)) return { activeItemActionToggle: i };
126
+ let l = c.querySelector(".grid-item-actions-popover");
127
+ if (l && s.includes(l)) return { activeItemActionToggle: i };
128
+ let u = c.getAttribute("gs-id"), d = r.find((e) => e.id === u);
129
+ return a(c), i && u && o(i, "toggle", !1, c, u, d), { activeItemActionToggle: void 0 };
130
+ }, me = ({ gridElement: e, items: t, gridItemData: n, itemId: r, action: i, options: a, state: o, cleanupActiveItem: s, dispatchItemActionEvent: c, createItemActionsMenuPopover: l }) => {
131
+ if (!n?.element) return {
132
+ result: void 0,
133
+ state: o
134
+ };
135
+ let u = n.element, d = n.item, f = i === o.activeItemActionToggle && u === o.activeItemElement, p = a?.active ?? !f;
136
+ if (a?.active !== void 0 && p === f) return {
137
+ result: f,
138
+ state: o
139
+ };
140
+ if (!p) return o.activeItemElement = void 0, o.activeItemActionToggle = void 0, e.removeAttribute("has-active-item"), u.removeAttribute("active"), s(u), c(i, "toggle", !1, u, r, d), {
141
+ result: !1,
142
+ state: o
143
+ };
144
+ if (o.activeItemElement && o.activeItemElement !== u) {
145
+ let e = o.activeItemElement.getAttribute("gs-id"), n = t.find((t) => t.id === e), r = o.activeItemActionToggle, i = o.activeItemElement;
146
+ s(o.activeItemElement), o.activeItemElement = void 0, o.activeItemActionToggle = void 0, r && e && n && c(r, "toggle", !1, i, e, n);
147
+ }
148
+ return o.activeItemElement = u, o.activeItemActionToggle = i, e.setAttribute("has-active-item", "true"), u.setAttribute("active", "true"), l(u, [i]), c(i, "toggle", !0, u, r, d), {
149
+ result: !0,
150
+ state: o
151
+ };
152
+ }, he = ({ gridElement: e, items: t, state: n, cleanupActiveItem: r, dispatchItemActionEvent: i }) => {
153
+ let a = 0;
154
+ if (n.activeItemElement && n.activeItemActionToggle) {
155
+ let o = n.activeItemElement.getAttribute("gs-id"), s = t.find((e) => e.id === o), c = n.activeItemActionToggle, l = n.activeItemElement;
156
+ r(n.activeItemElement), n.activeItemElement = void 0, n.activeItemActionToggle = void 0, e.removeAttribute("has-active-item"), c && o && s && (i(c, "toggle", !1, l, o, s), a++);
157
+ }
158
+ return {
159
+ deactivatedCount: a,
160
+ state: n
161
+ };
162
+ }, ge = {
163
+ sizeX: 1,
164
+ sizeY: 1,
165
+ col: 0,
166
+ row: 0
167
+ }, _e = (e) => {
168
+ e.forEach((e) => {
169
+ if (!e.id) throw Error("Grid item id is required");
170
+ });
171
+ }, ve = (e) => {
172
+ if (!e.id) throw Error("Grid item id is required");
173
+ return e.id;
174
+ }, ye = (e, t) => ({
175
+ id: t,
176
+ x: e?.position?.col ?? 0,
177
+ y: e?.position?.row ?? 0,
178
+ w: e?.position?.sizeX ?? 1,
179
+ h: e?.position?.sizeY ?? 1
180
+ }), be = (e, t) => ({
181
+ ...structuredClone(e),
182
+ id: t,
183
+ position: {
184
+ ...ge,
185
+ ...structuredClone(e.position)
186
+ },
187
+ canFilter: e.canFilter ?? "all"
188
+ }), xe = (e, t) => {
189
+ if (t) {
190
+ for (let n of e) if (n.getAttribute("luzmo-item-grid-item-id") === t) return n;
191
+ }
192
+ }, Se = (e, t) => e.map((e) => {
193
+ let n = {
194
+ item: e,
195
+ element: t.querySelector(`[gs-id="${e.id}"]`)
196
+ }, r = n.element?.querySelector("luzmo-embed-viz-item");
197
+ return r && (n.luzmoElement = r), n;
198
+ }), Ce = ({ item: e, engine: t, existingItems: n, autoPosition: r, excludeNodeId: i }) => {
199
+ let a = e.position, o = i ? t.nodes.filter((e) => e.id !== i) : t.nodes, s = new t.constructor({
200
+ column: t.column,
201
+ mode: t.mode,
202
+ nodes: o.map((e) => ({ ...e }))
203
+ }), c = {
204
+ x: a.col,
205
+ y: a.row,
206
+ w: a.sizeX,
207
+ h: a.sizeY,
208
+ id: e.id,
209
+ autoPosition: r
210
+ };
211
+ s.addNode(c);
212
+ let l = {
213
+ ...e,
214
+ position: {
215
+ col: c.x ?? a.col,
216
+ row: c.y ?? a.row,
217
+ sizeX: c.w ?? a.sizeX,
218
+ sizeY: c.h ?? a.sizeY
219
+ }
220
+ };
221
+ return {
222
+ resolvedItem: l,
223
+ updatedItems: [...n.map((e) => {
224
+ let t = s.nodes.find((t) => t.id === e.id);
225
+ return t && t.x != null && t.y != null && t.w != null && t.h != null ? {
226
+ ...e,
227
+ position: {
228
+ col: t.x,
229
+ row: t.y,
230
+ sizeX: t.w,
231
+ sizeY: t.h
232
+ }
233
+ } : e;
234
+ }), l]
235
+ };
236
+ }, we = ({ itemId: e, patch: t, engine: n, existingItems: r }) => {
237
+ let i = r.find((t) => t.id === e);
238
+ if (!i?.position) return r;
239
+ let { resolvedItem: a, updatedItems: o } = Ce({
240
+ item: {
241
+ ...i,
242
+ position: {
243
+ ...i.position,
244
+ ...t
245
+ }
246
+ },
247
+ engine: n,
248
+ existingItems: r.filter((t) => t.id !== e),
249
+ autoPosition: !1,
250
+ excludeNodeId: e
251
+ });
252
+ return r.map((t) => t.id === e ? a : o.find((e) => e.id === t.id) ?? t);
253
+ }, Te = (e) => be(e, e.id), Ee = Math.min, D = Math.max, De = Math.round, Oe = Math.floor, O = (e) => ({
254
+ x: e,
255
+ y: e
256
+ }), ke = {
257
+ left: "right",
258
+ right: "left",
259
+ bottom: "top",
260
+ top: "bottom"
261
+ };
262
+ function Ae(e, t) {
263
+ return typeof e == "function" ? e(t) : e;
264
+ }
265
+ function k(e) {
266
+ return e.split("-")[0];
267
+ }
268
+ function je(e) {
269
+ return e.split("-")[1];
270
+ }
271
+ function Me(e) {
272
+ return e === "x" ? "y" : "x";
273
+ }
274
+ function Ne(e) {
275
+ return e === "y" ? "height" : "width";
276
+ }
277
+ function A(e) {
278
+ let t = e[0];
279
+ return t === "t" || t === "b" ? "y" : "x";
280
+ }
281
+ function Pe(e) {
282
+ return Me(A(e));
283
+ }
284
+ function Fe(e, t, n) {
285
+ n === void 0 && (n = !1);
286
+ let r = je(e), i = Pe(e), a = Ne(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
287
+ return t.reference[a] > t.floating[a] && (o = We(o)), [o, We(o)];
288
+ }
289
+ function Ie(e) {
290
+ let t = We(e);
291
+ return [
292
+ Le(e),
293
+ t,
294
+ Le(t)
295
+ ];
296
+ }
297
+ function Le(e) {
298
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
299
+ }
300
+ var Re = ["left", "right"], ze = ["right", "left"], Be = ["top", "bottom"], Ve = ["bottom", "top"];
301
+ function He(e, t, n) {
302
+ switch (e) {
303
+ case "top":
304
+ case "bottom": return n ? t ? ze : Re : t ? Re : ze;
305
+ case "left":
306
+ case "right": return t ? Be : Ve;
307
+ default: return [];
308
+ }
309
+ }
310
+ function Ue(e, t, n, r) {
311
+ let i = je(e), a = He(k(e), n === "start", r);
312
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Le)))), a;
313
+ }
314
+ function We(e) {
315
+ let t = k(e);
316
+ return ke[t] + e.slice(t.length);
317
+ }
318
+ function Ge(e) {
319
+ return {
320
+ top: 0,
321
+ right: 0,
322
+ bottom: 0,
323
+ left: 0,
324
+ ...e
325
+ };
326
+ }
327
+ function Ke(e) {
328
+ return typeof e == "number" ? {
329
+ top: e,
330
+ right: e,
331
+ bottom: e,
332
+ left: e
333
+ } : Ge(e);
334
+ }
335
+ function qe(e) {
336
+ let { x: t, y: n, width: r, height: i } = e;
337
+ return {
338
+ width: r,
339
+ height: i,
340
+ top: n,
341
+ left: t,
342
+ right: t + r,
343
+ bottom: n + i,
344
+ x: t,
345
+ y: n
346
+ };
347
+ }
348
+ //#endregion
349
+ //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
350
+ function Je(e, t, n) {
351
+ let { reference: r, floating: i } = e, a = A(t), o = Pe(t), s = Ne(o), c = k(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
352
+ switch (c) {
353
+ case "top":
354
+ p = {
355
+ x: u,
356
+ y: r.y - i.height
357
+ };
358
+ break;
359
+ case "bottom":
360
+ p = {
361
+ x: u,
362
+ y: r.y + r.height
363
+ };
364
+ break;
365
+ case "right":
366
+ p = {
367
+ x: r.x + r.width,
368
+ y: d
369
+ };
370
+ break;
371
+ case "left":
372
+ p = {
373
+ x: r.x - i.width,
374
+ y: d
375
+ };
376
+ break;
377
+ default: p = {
378
+ x: r.x,
379
+ y: r.y
380
+ };
381
+ }
382
+ switch (je(t)) {
383
+ case "start":
384
+ p[o] -= f * (n && l ? -1 : 1);
385
+ break;
386
+ case "end":
387
+ p[o] += f * (n && l ? -1 : 1);
388
+ break;
389
+ }
390
+ return p;
391
+ }
392
+ async function Ye(e, t) {
393
+ t === void 0 && (t = {});
394
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Ae(t, e), p = Ke(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = qe(await i.getClippingRect({
395
+ element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
396
+ boundary: c,
397
+ rootBoundary: l,
398
+ strategy: s
399
+ })), g = u === "floating" ? {
400
+ x: n,
401
+ y: r,
402
+ width: a.floating.width,
403
+ height: a.floating.height
404
+ } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
405
+ x: 1,
406
+ y: 1
407
+ }, y = qe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
408
+ elements: o,
409
+ rect: g,
410
+ offsetParent: _,
411
+ strategy: s
412
+ }) : g);
413
+ return {
414
+ top: (h.top - y.top + p.top) / v.y,
415
+ bottom: (y.bottom - h.bottom + p.bottom) / v.y,
416
+ left: (h.left - y.left + p.left) / v.x,
417
+ right: (y.right - h.right + p.right) / v.x
418
+ };
419
+ }
420
+ var Xe = 50, Ze = async (e, t, n) => {
421
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
422
+ ...o,
423
+ detectOverflow: Ye
424
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
425
+ reference: e,
426
+ floating: t,
427
+ strategy: i
428
+ }), { x: u, y: d } = Je(l, r, c), f = r, p = 0, m = {};
429
+ for (let n = 0; n < a.length; n++) {
430
+ let h = a[n];
431
+ if (!h) continue;
432
+ let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
433
+ x: u,
434
+ y: d,
435
+ initialPlacement: r,
436
+ placement: f,
437
+ strategy: i,
438
+ middlewareData: m,
439
+ rects: l,
440
+ platform: s,
441
+ elements: {
442
+ reference: e,
443
+ floating: t
444
+ }
445
+ });
446
+ u = v ?? u, d = y ?? d, m[g] = {
447
+ ...m[g],
448
+ ...b
449
+ }, x && p < Xe && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
450
+ reference: e,
451
+ floating: t,
452
+ strategy: i
453
+ }) : x.rects), {x: u, y: d} = Je(l, f, c)), n = -1);
454
+ }
455
+ return {
456
+ x: u,
457
+ y: d,
458
+ placement: f,
459
+ strategy: i,
460
+ middlewareData: m
461
+ };
462
+ }, Qe = function(e) {
463
+ return e === void 0 && (e = {}), {
464
+ name: "flip",
465
+ options: e,
466
+ async fn(t) {
467
+ var n;
468
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Ae(e, t);
469
+ if ((n = i.arrow) != null && n.alignmentOffset) return {};
470
+ let g = k(r), _ = A(o), v = k(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [We(o)] : Ie(o)), x = p !== "none";
471
+ !d && x && b.push(...Ue(o, m, p, y));
472
+ let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
473
+ if (l && C.push(S[g]), u) {
474
+ let e = Fe(r, a, y);
475
+ C.push(S[e[0]], S[e[1]]);
476
+ }
477
+ if (w = [...w, {
478
+ placement: r,
479
+ overflows: C
480
+ }], !C.every((e) => e <= 0)) {
481
+ let e = (i.flip?.index || 0) + 1, t = ee[e];
482
+ if (t && (!(u === "alignment" && _ !== A(t)) || w.every((e) => A(e.placement) !== _ || e.overflows[0] > 0))) return {
483
+ data: {
484
+ index: e,
485
+ overflows: w
486
+ },
487
+ reset: { placement: t }
488
+ };
489
+ let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
490
+ if (!n) switch (f) {
491
+ case "bestFit": {
492
+ let e = w.filter((e) => {
493
+ if (x) {
494
+ let t = A(e.placement);
495
+ return t === _ || t === "y";
496
+ }
497
+ return !0;
498
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
499
+ e && (n = e);
500
+ break;
501
+ }
502
+ case "initialPlacement":
503
+ n = o;
504
+ break;
505
+ }
506
+ if (r !== n) return { reset: { placement: n } };
507
+ }
508
+ return {};
509
+ }
510
+ };
511
+ }, $e = /*#__PURE__*/ new Set(["left", "top"]);
512
+ async function et(e, t) {
513
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = k(n), s = je(n), c = A(n) === "y", l = $e.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Ae(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
514
+ mainAxis: d,
515
+ crossAxis: 0,
516
+ alignmentAxis: null
517
+ } : {
518
+ mainAxis: d.mainAxis || 0,
519
+ crossAxis: d.crossAxis || 0,
520
+ alignmentAxis: d.alignmentAxis
521
+ };
522
+ return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
523
+ x: p * u,
524
+ y: f * l
525
+ } : {
526
+ x: f * l,
527
+ y: p * u
528
+ };
529
+ }
530
+ var tt = function(e) {
531
+ return e === void 0 && (e = 0), {
532
+ name: "offset",
533
+ options: e,
534
+ async fn(t) {
535
+ var n;
536
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await et(t, e);
537
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
538
+ x: r + s.x,
539
+ y: i + s.y,
540
+ data: {
541
+ ...s,
542
+ placement: a
543
+ }
544
+ };
545
+ }
546
+ };
547
+ };
548
+ //#endregion
549
+ //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
550
+ function nt() {
551
+ return typeof window < "u";
552
+ }
553
+ function j(e) {
554
+ return rt(e) ? (e.nodeName || "").toLowerCase() : "#document";
555
+ }
556
+ function M(e) {
557
+ var t;
558
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
559
+ }
560
+ function N(e) {
561
+ return ((rt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
562
+ }
563
+ function rt(e) {
564
+ return nt() ? e instanceof Node || e instanceof M(e).Node : !1;
565
+ }
566
+ function P(e) {
567
+ return nt() ? e instanceof Element || e instanceof M(e).Element : !1;
568
+ }
569
+ function F(e) {
570
+ return nt() ? e instanceof HTMLElement || e instanceof M(e).HTMLElement : !1;
571
+ }
572
+ function it(e) {
573
+ return !nt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M(e).ShadowRoot;
574
+ }
575
+ function I(e) {
576
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = z(e);
577
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
578
+ }
579
+ function at(e) {
580
+ return /^(table|td|th)$/.test(j(e));
581
+ }
582
+ function ot(e) {
583
+ try {
584
+ if (e.matches(":popover-open")) return !0;
585
+ } catch {}
586
+ try {
587
+ return e.matches(":modal");
588
+ } catch {
589
+ return !1;
590
+ }
591
+ }
592
+ var st = /transform|translate|scale|rotate|perspective|filter/, ct = /paint|layout|strict|content/, L = (e) => !!e && e !== "none", lt;
593
+ function ut(e) {
594
+ let t = P(e) ? z(e) : e;
595
+ return L(t.transform) || L(t.translate) || L(t.scale) || L(t.rotate) || L(t.perspective) || !ft() && (L(t.backdropFilter) || L(t.filter)) || st.test(t.willChange || "") || ct.test(t.contain || "");
596
+ }
597
+ function dt(e) {
598
+ let t = B(e);
599
+ for (; F(t) && !R(t);) {
600
+ if (ut(t)) return t;
601
+ if (ot(t)) return null;
602
+ t = B(t);
603
+ }
604
+ return null;
605
+ }
606
+ function ft() {
607
+ return lt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), lt;
608
+ }
609
+ function R(e) {
610
+ return /^(html|body|#document)$/.test(j(e));
611
+ }
612
+ function z(e) {
613
+ return M(e).getComputedStyle(e);
614
+ }
615
+ function pt(e) {
616
+ return P(e) ? {
617
+ scrollLeft: e.scrollLeft,
618
+ scrollTop: e.scrollTop
619
+ } : {
620
+ scrollLeft: e.scrollX,
621
+ scrollTop: e.scrollY
622
+ };
623
+ }
624
+ function B(e) {
625
+ if (j(e) === "html") return e;
626
+ let t = e.assignedSlot || e.parentNode || it(e) && e.host || N(e);
627
+ return it(t) ? t.host : t;
628
+ }
629
+ function mt(e) {
630
+ let t = B(e);
631
+ return R(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : F(t) && I(t) ? t : mt(t);
632
+ }
633
+ function ht(e, t, n) {
634
+ t === void 0 && (t = []), n === void 0 && (n = !0);
635
+ let r = mt(e), i = r === e.ownerDocument?.body, a = M(r);
636
+ if (i) {
637
+ let e = gt(a);
638
+ return t.concat(a, a.visualViewport || [], I(r) ? r : [], e && n ? ht(e) : []);
639
+ } else return t.concat(r, ht(r, [], n));
640
+ }
641
+ function gt(e) {
642
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
643
+ }
644
+ //#endregion
645
+ //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
646
+ function _t(e) {
647
+ let t = z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = F(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = De(n) !== a || De(r) !== o;
648
+ return s && (n = a, r = o), {
649
+ width: n,
650
+ height: r,
651
+ $: s
652
+ };
653
+ }
654
+ function vt(e) {
655
+ return P(e) ? e : e.contextElement;
656
+ }
657
+ function V(e) {
658
+ let t = vt(e);
659
+ if (!F(t)) return O(1);
660
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = _t(t), o = (a ? De(n.width) : n.width) / r, s = (a ? De(n.height) : n.height) / i;
661
+ return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
662
+ x: o,
663
+ y: s
664
+ };
665
+ }
666
+ var yt = /*#__PURE__*/ O(0);
667
+ function bt(e) {
668
+ let t = M(e);
669
+ return !ft() || !t.visualViewport ? yt : {
670
+ x: t.visualViewport.offsetLeft,
671
+ y: t.visualViewport.offsetTop
672
+ };
673
+ }
674
+ function xt(e, t, n) {
675
+ return t === void 0 && (t = !1), !n || t && n !== M(e) ? !1 : t;
676
+ }
677
+ function H(e, t, n, r) {
678
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
679
+ let i = e.getBoundingClientRect(), a = vt(e), o = O(1);
680
+ t && (r ? P(r) && (o = V(r)) : o = V(e));
681
+ let s = xt(a, n, r) ? bt(a) : O(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
682
+ if (a) {
683
+ let e = M(a), t = r && P(r) ? M(r) : r, n = e, i = gt(n);
684
+ for (; i && r && t !== n;) {
685
+ let e = V(i), t = i.getBoundingClientRect(), r = z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
686
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = M(i), i = gt(n);
687
+ }
688
+ }
689
+ return qe({
690
+ width: u,
691
+ height: d,
692
+ x: c,
693
+ y: l
694
+ });
695
+ }
696
+ function St(e, t) {
697
+ let n = pt(e).scrollLeft;
698
+ return t ? t.left + n : H(N(e)).left + n;
699
+ }
700
+ function Ct(e, t) {
701
+ let n = e.getBoundingClientRect();
702
+ return {
703
+ x: n.left + t.scrollLeft - St(e, n),
704
+ y: n.top + t.scrollTop
705
+ };
706
+ }
707
+ function wt(e) {
708
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = N(r), s = t ? ot(t.floating) : !1;
709
+ if (r === o || s && a) return n;
710
+ let c = {
711
+ scrollLeft: 0,
712
+ scrollTop: 0
713
+ }, l = O(1), u = O(0), d = F(r);
714
+ if ((d || !d && !a) && ((j(r) !== "body" || I(o)) && (c = pt(r)), d)) {
715
+ let e = H(r);
716
+ l = V(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
717
+ }
718
+ let f = o && !d && !a ? Ct(o, c) : O(0);
719
+ return {
720
+ width: n.width * l.x,
721
+ height: n.height * l.y,
722
+ x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
723
+ y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
724
+ };
725
+ }
726
+ function Tt(e) {
727
+ return Array.from(e.getClientRects());
728
+ }
729
+ function Et(e) {
730
+ let t = N(e), n = pt(e), r = e.ownerDocument.body, i = D(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = D(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + St(e), s = -n.scrollTop;
731
+ return z(r).direction === "rtl" && (o += D(t.clientWidth, r.clientWidth) - i), {
732
+ width: i,
733
+ height: a,
734
+ x: o,
735
+ y: s
736
+ };
737
+ }
738
+ var Dt = 25;
739
+ function Ot(e, t) {
740
+ let n = M(e), r = N(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
741
+ if (i) {
742
+ a = i.width, o = i.height;
743
+ let e = ft();
744
+ (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
745
+ }
746
+ let l = St(r);
747
+ if (l <= 0) {
748
+ let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
749
+ o <= Dt && (a -= o);
750
+ } else l <= Dt && (a += l);
751
+ return {
752
+ width: a,
753
+ height: o,
754
+ x: s,
755
+ y: c
756
+ };
757
+ }
758
+ function kt(e, t) {
759
+ let n = H(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = F(e) ? V(e) : O(1);
760
+ return {
761
+ width: e.clientWidth * a.x,
762
+ height: e.clientHeight * a.y,
763
+ x: i * a.x,
764
+ y: r * a.y
765
+ };
766
+ }
767
+ function At(e, t, n) {
768
+ let r;
769
+ if (t === "viewport") r = Ot(e, n);
770
+ else if (t === "document") r = Et(N(e));
771
+ else if (P(t)) r = kt(t, n);
772
+ else {
773
+ let n = bt(e);
774
+ r = {
775
+ x: t.x - n.x,
776
+ y: t.y - n.y,
777
+ width: t.width,
778
+ height: t.height
779
+ };
780
+ }
781
+ return qe(r);
782
+ }
783
+ function jt(e, t) {
784
+ let n = B(e);
785
+ return n === t || !P(n) || R(n) ? !1 : z(n).position === "fixed" || jt(n, t);
786
+ }
787
+ function Mt(e, t) {
788
+ let n = t.get(e);
789
+ if (n) return n;
790
+ let r = ht(e, [], !1).filter((e) => P(e) && j(e) !== "body"), i = null, a = z(e).position === "fixed", o = a ? B(e) : e;
791
+ for (; P(o) && !R(o);) {
792
+ let t = z(o), n = ut(o);
793
+ !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || I(o) && !n && jt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = B(o);
794
+ }
795
+ return t.set(e, r), r;
796
+ }
797
+ function Nt(e) {
798
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? ot(t) ? [] : Mt(t, this._c) : [].concat(n), r], o = At(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
799
+ for (let e = 1; e < a.length; e++) {
800
+ let n = At(t, a[e], i);
801
+ s = D(n.top, s), c = Ee(n.right, c), l = Ee(n.bottom, l), u = D(n.left, u);
802
+ }
803
+ return {
804
+ width: c - u,
805
+ height: l - s,
806
+ x: u,
807
+ y: s
808
+ };
809
+ }
810
+ function Pt(e) {
811
+ let { width: t, height: n } = _t(e);
812
+ return {
813
+ width: t,
814
+ height: n
815
+ };
816
+ }
817
+ function Ft(e, t, n) {
818
+ let r = F(t), i = N(t), a = n === "fixed", o = H(e, !0, a, t), s = {
819
+ scrollLeft: 0,
820
+ scrollTop: 0
821
+ }, c = O(0);
822
+ function l() {
823
+ c.x = St(i);
824
+ }
825
+ if (r || !r && !a) if ((j(t) !== "body" || I(i)) && (s = pt(t)), r) {
826
+ let e = H(t, !0, a, t);
827
+ c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
828
+ } else i && l();
829
+ a && !r && i && l();
830
+ let u = i && !r && !a ? Ct(i, s) : O(0);
831
+ return {
832
+ x: o.left + s.scrollLeft - c.x - u.x,
833
+ y: o.top + s.scrollTop - c.y - u.y,
834
+ width: o.width,
835
+ height: o.height
836
+ };
837
+ }
838
+ function It(e) {
839
+ return z(e).position === "static";
840
+ }
841
+ function Lt(e, t) {
842
+ if (!F(e) || z(e).position === "fixed") return null;
843
+ if (t) return t(e);
844
+ let n = e.offsetParent;
845
+ return N(e) === n && (n = n.ownerDocument.body), n;
846
+ }
847
+ function Rt(e, t) {
848
+ let n = M(e);
849
+ if (ot(e)) return n;
850
+ if (!F(e)) {
851
+ let t = B(e);
852
+ for (; t && !R(t);) {
853
+ if (P(t) && !It(t)) return t;
854
+ t = B(t);
855
+ }
856
+ return n;
857
+ }
858
+ let r = Lt(e, t);
859
+ for (; r && at(r) && It(r);) r = Lt(r, t);
860
+ return r && R(r) && It(r) && !ut(r) ? n : r || dt(e) || n;
861
+ }
862
+ var zt = async function(e) {
863
+ let t = this.getOffsetParent || Rt, n = this.getDimensions, r = await n(e.floating);
864
+ return {
865
+ reference: Ft(e.reference, await t(e.floating), e.strategy),
866
+ floating: {
867
+ x: 0,
868
+ y: 0,
869
+ width: r.width,
870
+ height: r.height
871
+ }
872
+ };
873
+ };
874
+ function Bt(e) {
875
+ return z(e).direction === "rtl";
876
+ }
877
+ var Vt = {
878
+ convertOffsetParentRelativeRectToViewportRelativeRect: wt,
879
+ getDocumentElement: N,
880
+ getClippingRect: Nt,
881
+ getOffsetParent: Rt,
882
+ getElementRects: zt,
883
+ getClientRects: Tt,
884
+ getDimensions: Pt,
885
+ getScale: V,
886
+ isElement: P,
887
+ isRTL: Bt
888
+ };
889
+ function Ht(e, t) {
890
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
891
+ }
892
+ function Ut(e, t) {
893
+ let n = null, r, i = N(e);
894
+ function a() {
895
+ var e;
896
+ clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
897
+ }
898
+ function o(s, c) {
899
+ s === void 0 && (s = !1), c === void 0 && (c = 1), a();
900
+ let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
901
+ if (s || t(), !f || !p) return;
902
+ let m = Oe(d), h = Oe(i.clientWidth - (u + f)), g = Oe(i.clientHeight - (d + p)), _ = Oe(u), v = {
903
+ rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
904
+ threshold: D(0, Ee(1, c)) || 1
905
+ }, y = !0;
906
+ function b(t) {
907
+ let n = t[0].intersectionRatio;
908
+ if (n !== c) {
909
+ if (!y) return o();
910
+ n ? o(!1, n) : r = setTimeout(() => {
911
+ o(!1, 1e-7);
912
+ }, 1e3);
913
+ }
914
+ n === 1 && !Ht(l, e.getBoundingClientRect()) && o(), y = !1;
915
+ }
916
+ try {
917
+ n = new IntersectionObserver(b, {
918
+ ...v,
919
+ root: i.ownerDocument
920
+ });
921
+ } catch {
922
+ n = new IntersectionObserver(b, v);
923
+ }
924
+ n.observe(e);
925
+ }
926
+ return o(!0), a;
927
+ }
928
+ function Wt(e, t, n, r) {
929
+ r === void 0 && (r = {});
930
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = vt(e), u = i || a ? [...l ? ht(l) : [], ...t ? ht(t) : []] : [];
931
+ u.forEach((e) => {
932
+ i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
933
+ });
934
+ let d = l && s ? Ut(l, n) : null, f = -1, p = null;
935
+ o && (p = new ResizeObserver((e) => {
936
+ let [r] = e;
937
+ r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
938
+ var e;
939
+ (e = p) == null || e.observe(t);
940
+ })), n();
941
+ }), l && !c && p.observe(l), t && p.observe(t));
942
+ let m, h = c ? H(e) : null;
943
+ c && g();
944
+ function g() {
945
+ let t = H(e);
946
+ h && !Ht(h, t) && n(), h = t, m = requestAnimationFrame(g);
947
+ }
948
+ return n(), () => {
949
+ var e;
950
+ u.forEach((e) => {
951
+ i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
952
+ }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
953
+ };
954
+ }
955
+ var Gt = tt, Kt = Qe, qt = (e, t, n) => {
956
+ let r = /* @__PURE__ */ new Map(), i = {
957
+ platform: Vt,
958
+ ...n
959
+ }, a = {
960
+ ...i.platform,
961
+ _c: r
962
+ };
963
+ return Ze(e, t, {
964
+ ...i,
965
+ platform: a
966
+ });
967
+ }, Jt = /* @__PURE__ */ new WeakMap(), Yt = (e, t) => {
968
+ Xt(e), Jt.set(e, t);
969
+ }, Xt = (e) => {
970
+ let t = Jt.get(e);
971
+ t && (t(), Jt.delete(e));
972
+ }, Zt = ({ element: e, activeActions: t, getGridItemById: n, placementItemActionsMenu: r, renderOverlayContent: i, removeItemActionsMenuPopover: a, itemActionsDocumentPopover: o = !0 }) => {
973
+ let s = e.querySelector(".grid-item-actions-popover"), c = e.querySelector(".grid-stack-item-content"), l = n(e.getAttribute("gs-id") ?? "");
974
+ if (t && t.length > 0 && s && (a(e), s = null), !s) {
975
+ let n = document.createDocumentFragment();
976
+ _(i(l?.item, t), n), s = n.querySelector(".grid-item-actions-popover"), e.append(s);
977
+ }
978
+ let u = o ? "absolute" : "fixed", d = Wt(c, s, async () => {
979
+ let { x: e, y: t } = await qt(c, s, {
980
+ placement: l?.item?.placementActionsMenu ?? r ?? "right-start",
981
+ strategy: u,
982
+ middleware: [Gt(0), Kt({ crossAxis: !1 })]
983
+ });
984
+ s.style.left = `${e}px`, s.style.top = `${t}px`, o || (s.style.position = "fixed", s.style.right = "auto", s.style.bottom = "auto", s.style.margin = "0");
985
+ });
986
+ Yt(s, d), o && s.isConnected && !s.matches(":popover-open") && s.showPopover();
987
+ }, Qt = (e) => {
988
+ let t = e.querySelector(".grid-item-actions-popover");
989
+ t && (Xt(t), t.hasAttribute("popover") && t.matches(":popover-open") && t.hidePopover(), t.remove());
990
+ }, $t = (e) => e === "ArrowLeft" || e === "ArrowRight" || e === "ArrowUp" || e === "ArrowDown", en = ({ key: e, node: t, maxColumns: n, shiftKey: r, ctrlKey: i, metaKey: a }) => {
991
+ let o = {
992
+ ArrowLeft: {
993
+ move: { x: t.x - 1 },
994
+ resize: {
995
+ x: t.x - 1,
996
+ w: t.w + 1
997
+ },
998
+ shrink: { w: t.w - 1 },
999
+ canMove: t.x > 0,
1000
+ canResize: t.x > 0,
1001
+ canShrink: t.w > 1
1002
+ },
1003
+ ArrowRight: {
1004
+ move: { x: t.x + 1 },
1005
+ resize: { w: t.w + 1 },
1006
+ shrink: {
1007
+ x: t.x + 1,
1008
+ w: t.w - 1
1009
+ },
1010
+ canMove: t.x < n - t.w,
1011
+ canResize: t.x + t.w < n,
1012
+ canShrink: t.w > 1
1013
+ },
1014
+ ArrowUp: {
1015
+ move: { y: t.y - 1 },
1016
+ resize: {
1017
+ y: t.y - 1,
1018
+ h: t.h + 1
1019
+ },
1020
+ shrink: { h: t.h - 1 },
1021
+ canMove: t.y > 0,
1022
+ canResize: t.y > 0,
1023
+ canShrink: t.h > 1
1024
+ },
1025
+ ArrowDown: {
1026
+ move: { y: t.y + 1 },
1027
+ resize: { h: t.h + 1 },
1028
+ shrink: {
1029
+ y: t.y + 1,
1030
+ h: t.h - 1
1031
+ },
1032
+ canMove: !0,
1033
+ canResize: !0,
1034
+ canShrink: t.h > 1
1035
+ }
1036
+ }[e];
1037
+ if (r && o.canResize) return o.resize;
1038
+ if ((i || a) && o.canShrink) return o.shrink;
1039
+ if (o.canMove) return o.move;
1040
+ }, tn = ({ event: e, viewMode: t, focusedItemElement: n, activeItemElement: r, gridElement: i, grid: a, columns: o, onDeleteRequest: s, removeItemActionsMenuPopover: c, createItemActionsMenuPopover: l }) => {
1041
+ if (t) return {
1042
+ focusedItemElement: n,
1043
+ activeItemElement: r
1044
+ };
1045
+ let u = n, d = r;
1046
+ if (e.key === "Delete" && n) {
1047
+ let e = n.nextElementSibling ?? n.previousElementSibling;
1048
+ s(n), u = e ?? void 0, u ? requestAnimationFrame(() => u?.focus()) : i.focus(), r === n && (d = void 0);
1049
+ } else if (e.key === "Escape" && n) n.removeAttribute("focused"), c(n), u = void 0, i.focus();
1050
+ else if (e.key === "Enter" && n) e.preventDefault(), e.stopPropagation(), r && (r.removeAttribute("active"), i.removeAttribute("has-active-item"), c(r), d = void 0), i.querySelectorAll(".grid-stack-item").forEach((e) => {
1051
+ e !== n && c(e);
1052
+ }), l(n), requestAnimationFrame(() => {
1053
+ let e = n.querySelector("luzmo-item-grid-item-actions-menu");
1054
+ e && e.focus();
1055
+ });
1056
+ else if (n && a && $t(e.key)) {
1057
+ e.preventDefault(), e.stopPropagation();
1058
+ let t = n.gridstackNode;
1059
+ if (!t) return {
1060
+ focusedItemElement: u,
1061
+ activeItemElement: d
1062
+ };
1063
+ let r = en({
1064
+ key: e.key,
1065
+ node: t,
1066
+ maxColumns: o,
1067
+ shiftKey: e.shiftKey,
1068
+ ctrlKey: e.ctrlKey,
1069
+ metaKey: e.metaKey
1070
+ });
1071
+ r && a.update(n, r);
1072
+ }
1073
+ return {
1074
+ focusedItemElement: u,
1075
+ activeItemElement: d
1076
+ };
1077
+ }, U = {
1078
+ lock: {
1079
+ icon: d,
1080
+ label: "Lock",
1081
+ tooltip: "Lock",
1082
+ action: "lock",
1083
+ type: "toggle"
1084
+ },
1085
+ edit: {
1086
+ icon: f,
1087
+ label: "Edit",
1088
+ tooltip: "Edit",
1089
+ action: "edit",
1090
+ type: "toggle"
1091
+ },
1092
+ "edit-data": {
1093
+ icon: p,
1094
+ label: "Edit data",
1095
+ tooltip: "Data",
1096
+ action: "edit-data",
1097
+ type: "toggle"
1098
+ },
1099
+ "item-options": {
1100
+ icon: l,
1101
+ label: "Item options",
1102
+ tooltip: "Options",
1103
+ action: "item-options",
1104
+ type: "toggle"
1105
+ },
1106
+ filters: {
1107
+ icon: u,
1108
+ label: "Filters",
1109
+ tooltip: "Filters",
1110
+ action: "filters",
1111
+ type: "toggle"
1112
+ },
1113
+ clone: {
1114
+ icon: c,
1115
+ label: "Clone",
1116
+ tooltip: "Clone",
1117
+ action: "clone",
1118
+ type: "button"
1119
+ },
1120
+ delete: {
1121
+ icon: m,
1122
+ label: "Delete",
1123
+ tooltip: "Delete",
1124
+ action: "delete",
1125
+ type: "button"
1126
+ }
1127
+ }, nn = (e) => {
1128
+ if (e) return structuredClone(e).map((e) => {
1129
+ if (e.type === "group") return e.actions = e.actions ?? [], e.actions = e.actions.map((e) => {
1130
+ if (typeof e == "string" && Object.hasOwn(U, e)) return { ...U[e] };
1131
+ if (typeof e == "object") return e.icon = e.icon ?? s, e.label = e.label ?? e.action, e.tooltip = e.tooltip ?? e.label ?? e.action, e.type = ["toggle", "button"].includes(e.type ?? "") ? e.type : "button", e;
1132
+ }).filter(Boolean), e;
1133
+ }).filter(Boolean);
1134
+ }, rn = () => [{
1135
+ type: "group",
1136
+ actions: [
1137
+ { ...U["edit-data"] },
1138
+ { ...U["item-options"] },
1139
+ { ...U.clone }
1140
+ ]
1141
+ }, {
1142
+ type: "group",
1143
+ actions: [{ ...U.delete }]
1144
+ }], an = 16, on = 10, W = (e, t) => t >= 1 ? `rgba(${e.r},${e.g},${e.b},1)` : t <= 0 ? `rgba(${e.r},${e.g},${e.b},0)` : `rgba(${e.r},${e.g},${e.b},${t})`, sn = async ({ theme: e, currentTheme: t }) => e?.type === "custom" ? structuredClone(e) : e?.id && r.includes(e.id) && t?.id !== e.id ? {
1145
+ ...await i(e.id),
1146
+ id: e.id
1147
+ } : e?.id && t?.id !== e.id || !e && t ? t : await i("default"), cn = (e) => [(e?.margins?.[0] ?? an) / 2, (e?.margins?.[1] ?? an) / 2], ln = (e) => on - (e?.margins?.[0] ?? on), un = (e) => {
1148
+ let n = e?.boxShadow;
1149
+ if (!n) return "";
1150
+ let r = new t(n.color), i = {
1151
+ r: Math.round(r.srgb.r * 255),
1152
+ g: Math.round(r.srgb.g * 255),
1153
+ b: Math.round(r.srgb.b * 255)
1154
+ }, a = e?.margins?.[0] ?? an, o = Math.min(a / 10, 2);
1155
+ return n.size === "none" ? "none" : n.size === "S" ? `0 ${o * 2}px ${o * 4}px ${W(i, .16)}, 0 ${o * 2}px ${o * 4}px ${W(i, .23)}` : n.size === "M" ? `0 ${o * 8}px ${o * 16}px ${W(i, .19)}, 0 ${o * 4}px ${o * 4}px ${W(i, .23)}` : n.size === "L" ? `0 ${o * 12}px ${o * 24}px ${W(i, .25)}, 0 ${o * 8}px ${o * 8}px ${W(i, .22)}` : "";
1156
+ }, dn = (e) => {
1157
+ let t = un(e);
1158
+ return /* @__PURE__ */ new Map([
1159
+ ["--grid-font-family", e?.font?.fontFamily],
1160
+ ["--grid-background", e?.background],
1161
+ ["--grid-item-box-shadow", t],
1162
+ ["--grid-item-background", e?.itemsBackground],
1163
+ ["--grid-item-border-color", e?.borders?.["border-color"]],
1164
+ ["--grid-item-border-style", e?.borders?.["border-style"]],
1165
+ ["--grid-item-border-radius", e?.borders?.["border-radius"]],
1166
+ ["--grid-item-border-width", `${e?.borders?.["border-top-width"]}`],
1167
+ ["--grid-item-border-top-width", e?.borders?.["border-top-width"]],
1168
+ ["--grid-item-border-right-width", e?.borders?.["border-right-width"]],
1169
+ ["--grid-item-border-bottom-width", e?.borders?.["border-bottom-width"]],
1170
+ ["--grid-item-border-left-width", e?.borders?.["border-left-width"]]
1171
+ ]);
1172
+ }, fn = (e) => {
1173
+ let n = e?.itemsBackground ?? e?.background;
1174
+ return n ? new t(n).luminance < .5 : !1;
1175
+ }, pn = (e, t) => {
1176
+ t && dn(t).forEach((t, n) => {
1177
+ t ? e.setProperty(n, t) : e.removeProperty(n);
1178
+ });
1179
+ }, mn = ({ item: e, defaultItemActionsMenu: t, activeActions: n }) => {
1180
+ let r = nn(e?.actionsMenu) ?? nn(t) ?? rn();
1181
+ if (!a.find((t) => t.type === e?.type)?.containsData && !e?.actionsMenu && !t && (r = r.map((e) => ({
1182
+ ...e,
1183
+ actions: e.actions?.filter((e) => e.action !== "edit-data")
1184
+ }))), n && n.length > 0) {
1185
+ let e = new Set(n);
1186
+ r = r.map((t) => ({
1187
+ ...t,
1188
+ actions: t.actions?.map((t) => ({
1189
+ ...t,
1190
+ active: t.action && e.has(t.action) ? !0 : t.active
1191
+ }))
1192
+ }));
1193
+ }
1194
+ return r;
1195
+ }, hn = ({ item: e, activeActions: t, defaultItemActionsMenu: n, placementItemActionsMenu: r, language: i, handleAction: a, itemActionsDocumentPopover: o = !0 }) => {
1196
+ let s = mn({
1197
+ item: e,
1198
+ defaultItemActionsMenu: n,
1199
+ activeActions: t
1200
+ });
1201
+ return h`
1202
+ <div class="grid-item-actions-popover" popover=${o ? "manual" : g}>
1203
+ <luzmo-item-grid-item-actions-menu
1204
+ .actions=${s}
1205
+ placement=${e?.placementActionsMenu ?? r ?? "right-start"}
1206
+ .language=${i}
1207
+ @luzmo-item-grid-item-action=${a}
1208
+ >
1209
+ </luzmo-item-grid-item-actions-menu>
1210
+ </div>
1211
+ `;
1212
+ }, gn = ({ item: e, index: t, initialized: n, viewMode: r, contentLanguage: i, fullTheme: a, appServer: s, apiHost: c, authKey: l, authToken: u, handleMouseover: d, handleMouseout: f, handleFocus: p, handleBlur: m }) => {
1213
+ let g = {
1214
+ ...e.options,
1215
+ locale: i
1216
+ };
1217
+ g.theme ||= a?.id ? { id: a.id } : structuredClone(a);
1218
+ let _ = !r;
1219
+ return h`
1220
+ <div
1221
+ class="luzmo-item-grid-item has-luzmo-viz-item"
1222
+ luzmo-item-grid-item-id=${e.id ?? ""}
1223
+ tabindex="0"
1224
+ role="row"
1225
+ @mouseover=${d}
1226
+ @mouseout=${f}
1227
+ @focus=${p}
1228
+ @blur=${m}
1229
+ >
1230
+ <div
1231
+ class="grid-stack-item-content"
1232
+ role="gridcell"
1233
+ aria-label=${S("Grid item", { desc: "Accessible label prefix for grid items" }) + ` ${t + 1}`}
1234
+ >
1235
+ ${_ ? h`
1236
+ <div class="grid-item-drag-handle">
1237
+ <luzmo-icon .icon=${o} size="s"></luzmo-icon>
1238
+ </div>
1239
+ ` : h`
1240
+
1241
+ `}
1242
+ ${n ? h`
1243
+ <luzmo-embed-viz-item
1244
+ .appServer=${s}
1245
+ .apiHost=${c}
1246
+ .authKey=${l}
1247
+ .authToken=${u}
1248
+ .type=${e.type}
1249
+ .slots=${e.slots}
1250
+ .options=${g}
1251
+ .filters=${e.filters}
1252
+ .language=${i}
1253
+ .canFilter=${e.canFilter ?? "all"}
1254
+ ></luzmo-embed-viz-item>` : h`
1255
+
1256
+ `}
1257
+ </div>
1258
+ </div>
1259
+ `;
1260
+ }, _n = ({ items: e, initialized: t, viewMode: n, contentLanguage: r, fullTheme: i, appServer: a, apiHost: o, authKey: s, authToken: c, renderItem: l }) => C(e, (e) => e.id, (e, u) => w([
1261
+ e,
1262
+ t,
1263
+ n,
1264
+ r,
1265
+ i,
1266
+ a,
1267
+ o,
1268
+ s,
1269
+ c
1270
+ ], () => l(e, u))), vn = ({ items: e, initialized: t, viewMode: n, contentLanguage: r, fullTheme: i, appServer: a, apiHost: o, authKey: s, authToken: c, columns: l, ensureGridItemId: u, handleMouseover: d, handleMouseout: f, handleFocus: p, handleBlur: m }) => {
1271
+ e.forEach((e) => {
1272
+ u(e);
1273
+ });
1274
+ let g = _n({
1275
+ items: e,
1276
+ initialized: t,
1277
+ viewMode: n,
1278
+ contentLanguage: r,
1279
+ fullTheme: i,
1280
+ appServer: a,
1281
+ apiHost: o,
1282
+ authKey: s,
1283
+ authToken: c,
1284
+ renderItem: (e, l) => gn({
1285
+ item: e,
1286
+ index: l,
1287
+ initialized: t,
1288
+ viewMode: n,
1289
+ contentLanguage: r,
1290
+ fullTheme: i,
1291
+ appServer: a,
1292
+ apiHost: o,
1293
+ authKey: s,
1294
+ authToken: c,
1295
+ handleMouseover: d,
1296
+ handleMouseout: f,
1297
+ handleFocus: p,
1298
+ handleBlur: m
1299
+ })
1300
+ });
1301
+ return h`
1302
+ <div
1303
+ ?dark-background=${t ? fn(i) : !1}
1304
+ class="grid-stack"
1305
+ data-grid-columns=${l}
1306
+ role="grid"
1307
+ aria-label=${S("Dashboard grid", { desc: "Accessible label for the dashboard grid" })}
1308
+ >
1309
+ ${g}
1310
+ </div>
1311
+ `;
1312
+ }, G = class e {
1313
+ static getElements(e, t = document) {
1314
+ if (typeof e == "string") {
1315
+ let n = "getElementById" in t ? t : void 0;
1316
+ if (n && !isNaN(+e[0])) {
1317
+ let t = n.getElementById(e);
1318
+ return t ? [t] : [];
1319
+ }
1320
+ let r = t.querySelectorAll(e);
1321
+ if (!r.length && e[0] !== "." && e[0] !== "#" && (r = t.querySelectorAll("." + e), r.length || (r = t.querySelectorAll("#" + e)), !r.length)) {
1322
+ let n = t.querySelector(`[gs-id="${e}"]`);
1323
+ return n ? [n] : [];
1324
+ }
1325
+ return Array.from(r);
1326
+ }
1327
+ return [e];
1328
+ }
1329
+ static getElement(e, t = document) {
1330
+ if (typeof e == "string") {
1331
+ let n = "getElementById" in t ? t : void 0;
1332
+ if (!e.length) return null;
1333
+ if (n && e[0] === "#") return n.getElementById(e.substring(1));
1334
+ if (e[0] === "#" || e[0] === "." || e[0] === "[") return t.querySelector(e);
1335
+ if (n && !isNaN(+e[0])) return n.getElementById(e);
1336
+ let r = t.querySelector(e);
1337
+ return n && !r && (r = n.getElementById(e)), r ||= t.querySelector("." + e), r;
1338
+ }
1339
+ return e;
1340
+ }
1341
+ static lazyLoad(e) {
1342
+ return !!(e.lazyLoad || e.grid?.opts?.lazyLoad && e.lazyLoad !== !1);
1343
+ }
1344
+ static createDiv(e, t) {
1345
+ let n = document.createElement("div");
1346
+ return e.forEach((e) => {
1347
+ e && n.classList.add(e);
1348
+ }), t?.appendChild(n), n;
1349
+ }
1350
+ static shouldSizeToContent(e, t = !1) {
1351
+ return !!(e?.grid && (t ? e.sizeToContent === !0 || e.grid.opts.sizeToContent === !0 && e.sizeToContent === void 0 : e.sizeToContent || e.grid.opts.sizeToContent && e.sizeToContent !== !1));
1352
+ }
1353
+ static isIntercepted(e, t) {
1354
+ return !(e.y >= t.y + t.h || e.y + e.h <= t.y || e.x + e.w <= t.x || e.x >= t.x + t.w);
1355
+ }
1356
+ static isTouching(t, n) {
1357
+ return e.isIntercepted(t, {
1358
+ x: n.x - .5,
1359
+ y: n.y - .5,
1360
+ w: n.w + 1,
1361
+ h: n.h + 1
1362
+ });
1363
+ }
1364
+ static areaIntercept(e, t) {
1365
+ let n = e.x > t.x ? e.x : t.x, r = e.x + e.w < t.x + t.w ? e.x + e.w : t.x + t.w;
1366
+ if (r <= n) return 0;
1367
+ let i = e.y > t.y ? e.y : t.y, a = e.y + e.h < t.y + t.h ? e.y + e.h : t.y + t.h;
1368
+ return a <= i ? 0 : (r - n) * (a - i);
1369
+ }
1370
+ static area(e) {
1371
+ return e.w * e.h;
1372
+ }
1373
+ static sort(e, t = 1) {
1374
+ let n = 2 ** 53 - 1;
1375
+ return e.sort((e, r) => {
1376
+ let i = t * ((e.y ?? n) - (r.y ?? n));
1377
+ return i === 0 ? t * ((e.x ?? n) - (r.x ?? n)) : i;
1378
+ });
1379
+ }
1380
+ static find(e, t) {
1381
+ return t ? e.find((e) => e.id === t) : void 0;
1382
+ }
1383
+ static findInGrid(t, n, r) {
1384
+ let i = t.engine.nodes.find((e) => String(e.id) === n);
1385
+ if (i || !r) return i;
1386
+ for (let r of t.engine.nodes) if (r.subGrid) {
1387
+ let t = e.findInGrid(r.subGrid, n);
1388
+ if (t) return t;
1389
+ }
1390
+ }
1391
+ static toBool(e) {
1392
+ return typeof e == "boolean" ? e : typeof e == "string" ? (e = e.toLowerCase(), !(e === "" || e === "no" || e === "false" || e === "0")) : !!e;
1393
+ }
1394
+ static toNumber(e) {
1395
+ return e === null || e.length === 0 ? void 0 : Number(e);
1396
+ }
1397
+ static parseHeight(e) {
1398
+ let t, n = "px";
1399
+ if (typeof e == "string") if (e === "auto" || e === "") t = 0;
1400
+ else {
1401
+ let r = e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);
1402
+ if (!r) throw Error(`Invalid height val = ${e}`);
1403
+ n = r[2] || "px", t = parseFloat(r[1]);
1404
+ }
1405
+ else t = e;
1406
+ return {
1407
+ h: t,
1408
+ unit: n
1409
+ };
1410
+ }
1411
+ static defaults(t, ...n) {
1412
+ return n.forEach((n) => {
1413
+ for (let r in n) {
1414
+ if (!Object.prototype.hasOwnProperty.call(n, r)) return;
1415
+ t[r] === null || t[r] === void 0 ? t[r] = n[r] : typeof n[r] == "object" && typeof t[r] == "object" && e.defaults(t[r], n[r]);
1416
+ }
1417
+ }), t;
1418
+ }
1419
+ static same(e, t) {
1420
+ if (typeof e != "object") return e == t;
1421
+ if (typeof e != typeof t) return !1;
1422
+ let n = e, r = t;
1423
+ if (Object.keys(n).length !== Object.keys(r).length) return !1;
1424
+ for (let e in n) if (n[e] !== r[e]) return !1;
1425
+ return !0;
1426
+ }
1427
+ static copyPos(e, t, n = !1) {
1428
+ return t.x !== void 0 && (e.x = t.x), t.y !== void 0 && (e.y = t.y), t.w !== void 0 && (e.w = t.w), t.h !== void 0 && (e.h = t.h), n && (t.minW && (e.minW = t.minW), t.minH && (e.minH = t.minH), t.maxW && (e.maxW = t.maxW), t.maxH && (e.maxH = t.maxH)), e;
1429
+ }
1430
+ static samePos(e, t) {
1431
+ return e && t && e.x === t.x && e.y === t.y && (e.w || 1) === (t.w || 1) && (e.h || 1) === (t.h || 1);
1432
+ }
1433
+ static sanitizeMinMax(e) {
1434
+ e.minW || delete e.minW, e.minH || delete e.minH, e.maxW || delete e.maxW, e.maxH || delete e.maxH;
1435
+ }
1436
+ static removeInternalAndSame(t, n) {
1437
+ if (typeof t != "object" || typeof n != "object" || !t || !n || Array.isArray(t) || Array.isArray(n)) return;
1438
+ let r = t, i = n;
1439
+ for (let t in r) {
1440
+ let n = r[t], a = i[t];
1441
+ t[0] === "_" || n === a ? delete r[t] : n && typeof n == "object" && a !== void 0 && (e.removeInternalAndSame(n, a), Object.keys(n).length || delete r[t]);
1442
+ }
1443
+ }
1444
+ static removeInternalForSave(e, t = !0) {
1445
+ let n = e;
1446
+ for (let e in n) (e[0] === "_" || n[e] === null || n[e] === void 0) && delete n[e];
1447
+ delete e.grid, t && delete e.el, e.autoPosition || delete e.autoPosition, e.noResize || delete e.noResize, e.noMove || delete e.noMove, e.locked || delete e.locked, (e.w === 1 || e.w === e.minW) && delete e.w, (e.h === 1 || e.h === e.minH) && delete e.h;
1448
+ }
1449
+ static throttle(e, t) {
1450
+ let n = !1;
1451
+ return (...r) => {
1452
+ n || (n = !0, setTimeout(() => {
1453
+ e(...r), n = !1;
1454
+ }, t));
1455
+ };
1456
+ }
1457
+ static removePositioningStyles(e) {
1458
+ let t = e.style;
1459
+ t.position && t.removeProperty("position"), t.left && t.removeProperty("left"), t.top && t.removeProperty("top"), t.width && t.removeProperty("width"), t.height && t.removeProperty("height");
1460
+ }
1461
+ static getScrollElement(t) {
1462
+ if (!t) return document.scrollingElement || document.documentElement;
1463
+ let n = getComputedStyle(t).overflowY;
1464
+ return (n === "auto" || n === "scroll") && t.scrollHeight > t.clientHeight ? t : e.getScrollElement(t.parentElement ?? void 0);
1465
+ }
1466
+ static updateScrollResize(t, n, r) {
1467
+ let i = e.getScrollElement(n), a = i.clientHeight, o = i === e.getScrollElement() ? 0 : i.getBoundingClientRect().top, s = t.clientY - o, c = s < r, l = s > a - r;
1468
+ c ? i.scrollBy({
1469
+ behavior: "smooth",
1470
+ top: s - r
1471
+ }) : l && i.scrollBy({
1472
+ behavior: "smooth",
1473
+ top: r - (a - s)
1474
+ });
1475
+ }
1476
+ static pauseIframePointerEvents(e) {
1477
+ document.querySelectorAll("iframe").forEach((t) => {
1478
+ t.style.pointerEvents = e ? "none" : "";
1479
+ });
1480
+ }
1481
+ static clone(e) {
1482
+ return typeof e != "object" || !e ? e : e instanceof Array ? [...e] : { ...e };
1483
+ }
1484
+ static cloneDeep(t) {
1485
+ let n = [
1486
+ "parentGrid",
1487
+ "el",
1488
+ "grid",
1489
+ "subGrid",
1490
+ "engine"
1491
+ ], r = e.clone(t);
1492
+ for (let i in r) Object.prototype.hasOwnProperty.call(r, i) && typeof r[i] == "object" && i.substring(0, 2) !== "__" && !n.find((e) => e === i) && (r[i] = e.cloneDeep(t[i]));
1493
+ return r;
1494
+ }
1495
+ static cloneNode(e) {
1496
+ let t = e.cloneNode(!0);
1497
+ return t.removeAttribute("id"), t;
1498
+ }
1499
+ static appendTo(t, n) {
1500
+ let r;
1501
+ r = typeof n == "string" ? e.getElement(n) : n, r && r.appendChild(t);
1502
+ }
1503
+ static addElStyles(e, t) {
1504
+ if (t instanceof Object) {
1505
+ let n = e.style;
1506
+ for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (Array.isArray(t[e]) ? t[e].forEach((t) => {
1507
+ n[e] = t;
1508
+ }) : n[e] = t[e]);
1509
+ }
1510
+ }
1511
+ static initEvent(e, t) {
1512
+ let n = { type: t.type }, r = {
1513
+ button: 0,
1514
+ which: 0,
1515
+ buttons: 1,
1516
+ bubbles: !0,
1517
+ cancelable: !0,
1518
+ target: t.target ? t.target : e.target
1519
+ }, i = e;
1520
+ return [
1521
+ "altKey",
1522
+ "ctrlKey",
1523
+ "metaKey",
1524
+ "shiftKey"
1525
+ ].forEach((e) => n[e] = i[e]), [
1526
+ "pageX",
1527
+ "pageY",
1528
+ "clientX",
1529
+ "clientY",
1530
+ "screenX",
1531
+ "screenY"
1532
+ ].forEach((e) => n[e] = i[e]), {
1533
+ ...n,
1534
+ ...r
1535
+ };
1536
+ }
1537
+ static simulateMouseEvent(e, t, n) {
1538
+ let r = e, i = new MouseEvent(t, {
1539
+ bubbles: !0,
1540
+ composed: !0,
1541
+ cancelable: !0,
1542
+ view: window,
1543
+ detail: 1,
1544
+ screenX: e.screenX,
1545
+ screenY: e.screenY,
1546
+ clientX: e.clientX,
1547
+ clientY: e.clientY,
1548
+ ctrlKey: r.ctrlKey ?? !1,
1549
+ altKey: r.altKey ?? !1,
1550
+ shiftKey: r.shiftKey ?? !1,
1551
+ metaKey: r.metaKey ?? !1,
1552
+ button: 0,
1553
+ relatedTarget: e.target
1554
+ });
1555
+ (n || e.target).dispatchEvent(i);
1556
+ }
1557
+ static getValuesFromTransformedElement(t) {
1558
+ let n = document.createElement("div");
1559
+ e.addElStyles(n, {
1560
+ opacity: "0",
1561
+ position: "fixed",
1562
+ top: "0px",
1563
+ left: "0px",
1564
+ width: "1px",
1565
+ height: "1px",
1566
+ zIndex: "-999999"
1567
+ }), t.appendChild(n);
1568
+ let r = n.getBoundingClientRect();
1569
+ return t.removeChild(n), n.remove(), {
1570
+ xScale: 1 / r.width,
1571
+ yScale: 1 / r.height,
1572
+ xOffset: r.left,
1573
+ yOffset: r.top
1574
+ };
1575
+ }
1576
+ static swap(e, t, n) {
1577
+ if (!e) return;
1578
+ let r = e, i = r[t];
1579
+ r[t] = r[n], r[n] = i;
1580
+ }
1581
+ static canBeRotated(e) {
1582
+ return !(!e || e.w === e.h || e.locked || e.noResize || e.grid?.opts.disableResize || e.minW && e.minW === e.maxW || e.minH && e.minH === e.maxH);
1583
+ }
1584
+ }, yn = class e {
1585
+ constructor(e = {}) {
1586
+ this.addedNodes = [], this.removedNodes = [], this.defaultColumn = 12, this.column = e.column || this.defaultColumn, this.column > this.defaultColumn && (this.defaultColumn = this.column), this.maxRow = e.maxRow ?? 0, this._mode = e.mode || "top", this.nodes = e.nodes || [], this.onChange = e.onChange ?? (() => {});
1587
+ }
1588
+ batchUpdate(e = !0, t = !0) {
1589
+ return !!this.batchMode === e ? this : (this.batchMode = e, e ? (this._prevMode = this._mode, this._mode = "float", this.cleanNodes(), this.nodes.some((e) => e._updating) || this.saveInitial()) : (this._mode = this._prevMode || "top", delete this._prevMode, t && this._packNodes(), this._notify()), this);
1590
+ }
1591
+ get _realMode() {
1592
+ return this.batchMode ? this._prevMode || "top" : this.mode;
1593
+ }
1594
+ _useEntireRowArea(e, t) {
1595
+ return (this.mode !== "float" || this.batchMode && this._prevMode !== "float") && !this._hasLocked && (!e._moving || e._skipDown || t.y <= e.y);
1596
+ }
1597
+ _fixCollisions(e, t = e, n, r = {}) {
1598
+ if (this.sortNodes(-1), n ||= this.collide(e, t), !n) return !1;
1599
+ if (e._moving && !e._isExternal && !r.nested && this.mode !== "float" && this.swap(e, n)) return !0;
1600
+ let i = t;
1601
+ !this._loading && this._useEntireRowArea(e, t) && (i = {
1602
+ x: 0,
1603
+ w: this.column,
1604
+ y: t.y,
1605
+ h: t.h
1606
+ }, n = this.collide(e, i, r.skip));
1607
+ let a = !1, o = {
1608
+ nested: !0,
1609
+ pack: !1
1610
+ }, s = 0;
1611
+ for (; n ||= this.collide(e, i, r.skip);) {
1612
+ if (s++ > this.nodes.length * 2) throw Error("Infinite collide check");
1613
+ let i;
1614
+ if (n.locked || this._loading || e._moving && !e._skipDown && t.y > e.y && this.mode !== "float" && (!this.collide(n, {
1615
+ ...n,
1616
+ y: e.y
1617
+ }, e) || !this.collide(n, {
1618
+ ...n,
1619
+ y: t.y - n.h
1620
+ }, e))) {
1621
+ e._skipDown = e._skipDown || t.y > e.y;
1622
+ let s = {
1623
+ ...t,
1624
+ y: n.y + n.h,
1625
+ ...o
1626
+ };
1627
+ i = this._loading && G.samePos(e, s) ? !0 : this.moveNode(e, s), (n.locked || this._loading) && i ? G.copyPos(t, e) : !n.locked && i && r.pack && (this._packNodes(), t.y = n.y + n.h, G.copyPos(e, t)), a ||= i;
1628
+ } else i = this.moveNode(n, {
1629
+ ...n,
1630
+ y: t.y + t.h,
1631
+ skip: e,
1632
+ ...o
1633
+ });
1634
+ if (!i) return a;
1635
+ n = void 0;
1636
+ }
1637
+ return a;
1638
+ }
1639
+ collide(e, t = e, n) {
1640
+ let r = e._id, i = n?._id;
1641
+ return this.nodes.find((e) => e._id !== r && e._id !== i && G.isIntercepted(e, t));
1642
+ }
1643
+ collideAll(e, t = e, n) {
1644
+ let r = e._id, i = n?._id;
1645
+ return this.nodes.filter((e) => e._id !== r && e._id !== i && G.isIntercepted(e, t));
1646
+ }
1647
+ directionCollideCoverage(e, t, n) {
1648
+ if (!t.rect || !e._rect) return;
1649
+ let r = e._rect, i = { ...t.rect };
1650
+ i.y > r.y ? (i.h = i.h + i.y - r.y, i.y = r.y) : i.h = i.h + r.y - i.y, i.x > r.x ? (i.w = i.w + i.x - r.x, i.x = r.x) : i.w = i.w + r.x - i.x;
1651
+ let a, o = .5;
1652
+ for (let e of n) {
1653
+ if (e.locked || !e._rect) continue;
1654
+ let t = e._rect, n = Number.MAX_VALUE, s = Number.MAX_VALUE;
1655
+ r.y < t.y ? n = (i.y + i.h - t.y) / t.h : r.y + r.h > t.y + t.h && (n = (t.y + t.h - i.y) / t.h), r.x < t.x ? s = (i.x + i.w - t.x) / t.w : r.x + r.w > t.x + t.w && (s = (t.x + t.w - i.x) / t.w);
1656
+ let c = Math.min(s, n);
1657
+ c > o && (o = c, a = e);
1658
+ }
1659
+ return t.collide = a, a;
1660
+ }
1661
+ cacheRects(e, t, n, r, i, a) {
1662
+ return this.nodes.forEach((o) => o._rect = {
1663
+ y: o.y * t + n,
1664
+ x: o.x * e + a,
1665
+ w: o.w * e - a - r,
1666
+ h: o.h * t - n - i
1667
+ }), this;
1668
+ }
1669
+ swap(e, t) {
1670
+ if (!t || t.locked || !e || e.locked) return !1;
1671
+ function n() {
1672
+ let n = t.x, r = t.y;
1673
+ return t.x = e.x, t.y = e.y, e.h == t.h ? e.w == t.w ? (e.x = n, e.y = r) : (e.x = t.x + t.w, e.y = r) : (e.x = n, e.y = t.y + t.h), e._dirty = t._dirty = !0, !0;
1674
+ }
1675
+ let r;
1676
+ if (e.w === t.w && e.h === t.h && (e.x === t.x || e.y === t.y) && (r = G.isTouching(e, t))) return n();
1677
+ if (r !== !1) {
1678
+ if (e.w === t.w && e.x === t.x && (r ||= G.isTouching(e, t))) {
1679
+ if (t.y < e.y) {
1680
+ let n = e;
1681
+ e = t, t = n;
1682
+ }
1683
+ return n();
1684
+ }
1685
+ if (r !== !1) {
1686
+ if (e.h === t.h && e.y === t.y && (r ||= G.isTouching(e, t))) {
1687
+ if (t.x < e.x) {
1688
+ let n = e;
1689
+ e = t, t = n;
1690
+ }
1691
+ return n();
1692
+ }
1693
+ return !1;
1694
+ }
1695
+ }
1696
+ }
1697
+ isAreaEmpty(e, t, n, r) {
1698
+ let i = {
1699
+ x: e || 0,
1700
+ y: t || 0,
1701
+ w: n || 1,
1702
+ h: r || 1
1703
+ };
1704
+ return !this.collide(i);
1705
+ }
1706
+ compact(e = "compact", t = !0) {
1707
+ if (this.nodes.length === 0) return this;
1708
+ let n = this.batchMode;
1709
+ return n || this.batchUpdate(), this._relayout(e, t), n || this.batchUpdate(!1), this;
1710
+ }
1711
+ _relayout(e, t = !0) {
1712
+ if (this.nodes.length === 0) return this;
1713
+ t && this.sortNodes();
1714
+ let n = this._inColumnResize;
1715
+ n || (this._inColumnResize = !0);
1716
+ let r = this.nodes;
1717
+ this.nodes = r.filter((e) => e.locked);
1718
+ let i = /* @__PURE__ */ new Set(), a = 0, o = (e) => {
1719
+ for (let t = e.y; t < e.y + e.h; t++) for (let n = e.x; n < e.x + e.w; n++) i.add(t * this.column + n);
1720
+ for (; i.has(a);) ++a;
1721
+ };
1722
+ return this.nodes.forEach(o), r.forEach((t, n, r) => {
1723
+ if (t.locked) return;
1724
+ t.autoPosition = !0;
1725
+ let i = e === "list" ? n ? r[n - 1] : 0 : a;
1726
+ this.addNode(t, !1, i), o(t);
1727
+ }), n || delete this._inColumnResize, this;
1728
+ }
1729
+ set mode(e) {
1730
+ this._mode !== e && (this._mode = e || "top", this._mode !== "float" && this._packNodes()._notify());
1731
+ }
1732
+ get mode() {
1733
+ return this._mode || "top";
1734
+ }
1735
+ sortNodes(e = 1) {
1736
+ return this.nodes = G.sort(this.nodes, e), this;
1737
+ }
1738
+ _packNodes() {
1739
+ if (this.batchMode) return this;
1740
+ if (this.sortNodes(), this.mode === "float") this.nodes.forEach((e) => {
1741
+ if (e._updating || e._orig === void 0 || e.y === e._orig.y) return;
1742
+ let t = e.y;
1743
+ for (; t > e._orig.y;) --t, this.collide(e, {
1744
+ x: e.x,
1745
+ y: t,
1746
+ w: e.w,
1747
+ h: e.h
1748
+ }) || (e._dirty = !0, e.y = t);
1749
+ });
1750
+ else if (this.mode === "list" || this.mode === "compact") {
1751
+ let e = this.mode === "compact" && this.nodes.some((e) => e._updating) ? "list" : this.mode, t = this.batchMode;
1752
+ this.batchMode = !0, this._relayout(e, !1), this.batchMode = t;
1753
+ } else this.nodes.forEach((e, t) => {
1754
+ if (!e.locked) for (; e.y > 0;) {
1755
+ let n = t === 0 ? 0 : e.y - 1;
1756
+ if (!(t === 0 || !this.collide(e, {
1757
+ x: e.x,
1758
+ y: n,
1759
+ w: e.w,
1760
+ h: e.h
1761
+ }))) break;
1762
+ e._dirty = e.y !== n, e.y = n;
1763
+ }
1764
+ });
1765
+ return this;
1766
+ }
1767
+ prepareNode(t, n) {
1768
+ t._id = t._id ?? e._idSeq++;
1769
+ let r = t.id;
1770
+ if (r) {
1771
+ let e = 1;
1772
+ for (; this.nodes.find((e) => e.id === t.id && e !== t);) t.id = r + "_" + e++;
1773
+ }
1774
+ (t.x === void 0 || t.y === void 0 || t.x === null || t.y === null) && (t.autoPosition = !0);
1775
+ let i = {
1776
+ x: 0,
1777
+ y: 0,
1778
+ w: 1,
1779
+ h: 1
1780
+ };
1781
+ return G.defaults(t, i), t.autoPosition || delete t.autoPosition, t.noResize || delete t.noResize, t.noMove || delete t.noMove, G.sanitizeMinMax(t), typeof t.x == "string" && (t.x = Number(t.x)), typeof t.y == "string" && (t.y = Number(t.y)), typeof t.w == "string" && (t.w = Number(t.w)), typeof t.h == "string" && (t.h = Number(t.h)), isNaN(t.x) && (t.x = i.x, t.autoPosition = !0), isNaN(t.y) && (t.y = i.y, t.autoPosition = !0), isNaN(t.w) && (t.w = i.w), isNaN(t.h) && (t.h = i.h), this.nodeBoundFix(t, n), t;
1782
+ }
1783
+ nodeBoundFix(e, t) {
1784
+ let n = e._orig || G.copyPos({}, e);
1785
+ if (e.x !== void 0 && !Number.isFinite(e.x) && (e.x = 0), e.y !== void 0 && !Number.isFinite(e.y) && (e.y = 0), e.w !== void 0 && !Number.isFinite(e.w) && (e.w = 1), e.h !== void 0 && !Number.isFinite(e.h) && (e.h = 1), e.maxW && (e.w = Math.min(e.w || 1, e.maxW)), e.maxH && (e.h = Math.min(e.h || 1, e.maxH)), e.minW && (e.w = Math.max(e.w || 1, e.minW)), e.minH && (e.h = Math.max(e.h || 1, e.minH)), (e.x || 0) + (e.w || 1) > this.column && this.column < this.defaultColumn && !this._inColumnResize && !this.skipCacheUpdate && e._id != null && this.findCacheLayout(e, this.defaultColumn) === -1) {
1786
+ let t = { ...e };
1787
+ t.autoPosition || t.x === void 0 ? (delete t.x, delete t.y) : t.x = Math.min(this.defaultColumn - 1, t.x), t.w = Math.min(this.defaultColumn, t.w || 1), this.cacheOneLayout(t, this.defaultColumn);
1788
+ }
1789
+ return e.w > this.column ? e.w = this.column : e.w < 1 && (e.w = 1), this.maxRow && e.h > this.maxRow ? e.h = this.maxRow : e.h < 1 && (e.h = 1), e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), e.x + e.w > this.column && (t ? e.w = this.column - e.x : e.x = this.column - e.w), this.maxRow && e.y + e.h > this.maxRow && (t ? e.h = this.maxRow - e.y : e.y = this.maxRow - e.h), G.samePos(e, n) || (e._dirty = !0), this;
1790
+ }
1791
+ getDirtyNodes(e) {
1792
+ return e ? this.nodes.filter((e) => e._dirty && e._orig && !G.samePos(e, e._orig)) : this.nodes.filter((e) => e._dirty);
1793
+ }
1794
+ _notify(e) {
1795
+ if (this.batchMode || !this.onChange) return this;
1796
+ let t = (e || []).concat(this.getDirtyNodes());
1797
+ return this.onChange(t), this;
1798
+ }
1799
+ cleanNodes() {
1800
+ return this.batchMode || this.nodes.forEach((e) => {
1801
+ delete e._dirty, delete e._lastTried;
1802
+ }), this;
1803
+ }
1804
+ saveInitial() {
1805
+ return this.nodes.forEach((e) => {
1806
+ e._orig = G.copyPos({}, e), delete e._dirty;
1807
+ }), this._hasLocked = this.nodes.some((e) => e.locked), this;
1808
+ }
1809
+ restoreInitial() {
1810
+ return this.nodes.forEach((e) => {
1811
+ !e._orig || G.samePos(e, e._orig) || (G.copyPos(e, e._orig), e._dirty = !0);
1812
+ }), this._notify(), this;
1813
+ }
1814
+ findEmptyPosition(e, t = this.nodes, n = this.column, r) {
1815
+ let i = typeof r == "number" ? r : r ? r.y * n + (r.x + r.w) : 0, a = !1;
1816
+ for (let r = i; !a; ++r) {
1817
+ let i = r % n, o = Math.floor(r / n);
1818
+ if (i + e.w > n) continue;
1819
+ let s = {
1820
+ x: i,
1821
+ y: o,
1822
+ w: e.w,
1823
+ h: e.h
1824
+ };
1825
+ t.find((e) => G.isIntercepted(s, e)) || ((e.x !== i || e.y !== o) && (e._dirty = !0), e.x = i, e.y = o, delete e.autoPosition, a = !0);
1826
+ }
1827
+ return a;
1828
+ }
1829
+ addNode(e, t = !1, n) {
1830
+ let r = this.nodes.find((t) => t._id === e._id);
1831
+ if (r) return r;
1832
+ this._inColumnResize ? this.nodeBoundFix(e) : this.prepareNode(e), delete e._temporaryRemoved, delete e._removeDOM;
1833
+ let i = !1;
1834
+ return e.autoPosition && (n === void 0 && this._realMode === "list" && (n = this.nodes[this.nodes.length - 1]), this.findEmptyPosition(e, this.nodes, this.column, n) && (delete e.autoPosition, i = !0)), !i && (this.mode === "list" || this.mode === "compact") ? (this.nodes.unshift(e), i = !0) : this.nodes.push(e), t && this.addedNodes.push(e), i || this._fixCollisions(e), this.batchMode || this._packNodes()._notify(), e;
1835
+ }
1836
+ removeNode(e, t = !0, n = !1) {
1837
+ return this.nodes.find((t) => t._id === e._id) ? (n && this.removedNodes.push(e), t && (e._removeDOM = !0), this.nodes = this.nodes.filter((t) => t._id !== e._id), e._isAboutToRemove || this._packNodes(), this._notify([e]), this) : this;
1838
+ }
1839
+ removeAll(e = !0, t = !0) {
1840
+ if (delete this._layouts, !this.nodes.length) return this;
1841
+ e && this.nodes.forEach((e) => e._removeDOM = !0);
1842
+ let n = this.nodes;
1843
+ return this.removedNodes = t ? n : [], this.nodes = [], this._notify(n);
1844
+ }
1845
+ moveNodeCheck(t, n) {
1846
+ if (!this.changedPosConstrain(t, n) && !n.forceCollide) return !1;
1847
+ if (n.pack === void 0 && !this.batchMode && (n.pack = !0), !this.maxRow) return this.moveNode(t, n);
1848
+ let r, i = new e({
1849
+ column: this.column,
1850
+ mode: this.mode,
1851
+ nodes: this.nodes.map((e) => e._id === t._id ? (r = { ...e }, r) : { ...e })
1852
+ });
1853
+ if (!r) return !1;
1854
+ let a = i.moveNode(r, n) && i.getRow() <= Math.max(this.getRow(), this.maxRow);
1855
+ if (!a && !n.resizing && n.collide && !t._isExternal) {
1856
+ let e = n.collide.el?.gridstackNode;
1857
+ if (e && this.swap(t, e)) return this._notify(), !0;
1858
+ }
1859
+ return a ? (i.nodes.filter((e) => e._dirty).forEach((e) => {
1860
+ let t = this.nodes.find((t) => t._id === e._id);
1861
+ t && (G.copyPos(t, e), t._dirty = !0);
1862
+ }), this._notify(), !0) : !1;
1863
+ }
1864
+ willItFit(t) {
1865
+ if (delete t._willFitPos, !this.maxRow) return !0;
1866
+ let n = new e({
1867
+ column: this.column,
1868
+ mode: this.mode,
1869
+ nodes: this.nodes.map((e) => ({ ...e }))
1870
+ }), r = { ...t };
1871
+ return this.cleanupNode(r), delete r.el, delete r._id, delete r.content, delete r.grid, n.addNode(r), n.getRow() <= this.maxRow ? (t._willFitPos = G.copyPos({}, r), !0) : !1;
1872
+ }
1873
+ _makeDynamicSubGrid(e, t, n) {
1874
+ if (!n || !e.grid?.opts?.subGridDynamic || e.grid._isTemp || !t.rect || !n._rect) return !1;
1875
+ let r = G.areaIntercept(t.rect, n._rect), i = G.area(t.rect), a = G.area(n._rect);
1876
+ return r / (i < a ? i : a) <= .8 ? !1 : (n.grid.makeSubGrid(n.el, void 0, e), !0);
1877
+ }
1878
+ changedPosConstrain(e, t) {
1879
+ return t.w = t.w || e.w, t.h = t.h || e.h, e.x !== t.x || e.y !== t.y ? !0 : (e.maxW && (t.w = Math.min(t.w, e.maxW)), e.maxH && (t.h = Math.min(t.h, e.maxH)), e.minW && (t.w = Math.max(t.w, e.minW)), e.minH && (t.h = Math.max(t.h, e.minH)), e.w !== t.w || e.h !== t.h);
1880
+ }
1881
+ moveNode(e, t) {
1882
+ if (!e || !t) return !1;
1883
+ let n = !1;
1884
+ t.pack === void 0 && !this.batchMode && (n = t.pack = !0), typeof t.x != "number" && (t.x = e.x), typeof t.y != "number" && (t.y = e.y), typeof t.w != "number" && (t.w = e.w), typeof t.h != "number" && (t.h = e.h);
1885
+ let r = e.w !== t.w || e.h !== t.h, i = G.copyPos({}, e, !0);
1886
+ if (G.copyPos(i, t), this.nodeBoundFix(i, r), G.copyPos(t, i), !t.forceCollide && G.samePos(e, t)) return !1;
1887
+ let a = G.copyPos({}, e);
1888
+ if (this.mode === "list" || this.mode === "compact") {
1889
+ let r = !1;
1890
+ if (e._moving && !t.nested && e.grid?.opts?.subGridDynamic) {
1891
+ let a = this.directionCollideCoverage(e, t, this.collideAll(e, i, t.skip));
1892
+ this._makeDynamicSubGrid(e, t, a) && (r = !0, n && delete t.pack);
1893
+ }
1894
+ if (!r) {
1895
+ e._dirty = !0;
1896
+ let t = a.y * this.column + a.x;
1897
+ G.copyPos(e, i);
1898
+ let n = this.nodes.indexOf(e);
1899
+ n !== -1 && (this.nodes.splice(n, 1), e.y * this.column + e.x < t ? this.nodes.unshift(e) : this.nodes.push(e));
1900
+ }
1901
+ } else {
1902
+ let r = this.collideAll(e, i, t.skip), a = !0;
1903
+ if (r.length) {
1904
+ let o = e._moving && !t.nested, s = o ? this.directionCollideCoverage(e, t, r) : r[0];
1905
+ o && this._makeDynamicSubGrid(e, t, s) && (s = void 0), s ? a = !this._fixCollisions(e, i, s, t) : (a = !1, n && delete t.pack);
1906
+ }
1907
+ a && !G.samePos(e, i) && (e._dirty = !0, G.copyPos(e, i));
1908
+ }
1909
+ return t.pack && this._packNodes()._notify(), !G.samePos(e, a);
1910
+ }
1911
+ getRow() {
1912
+ return this.nodes.reduce((e, t) => Math.max(e, t.y + t.h), 0);
1913
+ }
1914
+ beginUpdate(e) {
1915
+ return e._updating || (e._updating = !0, delete e._skipDown, this.batchMode || this.saveInitial()), this;
1916
+ }
1917
+ endUpdate() {
1918
+ let e = this.nodes.find((e) => e._updating);
1919
+ return e && (delete e._updating, delete e._skipDown, this.mode === "compact" && this._packNodes()._notify()), this;
1920
+ }
1921
+ save(e = !0, t, n) {
1922
+ let r = this._layouts?.length || 0, i;
1923
+ r && (n ? n !== this.column && (i = this._layouts[n]) : this.column !== r - 1 && (i = this._layouts[r - 1]));
1924
+ let a = [];
1925
+ return this.sortNodes(), this.nodes.forEach((n) => {
1926
+ let r = i?.find((e) => e._id === n._id), o = {
1927
+ ...n,
1928
+ ...r || {}
1929
+ };
1930
+ G.removeInternalForSave(o, !e), t && t(n, o), a.push(o);
1931
+ }), a;
1932
+ }
1933
+ layoutsNodesChange(e) {
1934
+ return !this._layouts || this._inColumnResize || this._layouts.forEach((t, n) => {
1935
+ if (!(!t || n === this.column)) if (n < this.column) this._layouts[n] = void 0;
1936
+ else {
1937
+ let r = n / this.column;
1938
+ e.forEach((e) => {
1939
+ if (!e._orig) return;
1940
+ let n = t.find((t) => t._id === e._id);
1941
+ n && (n.y >= 0 && e.y !== e._orig.y && (n.y += e.y - e._orig.y, n.y < 0 && (n.y = 0)), e.x !== e._orig.x && (n.x = Math.round(e.x * r), n.x < 0 && (n.x = 0)), e.w !== e._orig.w && (n.w = Math.round(e.w * r), n.w < 1 && (n.w = 1)));
1942
+ });
1943
+ }
1944
+ }), this;
1945
+ }
1946
+ columnChanged(e, t, n) {
1947
+ if (!this.nodes.length || !t || e === t) return this;
1948
+ n ??= this.mode === "list" || this.mode === "compact" ? this.mode : "moveScale";
1949
+ let r = n === "compact" || n === "list" ? n : void 0;
1950
+ r && this.sortNodes(1), t < e && this.cacheLayout(this.nodes, e), this.batchUpdate();
1951
+ let i = [], a = r ? this.nodes : G.sort(this.nodes, -1);
1952
+ if (t > e && this._layouts) {
1953
+ let n = this._layouts[t] || [], o = this._layouts.length - 1;
1954
+ !n.length && e !== o && this._layouts[o]?.length && (e = o, this._layouts[o].forEach((e) => {
1955
+ let t = a.find((t) => t._id === e._id);
1956
+ t && (!r && !e.autoPosition && (t.x = e.x ?? t.x, t.y = e.y ?? t.y), t.w = e.w ?? t.w, (e.x == null || e.y === void 0) && (t.autoPosition = !0));
1957
+ })), n.forEach((e) => {
1958
+ let t = a.findIndex((t) => t._id === e._id);
1959
+ if (t !== -1) {
1960
+ let n = a[t];
1961
+ if (r) {
1962
+ n.w = e.w;
1963
+ return;
1964
+ }
1965
+ (e.autoPosition || isNaN(e.x) || isNaN(e.y)) && this.findEmptyPosition(e, i), e.autoPosition || (n.x = e.x ?? n.x, n.y = e.y ?? n.y, n.w = e.w ?? n.w, i.push(n)), a.splice(t, 1);
1966
+ }
1967
+ });
1968
+ }
1969
+ if (r) this.compact(r, !1);
1970
+ else {
1971
+ if (a.length) if (typeof n == "function") n(t, e, i, a);
1972
+ else {
1973
+ let o = r || n === "none" ? 1 : t / e, s = n === "move" || n === "moveScale", c = n === "scale" || n === "moveScale";
1974
+ a.forEach((n) => {
1975
+ n.x = t === 1 ? 0 : s ? Math.round(n.x * o) : Math.min(n.x, t - 1), n.w = t === 1 || e === 1 ? 1 : c ? Math.round(n.w * o) || 1 : Math.min(n.w, t), i.push(n);
1976
+ }), a = [];
1977
+ }
1978
+ i = G.sort(i, -1), this._inColumnResize = !0, this.nodes = [], i.forEach((e) => {
1979
+ this.addNode(e, !1), delete e._orig;
1980
+ });
1981
+ }
1982
+ return this.nodes.forEach((e) => delete e._orig), this.batchUpdate(!1, !r), delete this._inColumnResize, this;
1983
+ }
1984
+ cacheLayout(t, n, r = !1) {
1985
+ let i = [];
1986
+ return t.forEach((t, n) => {
1987
+ t._id === void 0 && (t._id = (t.id ? this.nodes.find((e) => e.id === t.id) : void 0)?._id ?? e._idSeq++), i[n] = {
1988
+ x: t.x,
1989
+ y: t.y,
1990
+ w: t.w,
1991
+ _id: t._id
1992
+ };
1993
+ }), this._layouts = r ? [] : this._layouts || [], this._layouts[n] = i, this;
1994
+ }
1995
+ cacheOneLayout(t, n) {
1996
+ t._id = t._id ?? e._idSeq++;
1997
+ let r = {
1998
+ x: t.x,
1999
+ y: t.y,
2000
+ w: t.w,
2001
+ _id: t._id
2002
+ };
2003
+ (t.autoPosition || t.x === void 0) && (delete r.x, delete r.y, t.autoPosition && (r.autoPosition = !0)), this._layouts = this._layouts || [], this._layouts[n] = this._layouts[n] || [];
2004
+ let i = this.findCacheLayout(t, n);
2005
+ return i === -1 ? this._layouts[n].push(r) : this._layouts[n][i] = r, this;
2006
+ }
2007
+ findCacheLayout(e, t) {
2008
+ return this._layouts?.[t]?.findIndex((t) => t._id === e._id) ?? -1;
2009
+ }
2010
+ removeNodeFromLayoutCache(e) {
2011
+ if (this._layouts) for (let t = 0; t < this._layouts.length; t++) {
2012
+ let n = this.findCacheLayout(e, t);
2013
+ n !== -1 && this._layouts[t].splice(n, 1);
2014
+ }
2015
+ }
2016
+ cleanupNode(e) {
2017
+ let t = e;
2018
+ for (let e in t) e[0] === "_" && e !== "_id" && delete t[e];
2019
+ return this;
2020
+ }
2021
+ };
2022
+ yn._idSeq = 0;
2023
+ //#endregion
2024
+ //#region node_modules/gridstack/dist/types.js
2025
+ var K = {
2026
+ alwaysShowResizeHandle: "mobile",
2027
+ animate: !0,
2028
+ auto: !0,
2029
+ cellHeight: "auto",
2030
+ cellHeightThrottle: 100,
2031
+ cellHeightUnit: "px",
2032
+ column: 12,
2033
+ draggable: {
2034
+ handle: ".grid-stack-item-content",
2035
+ appendTo: "body",
2036
+ scroll: !0
2037
+ },
2038
+ handle: ".grid-stack-item-content",
2039
+ itemClass: "grid-stack-item",
2040
+ margin: 10,
2041
+ marginUnit: "px",
2042
+ maxRow: 0,
2043
+ minRow: 0,
2044
+ placeholderClass: "grid-stack-placeholder",
2045
+ placeholderText: "",
2046
+ removableOptions: {
2047
+ accept: "grid-stack-item",
2048
+ decline: "grid-stack-non-removable"
2049
+ },
2050
+ resizable: { handles: "se" },
2051
+ rtl: "auto"
2052
+ }, q = class {}, J = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 && window.matchMedia("(any-pointer: coarse)").matches || navigator.msMaxTouchPoints > 0), bn = 300, xn = 10, Y = class {};
2053
+ function Sn(e) {
2054
+ e.preventDefault();
2055
+ }
2056
+ function Cn() {
2057
+ document.addEventListener("contextmenu", Sn, !0), document.addEventListener("selectstart", Sn, !0);
2058
+ }
2059
+ function wn() {
2060
+ document.removeEventListener("contextmenu", Sn, !0), document.removeEventListener("selectstart", Sn, !0);
2061
+ }
2062
+ function Tn(e, t, n) {
2063
+ e.removeEventListener("touchmove", t), e.removeEventListener("touchend", n), e.removeEventListener("touchcancel", n), En();
2064
+ }
2065
+ function En() {
2066
+ Y.touchDelayTimer && (window.clearTimeout(Y.touchDelayTimer), delete Y.touchDelayTimer), wn();
2067
+ }
2068
+ function Dn(e, t) {
2069
+ e.touches.length > 1 || (e.cancelable && e.preventDefault(), G.simulateMouseEvent(e.changedTouches[0], t));
2070
+ }
2071
+ function On(e, t) {
2072
+ e.cancelable && e.preventDefault(), G.simulateMouseEvent(e, t);
2073
+ }
2074
+ function kn(e) {
2075
+ if (Y.touchHandled) return;
2076
+ let t = e.currentTarget, n = e.touches[0].clientX, r = e.touches[0].clientY, i = () => Tn(t, a, i), a = (e) => {
2077
+ let t = e.touches[0];
2078
+ Math.abs(t.clientX - n) + Math.abs(t.clientY - r) > xn && i();
2079
+ };
2080
+ t.addEventListener("touchmove", a, { passive: !0 }), t.addEventListener("touchend", i, { passive: !0 }), t.addEventListener("touchcancel", i, { passive: !0 }), Y.touchDelayTimer = window.setTimeout(() => {
2081
+ Tn(t, a, i), Y.touchHandled = !0, Y.wasDelayed = !0, Cn(), Dn(e, "mousedown"), delete Y.wasDelayed;
2082
+ }, bn);
2083
+ }
2084
+ function An(e) {
2085
+ Y.touchHandled && Dn(e, "mousemove");
2086
+ }
2087
+ function X(e) {
2088
+ if (!Y.touchHandled) return;
2089
+ wn(), Y.pointerLeaveTimeout && (window.clearTimeout(Y.pointerLeaveTimeout), delete Y.pointerLeaveTimeout);
2090
+ let t = !!q.dragElement;
2091
+ Dn(e, "mouseup"), !t && e.type !== "touchcancel" && Dn(e, "click"), Y.touchHandled = !1;
2092
+ }
2093
+ function jn(e) {
2094
+ e.pointerType !== "mouse" && e.target.releasePointerCapture(e.pointerId);
2095
+ }
2096
+ function Mn(e) {
2097
+ q.dragElement && e.pointerType !== "mouse" && On(e, "mouseenter");
2098
+ }
2099
+ function Nn(e) {
2100
+ q.dragElement && e.pointerType !== "mouse" && (Y.pointerLeaveTimeout = window.setTimeout(() => {
2101
+ delete Y.pointerLeaveTimeout, On(e, "mouseleave");
2102
+ }, 10));
2103
+ }
2104
+ //#endregion
2105
+ //#region node_modules/gridstack/dist/dd-resizable-handle.js
2106
+ var Pn = class e {
2107
+ constructor(e, t, n) {
2108
+ this.host = e, this.dir = t, this.option = n, this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this._init();
2109
+ }
2110
+ _init() {
2111
+ if (this.option.element) try {
2112
+ this.el = this.option.element instanceof HTMLElement ? this.option.element : this.host.querySelector(this.option.element);
2113
+ } catch (e) {
2114
+ this.option.element = void 0, console.error("Query for resizeable handle failed, falling back", e);
2115
+ }
2116
+ return this.el || (this.el = document.createElement("div"), this.host.appendChild(this.el)), this.el.classList.add("ui-resizable-handle"), this.el.classList.add(`${e.prefix}${this.dir}`), this.el.addEventListener("mousedown", this._mouseDown), J && (this.el.addEventListener("touchstart", kn), this.el.addEventListener("pointerdown", jn)), this;
2117
+ }
2118
+ destroy() {
2119
+ return this.mouseDownEvent && this._mouseUp(this.mouseDownEvent), En(), this.el.removeEventListener("mousedown", this._mouseDown), J && (this.el.removeEventListener("touchstart", kn), this.el.removeEventListener("pointerdown", jn)), this.option.element || this.host.removeChild(this.el), this;
2120
+ }
2121
+ _mouseDown(e) {
2122
+ this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, {
2123
+ capture: !0,
2124
+ passive: !0
2125
+ }), document.addEventListener("mouseup", this._mouseUp, !0), J && (this.el.addEventListener("touchmove", An), this.el.addEventListener("touchend", X), this.el.addEventListener("touchcancel", X)), Y.wasDelayed && this.el.classList.add("ui-resizable-armed"), e.stopPropagation(), e.preventDefault();
2126
+ }
2127
+ _mouseMove(e) {
2128
+ let t = this.mouseDownEvent;
2129
+ this.moving ? this._triggerEvent("move", e) : Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 2 && (this.moving = !0, this.el.classList.remove("ui-resizable-armed"), this._triggerEvent("start", this.mouseDownEvent), this._triggerEvent("move", e), document.addEventListener("keydown", this._keyEvent)), e.stopPropagation();
2130
+ }
2131
+ _mouseUp(e) {
2132
+ this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), this.el.classList.remove("ui-resizable-armed"), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), J && (this.el.removeEventListener("touchmove", An), this.el.removeEventListener("touchend", X), this.el.removeEventListener("touchcancel", X)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
2133
+ }
2134
+ _keyEvent(e) {
2135
+ e.key === "Escape" && (this.host.gridstackNode?.grid?.engine.restoreInitial(), this._mouseUp(this.mouseDownEvent));
2136
+ }
2137
+ _triggerEvent(e, t) {
2138
+ let n = this.option;
2139
+ return n[e] && n[e](t), this;
2140
+ }
2141
+ };
2142
+ Pn.prefix = "ui-resizable-";
2143
+ //#endregion
2144
+ //#region node_modules/gridstack/dist/dd-base-impl.js
2145
+ var Fn = class {
2146
+ constructor() {
2147
+ this._eventRegister = {};
2148
+ }
2149
+ get disabled() {
2150
+ return this._disabled;
2151
+ }
2152
+ on(e, t) {
2153
+ this._eventRegister[e] = t;
2154
+ }
2155
+ off(e) {
2156
+ delete this._eventRegister[e];
2157
+ }
2158
+ enable() {
2159
+ this._disabled = !1;
2160
+ }
2161
+ disable() {
2162
+ this._disabled = !0;
2163
+ }
2164
+ destroy() {
2165
+ this._eventRegister = {};
2166
+ }
2167
+ triggerEvent(e, t) {
2168
+ if (!this.disabled && this._eventRegister[e]) return this._eventRegister[e](t);
2169
+ }
2170
+ }, In = class e extends Fn {
2171
+ constructor(e, t = {}) {
2172
+ super(), this.el = e, this.option = t, this.rectScale = {
2173
+ x: 1,
2174
+ y: 1
2175
+ }, this._ui = () => {
2176
+ let e = this.el.parentElement.getBoundingClientRect(), t = {
2177
+ width: this.originalRect.width,
2178
+ height: this.originalRect.height + this.scrolled,
2179
+ left: this.originalRect.left,
2180
+ right: this.originalRect.right,
2181
+ top: this.originalRect.top - this.scrolled
2182
+ }, n = this.temporalRect || t;
2183
+ return {
2184
+ position: {
2185
+ left: this.option.rtl ? (e.right - n.right) * this.rectScale.x : (n.left - e.left) * this.rectScale.x,
2186
+ top: (n.top - e.top) * this.rectScale.y
2187
+ },
2188
+ size: {
2189
+ width: n.width * this.rectScale.x,
2190
+ height: n.height * this.rectScale.y
2191
+ }
2192
+ };
2193
+ }, this._mouseOver = this._mouseOver.bind(this), this._mouseOut = this._mouseOut.bind(this), this.enable(), this._setupAutoHide(!!this.option.autoHide), this._setupHandlers();
2194
+ }
2195
+ on(e, t) {
2196
+ super.on(e, t);
2197
+ }
2198
+ off(e) {
2199
+ super.off(e);
2200
+ }
2201
+ enable() {
2202
+ super.enable(), this.el.classList.remove("ui-resizable-disabled"), this._setupAutoHide(!!this.option.autoHide);
2203
+ }
2204
+ disable() {
2205
+ super.disable(), this.el.classList.add("ui-resizable-disabled"), this._setupAutoHide(!1);
2206
+ }
2207
+ destroy() {
2208
+ q.resizeElement === this && delete q.resizeElement, this._removeHandlers(), this._setupAutoHide(!1), delete this.el, super.destroy();
2209
+ }
2210
+ updateOption(e) {
2211
+ let t = e.handles && e.handles !== this.option.handles, n = e.autoHide && e.autoHide !== this.option.autoHide;
2212
+ return Object.assign(this.option, e), t && (this._removeHandlers(), this._setupHandlers()), n && this._setupAutoHide(!!this.option.autoHide), this;
2213
+ }
2214
+ _setupAutoHide(e) {
2215
+ return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), q.overResizeElement === this && delete q.overResizeElement), this;
2216
+ }
2217
+ _mouseOver(e) {
2218
+ q.overResizeElement || q.dragElement || (q.overResizeElement = this, q.resizeElement || this.el.classList.remove("ui-resizable-autohide"));
2219
+ }
2220
+ _mouseOut(e) {
2221
+ q.overResizeElement === this && (delete q.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
2222
+ }
2223
+ _setupHandlers() {
2224
+ return this.handlers = (this.option.handles ?? "se").split(",").map((e) => e.trim()).map((e) => new Pn(this.el, e, {
2225
+ element: this.option.element,
2226
+ start: (e) => this._resizeStart(e),
2227
+ stop: (e) => this._resizeStop(e),
2228
+ move: (t) => this._resizing(t, e)
2229
+ })), this;
2230
+ }
2231
+ _resizeStart(e) {
2232
+ this.sizeToContent = G.shouldSizeToContent(this.el.gridstackNode, !0), this.originalRect = this.el.getBoundingClientRect(), this.scrollEl = G.getScrollElement(this.el), this.scrollY = this.scrollEl.scrollTop, this.scrolled = 0, this.startEvent = e, G.pauseIframePointerEvents(!0), this._setupHelper(), this._applyChange();
2233
+ let t = G.initEvent(e, {
2234
+ type: "resizestart",
2235
+ target: this.el
2236
+ });
2237
+ return q.resizeElement = this, this.option.start && this.option.start(t, this._ui()), this.el.classList.add("ui-resizable-resizing"), this.triggerEvent("resizestart", t), this;
2238
+ }
2239
+ _resizing(e, t) {
2240
+ this.scrolled = this.scrollEl.scrollTop - this.scrollY, this.temporalRect = this._getChange(e, t), this._applyChange();
2241
+ let n = G.initEvent(e, {
2242
+ type: "resize",
2243
+ target: this.el
2244
+ });
2245
+ return n.resizeDir = t, n.hasMovedX = this.option.rtl ? t.includes("e") : t.includes("w"), n.hasMovedY = t.includes("n"), this.option.resize && this.option.resize(n, this._ui()), this.triggerEvent("resize", n), this;
2246
+ }
2247
+ _resizeStop(e) {
2248
+ let t = G.initEvent(e, {
2249
+ type: "resizestop",
2250
+ target: this.el
2251
+ });
2252
+ return G.pauseIframePointerEvents(!1), this._cleanHelper(), this.option.stop && this.option.stop(t), this.el.classList.remove("ui-resizable-resizing"), q.resizeElement === this && delete q.resizeElement, !q.resizeElement && q.overResizeElement && q.overResizeElement.el.classList.remove("ui-resizable-autohide"), this.triggerEvent("resizestop", t), delete this.startEvent, delete this.originalRect, delete this.temporalRect, delete this.scrollY, delete this.scrolled, this;
2253
+ }
2254
+ _setupHelper() {
2255
+ this.elOriginStyleVal = e._originStyleProp.map((e) => this.el.style[e]);
2256
+ let t = this.el.parentElement;
2257
+ this.parentOriginStylePosition = t.style.position;
2258
+ let n = G.getValuesFromTransformedElement(t);
2259
+ return this.rectScale = {
2260
+ x: n.xScale,
2261
+ y: n.yScale
2262
+ }, getComputedStyle(t).position.match(/static/) && (t.style.position = "relative"), this.el.style.position = "absolute", this.el.style.opacity = "0.8", this;
2263
+ }
2264
+ _cleanHelper() {
2265
+ return e._originStyleProp.forEach((e, t) => {
2266
+ this.el.style[e] = this.elOriginStyleVal[t] || null;
2267
+ }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
2268
+ }
2269
+ _getChange(e, t) {
2270
+ let n = this.startEvent, r = {
2271
+ width: this.originalRect.width,
2272
+ height: this.originalRect.height + this.scrolled,
2273
+ left: this.originalRect.left,
2274
+ right: this.originalRect.right,
2275
+ top: this.originalRect.top - this.scrolled
2276
+ }, i = e.clientX - n.clientX, a = this.sizeToContent ? 0 : e.clientY - n.clientY, o = !1, s = !1, c = this.option.rtl;
2277
+ !c && t.indexOf("e") > -1 ? r.width += i : c && t.indexOf("w") > -1 ? r.width -= i : !c && t.indexOf("w") > -1 ? (r.width -= i, r.left += i, o = !0) : c && t.indexOf("e") > -1 && (r.width += i, r.right += i, o = !0), t.indexOf("s") > -1 ? r.height += a : t.indexOf("n") > -1 && (r.height -= a, r.top += a, s = !0);
2278
+ let l = this._constrainSize(r.width, r.height, o, s);
2279
+ return Math.round(r.width) !== Math.round(l.width) && (!c && t.indexOf("w") > -1 ? r.left += r.width - l.width : c && t.indexOf("e") > -1 && (r.right -= r.width - l.width), r.width = l.width), Math.round(r.height) !== Math.round(l.height) && (t.indexOf("n") > -1 && (r.top += r.height - l.height), r.height = l.height), r;
2280
+ }
2281
+ _constrainSize(e, t, n, r) {
2282
+ let i = this.option, a = (n ? i.maxWidthMoveLeft : i.maxWidth) || 2 ** 53 - 1, o = (i.minWidth ?? 0) / this.rectScale.x || e, s = (r ? i.maxHeightMoveUp : i.maxHeight) || 2 ** 53 - 1, c = (i.minHeight ?? 0) / this.rectScale.y || t;
2283
+ return {
2284
+ width: Math.min(a, Math.max(o, e)),
2285
+ height: Math.min(s, Math.max(c, t))
2286
+ };
2287
+ }
2288
+ _applyChange() {
2289
+ let e = {
2290
+ left: 0,
2291
+ right: 0,
2292
+ top: 0,
2293
+ width: 0,
2294
+ height: 0
2295
+ };
2296
+ if (this.el.style.position === "absolute") {
2297
+ let { left: t, right: n, top: r } = this.el.parentElement.getBoundingClientRect();
2298
+ e = {
2299
+ left: t,
2300
+ right: n,
2301
+ top: r,
2302
+ width: 0,
2303
+ height: 0
2304
+ };
2305
+ }
2306
+ if (!this.temporalRect) return this;
2307
+ let t = e;
2308
+ return Object.entries(this.temporalRect).forEach(([n, r]) => {
2309
+ if (this.option.rtl ? n === "left" : n === "right") return;
2310
+ let i = n === "width" || n === "left" || n === "right" ? this.rectScale.x : n === "height" || n === "top" ? this.rectScale.y : 1, a;
2311
+ a = n === "right" ? (e.right - r) * this.rectScale.x + "px" : (r - t[n]) * i + "px", this.el.style[n] = a;
2312
+ }), this;
2313
+ }
2314
+ _removeHandlers() {
2315
+ return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
2316
+ }
2317
+ };
2318
+ In._originStyleProp = [
2319
+ "width",
2320
+ "height",
2321
+ "position",
2322
+ "left",
2323
+ "right",
2324
+ "top",
2325
+ "opacity",
2326
+ "zIndex"
2327
+ ];
2328
+ //#endregion
2329
+ //#region node_modules/gridstack/dist/dd-draggable.js
2330
+ var Ln = "input,textarea,button,select,option,[contenteditable=\"true\"],.ui-resizable-handle", Rn = class e extends Fn {
2331
+ constructor(e, t = {}) {
2332
+ super(), this.el = e, this.option = t, this.dragTransform = {
2333
+ xScale: 1,
2334
+ yScale: 1,
2335
+ xOffset: 0,
2336
+ yOffset: 0
2337
+ }, this._autoScrollTick = () => {
2338
+ let e = this.helper, t = this._autoScrollContainer;
2339
+ if (!e || !t) {
2340
+ this._stopScrolling();
2341
+ return;
2342
+ }
2343
+ let n = this._getClipping(e, t);
2344
+ if (n === 0) {
2345
+ this._stopScrolling();
2346
+ return;
2347
+ }
2348
+ if (!this._autoScrollMaxSpeed) {
2349
+ let e = window.innerHeight || document.documentElement.clientHeight;
2350
+ this._autoScrollMaxSpeed = Math.max(e / 150, 4);
2351
+ }
2352
+ let r = Math.min(Math.abs(n) * .5, this._autoScrollMaxSpeed), i = n > 0 ? r : -r, a = t.scrollTop;
2353
+ if (t.scrollTop += i, t.scrollTop === a) {
2354
+ this._stopScrolling();
2355
+ return;
2356
+ }
2357
+ this.dragging && this.lastDrag && (this._dragFollow(this.lastDrag), this._callDrag(this.lastDrag)), this._autoScrollAnimId = requestAnimationFrame(this._autoScrollTick);
2358
+ };
2359
+ let n = t?.handle?.substring(1), r = e.gridstackNode;
2360
+ this.dragEls = !n || e.classList.contains(n) ? [e] : r?.subGrid ? [e.querySelector(t.handle) || e] : this.getAllHandles(), this.dragEls.length === 0 && (this.dragEls = [e]), this._mouseDown = this._mouseDown.bind(this), this._mouseMove = this._mouseMove.bind(this), this._mouseUp = this._mouseUp.bind(this), this._keyEvent = this._keyEvent.bind(this), this.enable();
2361
+ }
2362
+ getAllHandles() {
2363
+ let e = this.option.handle;
2364
+ if (!e) return [];
2365
+ let t = [], n = (r) => {
2366
+ t.push(...Array.from(r.querySelectorAll(e))), r.querySelectorAll("*").forEach((e) => {
2367
+ let t = e.shadowRoot;
2368
+ t && n(t);
2369
+ });
2370
+ };
2371
+ return n(this.el), t.filter((e) => {
2372
+ if (!(e instanceof HTMLElement)) return !1;
2373
+ let t = e.closest(".grid-stack-item"), n = e.getRootNode();
2374
+ for (; !t && n instanceof ShadowRoot;) t = n.host.closest(".grid-stack-item"), n = n.host.getRootNode();
2375
+ return t === this.el || !t;
2376
+ });
2377
+ }
2378
+ on(e, t) {
2379
+ super.on(e, t);
2380
+ }
2381
+ off(e) {
2382
+ super.off(e);
2383
+ }
2384
+ enable() {
2385
+ this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
2386
+ e.addEventListener("mousedown", this._mouseDown), J && (e.addEventListener("touchstart", kn), e.addEventListener("pointerdown", jn));
2387
+ }), this.el.classList.remove("ui-draggable-disabled"));
2388
+ }
2389
+ disable(e = !1) {
2390
+ this.disabled !== !0 && (super.disable(), En(), this.dragEls.forEach((e) => {
2391
+ e.removeEventListener("mousedown", this._mouseDown), J && (e.removeEventListener("touchstart", kn), e.removeEventListener("pointerdown", jn));
2392
+ }), e || this.el.classList.add("ui-draggable-disabled"));
2393
+ }
2394
+ destroy() {
2395
+ this.dragTimeout && window.clearTimeout(this.dragTimeout), delete this.dragTimeout, this.mouseDownEvent && this._mouseUp(this.mouseDownEvent), this.disable(!0), delete this.el, delete this.option, super.destroy();
2396
+ }
2397
+ updateOption(e) {
2398
+ return Object.assign(this.option, e), this;
2399
+ }
2400
+ refreshHandles() {
2401
+ let e = this.disabled;
2402
+ e || this.disable(!0);
2403
+ let t = this.option?.handle?.substring(1), n = this.el.gridstackNode;
2404
+ this.dragEls = !t || this.el.classList.contains(t) ? [this.el] : n?.subGrid ? [this.el.querySelector(this.option.handle) || this.el] : this.getAllHandles(), this.dragEls.length === 0 && (this.dragEls = [this.el]), e || this.enable();
2405
+ }
2406
+ _mouseDown(e) {
2407
+ if (e.isTrusted && (Y.touchHandled &&= !1, q.mouseHandled && e.timeStamp !== q.mouseHandledTimeStamp && delete q.mouseHandled), q.mouseHandled || e.button !== 0) return !0;
2408
+ let t = e.target.closest(Ln);
2409
+ return t && !this.dragEls.some((n) => n === e.target || n === t) || this.option.cancel && e.target.closest(this.option.cancel) ? !0 : (this.mouseDownEvent = e, delete this.dragging, delete q.dragElement, delete q.dropElement, delete this._autoScrollMaxSpeed, delete this._autoScrollContainer, document.addEventListener("mousemove", this._mouseMove, {
2410
+ capture: !0,
2411
+ passive: !0
2412
+ }), document.addEventListener("mouseup", this._mouseUp, !0), J && e.currentTarget && (e.currentTarget.addEventListener("touchmove", An), e.currentTarget.addEventListener("touchend", X), e.currentTarget.addEventListener("touchcancel", X)), Y.wasDelayed && this.el.classList.add("ui-draggable-armed"), e.preventDefault(), document.activeElement && document.activeElement.blur(), q.mouseHandled = !0, q.mouseHandledTimeStamp = e.timeStamp, !0);
2413
+ }
2414
+ _callDrag(e) {
2415
+ if (!this.dragging) return;
2416
+ let t = G.initEvent(e, {
2417
+ target: this.el,
2418
+ type: "drag"
2419
+ });
2420
+ this.option.drag && this.option.drag(t, this.ui()), this.triggerEvent("drag", t);
2421
+ }
2422
+ _mouseMove(e) {
2423
+ let t = this.mouseDownEvent;
2424
+ if (this.lastDrag = e, this.dragging) if (this._dragFollow(e), q.pauseDrag) {
2425
+ let t = Number.isInteger(q.pauseDrag) ? q.pauseDrag : 100;
2426
+ this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), t);
2427
+ } else this._callDrag(e);
2428
+ else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
2429
+ this.dragging = !0, G.pauseIframePointerEvents(!0), this.el.classList.remove("ui-draggable-armed"), q.dragElement = this;
2430
+ let t = this.el.gridstackNode?.grid;
2431
+ t ? q.dropElement = t.el.ddElement?.ddDroppable : delete q.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = G.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
2432
+ let n = G.initEvent(e, {
2433
+ target: this.el,
2434
+ type: "dragstart"
2435
+ });
2436
+ this.option.start && this.option.start(n, this.ui()), this.triggerEvent("dragstart", n), document.addEventListener("keydown", this._keyEvent);
2437
+ }
2438
+ return !0;
2439
+ }
2440
+ _mouseUp(e) {
2441
+ if (this._stopScrolling(), this.el.classList.remove("ui-draggable-armed"), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), J && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", An, !0), e.currentTarget.removeEventListener("touchend", X, !0), e.currentTarget.removeEventListener("touchcancel", X, !0)), this.dragging) {
2442
+ delete this.dragging, G.pauseIframePointerEvents(!1), delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent), q.dropElement?.el === this.el.parentElement && delete q.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper && this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
2443
+ let t = G.initEvent(e, {
2444
+ target: this.el,
2445
+ type: "dragstop"
2446
+ });
2447
+ this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), q.dropElement && q.dropElement.drop(e);
2448
+ }
2449
+ delete this.helper, delete this.mouseDownEvent, delete q.dragElement, delete q.dropElement, delete q.mouseHandled, delete q.mouseHandledTimeStamp, Y.touchHandled = !1, e.preventDefault();
2450
+ }
2451
+ _keyEvent(e) {
2452
+ let t = this.el.gridstackNode, n = t?.grid || q.dropElement?.el?.gridstack;
2453
+ if (e.key === "Escape") t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), n?.cancelDrag(), this._mouseUp(this.mouseDownEvent);
2454
+ else if (t && n && (e.key === "r" || e.key === "R")) {
2455
+ if (!G.canBeRotated(t)) return;
2456
+ t._origRotate = t._origRotate || { ...t._orig }, delete t._moving, n.setAnimation(!1).rotate(t.el, {
2457
+ top: -this.dragOffset.offsetTop,
2458
+ left: -this.dragOffset.offsetX
2459
+ }).setAnimation(), t._moving = !0, this.dragOffset = this._getDragOffset(this.lastDrag, t.el, this.helperContainment), this.helper.style.width = this.dragOffset.width + "px", this.helper.style.height = this.dragOffset.height + "px", G.swap(t._orig, "w", "h"), delete t._rect, this._mouseMove(this.lastDrag);
2460
+ }
2461
+ }
2462
+ _createHelper() {
2463
+ let t = this.el;
2464
+ return typeof this.option.helper == "function" ? t = this.option.helper(this.el) : this.option.helper === "clone" && (t = G.cloneNode(this.el)), t.parentElement || G.appendTo(t, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo ?? "body"), this.dragElementOriginStyle = e.originStyleProp.map((e) => this.el.style[e]), t;
2465
+ }
2466
+ _setupHelperStyle(e) {
2467
+ this.helper.classList.add("ui-draggable-dragging"), this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");
2468
+ let t = this.helper.style;
2469
+ return t.pointerEvents = "none", t.width = this.dragOffset.width + "px", t.height = this.dragOffset.height + "px", t.willChange = "left, right, top", t.position = "fixed", this._dragFollow(e), t.transition = "none", setTimeout(() => {
2470
+ this.helper && (t.transition = null);
2471
+ }, 0), this;
2472
+ }
2473
+ _removeHelperStyle() {
2474
+ if (this.helper.classList.remove("ui-draggable-dragging"), (this.el._gridstackNodeOrig || this.el.gridstackNode)?.grid?.el.classList.remove("grid-stack-dragging"), !this.helper?.gridstackNode?._isAboutToRemove && this.dragElementOriginStyle) {
2475
+ let t = this.helper, n = this.dragElementOriginStyle, r = e.originStyleProp.indexOf("transition"), i = n[r] || null;
2476
+ t.style.transition = n[r] = "none";
2477
+ let a = t.style;
2478
+ e.originStyleProp.forEach((e, t) => a[e] = n[t] || null), setTimeout(() => t.style.transition = i || "", 50);
2479
+ }
2480
+ return delete this.dragElementOriginStyle, this;
2481
+ }
2482
+ _dragFollow(e) {
2483
+ let t = this.helper.style, n = this.dragOffset;
2484
+ this.option.rtl ? (t.right = (window.innerWidth - e.clientX + n.offsetX) * this.dragTransform.xScale + "px", t.left &&= "") : (t.left = (e.clientX + n.offsetX) * this.dragTransform.xScale + "px", t.right &&= ""), t.top = (e.clientY + n.offsetTop) * this.dragTransform.yScale + "px";
2485
+ }
2486
+ _setupHelperContainmentStyle() {
2487
+ return this.helperContainment = this.helper.parentElement, this.helper.style.position !== "fixed" && (this.parentOriginStylePosition = this.helperContainment.style.position, getComputedStyle(this.helperContainment).position.match(/static/) && (this.helperContainment.style.position = "relative")), this;
2488
+ }
2489
+ _getDragOffset(e, t, n) {
2490
+ let r = 0, i = 0;
2491
+ n && (r = this.dragTransform.xOffset, i = this.dragTransform.yOffset);
2492
+ let a = t.getBoundingClientRect(), o = this.option.rtl ? a.right : a.left, s = this.option.rtl ? e.clientX - a.right + r : -e.clientX + a.left - r;
2493
+ return {
2494
+ x: o,
2495
+ top: a.top,
2496
+ offsetX: s,
2497
+ offsetTop: -e.clientY + a.top - i,
2498
+ width: a.width * this.dragTransform.xScale,
2499
+ height: a.height * this.dragTransform.yScale
2500
+ };
2501
+ }
2502
+ updateScrollPosition(e) {
2503
+ this._autoScrollContainer = G.getScrollElement(e), this._getClipping(this.helper, this._autoScrollContainer) === 0 ? this._stopScrolling() : this._autoScrollAnimId ||= requestAnimationFrame(this._autoScrollTick);
2504
+ }
2505
+ _getClipping(e, t) {
2506
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight || document.documentElement.clientHeight;
2507
+ if (n.bottom < r.top || n.top > r.bottom) return 0;
2508
+ let a = n.bottom - Math.min(r.bottom, i), o = n.top - Math.max(r.top, 0);
2509
+ return o < 0 ? o : a > 0 ? a : 0;
2510
+ }
2511
+ _stopScrolling() {
2512
+ this._autoScrollAnimId && (cancelAnimationFrame(this._autoScrollAnimId), delete this._autoScrollAnimId);
2513
+ }
2514
+ ui() {
2515
+ let e = this.el.parentElement.getBoundingClientRect(), t = this.helper.getBoundingClientRect(), n = this.option.rtl ? (e.right - t.right) * this.dragTransform.xScale : (t.left - e.left) * this.dragTransform.xScale;
2516
+ return { position: {
2517
+ top: (t.top - e.top) * this.dragTransform.yScale,
2518
+ left: n
2519
+ } };
2520
+ }
2521
+ };
2522
+ Rn.originStyleProp = [
2523
+ "width",
2524
+ "height",
2525
+ "transform",
2526
+ "transform-origin",
2527
+ "transition",
2528
+ "pointerEvents",
2529
+ "position",
2530
+ "left",
2531
+ "right",
2532
+ "top",
2533
+ "minWidth",
2534
+ "willChange"
2535
+ ];
2536
+ //#endregion
2537
+ //#region node_modules/gridstack/dist/dd-droppable.js
2538
+ var zn = class extends Fn {
2539
+ constructor(e, t = {}) {
2540
+ super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.eventEl = this.el.closest(".grid-stack-item") || this.el, this.enable(), this._setupAccept();
2541
+ }
2542
+ on(e, t) {
2543
+ super.on(e, t);
2544
+ }
2545
+ off(e) {
2546
+ super.off(e);
2547
+ }
2548
+ enable() {
2549
+ this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.eventEl.addEventListener("mouseenter", this._mouseEnter), this.eventEl.addEventListener("mouseleave", this._mouseLeave), J && (this.eventEl.addEventListener("pointerenter", Mn), this.eventEl.addEventListener("pointerleave", Nn)));
2550
+ }
2551
+ disable(e = !1) {
2552
+ this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.eventEl.removeEventListener("mouseenter", this._mouseEnter), this.eventEl.removeEventListener("mouseleave", this._mouseLeave), J && (this.eventEl.removeEventListener("pointerenter", Mn), this.eventEl.removeEventListener("pointerleave", Nn)));
2553
+ }
2554
+ destroy() {
2555
+ this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
2556
+ }
2557
+ updateOption(e) {
2558
+ return Object.assign(this.option, e), this._setupAccept(), this;
2559
+ }
2560
+ _mouseEnter(e) {
2561
+ if (!q.dragElement || Y.touchHandled && e.isTrusted || !this._canDrop(q.dragElement.el)) return;
2562
+ e.preventDefault(), e.stopPropagation(), q.dragElement._stopScrolling(), q.dropElement && q.dropElement !== this && q.dropElement._mouseLeave(e, !0), q.dropElement = this;
2563
+ let t = G.initEvent(e, {
2564
+ target: this.el,
2565
+ type: "dropover"
2566
+ });
2567
+ this.option.over && this.option.over(t, this._ui(q.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
2568
+ }
2569
+ _mouseLeave(e, t = !1) {
2570
+ if (!q.dragElement || q.dropElement !== this) return;
2571
+ e.preventDefault(), e.stopPropagation(), t && q.dragElement._stopScrolling();
2572
+ let n = G.initEvent(e, {
2573
+ target: this.el,
2574
+ type: "dropout"
2575
+ });
2576
+ if (this.option.out && this.option.out(n, this._ui(q.dragElement)), this.triggerEvent("dropout", n), q.dropElement === this && (delete q.dropElement, !t)) {
2577
+ let t, n = this.el.parentElement;
2578
+ for (; !t && n;) t = n.ddElement?.ddDroppable, n = n.parentElement;
2579
+ t && t._mouseEnter(e);
2580
+ }
2581
+ }
2582
+ drop(e) {
2583
+ e.preventDefault();
2584
+ let t = G.initEvent(e, {
2585
+ target: this.el,
2586
+ type: "drop"
2587
+ });
2588
+ this.option.drop && this.option.drop(t, this._ui(q.dragElement)), this.triggerEvent("drop", t);
2589
+ }
2590
+ _canDrop(e) {
2591
+ return e && (!this.accept || this.accept(e));
2592
+ }
2593
+ _setupAccept() {
2594
+ return this.option.accept && (typeof this.option.accept == "string" ? this.accept = (e) => e.classList.contains(this.option.accept) || e.matches(this.option.accept) : this.accept = this.option.accept), this;
2595
+ }
2596
+ _ui(e) {
2597
+ return {
2598
+ draggable: e.el,
2599
+ ...e.ui()
2600
+ };
2601
+ }
2602
+ }, Bn = class e {
2603
+ static init(t) {
2604
+ return t.ddElement ||= new e(t), t.ddElement;
2605
+ }
2606
+ constructor(e) {
2607
+ this.el = e;
2608
+ }
2609
+ on(e, t) {
2610
+ return this.ddDraggable && [
2611
+ "drag",
2612
+ "dragstart",
2613
+ "dragstop"
2614
+ ].indexOf(e) > -1 ? this.ddDraggable.on(e, t) : this.ddDroppable && [
2615
+ "drop",
2616
+ "dropover",
2617
+ "dropout"
2618
+ ].indexOf(e) > -1 ? this.ddDroppable.on(e, t) : this.ddResizable && [
2619
+ "resizestart",
2620
+ "resize",
2621
+ "resizestop"
2622
+ ].indexOf(e) > -1 && this.ddResizable.on(e, t), this;
2623
+ }
2624
+ off(e) {
2625
+ return this.ddDraggable && [
2626
+ "drag",
2627
+ "dragstart",
2628
+ "dragstop"
2629
+ ].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && [
2630
+ "drop",
2631
+ "dropover",
2632
+ "dropout"
2633
+ ].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && [
2634
+ "resizestart",
2635
+ "resize",
2636
+ "resizestop"
2637
+ ].indexOf(e) > -1 && this.ddResizable.off(e), this;
2638
+ }
2639
+ setupDraggable(e) {
2640
+ return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new Rn(this.el, e), this;
2641
+ }
2642
+ cleanDraggable() {
2643
+ return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
2644
+ }
2645
+ setupResizable(e) {
2646
+ return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new In(this.el, e), this;
2647
+ }
2648
+ cleanResizable() {
2649
+ return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
2650
+ }
2651
+ setupDroppable(e) {
2652
+ return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new zn(this.el, e), this;
2653
+ }
2654
+ cleanDroppable() {
2655
+ return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
2656
+ }
2657
+ }, Z = new class {
2658
+ resizable(e, t, n, r) {
2659
+ return this._getDDElements(e, typeof t == "string" ? t : void 0).forEach((e) => {
2660
+ if (t === "disable" || t === "enable") e.ddResizable && e.ddResizable[t]();
2661
+ else if (t === "destroy") e.ddResizable && e.cleanResizable();
2662
+ else if (t === "option") e.setupResizable({ [n]: r });
2663
+ else {
2664
+ let n = e.el.gridstackNode.grid, r = e.el.getAttribute("gs-resize-handles") || n.opts.resizable.handles || "e,s,se";
2665
+ r === "all" && (r = "n,e,s,w,se,sw,ne,nw");
2666
+ let i = !n.opts.alwaysShowResizeHandle, a = t;
2667
+ e.setupResizable({
2668
+ ...n.opts.resizable,
2669
+ handles: r,
2670
+ autoHide: i,
2671
+ start: a.start,
2672
+ stop: a.stop,
2673
+ resize: a.resize,
2674
+ rtl: a.rtl
2675
+ });
2676
+ }
2677
+ }), this;
2678
+ }
2679
+ draggable(e, t, n, r) {
2680
+ return this._getDDElements(e, typeof t == "string" ? t : void 0).forEach((e) => {
2681
+ if (t === "disable" || t === "enable") e.ddDraggable && e.ddDraggable[t]();
2682
+ else if (t === "destroy") e.ddDraggable && e.cleanDraggable();
2683
+ else if (t === "option") e.setupDraggable({ [n]: r });
2684
+ else {
2685
+ let n = e.el.gridstackNode.grid, r = t;
2686
+ e.setupDraggable({
2687
+ ...n.opts.draggable,
2688
+ start: r.start,
2689
+ stop: r.stop,
2690
+ drag: r.drag,
2691
+ rtl: r.rtl
2692
+ });
2693
+ }
2694
+ }), this;
2695
+ }
2696
+ dragIn(e, t) {
2697
+ return this._getDDElements(e).forEach((e) => e.setupDraggable(t)), this;
2698
+ }
2699
+ droppable(e, t, n, r) {
2700
+ if (typeof t != "string") {
2701
+ let e = t;
2702
+ typeof e.accept == "function" && !e._accept && (e._accept = e.accept, e.accept = (t) => e._accept(t));
2703
+ }
2704
+ let i = typeof t == "string" ? t : void 0;
2705
+ return this._getDDElements(e, i).forEach((e) => {
2706
+ t === "disable" || t === "enable" ? e.ddDroppable && e.ddDroppable[t]() : t === "destroy" ? e.ddDroppable && e.cleanDroppable() : t === "option" ? e.setupDroppable({ [n]: r }) : e.setupDroppable(t);
2707
+ }), this;
2708
+ }
2709
+ isDroppable(e) {
2710
+ return !!(e?.ddElement?.ddDroppable && !e.ddElement.ddDroppable.disabled);
2711
+ }
2712
+ isDraggable(e) {
2713
+ return !!(e?.ddElement?.ddDraggable && !e.ddElement.ddDraggable.disabled);
2714
+ }
2715
+ isResizable(e) {
2716
+ return !!(e?.ddElement?.ddResizable && !e.ddElement.ddResizable.disabled);
2717
+ }
2718
+ on(e, t, n) {
2719
+ return this._getDDElements(e).forEach((e) => e.on(t, (e) => {
2720
+ n(e, q.dragElement ? q.dragElement.el : e.target, q.dragElement ? q.dragElement.helper : void 0);
2721
+ })), this;
2722
+ }
2723
+ off(e, t) {
2724
+ return this._getDDElements(e).forEach((e) => e.off(t)), this;
2725
+ }
2726
+ _getDDElements(e, t) {
2727
+ let n = e.gridstack || t !== "destroy" && t !== "disable", r = G.getElements(e);
2728
+ return r.length ? r.map((e) => e.ddElement || (n ? Bn.init(e) : null)).filter((e) => !!e) : [];
2729
+ }
2730
+ }(), Q = class e {
2731
+ static init(t = {}, n = ".grid-stack") {
2732
+ if (typeof document > "u") return null;
2733
+ let r = e.getGridElement(n);
2734
+ return r ? (r.gridstack ||= new e(r, G.cloneDeep(t)), r.gridstack) : (console.error(typeof n == "string" ? "GridStack.initAll() no grid was found with selector \"" + n + "\" - element missing or wrong selector ?\nNote: \".grid-stack\" is required for proper CSS styling and drag/drop, and is the default selector." : "GridStack.init() no grid element was passed."), null);
2735
+ }
2736
+ static initAll(t = {}, n = ".grid-stack") {
2737
+ let r = [];
2738
+ return typeof document > "u" ? r : (e.getGridElements(n).forEach((n) => {
2739
+ n.gridstack ||= new e(n, G.cloneDeep(t)), r.push(n.gridstack);
2740
+ }), r.length === 0 && console.error("GridStack.initAll() no grid was found with selector \"" + n + "\" - element missing or wrong selector ?\nNote: \".grid-stack\" is required for proper CSS styling and drag/drop, and is the default selector."), r);
2741
+ }
2742
+ static addGrid(t, n = {}) {
2743
+ if (!t) return null;
2744
+ let r = t;
2745
+ if (r.gridstack) {
2746
+ let e = r.gridstack;
2747
+ return n && (e.opts = {
2748
+ ...e.opts,
2749
+ ...n
2750
+ }), n.children !== void 0 && e.load(n.children), e;
2751
+ }
2752
+ return (!t.classList.contains("grid-stack") || e.addRemoveCB) && (r = e.addRemoveCB ? e.addRemoveCB(t, n, !0, !0) : G.createDiv(["grid-stack", n.class], t)), e.init(n, r);
2753
+ }
2754
+ static registerEngine(t) {
2755
+ e.engineClass = t;
2756
+ }
2757
+ static _migrateFloat(e) {
2758
+ let t = e.float;
2759
+ t !== void 0 && (e.mode === void 0 && (e.mode = t ? "float" : "top"), delete e.float);
2760
+ }
2761
+ get placeholder() {
2762
+ if (!this._placeholder) {
2763
+ this._placeholder = G.createDiv([
2764
+ this.opts.placeholderClass,
2765
+ K.itemClass,
2766
+ this.opts.itemClass
2767
+ ]);
2768
+ let e = G.createDiv(["placeholder-content"], this._placeholder);
2769
+ this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
2770
+ }
2771
+ return this._placeholder;
2772
+ }
2773
+ constructor(t, n = {}) {
2774
+ this.el = t, this.opts = n, this.animationDelay = 310, this._gsEventHandler = {}, this._extraDragRow = 0, this.dragTransform = {
2775
+ xScale: 1,
2776
+ yScale: 1,
2777
+ xOffset: 0,
2778
+ yOffset: 0
2779
+ }, t.gridstack = this, this.opts = n ||= {}, e._migrateFloat(n), t.classList.contains("grid-stack") || this.el.classList.add("grid-stack"), n.row && (n.minRow = n.maxRow = n.row, delete n.row);
2780
+ let r = G.toNumber(t.getAttribute("gs-row"));
2781
+ n.column === "auto" && delete n.column, n.alwaysShowResizeHandle !== void 0 && (n._alwaysShowResizeHandle = n.alwaysShowResizeHandle);
2782
+ let i = n.columnOpts;
2783
+ if (i) {
2784
+ let e = i.breakpoints;
2785
+ !i.columnWidth && !e?.length ? delete n.columnOpts : (e && e.length > 1 && (e.sort((e, t) => (t.w || 0) - (e.w || 0)), delete i.columnWidth), i.columnMax ??= 12);
2786
+ }
2787
+ let a = {
2788
+ ...G.cloneDeep(K),
2789
+ column: G.toNumber(t.getAttribute("gs-column")) || K.column,
2790
+ minRow: r || G.toNumber(t.getAttribute("gs-min-row")) || K.minRow,
2791
+ maxRow: r || G.toNumber(t.getAttribute("gs-max-row")) || K.maxRow,
2792
+ staticGrid: G.toBool(t.getAttribute("gs-static")) || K.staticGrid,
2793
+ sizeToContent: G.toBool(t.getAttribute("gs-size-to-content")) || void 0,
2794
+ draggable: { handle: (n.handleClass ? "." + n.handleClass : n.handle ? n.handle : "") || K.draggable.handle },
2795
+ removableOptions: {
2796
+ accept: n.itemClass || K.removableOptions.accept,
2797
+ decline: K.removableOptions.decline
2798
+ }
2799
+ };
2800
+ t.getAttribute("gs-animate") && (a.animate = G.toBool(t.getAttribute("gs-animate"))), n = G.defaults(n, a), this._initMargin(), this.checkDynamicColumn(), this._updateColumnVar(n), n.rtl === "auto" && (n.rtl = t.style.direction === "rtl"), n.rtl && this.el.classList.add("grid-stack-rtl");
2801
+ let o = this.el.closest("." + K.itemClass)?.gridstackNode;
2802
+ if (o && (o.subGrid = this, this.parentGridNode = o, this.el.classList.add("grid-stack-nested"), o.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = n.cellHeight === "auto", this._isFillCellHeight = n.cellHeight === "fill", this._isAutoCellHeight || this._isFillCellHeight || n.cellHeight === "initial") this.cellHeight(void 0);
2803
+ else {
2804
+ typeof n.cellHeight == "number" && n.cellHeightUnit && n.cellHeightUnit !== K.cellHeightUnit && (n.cellHeight += n.cellHeightUnit, delete n.cellHeightUnit);
2805
+ let e = n.cellHeight;
2806
+ delete n.cellHeight, this.cellHeight(e);
2807
+ }
2808
+ n.alwaysShowResizeHandle === "mobile" && (n.alwaysShowResizeHandle = J), this._setStaticClass();
2809
+ let s = n.engineClass || e.engineClass || yn;
2810
+ if (this.engine = new s({
2811
+ column: this.getColumn(),
2812
+ mode: n.mode,
2813
+ maxRow: n.maxRow,
2814
+ onChange: (e) => {
2815
+ e.forEach((e) => {
2816
+ let t = e.el;
2817
+ t && (e._removeDOM ? (t && t.remove(), delete e._removeDOM) : this._writePosAttr(t, e));
2818
+ }), this._updateContainerHeight();
2819
+ }
2820
+ }), n.auto && (this.batchUpdate(), this.engine._loading = !0, this.getGridItems().forEach((e) => this._prepareElement(e)), delete this.engine._loading, this.batchUpdate(!1)), n.children) {
2821
+ let e = n.children;
2822
+ delete n.children, e.length && this.load(e);
2823
+ }
2824
+ this.setAnimation(), n.subGridDynamic && !q.pauseDrag && (q.pauseDrag = !0), n.draggable?.pause !== void 0 && (q.pauseDrag = n.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
2825
+ }
2826
+ _updateColumnVar(e = this.opts) {
2827
+ this.el.classList.add("gs-" + e.column), typeof e.column == "number" && (this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`), this.el.style.setProperty("--gs-columns", String(e.column)));
2828
+ }
2829
+ addWidget(t) {
2830
+ if (!t) return;
2831
+ if (typeof t == "string") {
2832
+ console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");
2833
+ return;
2834
+ }
2835
+ if (t.ELEMENT_NODE) return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(t);
2836
+ let n, r = t;
2837
+ if (r.grid = this, n = r.el ? r.el : e.addRemoveCB ? e.addRemoveCB(this.el, t, !0, !1) : this.createWidgetDivs(r), !n) return;
2838
+ if (r = n.gridstackNode, r && n.parentElement === this.el && this.engine.nodes.find((e) => e._id === r._id)) return n;
2839
+ let i = this._readAttr(n);
2840
+ return G.defaults(t, i), this.engine.prepareNode(t), this.el.appendChild(n), this.makeWidget(n, t), n;
2841
+ }
2842
+ createWidgetDivs(t) {
2843
+ let n = G.createDiv(["grid-stack-item", this.opts.itemClass]), r = G.createDiv(["grid-stack-item-content"], n);
2844
+ return G.lazyLoad(t) ? t.visibleObservable || (t.visibleObservable = new IntersectionObserver(([n]) => {
2845
+ n.isIntersecting && (t.visibleObservable?.disconnect(), delete t.visibleObservable, e.renderCB(r, t), t.grid?.prepareDragDrop(t.el));
2846
+ }), window.setTimeout(() => t.visibleObservable?.observe(n))) : e.renderCB(r, t), n;
2847
+ }
2848
+ makeSubGrid(t, n, r, i = !0) {
2849
+ let a = t.gridstackNode;
2850
+ if (a ||= this.makeWidget(t).gridstackNode, a.subGrid?.el) return a.subGrid;
2851
+ let o, s = this;
2852
+ for (; s && !o;) o = s.opts?.subGridOpts, s = s.parentGridNode?.grid;
2853
+ n = G.cloneDeep({
2854
+ ...this.opts,
2855
+ id: void 0,
2856
+ children: void 0,
2857
+ column: "auto",
2858
+ columnOpts: void 0,
2859
+ layout: "list",
2860
+ subGridOpts: void 0,
2861
+ ...o || {},
2862
+ ...n || a.subGridOpts || {}
2863
+ }), a.subGridOpts = n;
2864
+ let c = !1;
2865
+ n.column === "auto" && (c = !0, n.column = Math.max(a.w || 1, r?.w || 1), delete n.columnOpts);
2866
+ let l = a.el.querySelector(".grid-stack-item-content"), u, d;
2867
+ if (i && (this._removeDD(a.el), d = {
2868
+ ...a,
2869
+ x: 0,
2870
+ y: 0
2871
+ }, G.removeInternalForSave(d), delete d.subGridOpts, a.content && (d.content = a.content, delete a.content), e.addRemoveCB ? u = e.addRemoveCB(this.el, d, !0, !1) || void 0 : (u = G.createDiv(["grid-stack-item"]), u.appendChild(l), l = G.createDiv(["grid-stack-item-content"], a.el)), this.prepareDragDrop(a.el)), r) {
2872
+ let e = c ? n.column : a.w, t = a.h + r.h, i = a.el.style;
2873
+ i.transition = "none", this.update(a.el, {
2874
+ w: e,
2875
+ h: t
2876
+ }), setTimeout(() => i.transition = "");
2877
+ }
2878
+ let f = a.subGrid = e.addGrid(l, n) || void 0;
2879
+ return r?._moving && (f._isTemp = !0), c && (f._autoColumn = !0), i && f.makeWidget(u, d), r && (r._moving ? window.setTimeout(() => G.simulateMouseEvent(r._event, "mouseenter", f.el), 0) : f.makeWidget(a.el, a)), this.resizeToContentCheck(!1, a), f;
2880
+ }
2881
+ removeAsSubGrid(e) {
2882
+ let t = this.parentGridNode?.grid;
2883
+ if (t && (t.batchUpdate(), t.removeWidget(this.parentGridNode.el, !0, !0), this.engine.nodes.forEach((e) => {
2884
+ e.x = (e.x ?? 0) + (this.parentGridNode.x ?? 0), e.y = (e.y ?? 0) + (this.parentGridNode.y ?? 0), this._removeDD(e.el), e.el.remove(), delete e.el.gridstackNode, t.makeWidget(e.el, e);
2885
+ }), t.batchUpdate(!1), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, e)) {
2886
+ let n = e.el?.gridstackNode;
2887
+ n && n !== e && (n._temporaryRemoved = !0), window.setTimeout(() => {
2888
+ let n = q.dragElement?.lastDrag || e._event;
2889
+ n && G.simulateMouseEvent(n, "mouseenter", t.el);
2890
+ }, 0);
2891
+ }
2892
+ }
2893
+ save(t = !0, n = !1, r = e.saveCB, i) {
2894
+ let a = this.engine.save(t, r, i);
2895
+ if (a.forEach((e) => {
2896
+ if (t && e.el && !e.subGrid && !r) e.content = e.el.querySelector(".grid-stack-item-content")?.innerHTML, e.content || delete e.content;
2897
+ else if (!t && !r && delete e.content, e.subGrid?.el) {
2898
+ let i = e.w || e.subGrid.getColumn(), a = e.subGrid.save(t, n, r, i);
2899
+ e.subGridOpts = n ? a : { children: a }, delete e.subGrid;
2900
+ }
2901
+ delete e.el;
2902
+ }), n) {
2903
+ let e = G.cloneDeep(this.opts);
2904
+ e.marginBottom === e.marginTop && e.marginRight === e.marginLeft && e.marginTop === e.marginRight && (e.margin = e.marginTop, delete e.marginTop, delete e.marginRight, delete e.marginBottom, delete e.marginLeft), e.rtl === (this.el.style.direction === "rtl") && (e.rtl = "auto"), this._isAutoCellHeight && (e.cellHeight = "auto"), this._autoColumn && (e.column = "auto");
2905
+ let t = e._alwaysShowResizeHandle;
2906
+ return delete e._alwaysShowResizeHandle, t === void 0 ? delete e.alwaysShowResizeHandle : e.alwaysShowResizeHandle = t, G.removeInternalAndSame(e, K), e.children = a, e;
2907
+ }
2908
+ return a;
2909
+ }
2910
+ load(t, n = e.addRemoveCB || !0) {
2911
+ t.forEach((e) => {
2912
+ e.w = e.w || e.minW || 1, e.h = e.h || e.minH || 1;
2913
+ }), t = G.sort(t), this.engine.skipCacheUpdate = this._ignoreLayoutsNodeChange = !0;
2914
+ let r = 0;
2915
+ t.forEach((e) => {
2916
+ r = Math.max(r, (e.x || 0) + e.w);
2917
+ }), r > this.engine.defaultColumn && (this.engine.defaultColumn = r);
2918
+ let i = this.getColumn();
2919
+ r > i && (this.engine.nodes.length === 0 && this.responseLayout ? (this.engine.nodes = t, this.engine.columnChanged(r, i, this.responseLayout), t = this.engine.nodes, this.engine.nodes = [], delete this.responseLayout) : this.engine.cacheLayout(t, r, !0));
2920
+ let a = e.addRemoveCB;
2921
+ typeof n == "function" && (e.addRemoveCB = n);
2922
+ let o = [];
2923
+ this.batchUpdate();
2924
+ let s = !this.engine.nodes.length, c = s && this.opts.animate;
2925
+ c && this.setAnimation(!1), !s && n && [...this.engine.nodes].forEach((n) => {
2926
+ n.id && (G.find(t, n.id) || (e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), o.push(n), this.removeWidget(n.el, !0, !1)));
2927
+ }), this.engine._loading = !0;
2928
+ let l = [];
2929
+ return this.engine.nodes = this.engine.nodes.filter((e) => e.id && G.find(t, e.id) ? (l.push(e), !1) : !0), t.forEach((e) => {
2930
+ let t = e.id ? G.find(l, e.id) : void 0;
2931
+ if (t) {
2932
+ if (G.shouldSizeToContent(t) && (e.h = t.h), this.engine.nodeBoundFix(e), (e.autoPosition || e.x === void 0 || e.y === void 0) && (e.w = e.w || t.w, e.h = e.h || t.h, this.engine.findEmptyPosition(e)), this.engine.nodes.push(t), G.samePos(t, e) && this.engine.nodes.length > 1 && (this.moveNode(t, {
2933
+ ...e,
2934
+ forceCollide: !0
2935
+ }), G.copyPos(e, t)), this.update(t.el, e), e.subGridOpts?.children) {
2936
+ let n = t.el.querySelector(".grid-stack");
2937
+ n && n.gridstack && n.gridstack.load(e.subGridOpts.children);
2938
+ }
2939
+ } else n && this.addWidget(e);
2940
+ }), delete this.engine._loading, this.engine.removedNodes = o, this.batchUpdate(!1), delete this._ignoreLayoutsNodeChange, delete this.engine.skipCacheUpdate, a ? e.addRemoveCB = a : delete e.addRemoveCB, c && this.setAnimation(!0, !0), this;
2941
+ }
2942
+ batchUpdate(e = !0) {
2943
+ return this.engine.batchUpdate(e), e || (this._updateContainerHeight(), this._triggerRemoveEvent(), this._triggerAddEvent(), this._triggerChangeEvent()), this;
2944
+ }
2945
+ getCellHeight(e = !1) {
2946
+ if (this.opts.cellHeight && this.opts.cellHeight !== "auto" && (!e || !this.opts.cellHeightUnit || this.opts.cellHeightUnit === "px")) return this.opts.cellHeight;
2947
+ if (this.opts.cellHeightUnit === "rem") return this.opts.cellHeight * parseFloat(getComputedStyle(document.documentElement).fontSize);
2948
+ if (this.opts.cellHeightUnit === "em") return this.opts.cellHeight * parseFloat(getComputedStyle(this.el).fontSize);
2949
+ if (this.opts.cellHeightUnit === "cm") return this.opts.cellHeight * (96 / 2.54);
2950
+ if (this.opts.cellHeightUnit === "mm") return this.opts.cellHeight * (96 / 2.54) / 10;
2951
+ let t = this.el.querySelector("." + this.opts.itemClass);
2952
+ if (t) {
2953
+ let e = G.toNumber(t.getAttribute("gs-h")) || 1;
2954
+ return Math.round(t.offsetHeight / e);
2955
+ }
2956
+ let n = parseInt(this.el.getAttribute("gs-current-row") || "0");
2957
+ return n ? Math.round(this.el.getBoundingClientRect().height / n) : this.opts.cellHeight;
2958
+ }
2959
+ cellHeight(e) {
2960
+ if (e !== void 0 && (this._isAutoCellHeight !== (e === "auto") || this._isFillCellHeight !== (e === "fill")) && (this._isAutoCellHeight = e === "auto", this._isFillCellHeight = e === "fill", this._updateResizeEvent()), (e === "initial" || e === "auto" || e === "fill") && (e = void 0), e === void 0 && this._isFillCellHeight) {
2961
+ let t = this.getRow() || this.opts.row || this.opts.maxRow || 1, n = this.el.clientHeight;
2962
+ n > 0 && (e = Math.max(1, n / t));
2963
+ }
2964
+ if (e === void 0) {
2965
+ let t = -this.opts.marginRight - this.opts.marginLeft + this.opts.marginTop + this.opts.marginBottom;
2966
+ e = this.cellWidth() + t;
2967
+ }
2968
+ let t = G.parseHeight(e);
2969
+ return this.opts.cellHeightUnit === t.unit && this.opts.cellHeight === t.h ? this : (this.opts.cellHeightUnit = t.unit, this.opts.cellHeight = t.h, this.el.style.setProperty("--gs-cell-height", `${this.opts.cellHeight}${this.opts.cellHeightUnit}`), this._updateContainerHeight(), this.resizeToContentCheck(), this);
2970
+ }
2971
+ cellWidth() {
2972
+ return this._widthOrContainer() / this.getColumn();
2973
+ }
2974
+ _widthOrContainer(e = !1) {
2975
+ return e && this.opts.columnOpts?.breakpointForWindow ? window.innerWidth : this.el.clientWidth || this.el.parentElement.clientWidth || window.innerWidth;
2976
+ }
2977
+ checkDynamicColumn() {
2978
+ let e = this.opts.columnOpts;
2979
+ if (!e || !e.columnWidth && !e.breakpoints?.length) return !1;
2980
+ let t = this.getColumn(), n = t, r = this._widthOrContainer(!0);
2981
+ if (e.columnWidth) n = Math.min(Math.round(r / e.columnWidth) || 1, e.columnMax);
2982
+ else {
2983
+ n = e.columnMax;
2984
+ let i = 0;
2985
+ for (; i < e.breakpoints.length && r <= e.breakpoints[i].w;) n = e.breakpoints[i++].c || t;
2986
+ }
2987
+ if (n !== t) {
2988
+ let t = e.breakpoints?.find((e) => e.c === n);
2989
+ return this.column(n, t?.layout || e.layout), !0;
2990
+ }
2991
+ return !1;
2992
+ }
2993
+ compact(e = "compact", t = !0) {
2994
+ return this.engine.compact(e, t), this._triggerChangeEvent(), this;
2995
+ }
2996
+ column(e, t) {
2997
+ if (!e || e < 1 || this.opts.column === e) return this;
2998
+ t ??= this.opts.mode === "list" || this.opts.mode === "compact" ? this.opts.mode : "moveScale";
2999
+ let n = this.getColumn();
3000
+ return this.opts.column = e, this.engine ? (this.engine.column = e, this.el.classList.remove("gs-" + n), this._updateColumnVar(), this.engine.columnChanged(n, e, t), (this._isAutoCellHeight || this._isFillCellHeight) && this.cellHeight(), this.resizeToContentCheck(!0), this._ignoreLayoutsNodeChange = !0, this._triggerChangeEvent(), delete this._ignoreLayoutsNodeChange, this) : (this.responseLayout = t, this);
3001
+ }
3002
+ getColumn() {
3003
+ return this.opts.column;
3004
+ }
3005
+ getGridItems() {
3006
+ return Array.from(this.el.children).filter((e) => e.matches("." + this.opts.itemClass) && !e.matches("." + this.opts.placeholderClass));
3007
+ }
3008
+ isIgnoreChangeCB() {
3009
+ return !!this._ignoreLayoutsNodeChange;
3010
+ }
3011
+ destroy(e = !0) {
3012
+ return this.el ? (this.offAll(), this._updateResizeEvent(!0), this.setStatic(!0, !1), this.setAnimation(!1), e ? this.el.parentNode.removeChild(this.el) : (this.removeAll(e), this.el.removeAttribute("gs-current-row")), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, delete this.opts, delete this._placeholder?.gridstackNode, delete this._placeholder, delete this.engine, delete this.el.gridstack, delete this.el, this) : this;
3013
+ }
3014
+ mode(e) {
3015
+ return this.opts.mode !== e && (this.opts.mode = this.engine.mode = e, this._triggerChangeEvent()), this;
3016
+ }
3017
+ getMode() {
3018
+ return this.engine.mode;
3019
+ }
3020
+ getCellFromPixel(e, t = !1) {
3021
+ let n = this.el.getBoundingClientRect(), r;
3022
+ r = t ? {
3023
+ top: n.top + document.documentElement.scrollTop,
3024
+ left: n.left
3025
+ } : {
3026
+ top: this.el.offsetTop,
3027
+ left: this.el.offsetLeft
3028
+ };
3029
+ let i = e.left - r.left, a = e.top - r.top, o = n.width / this.getColumn(), s = n.height / parseInt(this.el.getAttribute("gs-current-row") || "0");
3030
+ return {
3031
+ x: Math.floor(i / o),
3032
+ y: Math.floor(a / s)
3033
+ };
3034
+ }
3035
+ getRow() {
3036
+ return Math.max(this.engine?.getRow() || 0, this.opts.minRow || 0);
3037
+ }
3038
+ isAreaEmpty(e, t, n, r) {
3039
+ return this.engine.isAreaEmpty(e, t, n, r);
3040
+ }
3041
+ makeWidget(t, n) {
3042
+ let r = e.getElement(t);
3043
+ if (!r || r.gridstackNode) return r;
3044
+ r.parentElement || this.el.appendChild(r), this._prepareElement(r, !0, n);
3045
+ let i = r.gridstackNode;
3046
+ this._updateContainerHeight(), i.subGridOpts && this.makeSubGrid(r, i.subGridOpts, void 0, !1);
3047
+ let a = !1;
3048
+ return this.opts.column === 1 && !this._ignoreLayoutsNodeChange && (a = this._ignoreLayoutsNodeChange = !0), this._triggerAddEvent(), this._triggerChangeEvent(), a && delete this._ignoreLayoutsNodeChange, r;
3049
+ }
3050
+ on(e, t) {
3051
+ return e.indexOf(" ") === -1 ? (e === "change" || e === "added" || e === "removed" || e === "enable" || e === "disable" ? (e === "enable" || e === "disable" ? this._gsEventHandler[e] = (e) => t(e) : this._gsEventHandler[e] = ((e) => {
3052
+ e.detail && t(e, e.detail);
3053
+ }), this.el.addEventListener(e, this._gsEventHandler[e])) : e === "drag" || e === "dragstart" || e === "dragstop" || e === "resizestart" || e === "resize" || e === "resizestop" || e === "dropped" || e === "resizecontent" ? this._gsEventHandler[e] = t : console.error("GridStack.on(" + e + ") event not supported"), this) : (e.split(" ").forEach((e) => this.on(e, t)), this);
3054
+ }
3055
+ off(e) {
3056
+ return e.indexOf(" ") === -1 ? ((e === "change" || e === "added" || e === "removed" || e === "enable" || e === "disable") && this._gsEventHandler[e] && this.el.removeEventListener(e, this._gsEventHandler[e]), delete this._gsEventHandler[e], this) : (e.split(" ").forEach((e) => this.off(e)), this);
3057
+ }
3058
+ offAll() {
3059
+ return Object.keys(this._gsEventHandler).forEach((e) => this.off(e)), this;
3060
+ }
3061
+ removeWidget(t, n = !0, r = !0) {
3062
+ return t ? (e.getElements(t).forEach((t) => {
3063
+ if (t.parentElement && t.parentElement !== this.el) return;
3064
+ let i = t.gridstackNode;
3065
+ i ||= this.engine.nodes.find((e) => t === e.el), i && (n && e.addRemoveCB && e.addRemoveCB(this.el, i, !1, !1), delete t.gridstackNode, this._removeDD(t), this.engine.removeNode(i, n, r), n && t.parentElement && t.remove());
3066
+ }), r && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
3067
+ }
3068
+ removeAll(t = !0, n = !0) {
3069
+ return this.engine.nodes.forEach((n) => {
3070
+ t && e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), delete n.el.gridstackNode, this.opts.staticGrid || this._removeDD(n.el);
3071
+ }), this.engine.removeAll(t, n), n && this._triggerRemoveEvent(), this;
3072
+ }
3073
+ setAnimation(e = this.opts.animate, t) {
3074
+ return t ? setTimeout(() => {
3075
+ this.opts && this.setAnimation(e);
3076
+ }) : e ? this.el.classList.add("grid-stack-animate") : this.el.classList.remove("grid-stack-animate"), this.opts.animate = e, this;
3077
+ }
3078
+ hasAnimationCSS() {
3079
+ return this.el.classList.contains("grid-stack-animate");
3080
+ }
3081
+ setStatic(e, t = !0, n = !0) {
3082
+ return !!this.opts.staticGrid === e ? this : (e ? this.opts.staticGrid = !0 : delete this.opts.staticGrid, this._setupRemoveDrop(), this._setupAcceptWidget(), this.engine.nodes.forEach((r) => {
3083
+ this.prepareDragDrop(r.el), r.subGrid && n && r.subGrid.setStatic(e, t, n);
3084
+ }), t && this._setStaticClass(), this);
3085
+ }
3086
+ updateOptions(t) {
3087
+ let n = this.opts;
3088
+ if (t === n) return this;
3089
+ if (e._migrateFloat(t), t.acceptWidgets !== void 0 && (n.acceptWidgets = t.acceptWidgets, this._setupAcceptWidget()), t.animate !== void 0 && this.setAnimation(t.animate), t.cellHeight && this.cellHeight(t.cellHeight), t.class !== void 0 && t.class !== n.class && (n.class && this.el.classList.remove(n.class), t.class && this.el.classList.add(t.class)), t.columnOpts) {
3090
+ let e = !!this.opts.columnOpts;
3091
+ this.opts.columnOpts = t.columnOpts, e !== !!this.opts.columnOpts && this._updateResizeEvent(), this.checkDynamicColumn();
3092
+ } else t.columnOpts === null && this.opts.columnOpts ? (delete this.opts.columnOpts, this._updateResizeEvent()) : typeof t.column == "number" && this.column(t.column);
3093
+ return t.margin !== void 0 && this.margin(t.margin), t.staticGrid !== void 0 && this.setStatic(t.staticGrid), t.disableDrag !== void 0 && !t.staticGrid && this.enableMove(!t.disableDrag), t.disableResize !== void 0 && !t.staticGrid && this.enableResize(!t.disableResize), t.mode !== void 0 && this.mode(t.mode), t.row === void 0 ? (t.minRow !== void 0 && (n.minRow = t.minRow, this._updateContainerHeight()), t.maxRow !== void 0 && (n.maxRow = this.engine.maxRow = t.maxRow, this.engine.getRow() > t.maxRow && this.compact())) : (n.minRow = n.maxRow = this.engine.maxRow = n.row = t.row, this._updateContainerHeight(), this.engine.getRow() > t.row && this.compact()), t.lazyLoad !== void 0 && (n.lazyLoad = t.lazyLoad), t.children?.length && this.load(t.children), this;
3094
+ }
3095
+ update(t, n) {
3096
+ return e.getElements(t).forEach((t) => {
3097
+ let r = t?.gridstackNode;
3098
+ if (!r) return;
3099
+ let i = {
3100
+ ...G.copyPos({}, r),
3101
+ ...G.cloneDeep(n)
3102
+ };
3103
+ this.engine.nodeBoundFix(i), delete i.autoPosition;
3104
+ let a = [
3105
+ "x",
3106
+ "y",
3107
+ "w",
3108
+ "h"
3109
+ ], o, s = i, c = r;
3110
+ if (a.some((e) => s[e] !== void 0 && s[e] !== c[e])) {
3111
+ o = {};
3112
+ let e = o;
3113
+ a.forEach((t) => {
3114
+ e[t] = s[t] === void 0 ? c[t] : s[t], delete s[t];
3115
+ });
3116
+ }
3117
+ if (!o && (i.minW || i.minH || i.maxW || i.maxH) && (o = {}), i.content !== void 0) {
3118
+ let n = t.querySelector(".grid-stack-item-content");
3119
+ n && n.textContent !== i.content && (r.content = i.content, e.renderCB(n, i), r.subGrid?.el && (n.appendChild(r.subGrid.el), r.subGrid._updateContainerHeight())), delete i.content;
3120
+ }
3121
+ let l = !1, u = !1;
3122
+ for (let e in s) e[0] !== "_" && c[e] !== s[e] && (c[e] = s[e], l = !0, u ||= !this.opts.staticGrid && (e === "noResize" || e === "noMove" || e === "locked"));
3123
+ if (G.sanitizeMinMax(r), o) {
3124
+ let e = o.w !== void 0 && o.w !== r.w;
3125
+ this.moveNode(r, o), e && r.subGrid ? r.subGrid.onResize(this.hasAnimationCSS() ? r.w : void 0) : this.resizeToContentCheck(e, r), r._updating || delete r._orig;
3126
+ }
3127
+ (o || l) && this._writeAttr(t, r), u && this.prepareDragDrop(r.el), e.updateCB && e.updateCB(r);
3128
+ }), this;
3129
+ }
3130
+ moveNode(e, t) {
3131
+ let n = e._updating;
3132
+ n || this.engine.cleanNodes().beginUpdate(e), this.engine.moveNodeCheck(e, t), this._updateContainerHeight(), n || (this._triggerChangeEvent(), this.engine.endUpdate());
3133
+ }
3134
+ resizeToContent(t) {
3135
+ if (!t || (t.classList.remove("size-to-content-max"), !t.clientHeight)) return;
3136
+ let n = t.gridstackNode;
3137
+ if (!n) return;
3138
+ let r = n.grid;
3139
+ if (!r || t.parentElement !== r.el) return;
3140
+ let i = r.getCellHeight(!0);
3141
+ if (!i) return;
3142
+ let a = n.h ? n.h * i : t.clientHeight, o = null;
3143
+ if (n.resizeToContentParent && (o = t.querySelector(n.resizeToContentParent)), o ||= t.querySelector(e.resizeToContentParent), !o) return;
3144
+ let s = t.clientHeight - o.clientHeight, c = n.h ? n.h * i - s : o.clientHeight, l;
3145
+ if (n.subGrid) {
3146
+ l = n.subGrid.getRow() * n.subGrid.getCellHeight(!0);
3147
+ let e = n.subGrid.el.getBoundingClientRect(), r = t.getBoundingClientRect();
3148
+ l += e.top - r.top;
3149
+ } else if (n.subGridOpts?.children?.length) return;
3150
+ else {
3151
+ let t = o.firstElementChild;
3152
+ if (!t) {
3153
+ console.error(`Error: GridStack.resizeToContent() widget id:${n.id} '${e.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
3154
+ return;
3155
+ }
3156
+ l = t.getBoundingClientRect().height || c;
3157
+ }
3158
+ if (c === l) return;
3159
+ a += l - c;
3160
+ let u = Math.ceil(a / i), d = Number.isInteger(n.sizeToContent) ? n.sizeToContent : 0;
3161
+ d && u > d && (u = d, t.classList.add("size-to-content-max")), n.minH && u < n.minH ? u = n.minH : n.maxH && u > n.maxH && (u = n.maxH), u !== n.h && (r._ignoreLayoutsNodeChange = !0, r.moveNode(n, { h: u }), delete r._ignoreLayoutsNodeChange);
3162
+ }
3163
+ resizeToContentCBCheck(t) {
3164
+ e.resizeToContentCB ? e.resizeToContentCB(t) : this.resizeToContent(t);
3165
+ }
3166
+ rotate(t, n) {
3167
+ return e.getElements(t).forEach((e) => {
3168
+ let t = e.gridstackNode;
3169
+ if (!t || !G.canBeRotated(t)) return;
3170
+ let r = {
3171
+ w: t.h,
3172
+ h: t.w,
3173
+ minH: t.minW,
3174
+ minW: t.minH,
3175
+ maxH: t.maxW,
3176
+ maxW: t.maxH
3177
+ };
3178
+ if (n) {
3179
+ let e = n.left > 0 ? Math.floor(n.left / this.cellWidth()) : 0, i = n.top > 0 ? Math.floor(n.top / this.opts.cellHeight) : 0;
3180
+ r.x = t.x + e - (t.h - (i + 1)), r.y = t.y + i - e;
3181
+ }
3182
+ let i = r;
3183
+ Object.keys(i).forEach((e) => {
3184
+ i[e] === void 0 && delete i[e];
3185
+ });
3186
+ let a = t._orig;
3187
+ this.update(e, r), t._orig = a;
3188
+ }), this;
3189
+ }
3190
+ margin(e) {
3191
+ if (!(typeof e == "string" && e.split(" ").length > 1)) {
3192
+ let t = G.parseHeight(e);
3193
+ if (this.opts.marginUnit === t.unit && this.opts.margin === t.h) return this;
3194
+ }
3195
+ return this.opts.margin = e, this.opts.marginTop = this.opts.marginBottom = this.opts.marginLeft = this.opts.marginRight = void 0, this._initMargin(), this;
3196
+ }
3197
+ getMargin() {
3198
+ return this.opts.margin;
3199
+ }
3200
+ willItFit(e) {
3201
+ return this.engine.willItFit(e);
3202
+ }
3203
+ _triggerChangeEvent() {
3204
+ if (this.engine.batchMode) return this;
3205
+ let e = this.engine.getDirtyNodes(!0);
3206
+ return e && e.length && (this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(e), this._triggerEvent("change", e)), this.engine.saveInitial(), this._sortDom(), this._isFillCellHeight && this.cellHeight(), this;
3207
+ }
3208
+ _sortDom() {
3209
+ let e = this.engine.nodes;
3210
+ if (e.forEach((e) => {
3211
+ e.subGrid && e.subGrid._sortDom();
3212
+ }), e.length < 2) return this;
3213
+ this.engine.sortNodes(), e = this.engine.nodes;
3214
+ let t = this.el.children;
3215
+ if (e.some((e, n) => e.el !== t[n])) {
3216
+ let t = this.el.moveBefore?.bind(this.el);
3217
+ e.forEach((e) => {
3218
+ e.el && e.el.parentElement === this.el && (t ? t(e.el, null) : this.el.appendChild(e.el));
3219
+ });
3220
+ }
3221
+ return this;
3222
+ }
3223
+ _triggerAddEvent() {
3224
+ if (this.engine.batchMode) return this;
3225
+ if (this.engine.addedNodes?.length) {
3226
+ this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(this.engine.addedNodes), this.engine.addedNodes.forEach((e) => {
3227
+ delete e._dirty;
3228
+ });
3229
+ let e = [...this.engine.addedNodes];
3230
+ this.engine.addedNodes = [], this._triggerEvent("added", e);
3231
+ }
3232
+ return this;
3233
+ }
3234
+ _triggerRemoveEvent() {
3235
+ if (this.engine.batchMode) return this;
3236
+ if (this.engine.removedNodes?.length) {
3237
+ let e = [...this.engine.removedNodes];
3238
+ this.engine.removedNodes = [], this._triggerEvent("removed", e);
3239
+ }
3240
+ return this;
3241
+ }
3242
+ _triggerEvent(e, t) {
3243
+ let n = t ? new CustomEvent(e, {
3244
+ bubbles: !1,
3245
+ detail: t
3246
+ }) : new Event(e), r = this;
3247
+ for (; r.parentGridNode;) r = r.parentGridNode.grid;
3248
+ return r.el.dispatchEvent(n), this;
3249
+ }
3250
+ _updateContainerHeight() {
3251
+ if (!this.engine || this.engine.batchMode) return this;
3252
+ let e = this.parentGridNode, t = this.getRow() + this._extraDragRow, n = this.opts.cellHeight, r = this.opts.cellHeightUnit;
3253
+ if (!n) return this;
3254
+ if (!e && !this.opts.minRow) {
3255
+ let e = G.parseHeight(getComputedStyle(this.el).minHeight);
3256
+ if (e.h > 0 && e.unit === r) {
3257
+ let r = Math.floor(e.h / n);
3258
+ t < r && (t = r);
3259
+ }
3260
+ }
3261
+ return this.el.setAttribute("gs-current-row", String(t)), this.el.style.removeProperty("min-height"), this.el.style.removeProperty("height"), t && (e || !this._isFillCellHeight) && (this.el.style[e ? "minHeight" : "height"] = t * n + r), e && G.shouldSizeToContent(e) && e.grid.resizeToContentCBCheck(e.el), this;
3262
+ }
3263
+ _prepareElement(e, t = !1, n) {
3264
+ n ||= this._readAttr(e), e.gridstackNode = n, n.el = e, n.grid = this, n = this.engine.addNode(n, t), this._writeAttr(e, n), e.classList.add(K.itemClass, this.opts.itemClass);
3265
+ let r = G.shouldSizeToContent(n);
3266
+ return r ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), r && this.resizeToContentCheck(!1, n), (!G.lazyLoad(n) || !n.visibleObservable) && this.prepareDragDrop(n.el), this;
3267
+ }
3268
+ _writePosAttr(e, t) {
3269
+ if (!t._moving && !t._resizing || this._placeholder === e) {
3270
+ let n = this.opts.rtl ? "right" : "left", r = e.style;
3271
+ r.top = t.y ? t.y === 1 ? "var(--gs-cell-height)" : `calc(${t.y} * var(--gs-cell-height))` : null, r[n] = t.x ? t.x === 1 ? "var(--gs-column-width)" : `calc(${t.x} * var(--gs-column-width))` : null, r.width = t.w > 1 ? `calc(${t.w} * var(--gs-column-width))` : null, r.height = t.h > 1 ? `calc(${t.h} * var(--gs-cell-height))` : null;
3272
+ }
3273
+ return e.style.setProperty("--gs-x", String(t.x || 0)), e.style.setProperty("--gs-y", String(t.y || 0)), e.style.setProperty("--gs-w", String(t.w || 1)), e.style.setProperty("--gs-h", String(t.h || 1)), e.setAttribute("gs-x", String(t.x ?? 0)), e.setAttribute("gs-y", String(t.y ?? 0)), t.w > 1 ? e.setAttribute("gs-w", String(t.w)) : e.removeAttribute("gs-w"), t.h > 1 ? e.setAttribute("gs-h", String(t.h)) : e.removeAttribute("gs-h"), this;
3274
+ }
3275
+ _writeAttr(e, t) {
3276
+ if (!t) return this;
3277
+ this._writePosAttr(e, t);
3278
+ let n = {
3279
+ noResize: "gs-no-resize",
3280
+ noMove: "gs-no-move",
3281
+ locked: "gs-locked",
3282
+ id: "gs-id",
3283
+ sizeToContent: "gs-size-to-content"
3284
+ }, r = t, i = n;
3285
+ for (let t in i) r[t] !== void 0 && r[t] !== null && r[t] !== !1 ? e.setAttribute(i[t], String(r[t])) : e.removeAttribute(i[t]);
3286
+ let a = t.print;
3287
+ return a ? (a.pageBreak ? e.setAttribute("gs-page-break", String(a.pageBreak)) : e.removeAttribute("gs-page-break"), a.hide ? e.classList.add("gs-print-hide") : e.classList.remove("gs-print-hide"), a.orientation ? e.setAttribute("gs-print-orientation", String(a.orientation)) : e.removeAttribute("gs-print-orientation"), a.breakInside ? e.setAttribute("gs-break-inside", String(a.breakInside)) : e.removeAttribute("gs-break-inside")) : (e.removeAttribute("gs-page-break"), e.classList.remove("gs-print-hide"), e.removeAttribute("gs-print-orientation"), e.removeAttribute("gs-break-inside")), this;
3288
+ }
3289
+ _readAttr(e, t = !0) {
3290
+ let n = {};
3291
+ n.x = G.toNumber(e.getAttribute("gs-x")), n.y = G.toNumber(e.getAttribute("gs-y")), n.w = G.toNumber(e.getAttribute("gs-w")), n.h = G.toNumber(e.getAttribute("gs-h")), n.autoPosition = G.toBool(e.getAttribute("gs-auto-position")), n.noResize = G.toBool(e.getAttribute("gs-no-resize")), n.noMove = G.toBool(e.getAttribute("gs-no-move")), n.locked = G.toBool(e.getAttribute("gs-locked"));
3292
+ let r = e.getAttribute("gs-page-break"), i = e.classList.contains("gs-print-hide"), a = e.getAttribute("gs-print-orientation"), o = e.getAttribute("gs-break-inside");
3293
+ (r || i || a || o) && (n.print = {}, r && (n.print.pageBreak = G.toBool(r)), i && (n.print.hide = !0), a && (n.print.orientation = a), o && (n.print.breakInside = G.toBool(o)));
3294
+ let s = e.getAttribute("gs-size-to-content");
3295
+ s && (s === "true" || s === "false" ? n.sizeToContent = G.toBool(s) : n.sizeToContent = parseInt(s, 10)), n.id = e.getAttribute("gs-id") ?? void 0, n.maxW = G.toNumber(e.getAttribute("gs-max-w")), n.minW = G.toNumber(e.getAttribute("gs-min-w")), n.maxH = G.toNumber(e.getAttribute("gs-max-h")), n.minH = G.toNumber(e.getAttribute("gs-min-h")), t && (n.w === 1 && e.removeAttribute("gs-w"), n.h === 1 && e.removeAttribute("gs-h"), n.maxW && e.removeAttribute("gs-max-w"), n.minW && e.removeAttribute("gs-min-w"), n.maxH && e.removeAttribute("gs-max-h"), n.minH && e.removeAttribute("gs-min-h"));
3296
+ let c = n;
3297
+ for (let e in c) n.hasOwnProperty(e) && !c[e] && c[e] !== 0 && e !== "sizeToContent" && delete c[e];
3298
+ return n;
3299
+ }
3300
+ _setStaticClass() {
3301
+ let e = ["grid-stack-static"];
3302
+ return this.opts.staticGrid ? (this.el.classList.add(...e), this.el.setAttribute("gs-static", "true")) : (this.el.classList.remove(...e), this.el.removeAttribute("gs-static")), this;
3303
+ }
3304
+ onResize(e = this.el?.clientWidth, t = this.el?.clientHeight) {
3305
+ if (!e || e === this.prevWidth && t === this.prevHeight || e === this.prevWidth && !this._isFillCellHeight) return this;
3306
+ this.prevWidth = e, this.prevHeight = t, this.batchUpdate();
3307
+ let n = !1;
3308
+ return this._autoColumn && this.parentGridNode ? this.opts.column !== this.parentGridNode.w && (this.column(this.parentGridNode.w, this.opts.layout || "list"), n = !0) : n = this.checkDynamicColumn(), (this._isAutoCellHeight || this._isFillCellHeight) && this.cellHeight(), this.engine.nodes.forEach((e) => {
3309
+ e.subGrid && e.subGrid.onResize();
3310
+ }), this._skipInitialResize || this.resizeToContentCheck(n), delete this._skipInitialResize, this.batchUpdate(!1), this;
3311
+ }
3312
+ resizeToContentCheck(e = !1, t) {
3313
+ if (!this.engine) return;
3314
+ if (e && this.hasAnimationCSS()) {
3315
+ setTimeout(() => this.resizeToContentCheck(!1, t), this.animationDelay);
3316
+ return;
3317
+ }
3318
+ if (t) G.shouldSizeToContent(t) && this.resizeToContentCBCheck(t.el);
3319
+ else if (this.engine.nodes.some((e) => G.shouldSizeToContent(e))) {
3320
+ let e = [...this.engine.nodes];
3321
+ this.batchUpdate(), e.forEach((e) => {
3322
+ G.shouldSizeToContent(e) && this.resizeToContentCBCheck(e.el);
3323
+ }), this._ignoreLayoutsNodeChange = !0, this.batchUpdate(!1), this._ignoreLayoutsNodeChange = !1;
3324
+ }
3325
+ let n = this._gsEventHandler.resizecontent;
3326
+ n && n(new Event("resizecontent"), t ? [t] : this.engine.nodes);
3327
+ }
3328
+ _updateResizeEvent(e = !1) {
3329
+ let t = !this.parentGridNode && (this._isAutoCellHeight || this._isFillCellHeight || this.opts.sizeToContent || this.opts.columnOpts || this.engine.nodes.find((e) => e.sizeToContent));
3330
+ return !e && t && !this.resizeObserver ? (this._sizeThrottle = G.throttle(() => this.onResize(), this.opts.cellHeightThrottle), this.resizeObserver = new ResizeObserver(() => this._sizeThrottle()), this.resizeObserver.observe(this.el), this._skipInitialResize = !0) : (e || !t) && this.resizeObserver && (this.resizeObserver.disconnect(), delete this.resizeObserver, delete this._sizeThrottle), this;
3331
+ }
3332
+ static getElement(e = ".grid-stack-item") {
3333
+ return G.getElement(e);
3334
+ }
3335
+ static getElements(e = ".grid-stack-item") {
3336
+ return G.getElements(e);
3337
+ }
3338
+ static getGridElement(t) {
3339
+ return e.getElement(t);
3340
+ }
3341
+ static getGridElements(e) {
3342
+ return G.getElements(e);
3343
+ }
3344
+ _initMargin() {
3345
+ let e = {
3346
+ h: 0,
3347
+ unit: "px"
3348
+ }, t = 0, n = [];
3349
+ typeof this.opts.margin == "string" && (n = this.opts.margin.split(" ")), n.length === 2 ? (this.opts.marginTop = this.opts.marginBottom = n[0], this.opts.marginLeft = this.opts.marginRight = n[1]) : n.length === 4 ? (this.opts.marginTop = n[0], this.opts.marginRight = n[1], this.opts.marginBottom = n[2], this.opts.marginLeft = n[3]) : (e = G.parseHeight(this.opts.margin), this.opts.marginUnit = e.unit, t = this.opts.margin = e.h);
3350
+ let r = [
3351
+ "marginTop",
3352
+ "marginRight",
3353
+ "marginBottom",
3354
+ "marginLeft"
3355
+ ], i = this.opts;
3356
+ r.forEach((n) => {
3357
+ i[n] === void 0 ? i[n] = t : (e = G.parseHeight(i[n]), i[n] = e.h, delete this.opts.margin);
3358
+ }), this.opts.marginUnit = e.unit, this.opts.marginTop === this.opts.marginBottom && this.opts.marginLeft === this.opts.marginRight && this.opts.marginTop === this.opts.marginRight && (this.opts.margin = this.opts.marginTop);
3359
+ let a = this.el.style;
3360
+ return a.setProperty("--gs-item-margin-top", `${this.opts.marginTop}${this.opts.marginUnit}`), a.setProperty("--gs-item-margin-bottom", `${this.opts.marginBottom}${this.opts.marginUnit}`), a.setProperty("--gs-item-margin-right", `${this.opts.marginRight}${this.opts.marginUnit}`), a.setProperty("--gs-item-margin-left", `${this.opts.marginLeft}${this.opts.marginUnit}`), this;
3361
+ }
3362
+ static getDD() {
3363
+ return Z;
3364
+ }
3365
+ static setupDragIn(e, t, n, r = document) {
3366
+ t?.pause !== void 0 && (q.pauseDrag = t.pause), t = {
3367
+ appendTo: "body",
3368
+ helper: "clone",
3369
+ ...t || {}
3370
+ };
3371
+ let i = t.start, a = t.drag, o = t.stop, s = (e, t, n) => e.dispatchEvent(new CustomEvent(t, {
3372
+ bubbles: !0,
3373
+ detail: {
3374
+ el: e,
3375
+ ui: n
3376
+ }
3377
+ }));
3378
+ (typeof e == "string" ? G.getElements(e, r) : e).forEach((e, r) => {
3379
+ Z.isDraggable(e) || Z.dragIn(e, {
3380
+ ...t,
3381
+ start: (t, n) => {
3382
+ i?.(t, n), s(e, "dragstart", n);
3383
+ },
3384
+ drag: (t, n) => {
3385
+ a?.(t, n), s(e, "drag", n);
3386
+ },
3387
+ stop: (t) => {
3388
+ o?.(t), s(e, "dragstop");
3389
+ }
3390
+ }), n?.[r] && (e.gridstackNode = n[r]);
3391
+ });
3392
+ }
3393
+ movable(t, n) {
3394
+ return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3395
+ let t = e.gridstackNode;
3396
+ t && (n ? delete t.noMove : t.noMove = !0, this.prepareDragDrop(t.el));
3397
+ }), this;
3398
+ }
3399
+ resizable(t, n) {
3400
+ return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3401
+ let t = e.gridstackNode;
3402
+ t && (n ? delete t.noResize : t.noResize = !0, this.prepareDragDrop(t.el));
3403
+ }), this;
3404
+ }
3405
+ disable(e = !0) {
3406
+ return this.opts.staticGrid ? this : (this.enableMove(!1, e), this.enableResize(!1, e), this._triggerEvent("disable"), this);
3407
+ }
3408
+ enable(e = !0) {
3409
+ return this.opts.staticGrid ? this : (this.enableMove(!0, e), this.enableResize(!0, e), this._triggerEvent("enable"), this);
3410
+ }
3411
+ enableMove(e, t = !0) {
3412
+ return this.opts.staticGrid ? this : (e ? delete this.opts.disableDrag : this.opts.disableDrag = !0, this.engine.nodes.forEach((n) => {
3413
+ this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableMove(e, t);
3414
+ }), this);
3415
+ }
3416
+ enableResize(e, t = !0) {
3417
+ return this.opts.staticGrid ? this : (e ? delete this.opts.disableResize : this.opts.disableResize = !0, this.engine.nodes.forEach((n) => {
3418
+ this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableResize(e, t);
3419
+ }), this);
3420
+ }
3421
+ cancelDrag() {
3422
+ let t = q.dragElement?.el;
3423
+ if (t?._gridstackNodeOrig) {
3424
+ let e = t._gridstackNodeOrig, n = e.grid, r = this._placeholder?.gridstackNode;
3425
+ r && (r._isAboutToRemove = !0, this.engine.removeNode(r)), this.engine.restoreInitial(), t.gridstackNode = e, delete t._gridstackNodeOrig, delete q.dropElement, n && (n.engine.addNode(e, !1), n.engine.restoreInitial());
3426
+ return;
3427
+ }
3428
+ let n = this._placeholder?.gridstackNode;
3429
+ n && (n._isExternal ? (n._isAboutToRemove = !0, this.engine.removeNode(n)) : n._isAboutToRemove && e._itemRemoving(n.el, !1), this.engine.restoreInitial());
3430
+ }
3431
+ _removeDD(e) {
3432
+ return Z.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
3433
+ }
3434
+ _setupAcceptWidget() {
3435
+ if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable) return Z.droppable(this.el, "destroy"), this;
3436
+ let t, n, r = (e, r, i) => {
3437
+ i ||= r;
3438
+ let a = i.gridstackNode;
3439
+ if (!a) return;
3440
+ if (!a.grid?.el) {
3441
+ i.style.transform = `scale(${1 / this.dragTransform.xScale},${1 / this.dragTransform.yScale})`;
3442
+ let t = i.getBoundingClientRect();
3443
+ i.style.left = t.x + (this.dragTransform.xScale - 1) * (e.clientX - t.x) / this.dragTransform.xScale + "px", i.style.top = t.y + (this.dragTransform.yScale - 1) * (e.clientY - t.y) / this.dragTransform.yScale + "px", i.style.transformOrigin = "0px 0px";
3444
+ }
3445
+ let { top: o, left: s } = i.getBoundingClientRect(), c = this.el.getBoundingClientRect();
3446
+ s -= c.left, o -= c.top;
3447
+ let l = { position: {
3448
+ top: o * this.dragTransform.xScale,
3449
+ left: s * this.dragTransform.yScale
3450
+ } };
3451
+ if (a._temporaryRemoved) {
3452
+ if (a.x = Math.max(0, Math.round(s / n)), a.y = Math.max(0, Math.round(o / t)), delete a.autoPosition, this.engine.nodeBoundFix(a), !this.engine.willItFit(a)) {
3453
+ if (a.autoPosition = !0, !this.engine.willItFit(a)) {
3454
+ Z.off(r, "drag");
3455
+ return;
3456
+ }
3457
+ a._willFitPos && (G.copyPos(a, a._willFitPos), delete a._willFitPos);
3458
+ }
3459
+ this._onStartMoving(i, e, l, a, n, t);
3460
+ } else this._dragOrResize(i, e, l, a, n, t);
3461
+ };
3462
+ return Z.droppable(this.el, { accept: (e) => {
3463
+ let t = e.gridstackNode || this._readAttr(e, !1);
3464
+ if (t?.grid === this) return !0;
3465
+ if (!this.opts.acceptWidgets) return !1;
3466
+ let n = !0;
3467
+ if (typeof this.opts.acceptWidgets == "function") n = this.opts.acceptWidgets(e);
3468
+ else {
3469
+ let t = this.opts.acceptWidgets === !0 ? ".grid-stack-item" : this.opts.acceptWidgets;
3470
+ n = e.matches(t);
3471
+ }
3472
+ if (n && t && this.opts.maxRow) {
3473
+ let e = {
3474
+ w: t.w,
3475
+ h: t.h,
3476
+ minW: t.minW,
3477
+ minH: t.minH
3478
+ };
3479
+ n = this.engine.willItFit(e);
3480
+ }
3481
+ return n;
3482
+ } }).on(this.el, "dropover", (i, a, o) => {
3483
+ let s = o?.gridstackNode || a.gridstackNode;
3484
+ if (s?.grid === this && !s._temporaryRemoved) return !1;
3485
+ if (s?._sidebarOrig && (s.w = s._sidebarOrig.w, s.h = s._sidebarOrig.h), s?.grid && s.grid !== this && !s._temporaryRemoved && s.grid._leave(a, o), o ||= a, n = this.cellWidth(), t = this.getCellHeight(!0), !s) {
3486
+ let e = o.getAttribute("data-gs-widget") || o.getAttribute("gridstacknode");
3487
+ if (e) {
3488
+ try {
3489
+ s = JSON.parse(e);
3490
+ } catch {
3491
+ console.error("Gridstack dropover: Bad JSON format: ", e);
3492
+ }
3493
+ o.removeAttribute("data-gs-widget"), o.removeAttribute("gridstacknode");
3494
+ }
3495
+ s ||= this._readAttr(o), s._sidebarOrig = {
3496
+ w: s.w,
3497
+ h: s.h
3498
+ };
3499
+ }
3500
+ s.grid || (s.el || (s = { ...s }), s._isExternal = !0, o.gridstackNode = s);
3501
+ let c = s.w || Math.round(o.offsetWidth / n) || 1, l = s.h || Math.round(o.offsetHeight / t) || 1;
3502
+ return s.grid && s.grid !== this ? (a._gridstackNodeOrig ||= s, a.gridstackNode = s = {
3503
+ ...s,
3504
+ w: c,
3505
+ h: l,
3506
+ grid: this
3507
+ }, delete s.x, delete s.y, this.engine.cleanupNode(s).nodeBoundFix(s), s._initDD = s._isExternal = s._temporaryRemoved = !0) : (s.w = c, s.h = l, s._temporaryRemoved = !0), e._itemRemoving(s.el, !1), Z.on(a, "drag", r), r(i, a, o), !1;
3508
+ }).on(this.el, "dropout", (e, t, n) => {
3509
+ let r = n?.gridstackNode || t.gridstackNode;
3510
+ return r && (!r.grid || r.grid === this) && (this._leave(t, n), this._isTemp && this.removeAsSubGrid(r)), !1;
3511
+ }).on(this.el, "drop", (t, n, r) => {
3512
+ let i = r?.gridstackNode || n.gridstackNode;
3513
+ if (i?.grid === this && !i._isExternal) return !1;
3514
+ let a = !!this.placeholder.parentElement, o = n !== r;
3515
+ this.placeholder.remove(), delete this.placeholder.gridstackNode, a && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
3516
+ let s = n._gridstackNodeOrig;
3517
+ if (delete n._gridstackNodeOrig, a && s?.grid && s.grid !== this) {
3518
+ let e = s.grid;
3519
+ e.engine.removeNodeFromLayoutCache(s), e.engine.removedNodes.push(s), e._triggerRemoveEvent()._triggerChangeEvent(), e.parentGridNode && !e.engine.nodes.length && e.opts.subGridDynamic && e.removeAsSubGrid();
3520
+ }
3521
+ if (!i || (a && (this.engine.cleanupNode(i), i.grid = this), delete i.grid?._isTemp, Z.off(n, "drag"), r && r !== n ? (r.remove(), n = r) : n.remove(), this._removeDD(n), !a)) return !1;
3522
+ let c = i.subGrid?.el?.gridstack;
3523
+ return G.copyPos(i, this._readAttr(this.placeholder)), G.removePositioningStyles(n), o && (i.content || i.subGridOpts || e.addRemoveCB) ? (delete i.el, n = this.addWidget(i) || n) : (this._prepareElement(n, !0, i), this.el.appendChild(n), this.resizeToContentCheck(!1, i), c && (c.parentGridNode = i), this._updateContainerHeight()), this.engine.addedNodes.push(i), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({
3524
+ ...t,
3525
+ type: "dropped"
3526
+ }, s && s.grid ? s : void 0, i), !1;
3527
+ }), this;
3528
+ }
3529
+ static _itemRemoving(e, t) {
3530
+ if (!e) return;
3531
+ let n = e ? e.gridstackNode : void 0;
3532
+ !n?.grid || e.classList.contains(n.grid.opts.removableOptions.decline) || (t ? n._isAboutToRemove = !0 : delete n._isAboutToRemove, t ? e.classList.add("grid-stack-item-removing") : e.classList.remove("grid-stack-item-removing"));
3533
+ }
3534
+ _setupRemoveDrop() {
3535
+ if (typeof this.opts.removable != "string") return this;
3536
+ let t = document.querySelector(this.opts.removable);
3537
+ return t && !this.opts.staticGrid && !Z.isDroppable(t) && Z.droppable(t, this.opts.removableOptions).on(t, "dropover", (t, n) => e._itemRemoving(n, !0)).on(t, "dropout", (t, n) => e._itemRemoving(n, !1)), this;
3538
+ }
3539
+ refreshDragHandles(t) {
3540
+ return e.getElements(t).forEach((e) => {
3541
+ e.ddElement?.ddDraggable?.refreshHandles();
3542
+ }), this;
3543
+ }
3544
+ prepareDragDrop(e, t = !1) {
3545
+ let n = e?.gridstackNode;
3546
+ if (!n) return this;
3547
+ let r = n.noMove || this.opts.disableDrag, i = n.noResize || this.opts.disableResize, a = this.opts.staticGrid || r && i;
3548
+ if ((t || a) && (n._initDD && (this._removeDD(e), delete n._initDD), a)) return e.classList.add("ui-draggable-disabled", "ui-resizable-disabled"), this;
3549
+ if (!n._initDD) {
3550
+ let t, r, i = (i, a) => {
3551
+ this.triggerEvent(i, i.target), t = this.cellWidth(), r = this.getCellHeight(!0), this._onStartMoving(e, i, a, n, t, r);
3552
+ }, a = (i, a) => {
3553
+ this._dragOrResize(e, i, a, n, t, r);
3554
+ }, o = (t) => {
3555
+ this.placeholder.remove(), delete this.placeholder.gridstackNode, delete n._moving, delete n._resizing, delete n._event, delete n._lastTried;
3556
+ let r = !!n._orig && n.w !== n._orig.w, i = t.target;
3557
+ if (!(!i.gridstackNode || i.gridstackNode.grid !== this)) {
3558
+ if (n.el = i, n._isAboutToRemove) {
3559
+ let r = e.gridstackNode.grid;
3560
+ r._gsEventHandler[t.type] && r._gsEventHandler[t.type](t, i), r.engine.nodes.push(n), r.removeWidget(e, !0, !0);
3561
+ } else G.removePositioningStyles(i), n._temporaryRemoved ? (this._writePosAttr(i, n), this.engine.addNode(n)) : this._writePosAttr(i, n), this.triggerEvent(t, i);
3562
+ this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), t.type === "resizestop" && (Number.isInteger(n.sizeToContent) && (n.sizeToContent = n.h), this.resizeToContentCheck(r, n));
3563
+ }
3564
+ };
3565
+ Z.draggable(e, {
3566
+ start: i,
3567
+ stop: o,
3568
+ drag: a,
3569
+ rtl: this.opts.rtl === "auto" ? void 0 : this.opts.rtl
3570
+ }).resizable(e, {
3571
+ start: i,
3572
+ stop: o,
3573
+ resize: a,
3574
+ rtl: this.opts.rtl === "auto" ? void 0 : this.opts.rtl
3575
+ }), n._initDD = !0;
3576
+ }
3577
+ return Z.draggable(e, r ? "disable" : "enable").resizable(e, i ? "disable" : "enable"), this;
3578
+ }
3579
+ _onStartMoving(e, t, n, r, i, a) {
3580
+ if (this.engine.cleanNodes().beginUpdate(r), this._writePosAttr(this.placeholder, r), this.el.appendChild(this.placeholder), this.placeholder.gridstackNode = r, r.grid?.el) this.dragTransform = G.getValuesFromTransformedElement(e);
3581
+ else if (this.placeholder && this.placeholder.closest(".grid-stack")) {
3582
+ let e = this.placeholder.closest(".grid-stack");
3583
+ this.dragTransform = G.getValuesFromTransformedElement(e);
3584
+ } else this.dragTransform = {
3585
+ xScale: 1,
3586
+ xOffset: 0,
3587
+ yScale: 1,
3588
+ yOffset: 0
3589
+ };
3590
+ if (r.el = this.placeholder, r._lastUiPosition = n.position, r._prevYPix = n.position.top, r._moving = t.type === "dragstart", r._resizing = t.type === "resizestart", delete r._lastTried, t.type === "dropover" && r._temporaryRemoved && (this.engine.addNode(r), r._moving = !0), this.engine.cacheRects(i, a, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
3591
+ let t = this.getColumn() - r.x, n = (this.opts.maxRow || 2 ** 53 - 1) - r.y;
3592
+ Z.resizable(e, "option", "minWidth", i * Math.min(r.minW || 1, t)).resizable(e, "option", "minHeight", a * Math.min(r.minH || 1, n)).resizable(e, "option", "maxWidth", i * Math.min(r.maxW || 2 ** 53 - 1, t)).resizable(e, "option", "maxWidthMoveLeft", i * Math.min(r.maxW || 2 ** 53 - 1, r.x + r.w)).resizable(e, "option", "maxHeight", a * Math.min(r.maxH || 2 ** 53 - 1, n)).resizable(e, "option", "maxHeightMoveUp", a * Math.min(r.maxH || 2 ** 53 - 1, r.y + r.h));
3593
+ }
3594
+ }
3595
+ _dragOrResize(e, t, n, r, i, a) {
3596
+ let o = { ...r._orig }, s = !1, c = this.opts.marginLeft, l = this.opts.marginRight, u = this.opts.marginTop, d = this.opts.marginBottom, f = Math.round(a * .1), p = Math.round(i * .1);
3597
+ if (c = Math.min(c, p), l = Math.min(l, p), u = Math.min(u, f), d = Math.min(d, f), t.type === "drag") {
3598
+ if (r._temporaryRemoved) return;
3599
+ r._prevYPix = n.position.top, this.opts.draggable.scroll !== !1 && q.dragElement?.updateScrollPosition(this.el);
3600
+ let e = n.position.left + (n.position.left > r._lastUiPosition.left ? -l : c), t = n.position.top + (n.position.top > r._lastUiPosition.top ? -d : u);
3601
+ o.x = Math.round(e / i), o.y = Math.round(t / a);
3602
+ let s = this._extraDragRow;
3603
+ if (this.engine.collide(r, o)) {
3604
+ let e = this.getRow(), t = Math.max(0, o.y + r.h - e);
3605
+ this.opts.maxRow && e + t > this.opts.maxRow && (t = Math.max(0, this.opts.maxRow - e)), this._extraDragRow = t;
3606
+ } else this._extraDragRow = 0;
3607
+ if (this._extraDragRow !== s && this._updateContainerHeight(), r.x === o.x && r.y === o.y) return;
3608
+ } else if (t.type === "resize") {
3609
+ if ((o.x ?? 0) < 0 || (G.updateScrollResize(t, e, a), o.w = Math.round((n.size.width - c) / i), o.h = Math.round((n.size.height - u) / a), r.w === o.w && r.h === o.h) || r._lastTried && r._lastTried.w === o.w && r._lastTried.h === o.h) return;
3610
+ if (t.hasMovedX) {
3611
+ let e = r.x - (o.w - r.w);
3612
+ o.x = e < 0 ? 0 : e;
3613
+ }
3614
+ if (t.hasMovedY) {
3615
+ let e = r.y - (o.h - r.h);
3616
+ o.y = e < 0 ? 0 : e;
3617
+ }
3618
+ s = !0;
3619
+ }
3620
+ r._event = t, r._lastTried = o;
3621
+ let m = {
3622
+ x: n.position.left + c,
3623
+ y: n.position.top + u,
3624
+ w: (n.size ? n.size.width : r.w * i) - c - l,
3625
+ h: (n.size ? n.size.height : r.h * a) - u - d
3626
+ };
3627
+ if (this.engine.moveNodeCheck(r, {
3628
+ ...o,
3629
+ cellWidth: i,
3630
+ cellHeight: a,
3631
+ rect: m,
3632
+ resizing: s
3633
+ })) {
3634
+ r._lastUiPosition = n.position, this.engine.cacheRects(i, a, u, l, d, c), delete r._skipDown, s && r.subGrid && r.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
3635
+ let e = t.target;
3636
+ r._sidebarOrig || this._writePosAttr(e, r), this.triggerEvent(t, e);
3637
+ }
3638
+ }
3639
+ triggerEvent(e, t) {
3640
+ let n = this;
3641
+ for (; n.parentGridNode;) n = n.parentGridNode.grid;
3642
+ n._gsEventHandler[e.type] && n._gsEventHandler[e.type](e, t);
3643
+ }
3644
+ _leave(t, n) {
3645
+ n ||= t;
3646
+ let r = n.gridstackNode;
3647
+ if (!r || (n.style.transform = n.style.transformOrigin = "", Z.off(t, "drag"), r._temporaryRemoved)) return;
3648
+ r._temporaryRemoved = !0, this.engine.removeNode(r), r.el = r._isExternal && n ? n : t;
3649
+ let i = r._sidebarOrig;
3650
+ r._isExternal && this.engine.cleanupNode(r), r._sidebarOrig = i, this.opts.removable === !0 && e._itemRemoving(t, !0), t._gridstackNodeOrig ? (t.gridstackNode = t._gridstackNodeOrig, delete t._gridstackNodeOrig) : r._isExternal && this.engine.restoreInitial();
3651
+ }
3652
+ };
3653
+ Q.renderCB = (e, t) => {
3654
+ e && t?.content && (e.textContent = t.content);
3655
+ }, Q.resizeToContentParent = ".grid-stack-item-content", Q.Utils = G, Q.Engine = yn, Q.GDRev = "14.0.0";
3656
+ //#endregion
3657
+ //#region src/components/item-grid/helpers/grid-stack-lifecycle.ts
3658
+ var Vn = ({ gridElement: e, gridItemElements: t, items: n, columns: r, rowHeight: i, viewMode: a, fullTheme: o, onCreateOrUpdateDimensionsHint: s, onRemoveDimensionsHint: c, onChange: l }) => {
3659
+ let [u, d] = cn(o), f = {
3660
+ column: r,
3661
+ cellHeight: i,
3662
+ marginTop: u,
3663
+ marginLeft: d,
3664
+ marginRight: d,
3665
+ marginBottom: u,
3666
+ animate: !0,
3667
+ auto: !1,
3668
+ mode: "top",
3669
+ removable: !1,
3670
+ acceptWidgets: !0,
3671
+ disableDrag: a,
3672
+ disableResize: a,
3673
+ minRow: 1,
3674
+ resizable: { handles: [
3675
+ "n",
3676
+ "ne",
3677
+ "e",
3678
+ "se",
3679
+ "s",
3680
+ "sw",
3681
+ "w",
3682
+ "nw"
3683
+ ].join(", ") },
3684
+ handle: ".grid-item-drag-handle"
3685
+ }, p = Q.init(f, e);
3686
+ if (!p) throw Error("GridStack.init() returned no grid");
3687
+ return p._sortDom = () => p, p.batchUpdate(), t.forEach((e) => {
3688
+ let t = e.getAttribute("luzmo-item-grid-item-id"), r = ye(n.find((e) => e.id === t), t ?? void 0);
3689
+ p.makeWidget(e, r);
3690
+ }), p.batchUpdate(!1), p.on("resizestart", (e, t) => {
3691
+ s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3692
+ }), p.on("resize", (e, t) => {
3693
+ s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3694
+ }), p.on("resizestop", (e, t) => {
3695
+ c(t);
3696
+ }), p.on("change", (e, t) => {
3697
+ l(t);
3698
+ }), p;
3699
+ }, Hn = (e, t) => {
3700
+ let n = new Map(t.filter((e) => e.id).map((e) => [e.id, e]));
3701
+ return e.map((e) => {
3702
+ let t = e.id ? n.get(e.id) : void 0;
3703
+ return t ? {
3704
+ ...e,
3705
+ position: {
3706
+ sizeX: t.w ?? 1,
3707
+ sizeY: t.h ?? 1,
3708
+ row: t.y ?? 0,
3709
+ col: t.x ?? 0
3710
+ }
3711
+ } : e;
3712
+ });
3713
+ }, Un = ({ element: e, numberOfColumns: t, numberOfRows: n, offsetHint: r }) => {
3714
+ let i = e.querySelector(".dimensions-hint-popover");
3715
+ if (i) {
3716
+ i.style.display = t.length > 0 && n.length > 0 ? "block" : "none", i.textContent = `${t} × ${n}`;
3717
+ return;
3718
+ }
3719
+ let a = document.createElement("div");
3720
+ a.className = "dimensions-hint-popover", a.setAttribute("popover", "hint"), a.style.display = t.length > 0 && n.length > 0 ? "block" : "none", a.textContent = `${t} × ${n}`, e.append(a), Yt(a, Wt(e, a, async () => {
3721
+ let { x: t, y: n } = await qt(e, a, {
3722
+ placement: "bottom",
3723
+ middleware: [Gt(r), Kt()]
3724
+ });
3725
+ a.style.left = `${t}px`, a.style.top = `${n}px`;
3726
+ })), a.matches(":popover-open") || a.showPopover();
3727
+ }, Wn = (e) => {
3728
+ let t = e.querySelector(".dimensions-hint-popover");
3729
+ t && (Xt(t), t.matches(":popover-open") && t.hidePopover(), t.remove());
3730
+ }, Gn = ({ initialized: e, grid: t, hasItemsChanged: n, gridItemElements: r, items: i }) => {
3731
+ !e || !t || !n || (t.setAnimation(!1), t.batchUpdate(), t.removeAll(!1), i.forEach((e) => {
3732
+ let n = xe(r, e.id);
3733
+ n && t.makeWidget(n, ye(e, e.id));
3734
+ }), t.batchUpdate(!1), t.setAnimation(!0));
3735
+ }, Kn = ({ initialized: e, grid: t, hasViewModeChanged: n, viewMode: r, previousViewMode: i, activeItemElement: a, gridElement: o, cleanupActiveItem: s }) => {
3736
+ if (!e || !t || !n || r === i) return a;
3737
+ if (r) {
3738
+ if (t.disable(), a) {
3739
+ s(a), o.removeAttribute("has-active-item");
3740
+ return;
3741
+ }
3742
+ return a;
3743
+ }
3744
+ return t.enable(), a;
3745
+ }, qn = ":host{width:100%;display:block}.grid-stack{width:100%;min-height:var(--luzmo-item-grid-min-height);background:var(--luzmo-item-grid-background,var(--grid-background,var(--luzmo-background-color)));position:relative}.grid-stack[has-active-item] .grid-stack-item:not([active])>.grid-stack-item-content,.grid-stack[has-active-item] .grid-stack-item:not([active])>.grid-item-actions-popover{opacity:.5}.grid-stack .grid-stack-item[active]>.ui-resizable-handle,.grid-stack .grid-stack-item[active].ui-resizable-autohide>.ui-resizable-handle{display:block}.grid-stack .grid-stack-item.ui-resizable-resizing,.grid-stack .grid-stack-item.ui-resizable-resizing>.grid-stack-item-content{opacity:var(--luzmo-item-grid-item-resizing-opacity,.8)!important}.grid-item-drag-handle{color:var(--luzmo-item-grid-item-drag-handle-color,#000);top:var(--luzmo-item-grid-item-drag-handle-position-top,0);left:var(--luzmo-item-grid-item-drag-handle-position-left,0);right:var(--luzmo-item-grid-item-drag-handle-position-right,auto);bottom:var(--luzmo-item-grid-item-drag-handle-position-bottom,auto);padding:var(--luzmo-item-grid-item-drag-handle-padding,.5rem);z-index:var(--luzmo-item-grid-item-drag-handle-z-index,3);cursor:var(--luzmo-item-grid-item-drag-handle-cursor,move);position:absolute}.grid-stack[dark-background] .grid-item-drag-handle{color:var(--luzmo-item-grid-item-drag-handle-color,#fff)}.grid-stack .grid-stack-item .grid-stack-item-content{border-radius:var(--luzmo-item-grid-item-border-radius,var(--grid-item-border-radius,4px));background:var(--luzmo-item-grid-item-background,var(--grid-item-background,transparent));box-shadow:var(--luzmo-item-grid-item-box-shadow,var(--grid-item-box-shadow,none));border-style:var(--luzmo-item-grid-item-border-style,none);border-color:var(--luzmo-item-grid-item-border-color,transparent);-webkit-backdrop-filter:var(--luzmo-item-grid-item-backdrop-filter,none);backdrop-filter:var(--luzmo-item-grid-item-backdrop-filter,none);overflow:hidden}.grid-stack .grid-stack-item:not(.has-luzmo-viz-item) .grid-stack-item-content{border-style:var(--luzmo-item-grid-item-border-style,var(--grid-item-border-style,none));border-color:var(--luzmo-item-grid-item-border-color,var(--grid-item-border-color,transparent));border-width:var(--luzmo-item-grid-item-border-width,var(--grid-item-border-width,0));border-top-width:var(--luzmo-item-grid-item-border-top-width,var(--grid-item-border-top-width,0));border-right-width:var(--luzmo-item-grid-item-border-right-width,var(--grid-item-border-right-width,0));border-bottom-width:var(--luzmo-item-grid-item-border-bottom-width,var(--grid-item-border-bottom-width,0));border-left-width:var(--luzmo-item-grid-item-border-left-width,var(--grid-item-border-left-width,0))}.grid-stack .grid-stack-placeholder>.placeholder-content{border-radius:var(--grid-item-border-radius,4px)}:host .grid-stack-item[active]>.ui-resizable-handle,:host .grid-stack-item:hover>.ui-resizable-handle{z-index:var(--luzmo-item-grid-resize-handle-z-index,100);background:var(--luzmo-item-grid-resize-handle-background,#fff);border-radius:var(--luzmo-item-grid-resize-handle-border-radius,3px);opacity:var(--luzmo-item-grid-resize-handle-opacity,0);transition:var(--luzmo-item-grid-resize-handle-transition,opacity .2s ease);box-shadow:0 0 6px #0000001a,0 0 2px #000000bf;display:block!important;position:absolute!important}:host .grid-stack[dark-background]>.grid-stack-item[active]>.ui-resizable-handle,:host .grid-stack[dark-background]>.grid-stack-item:hover>.ui-resizable-handle{background:var(--luzmo-item-grid-resize-handle-background,#333);box-shadow:0 0 6px #ffffff1a,0 0 2px #ffffffbf}:host .grid-stack-item[active]>.ui-resizable-handle,:host .grid-stack-item:hover>.ui-resizable-handle{opacity:var(--luzmo-item-grid-resize-handle-opacity-hover,1)}:host .grid-stack-item>.ui-resizable-handle:hover{opacity:var(--luzmo-item-grid-resize-handle-opacity-active,1);background:var(--luzmo-item-grid-resize-handle-background-hover,var(--luzmo-background-color-highlight))}:host .grid-stack-item>.ui-resizable-n,:host .grid-stack-item>.ui-resizable-s{height:var(--luzmo-item-grid-resize-handle-edge-size,8px);width:var(--luzmo-item-grid-resize-handle-side-size,18px);left:calc(50% - var(--luzmo-item-grid-resize-handle-side-size,18px) / 2)}:host .grid-stack-item>.ui-resizable-n{cursor:n-resize;top:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-top,0px))}:host .grid-stack-item>.ui-resizable-s{cursor:s-resize;bottom:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-bottom,0px))}:host .grid-stack-item>.ui-resizable-e,:host .grid-stack-item>.ui-resizable-w{width:var(--luzmo-item-grid-resize-handle-edge-size,8px);height:var(--luzmo-item-grid-resize-handle-side-size,18px);top:calc(50% - var(--luzmo-item-grid-resize-handle-side-size,18px) / 2)}:host .grid-stack-item>.ui-resizable-e{cursor:e-resize;right:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-right,0px))}:host .grid-stack-item>.ui-resizable-w{cursor:w-resize;left:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-4px) + var(--gs-item-margin-left,0px))}:host .grid-stack-item>.ui-resizable-ne,:host .grid-stack-item>.ui-resizable-nw,:host .grid-stack-item>.ui-resizable-se,:host .grid-stack-item>.ui-resizable-sw{width:var(--luzmo-item-grid-resize-handle-corner-size,12px);height:var(--luzmo-item-grid-resize-handle-corner-size,12px);background-image:none;transform:none}:host .grid-stack-item>.ui-resizable-ne{cursor:ne-resize;top:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-top,0px));right:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-right,0px))}:host .grid-stack-item>.ui-resizable-nw{cursor:nw-resize;top:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-top,0px));left:calc(var(--luzmo-item-grid-resize-handle-edge-offset,-6px) + var(--gs-item-margin-left,0px))}:host .grid-stack-item>.ui-resizable-se{cursor:se-resize;right:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-right,0px));bottom:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-bottom,0px))}:host .grid-stack-item>.ui-resizable-sw{cursor:sw-resize;left:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-left,0px));bottom:calc(var(--luzmo-item-grid-resize-handle-corner-offset,-4px) + var(--gs-item-margin-bottom,0px))}:host .grid-stack-item>.ui-resizable-resizing .ui-resizable-handle{background:var(--luzmo-item-grid-resize-handle-background-active,var(--luzmo-background-color-highlight));opacity:1!important}.grid-item-actions-popover{z-index:2;background:0 0;border:none;outline:none;margin:0;padding:0;position:absolute;overflow:visible}.grid-item-actions-popover:not([popover]){z-index:var(--luzmo-item-grid-item-actions-in-tree-z-index,50);position:fixed}luzmo-item-grid-item-actions-menu{padding:var(--luzmo-item-grid-item-actions-padding,var(--grid-item-actions-padding))}.dimensions-hint-popover{font-size:var(--luzmo-item-grid-item-dimensions-hint-font-size,var(--luzmo-font-size-xs,10px));font-family:var(--luzmo-item-grid-item-dimensions-hint-font-family,var(--luzmo-font-family,inherit));border-width:var(--luzmo-item-grid-item-dimensions-hint-border-width,var(--luzmo-border-width));border-style:solid;border-color:var(--luzmo-item-grid-item-dimensions-hint-border-color,var(--luzmo-border-color));border-radius:var(--luzmo-item-grid-item-dimensions-hint-border-radius,var(--luzmo-border-radius));padding:var(--luzmo-item-grid-item-dimensions-hint-padding,var(--luzmo-spacing-1) var(--luzmo-spacing-2));z-index:3;background:var(--luzmo-item-grid-item-dimensions-hint-background,var(--luzmo-background-color));color:var(--luzmo-item-grid-item-dimensions-hint-color,var(--luzmo-font-color));pointer-events:none;outline:none;margin:0;position:absolute;overflow:visible}luzmo-item-grid-item-actions-menu{--grid-item-actions-padding:0 .75rem}luzmo-item-grid-item-actions-menu[placement=top-start],luzmo-item-grid-item-actions-menu[placement=top],luzmo-item-grid-item-actions-menu[placement=top-end],luzmo-item-grid-item-actions-menu[placement=bottom-start],luzmo-item-grid-item-actions-menu[placement=bottom],luzmo-item-grid-item-actions-menu[placement=bottom-end]{--grid-item-actions-padding:.75rem 0}.grid-stack-item:focus-visible{outline:none}.grid-stack-item:focus-visible .grid-stack-item-content:after{content:\"\";border:var(--luzmo-indicator-width) solid var(--luzmo-indicator-color,var(--luzmo-primary));box-sizing:border-box;border-radius:var(--luzmo-item-grid-item-border-radius,var(--grid-item-border-radius,4px));z-index:2;width:100%;height:100%;position:absolute;top:0;left:0}", $ = class extends te {
3746
+ constructor(...e) {
3747
+ super(...e), this.appServer = "https://app.luzmo.com/", this.apiHost = "https://api.luzmo.com", this.language = "en", this.contentLanguage = "en", this.columns = 48, this.rowHeight = 16, this.viewMode = !1, this.itemActionsDocumentPopover = !0, this.placementItemActionsMenu = "right-start", this.clonedItemPositioning = "below-item", this._items = [], this._hasControlledItems = !1, this._initialItems = [], this.renderers = {}, this._initialized = !1, this.defaultRenderer = (e) => h`
3748
+ <div class="grid-item-content">
3749
+ <div class="grid-item-type">${e.type}</div>
3750
+ </div>
3751
+ `, this._internalItemStates = {}, this._initialItemStatesApplied = !1, this._internalItems = [], this._initialItemsApplied = !1, this._hasWarnedControlledAndInitialItems = !1, this._hasWarnedIgnoredInitialItems = !1, this._suppressItemStatesEvent = !1, this._suppressNextLayoutChangedEvent = !1, this._hasWarnedControlledAndInitialStates = !1, this._internalItemsVersion = 0, this._handleMouseout = (e) => {
3752
+ if (this.viewMode) return;
3753
+ let t = se(e.target);
3754
+ t && ce({
3755
+ event: e,
3756
+ gridItem: t
3757
+ }) && this._removeItemActionsMenuPopover(t);
3758
+ }, this._handleKeyDown = (e) => {
3759
+ let t = tn({
3760
+ event: e,
3761
+ viewMode: this.viewMode,
3762
+ focusedItemElement: this._focusedItemElement,
3763
+ activeItemElement: this._activeItemElement,
3764
+ gridElement: this._gridElement,
3765
+ grid: this._grid,
3766
+ columns: this.columns ?? 48,
3767
+ onDeleteRequest: (e) => {
3768
+ let t = e.getAttribute("gs-id");
3769
+ if (!t) return;
3770
+ let n = this._effectiveItems, r = n.find((e) => e.id === t);
3771
+ if (!r) return;
3772
+ this._isControlled || this._clearGridItemUiStateForDelete(e);
3773
+ let i = n.filter((e) => e.id !== t);
3774
+ T({
3775
+ target: this,
3776
+ action: "delete",
3777
+ actionType: "button",
3778
+ active: !1,
3779
+ items: n,
3780
+ element: e,
3781
+ itemId: t,
3782
+ item: r,
3783
+ updatedItems: i
3784
+ }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3785
+ },
3786
+ removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
3787
+ createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3788
+ });
3789
+ this._focusedItemElement = t.focusedItemElement, this._activeItemElement = t.activeItemElement;
3790
+ }, this._handleFocus = (e) => {
3791
+ this._focusedItemElement = le({
3792
+ event: e,
3793
+ focusedItemElement: this._focusedItemElement,
3794
+ removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3795
+ });
3796
+ }, this._handleBlur = (e) => {
3797
+ let t = ue({
3798
+ event: e,
3799
+ focusedItemElement: this._focusedItemElement,
3800
+ removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3801
+ });
3802
+ this._focusedItemElement = t.focusedItemElement, t.shouldFocusGrid && this._gridElement.focus();
3803
+ }, this._handleGridClick = (e) => {
3804
+ if (this._isControlled) {
3805
+ this._emitControlledClickAwayDeactivation(e);
3806
+ return;
3807
+ }
3808
+ let t = pe({
3809
+ event: e,
3810
+ gridElement: this._gridElement,
3811
+ hostElement: this,
3812
+ items: this.items,
3813
+ activeItemActionToggle: this._activeItemActionToggle,
3814
+ cleanupActiveItem: this._cleanupActiveItem.bind(this),
3815
+ dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
3816
+ });
3817
+ this._activeItemActionToggle = t.activeItemActionToggle;
3818
+ }, this._handleAction = (e) => {
3819
+ let t = e.detail, r = e.target?.closest(".grid-stack-item"), i = r?.getAttribute("gs-id");
3820
+ if (["delete", "clone"].includes(t.action)) {
3821
+ if (e.stopPropagation(), !i) return;
3822
+ let a = this._effectiveItems, o = a.find((e) => e.id === i);
3823
+ if (!o) return;
3824
+ let s = this._gridElement.querySelector(".grid-stack-item[active]") ?? this._activeItemElement;
3825
+ if (!this._isControlled && s && s !== r) {
3826
+ let e = s.getAttribute("gs-id"), t = a.find((t) => t.id === e), n = this._activeItemActionToggle, r = s;
3827
+ this._cleanupActiveItem(s), n && e && t && this._dispatchItemActionEvent(n, "toggle", !1, r, e, t), this._activeItemElement = void 0, this._activeItemActionToggle = void 0, this._internalItemStates = {};
3828
+ }
3829
+ if (t.action === "delete") {
3830
+ this._isControlled || this._clearGridItemUiStateForDelete(r);
3831
+ let e = a.filter((e) => e.id !== i);
3832
+ T({
3833
+ target: this,
3834
+ action: "delete",
3835
+ actionType: t.type,
3836
+ active: t.active,
3837
+ items: a,
3838
+ element: r,
3839
+ itemId: i,
3840
+ item: o,
3841
+ updatedItems: e
3842
+ }), this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 });
3843
+ } else {
3844
+ let e = {
3845
+ ...structuredClone(o),
3846
+ id: n()
3847
+ }, i = this._simulateCloneLayout(e, o), s = i.find((t) => t.id === e.id) ?? e;
3848
+ T({
3849
+ target: this,
3850
+ action: "clone",
3851
+ actionType: t.type,
3852
+ active: t.active,
3853
+ items: a,
3854
+ element: r,
3855
+ itemId: e.id,
3856
+ item: s,
3857
+ originalElement: r,
3858
+ updatedItems: i
3859
+ }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3860
+ }
3861
+ return;
3862
+ }
3863
+ if (this._isControlled) {
3864
+ if (e.stopPropagation(), !i) return;
3865
+ let n = this.items.find((e) => e.id === i);
3866
+ if (t.type === "toggle") {
3867
+ let e = this._effectiveItemStates, n = t.active, r = this._computeNextItemStates(i, t.action, n);
3868
+ E({
3869
+ target: this,
3870
+ itemStates: e,
3871
+ updatedItemStates: r,
3872
+ changedItemStates: { [i]: [t.action] }
3873
+ });
3874
+ } else T({
3875
+ target: this,
3876
+ action: t.action,
3877
+ actionType: t.type,
3878
+ active: t.active,
3879
+ items: this.items,
3880
+ element: r,
3881
+ itemId: i,
3882
+ item: n
3883
+ });
3884
+ r && !r.hasAttribute("active") && this._removeItemActionsMenuPopover(r);
3885
+ return;
3886
+ }
3887
+ this._suppressItemStatesEvent = !0;
3888
+ let a = fe({
3889
+ event: e,
3890
+ gridElement: this._gridElement,
3891
+ items: this.items,
3892
+ state: {
3893
+ activeItemElement: this._activeItemElement,
3894
+ activeItemActionToggle: this._activeItemActionToggle
3895
+ },
3896
+ cleanupActiveItem: this._cleanupActiveItem.bind(this),
3897
+ dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
3898
+ createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3899
+ });
3900
+ if (this._suppressItemStatesEvent = !1, this._activeItemElement = a.activeItemElement, this._activeItemActionToggle = a.activeItemActionToggle, t.type === "toggle" && i) {
3901
+ let e = this._effectiveItemStates, n = a.activeItemElement === r && a.activeItemActionToggle === t.action, o = this._computeNextItemStates(i, t.action, n);
3902
+ this._internalItemStates = o, E({
3903
+ target: this,
3904
+ itemStates: e,
3905
+ updatedItemStates: o,
3906
+ changedItemStates: this._diffItemStates(e, o)
3907
+ });
3908
+ }
3909
+ };
3910
+ }
3911
+ static get styles() {
3912
+ return [v(ne), v(qn)];
3913
+ }
3914
+ set items(e) {
3915
+ let t = this._items, n = structuredClone(e ?? []);
3916
+ this._validateItemsHaveIds(n, "items"), this._items = n, this._hasControlledItems = e !== void 0, this._isItemsControlled && !this._hasControlledItems && (this._setInternalItems(t, { reconcileStates: !0 }), this._initialItemsApplied = !0), this.requestUpdate("items", t);
3917
+ }
3918
+ get items() {
3919
+ return this._effectiveItems;
3920
+ }
3921
+ set initialItems(e) {
3922
+ let t = this._initialItems, n = structuredClone(e ?? []);
3923
+ this._validateItemsHaveIds(n, "initialItems"), !(!this._isItemsControlled && this._initialItemsApplied) && (this._initialItems = n, this._isItemsControlled || (this._initialItemsApplied = !1), this.requestUpdate("initialItems", t));
3924
+ }
3925
+ get initialItems() {
3926
+ return this._initialItems;
3927
+ }
3928
+ set itemStates(e) {
3929
+ let t = this._itemStates;
3930
+ this._itemStates = e ?? void 0, this.requestUpdate("itemStates", t);
3931
+ }
3932
+ get itemStates() {
3933
+ return this._itemStates;
3934
+ }
3935
+ get _isControlled() {
3936
+ return this.itemStates !== void 0;
3937
+ }
3938
+ get _isItemsControlled() {
3939
+ return this._hasControlledItems;
3940
+ }
3941
+ get _effectiveItems() {
3942
+ return this._isItemsControlled ? this._items : this._internalItems;
3943
+ }
3944
+ get _effectiveItemStates() {
3945
+ return this._isControlled ? this.itemStates : this._internalItemStates;
3946
+ }
3947
+ _validateItemsHaveIds(e, t) {
3948
+ for (let n = 0; n < e.length; n += 1) if (!e[n]?.id) throw Error(`luzmo-item-grid: ${t}[${n}] is missing required id`);
3949
+ }
3950
+ async _loadTheme(e) {
3951
+ let t = this._initialized;
3952
+ if (this._fullTheme = await sn({
3953
+ theme: e,
3954
+ currentTheme: this._fullTheme
3955
+ }), this._initialized && pn(this.style, this._fullTheme), !this._initialized && this._gridElement && await new Promise((e) => {
3956
+ requestAnimationFrame(() => {
3957
+ this._initializeGrid(), e();
3958
+ });
3959
+ }), this._grid) {
3960
+ let [e, t] = cn(this.theme);
3961
+ this._grid.margin([e, t].join(" "));
3962
+ }
3963
+ t && this.requestUpdate();
3964
+ }
3965
+ firstUpdated() {
3966
+ document.addEventListener("click", this._handleGridClick), this.addEventListener("keydown", this._handleKeyDown);
3967
+ }
3968
+ disconnectedCallback() {
3969
+ super.disconnectedCallback(), this._cleanup(), document.removeEventListener("click", this._handleGridClick), this.removeEventListener("keydown", this._handleKeyDown);
3970
+ }
3971
+ willUpdate(e) {
3972
+ if (super.willUpdate(e), e.has("_initialized") && (pn(this.style, this._fullTheme), this._initialized && this._grid && this._fullTheme?.margins)) {
3973
+ let [e, t] = cn(this._fullTheme);
3974
+ this._grid.margin([e, t].join(" "));
3975
+ }
3976
+ }
3977
+ updated(e) {
3978
+ super.updated(e);
3979
+ let t = e.has("contentLanguage"), n = e.has("viewMode"), r = e.has("items"), i = e.has("initialItems"), a = r || e.has("_internalItemsVersion"), o = e.has("theme"), s = e.has("itemStates");
3980
+ this._isItemsControlled && this.initialItems && this.initialItems.length > 0 ? this._hasWarnedControlledAndInitialItems ||= (console.warn("luzmo-item-grid: Both items and initialItems are set. The component will be treated as controlled (initialItems is ignored)."), !0) : this._hasWarnedControlledAndInitialItems = !1, !this._initialItemsApplied && !this._isItemsControlled && this._initialItems.length > 0 ? (this._setInternalItems(this._initialItems, { reconcileStates: !0 }), this._initialItemsApplied = !0) : i && !this._isItemsControlled && this._initialItems.length === 0 && !this._initialItemsApplied && (this._setInternalItems([], { reconcileStates: !0 }), this._initialItemsApplied = !0), this.itemStates !== void 0 && this.initialItemStates !== void 0 ? this._hasWarnedControlledAndInitialStates ||= (console.warn("luzmo-item-grid: Both itemStates and initialItemStates are set. The component will be treated as controlled (initialItemStates is ignored)."), !0) : this._hasWarnedControlledAndInitialStates = !1, !this._initialItemStatesApplied && this.initialItemStates && !this._isControlled && (this._internalItemStates = this._sanitizeInitialItemStates(this.initialItemStates), this._initialItemStatesApplied = !0), _e(this._effectiveItems), Gn({
3981
+ initialized: this._initialized,
3982
+ grid: this._grid,
3983
+ hasItemsChanged: a,
3984
+ gridItemElements: this._gridItemElements,
3985
+ items: this._effectiveItems
3986
+ }), r && this._reconcileStaleItemStates(), t && re(this._gridItemElements, this.contentLanguage), this._activeItemElement = Kn({
3987
+ initialized: this._initialized,
3988
+ grid: this._grid,
3989
+ hasViewModeChanged: n,
3990
+ viewMode: this.viewMode,
3991
+ previousViewMode: e.get("viewMode"),
3992
+ activeItemElement: this._activeItemElement,
3993
+ gridElement: this._gridElement,
3994
+ cleanupActiveItem: this._cleanupActiveItem.bind(this)
3995
+ }), (o || !this._fullTheme && !this._initialized) && this._loadTheme(this.theme), (a || s) && this._initialized && this._applyItemStates();
3996
+ }
3997
+ _setInternalItems(e, t = {}) {
3998
+ let n = structuredClone(e);
3999
+ this._validateItemsHaveIds(n, "internalItems"), this._internalItems = n, _e(this._internalItems), this._internalItemsVersion += 1, t.reconcileStates && this._reconcileStaleItemStates();
4000
+ }
4001
+ _handleMouseover(e) {
4002
+ if (this.viewMode) return;
4003
+ let t = se(e.target);
4004
+ t && this._createItemActionsMenuPopover(t);
4005
+ }
4006
+ _emitControlledClickAwayDeactivation(e) {
4007
+ let t = this._effectiveItemStates, n = Object.entries(t).filter(([, e]) => e.length > 0);
4008
+ if (!this._gridElement || n.length === 0) return;
4009
+ let r = e.composedPath();
4010
+ if (n.some(([e]) => {
4011
+ let t = Array.from(this._gridElement.querySelectorAll(".grid-stack-item")).find((t) => t.getAttribute("gs-id") === e);
4012
+ if (!t) return !1;
4013
+ if (r.includes(t)) return !0;
4014
+ let n = t.querySelector(".grid-item-actions-popover");
4015
+ return n ? r.includes(n) : !1;
4016
+ })) return;
4017
+ let i = {}, a = { ...t };
4018
+ for (let [e, t] of n) {
4019
+ for (let n of t) a = this._computeNextItemStates(e, n, !1, a);
4020
+ i[e] = [...t];
4021
+ }
4022
+ E({
4023
+ target: this,
4024
+ itemStates: t,
4025
+ updatedItemStates: a,
4026
+ changedItemStates: i
4027
+ });
4028
+ }
4029
+ _cleanupActiveItem(e) {
4030
+ this._activeItemElement = de({
4031
+ item: e,
4032
+ activeItemElement: this._activeItemElement,
4033
+ gridElement: this._gridElement,
4034
+ removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
4035
+ });
4036
+ }
4037
+ _clearGridItemUiStateForDelete(e) {
4038
+ e.hasAttribute("focused") && e.removeAttribute("focused"), e.hasAttribute("active") && e.removeAttribute("active"), this._removeItemActionsMenuPopover(e), this._focusedItemElement === e && (this._focusedItemElement = void 0), this._activeItemElement === e && (this._activeItemElement = void 0, this._activeItemActionToggle = void 0), this._gridElement.querySelector(".grid-stack-item[active]") || this._gridElement.removeAttribute("has-active-item");
4039
+ }
4040
+ _dispatchItemActionEvent(e, t, n, r, i, a, o, s) {
4041
+ if (T({
4042
+ target: this,
4043
+ action: e,
4044
+ actionType: t,
4045
+ active: n,
4046
+ items: this.items,
4047
+ element: r,
4048
+ itemId: i,
4049
+ item: a,
4050
+ deletedId: o,
4051
+ originalElement: s
4052
+ }), t === "toggle" && !this._suppressItemStatesEvent) {
4053
+ let t = this._effectiveItemStates, r = this._computeNextItemStates(i, e, n);
4054
+ this._isControlled || (this._internalItemStates = r), E({
4055
+ target: this,
4056
+ itemStates: t,
4057
+ updatedItemStates: r,
4058
+ changedItemStates: { [i]: [e] }
4059
+ });
4060
+ }
4061
+ }
4062
+ _sanitizeInitialItemStates(e) {
4063
+ let t = Object.entries(e).filter(([, e]) => e.length > 0), n = t.length, r = t.reduce((e, [, t]) => e + t.length, 0);
4064
+ if (n > 1 || r > 1) {
4065
+ console.warn("luzmo-item-grid: initialItemStates contains multiple items or actions. In uncontrolled mode, only one item with one active action is supported at a time. Only the first item and its first action will be applied. Use controlled mode (itemStates) for multiple simultaneous active items.");
4066
+ let [e, n] = t[0];
4067
+ return { [e]: [n[0]] };
4068
+ }
4069
+ return { ...e };
4070
+ }
4071
+ _diffItemStates(e, t) {
4072
+ let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
4073
+ for (let i of r) {
4074
+ let r = e[i] ?? [], a = t[i] ?? [], o = a.filter((e) => !r.includes(e)), s = r.filter((e) => !a.includes(e)), c = [...o, ...s];
4075
+ c.length > 0 && (n[i] = c);
4076
+ }
4077
+ return n;
4078
+ }
4079
+ _computeNextItemStates(e, t, n, r) {
4080
+ if (!this._isControlled) return n ? { [e]: [t] } : {};
4081
+ let i = { ...r ?? this._effectiveItemStates };
4082
+ if (n) {
4083
+ let n = i[e] ?? [];
4084
+ n.includes(t) || (i[e] = [...n, t]);
4085
+ } else {
4086
+ let n = i[e];
4087
+ if (n) {
4088
+ let r = n.filter((e) => e !== t);
4089
+ r.length === 0 ? delete i[e] : i[e] = r;
4090
+ }
4091
+ }
4092
+ return i;
4093
+ }
4094
+ _filterItemStatesToExistingItems(e) {
4095
+ let t = new Set(this.items.map((e) => e.id).filter((e) => !!e)), n = {};
4096
+ for (let [r, i] of Object.entries(e)) !t.has(r) || i.length === 0 || (n[r] = [...i]);
4097
+ return n;
4098
+ }
4099
+ _reconcileStaleItemStates() {
4100
+ let e = this._isControlled ? this._effectiveItemStates : this._internalItemStates, t = this._filterItemStatesToExistingItems(e), n = {};
4101
+ for (let [r, i] of Object.entries(e)) !t[r] && i.length > 0 && (n[r] = [...i]);
4102
+ Object.keys(n).length > 0 && E({
4103
+ target: this,
4104
+ itemStates: e,
4105
+ updatedItemStates: t,
4106
+ changedItemStates: n
4107
+ }), this._isControlled || (this._internalItemStates = t);
4108
+ }
4109
+ _simulateCloneLayout(e, t) {
4110
+ let n = this._effectiveItems;
4111
+ if (!this._grid) return [...n, e];
4112
+ let r = e.position ?? this._resolvePositionFromEngine(t.id);
4113
+ if (!r) return [...n, e];
4114
+ e = {
4115
+ ...e,
4116
+ position: { ...r }
4117
+ };
4118
+ let i = t.position ?? this._resolvePositionFromEngine(t.id);
4119
+ this.clonedItemPositioning === "below-item" && i && (e.position = {
4120
+ ...e.position,
4121
+ col: i.col,
4122
+ row: i.row + i.sizeY
4123
+ });
4124
+ let a = this.clonedItemPositioning !== "below-item" || !i, { updatedItems: o } = Ce({
4125
+ item: e,
4126
+ engine: this._grid.engine,
4127
+ existingItems: this._enrichItemsWithEnginePositions(n),
4128
+ autoPosition: a
4129
+ });
4130
+ return o;
4131
+ }
4132
+ _cleanup() {
4133
+ for (let e of this._gridItemElements) this._cleanupActiveItem(e);
4134
+ this._grid &&= (this._grid.destroy(), void 0), this._initialized = !1;
4135
+ }
4136
+ _restoreItemsLayout(e) {
4137
+ if (!this._grid || !this._gridElement || e.length === 0 || !this._isItemsControlled) return;
4138
+ let t = [];
4139
+ for (let n of e) {
4140
+ if (!n.id) continue;
4141
+ let e = this._effectiveItems.find((e) => e.id === n.id);
4142
+ if (!e) continue;
4143
+ let r = e.position ?? this._resolvePositionFromEngine(e.id);
4144
+ if (!r) continue;
4145
+ let i = this._gridElement.querySelector(`.grid-stack-item[gs-id="${e.id}"]`);
4146
+ i && (n.x !== r.col || n.y !== r.row || n.w !== r.sizeX || n.h !== r.sizeY) && t.push({
4147
+ element: i,
4148
+ position: r
4149
+ });
4150
+ }
4151
+ if (t.length !== 0) {
4152
+ this._suppressNextLayoutChangedEvent = !0, this._grid.batchUpdate();
4153
+ for (let e of t) this._grid.update(e.element, {
4154
+ x: e.position.col,
4155
+ y: e.position.row,
4156
+ w: e.position.sizeX,
4157
+ h: e.position.sizeY
4158
+ });
4159
+ this._grid.batchUpdate(!1), setTimeout(() => {
4160
+ this._suppressNextLayoutChangedEvent &&= !1;
4161
+ }, 0);
4162
+ }
4163
+ }
4164
+ _initializeGrid() {
4165
+ this._initialized || !this._gridElement || (this._grid = Vn({
4166
+ gridElement: this._gridElement,
4167
+ gridItemElements: this._gridItemElements,
4168
+ items: this._effectiveItems,
4169
+ columns: this.columns ?? 48,
4170
+ rowHeight: this.rowHeight ?? 16,
4171
+ viewMode: this.viewMode,
4172
+ fullTheme: this._fullTheme,
4173
+ onCreateOrUpdateDimensionsHint: this._createOrUpdateDimensionsHint.bind(this),
4174
+ onRemoveDimensionsHint: this._removeDimensionsHint.bind(this),
4175
+ onChange: (e) => {
4176
+ if (this._suppressNextLayoutChangedEvent) {
4177
+ this._suppressNextLayoutChangedEvent = !1;
4178
+ return;
4179
+ }
4180
+ let t = this._effectiveItems, n = Hn(t, e);
4181
+ this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), ae({
4182
+ target: this,
4183
+ eventName: "luzmo-item-grid-layout-changed",
4184
+ detail: {
4185
+ element: this._gridElement,
4186
+ grid: this._grid,
4187
+ items: t,
4188
+ updatedItems: n
4189
+ }
4190
+ }), this._restoreItemsLayout(e);
4191
+ }
4192
+ }), this._initialized = !0, ae({
4193
+ target: this,
4194
+ eventName: "luzmo-item-grid-ready",
4195
+ detail: {
4196
+ element: this._gridElement,
4197
+ grid: this._grid,
4198
+ items: this._effectiveItems
4199
+ }
4200
+ }), this._applyItemStates());
4201
+ }
4202
+ _applyItemStates() {
4203
+ let e = this._filterItemStatesToExistingItems(this._effectiveItemStates), t = new Set(Object.entries(e).filter(([, e]) => e.length > 0).map(([e]) => e)), n = [], r = this._gridElement?.querySelectorAll(".grid-stack-item[active]");
4204
+ if (r) for (let e of r) {
4205
+ let n = e.getAttribute("gs-id");
4206
+ (!n || !t.has(n)) && (e.removeAttribute("active"), this._removeItemActionsMenuPopover(e));
4207
+ }
4208
+ if (this._activeItemElement = void 0, this._activeItemActionToggle = void 0, t.size === 0) {
4209
+ this._gridElement?.removeAttribute("has-active-item");
4210
+ return;
4211
+ }
4212
+ for (let [t, r] of Object.entries(e)) {
4213
+ if (r.length === 0) continue;
4214
+ let e = this.getGridItemById(t);
4215
+ if (!e?.element) continue;
4216
+ let i = e.element;
4217
+ i.setAttribute("active", "true"), this._gridElement?.setAttribute("has-active-item", "true"), this._createItemActionsMenuPopover(i, r);
4218
+ for (let e of r) n.push({
4219
+ element: i,
4220
+ action: e
4221
+ });
4222
+ }
4223
+ if (n.length === 0) {
4224
+ this._gridElement?.removeAttribute("has-active-item"), this._activeItemElement = void 0, this._activeItemActionToggle = void 0;
4225
+ return;
4226
+ }
4227
+ n.length === 1 ? (this._activeItemElement = n[0].element, this._activeItemActionToggle = n[0].action) : (this._activeItemElement = void 0, this._activeItemActionToggle = void 0);
4228
+ }
4229
+ _createOrUpdateDimensionsHint(e, t, n) {
4230
+ Un({
4231
+ element: e,
4232
+ numberOfColumns: t,
4233
+ numberOfRows: n,
4234
+ offsetHint: ln(this.theme)
4235
+ });
4236
+ }
4237
+ _removeDimensionsHint(e) {
4238
+ Wn(e);
4239
+ }
4240
+ get grid() {
4241
+ return this._grid;
4242
+ }
4243
+ get gridItems() {
4244
+ return Se(this.items, this._gridElement);
4245
+ }
4246
+ registerRenderer(e, t) {
4247
+ this.renderers = {
4248
+ ...this.renderers,
4249
+ [e]: t
4250
+ };
4251
+ }
4252
+ _renderOverlayContent(e, t) {
4253
+ return hn({
4254
+ item: e,
4255
+ activeActions: t,
4256
+ defaultItemActionsMenu: this.defaultItemActionsMenu,
4257
+ placementItemActionsMenu: this.placementItemActionsMenu,
4258
+ language: this.language,
4259
+ handleAction: this._handleAction,
4260
+ itemActionsDocumentPopover: this.itemActionsDocumentPopover
4261
+ });
4262
+ }
4263
+ _createItemActionsMenuPopover(e, t) {
4264
+ Zt({
4265
+ element: e,
4266
+ activeActions: t,
4267
+ getGridItemById: this.getGridItemById.bind(this),
4268
+ placementItemActionsMenu: this.placementItemActionsMenu,
4269
+ renderOverlayContent: this._renderOverlayContent.bind(this),
4270
+ removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
4271
+ itemActionsDocumentPopover: this.itemActionsDocumentPopover
4272
+ });
4273
+ }
4274
+ _removeItemActionsMenuPopover(e) {
4275
+ Qt(e);
4276
+ }
4277
+ getGridItemById(e) {
4278
+ return this.gridItems.find((t) => t.item.id === e);
4279
+ }
4280
+ scrollToItem(e) {
4281
+ let t = this.getGridItemById(e);
4282
+ if (!t?.element) return;
4283
+ let n = t.element.getBoundingClientRect();
4284
+ (n.bottom > window.innerHeight || n.top < 0) && t.element.scrollIntoView({
4285
+ behavior: "smooth",
4286
+ block: "center"
4287
+ });
4288
+ }
4289
+ _createMissingItemError(e) {
4290
+ return /* @__PURE__ */ Error(`Grid item with id "${e}" not found`);
4291
+ }
4292
+ _requireGridItem(e) {
4293
+ let t = this._effectiveItems.find((t) => t.id === e);
4294
+ if (!t) throw this._createMissingItemError(e);
4295
+ return t;
4296
+ }
4297
+ _resolvePositionFromEngine(e) {
4298
+ let t = this._grid?.engine.nodes.find((t) => t.id === e);
4299
+ if (!(!t || t.x == null || t.y == null || t.w == null || t.h == null)) return {
4300
+ col: t.x,
4301
+ row: t.y,
4302
+ sizeX: t.w,
4303
+ sizeY: t.h
4304
+ };
4305
+ }
4306
+ _requireGridItemWithPosition(e) {
4307
+ let t = this._requireGridItem(e);
4308
+ if (!t.position) {
4309
+ let n = this._resolvePositionFromEngine(e);
4310
+ if (!n) throw Error(`Grid item with id "${e}" does not have a position`);
4311
+ return {
4312
+ ...t,
4313
+ position: n
4314
+ };
4315
+ }
4316
+ return t;
4317
+ }
4318
+ _assertAddItemHasId(e) {
4319
+ if (!e.id) throw Error("addGridItem requires newItem.id");
4320
+ }
4321
+ addGridItem(e) {
4322
+ if (this._assertAddItemHasId(e), this._effectiveItems.some((t) => t.id === e.id)) throw Error(`addGridItem rejected: an item with id "${e.id}" already exists`);
4323
+ let t = Te(e), n = this._effectiveItems;
4324
+ if (!this._grid) {
4325
+ let r = e.position?.col == null || e.position?.row == null ? {
4326
+ ...t,
4327
+ position: void 0
4328
+ } : t, i = [...n, r];
4329
+ return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4330
+ }
4331
+ if (!t.position) {
4332
+ let e = [...n, t];
4333
+ return this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 }), e;
4334
+ }
4335
+ let r = e.position?.col == null || e.position?.row == null, { updatedItems: i } = Ce({
4336
+ item: t,
4337
+ engine: this._grid.engine,
4338
+ existingItems: n,
4339
+ autoPosition: r
4340
+ });
4341
+ return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4342
+ }
4343
+ _enrichItemsWithEnginePositions(e) {
4344
+ return this._grid ? e.map((e) => {
4345
+ if (e.position) return e;
4346
+ let t = this._resolvePositionFromEngine(e.id);
4347
+ return t ? {
4348
+ ...e,
4349
+ position: t
4350
+ } : e;
4351
+ }) : e;
4352
+ }
4353
+ _updateGridItemPosition(e, t) {
4354
+ let n = this._effectiveItems, r = this._requireGridItemWithPosition(e);
4355
+ return n.map((n) => {
4356
+ if (n.id !== e) return n;
4357
+ let i = n.position ?? r.position;
4358
+ return {
4359
+ ...n,
4360
+ position: {
4361
+ ...i,
4362
+ ...t
4363
+ }
4364
+ };
4365
+ });
4366
+ }
4367
+ _dispatchLayoutChangedEvent(e, t) {
4368
+ ae({
4369
+ target: this,
4370
+ eventName: "luzmo-item-grid-layout-changed",
4371
+ detail: {
4372
+ element: this._gridElement,
4373
+ grid: this._grid,
4374
+ items: e,
4375
+ updatedItems: t
4376
+ }
4377
+ });
4378
+ }
4379
+ _updateItemField(e, t) {
4380
+ let n = this._effectiveItems;
4381
+ this._requireGridItem(e);
4382
+ let r = n.map((n) => n.id === e ? {
4383
+ ...n,
4384
+ ...t
4385
+ } : n);
4386
+ return this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4387
+ }
4388
+ removeGridItem(e) {
4389
+ let t = this._effectiveItems, n = this._requireGridItem(e), r = t.filter((t) => t.id !== e);
4390
+ return T({
4391
+ target: this,
4392
+ action: "delete",
4393
+ actionType: "button",
4394
+ active: !1,
4395
+ items: t,
4396
+ element: this.getGridItemById(e)?.element ?? this,
4397
+ itemId: e,
4398
+ item: n,
4399
+ updatedItems: r
4400
+ }), this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4401
+ }
4402
+ cloneGridItem(e) {
4403
+ let t = this._effectiveItems, r = this._requireGridItem(e), i = {
4404
+ ...structuredClone(r),
4405
+ id: n()
4406
+ }, a = this._simulateCloneLayout(i, r), o = a.find((e) => e.id === i.id) ?? i;
4407
+ return T({
4408
+ target: this,
4409
+ action: "clone",
4410
+ actionType: "button",
4411
+ active: !1,
4412
+ items: t,
4413
+ element: this.getGridItemById(e)?.element ?? this,
4414
+ itemId: i.id,
4415
+ item: o,
4416
+ originalElement: this.getGridItemById(e)?.element,
4417
+ updatedItems: a
4418
+ }), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4419
+ }
4420
+ updateGridItemPosition(e, t) {
4421
+ let n = this._updateGridItemPosition(e, t);
4422
+ return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4423
+ }
4424
+ updateGridItemSize(e, t) {
4425
+ let n = this._updateGridItemPosition(e, t);
4426
+ return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4427
+ }
4428
+ updateGridItemSlots(e, t) {
4429
+ return this._updateItemField(e, { slots: t });
4430
+ }
4431
+ updateGridItemOptions(e, t) {
4432
+ return this._updateItemField(e, { options: t });
4433
+ }
4434
+ updateGridItemFilters(e, t) {
4435
+ return this._updateItemField(e, { filters: t });
4436
+ }
4437
+ updateGridItemType(e, t) {
4438
+ return this._updateItemField(e, { type: t });
4439
+ }
4440
+ updateGridItem(e, t) {
4441
+ let n = this._effectiveItems;
4442
+ this._requireGridItem(e);
4443
+ let { position: r, ...i } = t, a;
4444
+ return r && this._grid ? (a = we({
4445
+ itemId: e,
4446
+ patch: r,
4447
+ engine: this._grid.engine,
4448
+ existingItems: this._enrichItemsWithEnginePositions(n)
4449
+ }), a = a.map((t) => t.id === e ? {
4450
+ ...t,
4451
+ ...i
4452
+ } : t)) : a = n.map((t) => t.id === e ? {
4453
+ ...t,
4454
+ ...i,
4455
+ ...r && t.position ? { position: {
4456
+ ...t.position,
4457
+ ...r
4458
+ } } : r ? { position: r } : {}
4459
+ } : t), t.position && this._dispatchLayoutChangedEvent(n, a), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4460
+ }
4461
+ async triggerItemAction(e, t, n) {
4462
+ await this.updateComplete;
4463
+ let r = this.getGridItemById(e);
4464
+ if (!r?.element) {
4465
+ console.warn(`Grid item with id "${e}" not found`);
4466
+ return;
4467
+ }
4468
+ if (this._isControlled) return this._triggerControlledItemAction(e, t, n);
4469
+ this._suppressItemStatesEvent = !0;
4470
+ let i = me({
4471
+ gridElement: this._gridElement,
4472
+ items: this.items,
4473
+ gridItemData: r,
4474
+ itemId: e,
4475
+ action: t,
4476
+ options: n,
4477
+ state: {
4478
+ activeItemElement: this._activeItemElement,
4479
+ activeItemActionToggle: this._activeItemActionToggle
4480
+ },
4481
+ cleanupActiveItem: this._cleanupActiveItem.bind(this),
4482
+ dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
4483
+ createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
4484
+ });
4485
+ if (this._suppressItemStatesEvent = !1, this._activeItemElement = i.state.activeItemElement, this._activeItemActionToggle = i.state.activeItemActionToggle, i.result !== void 0) {
4486
+ let n = this._effectiveItemStates, r = this._computeNextItemStates(e, t, i.result);
4487
+ this._internalItemStates = r, E({
4488
+ target: this,
4489
+ itemStates: n,
4490
+ updatedItemStates: r,
4491
+ changedItemStates: this._diffItemStates(n, r)
4492
+ });
4493
+ }
4494
+ return i.result;
4495
+ }
4496
+ activateItemAction(e, t, n) {
4497
+ return this.triggerItemAction(e, t, n);
4498
+ }
4499
+ _triggerControlledItemAction(e, t, n) {
4500
+ let r = (this._effectiveItemStates[e] ?? []).includes(t), i = n?.active ?? !r;
4501
+ if (n?.active !== void 0 && i === r) return r;
4502
+ let a = this._effectiveItemStates, o = this._computeNextItemStates(e, t, i);
4503
+ return E({
4504
+ target: this,
4505
+ itemStates: a,
4506
+ updatedItemStates: o,
4507
+ changedItemStates: { [e]: [t] }
4508
+ }), i;
4509
+ }
4510
+ deactivateItems() {
4511
+ if (this._isControlled) {
4512
+ let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4513
+ itemId: e,
4514
+ action: t
4515
+ })));
4516
+ if (t.length === 0) return 0;
4517
+ let n = {}, r = { ...e };
4518
+ for (let e of t) r = this._computeNextItemStates(e.itemId, e.action, !1, r), n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4519
+ return E({
4520
+ target: this,
4521
+ itemStates: e,
4522
+ updatedItemStates: r,
4523
+ changedItemStates: n
4524
+ }), new Set(t.map((e) => e.itemId)).size;
4525
+ }
4526
+ let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4527
+ itemId: e,
4528
+ action: t
4529
+ })));
4530
+ this._suppressItemStatesEvent = !0;
4531
+ let n = he({
4532
+ gridElement: this._gridElement,
4533
+ items: this.items,
4534
+ state: {
4535
+ activeItemElement: this._activeItemElement,
4536
+ activeItemActionToggle: this._activeItemActionToggle
4537
+ },
4538
+ cleanupActiveItem: this._cleanupActiveItem.bind(this),
4539
+ dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
4540
+ });
4541
+ if (this._suppressItemStatesEvent = !1, this._activeItemElement = n.state.activeItemElement, this._activeItemActionToggle = n.state.activeItemActionToggle, this._isControlled || (this._internalItemStates = {}), t.length > 0) {
4542
+ let n = {};
4543
+ for (let e of t) n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4544
+ E({
4545
+ target: this,
4546
+ itemStates: e,
4547
+ updatedItemStates: {},
4548
+ changedItemStates: n
4549
+ });
4550
+ }
4551
+ return n.deactivatedCount;
4552
+ }
4553
+ _renderGrid() {
4554
+ return vn({
4555
+ items: this.items,
4556
+ initialized: this._initialized,
4557
+ viewMode: this.viewMode,
4558
+ contentLanguage: this.contentLanguage,
4559
+ fullTheme: this._fullTheme,
4560
+ appServer: this.appServer,
4561
+ apiHost: this.apiHost,
4562
+ authKey: this.authKey,
4563
+ authToken: this.authToken,
4564
+ columns: this.columns ?? 48,
4565
+ ensureGridItemId: (e) => ve(e),
4566
+ handleMouseover: this._handleMouseover.bind(this),
4567
+ handleMouseout: this._handleMouseout,
4568
+ handleFocus: this._handleFocus,
4569
+ handleBlur: this._handleBlur
4570
+ });
4571
+ }
4572
+ render() {
4573
+ return this._renderGrid();
4574
+ }
4575
+ };
4576
+ //#endregion
4577
+ //#region src/components/item-grid/index.ts
4578
+ e([y({
4579
+ type: String,
4580
+ attribute: "app-server",
4581
+ reflect: !0
4582
+ })], $.prototype, "appServer", void 0), e([y({
4583
+ type: String,
4584
+ attribute: "api-host",
4585
+ reflect: !0
4586
+ })], $.prototype, "apiHost", void 0), e([y({
4587
+ type: String,
4588
+ attribute: "auth-key",
4589
+ reflect: !0
4590
+ })], $.prototype, "authKey", void 0), e([y({
4591
+ type: String,
4592
+ attribute: "auth-token",
4593
+ reflect: !0
4594
+ })], $.prototype, "authToken", void 0), e([y({
4595
+ type: Number,
4596
+ attribute: "cache-time",
4597
+ reflect: !0
4598
+ })], $.prototype, "cacheTime", void 0), e([y({
4599
+ type: String,
4600
+ reflect: !0
4601
+ })], $.prototype, "language", void 0), e([y({
4602
+ type: String,
4603
+ attribute: "content-language",
4604
+ reflect: !0
4605
+ })], $.prototype, "contentLanguage", void 0), e([y({
4606
+ type: Number,
4607
+ reflect: !0
4608
+ })], $.prototype, "columns", void 0), e([y({
4609
+ type: Number,
4610
+ reflect: !0,
4611
+ attribute: "row-height"
4612
+ })], $.prototype, "rowHeight", void 0), e([y({
4613
+ type: Boolean,
4614
+ reflect: !0,
4615
+ attribute: "view-mode"
4616
+ })], $.prototype, "viewMode", void 0), e([y({
4617
+ type: Boolean,
4618
+ reflect: !0,
4619
+ attribute: "item-actions-document-popover"
4620
+ })], $.prototype, "itemActionsDocumentPopover", void 0), e([y({
4621
+ type: String,
4622
+ reflect: !0,
4623
+ attribute: "placement-item-actions-menu"
4624
+ })], $.prototype, "placementItemActionsMenu", void 0), e([y({
4625
+ type: Array,
4626
+ reflect: !0,
4627
+ attribute: "default-item-actions-menu"
4628
+ })], $.prototype, "defaultItemActionsMenu", void 0), e([y({
4629
+ type: String,
4630
+ reflect: !0,
4631
+ attribute: "cloned-item-positioning"
4632
+ })], $.prototype, "clonedItemPositioning", void 0), e([y({
4633
+ type: Object,
4634
+ reflect: !0
4635
+ })], $.prototype, "theme", void 0), e([y({
4636
+ type: Array,
4637
+ reflect: !1
4638
+ })], $.prototype, "items", null), e([y({
4639
+ type: Array,
4640
+ reflect: !1,
4641
+ attribute: "initial-items"
4642
+ })], $.prototype, "initialItems", null), e([y({
4643
+ type: Object,
4644
+ reflect: !1
4645
+ })], $.prototype, "renderers", void 0), e([y({
4646
+ type: Object,
4647
+ reflect: !1,
4648
+ attribute: "item-states"
4649
+ })], $.prototype, "itemStates", null), e([y({
4650
+ type: Object,
4651
+ reflect: !1,
4652
+ attribute: "initial-item-states"
4653
+ })], $.prototype, "initialItemStates", void 0), e([ee()], $.prototype, "_initialized", void 0), e([b(".grid-stack")], $.prototype, "_gridElement", void 0), e([x(".luzmo-item-grid-item")], $.prototype, "_gridItemElements", void 0), e([ee()], $.prototype, "_internalItemsVersion", void 0), customElements.get("luzmo-item-grid") || customElements.define("luzmo-item-grid", $);
4654
+ //#endregion
4655
+ export { $ as t };