@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
@@ -1,4558 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2026 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- import { n as e, t } from "./localized-mixin-DhiGdPMj.js";
21
- import { t as n } from "./v4-DIjJgmR0.js";
22
- import { t as r } from "./color-BWnYpOu7.js";
23
- import { n as i, t as a } from "./themes-CQZd578_.js";
24
- import { itemTypes as o } from "./item-list.js";
25
- import { luzmoArrows as s, luzmoCircle as c, luzmoClone as l, luzmoCog as u, luzmoFilterOutline as d, luzmoLockOutline as f, luzmoPencil as p, luzmoTable as m, luzmoTrashOutline as h } from "@luzmo/icons";
26
- import "@luzmo/lucero/icon";
27
- import { html as g, nothing as _, render as v, unsafeCSS as y } from "lit";
28
- import { property as b, query as x, queryAll as ee, state as S } from "lit/decorators.js";
29
- import { localized as C, msg as w } from "@lit/localize";
30
- import "@luzmo/lucero/action-button";
31
- import "@luzmo/lucero/tooltip";
32
- import { repeat as te } from "lit/directives/repeat.js";
33
- import { guard as ne } from "lit/directives/guard.js";
34
- import "@luzmo/embed";
35
- import "@luzmo/lucero/action-group";
36
- import { LuzmoElement as re } from "@luzmo/lucero/utils";
37
- //#region node_modules/gridstack/dist/gridstack.min.css?inline
38
- var ie = ".grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.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:none;touch-action:none;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{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}.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}", ae = (e, t) => {
39
- e.forEach((e) => {
40
- let n = e.querySelector("luzmo-embed-viz-item");
41
- n && (n.options = {
42
- ...n.options,
43
- locale: t
44
- });
45
- });
46
- }, oe = ({ action: e, actionType: t, active: n, items: r, element: i, itemId: a, item: o, deletedId: s, originalElement: c, updatedItems: l }) => ({
47
- action: e,
48
- actionType: t,
49
- active: n,
50
- items: r,
51
- element: i,
52
- item: {
53
- ...o,
54
- id: a,
55
- filters: o?.filters ?? []
56
- },
57
- ...s && { deletedId: s },
58
- ...c && { originalElement: c },
59
- ...l && { updatedItems: l }
60
- }), T = ({ target: e, action: t, actionType: n, active: r, items: i, element: a, itemId: o, item: s, deletedId: c, originalElement: l, updatedItems: u }) => {
61
- e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-action", {
62
- detail: oe({
63
- action: t,
64
- actionType: n,
65
- active: r,
66
- items: i,
67
- element: a,
68
- itemId: o,
69
- item: s,
70
- deletedId: c,
71
- originalElement: l,
72
- updatedItems: u
73
- }),
74
- bubbles: !0,
75
- composed: !0,
76
- cancelable: !0
77
- }));
78
- }, E = ({ target: e, itemStates: t, updatedItemStates: n, changedItemStates: r }) => {
79
- e.dispatchEvent(new CustomEvent("luzmo-item-grid-item-states-changed", {
80
- detail: {
81
- itemStates: t,
82
- updatedItemStates: n,
83
- changedItemStates: r
84
- },
85
- bubbles: !0,
86
- composed: !0
87
- }));
88
- }, se = ({ target: e, eventName: t, detail: n }) => {
89
- e.dispatchEvent(new CustomEvent(t, {
90
- detail: n,
91
- bubbles: !0,
92
- composed: !0
93
- }));
94
- }, ce = (e) => e instanceof Element ? e : void 0, le = (e) => ce(e)?.closest(".grid-stack-item"), ue = ({ event: e, gridItem: t }) => !ce(e.relatedTarget)?.closest(".grid-item-actions-popover") && !t.hasAttribute("active"), de = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => {
95
- let r = le(e.target);
96
- return r ? (t && t !== r && (t.removeAttribute("focused"), n(t)), r.setAttribute("focused", "true"), r) : t;
97
- }, fe = ({ event: e, focusedItemElement: t, removeItemActionsMenuPopover: n }) => t ? ce(e.relatedTarget)?.closest("luzmo-item-grid-item-actions-menu") ? {
98
- focusedItemElement: t,
99
- shouldFocusGrid: !1
100
- } : (t.removeAttribute("focused"), n(t), {
101
- focusedItemElement: void 0,
102
- shouldFocusGrid: !0
103
- }) : {
104
- focusedItemElement: void 0,
105
- shouldFocusGrid: !1
106
- }, pe = ({ item: e, activeItemElement: t, gridElement: n, removeItemActionsMenuPopover: r }) => {
107
- if (e.removeAttribute("active"), r(e), t === e) {
108
- n.removeAttribute("has-active-item");
109
- return;
110
- }
111
- return t;
112
- }, me = ({ event: e, gridElement: t, items: n, state: r, cleanupActiveItem: i, dispatchItemActionEvent: a, createItemActionsMenuPopover: o }) => {
113
- e.stopPropagation();
114
- let s = e.detail, c = e.target?.closest(".grid-stack-item");
115
- if (!c) return r;
116
- let l = c.getAttribute("gs-id"), u = n.find((e) => e.id === l);
117
- 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) => {
118
- e !== c && i(e);
119
- }), 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);
120
- }, he = ({ event: e, gridElement: t, hostElement: n, items: r, activeItemActionToggle: i, cleanupActiveItem: a, dispatchItemActionEvent: o }) => {
121
- let s = e.composedPath();
122
- if (!s.includes(t) && !s.includes(n)) return { activeItemActionToggle: i };
123
- let c = t.querySelector(".grid-stack-item[active]");
124
- if (!c || s.includes(c)) return { activeItemActionToggle: i };
125
- let l = c.querySelector(".grid-item-actions-popover");
126
- if (l && s.includes(l)) return { activeItemActionToggle: i };
127
- let u = c.getAttribute("gs-id"), d = r.find((e) => e.id === u);
128
- return a(c), i && u && o(i, "toggle", !1, c, u, d), { activeItemActionToggle: void 0 };
129
- }, ge = ({ gridElement: e, items: t, gridItemData: n, itemId: r, action: i, options: a, state: o, cleanupActiveItem: s, dispatchItemActionEvent: c, createItemActionsMenuPopover: l }) => {
130
- if (!n?.element) return {
131
- result: void 0,
132
- state: o
133
- };
134
- let u = n.element, d = n.item, f = i === o.activeItemActionToggle && u === o.activeItemElement, p = a?.active ?? !f;
135
- if (a?.active !== void 0 && p === f) return {
136
- result: f,
137
- state: o
138
- };
139
- 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), {
140
- result: !1,
141
- state: o
142
- };
143
- if (o.activeItemElement && o.activeItemElement !== u) {
144
- let e = o.activeItemElement.getAttribute("gs-id"), n = t.find((t) => t.id === e), r = o.activeItemActionToggle, i = o.activeItemElement;
145
- s(o.activeItemElement), o.activeItemElement = void 0, o.activeItemActionToggle = void 0, r && e && n && c(r, "toggle", !1, i, e, n);
146
- }
147
- 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), {
148
- result: !0,
149
- state: o
150
- };
151
- }, _e = ({ gridElement: e, items: t, state: n, cleanupActiveItem: r, dispatchItemActionEvent: i }) => {
152
- let a = 0;
153
- if (n.activeItemElement && n.activeItemActionToggle) {
154
- let o = n.activeItemElement.getAttribute("gs-id"), s = t.find((e) => e.id === o), c = n.activeItemActionToggle, l = n.activeItemElement;
155
- 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++);
156
- }
157
- return {
158
- deactivatedCount: a,
159
- state: n
160
- };
161
- }, ve = {
162
- sizeX: 1,
163
- sizeY: 1,
164
- col: 0,
165
- row: 0
166
- }, ye = (e) => {
167
- e.forEach((e) => {
168
- if (!e.id) throw Error("Grid item id is required");
169
- });
170
- }, be = (e) => {
171
- if (!e.id) throw Error("Grid item id is required");
172
- return e.id;
173
- }, xe = (e, t) => ({
174
- id: t,
175
- x: e?.position?.col ?? 0,
176
- y: e?.position?.row ?? 0,
177
- w: e?.position?.sizeX ?? 1,
178
- h: e?.position?.sizeY ?? 1
179
- }), Se = (e, t) => ({
180
- ...structuredClone(e),
181
- id: t,
182
- position: {
183
- ...ve,
184
- ...structuredClone(e.position)
185
- },
186
- canFilter: e.canFilter ?? "all"
187
- }), Ce = (e, t) => {
188
- if (t) {
189
- for (let n of e) if (n.getAttribute("luzmo-item-grid-item-id") === t) return n;
190
- }
191
- }, we = (e, t) => e.map((e) => {
192
- let n = {
193
- item: e,
194
- element: t.querySelector(`[gs-id="${e.id}"]`)
195
- }, r = n.element?.querySelector("luzmo-embed-viz-item");
196
- return r && (n.luzmoElement = r), n;
197
- }), Te = ({ item: e, engine: t, existingItems: n, autoPosition: r, excludeNodeId: i }) => {
198
- let a = e.position, o = i ? t.nodes.filter((e) => e.id !== i) : t.nodes, s = new t.constructor({
199
- column: t.column,
200
- float: t.float,
201
- nodes: o.map((e) => ({ ...e }))
202
- }), c = {
203
- x: a.col,
204
- y: a.row,
205
- w: a.sizeX,
206
- h: a.sizeY,
207
- id: e.id,
208
- autoPosition: r
209
- };
210
- s.addNode(c);
211
- let l = {
212
- ...e,
213
- position: {
214
- col: c.x ?? a.col,
215
- row: c.y ?? a.row,
216
- sizeX: c.w ?? a.sizeX,
217
- sizeY: c.h ?? a.sizeY
218
- }
219
- };
220
- return {
221
- resolvedItem: l,
222
- updatedItems: [...n.map((e) => {
223
- let t = s.nodes.find((t) => t.id === e.id);
224
- return t && t.x != null && t.y != null && t.w != null && t.h != null ? {
225
- ...e,
226
- position: {
227
- col: t.x,
228
- row: t.y,
229
- sizeX: t.w,
230
- sizeY: t.h
231
- }
232
- } : e;
233
- }), l]
234
- };
235
- }, Ee = ({ itemId: e, patch: t, engine: n, existingItems: r }) => {
236
- let i = r.find((t) => t.id === e);
237
- if (!i?.position) return r;
238
- let { resolvedItem: a, updatedItems: o } = Te({
239
- item: {
240
- ...i,
241
- position: {
242
- ...i.position,
243
- ...t
244
- }
245
- },
246
- engine: n,
247
- existingItems: r.filter((t) => t.id !== e),
248
- autoPosition: !1,
249
- excludeNodeId: e
250
- });
251
- return r.map((t) => t.id === e ? a : o.find((e) => e.id === t.id) ?? t);
252
- }, De = (e) => Se(e, e.id), Oe = Math.min, D = Math.max, ke = Math.round, Ae = Math.floor, O = (e) => ({
253
- x: e,
254
- y: e
255
- }), je = {
256
- left: "right",
257
- right: "left",
258
- bottom: "top",
259
- top: "bottom"
260
- };
261
- function Me(e, t) {
262
- return typeof e == "function" ? e(t) : e;
263
- }
264
- function k(e) {
265
- return e.split("-")[0];
266
- }
267
- function Ne(e) {
268
- return e.split("-")[1];
269
- }
270
- function Pe(e) {
271
- return e === "x" ? "y" : "x";
272
- }
273
- function Fe(e) {
274
- return e === "y" ? "height" : "width";
275
- }
276
- function A(e) {
277
- let t = e[0];
278
- return t === "t" || t === "b" ? "y" : "x";
279
- }
280
- function Ie(e) {
281
- return Pe(A(e));
282
- }
283
- function Le(e, t, n) {
284
- n === void 0 && (n = !1);
285
- let r = Ne(e), i = Ie(e), a = Fe(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
286
- return t.reference[a] > t.floating[a] && (o = Ke(o)), [o, Ke(o)];
287
- }
288
- function Re(e) {
289
- let t = Ke(e);
290
- return [
291
- ze(e),
292
- t,
293
- ze(t)
294
- ];
295
- }
296
- function ze(e) {
297
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
298
- }
299
- var Be = ["left", "right"], Ve = ["right", "left"], He = ["top", "bottom"], Ue = ["bottom", "top"];
300
- function We(e, t, n) {
301
- switch (e) {
302
- case "top":
303
- case "bottom": return n ? t ? Ve : Be : t ? Be : Ve;
304
- case "left":
305
- case "right": return t ? He : Ue;
306
- default: return [];
307
- }
308
- }
309
- function Ge(e, t, n, r) {
310
- let i = Ne(e), a = We(k(e), n === "start", r);
311
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ze)))), a;
312
- }
313
- function Ke(e) {
314
- let t = k(e);
315
- return je[t] + e.slice(t.length);
316
- }
317
- function qe(e) {
318
- return {
319
- top: 0,
320
- right: 0,
321
- bottom: 0,
322
- left: 0,
323
- ...e
324
- };
325
- }
326
- function Je(e) {
327
- return typeof e == "number" ? {
328
- top: e,
329
- right: e,
330
- bottom: e,
331
- left: e
332
- } : qe(e);
333
- }
334
- function Ye(e) {
335
- let { x: t, y: n, width: r, height: i } = e;
336
- return {
337
- width: r,
338
- height: i,
339
- top: n,
340
- left: t,
341
- right: t + r,
342
- bottom: n + i,
343
- x: t,
344
- y: n
345
- };
346
- }
347
- //#endregion
348
- //#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
349
- function Xe(e, t, n) {
350
- let { reference: r, floating: i } = e, a = A(t), o = Ie(t), s = Fe(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;
351
- switch (c) {
352
- case "top":
353
- p = {
354
- x: u,
355
- y: r.y - i.height
356
- };
357
- break;
358
- case "bottom":
359
- p = {
360
- x: u,
361
- y: r.y + r.height
362
- };
363
- break;
364
- case "right":
365
- p = {
366
- x: r.x + r.width,
367
- y: d
368
- };
369
- break;
370
- case "left":
371
- p = {
372
- x: r.x - i.width,
373
- y: d
374
- };
375
- break;
376
- default: p = {
377
- x: r.x,
378
- y: r.y
379
- };
380
- }
381
- switch (Ne(t)) {
382
- case "start":
383
- p[o] -= f * (n && l ? -1 : 1);
384
- break;
385
- case "end":
386
- p[o] += f * (n && l ? -1 : 1);
387
- break;
388
- }
389
- return p;
390
- }
391
- async function Ze(e, t) {
392
- t === void 0 && (t = {});
393
- 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 } = Me(t, e), p = Je(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Ye(await i.getClippingRect({
394
- element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
395
- boundary: c,
396
- rootBoundary: l,
397
- strategy: s
398
- })), g = u === "floating" ? {
399
- x: n,
400
- y: r,
401
- width: a.floating.width,
402
- height: a.floating.height
403
- } : 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(_)) || {
404
- x: 1,
405
- y: 1
406
- }, y = Ye(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
407
- elements: o,
408
- rect: g,
409
- offsetParent: _,
410
- strategy: s
411
- }) : g);
412
- return {
413
- top: (h.top - y.top + p.top) / v.y,
414
- bottom: (y.bottom - h.bottom + p.bottom) / v.y,
415
- left: (h.left - y.left + p.left) / v.x,
416
- right: (y.right - h.right + p.right) / v.x
417
- };
418
- }
419
- var Qe = 50, $e = async (e, t, n) => {
420
- let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
421
- ...o,
422
- detectOverflow: Ze
423
- }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
424
- reference: e,
425
- floating: t,
426
- strategy: i
427
- }), { x: u, y: d } = Xe(l, r, c), f = r, p = 0, m = {};
428
- for (let n = 0; n < a.length; n++) {
429
- let h = a[n];
430
- if (!h) continue;
431
- let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
432
- x: u,
433
- y: d,
434
- initialPlacement: r,
435
- placement: f,
436
- strategy: i,
437
- middlewareData: m,
438
- rects: l,
439
- platform: s,
440
- elements: {
441
- reference: e,
442
- floating: t
443
- }
444
- });
445
- u = v ?? u, d = y ?? d, m[g] = {
446
- ...m[g],
447
- ...b
448
- }, x && p < Qe && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
449
- reference: e,
450
- floating: t,
451
- strategy: i
452
- }) : x.rects), {x: u, y: d} = Xe(l, f, c)), n = -1);
453
- }
454
- return {
455
- x: u,
456
- y: d,
457
- placement: f,
458
- strategy: i,
459
- middlewareData: m
460
- };
461
- }, et = function(e) {
462
- return e === void 0 && (e = {}), {
463
- name: "flip",
464
- options: e,
465
- async fn(t) {
466
- var n;
467
- 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 } = Me(e, t);
468
- if ((n = i.arrow) != null && n.alignmentOffset) return {};
469
- 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 ? [Ke(o)] : Re(o)), x = p !== "none";
470
- !d && x && b.push(...Ge(o, m, p, y));
471
- let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
472
- if (l && C.push(S[g]), u) {
473
- let e = Le(r, a, y);
474
- C.push(S[e[0]], S[e[1]]);
475
- }
476
- if (w = [...w, {
477
- placement: r,
478
- overflows: C
479
- }], !C.every((e) => e <= 0)) {
480
- let e = (i.flip?.index || 0) + 1, t = ee[e];
481
- if (t && (!(u === "alignment" && _ !== A(t)) || w.every((e) => A(e.placement) !== _ || e.overflows[0] > 0))) return {
482
- data: {
483
- index: e,
484
- overflows: w
485
- },
486
- reset: { placement: t }
487
- };
488
- let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
489
- if (!n) switch (f) {
490
- case "bestFit": {
491
- let e = w.filter((e) => {
492
- if (x) {
493
- let t = A(e.placement);
494
- return t === _ || t === "y";
495
- }
496
- return !0;
497
- }).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];
498
- e && (n = e);
499
- break;
500
- }
501
- case "initialPlacement":
502
- n = o;
503
- break;
504
- }
505
- if (r !== n) return { reset: { placement: n } };
506
- }
507
- return {};
508
- }
509
- };
510
- }, tt = /*#__PURE__*/ new Set(["left", "top"]);
511
- async function nt(e, t) {
512
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = k(n), s = Ne(n), c = A(n) === "y", l = tt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Me(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
513
- mainAxis: d,
514
- crossAxis: 0,
515
- alignmentAxis: null
516
- } : {
517
- mainAxis: d.mainAxis || 0,
518
- crossAxis: d.crossAxis || 0,
519
- alignmentAxis: d.alignmentAxis
520
- };
521
- return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
522
- x: p * u,
523
- y: f * l
524
- } : {
525
- x: f * l,
526
- y: p * u
527
- };
528
- }
529
- var rt = function(e) {
530
- return e === void 0 && (e = 0), {
531
- name: "offset",
532
- options: e,
533
- async fn(t) {
534
- var n;
535
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await nt(t, e);
536
- return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
537
- x: r + s.x,
538
- y: i + s.y,
539
- data: {
540
- ...s,
541
- placement: a
542
- }
543
- };
544
- }
545
- };
546
- };
547
- //#endregion
548
- //#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
549
- function it() {
550
- return typeof window < "u";
551
- }
552
- function j(e) {
553
- return at(e) ? (e.nodeName || "").toLowerCase() : "#document";
554
- }
555
- function M(e) {
556
- var t;
557
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
558
- }
559
- function N(e) {
560
- return ((at(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
561
- }
562
- function at(e) {
563
- return it() ? e instanceof Node || e instanceof M(e).Node : !1;
564
- }
565
- function P(e) {
566
- return it() ? e instanceof Element || e instanceof M(e).Element : !1;
567
- }
568
- function F(e) {
569
- return it() ? e instanceof HTMLElement || e instanceof M(e).HTMLElement : !1;
570
- }
571
- function ot(e) {
572
- return !it() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof M(e).ShadowRoot;
573
- }
574
- function st(e) {
575
- let { overflow: t, overflowX: n, overflowY: r, display: i } = R(e);
576
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
577
- }
578
- function ct(e) {
579
- return /^(table|td|th)$/.test(j(e));
580
- }
581
- function lt(e) {
582
- try {
583
- if (e.matches(":popover-open")) return !0;
584
- } catch {}
585
- try {
586
- return e.matches(":modal");
587
- } catch {
588
- return !1;
589
- }
590
- }
591
- var ut = /transform|translate|scale|rotate|perspective|filter/, dt = /paint|layout|strict|content/, I = (e) => !!e && e !== "none", ft;
592
- function pt(e) {
593
- let t = P(e) ? R(e) : e;
594
- return I(t.transform) || I(t.translate) || I(t.scale) || I(t.rotate) || I(t.perspective) || !ht() && (I(t.backdropFilter) || I(t.filter)) || ut.test(t.willChange || "") || dt.test(t.contain || "");
595
- }
596
- function mt(e) {
597
- let t = z(e);
598
- for (; F(t) && !L(t);) {
599
- if (pt(t)) return t;
600
- if (lt(t)) return null;
601
- t = z(t);
602
- }
603
- return null;
604
- }
605
- function ht() {
606
- return ft ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ft;
607
- }
608
- function L(e) {
609
- return /^(html|body|#document)$/.test(j(e));
610
- }
611
- function R(e) {
612
- return M(e).getComputedStyle(e);
613
- }
614
- function gt(e) {
615
- return P(e) ? {
616
- scrollLeft: e.scrollLeft,
617
- scrollTop: e.scrollTop
618
- } : {
619
- scrollLeft: e.scrollX,
620
- scrollTop: e.scrollY
621
- };
622
- }
623
- function z(e) {
624
- if (j(e) === "html") return e;
625
- let t = e.assignedSlot || e.parentNode || ot(e) && e.host || N(e);
626
- return ot(t) ? t.host : t;
627
- }
628
- function _t(e) {
629
- let t = z(e);
630
- return L(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : F(t) && st(t) ? t : _t(t);
631
- }
632
- function B(e, t, n) {
633
- t === void 0 && (t = []), n === void 0 && (n = !0);
634
- let r = _t(e), i = r === e.ownerDocument?.body, a = M(r);
635
- if (i) {
636
- let e = vt(a);
637
- return t.concat(a, a.visualViewport || [], st(r) ? r : [], e && n ? B(e) : []);
638
- } else return t.concat(r, B(r, [], n));
639
- }
640
- function vt(e) {
641
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
642
- }
643
- //#endregion
644
- //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
645
- function yt(e) {
646
- let t = R(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 = ke(n) !== a || ke(r) !== o;
647
- return s && (n = a, r = o), {
648
- width: n,
649
- height: r,
650
- $: s
651
- };
652
- }
653
- function bt(e) {
654
- return P(e) ? e : e.contextElement;
655
- }
656
- function V(e) {
657
- let t = bt(e);
658
- if (!F(t)) return O(1);
659
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = yt(t), o = (a ? ke(n.width) : n.width) / r, s = (a ? ke(n.height) : n.height) / i;
660
- return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
661
- x: o,
662
- y: s
663
- };
664
- }
665
- var xt = /*#__PURE__*/ O(0);
666
- function St(e) {
667
- let t = M(e);
668
- return !ht() || !t.visualViewport ? xt : {
669
- x: t.visualViewport.offsetLeft,
670
- y: t.visualViewport.offsetTop
671
- };
672
- }
673
- function Ct(e, t, n) {
674
- return t === void 0 && (t = !1), !n || t && n !== M(e) ? !1 : t;
675
- }
676
- function H(e, t, n, r) {
677
- t === void 0 && (t = !1), n === void 0 && (n = !1);
678
- let i = e.getBoundingClientRect(), a = bt(e), o = O(1);
679
- t && (r ? P(r) && (o = V(r)) : o = V(e));
680
- let s = Ct(a, n, r) ? St(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;
681
- if (a) {
682
- let e = M(a), t = r && P(r) ? M(r) : r, n = e, i = vt(n);
683
- for (; i && r && t !== n;) {
684
- let e = V(i), t = i.getBoundingClientRect(), r = R(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
685
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = M(i), i = vt(n);
686
- }
687
- }
688
- return Ye({
689
- width: u,
690
- height: d,
691
- x: c,
692
- y: l
693
- });
694
- }
695
- function wt(e, t) {
696
- let n = gt(e).scrollLeft;
697
- return t ? t.left + n : H(N(e)).left + n;
698
- }
699
- function Tt(e, t) {
700
- let n = e.getBoundingClientRect();
701
- return {
702
- x: n.left + t.scrollLeft - wt(e, n),
703
- y: n.top + t.scrollTop
704
- };
705
- }
706
- function Et(e) {
707
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = N(r), s = t ? lt(t.floating) : !1;
708
- if (r === o || s && a) return n;
709
- let c = {
710
- scrollLeft: 0,
711
- scrollTop: 0
712
- }, l = O(1), u = O(0), d = F(r);
713
- if ((d || !d && !a) && ((j(r) !== "body" || st(o)) && (c = gt(r)), d)) {
714
- let e = H(r);
715
- l = V(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
716
- }
717
- let f = o && !d && !a ? Tt(o, c) : O(0);
718
- return {
719
- width: n.width * l.x,
720
- height: n.height * l.y,
721
- x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
722
- y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
723
- };
724
- }
725
- function Dt(e) {
726
- return Array.from(e.getClientRects());
727
- }
728
- function Ot(e) {
729
- let t = N(e), n = gt(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 + wt(e), s = -n.scrollTop;
730
- return R(r).direction === "rtl" && (o += D(t.clientWidth, r.clientWidth) - i), {
731
- width: i,
732
- height: a,
733
- x: o,
734
- y: s
735
- };
736
- }
737
- var kt = 25;
738
- function At(e, t) {
739
- let n = M(e), r = N(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
740
- if (i) {
741
- a = i.width, o = i.height;
742
- let e = ht();
743
- (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
744
- }
745
- let l = wt(r);
746
- if (l <= 0) {
747
- 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);
748
- o <= kt && (a -= o);
749
- } else l <= kt && (a += l);
750
- return {
751
- width: a,
752
- height: o,
753
- x: s,
754
- y: c
755
- };
756
- }
757
- function jt(e, t) {
758
- let n = H(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = F(e) ? V(e) : O(1);
759
- return {
760
- width: e.clientWidth * a.x,
761
- height: e.clientHeight * a.y,
762
- x: i * a.x,
763
- y: r * a.y
764
- };
765
- }
766
- function Mt(e, t, n) {
767
- let r;
768
- if (t === "viewport") r = At(e, n);
769
- else if (t === "document") r = Ot(N(e));
770
- else if (P(t)) r = jt(t, n);
771
- else {
772
- let n = St(e);
773
- r = {
774
- x: t.x - n.x,
775
- y: t.y - n.y,
776
- width: t.width,
777
- height: t.height
778
- };
779
- }
780
- return Ye(r);
781
- }
782
- function Nt(e, t) {
783
- let n = z(e);
784
- return n === t || !P(n) || L(n) ? !1 : R(n).position === "fixed" || Nt(n, t);
785
- }
786
- function Pt(e, t) {
787
- let n = t.get(e);
788
- if (n) return n;
789
- let r = B(e, [], !1).filter((e) => P(e) && j(e) !== "body"), i = null, a = R(e).position === "fixed", o = a ? z(e) : e;
790
- for (; P(o) && !L(o);) {
791
- let t = R(o), n = pt(o);
792
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || st(o) && !n && Nt(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = z(o);
793
- }
794
- return t.set(e, r), r;
795
- }
796
- function Ft(e) {
797
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? lt(t) ? [] : Pt(t, this._c) : [].concat(n), r], o = Mt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
798
- for (let e = 1; e < a.length; e++) {
799
- let n = Mt(t, a[e], i);
800
- s = D(n.top, s), c = Oe(n.right, c), l = Oe(n.bottom, l), u = D(n.left, u);
801
- }
802
- return {
803
- width: c - u,
804
- height: l - s,
805
- x: u,
806
- y: s
807
- };
808
- }
809
- function It(e) {
810
- let { width: t, height: n } = yt(e);
811
- return {
812
- width: t,
813
- height: n
814
- };
815
- }
816
- function Lt(e, t, n) {
817
- let r = F(t), i = N(t), a = n === "fixed", o = H(e, !0, a, t), s = {
818
- scrollLeft: 0,
819
- scrollTop: 0
820
- }, c = O(0);
821
- function l() {
822
- c.x = wt(i);
823
- }
824
- if (r || !r && !a) if ((j(t) !== "body" || st(i)) && (s = gt(t)), r) {
825
- let e = H(t, !0, a, t);
826
- c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
827
- } else i && l();
828
- a && !r && i && l();
829
- let u = i && !r && !a ? Tt(i, s) : O(0);
830
- return {
831
- x: o.left + s.scrollLeft - c.x - u.x,
832
- y: o.top + s.scrollTop - c.y - u.y,
833
- width: o.width,
834
- height: o.height
835
- };
836
- }
837
- function Rt(e) {
838
- return R(e).position === "static";
839
- }
840
- function zt(e, t) {
841
- if (!F(e) || R(e).position === "fixed") return null;
842
- if (t) return t(e);
843
- let n = e.offsetParent;
844
- return N(e) === n && (n = n.ownerDocument.body), n;
845
- }
846
- function Bt(e, t) {
847
- let n = M(e);
848
- if (lt(e)) return n;
849
- if (!F(e)) {
850
- let t = z(e);
851
- for (; t && !L(t);) {
852
- if (P(t) && !Rt(t)) return t;
853
- t = z(t);
854
- }
855
- return n;
856
- }
857
- let r = zt(e, t);
858
- for (; r && ct(r) && Rt(r);) r = zt(r, t);
859
- return r && L(r) && Rt(r) && !pt(r) ? n : r || mt(e) || n;
860
- }
861
- var Vt = async function(e) {
862
- let t = this.getOffsetParent || Bt, n = this.getDimensions, r = await n(e.floating);
863
- return {
864
- reference: Lt(e.reference, await t(e.floating), e.strategy),
865
- floating: {
866
- x: 0,
867
- y: 0,
868
- width: r.width,
869
- height: r.height
870
- }
871
- };
872
- };
873
- function Ht(e) {
874
- return R(e).direction === "rtl";
875
- }
876
- var Ut = {
877
- convertOffsetParentRelativeRectToViewportRelativeRect: Et,
878
- getDocumentElement: N,
879
- getClippingRect: Ft,
880
- getOffsetParent: Bt,
881
- getElementRects: Vt,
882
- getClientRects: Dt,
883
- getDimensions: It,
884
- getScale: V,
885
- isElement: P,
886
- isRTL: Ht
887
- };
888
- function Wt(e, t) {
889
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
890
- }
891
- function Gt(e, t) {
892
- let n = null, r, i = N(e);
893
- function a() {
894
- var e;
895
- clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
896
- }
897
- function o(s, c) {
898
- s === void 0 && (s = !1), c === void 0 && (c = 1), a();
899
- let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
900
- if (s || t(), !f || !p) return;
901
- let m = Ae(d), h = Ae(i.clientWidth - (u + f)), g = Ae(i.clientHeight - (d + p)), _ = Ae(u), v = {
902
- rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
903
- threshold: D(0, Oe(1, c)) || 1
904
- }, y = !0;
905
- function b(t) {
906
- let n = t[0].intersectionRatio;
907
- if (n !== c) {
908
- if (!y) return o();
909
- n ? o(!1, n) : r = setTimeout(() => {
910
- o(!1, 1e-7);
911
- }, 1e3);
912
- }
913
- n === 1 && !Wt(l, e.getBoundingClientRect()) && o(), y = !1;
914
- }
915
- try {
916
- n = new IntersectionObserver(b, {
917
- ...v,
918
- root: i.ownerDocument
919
- });
920
- } catch {
921
- n = new IntersectionObserver(b, v);
922
- }
923
- n.observe(e);
924
- }
925
- return o(!0), a;
926
- }
927
- function Kt(e, t, n, r) {
928
- r === void 0 && (r = {});
929
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = bt(e), u = i || a ? [...l ? B(l) : [], ...t ? B(t) : []] : [];
930
- u.forEach((e) => {
931
- i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
932
- });
933
- let d = l && s ? Gt(l, n) : null, f = -1, p = null;
934
- o && (p = new ResizeObserver((e) => {
935
- let [r] = e;
936
- r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
937
- var e;
938
- (e = p) == null || e.observe(t);
939
- })), n();
940
- }), l && !c && p.observe(l), t && p.observe(t));
941
- let m, h = c ? H(e) : null;
942
- c && g();
943
- function g() {
944
- let t = H(e);
945
- h && !Wt(h, t) && n(), h = t, m = requestAnimationFrame(g);
946
- }
947
- return n(), () => {
948
- var e;
949
- u.forEach((e) => {
950
- i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
951
- }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
952
- };
953
- }
954
- var qt = rt, Jt = et, Yt = (e, t, n) => {
955
- let r = /* @__PURE__ */ new Map(), i = {
956
- platform: Ut,
957
- ...n
958
- }, a = {
959
- ...i.platform,
960
- _c: r
961
- };
962
- return $e(e, t, {
963
- ...i,
964
- platform: a
965
- });
966
- }, Xt = /* @__PURE__ */ new WeakMap(), Zt = (e, t) => {
967
- Qt(e), Xt.set(e, t);
968
- }, Qt = (e) => {
969
- let t = Xt.get(e);
970
- t && (t(), Xt.delete(e));
971
- }, $t = ({ element: e, activeActions: t, getGridItemById: n, placementItemActionsMenu: r, renderOverlayContent: i, removeItemActionsMenuPopover: a, itemActionsDocumentPopover: o = !0 }) => {
972
- let s = e.querySelector(".grid-item-actions-popover"), c = e.querySelector(".grid-stack-item-content"), l = n(e.getAttribute("gs-id") ?? "");
973
- if (t && t.length > 0 && s && (a(e), s = null), !s) {
974
- let n = document.createDocumentFragment();
975
- v(i(l?.item, t), n), s = n.querySelector(".grid-item-actions-popover"), e.append(s);
976
- }
977
- let u = o ? "absolute" : "fixed", d = Kt(c, s, async () => {
978
- let { x: e, y: t } = await Yt(c, s, {
979
- placement: l?.item?.placementActionsMenu ?? r ?? "right-start",
980
- strategy: u,
981
- middleware: [qt(0), Jt({ crossAxis: !1 })]
982
- });
983
- 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");
984
- });
985
- Zt(s, d), o && s.isConnected && !s.matches(":popover-open") && s.showPopover();
986
- }, en = (e) => {
987
- let t = e.querySelector(".grid-item-actions-popover");
988
- t && (Qt(t), t.hasAttribute("popover") && t.matches(":popover-open") && t.hidePopover(), t.remove());
989
- }, tn = (e) => e === "ArrowLeft" || e === "ArrowRight" || e === "ArrowUp" || e === "ArrowDown", nn = ({ key: e, node: t, maxColumns: n, shiftKey: r, ctrlKey: i, metaKey: a }) => {
990
- let o = {
991
- ArrowLeft: {
992
- move: { x: t.x - 1 },
993
- resize: {
994
- x: t.x - 1,
995
- w: t.w + 1
996
- },
997
- shrink: { w: t.w - 1 },
998
- canMove: t.x > 0,
999
- canResize: t.x > 0,
1000
- canShrink: t.w > 1
1001
- },
1002
- ArrowRight: {
1003
- move: { x: t.x + 1 },
1004
- resize: { w: t.w + 1 },
1005
- shrink: {
1006
- x: t.x + 1,
1007
- w: t.w - 1
1008
- },
1009
- canMove: t.x < n - t.w,
1010
- canResize: t.x + t.w < n,
1011
- canShrink: t.w > 1
1012
- },
1013
- ArrowUp: {
1014
- move: { y: t.y - 1 },
1015
- resize: {
1016
- y: t.y - 1,
1017
- h: t.h + 1
1018
- },
1019
- shrink: { h: t.h - 1 },
1020
- canMove: t.y > 0,
1021
- canResize: t.y > 0,
1022
- canShrink: t.h > 1
1023
- },
1024
- ArrowDown: {
1025
- move: { y: t.y + 1 },
1026
- resize: { h: t.h + 1 },
1027
- shrink: {
1028
- y: t.y + 1,
1029
- h: t.h - 1
1030
- },
1031
- canMove: !0,
1032
- canResize: !0,
1033
- canShrink: t.h > 1
1034
- }
1035
- }[e];
1036
- if (r && o.canResize) return o.resize;
1037
- if ((i || a) && o.canShrink) return o.shrink;
1038
- if (o.canMove) return o.move;
1039
- }, rn = ({ event: e, viewMode: t, focusedItemElement: n, activeItemElement: r, gridElement: i, grid: a, columns: o, onDeleteRequest: s, removeItemActionsMenuPopover: c, createItemActionsMenuPopover: l }) => {
1040
- if (t) return {
1041
- focusedItemElement: n,
1042
- activeItemElement: r
1043
- };
1044
- let u = n, d = r;
1045
- if (e.key === "Delete" && n) {
1046
- let e = n.nextElementSibling ?? n.previousElementSibling;
1047
- s(n), u = e ?? void 0, u ? requestAnimationFrame(() => u?.focus()) : i.focus(), r === n && (d = void 0);
1048
- } else if (e.key === "Escape" && n) n.removeAttribute("focused"), c(n), u = void 0, i.focus();
1049
- 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) => {
1050
- e !== n && c(e);
1051
- }), l(n), requestAnimationFrame(() => {
1052
- let e = n.querySelector("luzmo-item-grid-item-actions-menu");
1053
- e && e.focus();
1054
- });
1055
- else if (n && a && tn(e.key)) {
1056
- e.preventDefault(), e.stopPropagation();
1057
- let t = n.gridstackNode;
1058
- if (!t) return {
1059
- focusedItemElement: u,
1060
- activeItemElement: d
1061
- };
1062
- let r = nn({
1063
- key: e.key,
1064
- node: t,
1065
- maxColumns: o,
1066
- shiftKey: e.shiftKey,
1067
- ctrlKey: e.ctrlKey,
1068
- metaKey: e.metaKey
1069
- });
1070
- r && a.update(n, r);
1071
- }
1072
- return {
1073
- focusedItemElement: u,
1074
- activeItemElement: d
1075
- };
1076
- }, U = {
1077
- lock: {
1078
- icon: f,
1079
- label: "Lock",
1080
- tooltip: "Lock",
1081
- action: "lock",
1082
- type: "toggle"
1083
- },
1084
- edit: {
1085
- icon: p,
1086
- label: "Edit",
1087
- tooltip: "Edit",
1088
- action: "edit",
1089
- type: "toggle"
1090
- },
1091
- "edit-data": {
1092
- icon: m,
1093
- label: "Edit data",
1094
- tooltip: "Data",
1095
- action: "edit-data",
1096
- type: "toggle"
1097
- },
1098
- "item-options": {
1099
- icon: u,
1100
- label: "Item options",
1101
- tooltip: "Options",
1102
- action: "item-options",
1103
- type: "toggle"
1104
- },
1105
- filters: {
1106
- icon: d,
1107
- label: "Filters",
1108
- tooltip: "Filters",
1109
- action: "filters",
1110
- type: "toggle"
1111
- },
1112
- clone: {
1113
- icon: l,
1114
- label: "Clone",
1115
- tooltip: "Clone",
1116
- action: "clone",
1117
- type: "button"
1118
- },
1119
- delete: {
1120
- icon: h,
1121
- label: "Delete",
1122
- tooltip: "Delete",
1123
- action: "delete",
1124
- type: "button"
1125
- }
1126
- }, an = (e) => {
1127
- if (e) return structuredClone(e).map((e) => {
1128
- if (e.type === "group") return e.actions = e.actions ?? [], e.actions = e.actions.map((e) => {
1129
- if (typeof e == "string" && Object.hasOwn(U, e)) return { ...U[e] };
1130
- if (typeof e == "object") return e.icon = e.icon ?? c, 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;
1131
- }).filter(Boolean), e;
1132
- }).filter(Boolean);
1133
- }, on = () => [{
1134
- type: "group",
1135
- actions: [
1136
- { ...U["edit-data"] },
1137
- { ...U["item-options"] },
1138
- { ...U.clone }
1139
- ]
1140
- }, {
1141
- type: "group",
1142
- actions: [{ ...U.delete }]
1143
- }], sn = 16, cn = 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})`, ln = async ({ theme: e, currentTheme: t }) => e?.type === "custom" ? structuredClone(e) : e?.id && i.includes(e.id) && t?.id !== e.id ? {
1144
- ...await a(e.id),
1145
- id: e.id
1146
- } : e?.id && t?.id !== e.id || !e && t ? t : await a("default"), un = (e) => [(e?.margins?.[0] ?? sn) / 2, (e?.margins?.[1] ?? sn) / 2], dn = (e) => cn - (e?.margins?.[0] ?? cn), fn = (e) => {
1147
- let t = e?.boxShadow;
1148
- if (!t) return "";
1149
- let n = new r(t.color), i = {
1150
- r: Math.round(n.srgb.r * 255),
1151
- g: Math.round(n.srgb.g * 255),
1152
- b: Math.round(n.srgb.b * 255)
1153
- }, a = e?.margins?.[0] ?? sn, o = Math.min(a / 10, 2);
1154
- return t.size === "none" ? "none" : t.size === "S" ? `0 ${o * 2}px ${o * 4}px ${W(i, .16)}, 0 ${o * 2}px ${o * 4}px ${W(i, .23)}` : t.size === "M" ? `0 ${o * 8}px ${o * 16}px ${W(i, .19)}, 0 ${o * 4}px ${o * 4}px ${W(i, .23)}` : t.size === "L" ? `0 ${o * 12}px ${o * 24}px ${W(i, .25)}, 0 ${o * 8}px ${o * 8}px ${W(i, .22)}` : "";
1155
- }, pn = (e) => {
1156
- let t = fn(e);
1157
- return /* @__PURE__ */ new Map([
1158
- ["--grid-font-family", e?.font?.fontFamily],
1159
- ["--grid-background", e?.background],
1160
- ["--grid-item-box-shadow", t],
1161
- ["--grid-item-background", e?.itemsBackground],
1162
- ["--grid-item-border-color", e?.borders?.["border-color"]],
1163
- ["--grid-item-border-style", e?.borders?.["border-style"]],
1164
- ["--grid-item-border-radius", e?.borders?.["border-radius"]],
1165
- ["--grid-item-border-width", `${e?.borders?.["border-top-width"]}`],
1166
- ["--grid-item-border-top-width", e?.borders?.["border-top-width"]],
1167
- ["--grid-item-border-right-width", e?.borders?.["border-right-width"]],
1168
- ["--grid-item-border-bottom-width", e?.borders?.["border-bottom-width"]],
1169
- ["--grid-item-border-left-width", e?.borders?.["border-left-width"]]
1170
- ]);
1171
- }, mn = (e) => {
1172
- let t = e?.itemsBackground ?? e?.background;
1173
- return t ? new r(t).luminance < .5 : !1;
1174
- }, hn = (e, t) => {
1175
- t && pn(t).forEach((t, n) => {
1176
- t ? e.setProperty(n, t) : e.removeProperty(n);
1177
- });
1178
- }, gn = ({ item: e, defaultItemActionsMenu: t, activeActions: n }) => {
1179
- let r = an(e?.actionsMenu) ?? an(t) ?? on();
1180
- if (!o.find((t) => t.type === e?.type)?.containsData && !e?.actionsMenu && !t && (r = r.map((e) => ({
1181
- ...e,
1182
- actions: e.actions?.filter((e) => e.action !== "edit-data")
1183
- }))), n && n.length > 0) {
1184
- let e = new Set(n);
1185
- r = r.map((t) => ({
1186
- ...t,
1187
- actions: t.actions?.map((t) => ({
1188
- ...t,
1189
- active: t.action && e.has(t.action) ? !0 : t.active
1190
- }))
1191
- }));
1192
- }
1193
- return r;
1194
- }, _n = ({ item: e, activeActions: t, defaultItemActionsMenu: n, placementItemActionsMenu: r, language: i, handleAction: a, itemActionsDocumentPopover: o = !0 }) => {
1195
- let s = gn({
1196
- item: e,
1197
- defaultItemActionsMenu: n,
1198
- activeActions: t
1199
- });
1200
- return g`
1201
- <div class="grid-item-actions-popover" popover=${o ? "manual" : _}>
1202
- <luzmo-item-grid-item-actions-menu
1203
- .actions=${s}
1204
- placement=${e?.placementActionsMenu ?? r ?? "right-start"}
1205
- .language=${i}
1206
- @luzmo-item-grid-item-action=${a}
1207
- >
1208
- </luzmo-item-grid-item-actions-menu>
1209
- </div>
1210
- `;
1211
- }, vn = ({ item: e, index: t, initialized: n, viewMode: r, contentLanguage: i, fullTheme: a, appServer: o, apiHost: c, authKey: l, authToken: u, handleMouseover: d, handleMouseout: f, handleFocus: p, handleBlur: m }) => {
1212
- let h = {
1213
- ...e.options,
1214
- locale: i
1215
- };
1216
- h.theme ||= a?.id ? { id: a.id } : structuredClone(a);
1217
- let _ = !r;
1218
- return g`
1219
- <div
1220
- class="luzmo-item-grid-item has-luzmo-viz-item"
1221
- luzmo-item-grid-item-id=${e.id ?? ""}
1222
- tabindex="0"
1223
- role="row"
1224
- @mouseover=${d}
1225
- @mouseout=${f}
1226
- @focus=${p}
1227
- @blur=${m}
1228
- >
1229
- <div
1230
- class="grid-stack-item-content"
1231
- role="gridcell"
1232
- aria-label=${w("Grid item", { desc: "Accessible label prefix for grid items" }) + ` ${t + 1}`}
1233
- >
1234
- ${_ ? g`
1235
- <div class="grid-item-drag-handle">
1236
- <luzmo-icon .icon=${s} size="s"></luzmo-icon>
1237
- </div>
1238
- ` : g`
1239
-
1240
- `}
1241
- ${n ? g`
1242
- <luzmo-embed-viz-item
1243
- .appServer=${o}
1244
- .apiHost=${c}
1245
- .authKey=${l}
1246
- .authToken=${u}
1247
- .type=${e.type}
1248
- .slots=${e.slots}
1249
- .options=${h}
1250
- .filters=${e.filters}
1251
- .language=${i}
1252
- .canFilter=${e.canFilter ?? "all"}
1253
- ></luzmo-embed-viz-item>` : g`
1254
-
1255
- `}
1256
- </div>
1257
- </div>
1258
- `;
1259
- }, yn = ({ items: e, initialized: t, viewMode: n, contentLanguage: r, fullTheme: i, appServer: a, apiHost: o, authKey: s, authToken: c, renderItem: l }) => te(e, (e) => e.id, (e, u) => ne([
1260
- e,
1261
- t,
1262
- n,
1263
- r,
1264
- i,
1265
- a,
1266
- o,
1267
- s,
1268
- c
1269
- ], () => l(e, u))), bn = ({ 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 }) => {
1270
- e.forEach((e) => {
1271
- u(e);
1272
- });
1273
- let h = yn({
1274
- items: e,
1275
- initialized: t,
1276
- viewMode: n,
1277
- contentLanguage: r,
1278
- fullTheme: i,
1279
- appServer: a,
1280
- apiHost: o,
1281
- authKey: s,
1282
- authToken: c,
1283
- renderItem: (e, l) => vn({
1284
- item: e,
1285
- index: l,
1286
- initialized: t,
1287
- viewMode: n,
1288
- contentLanguage: r,
1289
- fullTheme: i,
1290
- appServer: a,
1291
- apiHost: o,
1292
- authKey: s,
1293
- authToken: c,
1294
- handleMouseover: d,
1295
- handleMouseout: f,
1296
- handleFocus: p,
1297
- handleBlur: m
1298
- })
1299
- });
1300
- return g`
1301
- <div
1302
- ?dark-background=${t ? mn(i) : !1}
1303
- class="grid-stack"
1304
- data-grid-columns=${l}
1305
- role="grid"
1306
- aria-label=${w("Dashboard grid", { desc: "Accessible label for the dashboard grid" })}
1307
- >
1308
- ${h}
1309
- </div>
1310
- `;
1311
- }, G = class e {
1312
- static getElements(e, t = document) {
1313
- if (typeof e == "string") {
1314
- let n = "getElementById" in t ? t : void 0;
1315
- if (n && !isNaN(+e[0])) {
1316
- let t = n.getElementById(e);
1317
- return t ? [t] : [];
1318
- }
1319
- let r = t.querySelectorAll(e);
1320
- if (!r.length && e[0] !== "." && e[0] !== "#" && (r = t.querySelectorAll("." + e), r.length || (r = t.querySelectorAll("#" + e)), !r.length)) {
1321
- let n = t.querySelector(`[gs-id="${e}"]`);
1322
- return n ? [n] : [];
1323
- }
1324
- return Array.from(r);
1325
- }
1326
- return [e];
1327
- }
1328
- static getElement(e, t = document) {
1329
- if (typeof e == "string") {
1330
- let n = "getElementById" in t ? t : void 0;
1331
- if (!e.length) return null;
1332
- if (n && e[0] === "#") return n.getElementById(e.substring(1));
1333
- if (e[0] === "#" || e[0] === "." || e[0] === "[") return t.querySelector(e);
1334
- if (n && !isNaN(+e[0])) return n.getElementById(e);
1335
- let r = t.querySelector(e);
1336
- return n && !r && (r = n.getElementById(e)), r ||= t.querySelector("." + e), r;
1337
- }
1338
- return e;
1339
- }
1340
- static lazyLoad(e) {
1341
- return e.lazyLoad || e.grid?.opts?.lazyLoad && e.lazyLoad !== !1;
1342
- }
1343
- static createDiv(e, t) {
1344
- let n = document.createElement("div");
1345
- return e.forEach((e) => {
1346
- e && n.classList.add(e);
1347
- }), t?.appendChild(n), n;
1348
- }
1349
- static shouldSizeToContent(e, t = !1) {
1350
- 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);
1351
- }
1352
- static isIntercepted(e, t) {
1353
- 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);
1354
- }
1355
- static isTouching(t, n) {
1356
- return e.isIntercepted(t, {
1357
- x: n.x - .5,
1358
- y: n.y - .5,
1359
- w: n.w + 1,
1360
- h: n.h + 1
1361
- });
1362
- }
1363
- static areaIntercept(e, t) {
1364
- 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;
1365
- if (r <= n) return 0;
1366
- 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;
1367
- return a <= i ? 0 : (r - n) * (a - i);
1368
- }
1369
- static area(e) {
1370
- return e.w * e.h;
1371
- }
1372
- static sort(e, t = 1) {
1373
- let n = 1e4;
1374
- return e.sort((e, r) => {
1375
- let i = t * ((e.y ?? n) - (r.y ?? n));
1376
- return i === 0 ? t * ((e.x ?? n) - (r.x ?? n)) : i;
1377
- });
1378
- }
1379
- static find(e, t) {
1380
- return t ? e.find((e) => e.id === t) : void 0;
1381
- }
1382
- static toBool(e) {
1383
- return typeof e == "boolean" ? e : typeof e == "string" ? (e = e.toLowerCase(), !(e === "" || e === "no" || e === "false" || e === "0")) : !!e;
1384
- }
1385
- static toNumber(e) {
1386
- return e === null || e.length === 0 ? void 0 : Number(e);
1387
- }
1388
- static parseHeight(e) {
1389
- let t, n = "px";
1390
- if (typeof e == "string") if (e === "auto" || e === "") t = 0;
1391
- else {
1392
- let r = e.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);
1393
- if (!r) throw Error(`Invalid height val = ${e}`);
1394
- n = r[2] || "px", t = parseFloat(r[1]);
1395
- }
1396
- else t = e;
1397
- return {
1398
- h: t,
1399
- unit: n
1400
- };
1401
- }
1402
- static defaults(t, ...n) {
1403
- return n.forEach((n) => {
1404
- for (let r in n) {
1405
- if (!n.hasOwnProperty(r)) return;
1406
- 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]);
1407
- }
1408
- }), t;
1409
- }
1410
- static same(e, t) {
1411
- if (typeof e != "object") return e == t;
1412
- if (typeof e != typeof t || Object.keys(e).length !== Object.keys(t).length) return !1;
1413
- for (let n in e) if (e[n] !== t[n]) return !1;
1414
- return !0;
1415
- }
1416
- static copyPos(e, t, n = !1) {
1417
- 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;
1418
- }
1419
- static samePos(e, t) {
1420
- return e && t && e.x === t.x && e.y === t.y && (e.w || 1) === (t.w || 1) && (e.h || 1) === (t.h || 1);
1421
- }
1422
- static sanitizeMinMax(e) {
1423
- e.minW || delete e.minW, e.minH || delete e.minH, e.maxW || delete e.maxW, e.maxH || delete e.maxH;
1424
- }
1425
- static removeInternalAndSame(t, n) {
1426
- if (!(typeof t != "object" || typeof n != "object") && !(Array.isArray(t) || Array.isArray(n))) for (let r in t) {
1427
- let i = t[r], a = n[r];
1428
- r[0] === "_" || i === a ? delete t[r] : i && typeof i == "object" && a !== void 0 && (e.removeInternalAndSame(i, a), Object.keys(i).length || delete t[r]);
1429
- }
1430
- }
1431
- static removeInternalForSave(e, t = !0) {
1432
- for (let t in e) (t[0] === "_" || e[t] === null || e[t] === void 0) && delete e[t];
1433
- 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;
1434
- }
1435
- static throttle(e, t) {
1436
- let n = !1;
1437
- return (...r) => {
1438
- n || (n = !0, setTimeout(() => {
1439
- e(...r), n = !1;
1440
- }, t));
1441
- };
1442
- }
1443
- static removePositioningStyles(e) {
1444
- let t = e.style;
1445
- 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");
1446
- }
1447
- static getScrollElement(t) {
1448
- if (!t) return document.scrollingElement || document.documentElement;
1449
- let n = getComputedStyle(t).overflowY;
1450
- return (n === "auto" || n === "scroll") && t.scrollHeight > t.clientHeight ? t : e.getScrollElement(t.parentElement);
1451
- }
1452
- static updateScrollResize(t, n, r) {
1453
- 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;
1454
- c ? i.scrollBy({
1455
- behavior: "smooth",
1456
- top: s - r
1457
- }) : l && i.scrollBy({
1458
- behavior: "smooth",
1459
- top: r - (a - s)
1460
- });
1461
- }
1462
- static clone(e) {
1463
- return typeof e != "object" || !e ? e : e instanceof Array ? [...e] : { ...e };
1464
- }
1465
- static cloneDeep(t) {
1466
- let n = [
1467
- "parentGrid",
1468
- "el",
1469
- "grid",
1470
- "subGrid",
1471
- "engine"
1472
- ], r = e.clone(t);
1473
- for (let i in r) r.hasOwnProperty(i) && typeof r[i] == "object" && i.substring(0, 2) !== "__" && !n.find((e) => e === i) && (r[i] = e.cloneDeep(t[i]));
1474
- return r;
1475
- }
1476
- static cloneNode(e) {
1477
- let t = e.cloneNode(!0);
1478
- return t.removeAttribute("id"), t;
1479
- }
1480
- static appendTo(t, n) {
1481
- let r;
1482
- r = typeof n == "string" ? e.getElement(n) : n, r && r.appendChild(t);
1483
- }
1484
- static addElStyles(e, t) {
1485
- if (t instanceof Object) for (let n in t) t.hasOwnProperty(n) && (Array.isArray(t[n]) ? t[n].forEach((t) => {
1486
- e.style[n] = t;
1487
- }) : e.style[n] = t[n]);
1488
- }
1489
- static initEvent(e, t) {
1490
- let n = { type: t.type }, r = {
1491
- button: 0,
1492
- which: 0,
1493
- buttons: 1,
1494
- bubbles: !0,
1495
- cancelable: !0,
1496
- target: t.target ? t.target : e.target
1497
- };
1498
- return [
1499
- "altKey",
1500
- "ctrlKey",
1501
- "metaKey",
1502
- "shiftKey"
1503
- ].forEach((t) => n[t] = e[t]), [
1504
- "pageX",
1505
- "pageY",
1506
- "clientX",
1507
- "clientY",
1508
- "screenX",
1509
- "screenY"
1510
- ].forEach((t) => n[t] = e[t]), {
1511
- ...n,
1512
- ...r
1513
- };
1514
- }
1515
- static simulateMouseEvent(e, t, n) {
1516
- let r = e, i = new MouseEvent(t, {
1517
- bubbles: !0,
1518
- composed: !0,
1519
- cancelable: !0,
1520
- view: window,
1521
- detail: 1,
1522
- screenX: e.screenX,
1523
- screenY: e.screenY,
1524
- clientX: e.clientX,
1525
- clientY: e.clientY,
1526
- ctrlKey: r.ctrlKey ?? !1,
1527
- altKey: r.altKey ?? !1,
1528
- shiftKey: r.shiftKey ?? !1,
1529
- metaKey: r.metaKey ?? !1,
1530
- button: 0,
1531
- relatedTarget: e.target
1532
- });
1533
- (n || e.target).dispatchEvent(i);
1534
- }
1535
- static getValuesFromTransformedElement(t) {
1536
- let n = document.createElement("div");
1537
- e.addElStyles(n, {
1538
- opacity: "0",
1539
- position: "fixed",
1540
- top: "0px",
1541
- left: "0px",
1542
- width: "1px",
1543
- height: "1px",
1544
- zIndex: "-999999"
1545
- }), t.appendChild(n);
1546
- let r = n.getBoundingClientRect();
1547
- return t.removeChild(n), n.remove(), {
1548
- xScale: 1 / r.width,
1549
- yScale: 1 / r.height,
1550
- xOffset: r.left,
1551
- yOffset: r.top
1552
- };
1553
- }
1554
- static swap(e, t, n) {
1555
- if (!e) return;
1556
- let r = e[t];
1557
- e[t] = e[n], e[n] = r;
1558
- }
1559
- static canBeRotated(e) {
1560
- 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);
1561
- }
1562
- }, xn = class e {
1563
- constructor(e = {}) {
1564
- 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, this._float = e.float, this.nodes = e.nodes || [], this.onChange = e.onChange;
1565
- }
1566
- batchUpdate(e = !0, t = !0) {
1567
- return !!this.batchMode === e ? this : (this.batchMode = e, e ? (this._prevFloat = this._float, this._float = !0, this.cleanNodes(), this.saveInitial()) : (this._float = this._prevFloat, delete this._prevFloat, t && this._packNodes(), this._notify()), this);
1568
- }
1569
- _useEntireRowArea(e, t) {
1570
- return (!this.float || this.batchMode && !this._prevFloat) && !this._hasLocked && (!e._moving || e._skipDown || t.y <= e.y);
1571
- }
1572
- _fixCollisions(e, t = e, n, r = {}) {
1573
- if (this.sortNodes(-1), n ||= this.collide(e, t), !n) return !1;
1574
- if (e._moving && !r.nested && !this.float && this.swap(e, n)) return !0;
1575
- let i = t;
1576
- !this._loading && this._useEntireRowArea(e, t) && (i = {
1577
- x: 0,
1578
- w: this.column,
1579
- y: t.y,
1580
- h: t.h
1581
- }, n = this.collide(e, i, r.skip));
1582
- let a = !1, o = {
1583
- nested: !0,
1584
- pack: !1
1585
- }, s = 0;
1586
- for (; n ||= this.collide(e, i, r.skip);) {
1587
- if (s++ > this.nodes.length * 2) throw Error("Infinite collide check");
1588
- let i;
1589
- if (n.locked || this._loading || e._moving && !e._skipDown && t.y > e.y && !this.float && (!this.collide(n, {
1590
- ...n,
1591
- y: e.y
1592
- }, e) || !this.collide(n, {
1593
- ...n,
1594
- y: t.y - n.h
1595
- }, e))) {
1596
- e._skipDown = e._skipDown || t.y > e.y;
1597
- let s = {
1598
- ...t,
1599
- y: n.y + n.h,
1600
- ...o
1601
- };
1602
- 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;
1603
- } else i = this.moveNode(n, {
1604
- ...n,
1605
- y: t.y + t.h,
1606
- skip: e,
1607
- ...o
1608
- });
1609
- if (!i) return a;
1610
- n = void 0;
1611
- }
1612
- return a;
1613
- }
1614
- collide(e, t = e, n) {
1615
- let r = e._id, i = n?._id;
1616
- return this.nodes.find((e) => e._id !== r && e._id !== i && G.isIntercepted(e, t));
1617
- }
1618
- collideAll(e, t = e, n) {
1619
- let r = e._id, i = n?._id;
1620
- return this.nodes.filter((e) => e._id !== r && e._id !== i && G.isIntercepted(e, t));
1621
- }
1622
- directionCollideCoverage(e, t, n) {
1623
- if (!t.rect || !e._rect) return;
1624
- let r = e._rect, i = { ...t.rect };
1625
- i.y > r.y ? (i.h += i.y - r.y, i.y = r.y) : i.h += r.y - i.y, i.x > r.x ? (i.w += i.x - r.x, i.x = r.x) : i.w += r.x - i.x;
1626
- let a, o = .5;
1627
- for (let e of n) {
1628
- if (e.locked || !e._rect) break;
1629
- let t = e._rect, n = Number.MAX_VALUE, s = Number.MAX_VALUE;
1630
- 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);
1631
- let c = Math.min(s, n);
1632
- c > o && (o = c, a = e);
1633
- }
1634
- return t.collide = a, a;
1635
- }
1636
- cacheRects(e, t, n, r, i, a) {
1637
- return this.nodes.forEach((o) => o._rect = {
1638
- y: o.y * t + n,
1639
- x: o.x * e + a,
1640
- w: o.w * e - a - r,
1641
- h: o.h * t - n - i
1642
- }), this;
1643
- }
1644
- swap(e, t) {
1645
- if (!t || t.locked || !e || e.locked) return !1;
1646
- function n() {
1647
- let n = t.x, r = t.y;
1648
- 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;
1649
- }
1650
- let r;
1651
- if (e.w === t.w && e.h === t.h && (e.x === t.x || e.y === t.y) && (r = G.isTouching(e, t))) return n();
1652
- if (r !== !1) {
1653
- if (e.w === t.w && e.x === t.x && (r ||= G.isTouching(e, t))) {
1654
- if (t.y < e.y) {
1655
- let n = e;
1656
- e = t, t = n;
1657
- }
1658
- return n();
1659
- }
1660
- if (r !== !1) {
1661
- if (e.h === t.h && e.y === t.y && (r ||= G.isTouching(e, t))) {
1662
- if (t.x < e.x) {
1663
- let n = e;
1664
- e = t, t = n;
1665
- }
1666
- return n();
1667
- }
1668
- return !1;
1669
- }
1670
- }
1671
- }
1672
- isAreaEmpty(e, t, n, r) {
1673
- let i = {
1674
- x: e || 0,
1675
- y: t || 0,
1676
- w: n || 1,
1677
- h: r || 1
1678
- };
1679
- return !this.collide(i);
1680
- }
1681
- compact(e = "compact", t = !0) {
1682
- if (this.nodes.length === 0) return this;
1683
- t && this.sortNodes();
1684
- let n = this.batchMode;
1685
- n || this.batchUpdate();
1686
- let r = this._inColumnResize;
1687
- r || (this._inColumnResize = !0);
1688
- let i = this.nodes;
1689
- return this.nodes = [], i.forEach((t, n, r) => {
1690
- let i;
1691
- t.locked || (t.autoPosition = !0, e === "list" && n && (i = r[n - 1])), this.addNode(t, !1, i);
1692
- }), r || delete this._inColumnResize, n || this.batchUpdate(!1), this;
1693
- }
1694
- set float(e) {
1695
- this._float !== e && (this._float = e || !1, e || this._packNodes()._notify());
1696
- }
1697
- get float() {
1698
- return this._float || !1;
1699
- }
1700
- sortNodes(e = 1) {
1701
- return this.nodes = G.sort(this.nodes, e), this;
1702
- }
1703
- _packNodes() {
1704
- return this.batchMode ? this : (this.sortNodes(), this.float ? this.nodes.forEach((e) => {
1705
- if (e._updating || e._orig === void 0 || e.y === e._orig.y) return;
1706
- let t = e.y;
1707
- for (; t > e._orig.y;) --t, this.collide(e, {
1708
- x: e.x,
1709
- y: t,
1710
- w: e.w,
1711
- h: e.h
1712
- }) || (e._dirty = !0, e.y = t);
1713
- }) : this.nodes.forEach((e, t) => {
1714
- if (!e.locked) for (; e.y > 0;) {
1715
- let n = t === 0 ? 0 : e.y - 1;
1716
- if (!(t === 0 || !this.collide(e, {
1717
- x: e.x,
1718
- y: n,
1719
- w: e.w,
1720
- h: e.h
1721
- }))) break;
1722
- e._dirty = e.y !== n, e.y = n;
1723
- }
1724
- }), this);
1725
- }
1726
- prepareNode(t, n) {
1727
- t._id = t._id ?? e._idSeq++;
1728
- let r = t.id;
1729
- if (r) {
1730
- let e = 1;
1731
- for (; this.nodes.find((e) => e.id === t.id && e !== t);) t.id = r + "_" + e++;
1732
- }
1733
- (t.x === void 0 || t.y === void 0 || t.x === null || t.y === null) && (t.autoPosition = !0);
1734
- let i = {
1735
- x: 0,
1736
- y: 0,
1737
- w: 1,
1738
- h: 1
1739
- };
1740
- 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;
1741
- }
1742
- nodeBoundFix(e, t) {
1743
- let n = e._orig || G.copyPos({}, e);
1744
- if (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) {
1745
- let t = { ...e };
1746
- 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);
1747
- }
1748
- 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;
1749
- }
1750
- getDirtyNodes(e) {
1751
- return e ? this.nodes.filter((e) => e._dirty && !G.samePos(e, e._orig)) : this.nodes.filter((e) => e._dirty);
1752
- }
1753
- _notify(e) {
1754
- if (this.batchMode || !this.onChange) return this;
1755
- let t = (e || []).concat(this.getDirtyNodes());
1756
- return this.onChange(t), this;
1757
- }
1758
- cleanNodes() {
1759
- return this.batchMode || this.nodes.forEach((e) => {
1760
- delete e._dirty, delete e._lastTried;
1761
- }), this;
1762
- }
1763
- saveInitial() {
1764
- return this.nodes.forEach((e) => {
1765
- e._orig = G.copyPos({}, e), delete e._dirty;
1766
- }), this._hasLocked = this.nodes.some((e) => e.locked), this;
1767
- }
1768
- restoreInitial() {
1769
- return this.nodes.forEach((e) => {
1770
- !e._orig || G.samePos(e, e._orig) || (G.copyPos(e, e._orig), e._dirty = !0);
1771
- }), this._notify(), this;
1772
- }
1773
- findEmptyPosition(e, t = this.nodes, n = this.column, r) {
1774
- let i = r ? r.y * n + (r.x + r.w) : 0, a = !1;
1775
- for (let r = i; !a; ++r) {
1776
- let i = r % n, o = Math.floor(r / n);
1777
- if (i + e.w > n) continue;
1778
- let s = {
1779
- x: i,
1780
- y: o,
1781
- w: e.w,
1782
- h: e.h
1783
- };
1784
- 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);
1785
- }
1786
- return a;
1787
- }
1788
- addNode(e, t = !1, n) {
1789
- let r = this.nodes.find((t) => t._id === e._id);
1790
- if (r) return r;
1791
- this._inColumnResize ? this.nodeBoundFix(e) : this.prepareNode(e), delete e._temporaryRemoved, delete e._removeDOM;
1792
- let i;
1793
- return e.autoPosition && this.findEmptyPosition(e, this.nodes, this.column, n) && (delete e.autoPosition, i = !0), this.nodes.push(e), t && this.addedNodes.push(e), i || this._fixCollisions(e), this.batchMode || this._packNodes()._notify(), e;
1794
- }
1795
- removeNode(e, t = !0, n = !1) {
1796
- 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;
1797
- }
1798
- removeAll(e = !0, t = !0) {
1799
- if (delete this._layouts, !this.nodes.length) return this;
1800
- e && this.nodes.forEach((e) => e._removeDOM = !0);
1801
- let n = this.nodes;
1802
- return this.removedNodes = t ? n : [], this.nodes = [], this._notify(n);
1803
- }
1804
- moveNodeCheck(t, n) {
1805
- if (!this.changedPosConstrain(t, n)) return !1;
1806
- if (n.pack = !0, !this.maxRow) return this.moveNode(t, n);
1807
- let r, i = new e({
1808
- column: this.column,
1809
- float: this.float,
1810
- nodes: this.nodes.map((e) => e._id === t._id ? (r = { ...e }, r) : { ...e })
1811
- });
1812
- if (!r) return !1;
1813
- let a = i.moveNode(r, n) && i.getRow() <= Math.max(this.getRow(), this.maxRow);
1814
- if (!a && !n.resizing && n.collide) {
1815
- let e = n.collide.el.gridstackNode;
1816
- if (this.swap(t, e)) return this._notify(), !0;
1817
- }
1818
- return a ? (i.nodes.filter((e) => e._dirty).forEach((e) => {
1819
- let t = this.nodes.find((t) => t._id === e._id);
1820
- t && (G.copyPos(t, e), t._dirty = !0);
1821
- }), this._notify(), !0) : !1;
1822
- }
1823
- willItFit(t) {
1824
- if (delete t._willFitPos, !this.maxRow) return !0;
1825
- let n = new e({
1826
- column: this.column,
1827
- float: this.float,
1828
- nodes: this.nodes.map((e) => ({ ...e }))
1829
- }), r = { ...t };
1830
- 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;
1831
- }
1832
- changedPosConstrain(e, t) {
1833
- 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);
1834
- }
1835
- moveNode(e, t) {
1836
- if (!e || !t) return !1;
1837
- let n;
1838
- 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);
1839
- let r = e.w !== t.w || e.h !== t.h, i = G.copyPos({}, e, !0);
1840
- if (G.copyPos(i, t), this.nodeBoundFix(i, r), G.copyPos(t, i), !t.forceCollide && G.samePos(e, t)) return !1;
1841
- let a = G.copyPos({}, e), o = this.collideAll(e, i, t.skip), s = !0;
1842
- if (o.length) {
1843
- let r = e._moving && !t.nested, a = r ? this.directionCollideCoverage(e, t, o) : o[0];
1844
- if (r && a && e.grid?.opts?.subGridDynamic && !e.grid._isTemp) {
1845
- let n = G.areaIntercept(t.rect, a._rect), r = G.area(t.rect), i = G.area(a._rect);
1846
- n / (r < i ? r : i) > .8 && (a.grid.makeSubGrid(a.el, void 0, e), a = void 0);
1847
- }
1848
- a ? s = !this._fixCollisions(e, i, a, t) : (s = !1, n && delete t.pack);
1849
- }
1850
- return s && !G.samePos(e, i) && (e._dirty = !0, G.copyPos(e, i)), t.pack && this._packNodes()._notify(), !G.samePos(e, a);
1851
- }
1852
- getRow() {
1853
- return this.nodes.reduce((e, t) => Math.max(e, t.y + t.h), 0);
1854
- }
1855
- beginUpdate(e) {
1856
- return e._updating || (e._updating = !0, delete e._skipDown, this.batchMode || this.saveInitial()), this;
1857
- }
1858
- endUpdate() {
1859
- let e = this.nodes.find((e) => e._updating);
1860
- return e && (delete e._updating, delete e._skipDown), this;
1861
- }
1862
- save(e = !0, t, n) {
1863
- let r = this._layouts?.length || 0, i;
1864
- r && (n ? n !== this.column && (i = this._layouts[n]) : this.column !== r - 1 && (i = this._layouts[r - 1]));
1865
- let a = [];
1866
- return this.sortNodes(), this.nodes.forEach((n) => {
1867
- let r = i?.find((e) => e._id === n._id), o = {
1868
- ...n,
1869
- ...r || {}
1870
- };
1871
- G.removeInternalForSave(o, !e), t && t(n, o), a.push(o);
1872
- }), a;
1873
- }
1874
- layoutsNodesChange(e) {
1875
- return !this._layouts || this._inColumnResize || this._layouts.forEach((t, n) => {
1876
- if (!t || n === this.column) return this;
1877
- if (n < this.column) this._layouts[n] = void 0;
1878
- else {
1879
- let r = n / this.column;
1880
- e.forEach((e) => {
1881
- if (!e._orig) return;
1882
- let n = t.find((t) => t._id === e._id);
1883
- 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)));
1884
- });
1885
- }
1886
- }), this;
1887
- }
1888
- columnChanged(e, t, n = "moveScale") {
1889
- if (!this.nodes.length || !t || e === t) return this;
1890
- let r = n === "compact" || n === "list";
1891
- r && this.sortNodes(1), t < e && this.cacheLayout(this.nodes, e), this.batchUpdate();
1892
- let i = [], a = r ? this.nodes : G.sort(this.nodes, -1);
1893
- if (t > e && this._layouts) {
1894
- let n = this._layouts[t] || [], o = this._layouts.length - 1;
1895
- !n.length && e !== o && this._layouts[o]?.length && (e = o, this._layouts[o].forEach((e) => {
1896
- let t = a.find((t) => t._id === e._id);
1897
- 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));
1898
- })), n.forEach((e) => {
1899
- let t = a.findIndex((t) => t._id === e._id);
1900
- if (t !== -1) {
1901
- let n = a[t];
1902
- if (r) {
1903
- n.w = e.w;
1904
- return;
1905
- }
1906
- (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);
1907
- }
1908
- });
1909
- }
1910
- if (r) this.compact(n, !1);
1911
- else {
1912
- if (a.length) if (typeof n == "function") n(t, e, i, a);
1913
- else {
1914
- let o = r || n === "none" ? 1 : t / e, s = n === "move" || n === "moveScale", c = n === "scale" || n === "moveScale";
1915
- a.forEach((n) => {
1916
- 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);
1917
- }), a = [];
1918
- }
1919
- i = G.sort(i, -1), this._inColumnResize = !0, this.nodes = [], i.forEach((e) => {
1920
- this.addNode(e, !1), delete e._orig;
1921
- });
1922
- }
1923
- return this.nodes.forEach((e) => delete e._orig), this.batchUpdate(!1, !r), delete this._inColumnResize, this;
1924
- }
1925
- cacheLayout(t, n, r = !1) {
1926
- let i = [];
1927
- return t.forEach((t, n) => {
1928
- t._id === void 0 && (t._id = (t.id ? this.nodes.find((e) => e.id === t.id) : void 0)?._id ?? e._idSeq++), i[n] = {
1929
- x: t.x,
1930
- y: t.y,
1931
- w: t.w,
1932
- _id: t._id
1933
- };
1934
- }), this._layouts = r ? [] : this._layouts || [], this._layouts[n] = i, this;
1935
- }
1936
- cacheOneLayout(t, n) {
1937
- t._id = t._id ?? e._idSeq++;
1938
- let r = {
1939
- x: t.x,
1940
- y: t.y,
1941
- w: t.w,
1942
- _id: t._id
1943
- };
1944
- (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] || [];
1945
- let i = this.findCacheLayout(t, n);
1946
- return i === -1 ? this._layouts[n].push(r) : this._layouts[n][i] = r, this;
1947
- }
1948
- findCacheLayout(e, t) {
1949
- return this._layouts?.[t]?.findIndex((t) => t._id === e._id) ?? -1;
1950
- }
1951
- removeNodeFromLayoutCache(e) {
1952
- if (this._layouts) for (let t = 0; t < this._layouts.length; t++) {
1953
- let n = this.findCacheLayout(e, t);
1954
- n !== -1 && this._layouts[t].splice(n, 1);
1955
- }
1956
- }
1957
- cleanupNode(e) {
1958
- for (let t in e) t[0] === "_" && t !== "_id" && delete e[t];
1959
- return this;
1960
- }
1961
- };
1962
- xn._idSeq = 0;
1963
- //#endregion
1964
- //#region node_modules/gridstack/dist/types.js
1965
- var K = {
1966
- alwaysShowResizeHandle: "mobile",
1967
- animate: !0,
1968
- auto: !0,
1969
- cellHeight: "auto",
1970
- cellHeightThrottle: 100,
1971
- cellHeightUnit: "px",
1972
- column: 12,
1973
- draggable: {
1974
- handle: ".grid-stack-item-content",
1975
- appendTo: "body",
1976
- scroll: !0
1977
- },
1978
- handle: ".grid-stack-item-content",
1979
- itemClass: "grid-stack-item",
1980
- margin: 10,
1981
- marginUnit: "px",
1982
- maxRow: 0,
1983
- minRow: 0,
1984
- placeholderClass: "grid-stack-placeholder",
1985
- placeholderText: "",
1986
- removableOptions: {
1987
- accept: "grid-stack-item",
1988
- decline: "grid-stack-non-removable"
1989
- },
1990
- resizable: { handles: "se" },
1991
- rtl: "auto"
1992
- }, q = class {}, J = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0), Y = class {};
1993
- function Sn(e, t) {
1994
- e.touches.length > 1 || (e.cancelable && e.preventDefault(), G.simulateMouseEvent(e.changedTouches[0], t));
1995
- }
1996
- function Cn(e, t) {
1997
- e.cancelable && e.preventDefault(), G.simulateMouseEvent(e, t);
1998
- }
1999
- function wn(e) {
2000
- Y.touchHandled || (Y.touchHandled = !0, Sn(e, "mousedown"));
2001
- }
2002
- function Tn(e) {
2003
- Y.touchHandled && Sn(e, "mousemove");
2004
- }
2005
- function En(e) {
2006
- if (!Y.touchHandled) return;
2007
- Y.pointerLeaveTimeout && (window.clearTimeout(Y.pointerLeaveTimeout), delete Y.pointerLeaveTimeout);
2008
- let t = !!q.dragElement;
2009
- Sn(e, "mouseup"), t || Sn(e, "click"), Y.touchHandled = !1;
2010
- }
2011
- function Dn(e) {
2012
- e.pointerType !== "mouse" && e.target.releasePointerCapture(e.pointerId);
2013
- }
2014
- function On(e) {
2015
- q.dragElement && e.pointerType !== "mouse" && Cn(e, "mouseenter");
2016
- }
2017
- function kn(e) {
2018
- q.dragElement && e.pointerType !== "mouse" && (Y.pointerLeaveTimeout = window.setTimeout(() => {
2019
- delete Y.pointerLeaveTimeout, Cn(e, "mouseleave");
2020
- }, 10));
2021
- }
2022
- //#endregion
2023
- //#region node_modules/gridstack/dist/dd-resizable-handle.js
2024
- var An = class e {
2025
- constructor(e, t, n) {
2026
- this.host = e, this.dir = t, this.option = n, this.moving = !1, 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();
2027
- }
2028
- _init() {
2029
- if (this.option.element) try {
2030
- this.el = this.option.element instanceof HTMLElement ? this.option.element : this.host.querySelector(this.option.element);
2031
- } catch (e) {
2032
- this.option.element = void 0, console.error("Query for resizeable handle failed, falling back", e);
2033
- }
2034
- 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.style.zIndex = "100", this.el.style.userSelect = "none", this.el.addEventListener("mousedown", this._mouseDown), J && (this.el.addEventListener("touchstart", wn), this.el.addEventListener("pointerdown", Dn)), this;
2035
- }
2036
- destroy() {
2037
- return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), J && (this.el.removeEventListener("touchstart", wn), this.el.removeEventListener("pointerdown", Dn)), this.option.element || this.host.removeChild(this.el), delete this.el, delete this.host, this;
2038
- }
2039
- _mouseDown(e) {
2040
- this.mouseDownEvent = e, document.addEventListener("mousemove", this._mouseMove, {
2041
- capture: !0,
2042
- passive: !0
2043
- }), document.addEventListener("mouseup", this._mouseUp, !0), J && (this.el.addEventListener("touchmove", Tn), this.el.addEventListener("touchend", En)), e.stopPropagation(), e.preventDefault();
2044
- }
2045
- _mouseMove(e) {
2046
- let t = this.mouseDownEvent;
2047
- this.moving ? this._triggerEvent("move", e) : Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 2 && (this.moving = !0, this._triggerEvent("start", this.mouseDownEvent), this._triggerEvent("move", e), document.addEventListener("keydown", this._keyEvent)), e.stopPropagation();
2048
- }
2049
- _mouseUp(e) {
2050
- this.moving && (this._triggerEvent("stop", e), document.removeEventListener("keydown", this._keyEvent)), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), J && (this.el.removeEventListener("touchmove", Tn), this.el.removeEventListener("touchend", En)), delete this.moving, delete this.mouseDownEvent, e.stopPropagation(), e.preventDefault();
2051
- }
2052
- _keyEvent(e) {
2053
- e.key === "Escape" && (this.host.gridstackNode?.grid?.engine.restoreInitial(), this._mouseUp(this.mouseDownEvent));
2054
- }
2055
- _triggerEvent(e, t) {
2056
- return this.option[e] && this.option[e](t), this;
2057
- }
2058
- };
2059
- An.prefix = "ui-resizable-";
2060
- //#endregion
2061
- //#region node_modules/gridstack/dist/dd-base-impl.js
2062
- var jn = class {
2063
- constructor() {
2064
- this._eventRegister = {};
2065
- }
2066
- get disabled() {
2067
- return this._disabled;
2068
- }
2069
- on(e, t) {
2070
- this._eventRegister[e] = t;
2071
- }
2072
- off(e) {
2073
- delete this._eventRegister[e];
2074
- }
2075
- enable() {
2076
- this._disabled = !1;
2077
- }
2078
- disable() {
2079
- this._disabled = !0;
2080
- }
2081
- destroy() {
2082
- delete this._eventRegister;
2083
- }
2084
- triggerEvent(e, t) {
2085
- if (!this.disabled && this._eventRegister && this._eventRegister[e]) return this._eventRegister[e](t);
2086
- }
2087
- }, Mn = class e extends jn {
2088
- constructor(e, t = {}) {
2089
- super(), this.el = e, this.option = t, this.rectScale = {
2090
- x: 1,
2091
- y: 1
2092
- }, this._ui = () => {
2093
- let e = this.el.parentElement.getBoundingClientRect(), t = {
2094
- width: this.originalRect.width,
2095
- height: this.originalRect.height + this.scrolled,
2096
- left: this.originalRect.left,
2097
- right: this.originalRect.right,
2098
- top: this.originalRect.top - this.scrolled
2099
- }, n = this.temporalRect || t;
2100
- return {
2101
- position: {
2102
- left: this.option.rtl ? (e.right - n.right) * this.rectScale.x : (n.left - e.left) * this.rectScale.x,
2103
- top: (n.top - e.top) * this.rectScale.y
2104
- },
2105
- size: {
2106
- width: n.width * this.rectScale.x,
2107
- height: n.height * this.rectScale.y
2108
- }
2109
- };
2110
- }, this._mouseOver = this._mouseOver.bind(this), this._mouseOut = this._mouseOut.bind(this), this.enable(), this._setupAutoHide(this.option.autoHide), this._setupHandlers();
2111
- }
2112
- on(e, t) {
2113
- super.on(e, t);
2114
- }
2115
- off(e) {
2116
- super.off(e);
2117
- }
2118
- enable() {
2119
- super.enable(), this.el.classList.remove("ui-resizable-disabled"), this._setupAutoHide(this.option.autoHide);
2120
- }
2121
- disable() {
2122
- super.disable(), this.el.classList.add("ui-resizable-disabled"), this._setupAutoHide(!1);
2123
- }
2124
- destroy() {
2125
- this._removeHandlers(), this._setupAutoHide(!1), delete this.el, super.destroy();
2126
- }
2127
- updateOption(e) {
2128
- let t = e.handles && e.handles !== this.option.handles, n = e.autoHide && e.autoHide !== this.option.autoHide;
2129
- return Object.keys(e).forEach((t) => this.option[t] = e[t]), t && (this._removeHandlers(), this._setupHandlers()), n && this._setupAutoHide(this.option.autoHide), this;
2130
- }
2131
- _setupAutoHide(e) {
2132
- 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;
2133
- }
2134
- _mouseOver(e) {
2135
- q.overResizeElement || q.dragElement || (q.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
2136
- }
2137
- _mouseOut(e) {
2138
- q.overResizeElement === this && (delete q.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
2139
- }
2140
- _setupHandlers() {
2141
- return this.handlers = this.option.handles.split(",").map((e) => e.trim()).map((e) => new An(this.el, e, {
2142
- element: this.option.element,
2143
- start: (e) => this._resizeStart(e),
2144
- stop: (e) => this._resizeStop(e),
2145
- move: (t) => this._resizing(t, e)
2146
- })), this;
2147
- }
2148
- _resizeStart(e) {
2149
- 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, this._setupHelper(), this._applyChange();
2150
- let t = G.initEvent(e, {
2151
- type: "resizestart",
2152
- target: this.el
2153
- });
2154
- return this.option.start && this.option.start(t, this._ui()), this.el.classList.add("ui-resizable-resizing"), this.triggerEvent("resizestart", t), this;
2155
- }
2156
- _resizing(e, t) {
2157
- this.scrolled = this.scrollEl.scrollTop - this.scrollY, this.temporalRect = this._getChange(e, t), this._applyChange();
2158
- let n = G.initEvent(e, {
2159
- type: "resize",
2160
- target: this.el
2161
- });
2162
- 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;
2163
- }
2164
- _resizeStop(e) {
2165
- let t = G.initEvent(e, {
2166
- type: "resizestop",
2167
- target: this.el
2168
- });
2169
- return this._cleanHelper(), this.option.stop && this.option.stop(t), this.el.classList.remove("ui-resizable-resizing"), this.triggerEvent("resizestop", t), delete this.startEvent, delete this.originalRect, delete this.temporalRect, delete this.scrollY, delete this.scrolled, this;
2170
- }
2171
- _setupHelper() {
2172
- this.elOriginStyleVal = e._originStyleProp.map((e) => this.el.style[e]), this.parentOriginStylePosition = this.el.parentElement.style.position;
2173
- let t = this.el.parentElement, n = G.getValuesFromTransformedElement(t);
2174
- return this.rectScale = {
2175
- x: n.xScale,
2176
- y: n.yScale
2177
- }, getComputedStyle(this.el.parentElement).position.match(/static/) && (this.el.parentElement.style.position = "relative"), this.el.style.position = "absolute", this.el.style.opacity = "0.8", this;
2178
- }
2179
- _cleanHelper() {
2180
- return e._originStyleProp.forEach((e, t) => {
2181
- this.el.style[e] = this.elOriginStyleVal[t] || null;
2182
- }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
2183
- }
2184
- _getChange(e, t) {
2185
- let n = this.startEvent, r = {
2186
- width: this.originalRect.width,
2187
- height: this.originalRect.height + this.scrolled,
2188
- left: this.originalRect.left,
2189
- right: this.originalRect.right,
2190
- top: this.originalRect.top - this.scrolled
2191
- }, i = e.clientX - n.clientX, a = this.sizeToContent ? 0 : e.clientY - n.clientY, o, s, c = this.option.rtl;
2192
- !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);
2193
- let l = this._constrainSize(r.width, r.height, o, s);
2194
- 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;
2195
- }
2196
- _constrainSize(e, t, n, r) {
2197
- let i = this.option, a = (n ? i.maxWidthMoveLeft : i.maxWidth) || 2 ** 53 - 1, o = i.minWidth / this.rectScale.x || e, s = (r ? i.maxHeightMoveUp : i.maxHeight) || 2 ** 53 - 1, c = i.minHeight / this.rectScale.y || t;
2198
- return {
2199
- width: Math.min(a, Math.max(o, e)),
2200
- height: Math.min(s, Math.max(c, t))
2201
- };
2202
- }
2203
- _applyChange() {
2204
- let e = {
2205
- left: 0,
2206
- right: 0,
2207
- top: 0,
2208
- width: 0,
2209
- height: 0
2210
- };
2211
- if (this.el.style.position === "absolute") {
2212
- let { left: t, right: n, top: r } = this.el.parentElement.getBoundingClientRect();
2213
- e = {
2214
- left: t,
2215
- right: n,
2216
- top: r,
2217
- width: 0,
2218
- height: 0
2219
- };
2220
- }
2221
- return this.temporalRect && Object.entries(this.temporalRect).forEach(([t, n]) => {
2222
- if (this.option.rtl ? t === "left" : t === "right") return;
2223
- let r = t === "width" || t === "left" || t === "right" ? this.rectScale.x : t === "height" || t === "top" ? this.rectScale.y : 1, i;
2224
- i = t === "right" ? (e.right - n) * this.rectScale.x + "px" : (n - e[t]) * r + "px", this.el.style[t] = i;
2225
- }), this;
2226
- }
2227
- _removeHandlers() {
2228
- return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
2229
- }
2230
- };
2231
- Mn._originStyleProp = [
2232
- "width",
2233
- "height",
2234
- "position",
2235
- "left",
2236
- "right",
2237
- "top",
2238
- "opacity",
2239
- "zIndex"
2240
- ];
2241
- //#endregion
2242
- //#region node_modules/gridstack/dist/dd-draggable.js
2243
- var Nn = "input,textarea,button,select,option,[contenteditable=\"true\"],.ui-resizable-handle", Pn = class e extends jn {
2244
- constructor(e, t = {}) {
2245
- super(), this.el = e, this.option = t, this.dragTransform = {
2246
- xScale: 1,
2247
- yScale: 1,
2248
- xOffset: 0,
2249
- yOffset: 0
2250
- }, this._autoScrollTick = () => {
2251
- let e = this.helper, t = this._autoScrollContainer;
2252
- if (!e || !t) {
2253
- this._stopScrolling();
2254
- return;
2255
- }
2256
- let n = this._getClipping(e, t);
2257
- if (n === 0) {
2258
- this._stopScrolling();
2259
- return;
2260
- }
2261
- if (!this._autoScrollMaxSpeed) {
2262
- let e = window.innerHeight || document.documentElement.clientHeight;
2263
- this._autoScrollMaxSpeed = Math.max(e / 150, 4);
2264
- }
2265
- let r = Math.min(Math.abs(n) * .5, this._autoScrollMaxSpeed), i = n > 0 ? r : -r, a = t.scrollTop;
2266
- if (t.scrollTop += i, t.scrollTop === a) {
2267
- this._stopScrolling();
2268
- return;
2269
- }
2270
- this.dragging && this.lastDrag && (this._dragFollow(this.lastDrag), this._callDrag(this.lastDrag)), this._autoScrollAnimId = requestAnimationFrame(this._autoScrollTick);
2271
- };
2272
- let n = t?.handle?.substring(1), r = e.gridstackNode;
2273
- 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();
2274
- }
2275
- getAllHandles() {
2276
- return Array.from(this.el.querySelectorAll(this.option.handle)).filter((e) => {
2277
- if (!(e instanceof HTMLElement)) return !1;
2278
- let t = e.closest(".grid-stack-item");
2279
- return t === this.el || !t;
2280
- });
2281
- }
2282
- on(e, t) {
2283
- super.on(e, t);
2284
- }
2285
- off(e) {
2286
- super.off(e);
2287
- }
2288
- enable() {
2289
- this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
2290
- e.addEventListener("mousedown", this._mouseDown), J && (e.addEventListener("touchstart", wn), e.addEventListener("pointerdown", Dn));
2291
- }), this.el.classList.remove("ui-draggable-disabled"));
2292
- }
2293
- disable(e = !1) {
2294
- this.disabled !== !0 && (super.disable(), this.dragEls.forEach((e) => {
2295
- e.removeEventListener("mousedown", this._mouseDown), J && (e.removeEventListener("touchstart", wn), e.removeEventListener("pointerdown", Dn));
2296
- }), e || this.el.classList.add("ui-draggable-disabled"));
2297
- }
2298
- destroy() {
2299
- this.dragTimeout && window.clearTimeout(this.dragTimeout), delete this.dragTimeout, this.mouseDownEvent && this._mouseUp(this.mouseDownEvent), this.disable(!0), delete this.el, delete this.helper, delete this.option, super.destroy();
2300
- }
2301
- updateOption(e) {
2302
- return Object.keys(e).forEach((t) => this.option[t] = e[t]), this;
2303
- }
2304
- _mouseDown(e) {
2305
- if (Y.touchHandled && e.isTrusted && (Y.touchHandled = !1), !q.mouseHandled) return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(Nn) || 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, {
2306
- capture: !0,
2307
- passive: !0
2308
- }), document.addEventListener("mouseup", this._mouseUp, !0), J && (e.currentTarget.addEventListener("touchmove", Tn), e.currentTarget.addEventListener("touchend", En)), e.preventDefault(), document.activeElement && document.activeElement.blur(), q.mouseHandled = !0, !0);
2309
- }
2310
- _callDrag(e) {
2311
- if (!this.dragging) return;
2312
- let t = G.initEvent(e, {
2313
- target: this.el,
2314
- type: "drag"
2315
- });
2316
- this.option.drag && this.option.drag(t, this.ui()), this.triggerEvent("drag", t);
2317
- }
2318
- _mouseMove(e) {
2319
- let t = this.mouseDownEvent;
2320
- if (this.lastDrag = e, this.dragging) if (this._dragFollow(e), q.pauseDrag) {
2321
- let t = Number.isInteger(q.pauseDrag) ? q.pauseDrag : 100;
2322
- this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), t);
2323
- } else this._callDrag(e);
2324
- else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
2325
- this.dragging = !0, q.dragElement = this;
2326
- let t = this.el.gridstackNode?.grid;
2327
- 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);
2328
- let n = G.initEvent(e, {
2329
- target: this.el,
2330
- type: "dragstart"
2331
- });
2332
- this.option.start && this.option.start(n, this.ui()), this.triggerEvent("dragstart", n), document.addEventListener("keydown", this._keyEvent);
2333
- }
2334
- return !0;
2335
- }
2336
- _mouseUp(e) {
2337
- if (this._stopScrolling(), document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), J && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", Tn, !0), e.currentTarget.removeEventListener("touchend", En, !0)), this.dragging) {
2338
- delete this.dragging, 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.el && this.helper.remove(), this._removeHelperStyle();
2339
- let t = G.initEvent(e, {
2340
- target: this.el,
2341
- type: "dragstop"
2342
- });
2343
- this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), q.dropElement && q.dropElement.drop(e);
2344
- }
2345
- delete this.helper, delete this.mouseDownEvent, delete q.dragElement, delete q.dropElement, delete q.mouseHandled, e.preventDefault();
2346
- }
2347
- _keyEvent(e) {
2348
- let t = this.el.gridstackNode, n = t?.grid || q.dropElement?.el?.gridstack;
2349
- if (e.key === "Escape") t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), n?.cancelDrag(), this._mouseUp(this.mouseDownEvent);
2350
- else if (t && n && (e.key === "r" || e.key === "R")) {
2351
- if (!G.canBeRotated(t)) return;
2352
- t._origRotate = t._origRotate || { ...t._orig }, delete t._moving, n.setAnimation(!1).rotate(t.el, {
2353
- top: -this.dragOffset.offsetTop,
2354
- left: -this.dragOffset.offsetX
2355
- }).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);
2356
- }
2357
- }
2358
- _createHelper() {
2359
- let t = this.el;
2360
- 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), this.dragElementOriginStyle = e.originStyleProp.map((e) => this.el.style[e]), t;
2361
- }
2362
- _setupHelperStyle(e) {
2363
- this.helper.classList.add("ui-draggable-dragging"), this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");
2364
- let t = this.helper.style;
2365
- 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(() => {
2366
- this.helper && (t.transition = null);
2367
- }, 0), this;
2368
- }
2369
- _removeHelperStyle() {
2370
- if (this.helper.classList.remove("ui-draggable-dragging"), this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"), !this.helper?.gridstackNode?._isAboutToRemove && this.dragElementOriginStyle) {
2371
- let t = this.helper, n = this.dragElementOriginStyle.transition || null;
2372
- t.style.transition = this.dragElementOriginStyle.transition = "none", e.originStyleProp.forEach((e) => t.style[e] = this.dragElementOriginStyle[e] || null), setTimeout(() => t.style.transition = n, 50);
2373
- }
2374
- return delete this.dragElementOriginStyle, this;
2375
- }
2376
- _dragFollow(e) {
2377
- let t = this.helper.style, n = this.dragOffset;
2378
- 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";
2379
- }
2380
- _setupHelperContainmentStyle() {
2381
- 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;
2382
- }
2383
- _getDragOffset(e, t, n) {
2384
- let r = 0, i = 0;
2385
- n && (r = this.dragTransform.xOffset, i = this.dragTransform.yOffset);
2386
- 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;
2387
- return {
2388
- x: o,
2389
- top: a.top,
2390
- offsetX: s,
2391
- offsetTop: -e.clientY + a.top - i,
2392
- width: a.width * this.dragTransform.xScale,
2393
- height: a.height * this.dragTransform.yScale
2394
- };
2395
- }
2396
- updateScrollPosition(e) {
2397
- this._autoScrollContainer = G.getScrollElement(e), this._getClipping(this.helper, this._autoScrollContainer) === 0 ? this._stopScrolling() : this._autoScrollAnimId ||= requestAnimationFrame(this._autoScrollTick);
2398
- }
2399
- _getClipping(e, t) {
2400
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.innerHeight || document.documentElement.clientHeight;
2401
- if (n.bottom < r.top || n.top > r.bottom) return 0;
2402
- let a = n.bottom - Math.min(r.bottom, i), o = n.top - Math.max(r.top, 0);
2403
- return o < 0 ? o : a > 0 ? a : 0;
2404
- }
2405
- _stopScrolling() {
2406
- this._autoScrollAnimId && (cancelAnimationFrame(this._autoScrollAnimId), delete this._autoScrollAnimId);
2407
- }
2408
- ui() {
2409
- 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;
2410
- return { position: {
2411
- top: (t.top - e.top) * this.dragTransform.yScale,
2412
- left: n
2413
- } };
2414
- }
2415
- };
2416
- Pn.originStyleProp = [
2417
- "width",
2418
- "height",
2419
- "transform",
2420
- "transform-origin",
2421
- "transition",
2422
- "pointerEvents",
2423
- "position",
2424
- "left",
2425
- "right",
2426
- "top",
2427
- "minWidth",
2428
- "willChange"
2429
- ];
2430
- //#endregion
2431
- //#region node_modules/gridstack/dist/dd-droppable.js
2432
- var Fn = class extends jn {
2433
- constructor(e, t = {}) {
2434
- super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
2435
- }
2436
- on(e, t) {
2437
- super.on(e, t);
2438
- }
2439
- off(e) {
2440
- super.off(e);
2441
- }
2442
- enable() {
2443
- this.disabled !== !1 && (super.enable(), this.el.classList.add("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), this.el.addEventListener("mouseenter", this._mouseEnter), this.el.addEventListener("mouseleave", this._mouseLeave), J && (this.el.addEventListener("pointerenter", On), this.el.addEventListener("pointerleave", kn)));
2444
- }
2445
- disable(e = !1) {
2446
- this.disabled !== !0 && (super.disable(), this.el.classList.remove("ui-droppable"), e || this.el.classList.add("ui-droppable-disabled"), this.el.removeEventListener("mouseenter", this._mouseEnter), this.el.removeEventListener("mouseleave", this._mouseLeave), J && (this.el.removeEventListener("pointerenter", On), this.el.removeEventListener("pointerleave", kn)));
2447
- }
2448
- destroy() {
2449
- this.disable(!0), this.el.classList.remove("ui-droppable"), this.el.classList.remove("ui-droppable-disabled"), super.destroy();
2450
- }
2451
- updateOption(e) {
2452
- return Object.keys(e).forEach((t) => this.option[t] = e[t]), this._setupAccept(), this;
2453
- }
2454
- _mouseEnter(e) {
2455
- if (!q.dragElement || Y.touchHandled && e.isTrusted || !this._canDrop(q.dragElement.el)) return;
2456
- e.preventDefault(), e.stopPropagation(), q.dragElement._stopScrolling(), q.dropElement && q.dropElement !== this && q.dropElement._mouseLeave(e, !0), q.dropElement = this;
2457
- let t = G.initEvent(e, {
2458
- target: this.el,
2459
- type: "dropover"
2460
- });
2461
- this.option.over && this.option.over(t, this._ui(q.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
2462
- }
2463
- _mouseLeave(e, t = !1) {
2464
- if (!q.dragElement || q.dropElement !== this) return;
2465
- e.preventDefault(), e.stopPropagation(), t && q.dragElement._stopScrolling();
2466
- let n = G.initEvent(e, {
2467
- target: this.el,
2468
- type: "dropout"
2469
- });
2470
- if (this.option.out && this.option.out(n, this._ui(q.dragElement)), this.triggerEvent("dropout", n), q.dropElement === this && (delete q.dropElement, !t)) {
2471
- let t, n = this.el.parentElement;
2472
- for (; !t && n;) t = n.ddElement?.ddDroppable, n = n.parentElement;
2473
- t && t._mouseEnter(e);
2474
- }
2475
- }
2476
- drop(e) {
2477
- e.preventDefault();
2478
- let t = G.initEvent(e, {
2479
- target: this.el,
2480
- type: "drop"
2481
- });
2482
- this.option.drop && this.option.drop(t, this._ui(q.dragElement)), this.triggerEvent("drop", t);
2483
- }
2484
- _canDrop(e) {
2485
- return e && (!this.accept || this.accept(e));
2486
- }
2487
- _setupAccept() {
2488
- 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;
2489
- }
2490
- _ui(e) {
2491
- return {
2492
- draggable: e.el,
2493
- ...e.ui()
2494
- };
2495
- }
2496
- }, In = class e {
2497
- static init(t) {
2498
- return t.ddElement ||= new e(t), t.ddElement;
2499
- }
2500
- constructor(e) {
2501
- this.el = e;
2502
- }
2503
- on(e, t) {
2504
- return this.ddDraggable && [
2505
- "drag",
2506
- "dragstart",
2507
- "dragstop"
2508
- ].indexOf(e) > -1 ? this.ddDraggable.on(e, t) : this.ddDroppable && [
2509
- "drop",
2510
- "dropover",
2511
- "dropout"
2512
- ].indexOf(e) > -1 ? this.ddDroppable.on(e, t) : this.ddResizable && [
2513
- "resizestart",
2514
- "resize",
2515
- "resizestop"
2516
- ].indexOf(e) > -1 && this.ddResizable.on(e, t), this;
2517
- }
2518
- off(e) {
2519
- return this.ddDraggable && [
2520
- "drag",
2521
- "dragstart",
2522
- "dragstop"
2523
- ].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && [
2524
- "drop",
2525
- "dropover",
2526
- "dropout"
2527
- ].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && [
2528
- "resizestart",
2529
- "resize",
2530
- "resizestop"
2531
- ].indexOf(e) > -1 && this.ddResizable.off(e), this;
2532
- }
2533
- setupDraggable(e) {
2534
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new Pn(this.el, e), this;
2535
- }
2536
- cleanDraggable() {
2537
- return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
2538
- }
2539
- setupResizable(e) {
2540
- return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new Mn(this.el, e), this;
2541
- }
2542
- cleanResizable() {
2543
- return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
2544
- }
2545
- setupDroppable(e) {
2546
- return this.ddDroppable ? this.ddDroppable.updateOption(e) : this.ddDroppable = new Fn(this.el, e), this;
2547
- }
2548
- cleanDroppable() {
2549
- return this.ddDroppable && (this.ddDroppable.destroy(), delete this.ddDroppable), this;
2550
- }
2551
- }, X = new class {
2552
- resizable(e, t, n, r) {
2553
- return this._getDDElements(e, t).forEach((e) => {
2554
- if (t === "disable" || t === "enable") e.ddResizable && e.ddResizable[t]();
2555
- else if (t === "destroy") e.ddResizable && e.cleanResizable();
2556
- else if (t === "option") e.setupResizable({ [n]: r });
2557
- else {
2558
- let n = e.el.gridstackNode.grid, r = e.el.getAttribute("gs-resize-handles") || n.opts.resizable.handles || "e,s,se";
2559
- r === "all" && (r = "n,e,s,w,se,sw,ne,nw");
2560
- let i = !n.opts.alwaysShowResizeHandle;
2561
- e.setupResizable({
2562
- ...n.opts.resizable,
2563
- handles: r,
2564
- autoHide: i,
2565
- start: t.start,
2566
- stop: t.stop,
2567
- resize: t.resize,
2568
- rtl: t.rtl
2569
- });
2570
- }
2571
- }), this;
2572
- }
2573
- draggable(e, t, n, r) {
2574
- return this._getDDElements(e, t).forEach((e) => {
2575
- if (t === "disable" || t === "enable") e.ddDraggable && e.ddDraggable[t]();
2576
- else if (t === "destroy") e.ddDraggable && e.cleanDraggable();
2577
- else if (t === "option") e.setupDraggable({ [n]: r });
2578
- else {
2579
- let n = e.el.gridstackNode.grid;
2580
- e.setupDraggable({
2581
- ...n.opts.draggable,
2582
- start: t.start,
2583
- stop: t.stop,
2584
- drag: t.drag,
2585
- rtl: t.rtl
2586
- });
2587
- }
2588
- }), this;
2589
- }
2590
- dragIn(e, t) {
2591
- return this._getDDElements(e).forEach((e) => e.setupDraggable(t)), this;
2592
- }
2593
- droppable(e, t, n, r) {
2594
- return typeof t.accept == "function" && !t._accept && (t._accept = t.accept, t.accept = (e) => t._accept(e)), this._getDDElements(e, t).forEach((e) => {
2595
- t === "disable" || t === "enable" ? e.ddDroppable && e.ddDroppable[t]() : t === "destroy" ? e.ddDroppable && e.cleanDroppable() : t === "option" ? e.setupDroppable({ [n]: r }) : e.setupDroppable(t);
2596
- }), this;
2597
- }
2598
- isDroppable(e) {
2599
- return !!(e?.ddElement?.ddDroppable && !e.ddElement.ddDroppable.disabled);
2600
- }
2601
- isDraggable(e) {
2602
- return !!(e?.ddElement?.ddDraggable && !e.ddElement.ddDraggable.disabled);
2603
- }
2604
- isResizable(e) {
2605
- return !!(e?.ddElement?.ddResizable && !e.ddElement.ddResizable.disabled);
2606
- }
2607
- on(e, t, n) {
2608
- return this._getDDElements(e).forEach((e) => e.on(t, (e) => {
2609
- n(e, q.dragElement ? q.dragElement.el : e.target, q.dragElement ? q.dragElement.helper : null);
2610
- })), this;
2611
- }
2612
- off(e, t) {
2613
- return this._getDDElements(e).forEach((e) => e.off(t)), this;
2614
- }
2615
- _getDDElements(e, t) {
2616
- let n = e.gridstack || t !== "destroy" && t !== "disable", r = G.getElements(e);
2617
- return r.length ? r.map((e) => e.ddElement || (n ? In.init(e) : null)).filter((e) => e) : [];
2618
- }
2619
- }(), Z = class e {
2620
- static init(t = {}, n = ".grid-stack") {
2621
- if (typeof document > "u") return null;
2622
- let r = e.getGridElement(n);
2623
- 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);
2624
- }
2625
- static initAll(t = {}, n = ".grid-stack") {
2626
- let r = [];
2627
- return typeof document > "u" ? r : (e.getGridElements(n).forEach((n) => {
2628
- n.gridstack ||= new e(n, G.cloneDeep(t)), r.push(n.gridstack);
2629
- }), 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);
2630
- }
2631
- static addGrid(t, n = {}) {
2632
- if (!t) return null;
2633
- let r = t;
2634
- if (r.gridstack) {
2635
- let e = r.gridstack;
2636
- return n && (e.opts = {
2637
- ...e.opts,
2638
- ...n
2639
- }), n.children !== void 0 && e.load(n.children), e;
2640
- }
2641
- 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);
2642
- }
2643
- static registerEngine(t) {
2644
- e.engineClass = t;
2645
- }
2646
- get placeholder() {
2647
- if (!this._placeholder) {
2648
- this._placeholder = G.createDiv([
2649
- this.opts.placeholderClass,
2650
- K.itemClass,
2651
- this.opts.itemClass
2652
- ]);
2653
- let e = G.createDiv(["placeholder-content"], this._placeholder);
2654
- this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
2655
- }
2656
- return this._placeholder;
2657
- }
2658
- constructor(t, n = {}) {
2659
- this.el = t, this.opts = n, this.animationDelay = 310, this._gsEventHandler = {}, this._extraDragRow = 0, this.dragTransform = {
2660
- xScale: 1,
2661
- yScale: 1,
2662
- xOffset: 0,
2663
- yOffset: 0
2664
- }, t.gridstack = this, this.opts = n ||= {}, t.classList.contains("grid-stack") || this.el.classList.add("grid-stack"), n.row && (n.minRow = n.maxRow = n.row, delete n.row);
2665
- let r = G.toNumber(t.getAttribute("gs-row"));
2666
- n.column === "auto" && delete n.column, n.alwaysShowResizeHandle !== void 0 && (n._alwaysShowResizeHandle = n.alwaysShowResizeHandle);
2667
- let i = n.columnOpts;
2668
- if (i) {
2669
- let e = i.breakpoints;
2670
- !i.columnWidth && !e?.length ? delete n.columnOpts : (i.columnMax = i.columnMax || 12, e?.length > 1 && e.sort((e, t) => (t.w || 0) - (e.w || 0)));
2671
- }
2672
- let a = {
2673
- ...G.cloneDeep(K),
2674
- column: G.toNumber(t.getAttribute("gs-column")) || K.column,
2675
- minRow: r || G.toNumber(t.getAttribute("gs-min-row")) || K.minRow,
2676
- maxRow: r || G.toNumber(t.getAttribute("gs-max-row")) || K.maxRow,
2677
- staticGrid: G.toBool(t.getAttribute("gs-static")) || K.staticGrid,
2678
- sizeToContent: G.toBool(t.getAttribute("gs-size-to-content")) || void 0,
2679
- draggable: { handle: (n.handleClass ? "." + n.handleClass : n.handle ? n.handle : "") || K.draggable.handle },
2680
- removableOptions: {
2681
- accept: n.itemClass || K.removableOptions.accept,
2682
- decline: K.removableOptions.decline
2683
- }
2684
- };
2685
- 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");
2686
- let o = this.el.closest("." + K.itemClass)?.gridstackNode;
2687
- 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._isAutoCellHeight || n.cellHeight === "initial") this.cellHeight(void 0);
2688
- else {
2689
- typeof n.cellHeight == "number" && n.cellHeightUnit && n.cellHeightUnit !== K.cellHeightUnit && (n.cellHeight += n.cellHeightUnit, delete n.cellHeightUnit);
2690
- let e = n.cellHeight;
2691
- delete n.cellHeight, this.cellHeight(e);
2692
- }
2693
- n.alwaysShowResizeHandle === "mobile" && (n.alwaysShowResizeHandle = J), this._setStaticClass();
2694
- let s = n.engineClass || e.engineClass || xn;
2695
- if (this.engine = new s({
2696
- column: this.getColumn(),
2697
- float: n.float,
2698
- maxRow: n.maxRow,
2699
- onChange: (e) => {
2700
- e.forEach((e) => {
2701
- let t = e.el;
2702
- t && (e._removeDOM ? (t && t.remove(), delete e._removeDOM) : this._writePosAttr(t, e));
2703
- }), this._updateContainerHeight();
2704
- }
2705
- }), n.auto && (this.batchUpdate(), this.engine._loading = !0, this.getGridItems().forEach((e) => this._prepareElement(e)), delete this.engine._loading, this.batchUpdate(!1)), n.children) {
2706
- let e = n.children;
2707
- delete n.children, e.length && this.load(e);
2708
- }
2709
- 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();
2710
- }
2711
- _updateColumnVar(e = this.opts) {
2712
- this.el.classList.add("gs-" + e.column), typeof e.column == "number" && this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`);
2713
- }
2714
- addWidget(t) {
2715
- if (!t) return;
2716
- if (typeof t == "string") {
2717
- console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");
2718
- return;
2719
- }
2720
- if (t.ELEMENT_NODE) return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"), this.makeWidget(t);
2721
- let n, r = t;
2722
- if (r.grid = this, n = r.el ? r.el : e.addRemoveCB ? e.addRemoveCB(this.el, t, !0, !1) : this.createWidgetDivs(r), !n) return;
2723
- if (r = n.gridstackNode, r && n.parentElement === this.el && this.engine.nodes.find((e) => e._id === r._id)) return n;
2724
- let i = this._readAttr(n);
2725
- return G.defaults(t, i), this.engine.prepareNode(t), this.el.appendChild(n), this.makeWidget(n, t), n;
2726
- }
2727
- createWidgetDivs(t) {
2728
- let n = G.createDiv(["grid-stack-item", this.opts.itemClass]), r = G.createDiv(["grid-stack-item-content"], n);
2729
- return G.lazyLoad(t) ? t.visibleObservable || (t.visibleObservable = new IntersectionObserver(([n]) => {
2730
- n.isIntersecting && (t.visibleObservable?.disconnect(), delete t.visibleObservable, e.renderCB(r, t), t.grid?.prepareDragDrop(t.el));
2731
- }), window.setTimeout(() => t.visibleObservable?.observe(n))) : e.renderCB(r, t), n;
2732
- }
2733
- makeSubGrid(t, n, r, i = !0) {
2734
- let a = t.gridstackNode;
2735
- if (a ||= this.makeWidget(t).gridstackNode, a.subGrid?.el) return a.subGrid;
2736
- let o, s = this;
2737
- for (; s && !o;) o = s.opts?.subGridOpts, s = s.parentGridNode?.grid;
2738
- n = G.cloneDeep({
2739
- ...this.opts,
2740
- id: void 0,
2741
- children: void 0,
2742
- column: "auto",
2743
- columnOpts: void 0,
2744
- layout: "list",
2745
- subGridOpts: void 0,
2746
- ...o || {},
2747
- ...n || a.subGridOpts || {}
2748
- }), a.subGridOpts = n;
2749
- let c;
2750
- n.column === "auto" && (c = !0, n.column = Math.max(a.w || 1, r?.w || 1), delete n.columnOpts);
2751
- let l = a.el.querySelector(".grid-stack-item-content"), u, d;
2752
- if (i && (this._removeDD(a.el), d = {
2753
- ...a,
2754
- x: 0,
2755
- y: 0
2756
- }, 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) : (u = G.createDiv(["grid-stack-item"]), u.appendChild(l), l = G.createDiv(["grid-stack-item-content"], a.el)), this.prepareDragDrop(a.el)), r) {
2757
- let e = c ? n.column : a.w, t = a.h + r.h, i = a.el.style;
2758
- i.transition = "none", this.update(a.el, {
2759
- w: e,
2760
- h: t
2761
- }), setTimeout(() => i.transition = null);
2762
- }
2763
- let f = a.subGrid = e.addGrid(l, n);
2764
- 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;
2765
- }
2766
- removeAsSubGrid(e) {
2767
- let t = this.parentGridNode?.grid;
2768
- t && (t.batchUpdate(), t.removeWidget(this.parentGridNode.el, !0, !0), this.engine.nodes.forEach((e) => {
2769
- e.x += this.parentGridNode.x, e.y += this.parentGridNode.y, t.makeWidget(e.el, e);
2770
- }), t.batchUpdate(!1), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, e && window.setTimeout(() => G.simulateMouseEvent(e._event, "mouseenter", t.el), 0));
2771
- }
2772
- save(t = !0, n = !1, r = e.saveCB, i) {
2773
- let a = this.engine.save(t, r, i);
2774
- if (a.forEach((e) => {
2775
- if (t && e.el && !e.subGrid && !r) e.content = e.el.querySelector(".grid-stack-item-content")?.innerHTML, e.content || delete e.content;
2776
- else if (!t && !r && delete e.content, e.subGrid?.el) {
2777
- let i = e.w || e.subGrid.getColumn(), a = e.subGrid.save(t, n, r, i);
2778
- e.subGridOpts = n ? a : { children: a }, delete e.subGrid;
2779
- }
2780
- delete e.el;
2781
- }), n) {
2782
- let e = G.cloneDeep(this.opts);
2783
- 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");
2784
- let t = e._alwaysShowResizeHandle;
2785
- return delete e._alwaysShowResizeHandle, t === void 0 ? delete e.alwaysShowResizeHandle : e.alwaysShowResizeHandle = t, G.removeInternalAndSame(e, K), e.children = a, e;
2786
- }
2787
- return a;
2788
- }
2789
- load(t, n = e.addRemoveCB || !0) {
2790
- t.forEach((e) => {
2791
- e.w = e.w || e.minW || 1, e.h = e.h || e.minH || 1;
2792
- }), t = G.sort(t), this.engine.skipCacheUpdate = this._ignoreLayoutsNodeChange = !0;
2793
- let r = 0;
2794
- t.forEach((e) => {
2795
- r = Math.max(r, (e.x || 0) + e.w);
2796
- }), r > this.engine.defaultColumn && (this.engine.defaultColumn = r);
2797
- let i = this.getColumn();
2798
- 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));
2799
- let a = e.addRemoveCB;
2800
- typeof n == "function" && (e.addRemoveCB = n);
2801
- let o = [];
2802
- this.batchUpdate();
2803
- let s = !this.engine.nodes.length, c = s && this.opts.animate;
2804
- c && this.setAnimation(!1), !s && n && [...this.engine.nodes].forEach((n) => {
2805
- 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)));
2806
- }), this.engine._loading = !0;
2807
- let l = [];
2808
- return this.engine.nodes = this.engine.nodes.filter((e) => G.find(t, e.id) ? (l.push(e), !1) : !0), t.forEach((e) => {
2809
- let t = G.find(l, e.id);
2810
- if (t) {
2811
- 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, {
2812
- ...e,
2813
- forceCollide: !0
2814
- }), G.copyPos(e, t)), this.update(t.el, e), e.subGridOpts?.children) {
2815
- let n = t.el.querySelector(".grid-stack");
2816
- n && n.gridstack && n.gridstack.load(e.subGridOpts.children);
2817
- }
2818
- } else n && this.addWidget(e);
2819
- }), 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;
2820
- }
2821
- batchUpdate(e = !0) {
2822
- return this.engine.batchUpdate(e), e || (this._updateContainerHeight(), this._triggerRemoveEvent(), this._triggerAddEvent(), this._triggerChangeEvent()), this;
2823
- }
2824
- getCellHeight(e = !1) {
2825
- if (this.opts.cellHeight && this.opts.cellHeight !== "auto" && (!e || !this.opts.cellHeightUnit || this.opts.cellHeightUnit === "px")) return this.opts.cellHeight;
2826
- if (this.opts.cellHeightUnit === "rem") return this.opts.cellHeight * parseFloat(getComputedStyle(document.documentElement).fontSize);
2827
- if (this.opts.cellHeightUnit === "em") return this.opts.cellHeight * parseFloat(getComputedStyle(this.el).fontSize);
2828
- if (this.opts.cellHeightUnit === "cm") return this.opts.cellHeight * (96 / 2.54);
2829
- if (this.opts.cellHeightUnit === "mm") return this.opts.cellHeight * (96 / 2.54) / 10;
2830
- let t = this.el.querySelector("." + this.opts.itemClass);
2831
- if (t) {
2832
- let e = G.toNumber(t.getAttribute("gs-h")) || 1;
2833
- return Math.round(t.offsetHeight / e);
2834
- }
2835
- let n = parseInt(this.el.getAttribute("gs-current-row"));
2836
- return n ? Math.round(this.el.getBoundingClientRect().height / n) : this.opts.cellHeight;
2837
- }
2838
- cellHeight(e) {
2839
- if (e !== void 0 && this._isAutoCellHeight !== (e === "auto") && (this._isAutoCellHeight = e === "auto", this._updateResizeEvent()), (e === "initial" || e === "auto") && (e = void 0), e === void 0) {
2840
- let t = -this.opts.marginRight - this.opts.marginLeft + this.opts.marginTop + this.opts.marginBottom;
2841
- e = this.cellWidth() + t;
2842
- }
2843
- let t = G.parseHeight(e);
2844
- 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);
2845
- }
2846
- cellWidth() {
2847
- return this._widthOrContainer() / this.getColumn();
2848
- }
2849
- _widthOrContainer(e = !1) {
2850
- return e && this.opts.columnOpts?.breakpointForWindow ? window.innerWidth : this.el.clientWidth || this.el.parentElement.clientWidth || window.innerWidth;
2851
- }
2852
- checkDynamicColumn() {
2853
- let e = this.opts.columnOpts;
2854
- if (!e || !e.columnWidth && !e.breakpoints?.length) return !1;
2855
- let t = this.getColumn(), n = t, r = this._widthOrContainer(!0);
2856
- if (e.columnWidth) n = Math.min(Math.round(r / e.columnWidth) || 1, e.columnMax);
2857
- else {
2858
- n = e.columnMax;
2859
- let i = 0;
2860
- for (; i < e.breakpoints.length && r <= e.breakpoints[i].w;) n = e.breakpoints[i++].c || t;
2861
- }
2862
- if (n !== t) {
2863
- let t = e.breakpoints?.find((e) => e.c === n);
2864
- return this.column(n, t?.layout || e.layout), !0;
2865
- }
2866
- return !1;
2867
- }
2868
- compact(e = "compact", t = !0) {
2869
- return this.engine.compact(e, t), this._triggerChangeEvent(), this;
2870
- }
2871
- column(e, t = "moveScale") {
2872
- if (!e || e < 1 || this.opts.column === e) return this;
2873
- let n = this.getColumn();
2874
- 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.cellHeight(), this.resizeToContentCheck(!0), this._ignoreLayoutsNodeChange = !0, this._triggerChangeEvent(), delete this._ignoreLayoutsNodeChange, this) : (this.responseLayout = t, this);
2875
- }
2876
- getColumn() {
2877
- return this.opts.column;
2878
- }
2879
- getGridItems() {
2880
- return Array.from(this.el.children).filter((e) => e.matches("." + this.opts.itemClass) && !e.matches("." + this.opts.placeholderClass));
2881
- }
2882
- isIgnoreChangeCB() {
2883
- return this._ignoreLayoutsNodeChange;
2884
- }
2885
- destroy(e = !0) {
2886
- if (this.el) return 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;
2887
- }
2888
- float(e) {
2889
- return this.opts.float !== e && (this.opts.float = this.engine.float = e, this._triggerChangeEvent()), this;
2890
- }
2891
- getFloat() {
2892
- return this.engine.float;
2893
- }
2894
- getCellFromPixel(e, t = !1) {
2895
- let n = this.el.getBoundingClientRect(), r;
2896
- r = t ? {
2897
- top: n.top + document.documentElement.scrollTop,
2898
- left: n.left
2899
- } : {
2900
- top: this.el.offsetTop,
2901
- left: this.el.offsetLeft
2902
- };
2903
- 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"));
2904
- return {
2905
- x: Math.floor(i / o),
2906
- y: Math.floor(a / s)
2907
- };
2908
- }
2909
- getRow() {
2910
- return Math.max(this.engine.getRow(), this.opts.minRow || 0);
2911
- }
2912
- isAreaEmpty(e, t, n, r) {
2913
- return this.engine.isAreaEmpty(e, t, n, r);
2914
- }
2915
- makeWidget(t, n) {
2916
- let r = e.getElement(t);
2917
- if (!r || r.gridstackNode) return r;
2918
- r.parentElement || this.el.appendChild(r), this._prepareElement(r, !0, n);
2919
- let i = r.gridstackNode;
2920
- this._updateContainerHeight(), i.subGridOpts && this.makeSubGrid(r, i.subGridOpts, void 0, !1);
2921
- let a;
2922
- return this.opts.column === 1 && !this._ignoreLayoutsNodeChange && (a = this._ignoreLayoutsNodeChange = !0), this._triggerAddEvent(), this._triggerChangeEvent(), a && delete this._ignoreLayoutsNodeChange, r;
2923
- }
2924
- on(e, t) {
2925
- 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) => {
2926
- e.detail && t(e, e.detail);
2927
- }, 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);
2928
- }
2929
- off(e) {
2930
- 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);
2931
- }
2932
- offAll() {
2933
- return Object.keys(this._gsEventHandler).forEach((e) => this.off(e)), this;
2934
- }
2935
- removeWidget(t, n = !0, r = !0) {
2936
- return t ? (e.getElements(t).forEach((t) => {
2937
- if (t.parentElement && t.parentElement !== this.el) return;
2938
- let i = t.gridstackNode;
2939
- 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());
2940
- }), r && (this._triggerRemoveEvent(), this._triggerChangeEvent()), this) : (console.error("Error: GridStack.removeWidget(undefined) called"), this);
2941
- }
2942
- removeAll(t = !0, n = !0) {
2943
- return this.engine.nodes.forEach((n) => {
2944
- t && e.addRemoveCB && e.addRemoveCB(this.el, n, !1, !1), delete n.el.gridstackNode, this.opts.staticGrid || this._removeDD(n.el);
2945
- }), this.engine.removeAll(t, n), n && this._triggerRemoveEvent(), this;
2946
- }
2947
- setAnimation(e = this.opts.animate, t) {
2948
- return t ? setTimeout(() => {
2949
- this.opts && this.setAnimation(e);
2950
- }) : e ? this.el.classList.add("grid-stack-animate") : this.el.classList.remove("grid-stack-animate"), this.opts.animate = e, this;
2951
- }
2952
- hasAnimationCSS() {
2953
- return this.el.classList.contains("grid-stack-animate");
2954
- }
2955
- setStatic(e, t = !0, n = !0) {
2956
- return !!this.opts.staticGrid === e ? this : (e ? this.opts.staticGrid = !0 : delete this.opts.staticGrid, this._setupRemoveDrop(), this._setupAcceptWidget(), this.engine.nodes.forEach((r) => {
2957
- this.prepareDragDrop(r.el), r.subGrid && n && r.subGrid.setStatic(e, t, n);
2958
- }), t && this._setStaticClass(), this);
2959
- }
2960
- updateOptions(e) {
2961
- let t = this.opts;
2962
- if (e === t) return this;
2963
- if (e.acceptWidgets !== void 0 && (t.acceptWidgets = e.acceptWidgets, this._setupAcceptWidget()), e.animate !== void 0 && this.setAnimation(e.animate), e.cellHeight && this.cellHeight(e.cellHeight), e.class !== void 0 && e.class !== t.class && (t.class && this.el.classList.remove(t.class), e.class && this.el.classList.add(e.class)), e.columnOpts) {
2964
- let t = !!this.opts.columnOpts;
2965
- this.opts.columnOpts = e.columnOpts, t !== !!this.opts.columnOpts && this._updateResizeEvent(), this.checkDynamicColumn();
2966
- } else e.columnOpts === null && this.opts.columnOpts ? (delete this.opts.columnOpts, this._updateResizeEvent()) : typeof e.column == "number" && this.column(e.column);
2967
- return e.margin !== void 0 && this.margin(e.margin), e.staticGrid !== void 0 && this.setStatic(e.staticGrid), e.disableDrag !== void 0 && !e.staticGrid && this.enableMove(!e.disableDrag), e.disableResize !== void 0 && !e.staticGrid && this.enableResize(!e.disableResize), e.float !== void 0 && this.float(e.float), e.row === void 0 ? (e.minRow !== void 0 && (t.minRow = e.minRow, this._updateContainerHeight()), e.maxRow !== void 0 && (t.maxRow = this.engine.maxRow = e.maxRow)) : (t.minRow = t.maxRow = t.row = e.row, this._updateContainerHeight()), e.lazyLoad !== void 0 && (t.lazyLoad = e.lazyLoad), e.children?.length && this.load(e.children), this;
2968
- }
2969
- update(t, n) {
2970
- return e.getElements(t).forEach((t) => {
2971
- let r = t?.gridstackNode;
2972
- if (!r) return;
2973
- let i = {
2974
- ...G.copyPos({}, r),
2975
- ...G.cloneDeep(n)
2976
- };
2977
- this.engine.nodeBoundFix(i), delete i.autoPosition;
2978
- let a = [
2979
- "x",
2980
- "y",
2981
- "w",
2982
- "h"
2983
- ], o;
2984
- if (a.some((e) => i[e] !== void 0 && i[e] !== r[e]) && (o = {}, a.forEach((e) => {
2985
- o[e] = i[e] === void 0 ? r[e] : i[e], delete i[e];
2986
- })), !o && (i.minW || i.minH || i.maxW || i.maxH) && (o = {}), i.content !== void 0) {
2987
- let n = t.querySelector(".grid-stack-item-content");
2988
- 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;
2989
- }
2990
- let s = !1, c = !1;
2991
- for (let e in i) e[0] !== "_" && r[e] !== i[e] && (r[e] = i[e], s = !0, c ||= !this.opts.staticGrid && (e === "noResize" || e === "noMove" || e === "locked"));
2992
- if (G.sanitizeMinMax(r), o) {
2993
- let e = o.w !== void 0 && o.w !== r.w;
2994
- this.moveNode(r, o), e && r.subGrid ? r.subGrid.onResize(this.hasAnimationCSS() ? r.w : void 0) : this.resizeToContentCheck(e, r), delete r._orig;
2995
- }
2996
- (o || s) && this._writeAttr(t, r), c && this.prepareDragDrop(r.el), e.updateCB && e.updateCB(r);
2997
- }), this;
2998
- }
2999
- moveNode(e, t) {
3000
- let n = e._updating;
3001
- n || this.engine.cleanNodes().beginUpdate(e), this.engine.moveNode(e, t), this._updateContainerHeight(), n || (this._triggerChangeEvent(), this.engine.endUpdate());
3002
- }
3003
- resizeToContent(t) {
3004
- if (!t || (t.classList.remove("size-to-content-max"), !t.clientHeight)) return;
3005
- let n = t.gridstackNode;
3006
- if (!n) return;
3007
- let r = n.grid;
3008
- if (!r || t.parentElement !== r.el) return;
3009
- let i = r.getCellHeight(!0);
3010
- if (!i) return;
3011
- let a = n.h ? n.h * i : t.clientHeight, o;
3012
- if (n.resizeToContentParent && (o = t.querySelector(n.resizeToContentParent)), o ||= t.querySelector(e.resizeToContentParent), !o) return;
3013
- let s = t.clientHeight - o.clientHeight, c = n.h ? n.h * i - s : o.clientHeight, l;
3014
- if (n.subGrid) {
3015
- l = n.subGrid.getRow() * n.subGrid.getCellHeight(!0);
3016
- let e = n.subGrid.el.getBoundingClientRect(), r = t.getBoundingClientRect();
3017
- l += e.top - r.top;
3018
- } else if (n.subGridOpts?.children?.length) return;
3019
- else {
3020
- let t = o.firstElementChild;
3021
- if (!t) {
3022
- console.error(`Error: GridStack.resizeToContent() widget id:${n.id} '${e.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);
3023
- return;
3024
- }
3025
- l = t.getBoundingClientRect().height || c;
3026
- }
3027
- if (c === l) return;
3028
- a += l - c;
3029
- let u = Math.ceil(a / i), d = Number.isInteger(n.sizeToContent) ? n.sizeToContent : 0;
3030
- 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);
3031
- }
3032
- resizeToContentCBCheck(t) {
3033
- e.resizeToContentCB ? e.resizeToContentCB(t) : this.resizeToContent(t);
3034
- }
3035
- rotate(t, n) {
3036
- return e.getElements(t).forEach((e) => {
3037
- let t = e.gridstackNode;
3038
- if (!G.canBeRotated(t)) return;
3039
- let r = {
3040
- w: t.h,
3041
- h: t.w,
3042
- minH: t.minW,
3043
- minW: t.minH,
3044
- maxH: t.maxW,
3045
- maxW: t.maxH
3046
- };
3047
- if (n) {
3048
- let e = n.left > 0 ? Math.floor(n.left / this.cellWidth()) : 0, i = n.top > 0 ? Math.floor(n.top / this.opts.cellHeight) : 0;
3049
- r.x = t.x + e - (t.h - (i + 1)), r.y = t.y + i - e;
3050
- }
3051
- Object.keys(r).forEach((e) => {
3052
- r[e] === void 0 && delete r[e];
3053
- });
3054
- let i = t._orig;
3055
- this.update(e, r), t._orig = i;
3056
- }), this;
3057
- }
3058
- margin(e) {
3059
- if (!(typeof e == "string" && e.split(" ").length > 1)) {
3060
- let t = G.parseHeight(e);
3061
- if (this.opts.marginUnit === t.unit && this.opts.margin === t.h) return;
3062
- }
3063
- return this.opts.margin = e, this.opts.marginTop = this.opts.marginBottom = this.opts.marginLeft = this.opts.marginRight = void 0, this._initMargin(), this;
3064
- }
3065
- getMargin() {
3066
- return this.opts.margin;
3067
- }
3068
- willItFit(e) {
3069
- return this.engine.willItFit(e);
3070
- }
3071
- _triggerChangeEvent() {
3072
- if (this.engine.batchMode) return this;
3073
- let e = this.engine.getDirtyNodes(!0);
3074
- return e && e.length && (this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(e), this._triggerEvent("change", e)), this.engine.saveInitial(), this;
3075
- }
3076
- _triggerAddEvent() {
3077
- if (this.engine.batchMode) return this;
3078
- if (this.engine.addedNodes?.length) {
3079
- this._ignoreLayoutsNodeChange || this.engine.layoutsNodesChange(this.engine.addedNodes), this.engine.addedNodes.forEach((e) => {
3080
- delete e._dirty;
3081
- });
3082
- let e = [...this.engine.addedNodes];
3083
- this.engine.addedNodes = [], this._triggerEvent("added", e);
3084
- }
3085
- return this;
3086
- }
3087
- _triggerRemoveEvent() {
3088
- if (this.engine.batchMode) return this;
3089
- if (this.engine.removedNodes?.length) {
3090
- let e = [...this.engine.removedNodes];
3091
- this.engine.removedNodes = [], this._triggerEvent("removed", e);
3092
- }
3093
- return this;
3094
- }
3095
- _triggerEvent(e, t) {
3096
- let n = t ? new CustomEvent(e, {
3097
- bubbles: !1,
3098
- detail: t
3099
- }) : new Event(e), r = this;
3100
- for (; r.parentGridNode;) r = r.parentGridNode.grid;
3101
- return r.el.dispatchEvent(n), this;
3102
- }
3103
- _updateContainerHeight() {
3104
- if (!this.engine || this.engine.batchMode) return this;
3105
- let e = this.parentGridNode, t = this.getRow() + this._extraDragRow, n = this.opts.cellHeight, r = this.opts.cellHeightUnit;
3106
- if (!n) return this;
3107
- if (!e && !this.opts.minRow) {
3108
- let e = G.parseHeight(getComputedStyle(this.el).minHeight);
3109
- if (e.h > 0 && e.unit === r) {
3110
- let r = Math.floor(e.h / n);
3111
- t < r && (t = r);
3112
- }
3113
- }
3114
- return this.el.setAttribute("gs-current-row", String(t)), this.el.style.removeProperty("min-height"), this.el.style.removeProperty("height"), t && (this.el.style[e ? "minHeight" : "height"] = t * n + r), e && G.shouldSizeToContent(e) && e.grid.resizeToContentCBCheck(e.el), this;
3115
- }
3116
- _prepareElement(e, t = !1, n) {
3117
- 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);
3118
- let r = G.shouldSizeToContent(n);
3119
- return r ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), r && this.resizeToContentCheck(!1, n), G.lazyLoad(n) || this.prepareDragDrop(n.el), this;
3120
- }
3121
- _writePosAttr(e, t) {
3122
- if (!t._moving && !t._resizing || this._placeholder === e) {
3123
- let n = this.opts.rtl ? "right" : "left";
3124
- e.style.top = t.y ? t.y === 1 ? "var(--gs-cell-height)" : `calc(${t.y} * var(--gs-cell-height))` : null, e.style[n] = t.x ? t.x === 1 ? "var(--gs-column-width)" : `calc(${t.x} * var(--gs-column-width))` : null, e.style.width = t.w > 1 ? `calc(${t.w} * var(--gs-column-width))` : null, e.style.height = t.h > 1 ? `calc(${t.h} * var(--gs-cell-height))` : null;
3125
- }
3126
- return e.setAttribute("gs-x", String(t.x)), e.setAttribute("gs-y", String(t.y)), 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;
3127
- }
3128
- _writeAttr(e, t) {
3129
- if (!t) return this;
3130
- this._writePosAttr(e, t);
3131
- let n = {
3132
- noResize: "gs-no-resize",
3133
- noMove: "gs-no-move",
3134
- locked: "gs-locked",
3135
- id: "gs-id",
3136
- sizeToContent: "gs-size-to-content"
3137
- };
3138
- for (let r in n) t[r] ? e.setAttribute(n[r], String(t[r])) : e.removeAttribute(n[r]);
3139
- return this;
3140
- }
3141
- _readAttr(e, t = !0) {
3142
- let n = {};
3143
- 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"));
3144
- let r = e.getAttribute("gs-size-to-content");
3145
- r && (r === "true" || r === "false" ? n.sizeToContent = G.toBool(r) : n.sizeToContent = parseInt(r, 10)), n.id = e.getAttribute("gs-id"), 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"));
3146
- for (let e in n) {
3147
- if (!n.hasOwnProperty(e)) return;
3148
- !n[e] && n[e] !== 0 && e !== "sizeToContent" && delete n[e];
3149
- }
3150
- return n;
3151
- }
3152
- _setStaticClass() {
3153
- let e = ["grid-stack-static"];
3154
- 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;
3155
- }
3156
- onResize(e = this.el?.clientWidth) {
3157
- if (!e || this.prevWidth === e) return;
3158
- this.prevWidth = e, this.batchUpdate();
3159
- let t = !1;
3160
- return this._autoColumn && this.parentGridNode ? this.opts.column !== this.parentGridNode.w && (this.column(this.parentGridNode.w, this.opts.layout || "list"), t = !0) : t = this.checkDynamicColumn(), this._isAutoCellHeight && this.cellHeight(), this.engine.nodes.forEach((e) => {
3161
- e.subGrid && e.subGrid.onResize();
3162
- }), this._skipInitialResize || this.resizeToContentCheck(t), delete this._skipInitialResize, this.batchUpdate(!1), this;
3163
- }
3164
- resizeToContentCheck(e = !1, t = void 0) {
3165
- if (this.engine) {
3166
- if (e && this.hasAnimationCSS()) return setTimeout(() => this.resizeToContentCheck(!1, t), this.animationDelay);
3167
- if (t) G.shouldSizeToContent(t) && this.resizeToContentCBCheck(t.el);
3168
- else if (this.engine.nodes.some((e) => G.shouldSizeToContent(e))) {
3169
- let e = [...this.engine.nodes];
3170
- this.batchUpdate(), e.forEach((e) => {
3171
- G.shouldSizeToContent(e) && this.resizeToContentCBCheck(e.el);
3172
- }), this._ignoreLayoutsNodeChange = !0, this.batchUpdate(!1), this._ignoreLayoutsNodeChange = !1;
3173
- }
3174
- this._gsEventHandler.resizecontent && this._gsEventHandler.resizecontent(null, t ? [t] : this.engine.nodes);
3175
- }
3176
- }
3177
- _updateResizeEvent(e = !1) {
3178
- let t = !this.parentGridNode && (this._isAutoCellHeight || this.opts.sizeToContent || this.opts.columnOpts || this.engine.nodes.find((e) => e.sizeToContent));
3179
- 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;
3180
- }
3181
- static getElement(e = ".grid-stack-item") {
3182
- return G.getElement(e);
3183
- }
3184
- static getElements(e = ".grid-stack-item") {
3185
- return G.getElements(e);
3186
- }
3187
- static getGridElement(t) {
3188
- return e.getElement(t);
3189
- }
3190
- static getGridElements(e) {
3191
- return G.getElements(e);
3192
- }
3193
- _initMargin() {
3194
- let e, t = 0, n = [];
3195
- 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), [
3196
- "marginTop",
3197
- "marginRight",
3198
- "marginBottom",
3199
- "marginLeft"
3200
- ].forEach((n) => {
3201
- this.opts[n] === void 0 ? this.opts[n] = t : (e = G.parseHeight(this.opts[n]), this.opts[n] = e.h, delete this.opts.margin);
3202
- }), 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);
3203
- let r = this.el.style;
3204
- return r.setProperty("--gs-item-margin-top", `${this.opts.marginTop}${this.opts.marginUnit}`), r.setProperty("--gs-item-margin-bottom", `${this.opts.marginBottom}${this.opts.marginUnit}`), r.setProperty("--gs-item-margin-right", `${this.opts.marginRight}${this.opts.marginUnit}`), r.setProperty("--gs-item-margin-left", `${this.opts.marginLeft}${this.opts.marginUnit}`), this;
3205
- }
3206
- static getDD() {
3207
- return X;
3208
- }
3209
- static setupDragIn(e, t, n, r = document) {
3210
- t?.pause !== void 0 && (q.pauseDrag = t.pause), t = {
3211
- appendTo: "body",
3212
- helper: "clone",
3213
- ...t || {}
3214
- }, (typeof e == "string" ? G.getElements(e, r) : e).forEach((e, r) => {
3215
- X.isDraggable(e) || X.dragIn(e, t), n?.[r] && (e.gridstackNode = n[r]);
3216
- });
3217
- }
3218
- movable(t, n) {
3219
- return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3220
- let t = e.gridstackNode;
3221
- t && (n ? delete t.noMove : t.noMove = !0, this.prepareDragDrop(t.el));
3222
- }), this;
3223
- }
3224
- resizable(t, n) {
3225
- return this.opts.staticGrid || e.getElements(t).forEach((e) => {
3226
- let t = e.gridstackNode;
3227
- t && (n ? delete t.noResize : t.noResize = !0, this.prepareDragDrop(t.el));
3228
- }), this;
3229
- }
3230
- disable(e = !0) {
3231
- if (!this.opts.staticGrid) return this.enableMove(!1, e), this.enableResize(!1, e), this._triggerEvent("disable"), this;
3232
- }
3233
- enable(e = !0) {
3234
- if (!this.opts.staticGrid) return this.enableMove(!0, e), this.enableResize(!0, e), this._triggerEvent("enable"), this;
3235
- }
3236
- enableMove(e, t = !0) {
3237
- return this.opts.staticGrid ? this : (e ? delete this.opts.disableDrag : this.opts.disableDrag = !0, this.engine.nodes.forEach((n) => {
3238
- this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableMove(e, t);
3239
- }), this);
3240
- }
3241
- enableResize(e, t = !0) {
3242
- return this.opts.staticGrid ? this : (e ? delete this.opts.disableResize : this.opts.disableResize = !0, this.engine.nodes.forEach((n) => {
3243
- this.prepareDragDrop(n.el), n.subGrid && t && n.subGrid.enableResize(e, t);
3244
- }), this);
3245
- }
3246
- cancelDrag() {
3247
- let t = this._placeholder?.gridstackNode;
3248
- t && (t._isExternal ? (t._isAboutToRemove = !0, this.engine.removeNode(t)) : t._isAboutToRemove && e._itemRemoving(t.el, !1), this.engine.restoreInitial());
3249
- }
3250
- _removeDD(e) {
3251
- return X.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
3252
- }
3253
- _setupAcceptWidget() {
3254
- if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable) return X.droppable(this.el, "destroy"), this;
3255
- let t, n, r = (e, r, i) => {
3256
- i ||= r;
3257
- let a = i.gridstackNode;
3258
- if (!a) return;
3259
- if (!a.grid?.el) {
3260
- i.style.transform = `scale(${1 / this.dragTransform.xScale},${1 / this.dragTransform.yScale})`;
3261
- let t = i.getBoundingClientRect();
3262
- 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";
3263
- }
3264
- let { top: o, left: s } = i.getBoundingClientRect(), c = this.el.getBoundingClientRect();
3265
- s -= c.left, o -= c.top;
3266
- let l = { position: {
3267
- top: o * this.dragTransform.xScale,
3268
- left: s * this.dragTransform.yScale
3269
- } };
3270
- if (a._temporaryRemoved) {
3271
- 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)) {
3272
- if (a.autoPosition = !0, !this.engine.willItFit(a)) {
3273
- X.off(r, "drag");
3274
- return;
3275
- }
3276
- a._willFitPos && (G.copyPos(a, a._willFitPos), delete a._willFitPos);
3277
- }
3278
- this._onStartMoving(i, e, l, a, n, t);
3279
- } else this._dragOrResize(i, e, l, a, n, t);
3280
- };
3281
- return X.droppable(this.el, { accept: (e) => {
3282
- let t = e.gridstackNode || this._readAttr(e, !1);
3283
- if (t?.grid === this) return !0;
3284
- if (!this.opts.acceptWidgets) return !1;
3285
- let n = !0;
3286
- if (typeof this.opts.acceptWidgets == "function") n = this.opts.acceptWidgets(e);
3287
- else {
3288
- let t = this.opts.acceptWidgets === !0 ? ".grid-stack-item" : this.opts.acceptWidgets;
3289
- n = e.matches(t);
3290
- }
3291
- if (n && t && this.opts.maxRow) {
3292
- let e = {
3293
- w: t.w,
3294
- h: t.h,
3295
- minW: t.minW,
3296
- minH: t.minH
3297
- };
3298
- n = this.engine.willItFit(e);
3299
- }
3300
- return n;
3301
- } }).on(this.el, "dropover", (i, a, o) => {
3302
- let s = o?.gridstackNode || a.gridstackNode;
3303
- if (s?.grid === this && !s._temporaryRemoved) return !1;
3304
- 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) {
3305
- let e = o.getAttribute("data-gs-widget") || o.getAttribute("gridstacknode");
3306
- if (e) {
3307
- try {
3308
- s = JSON.parse(e);
3309
- } catch {
3310
- console.error("Gridstack dropover: Bad JSON format: ", e);
3311
- }
3312
- o.removeAttribute("data-gs-widget"), o.removeAttribute("gridstacknode");
3313
- }
3314
- s ||= this._readAttr(o), s._sidebarOrig = {
3315
- w: s.w,
3316
- h: s.h
3317
- };
3318
- }
3319
- s.grid || (s.el || (s = { ...s }), s._isExternal = !0, o.gridstackNode = s);
3320
- let c = s.w || Math.round(o.offsetWidth / n) || 1, l = s.h || Math.round(o.offsetHeight / t) || 1;
3321
- return s.grid && s.grid !== this ? (a._gridstackNodeOrig ||= s, a.gridstackNode = s = {
3322
- ...s,
3323
- w: c,
3324
- h: l,
3325
- grid: this
3326
- }, 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), X.on(a, "drag", r), r(i, a, o), !1;
3327
- }).on(this.el, "dropout", (e, t, n) => {
3328
- let r = n?.gridstackNode || t.gridstackNode;
3329
- return r && (!r.grid || r.grid === this) && (this._leave(t, n), this._isTemp && this.removeAsSubGrid(r)), !1;
3330
- }).on(this.el, "drop", (t, n, r) => {
3331
- let i = r?.gridstackNode || n.gridstackNode;
3332
- if (i?.grid === this && !i._isExternal) return !1;
3333
- let a = !!this.placeholder.parentElement, o = n !== r;
3334
- this.placeholder.remove(), delete this.placeholder.gridstackNode, a && this.opts.animate && (this.setAnimation(!1), this.setAnimation(!0, !0));
3335
- let s = n._gridstackNodeOrig;
3336
- if (delete n._gridstackNodeOrig, a && s?.grid && s.grid !== this) {
3337
- let e = s.grid;
3338
- e.engine.removeNodeFromLayoutCache(s), e.engine.removedNodes.push(s), e._triggerRemoveEvent()._triggerChangeEvent(), e.parentGridNode && !e.engine.nodes.length && e.opts.subGridDynamic && e.removeAsSubGrid();
3339
- }
3340
- if (!i || (a && (this.engine.cleanupNode(i), i.grid = this), delete i.grid?._isTemp, X.off(n, "drag"), r === n ? n.remove() : (r.remove(), n = r), this._removeDD(n), !a)) return !1;
3341
- let c = i.subGrid?.el?.gridstack;
3342
- 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)) : (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({
3343
- ...t,
3344
- type: "dropped"
3345
- }, s && s.grid ? s : void 0, i), !1;
3346
- }), this;
3347
- }
3348
- static _itemRemoving(e, t) {
3349
- if (!e) return;
3350
- let n = e ? e.gridstackNode : void 0;
3351
- !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"));
3352
- }
3353
- _setupRemoveDrop() {
3354
- if (typeof this.opts.removable != "string") return this;
3355
- let t = document.querySelector(this.opts.removable);
3356
- return t && !this.opts.staticGrid && !X.isDroppable(t) && X.droppable(t, this.opts.removableOptions).on(t, "dropover", (t, n) => e._itemRemoving(n, !0)).on(t, "dropout", (t, n) => e._itemRemoving(n, !1)), this;
3357
- }
3358
- prepareDragDrop(e, t = !1) {
3359
- let n = e?.gridstackNode;
3360
- if (!n) return;
3361
- let r = n.noMove || this.opts.disableDrag, i = n.noResize || this.opts.disableResize, a = this.opts.staticGrid || r && i;
3362
- if ((t || a) && (n._initDD && (this._removeDD(e), delete n._initDD), a)) return e.classList.add("ui-draggable-disabled", "ui-resizable-disabled"), this;
3363
- if (!n._initDD) {
3364
- let t, r, i = (i, a) => {
3365
- this.triggerEvent(i, i.target), t = this.cellWidth(), r = this.getCellHeight(!0), this._onStartMoving(e, i, a, n, t, r);
3366
- }, a = (i, a) => {
3367
- this._dragOrResize(e, i, a, n, t, r);
3368
- }, o = (t) => {
3369
- this.placeholder.remove(), delete this.placeholder.gridstackNode, delete n._moving, delete n._resizing, delete n._event, delete n._lastTried;
3370
- let r = n.w !== n._orig.w, i = t.target;
3371
- if (!(!i.gridstackNode || i.gridstackNode.grid !== this)) {
3372
- if (n.el = i, n._isAboutToRemove) {
3373
- let r = e.gridstackNode.grid;
3374
- r._gsEventHandler[t.type] && r._gsEventHandler[t.type](t, i), r.engine.nodes.push(n), r.removeWidget(e, !0, !0);
3375
- } else G.removePositioningStyles(i), n._temporaryRemoved ? (this._writePosAttr(i, n), this.engine.addNode(n)) : this._writePosAttr(i, n), this.triggerEvent(t, i);
3376
- 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));
3377
- }
3378
- };
3379
- X.draggable(e, {
3380
- start: i,
3381
- stop: o,
3382
- drag: a,
3383
- rtl: this.opts.rtl
3384
- }).resizable(e, {
3385
- start: i,
3386
- stop: o,
3387
- resize: a,
3388
- rtl: this.opts.rtl
3389
- }), n._initDD = !0;
3390
- }
3391
- return X.draggable(e, r ? "disable" : "enable").resizable(e, i ? "disable" : "enable"), this;
3392
- }
3393
- _onStartMoving(e, t, n, r, i, a) {
3394
- 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);
3395
- else if (this.placeholder && this.placeholder.closest(".grid-stack")) {
3396
- let e = this.placeholder.closest(".grid-stack");
3397
- this.dragTransform = G.getValuesFromTransformedElement(e);
3398
- } else this.dragTransform = {
3399
- xScale: 1,
3400
- xOffset: 0,
3401
- yScale: 1,
3402
- yOffset: 0
3403
- };
3404
- 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") {
3405
- let t = this.getColumn() - r.x, n = (this.opts.maxRow || 2 ** 53 - 1) - r.y;
3406
- X.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));
3407
- }
3408
- }
3409
- _dragOrResize(e, t, n, r, i, a) {
3410
- let o = { ...r._orig }, s, 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);
3411
- if (c = Math.min(c, p), l = Math.min(l, p), u = Math.min(u, f), d = Math.min(d, f), t.type === "drag") {
3412
- if (r._temporaryRemoved) return;
3413
- r._prevYPix = n.position.top, this.opts.draggable.scroll !== !1 && q.dragElement?.updateScrollPosition(this.el);
3414
- 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);
3415
- o.x = Math.round(e / i), o.y = Math.round(t / a);
3416
- let s = this._extraDragRow;
3417
- if (this.engine.collide(r, o)) {
3418
- let e = this.getRow(), t = Math.max(0, o.y + r.h - e);
3419
- this.opts.maxRow && e + t > this.opts.maxRow && (t = Math.max(0, this.opts.maxRow - e)), this._extraDragRow = t;
3420
- } else this._extraDragRow = 0;
3421
- if (this._extraDragRow !== s && this._updateContainerHeight(), r.x === o.x && r.y === o.y) return;
3422
- } else if (t.type === "resize") {
3423
- if (o.x < 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;
3424
- if (t.hasMovedX) {
3425
- let e = n.position.left + c;
3426
- o.x = Math.round(e / i);
3427
- }
3428
- if (t.hasMovedY) {
3429
- let e = n.position.top + u;
3430
- o.y = Math.round(e / a);
3431
- }
3432
- s = !0;
3433
- }
3434
- r._event = t, r._lastTried = o;
3435
- let m = {
3436
- x: n.position.left + c,
3437
- y: n.position.top + u,
3438
- w: (n.size ? n.size.width : r.w * i) - c - l,
3439
- h: (n.size ? n.size.height : r.h * a) - u - d
3440
- };
3441
- if (this.engine.moveNodeCheck(r, {
3442
- ...o,
3443
- cellWidth: i,
3444
- cellHeight: a,
3445
- rect: m,
3446
- resizing: s
3447
- })) {
3448
- 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();
3449
- let e = t.target;
3450
- r._sidebarOrig || this._writePosAttr(e, r), this.triggerEvent(t, e);
3451
- }
3452
- }
3453
- triggerEvent(e, t) {
3454
- let n = this;
3455
- for (; n.parentGridNode;) n = n.parentGridNode.grid;
3456
- n._gsEventHandler[e.type] && n._gsEventHandler[e.type](e, t);
3457
- }
3458
- _leave(t, n) {
3459
- n ||= t;
3460
- let r = n.gridstackNode;
3461
- if (!r || (n.style.transform = n.style.transformOrigin = null, X.off(t, "drag"), r._temporaryRemoved)) return;
3462
- r._temporaryRemoved = !0, this.engine.removeNode(r), r.el = r._isExternal && n ? n : t;
3463
- let i = r._sidebarOrig;
3464
- 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();
3465
- }
3466
- };
3467
- Z.renderCB = (e, t) => {
3468
- e && t?.content && (e.textContent = t.content);
3469
- }, Z.resizeToContentParent = ".grid-stack-item-content", Z.Utils = G, Z.Engine = xn, Z.GDRev = "12.6.0";
3470
- //#endregion
3471
- //#region src/components/item-grid/helpers/grid-stack-lifecycle.ts
3472
- var Ln = ({ gridElement: e, gridItemElements: t, items: n, columns: r, rowHeight: i, viewMode: a, fullTheme: o, onCreateOrUpdateDimensionsHint: s, onRemoveDimensionsHint: c, onChange: l }) => {
3473
- let [u, d] = un(o), f = {
3474
- column: r,
3475
- cellHeight: i,
3476
- marginTop: u,
3477
- marginLeft: d,
3478
- marginRight: d,
3479
- marginBottom: u,
3480
- animate: !0,
3481
- auto: !1,
3482
- float: !1,
3483
- removable: !1,
3484
- acceptWidgets: !0,
3485
- disableDrag: a,
3486
- disableResize: a,
3487
- minRow: 1,
3488
- resizable: { handles: [
3489
- "n",
3490
- "ne",
3491
- "e",
3492
- "se",
3493
- "s",
3494
- "sw",
3495
- "w",
3496
- "nw"
3497
- ].join(", ") },
3498
- handle: ".grid-item-drag-handle"
3499
- }, p = Z.init(f, e);
3500
- return p.batchUpdate(), t.forEach((e) => {
3501
- let t = e.getAttribute("luzmo-item-grid-item-id"), r = xe(n.find((e) => e.id === t), t ?? void 0);
3502
- p.makeWidget(e, r);
3503
- }), p.batchUpdate(!1), p.on("resizestart", (e, t) => {
3504
- s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3505
- }), p.on("resize", (e, t) => {
3506
- s(t, t.getAttribute("gs-w") ?? "", t.getAttribute("gs-h") ?? "");
3507
- }), p.on("resizestop", (e, t) => {
3508
- c(t);
3509
- }), p.on("change", (e, t) => {
3510
- l(t);
3511
- }), p;
3512
- }, Rn = (e, t) => {
3513
- let n = new Map(t.filter((e) => e.id).map((e) => [e.id, e]));
3514
- return e.map((e) => {
3515
- let t = e.id ? n.get(e.id) : void 0;
3516
- return t ? {
3517
- ...e,
3518
- position: {
3519
- sizeX: t.w ?? 1,
3520
- sizeY: t.h ?? 1,
3521
- row: t.y ?? 0,
3522
- col: t.x ?? 0
3523
- }
3524
- } : e;
3525
- });
3526
- }, zn = ({ element: e, numberOfColumns: t, numberOfRows: n, offsetHint: r }) => {
3527
- let i = e.querySelector(".dimensions-hint-popover");
3528
- if (i) {
3529
- i.style.display = t.length > 0 && n.length > 0 ? "block" : "none", i.textContent = `${t} × ${n}`;
3530
- return;
3531
- }
3532
- let a = document.createElement("div");
3533
- 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), Zt(a, Kt(e, a, async () => {
3534
- let { x: t, y: n } = await Yt(e, a, {
3535
- placement: "bottom",
3536
- middleware: [qt(r), Jt()]
3537
- });
3538
- a.style.left = `${t}px`, a.style.top = `${n}px`;
3539
- })), a.matches(":popover-open") || a.showPopover();
3540
- }, Bn = (e) => {
3541
- let t = e.querySelector(".dimensions-hint-popover");
3542
- t && (Qt(t), t.matches(":popover-open") && t.hidePopover(), t.remove());
3543
- }, Vn = ({ initialized: e, grid: t, hasItemsChanged: n, gridItemElements: r, items: i }) => {
3544
- !e || !t || !n || (t.setAnimation(!1), t.batchUpdate(), t.removeAll(!1), i.forEach((e) => {
3545
- let n = Ce(r, e.id);
3546
- n && t.makeWidget(n, xe(e, e.id));
3547
- }), t.batchUpdate(!1), t.setAnimation(!0));
3548
- }, Hn = ({ initialized: e, grid: t, hasViewModeChanged: n, viewMode: r, previousViewMode: i, activeItemElement: a, gridElement: o, cleanupActiveItem: s }) => {
3549
- if (!e || !t || !n || r === i) return a;
3550
- if (r) {
3551
- if (t.disable(), a) {
3552
- s(a), o.removeAttribute("has-active-item");
3553
- return;
3554
- }
3555
- return a;
3556
- }
3557
- return t.enable(), a;
3558
- }, Un = ":host{--luzmo-action-button-content-color-default:var(--luzmo-item-grid-item-action-button-content-color-default,#fff);--luzmo-action-button-content-color-hover:var(--luzmo-item-grid-item-action-button-content-color-hover,#fff);--luzmo-action-button-content-color-down:var(--luzmo-item-grid-item-action-button-content-color-down,#fff);--luzmo-action-button-content-color-focus:var(--luzmo-item-grid-item-action-button-content-color-focus,#fff);--luzmo-action-button-background-color-default:var(--luzmo-item-grid-item-action-button-background-color-default,#333);--luzmo-action-button-background-color-hover:var(--luzmo-item-grid-item-action-button-background-color-hover,#444);--luzmo-action-button-background-color-down:var(--luzmo-item-grid-item-action-button-background-color-down,#555);--luzmo-action-button-background-color-focus:var(--luzmo-item-grid-item-action-button-background-color-focus,#666);--grid-item-actions-flex-direction:column;display:block}.action-buttons{gap:var(--luzmo-item-grid-item-action-group-gap,.5rem);flex-direction:var(--luzmo-item-grid-item-actions-flex-direction,var(--grid-item-actions-flex-direction));outline:none;display:flex}.action-button[selected]{--luzmo-action-button-background-color-default:var(--luzmo-primary);--luzmo-action-button-background-color-hover:var(--luzmo-primary-hover);--luzmo-action-button-background-color-down:var(--luzmo-primary-down);--luzmo-action-button-background-color-focus:var(--luzmo-primary-focus);--luzmo-action-button-content-color-default:var(--luzmo-primary-inverse-color);--luzmo-action-button-content-color-hover:var(--luzmo-primary-inverse-color);--luzmo-action-button-content-color-down:var(--luzmo-primary-inverse-color);--luzmo-action-button-content-color-focus:var(--luzmo-primary-inverse-color)}:host .action-buttons{--luzmo-action-button-content-color-default:var(--luzmo-item-grid-item-action-button-content-color-default,#fff);--luzmo-action-button-content-color-hover:var(--luzmo-item-grid-item-action-button-content-color-hover,#fff);--luzmo-action-button-content-color-down:var(--luzmo-item-grid-item-action-button-content-color-down,#fff);--luzmo-action-button-content-color-focus:var(--luzmo-item-grid-item-action-button-content-color-focus,#fff);--luzmo-action-button-background-color-default:var(--luzmo-item-grid-item-action-button-background-color-default,#333);--luzmo-action-button-background-color-hover:var(--luzmo-item-grid-item-action-button-background-color-hover,#444);--luzmo-action-button-background-color-down:var(--luzmo-item-grid-item-action-button-background-color-down,#555);--luzmo-action-button-background-color-focus:var(--luzmo-item-grid-item-action-button-background-color-focus,#666)}.delete-button{--luzmo-action-button-background-color-hover:var(--luzmo-item-grid-item-delete-button-background-color-hover,var(--luzmo-negative-color));--luzmo-action-button-content-color-hover:var(--luzmo-item-grid-item-delete-button-content-color-hover,#fff);--luzmo-action-button-background-color-focus:var(--luzmo-item-grid-item-delete-button-background-color-focus,var(--luzmo-negative-color-focus));--luzmo-action-button-content-color-focus:var(--luzmo-item-grid-item-delete-button-content-color-focus,#fff);--luzmo-action-button-background-color-down:var(--luzmo-item-grid-item-delete-button-background-color-down,var(--luzmo-negative-color-down));--luzmo-action-button-content-color-down:var(--luzmo-item-grid-item-delete-button-content-color-down,#fff)}:host([placement=top-start]),:host([placement=top]),:host([placement=top-end]),:host([placement=bottom-start]),:host([placement=bottom]),:host([placement=bottom-end]){--grid-item-actions-flex-direction:row}", Q = class extends t(re) {
3559
- constructor(...e) {
3560
- super(...e), this.placement = "right-start", this.actions = on();
3561
- }
3562
- static get styles() {
3563
- return [y(Un)];
3564
- }
3565
- get isVertical() {
3566
- return this.placement.includes("left") || this.placement.includes("right");
3567
- }
3568
- _dispatchAction(e) {
3569
- this.dispatchEvent(new CustomEvent("luzmo-item-grid-item-action", {
3570
- bubbles: !0,
3571
- composed: !0,
3572
- detail: {
3573
- action: e.action,
3574
- type: e.type,
3575
- active: e.active
3576
- }
3577
- }));
3578
- }
3579
- _handleActionClick(e, t) {
3580
- e.stopPropagation(), t.type === "toggle" && (t.active = !t.active, this.actions.forEach((e) => {
3581
- e.actions?.forEach((e) => {
3582
- t !== e && e.active && (e.active = !1);
3583
- });
3584
- })), this._dispatchAction(t), this.requestUpdate();
3585
- }
3586
- clearActiveToggles() {
3587
- this.actions = this.actions.map((e) => ({
3588
- ...e,
3589
- actions: e.actions?.map((e) => (e.type === "toggle" && (e.active = !1), e)) ?? []
3590
- }));
3591
- }
3592
- focus() {
3593
- let e = this.shadowRoot?.querySelectorAll("luzmo-action-button[toggles]");
3594
- e && e[0]?.focus();
3595
- }
3596
- _generateActionButton(e) {
3597
- let t = {
3598
- Data: w("Data", { desc: "Label for the data section" }),
3599
- Options: w("Options", { desc: "Label for the options section" }),
3600
- Clone: w("Clone", { desc: "Grid item action tooltip" }),
3601
- Delete: w("Delete", { desc: "Delete action label" }),
3602
- Edit: w("Edit", { desc: "Edit action label" }),
3603
- Lock: w("Lock", { desc: "Grid item action tooltip" }),
3604
- Filters: w("Filters", { desc: "Label for the filters section" })
3605
- };
3606
- return g`
3607
- <luzmo-action-button
3608
- class="${e.action}-button action-button"
3609
- .label=${e.label}
3610
- ?toggles=${e.type === "toggle"}
3611
- ?selected=${e.type === "toggle" && e.active}
3612
- @click=${(t) => this._handleActionClick(t, e)}
3613
- >
3614
- <luzmo-icon slot="icon" .icon=${e.icon} size="s"></luzmo-icon>
3615
- ${e.tooltip ? g`
3616
- <luzmo-tooltip
3617
- self-managed
3618
- delayed
3619
- placement=${this.placement?.includes("right") ? "right" : this.placement?.includes("left") ? "left" : this.placement?.includes("bottom") ? "bottom" : this.placement?.includes("top") ? "top" : "right"}
3620
- >
3621
- ${t[e.tooltip] ?? e.tooltip}
3622
- </luzmo-tooltip>
3623
- ` : ""}
3624
- </luzmo-action-button>
3625
- `;
3626
- }
3627
- _generateActionGroup(e) {
3628
- let t = e?.actions?.map((e) => this._generateActionButton(e)) ?? [];
3629
- return t.length > 0 ? g`
3630
- <luzmo-action-group ?vertical=${this.isVertical} compact
3631
- >${t}</luzmo-action-group
3632
- >
3633
- ` : g`
3634
-
3635
- `;
3636
- }
3637
- render() {
3638
- let e = this.actions.map((e) => this._generateActionGroup(e));
3639
- return g`
3640
- <div class="action-buttons" tabindex="0" role="toolbar" aria-label=${w("Item actions", { desc: "Item actions toolbar label" })}>${e}</div>
3641
- `;
3642
- }
3643
- };
3644
- e([b({
3645
- type: String,
3646
- reflect: !0
3647
- })], Q.prototype, "placement", void 0), e([b({ type: Array })], Q.prototype, "actions", void 0), Q = e([C()], Q);
3648
- //#endregion
3649
- //#region src/components/item-grid/item-grid.module.scss?inline
3650
- var Wn = ":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 re {
3651
- constructor(...e) {
3652
- 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) => g`
3653
- <div class="grid-item-content">
3654
- <div class="grid-item-type">${e.type}</div>
3655
- </div>
3656
- `, 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) => {
3657
- if (this.viewMode) return;
3658
- let t = le(e.target);
3659
- t && ue({
3660
- event: e,
3661
- gridItem: t
3662
- }) && this._removeItemActionsMenuPopover(t);
3663
- }, this._handleKeyDown = (e) => {
3664
- let t = rn({
3665
- event: e,
3666
- viewMode: this.viewMode,
3667
- focusedItemElement: this._focusedItemElement,
3668
- activeItemElement: this._activeItemElement,
3669
- gridElement: this._gridElement,
3670
- grid: this._grid,
3671
- columns: this.columns ?? 48,
3672
- onDeleteRequest: (e) => {
3673
- let t = e.getAttribute("gs-id");
3674
- if (!t) return;
3675
- let n = this._effectiveItems, r = n.find((e) => e.id === t);
3676
- if (!r) return;
3677
- this._isControlled || this._clearGridItemUiStateForDelete(e);
3678
- let i = n.filter((e) => e.id !== t);
3679
- T({
3680
- target: this,
3681
- action: "delete",
3682
- actionType: "button",
3683
- active: !1,
3684
- items: n,
3685
- element: e,
3686
- itemId: t,
3687
- item: r,
3688
- updatedItems: i
3689
- }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3690
- },
3691
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
3692
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3693
- });
3694
- this._focusedItemElement = t.focusedItemElement, this._activeItemElement = t.activeItemElement;
3695
- }, this._handleFocus = (e) => {
3696
- this._focusedItemElement = de({
3697
- event: e,
3698
- focusedItemElement: this._focusedItemElement,
3699
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3700
- });
3701
- }, this._handleBlur = (e) => {
3702
- let t = fe({
3703
- event: e,
3704
- focusedItemElement: this._focusedItemElement,
3705
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3706
- });
3707
- this._focusedItemElement = t.focusedItemElement, t.shouldFocusGrid && this._gridElement.focus();
3708
- }, this._handleGridClick = (e) => {
3709
- if (this._isControlled) {
3710
- this._emitControlledClickAwayDeactivation(e);
3711
- return;
3712
- }
3713
- let t = he({
3714
- event: e,
3715
- gridElement: this._gridElement,
3716
- hostElement: this,
3717
- items: this.items,
3718
- activeItemActionToggle: this._activeItemActionToggle,
3719
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
3720
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
3721
- });
3722
- this._activeItemActionToggle = t.activeItemActionToggle;
3723
- }, this._handleAction = (e) => {
3724
- let t = e.detail, r = e.target?.closest(".grid-stack-item"), i = r?.getAttribute("gs-id");
3725
- if (["delete", "clone"].includes(t.action)) {
3726
- if (e.stopPropagation(), !i) return;
3727
- let a = this._effectiveItems, o = a.find((e) => e.id === i);
3728
- if (!o) return;
3729
- let s = this._gridElement.querySelector(".grid-stack-item[active]") ?? this._activeItemElement;
3730
- if (!this._isControlled && s && s !== r) {
3731
- let e = s.getAttribute("gs-id"), t = a.find((t) => t.id === e), n = this._activeItemActionToggle, r = s;
3732
- this._cleanupActiveItem(s), n && e && t && this._dispatchItemActionEvent(n, "toggle", !1, r, e, t), this._activeItemElement = void 0, this._activeItemActionToggle = void 0, this._internalItemStates = {};
3733
- }
3734
- if (t.action === "delete") {
3735
- this._isControlled || this._clearGridItemUiStateForDelete(r);
3736
- let e = a.filter((e) => e.id !== i);
3737
- T({
3738
- target: this,
3739
- action: "delete",
3740
- actionType: t.type,
3741
- active: t.active,
3742
- items: a,
3743
- element: r,
3744
- itemId: i,
3745
- item: o,
3746
- updatedItems: e
3747
- }), this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 });
3748
- } else {
3749
- let e = {
3750
- ...structuredClone(o),
3751
- id: n()
3752
- }, i = this._simulateCloneLayout(e, o), s = i.find((t) => t.id === e.id) ?? e;
3753
- T({
3754
- target: this,
3755
- action: "clone",
3756
- actionType: t.type,
3757
- active: t.active,
3758
- items: a,
3759
- element: r,
3760
- itemId: e.id,
3761
- item: s,
3762
- originalElement: r,
3763
- updatedItems: i
3764
- }), this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 });
3765
- }
3766
- return;
3767
- }
3768
- if (this._isControlled) {
3769
- if (e.stopPropagation(), !i) return;
3770
- let n = this.items.find((e) => e.id === i);
3771
- if (t.type === "toggle") {
3772
- let e = this._effectiveItemStates, n = t.active, r = this._computeNextItemStates(i, t.action, n);
3773
- E({
3774
- target: this,
3775
- itemStates: e,
3776
- updatedItemStates: r,
3777
- changedItemStates: { [i]: [t.action] }
3778
- });
3779
- } else T({
3780
- target: this,
3781
- action: t.action,
3782
- actionType: t.type,
3783
- active: t.active,
3784
- items: this.items,
3785
- element: r,
3786
- itemId: i,
3787
- item: n
3788
- });
3789
- r && !r.hasAttribute("active") && this._removeItemActionsMenuPopover(r);
3790
- return;
3791
- }
3792
- this._suppressItemStatesEvent = !0;
3793
- let a = me({
3794
- event: e,
3795
- gridElement: this._gridElement,
3796
- items: this.items,
3797
- state: {
3798
- activeItemElement: this._activeItemElement,
3799
- activeItemActionToggle: this._activeItemActionToggle
3800
- },
3801
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
3802
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
3803
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
3804
- });
3805
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = a.activeItemElement, this._activeItemActionToggle = a.activeItemActionToggle, t.type === "toggle" && i) {
3806
- let e = this._effectiveItemStates, n = a.activeItemElement === r && a.activeItemActionToggle === t.action, o = this._computeNextItemStates(i, t.action, n);
3807
- this._internalItemStates = o, E({
3808
- target: this,
3809
- itemStates: e,
3810
- updatedItemStates: o,
3811
- changedItemStates: this._diffItemStates(e, o)
3812
- });
3813
- }
3814
- };
3815
- }
3816
- static get styles() {
3817
- return [y(ie), y(Wn)];
3818
- }
3819
- set items(e) {
3820
- let t = this._items, n = structuredClone(e ?? []);
3821
- 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);
3822
- }
3823
- get items() {
3824
- return this._effectiveItems;
3825
- }
3826
- set initialItems(e) {
3827
- let t = this._initialItems, n = structuredClone(e ?? []);
3828
- this._validateItemsHaveIds(n, "initialItems"), !(!this._isItemsControlled && this._initialItemsApplied) && (this._initialItems = n, this._isItemsControlled || (this._initialItemsApplied = !1), this.requestUpdate("initialItems", t));
3829
- }
3830
- get initialItems() {
3831
- return this._initialItems;
3832
- }
3833
- set itemStates(e) {
3834
- let t = this._itemStates;
3835
- this._itemStates = e ?? void 0, this.requestUpdate("itemStates", t);
3836
- }
3837
- get itemStates() {
3838
- return this._itemStates;
3839
- }
3840
- get _isControlled() {
3841
- return this.itemStates !== void 0;
3842
- }
3843
- get _isItemsControlled() {
3844
- return this._hasControlledItems;
3845
- }
3846
- get _effectiveItems() {
3847
- return this._isItemsControlled ? this._items : this._internalItems;
3848
- }
3849
- get _effectiveItemStates() {
3850
- return this._isControlled ? this.itemStates : this._internalItemStates;
3851
- }
3852
- _validateItemsHaveIds(e, t) {
3853
- for (let n = 0; n < e.length; n += 1) if (!e[n]?.id) throw Error(`luzmo-item-grid: ${t}[${n}] is missing required id`);
3854
- }
3855
- async _loadTheme(e) {
3856
- let t = this._initialized;
3857
- if (this._fullTheme = await ln({
3858
- theme: e,
3859
- currentTheme: this._fullTheme
3860
- }), this._initialized && hn(this.style, this._fullTheme), !this._initialized && this._gridElement && await new Promise((e) => {
3861
- requestAnimationFrame(() => {
3862
- this._initializeGrid(), e();
3863
- });
3864
- }), this._grid) {
3865
- let [e, t] = un(this.theme);
3866
- this._grid.margin([e, t].join(" "));
3867
- }
3868
- t && this.requestUpdate();
3869
- }
3870
- firstUpdated() {
3871
- document.addEventListener("click", this._handleGridClick), this.addEventListener("keydown", this._handleKeyDown);
3872
- }
3873
- disconnectedCallback() {
3874
- super.disconnectedCallback(), this._cleanup(), document.removeEventListener("click", this._handleGridClick), this.removeEventListener("keydown", this._handleKeyDown);
3875
- }
3876
- willUpdate(e) {
3877
- if (super.willUpdate(e), e.has("_initialized") && (hn(this.style, this._fullTheme), this._initialized && this._grid && this._fullTheme?.margins)) {
3878
- let [e, t] = un(this._fullTheme);
3879
- this._grid.margin([e, t].join(" "));
3880
- }
3881
- }
3882
- updated(e) {
3883
- super.updated(e);
3884
- 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");
3885
- 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), ye(this._effectiveItems), Vn({
3886
- initialized: this._initialized,
3887
- grid: this._grid,
3888
- hasItemsChanged: a,
3889
- gridItemElements: this._gridItemElements,
3890
- items: this._effectiveItems
3891
- }), r && this._reconcileStaleItemStates(), t && ae(this._gridItemElements, this.contentLanguage), this._activeItemElement = Hn({
3892
- initialized: this._initialized,
3893
- grid: this._grid,
3894
- hasViewModeChanged: n,
3895
- viewMode: this.viewMode,
3896
- previousViewMode: e.get("viewMode"),
3897
- activeItemElement: this._activeItemElement,
3898
- gridElement: this._gridElement,
3899
- cleanupActiveItem: this._cleanupActiveItem.bind(this)
3900
- }), (o || !this._fullTheme && !this._initialized) && this._loadTheme(this.theme), (a || s) && this._initialized && this._applyItemStates();
3901
- }
3902
- _setInternalItems(e, t = {}) {
3903
- let n = structuredClone(e);
3904
- this._validateItemsHaveIds(n, "internalItems"), this._internalItems = n, ye(this._internalItems), this._internalItemsVersion += 1, t.reconcileStates && this._reconcileStaleItemStates();
3905
- }
3906
- _handleMouseover(e) {
3907
- if (this.viewMode) return;
3908
- let t = le(e.target);
3909
- t && this._createItemActionsMenuPopover(t);
3910
- }
3911
- _emitControlledClickAwayDeactivation(e) {
3912
- let t = this._effectiveItemStates, n = Object.entries(t).filter(([, e]) => e.length > 0);
3913
- if (!this._gridElement || n.length === 0) return;
3914
- let r = e.composedPath();
3915
- if (n.some(([e]) => {
3916
- let t = Array.from(this._gridElement.querySelectorAll(".grid-stack-item")).find((t) => t.getAttribute("gs-id") === e);
3917
- if (!t) return !1;
3918
- if (r.includes(t)) return !0;
3919
- let n = t.querySelector(".grid-item-actions-popover");
3920
- return n ? r.includes(n) : !1;
3921
- })) return;
3922
- let i = {}, a = { ...t };
3923
- for (let [e, t] of n) {
3924
- for (let n of t) a = this._computeNextItemStates(e, n, !1, a);
3925
- i[e] = [...t];
3926
- }
3927
- E({
3928
- target: this,
3929
- itemStates: t,
3930
- updatedItemStates: a,
3931
- changedItemStates: i
3932
- });
3933
- }
3934
- _cleanupActiveItem(e) {
3935
- this._activeItemElement = pe({
3936
- item: e,
3937
- activeItemElement: this._activeItemElement,
3938
- gridElement: this._gridElement,
3939
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this)
3940
- });
3941
- }
3942
- _clearGridItemUiStateForDelete(e) {
3943
- 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");
3944
- }
3945
- _dispatchItemActionEvent(e, t, n, r, i, a, o, s) {
3946
- if (T({
3947
- target: this,
3948
- action: e,
3949
- actionType: t,
3950
- active: n,
3951
- items: this.items,
3952
- element: r,
3953
- itemId: i,
3954
- item: a,
3955
- deletedId: o,
3956
- originalElement: s
3957
- }), t === "toggle" && !this._suppressItemStatesEvent) {
3958
- let t = this._effectiveItemStates, r = this._computeNextItemStates(i, e, n);
3959
- this._isControlled || (this._internalItemStates = r), E({
3960
- target: this,
3961
- itemStates: t,
3962
- updatedItemStates: r,
3963
- changedItemStates: { [i]: [e] }
3964
- });
3965
- }
3966
- }
3967
- _sanitizeInitialItemStates(e) {
3968
- let t = Object.entries(e).filter(([, e]) => e.length > 0), n = t.length, r = t.reduce((e, [, t]) => e + t.length, 0);
3969
- if (n > 1 || r > 1) {
3970
- 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.");
3971
- let [e, n] = t[0];
3972
- return { [e]: [n[0]] };
3973
- }
3974
- return { ...e };
3975
- }
3976
- _diffItemStates(e, t) {
3977
- let n = {}, r = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
3978
- for (let i of r) {
3979
- let r = e[i] ?? [], a = t[i] ?? [], o = a.filter((e) => !r.includes(e)), s = r.filter((e) => !a.includes(e)), c = [...o, ...s];
3980
- c.length > 0 && (n[i] = c);
3981
- }
3982
- return n;
3983
- }
3984
- _computeNextItemStates(e, t, n, r) {
3985
- if (!this._isControlled) return n ? { [e]: [t] } : {};
3986
- let i = { ...r ?? this._effectiveItemStates };
3987
- if (n) {
3988
- let n = i[e] ?? [];
3989
- n.includes(t) || (i[e] = [...n, t]);
3990
- } else {
3991
- let n = i[e];
3992
- if (n) {
3993
- let r = n.filter((e) => e !== t);
3994
- r.length === 0 ? delete i[e] : i[e] = r;
3995
- }
3996
- }
3997
- return i;
3998
- }
3999
- _filterItemStatesToExistingItems(e) {
4000
- let t = new Set(this.items.map((e) => e.id).filter((e) => !!e)), n = {};
4001
- for (let [r, i] of Object.entries(e)) !t.has(r) || i.length === 0 || (n[r] = [...i]);
4002
- return n;
4003
- }
4004
- _reconcileStaleItemStates() {
4005
- let e = this._isControlled ? this._effectiveItemStates : this._internalItemStates, t = this._filterItemStatesToExistingItems(e), n = {};
4006
- for (let [r, i] of Object.entries(e)) !t[r] && i.length > 0 && (n[r] = [...i]);
4007
- Object.keys(n).length > 0 && E({
4008
- target: this,
4009
- itemStates: e,
4010
- updatedItemStates: t,
4011
- changedItemStates: n
4012
- }), this._isControlled || (this._internalItemStates = t);
4013
- }
4014
- _simulateCloneLayout(e, t) {
4015
- let n = this._effectiveItems;
4016
- if (!this._grid) return [...n, e];
4017
- let r = e.position ?? this._resolvePositionFromEngine(t.id);
4018
- if (!r) return [...n, e];
4019
- e = {
4020
- ...e,
4021
- position: { ...r }
4022
- };
4023
- let i = t.position ?? this._resolvePositionFromEngine(t.id);
4024
- this.clonedItemPositioning === "below-item" && i && (e.position = {
4025
- ...e.position,
4026
- col: i.col,
4027
- row: i.row + i.sizeY
4028
- });
4029
- let a = this.clonedItemPositioning !== "below-item" || !i, { updatedItems: o } = Te({
4030
- item: e,
4031
- engine: this._grid.engine,
4032
- existingItems: this._enrichItemsWithEnginePositions(n),
4033
- autoPosition: a
4034
- });
4035
- return o;
4036
- }
4037
- _cleanup() {
4038
- for (let e of this._gridItemElements) this._cleanupActiveItem(e);
4039
- this._grid &&= (this._grid.destroy(), void 0), this._initialized = !1;
4040
- }
4041
- _restoreItemsLayout(e) {
4042
- if (!this._grid || !this._gridElement || e.length === 0 || !this._isItemsControlled) return;
4043
- let t = [];
4044
- for (let n of e) {
4045
- if (!n.id) continue;
4046
- let e = this._effectiveItems.find((e) => e.id === n.id);
4047
- if (!e) continue;
4048
- let r = e.position ?? this._resolvePositionFromEngine(e.id);
4049
- if (!r) continue;
4050
- let i = this._gridElement.querySelector(`.grid-stack-item[gs-id="${e.id}"]`);
4051
- i && (n.x !== r.col || n.y !== r.row || n.w !== r.sizeX || n.h !== r.sizeY) && t.push({
4052
- element: i,
4053
- position: r
4054
- });
4055
- }
4056
- if (t.length !== 0) {
4057
- this._suppressNextLayoutChangedEvent = !0, this._grid.batchUpdate();
4058
- for (let e of t) this._grid.update(e.element, {
4059
- x: e.position.col,
4060
- y: e.position.row,
4061
- w: e.position.sizeX,
4062
- h: e.position.sizeY
4063
- });
4064
- this._grid.batchUpdate(!1), setTimeout(() => {
4065
- this._suppressNextLayoutChangedEvent &&= !1;
4066
- }, 0);
4067
- }
4068
- }
4069
- _initializeGrid() {
4070
- this._initialized || !this._gridElement || (this._grid = Ln({
4071
- gridElement: this._gridElement,
4072
- gridItemElements: this._gridItemElements,
4073
- items: this._effectiveItems,
4074
- columns: this.columns ?? 48,
4075
- rowHeight: this.rowHeight ?? 16,
4076
- viewMode: this.viewMode,
4077
- fullTheme: this._fullTheme,
4078
- onCreateOrUpdateDimensionsHint: this._createOrUpdateDimensionsHint.bind(this),
4079
- onRemoveDimensionsHint: this._removeDimensionsHint.bind(this),
4080
- onChange: (e) => {
4081
- if (this._suppressNextLayoutChangedEvent) {
4082
- this._suppressNextLayoutChangedEvent = !1;
4083
- return;
4084
- }
4085
- let t = this._effectiveItems, n = Rn(t, e);
4086
- this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), se({
4087
- target: this,
4088
- eventName: "luzmo-item-grid-layout-changed",
4089
- detail: {
4090
- element: this._gridElement,
4091
- grid: this._grid,
4092
- items: t,
4093
- updatedItems: n
4094
- }
4095
- }), this._restoreItemsLayout(e);
4096
- }
4097
- }), this._initialized = !0, se({
4098
- target: this,
4099
- eventName: "luzmo-item-grid-ready",
4100
- detail: {
4101
- element: this._gridElement,
4102
- grid: this._grid,
4103
- items: this._effectiveItems
4104
- }
4105
- }), this._applyItemStates());
4106
- }
4107
- _applyItemStates() {
4108
- 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]");
4109
- if (r) for (let e of r) {
4110
- let n = e.getAttribute("gs-id");
4111
- (!n || !t.has(n)) && (e.removeAttribute("active"), this._removeItemActionsMenuPopover(e));
4112
- }
4113
- if (this._activeItemElement = void 0, this._activeItemActionToggle = void 0, t.size === 0) {
4114
- this._gridElement?.removeAttribute("has-active-item");
4115
- return;
4116
- }
4117
- for (let [t, r] of Object.entries(e)) {
4118
- if (r.length === 0) continue;
4119
- let e = this.getGridItemById(t);
4120
- if (!e?.element) continue;
4121
- let i = e.element;
4122
- i.setAttribute("active", "true"), this._gridElement?.setAttribute("has-active-item", "true"), this._createItemActionsMenuPopover(i, r);
4123
- for (let e of r) n.push({
4124
- element: i,
4125
- action: e
4126
- });
4127
- }
4128
- if (n.length === 0) {
4129
- this._gridElement?.removeAttribute("has-active-item"), this._activeItemElement = void 0, this._activeItemActionToggle = void 0;
4130
- return;
4131
- }
4132
- n.length === 1 ? (this._activeItemElement = n[0].element, this._activeItemActionToggle = n[0].action) : (this._activeItemElement = void 0, this._activeItemActionToggle = void 0);
4133
- }
4134
- _createOrUpdateDimensionsHint(e, t, n) {
4135
- zn({
4136
- element: e,
4137
- numberOfColumns: t,
4138
- numberOfRows: n,
4139
- offsetHint: dn(this.theme)
4140
- });
4141
- }
4142
- _removeDimensionsHint(e) {
4143
- Bn(e);
4144
- }
4145
- get grid() {
4146
- return this._grid;
4147
- }
4148
- get gridItems() {
4149
- return we(this.items, this._gridElement);
4150
- }
4151
- registerRenderer(e, t) {
4152
- this.renderers = {
4153
- ...this.renderers,
4154
- [e]: t
4155
- };
4156
- }
4157
- _renderOverlayContent(e, t) {
4158
- return _n({
4159
- item: e,
4160
- activeActions: t,
4161
- defaultItemActionsMenu: this.defaultItemActionsMenu,
4162
- placementItemActionsMenu: this.placementItemActionsMenu,
4163
- language: this.language,
4164
- handleAction: this._handleAction,
4165
- itemActionsDocumentPopover: this.itemActionsDocumentPopover
4166
- });
4167
- }
4168
- _createItemActionsMenuPopover(e, t) {
4169
- $t({
4170
- element: e,
4171
- activeActions: t,
4172
- getGridItemById: this.getGridItemById.bind(this),
4173
- placementItemActionsMenu: this.placementItemActionsMenu,
4174
- renderOverlayContent: this._renderOverlayContent.bind(this),
4175
- removeItemActionsMenuPopover: this._removeItemActionsMenuPopover.bind(this),
4176
- itemActionsDocumentPopover: this.itemActionsDocumentPopover
4177
- });
4178
- }
4179
- _removeItemActionsMenuPopover(e) {
4180
- en(e);
4181
- }
4182
- getGridItemById(e) {
4183
- return this.gridItems.find((t) => t.item.id === e);
4184
- }
4185
- scrollToItem(e) {
4186
- let t = this.getGridItemById(e);
4187
- if (!t?.element) return;
4188
- let n = t.element.getBoundingClientRect();
4189
- (n.bottom > window.innerHeight || n.top < 0) && t.element.scrollIntoView({
4190
- behavior: "smooth",
4191
- block: "center"
4192
- });
4193
- }
4194
- _createMissingItemError(e) {
4195
- return /* @__PURE__ */ Error(`Grid item with id "${e}" not found`);
4196
- }
4197
- _requireGridItem(e) {
4198
- let t = this._effectiveItems.find((t) => t.id === e);
4199
- if (!t) throw this._createMissingItemError(e);
4200
- return t;
4201
- }
4202
- _resolvePositionFromEngine(e) {
4203
- let t = this._grid?.engine.nodes.find((t) => t.id === e);
4204
- if (!(!t || t.x == null || t.y == null || t.w == null || t.h == null)) return {
4205
- col: t.x,
4206
- row: t.y,
4207
- sizeX: t.w,
4208
- sizeY: t.h
4209
- };
4210
- }
4211
- _requireGridItemWithPosition(e) {
4212
- let t = this._requireGridItem(e);
4213
- if (!t.position) {
4214
- let n = this._resolvePositionFromEngine(e);
4215
- if (!n) throw Error(`Grid item with id "${e}" does not have a position`);
4216
- return {
4217
- ...t,
4218
- position: n
4219
- };
4220
- }
4221
- return t;
4222
- }
4223
- _assertAddItemHasId(e) {
4224
- if (!e.id) throw Error("addGridItem requires newItem.id");
4225
- }
4226
- addGridItem(e) {
4227
- if (this._assertAddItemHasId(e), this._effectiveItems.some((t) => t.id === e.id)) throw Error(`addGridItem rejected: an item with id "${e.id}" already exists`);
4228
- let t = De(e), n = this._effectiveItems;
4229
- if (!this._grid) {
4230
- let r = e.position?.col == null || e.position?.row == null ? {
4231
- ...t,
4232
- position: void 0
4233
- } : t, i = [...n, r];
4234
- return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4235
- }
4236
- if (!t.position) {
4237
- let e = [...n, t];
4238
- return this._isItemsControlled || this._setInternalItems(e, { reconcileStates: !0 }), e;
4239
- }
4240
- let r = e.position?.col == null || e.position?.row == null, { updatedItems: i } = Te({
4241
- item: t,
4242
- engine: this._grid.engine,
4243
- existingItems: n,
4244
- autoPosition: r
4245
- });
4246
- return this._isItemsControlled || this._setInternalItems(i, { reconcileStates: !0 }), i;
4247
- }
4248
- _enrichItemsWithEnginePositions(e) {
4249
- return this._grid ? e.map((e) => {
4250
- if (e.position) return e;
4251
- let t = this._resolvePositionFromEngine(e.id);
4252
- return t ? {
4253
- ...e,
4254
- position: t
4255
- } : e;
4256
- }) : e;
4257
- }
4258
- _updateGridItemPosition(e, t) {
4259
- let n = this._effectiveItems, r = this._requireGridItemWithPosition(e);
4260
- return n.map((n) => {
4261
- if (n.id !== e) return n;
4262
- let i = n.position ?? r.position;
4263
- return {
4264
- ...n,
4265
- position: {
4266
- ...i,
4267
- ...t
4268
- }
4269
- };
4270
- });
4271
- }
4272
- _dispatchLayoutChangedEvent(e, t) {
4273
- se({
4274
- target: this,
4275
- eventName: "luzmo-item-grid-layout-changed",
4276
- detail: {
4277
- element: this._gridElement,
4278
- grid: this._grid,
4279
- items: e,
4280
- updatedItems: t
4281
- }
4282
- });
4283
- }
4284
- _updateItemField(e, t) {
4285
- let n = this._effectiveItems;
4286
- this._requireGridItem(e);
4287
- let r = n.map((n) => n.id === e ? {
4288
- ...n,
4289
- ...t
4290
- } : n);
4291
- return this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4292
- }
4293
- removeGridItem(e) {
4294
- let t = this._effectiveItems, n = this._requireGridItem(e), r = t.filter((t) => t.id !== e);
4295
- return T({
4296
- target: this,
4297
- action: "delete",
4298
- actionType: "button",
4299
- active: !1,
4300
- items: t,
4301
- element: this.getGridItemById(e)?.element ?? this,
4302
- itemId: e,
4303
- item: n,
4304
- updatedItems: r
4305
- }), this._isItemsControlled || this._setInternalItems(r, { reconcileStates: !0 }), r;
4306
- }
4307
- cloneGridItem(e) {
4308
- let t = this._effectiveItems, r = this._requireGridItem(e), i = {
4309
- ...structuredClone(r),
4310
- id: n()
4311
- }, a = this._simulateCloneLayout(i, r), o = a.find((e) => e.id === i.id) ?? i;
4312
- return T({
4313
- target: this,
4314
- action: "clone",
4315
- actionType: "button",
4316
- active: !1,
4317
- items: t,
4318
- element: this.getGridItemById(e)?.element ?? this,
4319
- itemId: i.id,
4320
- item: o,
4321
- originalElement: this.getGridItemById(e)?.element,
4322
- updatedItems: a
4323
- }), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4324
- }
4325
- updateGridItemPosition(e, t) {
4326
- let n = this._updateGridItemPosition(e, t);
4327
- return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4328
- }
4329
- updateGridItemSize(e, t) {
4330
- let n = this._updateGridItemPosition(e, t);
4331
- return this._dispatchLayoutChangedEvent(this._effectiveItems, n), this._isItemsControlled || this._setInternalItems(n, { reconcileStates: !0 }), n;
4332
- }
4333
- updateGridItemSlots(e, t) {
4334
- return this._updateItemField(e, { slots: t });
4335
- }
4336
- updateGridItemOptions(e, t) {
4337
- return this._updateItemField(e, { options: t });
4338
- }
4339
- updateGridItemFilters(e, t) {
4340
- return this._updateItemField(e, { filters: t });
4341
- }
4342
- updateGridItemType(e, t) {
4343
- return this._updateItemField(e, { type: t });
4344
- }
4345
- updateGridItem(e, t) {
4346
- let n = this._effectiveItems;
4347
- this._requireGridItem(e);
4348
- let { position: r, ...i } = t, a;
4349
- return r && this._grid ? (a = Ee({
4350
- itemId: e,
4351
- patch: r,
4352
- engine: this._grid.engine,
4353
- existingItems: this._enrichItemsWithEnginePositions(n)
4354
- }), a = a.map((t) => t.id === e ? {
4355
- ...t,
4356
- ...i
4357
- } : t)) : a = n.map((t) => t.id === e ? {
4358
- ...t,
4359
- ...i,
4360
- ...r && t.position ? { position: {
4361
- ...t.position,
4362
- ...r
4363
- } } : r ? { position: r } : {}
4364
- } : t), t.position && this._dispatchLayoutChangedEvent(n, a), this._isItemsControlled || this._setInternalItems(a, { reconcileStates: !0 }), a;
4365
- }
4366
- async triggerItemAction(e, t, n) {
4367
- await this.updateComplete;
4368
- let r = this.getGridItemById(e);
4369
- if (!r?.element) {
4370
- console.warn(`Grid item with id "${e}" not found`);
4371
- return;
4372
- }
4373
- if (this._isControlled) return this._triggerControlledItemAction(e, t, n);
4374
- this._suppressItemStatesEvent = !0;
4375
- let i = ge({
4376
- gridElement: this._gridElement,
4377
- items: this.items,
4378
- gridItemData: r,
4379
- itemId: e,
4380
- action: t,
4381
- options: n,
4382
- state: {
4383
- activeItemElement: this._activeItemElement,
4384
- activeItemActionToggle: this._activeItemActionToggle
4385
- },
4386
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
4387
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this),
4388
- createItemActionsMenuPopover: this._createItemActionsMenuPopover.bind(this)
4389
- });
4390
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = i.state.activeItemElement, this._activeItemActionToggle = i.state.activeItemActionToggle, i.result !== void 0) {
4391
- let n = this._effectiveItemStates, r = this._computeNextItemStates(e, t, i.result);
4392
- this._internalItemStates = r, E({
4393
- target: this,
4394
- itemStates: n,
4395
- updatedItemStates: r,
4396
- changedItemStates: this._diffItemStates(n, r)
4397
- });
4398
- }
4399
- return i.result;
4400
- }
4401
- activateItemAction(e, t, n) {
4402
- return this.triggerItemAction(e, t, n);
4403
- }
4404
- _triggerControlledItemAction(e, t, n) {
4405
- let r = (this._effectiveItemStates[e] ?? []).includes(t), i = n?.active ?? !r;
4406
- if (n?.active !== void 0 && i === r) return r;
4407
- let a = this._effectiveItemStates, o = this._computeNextItemStates(e, t, i);
4408
- return E({
4409
- target: this,
4410
- itemStates: a,
4411
- updatedItemStates: o,
4412
- changedItemStates: { [e]: [t] }
4413
- }), i;
4414
- }
4415
- deactivateItems() {
4416
- if (this._isControlled) {
4417
- let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4418
- itemId: e,
4419
- action: t
4420
- })));
4421
- if (t.length === 0) return 0;
4422
- let n = {}, r = { ...e };
4423
- for (let e of t) r = this._computeNextItemStates(e.itemId, e.action, !1, r), n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4424
- return E({
4425
- target: this,
4426
- itemStates: e,
4427
- updatedItemStates: r,
4428
- changedItemStates: n
4429
- }), new Set(t.map((e) => e.itemId)).size;
4430
- }
4431
- let e = this._effectiveItemStates, t = Object.entries(e).flatMap(([e, t]) => t.map((t) => ({
4432
- itemId: e,
4433
- action: t
4434
- })));
4435
- this._suppressItemStatesEvent = !0;
4436
- let n = _e({
4437
- gridElement: this._gridElement,
4438
- items: this.items,
4439
- state: {
4440
- activeItemElement: this._activeItemElement,
4441
- activeItemActionToggle: this._activeItemActionToggle
4442
- },
4443
- cleanupActiveItem: this._cleanupActiveItem.bind(this),
4444
- dispatchItemActionEvent: this._dispatchItemActionEvent.bind(this)
4445
- });
4446
- if (this._suppressItemStatesEvent = !1, this._activeItemElement = n.state.activeItemElement, this._activeItemActionToggle = n.state.activeItemActionToggle, this._isControlled || (this._internalItemStates = {}), t.length > 0) {
4447
- let n = {};
4448
- for (let e of t) n[e.itemId] = [...n[e.itemId] ?? [], e.action];
4449
- E({
4450
- target: this,
4451
- itemStates: e,
4452
- updatedItemStates: {},
4453
- changedItemStates: n
4454
- });
4455
- }
4456
- return n.deactivatedCount;
4457
- }
4458
- _renderGrid() {
4459
- return bn({
4460
- items: this.items,
4461
- initialized: this._initialized,
4462
- viewMode: this.viewMode,
4463
- contentLanguage: this.contentLanguage,
4464
- fullTheme: this._fullTheme,
4465
- appServer: this.appServer,
4466
- apiHost: this.apiHost,
4467
- authKey: this.authKey,
4468
- authToken: this.authToken,
4469
- columns: this.columns ?? 48,
4470
- ensureGridItemId: (e) => be(e),
4471
- handleMouseover: this._handleMouseover.bind(this),
4472
- handleMouseout: this._handleMouseout,
4473
- handleFocus: this._handleFocus,
4474
- handleBlur: this._handleBlur
4475
- });
4476
- }
4477
- render() {
4478
- return this._renderGrid();
4479
- }
4480
- };
4481
- e([b({
4482
- type: String,
4483
- attribute: "app-server",
4484
- reflect: !0
4485
- })], $.prototype, "appServer", void 0), e([b({
4486
- type: String,
4487
- attribute: "api-host",
4488
- reflect: !0
4489
- })], $.prototype, "apiHost", void 0), e([b({
4490
- type: String,
4491
- attribute: "auth-key",
4492
- reflect: !0
4493
- })], $.prototype, "authKey", void 0), e([b({
4494
- type: String,
4495
- attribute: "auth-token",
4496
- reflect: !0
4497
- })], $.prototype, "authToken", void 0), e([b({
4498
- type: Number,
4499
- attribute: "cache-time",
4500
- reflect: !0
4501
- })], $.prototype, "cacheTime", void 0), e([b({
4502
- type: String,
4503
- reflect: !0
4504
- })], $.prototype, "language", void 0), e([b({
4505
- type: String,
4506
- attribute: "content-language",
4507
- reflect: !0
4508
- })], $.prototype, "contentLanguage", void 0), e([b({
4509
- type: Number,
4510
- reflect: !0
4511
- })], $.prototype, "columns", void 0), e([b({
4512
- type: Number,
4513
- reflect: !0,
4514
- attribute: "row-height"
4515
- })], $.prototype, "rowHeight", void 0), e([b({
4516
- type: Boolean,
4517
- reflect: !0,
4518
- attribute: "view-mode"
4519
- })], $.prototype, "viewMode", void 0), e([b({
4520
- type: Boolean,
4521
- reflect: !0,
4522
- attribute: "item-actions-document-popover"
4523
- })], $.prototype, "itemActionsDocumentPopover", void 0), e([b({
4524
- type: String,
4525
- reflect: !0,
4526
- attribute: "placement-item-actions-menu"
4527
- })], $.prototype, "placementItemActionsMenu", void 0), e([b({
4528
- type: Array,
4529
- reflect: !0,
4530
- attribute: "default-item-actions-menu"
4531
- })], $.prototype, "defaultItemActionsMenu", void 0), e([b({
4532
- type: String,
4533
- reflect: !0,
4534
- attribute: "cloned-item-positioning"
4535
- })], $.prototype, "clonedItemPositioning", void 0), e([b({
4536
- type: Object,
4537
- reflect: !0
4538
- })], $.prototype, "theme", void 0), e([b({
4539
- type: Array,
4540
- reflect: !1
4541
- })], $.prototype, "items", null), e([b({
4542
- type: Array,
4543
- reflect: !1,
4544
- attribute: "initial-items"
4545
- })], $.prototype, "initialItems", null), e([b({
4546
- type: Object,
4547
- reflect: !1
4548
- })], $.prototype, "renderers", void 0), e([b({
4549
- type: Object,
4550
- reflect: !1,
4551
- attribute: "item-states"
4552
- })], $.prototype, "itemStates", null), e([b({
4553
- type: Object,
4554
- reflect: !1,
4555
- attribute: "initial-item-states"
4556
- })], $.prototype, "initialItemStates", void 0), e([S()], $.prototype, "_initialized", void 0), e([x(".grid-stack")], $.prototype, "_gridElement", void 0), e([ee(".luzmo-item-grid-item")], $.prototype, "_gridItemElements", void 0), e([S()], $.prototype, "_internalItemsVersion", void 0), customElements.get("luzmo-item-grid") || customElements.define("luzmo-item-grid", $), customElements.get("luzmo-item-grid-item-actions-menu") || customElements.define("luzmo-item-grid-item-actions-menu", Q);
4557
- //#endregion
4558
- export { Q as n, $ as t };