@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97

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 (260) hide show
  1. package/angular/README.md +1 -1
  2. package/angular/components/viz-item-menu.component.ts +25 -0
  3. package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
  4. package/angular/esm/components/viz-item-menu.component.js +49 -0
  5. package/angular/esm/index.d.ts +3 -3
  6. package/angular/esm/index.js +3 -3
  7. package/angular/esm/types.d.ts +2 -2
  8. package/angular/index.ts +3 -3
  9. package/angular/types.ts +2 -2
  10. package/components/ai-chat-message-assistant/index.cjs +1 -1
  11. package/components/ai-chat-message-assistant/index.js +0 -1
  12. package/components/ai-chat-messages-container/index.cjs +1 -1
  13. package/components/ai-chat-messages-container/index.js +2 -2
  14. package/components/ai-interaction-textarea/index.cjs +1 -1
  15. package/components/ai-interaction-textarea/index.js +1 -2
  16. package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
  17. package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
  18. package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
  19. package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
  20. package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
  21. package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
  22. package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
  23. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
  24. package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
  25. package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
  26. package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
  27. package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
  28. package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
  29. package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
  30. package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
  31. package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
  32. package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
  33. package/components/color-Czp4Im5q.cjs +20 -0
  34. package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
  35. package/components/color-range-utils-DYYR-iwx.cjs +20 -0
  36. package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
  37. package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
  38. package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
  39. package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
  40. package/components/dataset-icon/index.cjs +1 -1
  41. package/components/dataset-icon/index.js +1 -2
  42. package/components/dataset-selector-list/index.cjs +1 -1
  43. package/components/dataset-selector-list/index.js +32 -35
  44. package/components/dataset-selector-row/index.cjs +9 -9
  45. package/components/dataset-selector-row/index.js +50 -52
  46. package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
  47. package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
  48. package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
  49. package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
  50. package/components/display-settings/index.cjs +1 -1
  51. package/components/display-settings/index.js +1 -1
  52. package/components/display-settings-binning/index.cjs +5 -5
  53. package/components/display-settings-binning/index.js +29 -30
  54. package/components/display-settings-datetime/index.cjs +29 -29
  55. package/components/display-settings-datetime/index.js +112 -120
  56. package/components/display-settings-grand-totals/index.cjs +4 -4
  57. package/components/display-settings-grand-totals/index.js +23 -24
  58. package/components/display-settings-numeric/display-settings-numeric.d.ts +1 -2
  59. package/components/display-settings-numeric/index.cjs +49 -48
  60. package/components/display-settings-numeric/index.js +193 -218
  61. package/components/display-settings-period-over-period/index.cjs +16 -16
  62. package/components/display-settings-period-over-period/index.js +91 -97
  63. package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
  64. package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
  65. package/components/draggable-data-item/index.cjs +5 -5
  66. package/components/draggable-data-item/index.js +45 -46
  67. package/components/draggable-data-item-level/index.cjs +11 -11
  68. package/components/draggable-data-item-level/index.js +70 -73
  69. package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
  70. package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
  71. package/components/droppable-slot/index.cjs +16 -16
  72. package/components/droppable-slot/index.js +208 -223
  73. package/components/edit-item/index.cjs +9 -9
  74. package/components/edit-item/index.js +116 -119
  75. package/components/edit-option/index.cjs +1 -1
  76. package/components/edit-option/index.js +1 -1
  77. package/components/edit-option-action-button-group/index.cjs +8 -8
  78. package/components/edit-option-action-button-group/index.js +52 -53
  79. package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
  80. package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
  81. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  82. package/components/edit-option-color-palette-picker/index.js +1 -1
  83. package/components/edit-option-color-picker/index.cjs +1 -1
  84. package/components/edit-option-color-picker/index.js +1 -1
  85. package/components/edit-option-color-range/index.cjs +19 -19
  86. package/components/edit-option-color-range/index.js +106 -117
  87. package/components/edit-option-multi-language-field/index.cjs +3 -3
  88. package/components/edit-option-multi-language-field/index.js +26 -27
  89. package/components/edit-option-number-field/index.cjs +1 -1
  90. package/components/edit-option-number-field/index.js +1 -1
  91. package/components/edit-option-picker/index.cjs +5 -5
  92. package/components/edit-option-picker/index.js +7 -7
  93. package/components/edit-option-position-picker/index.cjs +4 -4
  94. package/components/edit-option-position-picker/index.js +21 -25
  95. package/components/edit-option-positions-number-field/index.cjs +9 -9
  96. package/components/edit-option-positions-number-field/index.js +76 -81
  97. package/components/edit-option-radio-button-group/index.cjs +6 -6
  98. package/components/edit-option-radio-button-group/index.js +21 -22
  99. package/components/edit-option-slider/index.cjs +1 -1
  100. package/components/edit-option-slider/index.js +1 -1
  101. package/components/edit-option-switch/index.cjs +1 -1
  102. package/components/edit-option-switch/index.js +1 -1
  103. package/components/edit-option-text-field/index.cjs +2 -2
  104. package/components/edit-option-text-field/index.js +22 -23
  105. package/components/en-D3ihEGXg.js +1483 -0
  106. package/components/en-DZcn_iz_.cjs +20 -0
  107. package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
  108. package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
  109. package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
  110. package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
  111. package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
  112. package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
  113. package/components/filter-data-item-picker/index.cjs +7 -7
  114. package/components/filter-data-item-picker/index.js +85 -86
  115. package/components/filter-expression-picker/index.cjs +1 -1
  116. package/components/filter-expression-picker/index.js +1 -1
  117. package/components/filter-item/index.cjs +6 -6
  118. package/components/filter-item/index.js +109 -119
  119. package/components/filter-value-picker/index.cjs +2 -2
  120. package/components/filter-value-picker/index.js +34 -36
  121. package/components/filter-value-picker-datetime/index.cjs +8 -8
  122. package/components/filter-value-picker-datetime/index.js +56 -71
  123. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  124. package/components/filter-value-picker-hierarchy/index.js +113 -124
  125. package/components/filter-value-picker-numeric/index.cjs +8 -8
  126. package/components/filter-value-picker-numeric/index.js +101 -110
  127. package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
  128. package/components/focusable-QLh-LlNt.cjs +20 -0
  129. package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
  130. package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
  131. package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
  132. package/components/get-css-variable-Pzks_rOx.cjs +24 -0
  133. package/components/grid/index.cjs +43 -49
  134. package/components/grid/index.js +2610 -1878
  135. package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
  136. package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
  137. package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
  138. package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
  139. package/components/helpers-9I0oLoUB.cjs +20 -0
  140. package/components/helpers-bR8Ibjqh.js +79 -0
  141. package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
  142. package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
  143. package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
  144. package/components/index-BekTY3Em.cjs +121 -0
  145. package/components/index-CFL6gmIu.cjs +20 -0
  146. package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
  147. package/components/index-DNPULp4A.js +1755 -0
  148. package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
  149. package/components/index-DvkzMbLt.cjs +249 -0
  150. package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
  151. package/components/index.cjs +1 -1
  152. package/components/index.js +13 -13
  153. package/components/item-options-configs.cjs +1 -1
  154. package/components/item-options-configs.js +37 -37
  155. package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
  156. package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
  157. package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
  158. package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
  159. package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
  160. package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
  161. package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
  162. package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
  163. package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
  164. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
  165. package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
  166. package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
  167. package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
  168. package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
  169. package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
  170. package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
  171. package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
  172. package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
  173. package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
  174. package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
  175. package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
  176. package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
  177. package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
  178. package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
  179. package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
  180. package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
  181. package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
  182. package/components/slot-contents-picker/index.cjs +33 -33
  183. package/components/slot-contents-picker/index.js +194 -205
  184. package/components/slot-menu/index.cjs +12 -12
  185. package/components/slot-menu/index.js +171 -184
  186. package/components/slot-menu-list/index.cjs +3 -3
  187. package/components/slot-menu-list/index.js +97 -103
  188. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
  189. package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
  190. package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
  191. package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
  192. package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
  193. package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
  194. package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
  195. package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
  196. package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
  197. package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
  198. package/components/utils.cjs +1 -1
  199. package/components/utils.js +94 -97
  200. package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
  201. package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
  202. package/components/viz-item-menu/index.cjs +51 -0
  203. package/components/viz-item-menu/index.d.ts +8 -0
  204. package/components/viz-item-menu/index.js +209 -0
  205. package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
  206. package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
  207. package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
  208. package/custom-elements.json +43 -23
  209. package/index.d.ts +1 -1
  210. package/package.json +7 -7
  211. package/types.d.ts +2 -2
  212. package/angular/components/widget-menu.component.ts +0 -25
  213. package/angular/esm/components/widget-menu.component.d.ts +0 -13
  214. package/angular/esm/components/widget-menu.component.js +0 -49
  215. package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
  216. package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
  217. package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
  218. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
  219. package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
  220. package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
  221. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
  222. package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
  223. package/components/color-B6LaL8qz.cjs +0 -20
  224. package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
  225. package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
  226. package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
  227. package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
  228. package/components/en-BKBhKBXY.cjs +0 -20
  229. package/components/en-BOTjhwEc.js +0 -1488
  230. package/components/focusable-B3E_hQmm.cjs +0 -20
  231. package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
  232. package/components/get-css-variable-BEYG097C.js +0 -1446
  233. package/components/get-css-variable-BZxY4IOa.cjs +0 -35
  234. package/components/get-css-variable-DLiZYZEi.cjs +0 -24
  235. package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
  236. package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
  237. package/components/helpers-DXQwEH1P.cjs +0 -20
  238. package/components/helpers-v1bPALRP.js +0 -91
  239. package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
  240. package/components/index-CDi4fe3N.js +0 -1716
  241. package/components/index-CQ9ck-BO.cjs +0 -249
  242. package/components/index-CXn67vdn.cjs +0 -121
  243. package/components/index-Cz9vSXy6.cjs +0 -20
  244. package/components/index-Dn0j_pcR.cjs +0 -20
  245. package/components/index-E239Dotg.js +0 -1735
  246. package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
  247. package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
  248. package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
  249. package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
  250. package/components/route-map-options.config-D7NJePTu.cjs +0 -20
  251. package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
  252. package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
  253. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
  254. package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
  255. package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
  256. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
  257. package/components/widget-menu/index.cjs +0 -51
  258. package/components/widget-menu/index.d.ts +0 -8
  259. package/components/widget-menu/index.js +0 -211
  260. package/components/widget-menu/widget-menu.d.ts +0 -77
@@ -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 x=require("./index-Dn0j_pcR.cjs"),E=require("./decompose-numeric-format-B3rVVHpO.cjs"),L=require("./en-BKBhKBXY.cjs"),q=require("./localize-r7ALOUy_.cjs"),A=require("./index-6PmXiNch.cjs"),C=require("./index-Vdyb9z2D.cjs"),l=r=>!!(r&&Object.keys(r).length>0),B=(r,t,i={})=>{var a;if(t.hidden===!0&&!i.includeHidden||!t.id||!t.type)return null;const s=l(t.name)?t.name:{en:"Untitled"},o={datasetId:r,columnId:t.id,type:t.type,name:s};return t.description&&l(t.description)&&(o.description=t.description),t.subtype&&(o.subtype=t.subtype),t.format&&(o.format=t.format),typeof t.lowestLevel=="number"&&(o.lowestLevel=t.lowestLevel),t.expression&&(o.expression=t.expression),Array.isArray(t.duration_levels)&&t.duration_levels.length>0&&(o.duration_levels=[...t.duration_levels]),t.duration_format&&(o.duration_format=t.duration_format),Array.isArray(t.hierarchyLevels)&&t.hierarchyLevels.length>0&&(o.hierarchyLevels=t.hierarchyLevels.map(({id:d,level:f,name:y})=>({id:d,level:f,name:y}))),(a=t.currency)!=null&&a.id&&t.currency.symbol&&(o.currency={id:t.currency.id,name:t.currency.name,symbol:t.currency.symbol}),o},M=(r,t,i={})=>{var a;if(t.hidden===!0&&!i.includeHidden||!t.id||!t.type)return null;const s=l(t.name)?t.name:{en:"Untitled"},o={datasetId:r,formulaId:t.id,type:t.type,name:s};return t.description&&l(t.description)&&(o.description=t.description),t.subtype&&(o.subtype=t.subtype),t.format&&(o.format=t.format),typeof t.lowestLevel=="number"&&(o.lowestLevel=t.lowestLevel),t.expression&&(o.expression=t.expression),Array.isArray(t.duration_levels)&&t.duration_levels.length>0&&(o.duration_levels=[...t.duration_levels]),t.duration_format&&(o.duration_format=t.duration_format),(a=t.currency)!=null&&a.id&&t.currency.symbol&&(o.currency={id:t.currency.id,name:t.currency.name,symbol:t.currency.symbol}),o},U=(r,t={})=>{if(!(r!=null&&r.id))return[];const i=[];return Array.isArray(r.columns)&&r.columns.forEach(c=>{const s=B(r.id,c,t);s&&i.push(s)}),Array.isArray(r.formulas)&&r.formulas.forEach(c=>{const s=M(r.id,c,t);s&&i.push(s)}),i},D=(r,t={})=>r.map(i=>({id:i.id,name:i.name,description:i.description,dataItems:U(i,t)})),H=async(r,t)=>{if(!Array.isArray(r)||r.length===0)throw new Error("At least one dataset ID is required");const{dataBrokerConfig:i}=t;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");x.dataBroker.configure(i);try{const c=await x.dataBroker.fetchDatasetsWithColumnsAndFormulas(r);return D(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 P(r){var m,g,b,w;const t=[],i=[];Object.keys(A.slotsConfigs).forEach(e=>{e.replace("SlotsConfig","");const n=e.replace("SlotsConfig","").replaceAll(/([A-Z])/g,"-$1").toLowerCase();i.push({type:n,slotsConfig:A.slotsConfigs[e]})});const c=i.find(e=>e.type===(r==null?void 0:r.oldItemType)),s=i.find(e=>e.type===(r==null?void 0:r.newItemType)),o=structuredClone((s==null?void 0:s.slotsConfig)??[]);if(!s)return{type:(c==null?void 0:c.type)??"bar-chart",slots:r.slots??[]};const a=structuredClone(r.slots??[]);for(const e of a){const n=c==null?void 0:c.slotsConfig.find(_=>_.name===e.name);e.type=(n==null?void 0:n.type)??(e==null?void 0:e.type)}const d=a.filter(e=>e.type==="mixed").sort((e,n)=>e.order-n.order),f=o.filter(e=>e.type==="mixed").sort((e,n)=>e.order-n.order),y=a.filter(e=>e.type==="numeric").sort((e,n)=>e.order-n.order),k=o.filter(e=>e.type==="numeric").sort((e,n)=>e.order-n.order),p=[];for(const e of y)for(const n of e.content)n.key="old-measure-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),p.push(n);for(const e of d)for(const n of e.content)n.type==="numeric"&&(n.key="old-mixed-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),p.push(n));const v=[...k,...f].sort((e,n)=>o.indexOf(e)-o.indexOf(n));for(const e of p)for(const n of v)t.includes(e.key)||(n.content=(n==null?void 0:n.content)??[],(((m=n==null?void 0:n.content)==null?void 0:m.length)===0||((g=n==null?void 0:n.content)==null?void 0:g.length)>0&&(n==null?void 0:n.canAcceptMultipleDataItems)===!0)&&(n.content.push(e),t.push(e.key)));const S=a.filter(e=>e.type==="categorical").sort((e,n)=>e.order-n.order),T=o.filter(e=>e.type==="categorical").sort((e,n)=>e.order-n.order),h=[];for(const e of S)for(const n of e.content)n.key="old-dimension-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),h.push(n);for(const e of d)for(const n of e.content)n.type!=="numeric"&&(n.key="old-mixed-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),h.push(n));const O=[...T,...f].sort((e,n)=>o.indexOf(e)-o.indexOf(n));for(const e of h)if(!t.includes(e.key))for(const n of O)n&&!t.includes(e.key)&&(n.content=(n==null?void 0:n.content)??[],(((b=n==null?void 0:n.content)==null?void 0:b.length)===0||((w=n==null?void 0:n.content)==null?void 0:w.length)>0&&(n==null?void 0:n.canAcceptMultipleDataItems)===!0)&&(n.content.push(e),t.push(e.key)));let u={...r.options};return s.setInitialOptions&&(u=s==null?void 0:s.setInitialOptions({...u})),{type:s.type??"bar-chart",slots:o.map(e=>({name:e.name,content:e.content??[]}))??[],options:u??{...r.options}}}exports.decomposeNumericFormat=E.decomposeNumericFormat;exports.formatter=L.formatter;exports.localize=q.localize;exports.getTheme=C.getTheme;exports.systemThemeIds=C.systemThemeIds;exports.convertDatasetsToDraggableItems=D;exports.loadDraggableItemsForDatasets=H;exports.switchItem=P;
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,62 +17,60 @@
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 x } from "./index-E239Dotg.js";
21
- import { d as j } from "./decompose-numeric-format-BuZcjH2k.js";
22
- import { f as N } from "./en-BOTjhwEc.js";
23
- import { l as W } from "./localize-BX7q0S0M.js";
24
- import { s as A } from "./index-V1XCZI4y.js";
25
- import { g as $, s as G } from "./index-CgnTl6Sc.js";
26
- const p = (r) => !!(r && Object.keys(r).length > 0), O = (r, t, i = {}) => {
27
- var a;
28
- if (t.hidden === !0 && !i.includeHidden || !t.id || !t.type)
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)
29
28
  return null;
30
- const s = p(t.name) ? t.name : { en: "Untitled" }, o = {
29
+ const s = f(e.name) ? e.name : { en: "Untitled" }, n = {
31
30
  datasetId: r,
32
- columnId: t.id,
33
- type: t.type,
31
+ columnId: e.id,
32
+ type: e.type,
34
33
  name: s
35
34
  };
36
- return t.description && p(t.description) && (o.description = t.description), t.subtype && (o.subtype = t.subtype), t.format && (o.format = t.format), typeof t.lowestLevel == "number" && (o.lowestLevel = t.lowestLevel), t.expression && (o.expression = t.expression), Array.isArray(t.duration_levels) && t.duration_levels.length > 0 && (o.duration_levels = [...t.duration_levels]), t.duration_format && (o.duration_format = t.duration_format), Array.isArray(t.hierarchyLevels) && t.hierarchyLevels.length > 0 && (o.hierarchyLevels = t.hierarchyLevels.map(({ id: d, level: f, name: y }) => ({ id: d, level: f, name: y }))), (a = t.currency) != null && a.id && t.currency.symbol && (o.currency = {
37
- id: t.currency.id,
38
- name: t.currency.name,
39
- symbol: t.currency.symbol
40
- }), o;
41
- }, _ = (r, t, i = {}) => {
42
- var a;
43
- if (t.hidden === !0 && !i.includeHidden || !t.id || !t.type)
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)
44
42
  return null;
45
- const s = p(t.name) ? t.name : { en: "Untitled" }, o = {
43
+ const s = f(e.name) ? e.name : { en: "Untitled" }, n = {
46
44
  datasetId: r,
47
- formulaId: t.id,
48
- type: t.type,
45
+ formulaId: e.id,
46
+ type: e.type,
49
47
  name: s
50
48
  };
51
- return t.description && p(t.description) && (o.description = t.description), t.subtype && (o.subtype = t.subtype), t.format && (o.format = t.format), typeof t.lowestLevel == "number" && (o.lowestLevel = t.lowestLevel), t.expression && (o.expression = t.expression), Array.isArray(t.duration_levels) && t.duration_levels.length > 0 && (o.duration_levels = [...t.duration_levels]), t.duration_format && (o.duration_format = t.duration_format), (a = t.currency) != null && a.id && t.currency.symbol && (o.currency = {
52
- id: t.currency.id,
53
- name: t.currency.name,
54
- symbol: t.currency.symbol
55
- }), o;
56
- }, E = (r, t = {}) => {
57
- if (!(r != null && r.id))
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)
58
56
  return [];
59
57
  const i = [];
60
- return Array.isArray(r.columns) && r.columns.forEach((c) => {
61
- const s = O(r.id, c, t);
58
+ return Array.isArray(r.columns) && r.columns.forEach((d) => {
59
+ const s = I(r.id, d, e);
62
60
  s && i.push(s);
63
- }), Array.isArray(r.formulas) && r.formulas.forEach((c) => {
64
- const s = _(r.id, c, t);
61
+ }), Array.isArray(r.formulas) && r.formulas.forEach((d) => {
62
+ const s = C(r.id, d, e);
65
63
  s && i.push(s);
66
64
  }), i;
67
- }, L = (r, t = {}) => r.map((i) => ({
65
+ }, k = (r, e = {}) => r.map((i) => ({
68
66
  id: i.id,
69
67
  name: i.name,
70
68
  description: i.description,
71
- dataItems: E(i, t)
72
- })), H = async (r, t) => {
69
+ dataItems: D(i, e)
70
+ })), _ = async (r, e) => {
73
71
  if (!Array.isArray(r) || r.length === 0)
74
72
  throw new Error("At least one dataset ID is required");
75
- const { dataBrokerConfig: i } = t;
73
+ const { dataBrokerConfig: i } = e;
76
74
  if (!i)
77
75
  throw new Error("dataBrokerConfig is required");
78
76
  if (!i.authKey || !i.authToken)
@@ -81,84 +79,83 @@ const p = (r) => !!(r && Object.keys(r).length > 0), O = (r, t, i = {}) => {
81
79
  throw new Error("apiUrl is required for DataBroker configuration");
82
80
  if (typeof i.apiUrl != "string")
83
81
  throw new TypeError("apiUrl must be a valid string");
84
- x.configure(i);
82
+ h.configure(i);
85
83
  try {
86
- const c = await x.fetchDatasetsWithColumnsAndFormulas(r);
87
- return L(c);
88
- } catch (c) {
89
- 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;
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;
90
88
  }
91
89
  };
92
- function U(r) {
93
- var m, b, g, w;
94
- const t = [], i = [];
95
- Object.keys(A).forEach((e) => {
96
- e.replace("SlotsConfig", "");
97
- const n = e.replace("SlotsConfig", "").replaceAll(/([A-Z])/g, "-$1").toLowerCase();
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();
98
95
  i.push({
99
- type: n,
100
- slotsConfig: A[e]
96
+ type: o,
97
+ slotsConfig: m[t]
101
98
  });
102
99
  });
103
- const c = i.find(
104
- (e) => e.type === (r == null ? void 0 : r.oldItemType)
100
+ const d = i.find(
101
+ (t) => t.type === r?.oldItemType
105
102
  ), s = i.find(
106
- (e) => e.type === (r == null ? void 0 : r.newItemType)
107
- ), o = structuredClone((s == null ? void 0 : s.slotsConfig) ?? []);
103
+ (t) => t.type === r?.newItemType
104
+ ), n = structuredClone(s?.slotsConfig ?? []);
108
105
  if (!s)
109
106
  return {
110
- type: (c == null ? void 0 : c.type) ?? "bar-chart",
107
+ type: d?.type ?? "bar-chart",
111
108
  slots: r.slots ?? []
112
109
  };
113
- const a = structuredClone(r.slots ?? []);
114
- for (const e of a) {
115
- const n = c == null ? void 0 : c.slotsConfig.find(
116
- (T) => T.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
117
114
  );
118
- e.type = (n == null ? void 0 : n.type) ?? (e == null ? void 0 : e.type);
115
+ t.type = o?.type ?? t?.type;
119
116
  }
120
- const d = a.filter((e) => e.type === "mixed").sort((e, n) => e.order - n.order), f = o.filter((e) => e.type === "mixed").sort((e, n) => e.order - n.order), y = a.filter((e) => e.type === "numeric").sort((e, n) => e.order - n.order), C = o.filter((e) => e.type === "numeric").sort((e, n) => e.order - n.order), l = [];
121
- for (const e of y)
122
- for (const n of e.content)
123
- n.key = "old-measure-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), l.push(n);
124
- for (const e of d)
125
- for (const n of e.content)
126
- n.type === "numeric" && (n.key = "old-mixed-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), l.push(n));
127
- const k = [...C, ...f].sort(
128
- (e, n) => o.indexOf(e) - o.indexOf(n)
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)
129
126
  );
130
- for (const e of l)
131
- for (const n of k)
132
- t.includes(e.key) || (n.content = (n == null ? void 0 : n.content) ?? [], (((m = n == null ? void 0 : n.content) == null ? void 0 : m.length) === 0 || ((b = n == null ? void 0 : n.content) == null ? void 0 : b.length) > 0 && (n == null ? void 0 : n.canAcceptMultipleDataItems) === !0) && (n.content.push(e), t.push(e.key)));
133
- const v = a.filter((e) => e.type === "categorical").sort((e, n) => e.order - n.order), D = o.filter((e) => e.type === "categorical").sort((e, n) => e.order - n.order), h = [];
134
- for (const e of v)
135
- for (const n of e.content)
136
- n.key = "old-dimension-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), h.push(n);
137
- for (const e of d)
138
- for (const n of e.content)
139
- n.type !== "numeric" && (n.key = "old-mixed-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), h.push(n));
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));
140
137
  const S = [
141
- ...D,
142
- ...f
143
- ].sort((e, n) => o.indexOf(e) - o.indexOf(n));
144
- for (const e of h)
145
- if (!t.includes(e.key))
146
- for (const n of S)
147
- n && !t.includes(e.key) && (n.content = (n == null ? void 0 : n.content) ?? [], (((g = n == null ? void 0 : n.content) == null ? void 0 : g.length) === 0 || ((w = n == null ? void 0 : n.content) == null ? void 0 : w.length) > 0 && (n == null ? void 0 : n.canAcceptMultipleDataItems) === !0) && (n.content.push(e), t.push(e.key)));
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)));
148
145
  let u = { ...r.options };
149
- return s.setInitialOptions && (u = s == null ? void 0 : s.setInitialOptions({ ...u })), {
146
+ return s.setInitialOptions && (u = s?.setInitialOptions({ ...u })), {
150
147
  type: s.type ?? "bar-chart",
151
- slots: o.map((e) => ({ name: e.name, content: e.content ?? [] })) ?? [],
148
+ slots: n.map((t) => ({ name: t.name, content: t.content ?? [] })) ?? [],
152
149
  options: u ?? { ...r.options }
153
150
  };
154
151
  }
155
152
  export {
156
- L as convertDatasetsToDraggableItems,
157
- j as decomposeNumericFormat,
158
- N as formatter,
159
- $ as getTheme,
160
- H as loadDraggableItemsForDatasets,
161
- W as localize,
162
- U as switchItem,
163
- G 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
164
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
  };
@@ -0,0 +1,51 @@
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 s=require("@lit/localize"),d=require("@luzmo/icons");require("@luzmo/lucero/icon");require("@luzmo/lucero/tooltip");const n=require("lit"),m=require("lit/decorators.js"),v=require("../set-locale-BRRalqne.cjs"),z=':host{box-sizing:border-box;display:block;width:min-content}:host luzmo-icon{display:flex}:host .viz-item-menu{display:flex;flex-direction:column;align-items:center;gap:var(--luzmo-viz-item-menu-gap, var(--viz-item-menu-gap));font-size:var(--luzmo-viz-item-menu-font-size, var(--viz-item-menu-font-size));width:min-content}:host .viz-item-menu .viz-item-menu-top-section{display:flex;flex-direction:column;gap:var(--luzmo-viz-item-menu-button-edit-gap, var(--viz-item-menu-button-edit-gap))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button{padding:var(--luzmo-viz-item-menu-button-edit-padding, var(--viz-item-menu-button-edit-padding));background-color:var(--luzmo-viz-item-menu-button-edit-background, var(--viz-item-menu-button-edit-background))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:first-of-type{border-top-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-top-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:last-of-type{border-bottom-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-bottom-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:hover,:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button[selected]{background-color:var(--luzmo-viz-item-menu-button-edit-background-hover, var(--viz-item-menu-button-edit-background-hover))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:active{background-color:var(--luzmo-viz-item-menu-button-edit-background-active, var(--viz-item-menu-button-edit-background-active))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button luzmo-icon{color:var(--luzmo-viz-item-menu-button-edit-icon-color, var(--viz-item-menu-button-edit-icon-color))}:host .viz-item-menu .viz-item-menu-button{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;transition:var(--luzmo-viz-item-menu-transition, var(--viz-item-menu-transition))}:host .viz-item-menu .viz-item-menu-button-delete{padding:var(--luzmo-viz-item-menu-delete-padding, var(--viz-item-menu-delete-padding));border-radius:var(--luzmo-viz-item-menu-delete-border-radius, var(--viz-item-menu-delete-border-radius));background-color:var(--luzmo-viz-item-menu-delete-background, var(--viz-item-menu-delete-background));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-button-delete:hover,:host .viz-item-menu .viz-item-menu-button-delete[selected]{background-color:var(--luzmo-viz-item-menu-delete-background-hover, var(--viz-item-menu-delete-background-hover))}:host .viz-item-menu .viz-item-menu-button-delete:hover luzmo-icon,:host .viz-item-menu .viz-item-menu-button-delete[selected] luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color-hover, var(--viz-item-menu-delete-icon-color-hover))}:host .viz-item-menu .viz-item-menu-button-delete:active{background-color:var(--luzmo-viz-item-menu-delete-background-active, var(--viz-item-menu-delete-background-active))}:host .viz-item-menu .viz-item-menu-button-delete:active luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color-hover, var(--viz-item-menu-delete-icon-color-hover))}:host .viz-item-menu .viz-item-menu-button-delete luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color, var(--viz-item-menu-delete-icon-color))}:host .viz-item-menu luzmo-tooltip{--tooltip-font-family: var( --luzmo-viz-item-menu-tooltip-font-family, var(--viz-item-menu-tooltip-font-family) );font-family:var(--luzmo-viz-item-menu-tooltip-font-family, var(--viz-item-menu-tooltip-font-family))}:host{--viz-item-menu-gap: var(--luzmo-spacing-3, .375rem);--viz-item-menu-button-edit-gap: 0;--viz-item-menu-button-edit-padding: var(--luzmo-spacing-3, .125rem);--viz-item-menu-button-edit-border-radius: var(--luzmo-border-radius, .25rem);--viz-item-menu-button-edit-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--viz-item-menu-button-edit-background-hover: var(--secondary, var(--luzmo-primary));--viz-item-menu-button-edit-background-active: var(--secondary, var(--luzmo-primary));--viz-item-menu-button-edit-icon-color: var(--luzmo-primary-inverse-color, white);--viz-item-menu-delete-padding: var(--luzmo-spacing-3, .125rem);--viz-item-menu-delete-border-radius: var(--luzmo-border-radius, .25rem);--viz-item-menu-delete-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--viz-item-menu-delete-background-hover: var(--luzmo-negative-color, rgb(222, 55, 55));--viz-item-menu-delete-background-active: var(--luzmo-negative-color, rgb(222, 55, 55));--viz-item-menu-delete-icon-color: var(--luzmo-primary-inverse-color, white);--viz-item-menu-delete-icon-color-hover: var(--luzmo-primary-inverse-color, white);--viz-item-menu-transition: all var(--luzmo-animation-duration, .2s) ease;--viz-item-menu-font-size: var(--luzmo-font-size-m, .875rem);--viz-item-menu-box-shadow: 0px 4px 4px 0px var(--Boxshadow, rgba(var(--luzmo-border-color-rgb), .2));--viz-item-menu-tooltip-font-family: var(--luzmo-font-family, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif)}';var c=Object.defineProperty,b=Object.getOwnPropertyDescriptor,u=(r,e,t,i)=>{for(var o=i>1?void 0:i?b(e,t):e,l=r.length-1,a;l>=0;l--)(a=r[l])&&(o=(i?a(e,t,o):a(o))||o);return i&&o&&c(e,t,o),o};exports.LuzmoVizItemMenu=class extends n.LitElement{constructor(){super(...arguments),this.vizItemId="",this.hiddenButtons=[],this.language="en",this.selectedButton=null,this.menuButtonConfigs={edit:{icon:d.luzmoEdit,label:"Edit",eventName:"edit",type:"edit",cssClass:"viz-item-menu-button viz-item-menu-button-edit",dataE2e:"viz-item-menu-button-edit",onHover:()=>this._handleHoverOverEdit()},clone:{icon:d.luzmoClone,label:"Clone",eventName:"clone",type:"clone",cssClass:"viz-item-menu-button viz-item-menu-button-clone",dataE2e:"viz-item-menu-button-clone"},delete:{icon:d.luzmoTrashOutline,label:"Delete",eventName:"delete",type:"delete",cssClass:"viz-item-menu-button viz-item-menu-button-delete",dataE2e:"viz-item-menu-button-delete"}}}get hasTopSectionButtons(){const e=this._shouldShowButton("edit"),t=this._shouldShowButton("clone");return e||t}_shouldShowButton(e){return!this.hiddenButtons?.includes(e)}willUpdate(e){e.has("language")&&this.language!==v.getLocale()&&([...v.targetLocales].includes(this.language??"en")||this.language==="en")&&v.setLocale(this.language)}_handleSelectedToggle(e){e==="edit"&&(this.selectedButton=this.selectedButton===e?null:e,this._emitSelectedChanged())}_emitSelectedChanged(){this.dispatchEvent(new CustomEvent("selected-changed",{bubbles:!0,composed:!0,detail:{selectedButton:this.selectedButton}}))}_handleMenuButtonClick(e){this._handleSelectedToggle(e.type),this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0,detail:{action:e.eventName,type:e.type,id:this.vizItemId}}))}_createMenuButtonClickHandler(e){return()=>this._handleMenuButtonClick(e)}_handleHoverOverEdit(){this.dispatchEvent(new CustomEvent("edit-button-hovered",{bubbles:!0,composed:!0}))}_renderMenuButton(e){const t=this.selectedButton===e.type,i=s.msg(e.label,{desc:`Viz item menu ${e.type} tooltip`});return n.html`
21
+ <div
22
+ class=${e.cssClass}
23
+ data-e2e=${e.dataE2e||""}
24
+ data-menu-button=${e.type}
25
+ role="button"
26
+ tabindex="0"
27
+ aria-label=${i}
28
+ ?selected=${t}
29
+ @mouseenter=${e.onHover}
30
+ @click=${this._createMenuButtonClickHandler(e)}
31
+ >
32
+ <luzmo-icon .icon=${e.icon} size="s"></luzmo-icon>
33
+ <luzmo-tooltip
34
+ self-managed
35
+ placement="right"
36
+ fallback-placements="left"
37
+ >
38
+ ${i}
39
+ </luzmo-tooltip>
40
+ </div>
41
+ `}_renderTopSection(){return this.hasTopSectionButtons?n.html`
42
+ <div class="viz-item-menu-top-section">
43
+ ${this._shouldShowButton("edit")?this._renderMenuButton(this.menuButtonConfigs.edit):""}
44
+ ${this._shouldShowButton("clone")?this._renderMenuButton(this.menuButtonConfigs.clone):""}
45
+ </div>
46
+ `:n.html``}_renderBottomSection(){return this._shouldShowButton("delete")?this._renderMenuButton(this.menuButtonConfigs.delete):n.html``}render(){return n.html`
47
+ <div class="viz-item-menu">
48
+ ${this._renderTopSection()}
49
+ ${this._renderBottomSection()}
50
+ </div>
51
+ `}};exports.LuzmoVizItemMenu.styles=n.unsafeCSS(z);exports.LuzmoVizItemMenu.tagName="luzmo-viz-item-menu";u([m.property({type:String,reflect:!0,attribute:"viz-item-id"})],exports.LuzmoVizItemMenu.prototype,"vizItemId",2);u([m.property({type:Array,attribute:!1})],exports.LuzmoVizItemMenu.prototype,"hiddenButtons",2);u([m.property({type:String,reflect:!0})],exports.LuzmoVizItemMenu.prototype,"language",2);u([m.property({type:String,reflect:!0,attribute:"selected-button"})],exports.LuzmoVizItemMenu.prototype,"selectedButton",2);exports.LuzmoVizItemMenu=u([s.localized()],exports.LuzmoVizItemMenu);customElements.get("luzmo-viz-item-menu")||customElements.define("luzmo-viz-item-menu",exports.LuzmoVizItemMenu);
@@ -0,0 +1,8 @@
1
+ import { LuzmoVizItemMenu } from './viz-item-menu';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-viz-item-menu': LuzmoVizItemMenu;
5
+ }
6
+ }
7
+ export { LuzmoVizItemMenu } from './viz-item-menu';
8
+ export type { VizItemMenuButton } from '../../types';