@luzmo/analytics-components-kit 1.0.1-alpha.86 → 1.0.1-alpha.89

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 (383) hide show
  1. package/angular/components/display-settings-binning.component.ts +2 -2
  2. package/angular/components/display-settings-datetime.component.ts +2 -2
  3. package/angular/components/display-settings-grand-totals.component.ts +2 -2
  4. package/angular/components/display-settings-numeric.component.ts +2 -2
  5. package/angular/components/display-settings.component.ts +3 -3
  6. package/angular/components/draggable-data-item/index.ts +1 -0
  7. package/angular/components/draggable-data-item/types.ts +40 -0
  8. package/angular/components/draggable-data-item-level/index.ts +1 -0
  9. package/angular/components/draggable-data-item-level/types.ts +15 -0
  10. package/angular/components/draggable-data-item-level.component.ts +4 -10
  11. package/angular/components/draggable-data-item.component.ts +4 -10
  12. package/angular/components/droppable-slot/index.ts +1 -0
  13. package/angular/components/droppable-slot/types.ts +16 -0
  14. package/angular/components/droppable-slot.component.ts +5 -3
  15. package/angular/components/slot-menu/index.ts +1 -0
  16. package/angular/components/slot-menu/types.ts +31 -0
  17. package/angular/components/slot-menu-list.component.ts +2 -2
  18. package/angular/components/slot-menu.component.ts +3 -3
  19. package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
  20. package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
  21. package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
  22. package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
  23. package/angular/esm/components/display-settings.component.d.ts +3 -3
  24. package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
  25. package/angular/esm/components/draggable-data-item/index.js +1 -0
  26. package/angular/esm/components/draggable-data-item/types.d.ts +22 -0
  27. package/angular/esm/components/draggable-data-item/types.js +1 -0
  28. package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
  29. package/angular/esm/components/draggable-data-item-level/index.js +1 -0
  30. package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
  31. package/angular/esm/components/draggable-data-item-level/types.js +1 -0
  32. package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
  33. package/angular/esm/components/draggable-data-item-level.component.js +2 -17
  34. package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
  35. package/angular/esm/components/draggable-data-item.component.js +2 -17
  36. package/angular/esm/components/droppable-slot/index.d.ts +1 -0
  37. package/angular/esm/components/droppable-slot/index.js +1 -0
  38. package/angular/esm/components/droppable-slot/types.d.ts +9 -0
  39. package/angular/esm/components/droppable-slot/types.js +1 -0
  40. package/angular/esm/components/droppable-slot.component.d.ts +5 -4
  41. package/angular/esm/components/droppable-slot.component.js +7 -2
  42. package/angular/esm/components/slot-menu/index.d.ts +1 -0
  43. package/angular/esm/components/slot-menu/index.js +1 -0
  44. package/angular/esm/components/slot-menu/types.d.ts +25 -0
  45. package/angular/esm/components/slot-menu/types.js +1 -0
  46. package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
  47. package/angular/esm/components/slot-menu.component.d.ts +3 -3
  48. package/angular/esm/types.d.ts +9 -3
  49. package/angular/tsconfig.json +3 -0
  50. package/angular/types.ts +24 -3
  51. package/angular/utils/base/base.d.ts +16 -0
  52. package/angular/utils/base/focus-visible.d.ts +29 -0
  53. package/angular/utils/base/focusable.d.ts +58 -0
  54. package/angular/utils/base/index.d.ts +4 -0
  55. package/angular/utils/base/sized-mixin.d.ts +17 -0
  56. package/angular/utils/color/color-palettes.d.ts +17 -0
  57. package/angular/utils/color/extrapolate-color.d.ts +1 -0
  58. package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  59. package/angular/utils/data-broker/index.d.ts +191 -0
  60. package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
  61. package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  62. package/angular/utils/drag/draggable.d.ts +13 -0
  63. package/angular/utils/filters/expressions.d.ts +15 -0
  64. package/angular/utils/filters/index.d.ts +1 -0
  65. package/angular/utils/formatter/calculate-duration.d.ts +2 -0
  66. package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
  67. package/angular/utils/formatter/default-local-formats.d.ts +20 -0
  68. package/angular/utils/formatter/formats/cs.d.ts +20 -0
  69. package/angular/utils/formatter/formats/da.d.ts +20 -0
  70. package/angular/utils/formatter/formats/de.d.ts +21 -0
  71. package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
  72. package/angular/utils/formatter/formats/en-US.d.ts +1 -0
  73. package/angular/utils/formatter/formats/en.d.ts +1 -0
  74. package/angular/utils/formatter/formats/es.d.ts +54 -0
  75. package/angular/utils/formatter/formats/fi.d.ts +20 -0
  76. package/angular/utils/formatter/formats/fr.d.ts +54 -0
  77. package/angular/utils/formatter/formats/he.d.ts +20 -0
  78. package/angular/utils/formatter/formats/hu.d.ts +20 -0
  79. package/angular/utils/formatter/formats/it.d.ts +54 -0
  80. package/angular/utils/formatter/formats/ja.d.ts +20 -0
  81. package/angular/utils/formatter/formats/ko.d.ts +20 -0
  82. package/angular/utils/formatter/formats/mk.d.ts +20 -0
  83. package/angular/utils/formatter/formats/nl.d.ts +21 -0
  84. package/angular/utils/formatter/formats/no.d.ts +21 -0
  85. package/angular/utils/formatter/formats/pl.d.ts +20 -0
  86. package/angular/utils/formatter/formats/pt.d.ts +20 -0
  87. package/angular/utils/formatter/formats/ru.d.ts +20 -0
  88. package/angular/utils/formatter/formats/sv.d.ts +20 -0
  89. package/angular/utils/formatter/formats/tr.d.ts +21 -0
  90. package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
  91. package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
  92. package/angular/utils/formatter/formatter.d.ts +9 -0
  93. package/angular/utils/formatter/localize.d.ts +3 -0
  94. package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  95. package/angular/utils/get-css-variable.d.ts +1 -0
  96. package/angular/utils/index.d.ts +7 -0
  97. package/angular/utils/localize/set-locale.d.ts +7 -0
  98. package/angular/utils/map-tile-providers/index.d.ts +93 -0
  99. package/angular/utils/store/slot-context.d.ts +4 -0
  100. package/angular/utils/store/slot-store.d.ts +39 -0
  101. package/angular/utils/switch-item/index.d.ts +14 -0
  102. package/angular/utils/themes/bliss.d.ts +43 -0
  103. package/angular/utils/themes/classic-dark.d.ts +34 -0
  104. package/angular/utils/themes/classic.d.ts +43 -0
  105. package/angular/utils/themes/default-dark.d.ts +46 -0
  106. package/angular/utils/themes/default.d.ts +46 -0
  107. package/angular/utils/themes/index.d.ts +3 -0
  108. package/angular/utils/themes/orion.d.ts +44 -0
  109. package/angular/utils/themes/pinky.d.ts +42 -0
  110. package/angular/utils/themes/radiant.d.ts +42 -0
  111. package/angular/utils/themes/royale.d.ts +36 -0
  112. package/angular/utils/themes/seasonal.d.ts +43 -0
  113. package/angular/utils/themes/urban.d.ts +44 -0
  114. package/angular/utils/themes/vivid.d.ts +42 -0
  115. package/angular/utils/time/formats.const.d.ts +4 -0
  116. package/angular/utils/time/periods.const.d.ts +15 -0
  117. package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  118. package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  119. package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  120. package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  121. package/angular/utils/types/type-check.d.ts +7 -0
  122. package/components/ai-chat-message-assistant/index.cjs +1 -1
  123. package/components/ai-chat-message-assistant/index.js +0 -1
  124. package/components/ai-chat-messages-container/index.cjs +1 -1
  125. package/components/ai-chat-messages-container/index.js +2 -2
  126. package/components/ai-interaction-textarea/index.cjs +1 -1
  127. package/components/ai-interaction-textarea/index.js +1 -2
  128. package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
  129. package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
  130. package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
  131. package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
  132. package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
  133. package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
  134. package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
  135. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
  136. package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
  137. package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
  138. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  139. package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
  140. package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
  141. package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
  142. package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
  143. package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
  144. package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
  145. package/components/color-Czp4Im5q.cjs +20 -0
  146. package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
  147. package/components/color-range-utils-DYYR-iwx.cjs +20 -0
  148. package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
  149. package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
  150. package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
  151. package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
  152. package/components/dataset-icon/index.cjs +1 -1
  153. package/components/dataset-icon/index.js +1 -2
  154. package/components/dataset-selector-list/index.cjs +1 -1
  155. package/components/dataset-selector-list/index.js +32 -35
  156. package/components/dataset-selector-row/index.cjs +9 -9
  157. package/components/dataset-selector-row/index.js +51 -53
  158. package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
  159. package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
  160. package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
  161. package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
  162. package/components/display-settings/display-settings.d.ts +4 -2
  163. package/components/display-settings/index.cjs +1 -1
  164. package/components/display-settings/index.js +1 -1
  165. package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
  166. package/components/display-settings-binning/index.cjs +5 -5
  167. package/components/display-settings-binning/index.js +29 -30
  168. package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
  169. package/components/display-settings-datetime/index.cjs +29 -29
  170. package/components/display-settings-datetime/index.js +112 -120
  171. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
  172. package/components/display-settings-grand-totals/index.cjs +4 -4
  173. package/components/display-settings-grand-totals/index.js +23 -24
  174. package/components/display-settings-numeric/display-settings-numeric.d.ts +2 -1
  175. package/components/display-settings-numeric/index.cjs +48 -48
  176. package/components/display-settings-numeric/index.js +192 -209
  177. package/components/display-settings-period-over-period/index.cjs +16 -16
  178. package/components/display-settings-period-over-period/index.js +91 -97
  179. package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
  180. package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
  181. package/components/draggable-data-item/draggable-data-item.d.ts +5 -7
  182. package/components/draggable-data-item/index.cjs +16 -22
  183. package/components/draggable-data-item/index.d.ts +1 -0
  184. package/components/draggable-data-item/index.js +79 -87
  185. package/components/draggable-data-item/types.d.ts +22 -0
  186. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
  187. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
  188. package/components/draggable-data-item-level/index.cjs +13 -13
  189. package/components/draggable-data-item-level/index.js +85 -106
  190. package/components/draggable-data-item-level/types.d.ts +12 -0
  191. package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
  192. package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
  193. package/components/droppable-slot/droppable-slot.d.ts +4 -2
  194. package/components/droppable-slot/index.cjs +20 -20
  195. package/components/droppable-slot/index.d.ts +1 -0
  196. package/components/droppable-slot/index.js +239 -254
  197. package/components/droppable-slot/types.d.ts +9 -0
  198. package/components/edit-item/index.cjs +9 -9
  199. package/components/edit-item/index.js +116 -119
  200. package/components/edit-option/index.cjs +1 -1
  201. package/components/edit-option/index.js +1 -1
  202. package/components/edit-option-action-button-group/index.cjs +8 -8
  203. package/components/edit-option-action-button-group/index.js +52 -53
  204. package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
  205. package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
  206. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  207. package/components/edit-option-color-palette-picker/index.js +1 -1
  208. package/components/edit-option-color-picker/index.cjs +1 -1
  209. package/components/edit-option-color-picker/index.js +1 -1
  210. package/components/edit-option-color-range/index.cjs +19 -19
  211. package/components/edit-option-color-range/index.js +106 -117
  212. package/components/edit-option-multi-language-field/index.cjs +3 -3
  213. package/components/edit-option-multi-language-field/index.js +26 -27
  214. package/components/edit-option-number-field/index.cjs +1 -1
  215. package/components/edit-option-number-field/index.js +1 -1
  216. package/components/edit-option-picker/index.cjs +5 -5
  217. package/components/edit-option-picker/index.js +7 -7
  218. package/components/edit-option-position-picker/index.cjs +4 -4
  219. package/components/edit-option-position-picker/index.js +21 -25
  220. package/components/edit-option-positions-number-field/index.cjs +9 -9
  221. package/components/edit-option-positions-number-field/index.js +76 -81
  222. package/components/edit-option-radio-button-group/index.cjs +6 -6
  223. package/components/edit-option-radio-button-group/index.js +21 -22
  224. package/components/edit-option-slider/index.cjs +1 -1
  225. package/components/edit-option-slider/index.js +1 -1
  226. package/components/edit-option-switch/index.cjs +1 -1
  227. package/components/edit-option-switch/index.js +1 -1
  228. package/components/edit-option-text-field/index.cjs +2 -2
  229. package/components/edit-option-text-field/index.js +22 -23
  230. package/components/en-D3ihEGXg.js +1483 -0
  231. package/components/en-DZcn_iz_.cjs +20 -0
  232. package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  233. package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
  234. package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
  235. package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
  236. package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
  237. package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
  238. package/components/filter-data-item-picker/index.cjs +7 -7
  239. package/components/filter-data-item-picker/index.js +85 -86
  240. package/components/filter-expression-picker/index.cjs +1 -1
  241. package/components/filter-expression-picker/index.js +1 -1
  242. package/components/filter-item/index.cjs +6 -6
  243. package/components/filter-item/index.js +109 -119
  244. package/components/filter-value-picker/index.cjs +2 -2
  245. package/components/filter-value-picker/index.js +34 -36
  246. package/components/filter-value-picker-datetime/index.cjs +8 -8
  247. package/components/filter-value-picker-datetime/index.js +56 -71
  248. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  249. package/components/filter-value-picker-hierarchy/index.js +113 -124
  250. package/components/filter-value-picker-numeric/index.cjs +8 -8
  251. package/components/filter-value-picker-numeric/index.js +101 -110
  252. package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
  253. package/components/focusable-QLh-LlNt.cjs +20 -0
  254. package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
  255. package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
  256. package/components/get-css-variable-COd1d84B.cjs +24 -0
  257. package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-CdwF98oh.js} +35 -35
  258. package/components/grid/index.cjs +43 -49
  259. package/components/grid/index.js +2610 -1878
  260. package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
  261. package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
  262. package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
  263. package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
  264. package/components/helpers-9I0oLoUB.cjs +20 -0
  265. package/components/helpers-bR8Ibjqh.js +79 -0
  266. package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
  267. package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
  268. package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
  269. package/components/index-BekTY3Em.cjs +121 -0
  270. package/components/index-CFL6gmIu.cjs +20 -0
  271. package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
  272. package/components/index-DNPULp4A.js +1755 -0
  273. package/components/{index-PMDgRSzR.js → index-DdyZ2g5L.js} +94 -104
  274. package/components/index-DvkzMbLt.cjs +249 -0
  275. package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
  276. package/components/index.cjs +1 -1
  277. package/components/index.js +28 -26
  278. package/components/item-options-configs.cjs +1 -1
  279. package/components/item-options-configs.js +37 -37
  280. package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
  281. package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
  282. package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
  283. package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
  284. package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
  285. package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
  286. package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
  287. package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
  288. package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
  289. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
  290. package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
  291. package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
  292. package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
  293. package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
  294. package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
  295. package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
  296. package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
  297. package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
  298. package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
  299. package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
  300. package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
  301. package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
  302. package/components/{set-locale-B-Tz2sdI.js → set-locale-hKTMz37h.js} +7 -9
  303. package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
  304. package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
  305. package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
  306. package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
  307. package/components/slot-contents-picker/index.cjs +33 -33
  308. package/components/slot-contents-picker/index.js +194 -205
  309. package/components/slot-menu/index.cjs +12 -12
  310. package/components/slot-menu/index.d.ts +1 -0
  311. package/components/slot-menu/index.js +174 -192
  312. package/components/slot-menu/slot-menu.d.ts +7 -6
  313. package/components/slot-menu/types.d.ts +25 -0
  314. package/components/slot-menu-list/index.cjs +3 -3
  315. package/components/slot-menu-list/index.js +97 -103
  316. package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
  317. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
  318. package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
  319. package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
  320. package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
  321. package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
  322. package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
  323. package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
  324. package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
  325. package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
  326. package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
  327. package/components/utils.cjs +1 -1
  328. package/components/utils.js +131 -65
  329. package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
  330. package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
  331. package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
  332. package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
  333. package/custom-elements.json +143 -126
  334. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
  335. package/package.json +3 -3
  336. package/types.d.ts +9 -3
  337. package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
  338. package/utils/data-broker/index.d.ts +69 -66
  339. package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
  340. package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
  341. package/utils/index.d.ts +2 -0
  342. package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
  343. package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
  344. package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
  345. package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
  346. package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
  347. package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
  348. package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
  349. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
  350. package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
  351. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
  352. package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
  353. package/components/color-B6LaL8qz.cjs +0 -20
  354. package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
  355. package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
  356. package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
  357. package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
  358. package/components/en-BKBhKBXY.cjs +0 -20
  359. package/components/en-BOTjhwEc.js +0 -1488
  360. package/components/focusable-B3E_hQmm.cjs +0 -20
  361. package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
  362. package/components/get-css-variable-DLiZYZEi.cjs +0 -24
  363. package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
  364. package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
  365. package/components/helpers-DXQwEH1P.cjs +0 -20
  366. package/components/helpers-v1bPALRP.js +0 -91
  367. package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
  368. package/components/index-BPN3bG9X.js +0 -1733
  369. package/components/index-CQ9ck-BO.cjs +0 -249
  370. package/components/index-CXn67vdn.cjs +0 -121
  371. package/components/index-cfj52IbK.cjs +0 -20
  372. package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
  373. package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
  374. package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
  375. package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
  376. package/components/route-map-options.config-D7NJePTu.cjs +0 -20
  377. package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
  378. package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
  379. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
  380. package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
  381. package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
  382. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
  383. package/utils/types/column.types.d.ts +0 -57
@@ -18,14 +18,8 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import { m as o } from "./index-t45_zv93.js";
21
- import { g as i, a as l, b as n, c } from "./helpers-v1bPALRP.js";
22
- const y = ({ slots: e }) => {
23
- var t, a;
24
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (t = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "category")) == null ? void 0 : t.content) == null ? void 0 : a.length) === 0 : !0;
25
- }, p = ({ slots: e }) => {
26
- var t, a;
27
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (t = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "category")) == null ? void 0 : t.content) == null ? void 0 : a.length) > 0 : !1;
28
- }, f = [
21
+ import { g as l, a, b as r, c as i } from "./helpers-bR8Ibjqh.js";
22
+ const n = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "category")?.content?.length === 0 : !0, c = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "category")?.content?.length > 0 : !1, s = [
29
23
  {
30
24
  key: "general",
31
25
  type: "group",
@@ -86,7 +80,7 @@ const y = ({ slots: e }) => {
86
80
  "Voyager",
87
81
  "No Tiles"
88
82
  ],
89
- parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
83
+ parseValue: (e) => e?.name || "Basic",
90
84
  toValue: (e) => o[e] ?? {}
91
85
  }
92
86
  }
@@ -102,12 +96,12 @@ const y = ({ slots: e }) => {
102
96
  control: {
103
97
  type: "color-picker",
104
98
  label: "Symbol color",
105
- default: ({ theme: e }) => c(e),
106
- extraLabel: ({ options: e, theme: t }) => n(e, t, "color"),
107
- extraLabelHasClickAction: ({ options: e, theme: t }) => l(e, t, "color"),
108
- extraLabelClickAction: ({ options: e, theme: t }) => i(e, t, "color")
99
+ default: ({ theme: e }) => i(e),
100
+ extraLabel: ({ options: e, theme: t }) => r(e, t, "color"),
101
+ extraLabelHasClickAction: ({ options: e, theme: t }) => a(e, t, "color"),
102
+ extraLabelClickAction: ({ options: e, theme: t }) => l(e, t, "color")
109
103
  },
110
- visibleIf: y
104
+ visibleIf: n
111
105
  },
112
106
  {
113
107
  key: "size",
@@ -155,15 +149,12 @@ const y = ({ slots: e }) => {
155
149
  "left"
156
150
  ]
157
151
  },
158
- visibleIf: ({ options: e }) => {
159
- var t;
160
- return ((t = e == null ? void 0 : e.display) == null ? void 0 : t.legend) !== !1;
161
- }
152
+ visibleIf: ({ options: e }) => e?.display?.legend !== !1
162
153
  }
163
154
  ],
164
- visibleIf: p
155
+ visibleIf: c
165
156
  }
166
157
  ];
167
158
  export {
168
- f as default
159
+ s as default
169
160
  };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-DhDgy1sp.cjs"),o=require("./helpers-9I0oLoUB.cjs"),r=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(t=>t?.name==="category")?.content?.length===0:!0,a=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(t=>t?.name==="category")?.content?.length>0:!1,i=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>e?.name||"Basic",toValue:e=>l.mapVectorTileProviders[e]??{}}}]},{key:"symbol",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Symbol color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>o.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:r},{key:"size",control:{type:"slider",label:"Size",default:30,min:1,max:250,step:1}},{key:"opacity",control:{type:"slider",label:"Opacity",default:.9,min:.1,max:1,step:.01}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>e?.display?.legend!==!1}],visibleIf:a}];exports.default=i;
@@ -17,14 +17,8 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { g as i, a as o, b as c, c as d } from "./helpers-v1bPALRP.js";
21
- const n = ({ slots: e }) => {
22
- var r, a;
23
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : a.length) > 0 : !1;
24
- }, t = ({ slots: e }) => {
25
- var r, a;
26
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : a.length) === 0 || !(e != null && e.some((l) => (l == null ? void 0 : l.name) === "color")) : !0;
27
- }, f = [
20
+ import { g as l, a as n, b as i, c as a } from "./helpers-bR8Ibjqh.js";
21
+ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "color")?.content?.length > 0 : !1, r = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "color")?.content?.length === 0 || !e?.some((t) => t?.name === "color") : !0, d = [
28
22
  {
29
23
  key: "general",
30
24
  type: "group",
@@ -45,7 +39,7 @@ const n = ({ slots: e }) => {
45
39
  label: "Legend",
46
40
  default: !0
47
41
  },
48
- visibleIf: n
42
+ visibleIf: o
49
43
  },
50
44
  {
51
45
  key: "display.modeOption",
@@ -54,7 +48,7 @@ const n = ({ slots: e }) => {
54
48
  label: "Mode option",
55
49
  default: !1
56
50
  },
57
- visibleIf: n
51
+ visibleIf: o
58
52
  },
59
53
  {
60
54
  key: "display.labels",
@@ -88,22 +82,19 @@ const n = ({ slots: e }) => {
88
82
  label: "Color area by category",
89
83
  default: !0
90
84
  },
91
- visibleIf: t
85
+ visibleIf: r
92
86
  },
93
87
  {
94
88
  key: "color",
95
89
  control: {
96
90
  type: "color-picker",
97
91
  label: "Area color",
98
- default: ({ theme: e }) => d(e),
99
- extraLabel: ({ options: e, theme: r }) => c(e, r, "color"),
100
- extraLabelHasClickAction: ({ options: e, theme: r }) => o(e, r, "color"),
101
- extraLabelClickAction: ({ options: e, theme: r }) => i(e, r, "color")
92
+ default: ({ theme: e }) => a(e),
93
+ extraLabel: ({ options: e, theme: t }) => i(e, t, "color"),
94
+ extraLabelHasClickAction: ({ options: e, theme: t }) => n(e, t, "color"),
95
+ extraLabelClickAction: ({ options: e, theme: t }) => l(e, t, "color")
102
96
  },
103
- visibleIf: ({ options: e, slots: r }) => {
104
- var a;
105
- return ((a = e == null ? void 0 : e.categories) == null ? void 0 : a.colored) === !1 && t({ slots: r });
106
- }
97
+ visibleIf: ({ options: e, slots: t }) => e?.categories?.colored === !1 && r({ slots: t })
107
98
  },
108
99
  {
109
100
  key: "mode",
@@ -123,15 +114,11 @@ const n = ({ slots: e }) => {
123
114
  min: 0,
124
115
  max: 24,
125
116
  step: 1,
126
- extraLabel: ({ options: e, theme: r }) => {
127
- var a;
128
- if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) == "number")
129
- return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
130
- },
131
- extraLabelHasClickAction: ({ options: e, theme: r }) => {
132
- var a;
133
- return !(typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
117
+ extraLabel: ({ options: e, theme: t }) => {
118
+ if (typeof t?.itemSpecific?.rounding == "number")
119
+ return typeof e?.roundedCorners != "number" ? "auto" : "reset";
134
120
  },
121
+ extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.rounding != "number" || typeof e?.roundedCorners != "number"),
135
122
  extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, roundedCorners: void 0 } })
136
123
  }
137
124
  },
@@ -144,15 +131,11 @@ const n = ({ slots: e }) => {
144
131
  min: 0,
145
132
  max: 20,
146
133
  step: 1,
147
- extraLabel: ({ options: e, theme: r }) => {
148
- var a;
149
- if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.padding) == "number")
150
- return typeof (e == null ? void 0 : e.padding) != "number" ? "auto" : "reset";
151
- },
152
- extraLabelHasClickAction: ({ options: e, theme: r }) => {
153
- var a;
154
- return !(typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.padding) != "number" || typeof (e == null ? void 0 : e.padding) != "number");
134
+ extraLabel: ({ options: e, theme: t }) => {
135
+ if (typeof t?.itemSpecific?.padding == "number")
136
+ return typeof e?.padding != "number" ? "auto" : "reset";
155
137
  },
138
+ extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.padding != "number" || typeof e?.padding != "number"),
156
139
  extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, padding: void 0 } })
157
140
  }
158
141
  }
@@ -182,9 +165,9 @@ const n = ({ slots: e }) => {
182
165
  }
183
166
  }
184
167
  ],
185
- visibleIf: n
168
+ visibleIf: o
186
169
  }
187
170
  ];
188
171
  export {
189
- f as default
172
+ d as default
190
173
  };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./helpers-9I0oLoUB.cjs"),r=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(t=>t?.name==="color")?.content?.length>0:!1,l=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(t=>t?.name==="color")?.content?.length===0||!e?.some(t=>t?.name==="color"):!0,n=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:r},{key:"display.modeOption",control:{type:"switch",label:"Mode option",default:!1},visibleIf:r},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}},{key:"labels.autoSize",control:{type:"switch",label:"Auto size labels",default:!1}},{key:"display.values",control:{type:"picker",label:"Show values",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Color area by category",default:!0},visibleIf:l},{key:"color",control:{type:"color-picker",label:"Area color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>o.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:({options:e,slots:t})=>e?.categories?.colored===!1&&l({slots:t})},{key:"mode",control:{type:"picker",label:"Mode",default:"squarify",enum:["squarify","slice","dice","slice-dice"]}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.rounding=="number")return typeof e?.roundedCorners!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.rounding!="number"||typeof e?.roundedCorners!="number"),extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,roundedCorners:void 0}})}},{key:"padding",control:{type:"slider",label:"Internal padding",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.padding=="number")return typeof e?.padding!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.padding!="number"||typeof e?.padding!="number"),extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,padding:void 0}})}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:r}];exports.default=n;
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./decompose-numeric-format-B3rVVHpO.cjs"),q=require("./en-BKBhKBXY.cjs"),D=require("./localize-r7ALOUy_.cjs"),C=require("./index-6PmXiNch.cjs"),x=require("./index-Vdyb9z2D.cjs");function z(o){var a,m,h,S;const c=[],f=[];Object.keys(C.slotsConfigs).forEach(e=>{e.replace("SlotsConfig","");const t=e.replace("SlotsConfig","").replaceAll(/([A-Z])/g,"-$1").toLowerCase();f.push({type:t,slotsConfig:C.slotsConfigs[e]})});const i=f.find(e=>e.type===(o==null?void 0:o.oldItemType)),n=f.find(e=>e.type===(o==null?void 0:o.newItemType)),s=structuredClone((n==null?void 0:n.slotsConfig)??[]);if(!n)return{type:(i==null?void 0:i.type)??"bar-chart",slots:o.slots??[]};const r=structuredClone(o.slots??[]);for(const e of r){const t=i==null?void 0:i.slotsConfig.find(b=>b.name===e.name);e.type=(t==null?void 0:t.type)??(e==null?void 0:e.type)}const u=r.filter(e=>e.type==="mixed").sort((e,t)=>e.order-t.order),y=s.filter(e=>e.type==="mixed").sort((e,t)=>e.order-t.order),O=r.filter(e=>e.type==="numeric").sort((e,t)=>e.order-t.order),T=s.filter(e=>e.type==="numeric").sort((e,t)=>e.order-t.order),l=[];for(const e of O)for(const t of e.content)t.key="old-measure-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(t),l.push(t);for(const e of u)for(const t of e.content)t.type==="numeric"&&(t.key="old-mixed-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(t),l.push(t));const k=[...T,...y].sort((e,t)=>s.indexOf(e)-s.indexOf(t));for(const e of l)for(const t of k)c.includes(e.key)||(t.content=(t==null?void 0:t.content)??[],(((a=t==null?void 0:t.content)==null?void 0:a.length)===0||((m=t==null?void 0:t.content)==null?void 0:m.length)>0&&(t==null?void 0:t.canAcceptMultipleDataItems)===!0)&&(t.content.push(e),c.push(e.key)));const g=r.filter(e=>e.type==="categorical").sort((e,t)=>e.order-t.order),w=s.filter(e=>e.type==="categorical").sort((e,t)=>e.order-t.order),d=[];for(const e of g)for(const t of e.content)t.key="old-dimension-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(t),d.push(t);for(const e of u)for(const t of e.content)t.type!=="numeric"&&(t.key="old-mixed-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(t),d.push(t));const M=[...w,...y].sort((e,t)=>s.indexOf(e)-s.indexOf(t));for(const e of d)if(!c.includes(e.key))for(const t of M)t&&!c.includes(e.key)&&(t.content=(t==null?void 0:t.content)??[],(((h=t==null?void 0:t.content)==null?void 0:h.length)===0||((S=t==null?void 0:t.content)==null?void 0:S.length)>0&&(t==null?void 0:t.canAcceptMultipleDataItems)===!0)&&(t.content.push(e),c.push(e.key)));let p={...o.options};return n.setInitialOptions&&(p=n==null?void 0:n.setInitialOptions({...p})),{type:n.type??"bar-chart",slots:s.map(e=>({name:e.name,content:e.content??[]}))??[],options:p??{...o.options}}}exports.decomposeNumericFormat=A.decomposeNumericFormat;exports.formatter=q.formatter;exports.localize=D.localize;exports.getTheme=x.getTheme;exports.systemThemeIds=x.systemThemeIds;exports.switchItem=z;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-CFL6gmIu.cjs"),C=require("./decompose-numeric-format-B3rVVHpO.cjs"),k=require("./en-DZcn_iz_.cjs"),T=require("./localize-C4zNlrwK.cjs"),h=require("./index-6PmXiNch.cjs"),g=require("./index-Vdyb9z2D.cjs"),f=r=>!!(r&&Object.keys(r).length>0),O=(r,e,i={})=>{if(e.hidden===!0&&!i.includeHidden||!e.id||!e.type)return null;const s=f(e.name)?e.name:{en:"Untitled"},n={datasetId:r,columnId:e.id,type:e.type,name:s};return e.description&&f(e.description)&&(n.description=e.description),e.subtype&&(n.subtype=e.subtype),e.format&&(n.format=e.format),typeof e.lowestLevel=="number"&&(n.lowestLevel=e.lowestLevel),e.expression&&(n.expression=e.expression),Array.isArray(e.duration_levels)&&e.duration_levels.length>0&&(n.duration_levels=[...e.duration_levels]),e.duration_format&&(n.duration_format=e.duration_format),Array.isArray(e.hierarchyLevels)&&e.hierarchyLevels.length>0&&(n.hierarchyLevels=e.hierarchyLevels.map(({id:d,level:a,name:l})=>({id:d,level:a,name:l}))),e.currency?.id&&e.currency.symbol&&(n.currency={id:e.currency.id,name:e.currency.name,symbol:e.currency.symbol}),n},M=(r,e,i={})=>{if(e.hidden===!0&&!i.includeHidden||!e.id||!e.type)return null;const s=f(e.name)?e.name:{en:"Untitled"},n={datasetId:r,formulaId:e.id,type:e.type,name:s};return e.description&&f(e.description)&&(n.description=e.description),e.subtype&&(n.subtype=e.subtype),e.format&&(n.format=e.format),typeof e.lowestLevel=="number"&&(n.lowestLevel=e.lowestLevel),e.expression&&(n.expression=e.expression),Array.isArray(e.duration_levels)&&e.duration_levels.length>0&&(n.duration_levels=[...e.duration_levels]),e.duration_format&&(n.duration_format=e.duration_format),e.currency?.id&&e.currency.symbol&&(n.currency={id:e.currency.id,name:e.currency.name,symbol:e.currency.symbol}),n},_=(r,e={})=>{if(!r?.id)return[];const i=[];return Array.isArray(r.columns)&&r.columns.forEach(c=>{const s=O(r.id,c,e);s&&i.push(s)}),Array.isArray(r.formulas)&&r.formulas.forEach(c=>{const s=M(r.id,c,e);s&&i.push(s)}),i},w=(r,e={})=>r.map(i=>({id:i.id,name:i.name,description:i.description,dataItems:_(i,e)})),E=async(r,e)=>{if(!Array.isArray(r)||r.length===0)throw new Error("At least one dataset ID is required");const{dataBrokerConfig:i}=e;if(!i)throw new Error("dataBrokerConfig is required");if(!i.authKey||!i.authToken)throw new Error("Both authKey and authToken are required for DataBroker configuration");if(!i.apiUrl)throw new Error("apiUrl is required for DataBroker configuration");if(typeof i.apiUrl!="string")throw new TypeError("apiUrl must be a valid string");m.dataBroker.configure(i);try{const c=await m.dataBroker.fetchDatasetsWithColumnsAndFormulas(r);return w(c)}catch(c){throw c instanceof Error&&c.message.includes("Authentication failed")?new Error("Failed to load datasets: Authentication failed. Please verify your API credentials are correct."):c}};function F(r){const e=[],i=[];Object.keys(h.slotsConfigs).forEach(t=>{t.replace("SlotsConfig","");const o=t.replace("SlotsConfig","").replaceAll(/([A-Z])/g,"-$1").toLowerCase();i.push({type:o,slotsConfig:h.slotsConfigs[t]})});const c=i.find(t=>t.type===r?.oldItemType),s=i.find(t=>t.type===r?.newItemType),n=structuredClone(s?.slotsConfig??[]);if(!s)return{type:c?.type??"bar-chart",slots:r.slots??[]};const d=structuredClone(r.slots??[]);for(const t of d){const o=c?.slotsConfig.find(A=>A.name===t.name);t.type=o?.type??t?.type}const a=d.filter(t=>t.type==="mixed").sort((t,o)=>t.order-o.order),l=n.filter(t=>t.type==="mixed").sort((t,o)=>t.order-o.order),b=d.filter(t=>t.type==="numeric").sort((t,o)=>t.order-o.order),x=n.filter(t=>t.type==="numeric").sort((t,o)=>t.order-o.order),p=[];for(const t of b)for(const o of t.content)o.key="old-measure-"+t?.name+"-"+t.content.indexOf(o),p.push(o);for(const t of a)for(const o of t.content)o.type==="numeric"&&(o.key="old-mixed-"+t?.name+"-"+t.content.indexOf(o),p.push(o));const S=[...x,...l].sort((t,o)=>n.indexOf(t)-n.indexOf(o));for(const t of p)for(const o of S)e.includes(t.key)||(o.content=o?.content??[],(o?.content?.length===0||o?.content?.length>0&&o?.canAcceptMultipleDataItems===!0)&&(o.content.push(t),e.push(t.key)));const I=d.filter(t=>t.type==="categorical").sort((t,o)=>t.order-o.order),D=n.filter(t=>t.type==="categorical").sort((t,o)=>t.order-o.order),y=[];for(const t of I)for(const o of t.content)o.key="old-dimension-"+t?.name+"-"+t.content.indexOf(o),y.push(o);for(const t of a)for(const o of t.content)o.type!=="numeric"&&(o.key="old-mixed-"+t?.name+"-"+t.content.indexOf(o),y.push(o));const v=[...D,...l].sort((t,o)=>n.indexOf(t)-n.indexOf(o));for(const t of y)if(!e.includes(t.key))for(const o of v)o&&!e.includes(t.key)&&(o.content=o?.content??[],(o?.content?.length===0||o?.content?.length>0&&o?.canAcceptMultipleDataItems===!0)&&(o.content.push(t),e.push(t.key)));let u={...r.options};return s.setInitialOptions&&(u=s?.setInitialOptions({...u})),{type:s.type??"bar-chart",slots:n.map(t=>({name:t.name,content:t.content??[]}))??[],options:u??{...r.options}}}exports.decomposeNumericFormat=C.decomposeNumericFormat;exports.formatter=k.formatter;exports.localize=T.localize;exports.getTheme=g.getTheme;exports.systemThemeIds=g.systemThemeIds;exports.convertDatasetsToDraggableItems=w;exports.loadDraggableItemsForDatasets=E;exports.switchItem=F;
@@ -17,79 +17,145 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { d as j } from "./decompose-numeric-format-BuZcjH2k.js";
21
- import { f as E } from "./en-BOTjhwEc.js";
22
- import { l as N } from "./localize-BX7q0S0M.js";
23
- import { s as C } from "./index-V1XCZI4y.js";
24
- import { g as $, s as q } from "./index-CgnTl6Sc.js";
25
- function g(o) {
26
- var u, m, h, x;
27
- const c = [], f = [];
28
- Object.keys(C).forEach((e) => {
29
- e.replace("SlotsConfig", "");
30
- const t = e.replace("SlotsConfig", "").replaceAll(/([A-Z])/g, "-$1").toLowerCase();
31
- f.push({
32
- type: t,
33
- slotsConfig: C[e]
20
+ import { d as h } from "./index-DNPULp4A.js";
21
+ import { d as F } from "./decompose-numeric-format-BuZcjH2k.js";
22
+ import { f as H } from "./en-D3ihEGXg.js";
23
+ import { l as q } from "./localize-CcDpq940.js";
24
+ import { s as m } from "./index-V1XCZI4y.js";
25
+ import { g as j, s as K } from "./index-CgnTl6Sc.js";
26
+ const f = (r) => !!(r && Object.keys(r).length > 0), I = (r, e, i = {}) => {
27
+ if (e.hidden === !0 && !i.includeHidden || !e.id || !e.type)
28
+ return null;
29
+ const s = f(e.name) ? e.name : { en: "Untitled" }, n = {
30
+ datasetId: r,
31
+ columnId: e.id,
32
+ type: e.type,
33
+ name: s
34
+ };
35
+ return e.description && f(e.description) && (n.description = e.description), e.subtype && (n.subtype = e.subtype), e.format && (n.format = e.format), typeof e.lowestLevel == "number" && (n.lowestLevel = e.lowestLevel), e.expression && (n.expression = e.expression), Array.isArray(e.duration_levels) && e.duration_levels.length > 0 && (n.duration_levels = [...e.duration_levels]), e.duration_format && (n.duration_format = e.duration_format), Array.isArray(e.hierarchyLevels) && e.hierarchyLevels.length > 0 && (n.hierarchyLevels = e.hierarchyLevels.map(({ id: c, level: a, name: l }) => ({ id: c, level: a, name: l }))), e.currency?.id && e.currency.symbol && (n.currency = {
36
+ id: e.currency.id,
37
+ name: e.currency.name,
38
+ symbol: e.currency.symbol
39
+ }), n;
40
+ }, C = (r, e, i = {}) => {
41
+ if (e.hidden === !0 && !i.includeHidden || !e.id || !e.type)
42
+ return null;
43
+ const s = f(e.name) ? e.name : { en: "Untitled" }, n = {
44
+ datasetId: r,
45
+ formulaId: e.id,
46
+ type: e.type,
47
+ name: s
48
+ };
49
+ return e.description && f(e.description) && (n.description = e.description), e.subtype && (n.subtype = e.subtype), e.format && (n.format = e.format), typeof e.lowestLevel == "number" && (n.lowestLevel = e.lowestLevel), e.expression && (n.expression = e.expression), Array.isArray(e.duration_levels) && e.duration_levels.length > 0 && (n.duration_levels = [...e.duration_levels]), e.duration_format && (n.duration_format = e.duration_format), e.currency?.id && e.currency.symbol && (n.currency = {
50
+ id: e.currency.id,
51
+ name: e.currency.name,
52
+ symbol: e.currency.symbol
53
+ }), n;
54
+ }, D = (r, e = {}) => {
55
+ if (!r?.id)
56
+ return [];
57
+ const i = [];
58
+ return Array.isArray(r.columns) && r.columns.forEach((d) => {
59
+ const s = I(r.id, d, e);
60
+ s && i.push(s);
61
+ }), Array.isArray(r.formulas) && r.formulas.forEach((d) => {
62
+ const s = C(r.id, d, e);
63
+ s && i.push(s);
64
+ }), i;
65
+ }, k = (r, e = {}) => r.map((i) => ({
66
+ id: i.id,
67
+ name: i.name,
68
+ description: i.description,
69
+ dataItems: D(i, e)
70
+ })), _ = async (r, e) => {
71
+ if (!Array.isArray(r) || r.length === 0)
72
+ throw new Error("At least one dataset ID is required");
73
+ const { dataBrokerConfig: i } = e;
74
+ if (!i)
75
+ throw new Error("dataBrokerConfig is required");
76
+ if (!i.authKey || !i.authToken)
77
+ throw new Error("Both authKey and authToken are required for DataBroker configuration");
78
+ if (!i.apiUrl)
79
+ throw new Error("apiUrl is required for DataBroker configuration");
80
+ if (typeof i.apiUrl != "string")
81
+ throw new TypeError("apiUrl must be a valid string");
82
+ h.configure(i);
83
+ try {
84
+ const d = await h.fetchDatasetsWithColumnsAndFormulas(r);
85
+ return k(d);
86
+ } catch (d) {
87
+ throw d instanceof Error && d.message.includes("Authentication failed") ? new Error("Failed to load datasets: Authentication failed. Please verify your API credentials are correct.") : d;
88
+ }
89
+ };
90
+ function M(r) {
91
+ const e = [], i = [];
92
+ Object.keys(m).forEach((t) => {
93
+ t.replace("SlotsConfig", "");
94
+ const o = t.replace("SlotsConfig", "").replaceAll(/([A-Z])/g, "-$1").toLowerCase();
95
+ i.push({
96
+ type: o,
97
+ slotsConfig: m[t]
34
98
  });
35
99
  });
36
- const r = f.find(
37
- (e) => e.type === (o == null ? void 0 : o.oldItemType)
38
- ), n = f.find(
39
- (e) => e.type === (o == null ? void 0 : o.newItemType)
40
- ), s = structuredClone((n == null ? void 0 : n.slotsConfig) ?? []);
41
- if (!n)
100
+ const d = i.find(
101
+ (t) => t.type === r?.oldItemType
102
+ ), s = i.find(
103
+ (t) => t.type === r?.newItemType
104
+ ), n = structuredClone(s?.slotsConfig ?? []);
105
+ if (!s)
42
106
  return {
43
- type: (r == null ? void 0 : r.type) ?? "bar-chart",
44
- slots: o.slots ?? []
107
+ type: d?.type ?? "bar-chart",
108
+ slots: r.slots ?? []
45
109
  };
46
- const i = structuredClone(o.slots ?? []);
47
- for (const e of i) {
48
- const t = r == null ? void 0 : r.slotsConfig.find(
49
- (A) => A.name === e.name
110
+ const c = structuredClone(r.slots ?? []);
111
+ for (const t of c) {
112
+ const o = d?.slotsConfig.find(
113
+ (v) => v.name === t.name
50
114
  );
51
- e.type = (t == null ? void 0 : t.type) ?? (e == null ? void 0 : e.type);
115
+ t.type = o?.type ?? t?.type;
52
116
  }
53
- const a = i.filter((e) => e.type === "mixed").sort((e, t) => e.order - t.order), y = s.filter((e) => e.type === "mixed").sort((e, t) => e.order - t.order), S = i.filter((e) => e.type === "numeric").sort((e, t) => e.order - t.order), O = s.filter((e) => e.type === "numeric").sort((e, t) => e.order - t.order), l = [];
54
- for (const e of S)
55
- for (const t of e.content)
56
- t.key = "old-measure-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(t), l.push(t);
57
- for (const e of a)
58
- for (const t of e.content)
59
- t.type === "numeric" && (t.key = "old-mixed-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(t), l.push(t));
60
- const k = [...O, ...y].sort(
61
- (e, t) => s.indexOf(e) - s.indexOf(t)
117
+ const a = c.filter((t) => t.type === "mixed").sort((t, o) => t.order - o.order), l = n.filter((t) => t.type === "mixed").sort((t, o) => t.order - o.order), g = c.filter((t) => t.type === "numeric").sort((t, o) => t.order - o.order), w = n.filter((t) => t.type === "numeric").sort((t, o) => t.order - o.order), p = [];
118
+ for (const t of g)
119
+ for (const o of t.content)
120
+ o.key = "old-measure-" + t?.name + "-" + t.content.indexOf(o), p.push(o);
121
+ for (const t of a)
122
+ for (const o of t.content)
123
+ o.type === "numeric" && (o.key = "old-mixed-" + t?.name + "-" + t.content.indexOf(o), p.push(o));
124
+ const x = [...w, ...l].sort(
125
+ (t, o) => n.indexOf(t) - n.indexOf(o)
62
126
  );
63
- for (const e of l)
64
- for (const t of k)
65
- c.includes(e.key) || (t.content = (t == null ? void 0 : t.content) ?? [], (((u = t == null ? void 0 : t.content) == null ? void 0 : u.length) === 0 || ((m = t == null ? void 0 : t.content) == null ? void 0 : m.length) > 0 && (t == null ? void 0 : t.canAcceptMultipleDataItems) === !0) && (t.content.push(e), c.push(e.key)));
66
- const T = i.filter((e) => e.type === "categorical").sort((e, t) => e.order - t.order), w = s.filter((e) => e.type === "categorical").sort((e, t) => e.order - t.order), p = [];
67
- for (const e of T)
68
- for (const t of e.content)
69
- t.key = "old-dimension-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(t), p.push(t);
70
- for (const e of a)
71
- for (const t of e.content)
72
- t.type !== "numeric" && (t.key = "old-mixed-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(t), p.push(t));
73
- const M = [
74
- ...w,
75
- ...y
76
- ].sort((e, t) => s.indexOf(e) - s.indexOf(t));
77
- for (const e of p)
78
- if (!c.includes(e.key))
79
- for (const t of M)
80
- t && !c.includes(e.key) && (t.content = (t == null ? void 0 : t.content) ?? [], (((h = t == null ? void 0 : t.content) == null ? void 0 : h.length) === 0 || ((x = t == null ? void 0 : t.content) == null ? void 0 : x.length) > 0 && (t == null ? void 0 : t.canAcceptMultipleDataItems) === !0) && (t.content.push(e), c.push(e.key)));
81
- let d = { ...o.options };
82
- return n.setInitialOptions && (d = n == null ? void 0 : n.setInitialOptions({ ...d })), {
83
- type: n.type ?? "bar-chart",
84
- slots: s.map((e) => ({ name: e.name, content: e.content ?? [] })) ?? [],
85
- options: d ?? { ...o.options }
127
+ for (const t of p)
128
+ for (const o of x)
129
+ e.includes(t.key) || (o.content = o?.content ?? [], (o?.content?.length === 0 || o?.content?.length > 0 && o?.canAcceptMultipleDataItems === !0) && (o.content.push(t), e.push(t.key)));
130
+ const b = c.filter((t) => t.type === "categorical").sort((t, o) => t.order - o.order), A = n.filter((t) => t.type === "categorical").sort((t, o) => t.order - o.order), y = [];
131
+ for (const t of b)
132
+ for (const o of t.content)
133
+ o.key = "old-dimension-" + t?.name + "-" + t.content.indexOf(o), y.push(o);
134
+ for (const t of a)
135
+ for (const o of t.content)
136
+ o.type !== "numeric" && (o.key = "old-mixed-" + t?.name + "-" + t.content.indexOf(o), y.push(o));
137
+ const S = [
138
+ ...A,
139
+ ...l
140
+ ].sort((t, o) => n.indexOf(t) - n.indexOf(o));
141
+ for (const t of y)
142
+ if (!e.includes(t.key))
143
+ for (const o of S)
144
+ o && !e.includes(t.key) && (o.content = o?.content ?? [], (o?.content?.length === 0 || o?.content?.length > 0 && o?.canAcceptMultipleDataItems === !0) && (o.content.push(t), e.push(t.key)));
145
+ let u = { ...r.options };
146
+ return s.setInitialOptions && (u = s?.setInitialOptions({ ...u })), {
147
+ type: s.type ?? "bar-chart",
148
+ slots: n.map((t) => ({ name: t.name, content: t.content ?? [] })) ?? [],
149
+ options: u ?? { ...r.options }
86
150
  };
87
151
  }
88
152
  export {
89
- j as decomposeNumericFormat,
90
- E as formatter,
91
- $ as getTheme,
92
- N as localize,
93
- g as switchItem,
94
- q as systemThemeIds
153
+ k as convertDatasetsToDraggableItems,
154
+ F as decomposeNumericFormat,
155
+ H as formatter,
156
+ j as getTheme,
157
+ _ as loadDraggableItemsForDatasets,
158
+ q as localize,
159
+ M as switchItem,
160
+ K as systemThemeIds
95
161
  };
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{key:"general",type:"group",open:!0,children:[{key:"type",control:{type:"picker",label:"Type",default:"web",enum:["web","youtube"]}},{key:"youtube",control:{type:"multi-language-field",placeholder:"Enter the youtube URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)==="youtube"},{key:"ogg",control:{type:"multi-language-field",label:"ogg:",placeholder:"Enter the .ogg file URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)!=="youtube"},{key:"mp4",control:{type:"multi-language-field",label:"mp4:",placeholder:"Enter the .mp4 file URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)!=="youtube"},{key:"webm",control:{type:"multi-language-field",label:"webm:",placeholder:"Enter the .webm file URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)!=="youtube"},{type:"divider"},{key:"showControls",control:{type:"switch",label:"Show controls",default:!0}},{key:"autoPlay",control:{type:"switch",label:"Auto play",default:!1}},{key:"loop",control:{type:"switch",label:"Loop",default:!1}},{key:"backdropColor",control:{type:"color-picker",label:"Backdrop color",default:"#000000"}}]},{key:"image",type:"group",open:!0,children:[{key:"poster.show",control:{type:"switch",label:"Show image on load",default:!1}},{key:"poster.url",control:{type:"multi-language-field",label:"Poster URL",placeholder:"Enter image URL"},visibleIf:({options:e})=>{var l;return(l=e==null?void 0:e.poster)==null?void 0:l.show}}]}];exports.default=t;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=[{key:"general",type:"group",open:!0,children:[{key:"type",control:{type:"picker",label:"Type",default:"web",enum:["web","youtube"]}},{key:"youtube",control:{type:"multi-language-field",placeholder:"Enter the youtube URL"},visibleIf:({options:e})=>e?.type==="youtube"},{key:"ogg",control:{type:"multi-language-field",label:"ogg:",placeholder:"Enter the .ogg file URL"},visibleIf:({options:e})=>e?.type!=="youtube"},{key:"mp4",control:{type:"multi-language-field",label:"mp4:",placeholder:"Enter the .mp4 file URL"},visibleIf:({options:e})=>e?.type!=="youtube"},{key:"webm",control:{type:"multi-language-field",label:"webm:",placeholder:"Enter the .webm file URL"},visibleIf:({options:e})=>e?.type!=="youtube"},{type:"divider"},{key:"showControls",control:{type:"switch",label:"Show controls",default:!0}},{key:"autoPlay",control:{type:"switch",label:"Auto play",default:!1}},{key:"loop",control:{type:"switch",label:"Loop",default:!1}},{key:"backdropColor",control:{type:"color-picker",label:"Backdrop color",default:"#000000"}}]},{key:"image",type:"group",open:!0,children:[{key:"poster.show",control:{type:"switch",label:"Show image on load",default:!1}},{key:"poster.url",control:{type:"multi-language-field",label:"Poster URL",placeholder:"Enter image URL"},visibleIf:({options:e})=>e?.poster?.show}]}];exports.default=l;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- const t = [
20
+ const l = [
21
21
  {
22
22
  key: "general",
23
23
  type: "group",
@@ -38,7 +38,7 @@ const t = [
38
38
  type: "multi-language-field",
39
39
  placeholder: "Enter the youtube URL"
40
40
  },
41
- visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) === "youtube"
41
+ visibleIf: ({ options: e }) => e?.type === "youtube"
42
42
  },
43
43
  {
44
44
  key: "ogg",
@@ -47,7 +47,7 @@ const t = [
47
47
  label: "ogg:",
48
48
  placeholder: "Enter the .ogg file URL"
49
49
  },
50
- visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) !== "youtube"
50
+ visibleIf: ({ options: e }) => e?.type !== "youtube"
51
51
  },
52
52
  {
53
53
  key: "mp4",
@@ -56,7 +56,7 @@ const t = [
56
56
  label: "mp4:",
57
57
  placeholder: "Enter the .mp4 file URL"
58
58
  },
59
- visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) !== "youtube"
59
+ visibleIf: ({ options: e }) => e?.type !== "youtube"
60
60
  },
61
61
  {
62
62
  key: "webm",
@@ -65,7 +65,7 @@ const t = [
65
65
  label: "webm:",
66
66
  placeholder: "Enter the .webm file URL"
67
67
  },
68
- visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) !== "youtube"
68
+ visibleIf: ({ options: e }) => e?.type !== "youtube"
69
69
  },
70
70
  { type: "divider" },
71
71
  {
@@ -122,14 +122,11 @@ const t = [
122
122
  label: "Poster URL",
123
123
  placeholder: "Enter image URL"
124
124
  },
125
- visibleIf: ({ options: e }) => {
126
- var l;
127
- return (l = e == null ? void 0 : e.poster) == null ? void 0 : l.show;
128
- }
125
+ visibleIf: ({ options: e }) => e?.poster?.show
129
126
  }
130
127
  ]
131
128
  }
132
129
  ];
133
130
  export {
134
- t as default
131
+ l as default
135
132
  };
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./helpers-DXQwEH1P.cjs"),t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"categories.colored",control:{type:"switch",label:"Word color by category",default:!0}},{key:"color",control:{type:"color-picker",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:o})=>l.getThemeMainColorResetLabel(e,o,"color"),extraLabelHasClickAction:({options:e,theme:o})=>l.getThemeMainColorExtraLabelHasClickAction(e,o,"color"),extraLabelClickAction:({options:e,theme:o})=>l.getThemeMainColorExtraLabelClickAction(e,o,"color")},visibleIf:({options:e})=>{var o;return((o=e==null?void 0:e.categories)==null?void 0:o.colored)===!1}},{key:"layout",control:{type:"radio-button-group",label:"Layout",default:"horizontal",enum:["horizontal","random"]}}]}];exports.default=t;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./helpers-9I0oLoUB.cjs"),l=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"categories.colored",control:{type:"switch",label:"Word color by category",default:!0}},{key:"color",control:{type:"color-picker",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:o})=>t.getThemeMainColorResetLabel(e,o,"color"),extraLabelHasClickAction:({options:e,theme:o})=>t.getThemeMainColorExtraLabelHasClickAction(e,o,"color"),extraLabelClickAction:({options:e,theme:o})=>t.getThemeMainColorExtraLabelClickAction(e,o,"color")},visibleIf:({options:e})=>e?.categories?.colored===!1},{key:"layout",control:{type:"radio-button-group",label:"Layout",default:"horizontal",enum:["horizontal","random"]}}]}];exports.default=l;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { g as l, a as t, b as a, c as r } from "./helpers-v1bPALRP.js";
20
+ import { g as t, a as l, b as a, c as r } from "./helpers-bR8Ibjqh.js";
21
21
  const i = [
22
22
  {
23
23
  key: "general",
@@ -46,13 +46,10 @@ const i = [
46
46
  type: "color-picker",
47
47
  default: ({ theme: e }) => r(e),
48
48
  extraLabel: ({ options: e, theme: o }) => a(e, o, "color"),
49
- extraLabelHasClickAction: ({ options: e, theme: o }) => t(e, o, "color"),
50
- extraLabelClickAction: ({ options: e, theme: o }) => l(e, o, "color")
49
+ extraLabelHasClickAction: ({ options: e, theme: o }) => l(e, o, "color"),
50
+ extraLabelClickAction: ({ options: e, theme: o }) => t(e, o, "color")
51
51
  },
52
- visibleIf: ({ options: e }) => {
53
- var o;
54
- return ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.colored) === !1;
55
- }
52
+ visibleIf: ({ options: e }) => e?.categories?.colored === !1
56
53
  },
57
54
  {
58
55
  key: "layout",