@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
@@ -1,20 +0,0 @@
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("./helpers-DXQwEH1P.cjs"),d=({slots:e})=>{var n,t,i,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((t=(n=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:n.content)==null?void 0:t.length)>0||((r=(i=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:i.content)==null?void 0:r.length)>1:!1},u=({slots:e})=>{var n,t,i,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?!(((t=(n=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:n.content)==null?void 0:t.length)>0)&&((r=(i=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:i.content)==null?void 0:r.length)<=1:!0},o=({slots:e})=>{var n,t,i;return Array.isArray(e)&&((i=(t=(n=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="x-axis"))==null?void 0:n.content)==null?void 0:t[0])==null?void 0:i.type)==="datetime"},y=({options:e,slots:n})=>{var t,i,r,a;return Array.isArray(n)&&((r=(i=(t=n==null?void 0:n.find(c=>(c==null?void 0:c.name)==="x-axis"))==null?void 0:t.content)==null?void 0:i[0])==null?void 0:r.type)==="datetime"&&((a=e==null?void 0:e.missingValue)==null?void 0:a.type)==="manual"},m=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{label:"Title",type:"switch",default:!0}},{key:"display.legend",control:{label:"Legend",type:"switch",default:!0},visibleIf:d},{type:"divider"},{key:"interpolation",control:{label:"Interpolation",type:"picker",default:"linear",enum:["linear","step-before","step-after","monotone"]}},{key:"missingValue.type",control:{label:"Fill missing values",type:"picker",default:"no",enum:["no","break","manual"]},visibleIf:o},{key:"missingValue.value",control:{label:"Value",type:"number-field",default:"no",min:1},visibleIf:y},{key:"color",control:{label:"Line color",type:"color-picker",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:n})=>l.getThemeMainColorResetLabel(e,n,"color"),extraLabelHasClickAction:({options:e,theme:n})=>l.getThemeMainColorExtraLabelHasClickAction(e,n,"color"),extraLabelClickAction:({options:e,theme:n})=>l.getThemeMainColorExtraLabelClickAction(e,n,"color")},visibleIf:u},{key:"lines.gradient",control:{label:"Line gradient",type:"switch",default:!0}},{key:"lines.strokeWidth",control:{label:"Stroke width",type:"slider",default:2,min:1,max:7,step:1}}]},{key:"markers",type:"group",open:!1,children:[{key:"markers.enabled",control:{label:"Enabled",type:"switch",default:!1}},{key:"markers.size",control:{type:"slider",label:"Size",default:4,min:2,max:10,step:1},visibleIf:({options:e})=>{var n;return(n=e==null?void 0:e.markers)==null?void 0:n.enabled}}]},{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:d}];exports.default=m;
@@ -1,20 +0,0 @@
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 r=require("./helpers-DXQwEH1P.cjs"),n=({slots:e})=>{var l,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((a=(l=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="measure"))==null?void 0:l.content)==null?void 0:a.length)>1:!1},o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"valueCells.alternate",control:{type:"switch",label:"Alternate row coloring",default:!0}},{key:"isExpandable",control:{type:"switch",label:"Expand/Collapse",default:!0}},{key:"expandStyle",control:{type:"picker",label:"Expand Style",default:"indent",enum:["indent","normal"]},visibleIf:({options:e})=>(e==null?void 0:e.isExpandable)!==!1}]},{key:"headers",type:"group",open:!0,children:[{key:"headers.background",control:{type:"color-picker",label:"Background",default:({theme:e})=>r.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>r.getThemeMainColorResetLabel(e,l,"headers.background"),extraLabelHasClickAction:({options:e,theme:l})=>r.getThemeMainColorExtraLabelHasClickAction(e,l,"headers.background"),extraLabelClickAction:({options:e,theme:l})=>r.getThemeMainColorExtraLabelClickAction(e,l,"headers.background")}},{key:"columnHeaders.align",control:{type:"action-button-group",label:"Column header",default:["left"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}},{key:"rowHeaders.align",control:{type:"action-button-group",label:"Row header",default:["left"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}},{key:"rowHeaders.sticky",control:{type:"switch",label:"Sticky header columns",default:!0}},{key:"wrapText",control:{type:"switch",label:"Wrap text",default:!1}},{key:"measureLabelsAxis",control:{type:"radio-button-group",label:"Show measures on",default:"columns",enum:["rows","columns"]},visibleIf:n}]},{key:"tableBorders",type:"group",label:"Table borders",open:!0,children:[{key:"tableBorders.type",control:{type:"action-button-group",label:"Type",default:["none"],values:{none:{iconName:"ban",label:"no border"},all:{iconName:"table",label:"row and column borders"},rows:{iconName:"rows",label:"rows border"},columns:{iconName:"columns",label:"columns border"}},selects:"single"}},{key:"tableBorders.color",control:{type:"color-picker",label:"Color",default:({theme:e})=>r.getThemeBorderColor(e),extraLabel:({options:e,theme:l})=>r.getThemeBorderColorResetLabel(e,l,"tableBorders.color"),extraLabelHasClickAction:({options:e,theme:l})=>r.getThemeBorderColorExtraLabelHasClickAction(e,l,"tableBorders.color"),extraLabelClickAction:({options:e,theme:l})=>r.getThemeBorderColorExtraLabelClickAction(e,l,"tableBorders.color")},visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.tableBorders)==null?void 0:l.type)&&((a=e==null?void 0:e.tableBorders)==null?void 0:a.type)!=="none"}},{key:"tableBorders.width",control:{type:"number-field",label:"Width",default:1,min:1,max:20,step:1,unit:"px"},visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.tableBorders)==null?void 0:l.type)&&((a=e==null?void 0:e.tableBorders)==null?void 0:a.type)!=="none"}}]},{key:"values",type:"group",open:!0,children:[{key:"valueCells.align",control:{type:"action-button-group",label:"Align",default:["left"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}}]}];exports.default=o;
@@ -1,20 +0,0 @@
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("./helpers-DXQwEH1P.cjs"),i=[{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}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:({theme:e})=>{var r;return(r=e==null?void 0:e.itemSpecific)==null?void 0:r.rounding},min:0,max:20,step:1,extraLabel:({options:e,theme:r})=>{var t;if(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var t;return!(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)!="number"||typeof(e==null?void 0:e.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{const r={...e};return delete r.roundedCorners,{value:null,options:r}}}},{key:"internalPadding",control:{type:"slider",label:"Internal padding",default:({theme:e})=>{var r;return(r=e==null?void 0:e.itemSpecific)==null?void 0:r.padding},min:0,max:20,step:1,extraLabel:({options:e,theme:r})=>{var t;if(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.padding)=="number")return typeof(e==null?void 0:e.internalPadding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var t;return!(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.padding)!="number"||typeof(e==null?void 0:e.internalPadding)!="number")},extraLabelClickAction:({options:e})=>{const r={...e};return delete r.internalPadding,{value:null,options:r}}}}]},{key:"order",type:"group",label:"Order & Limit",open:!0,children:[{key:"sort.by",control:{type:"picker",label:"Ordering",default:"category",enum:["category","leftbar","rightbar","measure"]}},{key:"sort.direction",control:{type:"picker",default:"desc",enum:["asc","desc"]}}]},{key:"axes",type:"group",open:!0,children:[{key:"axis.x.color",control:{type:"color-picker",label:"Measure axis color",default:({theme:e})=>l.getThemeAxisColor(e),extraLabel:({options:e,theme:r})=>l.getThemeAxisColorResetLabel(e,r,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:r})=>l.getThemeAxisColorExtraLabelHasClickAction(e,r,"axis.x.color"),extraLabelClickAction:({options:e,theme:r})=>l.getThemeAxisColorExtraLabelClickAction(e,r,"axis.x.color")}},{key:"measureAxisTicks",type:"group",label:"Measure axis ticks",collapsible:!0,open:!0,children:[{key:"axis.x.ticksDensity",control:{type:"picker",label:"Density",default:"normal",enum:["compact","normal","sparse"]}},{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]},{key:"axis.y.color",control:{type:"color-picker",label:"Category axis color",default:({theme:e})=>l.getThemeAxisColor(e),extraLabel:({options:e,theme:r})=>l.getThemeAxisColorResetLabel(e,r,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:r})=>l.getThemeAxisColorExtraLabelHasClickAction(e,r,"axis.y.color"),extraLabelClickAction:({options:e,theme:r})=>l.getThemeAxisColorExtraLabelClickAction(e,r,"axis.y.color")}}]},{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"]}}]}];exports.default=i;
@@ -1,20 +0,0 @@
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 i=require("./helpers-DXQwEH1P.cjs"),a=({slots:e})=>{var t,l;return Array.isArray(e)&&((l=(t=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="color"))==null?void 0:t.content)==null?void 0:l.length)>0},o=({slots:e})=>{var t,l;return Array.isArray(e)&&(e==null?void 0:e.length)>0?!(((l=(t=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="color"))==null?void 0:t.content)==null?void 0:l.length)>0):!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:a}]},{key:"radar",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>i.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>i.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>i.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:o},{key:"fillOpacity",control:{type:"slider",label:"Fill opacity",default:.05,min:0,max:.7,step:.01}},{key:"interpolation",control:{type:"picker",label:"Interpolation",default:"linear",enum:["linear","rounded"]}},{key:"display.points",control:{type:"switch",label:"Show points",default:!1}},{key:"pointSize",control:{type:"slider",label:"Point size",default:3,min:2,max:7,step:1},visibleIf:({options:e})=>{var t;return(t=e==null?void 0:e.display)==null?void 0:t.points}}]},{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:({options:e,slots:t})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1&&a({slots:t})}}];exports.default=n;
@@ -1,20 +0,0 @@
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 n=require("./color-palettes-DhNHcib8.cjs"),h=require("./index-DhDgy1sp.cjs"),C=require("./helpers-DXQwEH1P.cjs"),u=require("./color-range-utils-C5yXW7ZC.cjs"),k=({slots:e})=>{var a,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(a=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="legend"))==null?void 0:a.content)==null?void 0:r.length)===0:!0},m=({slots:e})=>{var a;if(Array.isArray(e)&&(e==null?void 0:e.length)>0){const r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="legend");if(r){const l=r==null?void 0:r.content;if(l)return((a=l==null?void 0:l.filter(c=>(c==null?void 0:c.type)==="numeric"))==null?void 0:a.length)>0}}return!1},R=[{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}},{key:"lineWeight",control:{type:"slider",label:"Line weight",default:4,min:1,max:8,step: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==null?void 0:e.name)||"Basic",toValue:e=>h.mapVectorTileProviders[e]??{}}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"color",control:{type:"color-picker",label:"Route color",default:({theme:e})=>C.getThemeMainColor(e),extraLabel:({options:e,theme:a})=>C.getThemeMainColorResetLabel(e,a,"color"),extraLabelHasClickAction:({options:e,theme:a})=>C.getThemeMainColorExtraLabelHasClickAction(e,a,"color"),extraLabelClickAction:({options:e,theme:a})=>C.getThemeMainColorExtraLabelClickAction(e,a,"color")},visibleIf:k},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>{var l;if((e==null?void 0:e.colorsClass)==="manual")return"manual";const a=n.getColorMaps();return((l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type)??"sequential"},toOptions:({options:e,value:a})=>{var f,b,d;const r=(e==null?void 0:e.colorsClass)??"PuBu",l=(e==null?void 0:e.numberClasses)??5,c=u.toRangesWithValue((f=e==null?void 0:e.manualValues)==null?void 0:f.ranges),t=r==="manual"?"manual":r;let s;if(a==="manual")s="manual";else{const y=n.getColorMaps(),V=(b=y==null?void 0:y[e==null?void 0:e.colorsClass])==null?void 0:b.type;a!==V&&(s=n.getColorMapKeys(a??"sequential")[0])}const g={...e,colorsClass:s};if(a==="manual"||(e==null?void 0:e.classification)==="manual"){const y=u.calculateManualRanges(l,a==="manual"?t:s,c);g.manualValues={...g.manualValues,ranges:u.toRangesWithVal(y)}}else(d=g==null?void 0:g.manualValues)==null||delete d.ranges;return g}},visibleIf:m},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{var l;const a=n.getColorMaps(),r=(l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type;return n.getColorMapKeys(r??"sequential")[0]},enum:({options:e})=>{var l;const a=n.getColorMaps(),r=(l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type;return n.getColorMapKeys(r??"sequential")},toOptions:({options:e,value:a})=>{var l,c;const r={...e,colorsClass:a};if((e==null?void 0:e.classification)==="manual"){const t=(l=n.getColorMaps()[a])==null?void 0:l[`colors${(e==null?void 0:e.numberClasses)??5}`];r.manualValues={...r.manualValues,ranges:(c=e==null?void 0:e.manualValues)==null?void 0:c.ranges.map(s=>({...s,color:t==null?void 0:t[s.val]}))}}return r}},visibleIf:({options:e,slots:a})=>m({slots:a})&&(e==null?void 0:e.colorsClass)!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!0,noAlphaChannel:!0,label:"Manual range colors",hideLabel:!0},calculateValue:({options:e})=>{var a;return u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((a=e==null?void 0:e.manualValues)==null?void 0:a.ranges))},toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:u.toRangesWithVal(a)}}),visibleIf:({options:e,slots:a})=>m({slots:a})&&(e==null?void 0:e.colorsClass)==="manual"}]},{key:"classification",type:"group",open:!0,children:[{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>(e==null?void 0:e.toString())??"5",toOptions:({options:e,value:a})=>{var l;a=Number.parseInt(a,10)??5;const r={...e,numberClasses:a};if((e==null?void 0:e.classification)==="manual"||(e==null?void 0:e.colorsClass)==="manual"){const c=u.calculateManualRanges(a,e==null?void 0:e.colorsClass,u.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges));r.manualValues={...r.manualValues,ranges:u.toRangesWithVal(c)}}return r}},visibleIf:m},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:a})=>{var l,c;const r={...e,classification:a};if(a==="manual"||(e==null?void 0:e.colorsClass)==="manual"){const t=u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges));r.manualValues={...r.manualValues,ranges:u.toRangesWithVal(t)}}else(c=r==null?void 0:r.manualValues)==null||delete c.ranges;return r}},visibleIf:m},{key:"manualValues.rangesValues",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>{var a;return u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((a=e==null?void 0:e.manualValues)==null?void 0:a.ranges))},toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:u.toRangesWithVal(a)}})},visibleIf:({options:e,slots:a})=>m({slots:a})&&(e==null?void 0:e.classification)==="manual"}],visibleIf:m}];exports.default=R;
@@ -1,20 +0,0 @@
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 i=require("./helpers-DXQwEH1P.cjs"),t=({slots:e})=>{var l,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(l=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="color"))==null?void 0:l.content)==null?void 0:r.length)>0:!1},d=({slots:e})=>{var l,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(l=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="color"))==null?void 0:l.content)==null?void 0:r.length)===0:!0},y=[{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:t},{key:"color",control:{type:"color-picker",label:"Color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>i.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelClickAction(e,l,"color")},visibleIf:d}]},{key:"axes",type:"group",open:!1,children:[{key:"axis.x.color",control:{type:"color-picker",label:"X-axis color",default:({theme:e})=>i.getThemeAxisColor(e),extraLabel:({options:e,theme:l})=>i.getThemeAxisColorResetLabel(e,l,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeAxisColorExtraLabelHasClickAction(e,l,"axis.x.color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeAxisColorExtraLabelClickAction(e,l,"axis.x.color")}},{key:"xAxisLabels",type:"group",label:"X-axis label",collapsible:!0,open:!0,children:[{key:"axislabels.x.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.x.position",control:{type:"picker",label:"Position",default:"center",enum:["left","center","right"]},visibleIf:({options:e})=>{var l,r;return((r=(l=e==null?void 0:e.axislabels)==null?void 0:l.x)==null?void 0:r.enabled)===!0}}]},{key:"xAxisTicks",type:"group",label:"X-axis ticks",collapsible:!0,open:!0,children:[{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide","gridlines"],toOptions:({options:e,value:l})=>{var r,a;return{...e,axis:{...e==null?void 0:e.axis,x:{...(r=e==null?void 0:e.axis)==null?void 0:r.x,ticksMode:l}},grid:{...e==null?void 0:e.grid,x:{...(a=e==null?void 0:e.grid)==null?void 0:a.x,enabled:l==="gridlines"}}}}}},{key:"grid.x.style",control:{type:"picker",label:"Gridline style",default:"solid",enum:["solid","dotted","dashed"]},visibleIf:({options:e})=>{var l,r,a,c;return((r=(l=e==null?void 0:e.axis)==null?void 0:l.x)==null?void 0:r.ticksMode)==="gridlines"&&((c=(a=e==null?void 0:e.grid)==null?void 0:a.x)==null?void 0:c.enabled)===!0}},{key:"grid.x.opacity",control:{type:"slider",label:"Gridline opacity",default:.3,min:.1,max:1,step:.1},visibleIf:({options:e})=>{var l,r,a,c;return((r=(l=e==null?void 0:e.axis)==null?void 0:l.x)==null?void 0:r.ticksMode)==="gridlines"&&((c=(a=e==null?void 0:e.grid)==null?void 0:a.x)==null?void 0:c.enabled)===!0}}]},{type:"divider"},{key:"axis.y.color",control:{type:"color-picker",label:"Y-axis color",default:({theme:e})=>i.getThemeAxisColor(e),extraLabel:({options:e,theme:l})=>i.getThemeAxisColorResetLabel(e,l,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeAxisColorExtraLabelHasClickAction(e,l,"axis.y.color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeBorderColorExtraLabelClickAction(e,l,"axis.y.color")}},{key:"yAxisLabels",type:"group",label:"Y-axis label",collapsible:!0,open:!0,children:[{key:"axislabels.y.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.y.position",control:{type:"picker",label:"Position",default:"middle",enum:["top","middle","bottom"]},visibleIf:({options:e})=>{var l,r;return((r=(l=e==null?void 0:e.axislabels)==null?void 0:l.y)==null?void 0:r.enabled)===!0}}]},{key:"yAxisTicks",type:"group",label:"Y-axis ticks",collapsible:!0,open:!0,children:[{key:"axis.y.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide","gridlines"],toOptions:({options:e,value:l})=>{var r,a;return{...e,axis:{...e==null?void 0:e.axis,y:{...(r=e==null?void 0:e.axis)==null?void 0:r.y,ticksMode:l}},grid:{...e==null?void 0:e.grid,y:{...(a=e==null?void 0:e.grid)==null?void 0:a.y,enabled:l==="gridlines"}}}}}},{key:"grid.y.style",control:{type:"picker",label:"Gridline style",default:"solid",enum:["solid","dotted","dashed"]},visibleIf:({options:e})=>{var l,r,a,c;return((r=(l=e==null?void 0:e.axis)==null?void 0:l.y)==null?void 0:r.ticksMode)==="gridlines"&&((c=(a=e==null?void 0:e.grid)==null?void 0:a.y)==null?void 0:c.enabled)===!0}},{key:"grid.y.opacity",control:{type:"slider",label:"Gridline opacity",default:.3,min:.1,max:1,step:.1},visibleIf:({options:e})=>{var l,r,a,c;return((r=(l=e==null?void 0:e.axis)==null?void 0:l.y)==null?void 0:r.ticksMode)==="gridlines"&&((c=(a=e==null?void 0:e.grid)==null?void 0:a.y)==null?void 0:c.enabled)===!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:t}];exports.default=y;
@@ -1,20 +0,0 @@
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 t=require("./helpers-DXQwEH1P.cjs"),a=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.search",control:{type:"switch",label:"Search",default:!0}},{key:"multiselect",control:{type:"switch",label:"Multiselect",default:!1}},{key:"applyFiltersWithButton",control:{type:"switch",label:"Filter with Apply button",default:!1},visibleIf:({options:e})=>(e==null?void 0:e.multiselect)!==!1},{key:"display.all",control:{type:"switch",label:"Show 'select all'",default:!0}},{key:"mode",control:{type:"switch",label:"Display as buttons",default:!1,parseValue:e=>e==="button",toValue:e=>e?"button":"default"}},{key:"color",control:{type:"color-picker",label:"Color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"color")},visibleIf:({options:e})=>(e==null?void 0:e.mode)==="button"},{key:"sort.direction",control:{type:"picker",label:"Ordering",default:"asc",enum:["asc","desc"]}}]},{key:"layout",type:"group",open:!0,children:[{key:"layout.alignment",control:{type:"picker",label:"Alignment",default:"vertical",enum:["vertical","horizontal","table"]}},{key:"table.rowheight",control:{type:"number-field",label:"Row height",default:24,min:0,max:999,step:1},visibleIf:({options:e})=>{var l;return(e==null?void 0:e.mode)!=="button"&&((l=e==null?void 0:e.layout)==null?void 0:l.alignment)!=="horizontal"}},{key:"table.columns",control:{type:"number-field",label:"Number of columns",default:2,min:1,max:10},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.layout)==null?void 0:l.alignment)==="table"}},{key:"horizontal.width",control:{type:"number-field",label:"Width",default:175,min:0,max:999,step:1},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.layout)==null?void 0:l.alignment)==="horizontal"}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{label:"Padding left",type:"number-field",default:16,min:0,max:100,step:1}},{key:"padding.right",control:{label:"Padding right",type:"number-field",default:16,min:0,max:100,step:1}}]}];exports.default=a;
@@ -1,20 +0,0 @@
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 c=require("./helpers-DXQwEH1P.cjs"),k=e=>{var a,l,r,u;return((l=(a=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="target"))==null?void 0:a.content)==null?void 0:l.length)===0&&((u=(r=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="measure"))==null?void 0:r.content)==null?void 0:u.length)>0},b=[{color:"#ff0000",value:0},{color:"#ffa500",value:25},{color:"#ffff00",value:50},{color:"#008000",value:75},{color:"#006400",value:100}],f=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.meterValue",control:{type:"switch",label:"Value",default:!0}},{key:"display.meterLabel",control:{type:"switch",label:"Label",default:!0}},{key:"display.ticks",control:{type:"switch",label:"Ticks",default:!0}},{key:"degrees",control:{type:"slider",label:"Arc size",default:230,min:180,max:360,step:1}},{key:"arcWidth",control:{type:"slider",label:"Gauge width",default:.08,min:.02,max:.7,step:.01}},{type:"divider"},{key:"manualValues.display",control:{type:"picker",label:"Ticks display",default:"absolute",enum:["absolute","percentage"]}},{key:"manualValues.mode",control:{type:"picker",label:"Range type",default:"relative",enum:["relative","absolute"],toOptions:({options:e,value:a})=>{var u,t,m,d,i,y;const l=((u=e==null?void 0:e.manualValues)==null?void 0:u.mode)??"relative",r={...e,manualValues:{...e.manualValues,mode:a}};return a==="absolute"&&l==="relative"&&((t=r.manualValues)!=null&&t.ranges)&&((m=r.manualValues)!=null&&m.target)?r.manualValues.ranges=r.manualValues.ranges.map(n=>({...n,val:n.val*r.manualValues.target/100})):a==="relative"&&l==="absolute"&&((i=(d=r.manualValues)==null?void 0:d.ranges)!=null&&i.length)&&(r.manualValues.target=(y=r.manualValues.ranges.at(-1))==null?void 0:y.val,r.manualValues.ranges=r.manualValues.ranges.map(n=>({...n,value:n.val*100/r.manualValues.target}))),r}}},{key:"manualValues.target",control:{type:"number-field",label:"Manual target",placeholder:"Target value",minWidthInputField:"150px"},visibleIf:({options:e,slots:a})=>{var l;return((l=e==null?void 0:e.manualValues)==null?void 0:l.mode)!=="absolute"&&k(a)}},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!0,minimumRangeSize:2,percentage:({options:e})=>{var a;return((a=e==null?void 0:e.manualValues)==null?void 0:a.mode)!=="absolute"},noAlphaChannel:!0,hideLabel:!0,label:"Color ranges",default:()=>structuredClone(b),parseValue:e=>e==null?void 0:e.map(a=>({color:a==null?void 0:a.color,value:(a==null?void 0:a.value)??(a==null?void 0:a.val)})),toValue:e=>e==null?void 0:e.map(a=>({color:a==null?void 0:a.color,val:a==null?void 0:a.value}))}}]},{key:"marker",type:"group",open:!1,children:[{key:"marker.type",control:{type:"picker",label:"Marker type",default:"innerBand",enum:["needle","line","inside","outside","centerBand","innerBand"]}},{key:"marker.color",control:{type:"color-picker",label:"Marker color",default:({theme:e})=>c.getThemeAxisColor(e),extraLabel:({options:e,theme:a})=>c.getThemeAxisColorResetLabel(e,a,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:a})=>c.getThemeAxisColorExtraLabelHasClickAction(e,a,"axis.y.color"),extraLabelClickAction:({options:e,theme:a})=>c.getThemeBorderColorExtraLabelClickAction(e,a,"axis.y.color")},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&((l=e==null?void 0:e.marker)==null?void 0:l.type)!=="innerBand"}},{key:"marker.centerBandWidth",control:{type:"slider",label:"Marker width",default:.34,min:.1,max:1,step:.01},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&((l=e==null?void 0:e.marker)==null?void 0:l.type)==="centerBand"}},{key:"marker.lineWidth",control:{type:"slider",label:"Line width",default:2,min:1,max:10,step:1},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&((l=e==null?void 0:e.marker)==null?void 0:l.type)==="line"}},{key:"marker.arrowSize",control:{type:"slider",label:"Arrow size",default:.05,min:.05,max:.2,step:.01},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&["inside","outside"].includes((l=e==null?void 0:e.marker)==null?void 0:l.type)}}]}];exports.default=f;
@@ -1,20 +0,0 @@
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 t=require("./color-palettes-DhNHcib8.cjs"),V=require("./index-DhDgy1sp.cjs"),f=require("./helpers-DXQwEH1P.cjs"),u=require("./color-range-utils-C5yXW7ZC.cjs"),k=({slots:e})=>{var a,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(a=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color"))==null?void 0:a.content)==null?void 0:r.length)===0:!0},C=({slots:e})=>{var a,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(a=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color"))==null?void 0:a.content)==null?void 0:r.length)>0:!1},n=({slots:e})=>{var a;if(Array.isArray(e)&&(e==null?void 0:e.length)>0){const r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color");if(r){const l=r==null?void 0:r.content;if(l)return((a=l==null?void 0:l.filter(c=>(c==null?void 0:c.type)==="numeric"))==null?void 0:a.length)>0}}return!1},R=[{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:C},{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==null?void 0:e.name)||"Basic",toValue:e=>V.mapVectorTileProviders[e]??{}}}]},{key:"spike",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Spike color",default:({theme:e})=>f.getThemeMainColor(e),extraLabel:({options:e,theme:a})=>f.getThemeMainColorResetLabel(e,a,"color"),extraLabelHasClickAction:({options:e,theme:a})=>f.getThemeMainColorExtraLabelHasClickAction(e,a,"color"),extraLabelClickAction:({options:e,theme:a})=>f.getThemeMainColorExtraLabelClickAction(e,a,"color")},visibleIf:k},{key:"spikeWidth",control:{type:"slider",label:"Width",default:30,min:1,max:100,step:1}},{key:"spikeHeight",control:{type:"slider",label:"Height",default:150,min:1,max:350,step:1}},{key:"strokeOpacity",control:{type:"slider",label:"Stroke opacity",default:.9,min:.1,max:1,step:.01}},{key:"fillOpacity",control:{type:"slider",label:"Fill opacity",default:.5,min:.1,max:1,step:.01}}]},{key:"colors",type:"group",open:!0,children:[{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>{var l;if((e==null?void 0:e.colorsClass)==="manual")return"manual";const a=t.getColorMaps();return((l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type)??"sequential"},toOptions:({options:e,value:a})=>{var b,d,i;const r=(e==null?void 0:e.colorsClass)??"PuBu",l=(e==null?void 0:e.numberClasses)??5,c=u.toRangesWithValue((b=e==null?void 0:e.manualValues)==null?void 0:b.ranges),g=r==="manual"?"manual":r;let m;if(a==="manual")m="manual";else{const y=t.getColorMaps(),h=(d=y==null?void 0:y[e==null?void 0:e.colorsClass])==null?void 0:d.type;a!==h&&(m=t.getColorMapKeys(a??"sequential")[0])}const s={...e,colorsClass:m};if(a==="manual"||(e==null?void 0:e.classification)==="manual"){const y=u.calculateManualRanges(l,a==="manual"?g:m,c);s.manualValues={...s.manualValues,ranges:u.toRangesWithVal(y)}}else(i=s==null?void 0:s.manualValues)==null||delete i.ranges;return s}},visibleIf:n},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{var l;const a=t.getColorMaps(),r=(l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type;return t.getColorMapKeys(r??"sequential")[0]},enum:({options:e})=>{var l;const a=t.getColorMaps(),r=(l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type;return t.getColorMapKeys(r??"sequential")},toOptions:({options:e,value:a})=>{var l,c;const r={...e,colorsClass:a};if((e==null?void 0:e.classification)==="manual"){const g=(l=t.getColorMaps()[a])==null?void 0:l[`colors${(e==null?void 0:e.numberClasses)??5}`];r.manualValues={...r.manualValues,ranges:(c=e==null?void 0:e.manualValues)==null?void 0:c.ranges.map(m=>({...m,color:g==null?void 0:g[m.val]}))}}return r}},visibleIf:({options:e,slots:a})=>n({slots:a})&&(e==null?void 0:e.colorsClass)!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!0,noAlphaChannel:!0,label:"Manual range colors",hideLabel:!0},calculateValue:({options:e})=>{var a;return u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((a=e==null?void 0:e.manualValues)==null?void 0:a.ranges))},toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:u.toRangesWithVal(a)}}),visibleIf:({options:e,slots:a})=>n({slots:a})&&(e==null?void 0:e.colorsClass)==="manual"}],visibleIf:n},{key:"classification",type:"group",open:!0,children:[{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>(e==null?void 0:e.toString())??"5",toOptions:({options:e,value:a})=>{var l;a=Number.parseInt(a,10)??5;const r={...e,numberClasses:a};if((e==null?void 0:e.classification)==="manual"||(e==null?void 0:e.colorsClass)==="manual"){const c=u.calculateManualRanges(a,e==null?void 0:e.colorsClass,u.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges));r.manualValues={...r.manualValues,ranges:u.toRangesWithVal(c)}}return r}},visibleIf:n},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:a})=>{var l,c;const r={...e,classification:a};if(a==="manual"||(e==null?void 0:e.colorsClass)==="manual"){const g=u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges));r.manualValues={...r.manualValues,ranges:u.toRangesWithVal(g)}}else(c=r==null?void 0:r.manualValues)==null||delete c.ranges;return r}},visibleIf:n},{key:"manualValues.rangesValues",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>{var a;return u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((a=e==null?void 0:e.manualValues)==null?void 0:a.ranges))},toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:u.toRangesWithVal(a)}})},visibleIf:({options:e,slots:a})=>n({slots:a})&&(e==null?void 0:e.classification)==="manual"}],visibleIf:n},{key:"legend",type:"group",open:!1,children:[{key:"legend.size",control:{type:"action-button-group",label:"Size",default:["M"],values:{S:{buttonText:"S",label:"Small"},M:{buttonText:"M",label:"Medium"},L:{buttonText:"L",label:"Large"}},selects:"single"},visibleIf:({options:e})=>{var a;return((a=e==null?void 0:e.display)==null?void 0:a.legend)!==!1}},{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>{var a;return((a=e==null?void 0:e.display)==null?void 0:a.legend)!==!1}}],visibleIf:C}];exports.default=R;
@@ -1,20 +0,0 @@
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("./index-DhDgy1sp.cjs"),i=require("./helpers-DXQwEH1P.cjs"),l=({slots:e})=>{var t,a;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},n=({slots:e})=>{var t,a;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},c=[{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==null?void 0:e.name)||"Basic",toValue:e=>o.mapVectorTileProviders[e]??{}}}]},{key:"symbol",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Symbol color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>i.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>i.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>i.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:l},{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})=>{var t;return((t=e==null?void 0:e.display)==null?void 0:t.legend)!==!1}}],visibleIf:n}];exports.default=c;
@@ -1,20 +0,0 @@
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 t=require("./helpers-DXQwEH1P.cjs"),n=({slots:e})=>{var r,a;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},i=({slots:e})=>{var r,a;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},o=[{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:n},{key:"display.modeOption",control:{type:"switch",label:"Mode option",default:!1},visibleIf:n},{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:i},{key:"color",control:{type:"color-picker",label:"Area color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:r})=>t.getThemeMainColorResetLabel(e,r,"color"),extraLabelHasClickAction:({options:e,theme:r})=>t.getThemeMainColorExtraLabelHasClickAction(e,r,"color"),extraLabelClickAction:({options:e,theme:r})=>t.getThemeMainColorExtraLabelClickAction(e,r,"color")},visibleIf:({options:e,slots:r})=>{var a;return((a=e==null?void 0:e.categories)==null?void 0:a.colored)===!1&&i({slots:r})}},{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:r})=>{var a;if(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var a;return!(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.rounding)!="number"||typeof(e==null?void 0: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:r})=>{var a;if(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.padding)=="number")return typeof(e==null?void 0:e.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var a;return!(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.padding)!="number"||typeof(e==null?void 0: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:n}];exports.default=o;
@@ -1,51 +0,0 @@
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 g=require("@lit/localize"),l=require("@luzmo/icons");require("@luzmo/lucero/icon");require("@luzmo/lucero/tooltip");const r=require("lit"),n=require("lit/decorators.js"),s=require("../set-locale-BRRalqne.cjs"),c=':host{box-sizing:border-box;display:block;width:100%}:host .widget-menu{display:flex;flex-direction:column;align-items:center;gap:var(--luzmo-widget-menu-gap, var(--widget-menu-gap));font-size:var(--luzmo-widget-menu-font-size, var(--widget-menu-font-size));width:min-content}:host .widget-menu .widget-edit{display:flex;flex-direction:column;gap:var(--luzmo-widget-menu-edit-item-gap, var(--widget-menu-edit-item-gap))}:host .widget-menu .widget-edit-item{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;padding:var(--luzmo-widget-menu-edit-item-padding, var(--widget-menu-edit-item-padding));background-color:var(--luzmo-widget-menu-edit-item-background, var(--widget-menu-edit-item-background));transition:var(--luzmo-widget-menu-transition, var(--widget-menu-transition))}:host .widget-menu .widget-edit-item:first-of-type{border-top-right-radius:var(--luzmo-widget-menu-edit-item-border-radius, var(--widget-menu-edit-item-border-radius));border-top-left-radius:var(--luzmo-widget-menu-edit-item-border-radius, var(--widget-menu-edit-item-border-radius))}:host .widget-menu .widget-edit-item:last-of-type{border-bottom-right-radius:var(--luzmo-widget-menu-edit-item-border-radius, var(--widget-menu-edit-item-border-radius));border-bottom-left-radius:var(--luzmo-widget-menu-edit-item-border-radius, var(--widget-menu-edit-item-border-radius));box-shadow:var(--luzmo-widget-menu-box-shadow, var(--widget-menu-box-shadow))}:host .widget-menu .widget-edit-item:hover,:host .widget-menu .widget-edit-item[selected]{background-color:var(--luzmo-widget-menu-edit-item-background-hover, var(--widget-menu-edit-item-background-hover))}:host .widget-menu .widget-edit-item:active{background-color:var(--luzmo-widget-menu-edit-item-background-active, var(--widget-menu-edit-item-background-active))}:host .widget-menu .widget-edit-item luzmo-icon{color:var(--luzmo-widget-menu-edit-item-icon-color, var(--widget-menu-edit-item-icon-color))}:host .widget-menu .widget-remove{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;padding:var(--luzmo-widget-menu-remove-padding, var(--widget-menu-remove-padding));border-radius:var(--luzmo-widget-menu-remove-border-radius, var(--widget-menu-remove-border-radius));background-color:var(--luzmo-widget-menu-remove-background, var(--widget-menu-remove-background));transition:var(--luzmo-widget-menu-transition, var(--widget-menu-transition));box-shadow:var(--luzmo-widget-menu-box-shadow, var(--widget-menu-box-shadow))}:host .widget-menu .widget-remove:hover,:host .widget-menu .widget-remove[selected]{background-color:var(--luzmo-widget-menu-remove-background-hover, var(--widget-menu-remove-background-hover))}:host .widget-menu .widget-remove:hover luzmo-icon,:host .widget-menu .widget-remove[selected] luzmo-icon{color:var(--luzmo-widget-menu-remove-icon-color-hover, var(--widget-menu-remove-icon-color-hover))}:host .widget-menu .widget-remove:active{background-color:var(--luzmo-widget-menu-remove-background-active, var(--widget-menu-remove-background-active))}:host .widget-menu .widget-remove:active luzmo-icon{color:var(--luzmo-widget-menu-remove-icon-color-hover, var(--widget-menu-remove-icon-color-hover))}:host .widget-menu .widget-remove luzmo-icon{color:var(--luzmo-widget-menu-remove-icon-color, var(--widget-menu-remove-icon-color))}:host .widget-menu luzmo-tooltip{--tooltip-font-family: var( --luzmo-widget-menu-tooltip-font-family, var(--widget-menu-tooltip-font-family) );font-family:var(--luzmo-widget-menu-tooltip-font-family, var(--widget-menu-tooltip-font-family))}:host{--widget-menu-gap: var(--luzmo-spacing-3, .375rem);--widget-menu-edit-item-gap: 0;--widget-menu-edit-item-padding: var(--luzmo-spacing-3, .125rem);--widget-menu-edit-item-border-radius: var(--luzmo-border-radius, .25rem);--widget-menu-edit-item-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--widget-menu-edit-item-background-hover: var(--secondary, var(--luzmo-primary));--widget-menu-edit-item-background-active: var(--secondary, var(--luzmo-primary));--widget-menu-edit-item-icon-color: var(--luzmo-primary-inverse-color, white);--widget-menu-remove-padding: var(--luzmo-spacing-3, .125rem);--widget-menu-remove-border-radius: var(--luzmo-border-radius, .25rem);--widget-menu-remove-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--widget-menu-remove-background-hover: var(--luzmo-negative-color, rgb(222, 55, 55));--widget-menu-remove-background-active: var(--luzmo-negative-color, rgb(222, 55, 55));--widget-menu-remove-icon-color: var(--luzmo-primary-inverse-color, white);--widget-menu-remove-icon-color-hover: var(--luzmo-primary-inverse-color, white);--widget-menu-transition: all var(--luzmo-animation-duration, .2s) ease;--widget-menu-font-size: var(--luzmo-font-size-m, .875rem);--widget-menu-box-shadow: 0px 4px 4px 0px var(--Boxshadow, rgba(var(--luzmo-border-color-rgb), .2));--widget-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 v=Object.defineProperty,w=Object.getOwnPropertyDescriptor,d=(m,e,t,i)=>{for(var o=i>1?void 0:i?w(e,t):e,u=m.length-1,a;u>=0;u--)(a=m[u])&&(o=(i?a(e,t,o):a(o))||o);return i&&o&&v(e,t,o),o};exports.LuzmoWidgetMenu=class extends r.LitElement{constructor(){super(...arguments),this.vizItemId="",this.hide=[],this.language="en",this.selectedItem=null,this.menuItemConfigs={edit:{icon:l.luzmoEdit,label:"Edit",eventName:"edit",itemType:"edit",cssClass:"widget-edit-item widget-edit",dataE2e:"widget-menu-edit",onHover:()=>this._handleHoverOverEdit()},clone:{icon:l.luzmoClone,label:"Clone",eventName:"clone",itemType:"clone",cssClass:"widget-edit-item widget-clone",dataE2e:"widget-menu-clone"},remove:{icon:l.luzmoTrashOutline,label:"Delete",eventName:"remove",itemType:"remove",cssClass:"widget-remove"}}}get hasEditItemsToShow(){var i,o;const e=!((i=this.hide)!=null&&i.includes("edit")),t=!((o=this.hide)!=null&&o.includes("clone"));return e||t}_shouldShowItem(e){var t;return!((t=this.hide)!=null&&t.includes(e))}willUpdate(e){e.has("language")&&this.language!==s.getLocale()&&([...s.targetLocales].includes(this.language??"en")||this.language==="en")&&s.setLocale(this.language)}_handleSelectedToggle(e){const t=this.selectedItem===e?null:e;this.selectedItem=t,this._emitSelectedChanged()}_emitSelectedChanged(){this.dispatchEvent(new CustomEvent("selected-changed",{bubbles:!0,composed:!0,detail:{selectedItem:this.selectedItem}}))}_handleMenuItemClick(e){this._handleSelectedToggle(e.itemType),this.dispatchEvent(new CustomEvent("widget-menu-element-clicked",{bubbles:!0,composed:!0,detail:{action:e.eventName,type:e.itemType,id:this.vizItemId}}))}_createMenuItemClickHandler(e){return()=>this._handleMenuItemClick(e)}_handleHoverOverEdit(){this.dispatchEvent(new CustomEvent("hover-over-edit",{bubbles:!0,composed:!0}))}_renderMenuItem(e){const t=this.selectedItem===e.itemType,i=g.msg(e.label,{desc:`Widget menu ${e.itemType} tooltip`});return r.html`
21
- <div
22
- class=${e.cssClass}
23
- data-e2e=${e.dataE2e||""}
24
- data-menu-item=${e.itemType}
25
- role="button"
26
- tabindex="0"
27
- aria-label=${i}
28
- ?selected=${t}
29
- @mouseenter=${e.onHover}
30
- @click=${this._createMenuItemClickHandler(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
- `}_renderEditSection(){return this.hasEditItemsToShow?r.html`
42
- <div class="widget-edit">
43
- ${this._shouldShowItem("edit")?this._renderMenuItem(this.menuItemConfigs.edit):""}
44
- ${this._shouldShowItem("clone")?this._renderMenuItem(this.menuItemConfigs.clone):""}
45
- </div>
46
- `:r.html``}_renderRemoveSection(){return this._shouldShowItem("remove")?this._renderMenuItem(this.menuItemConfigs.remove):r.html``}render(){return r.html`
47
- <div class="widget-menu font-size-lg">
48
- ${this._renderEditSection()}
49
- ${this._renderRemoveSection()}
50
- </div>
51
- `}};exports.LuzmoWidgetMenu.styles=r.unsafeCSS(c);exports.LuzmoWidgetMenu.tagName="luzmo-widget-menu";d([n.property({type:String,reflect:!0,attribute:"viz-item-id"})],exports.LuzmoWidgetMenu.prototype,"vizItemId",2);d([n.property({type:Array,attribute:!1})],exports.LuzmoWidgetMenu.prototype,"hide",2);d([n.property({type:String,reflect:!0})],exports.LuzmoWidgetMenu.prototype,"language",2);d([n.property({type:String,reflect:!0,attribute:"selected-item"})],exports.LuzmoWidgetMenu.prototype,"selectedItem",2);exports.LuzmoWidgetMenu=d([g.localized()],exports.LuzmoWidgetMenu);customElements.get("luzmo-widget-menu")||customElements.define("luzmo-widget-menu",exports.LuzmoWidgetMenu);
@@ -1,8 +0,0 @@
1
- import { LuzmoWidgetMenu } from './widget-menu';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'luzmo-widget-menu': LuzmoWidgetMenu;
5
- }
6
- }
7
- export { LuzmoWidgetMenu } from './widget-menu';
8
- export type { WidgetMenuItem } from '../../types';