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

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 (252) hide show
  1. package/angular/README.md +1 -0
  2. package/angular/components/widget-menu.component.ts +25 -0
  3. package/angular/esm/components/widget-menu.component.d.ts +13 -0
  4. package/angular/esm/components/widget-menu.component.js +49 -0
  5. package/angular/esm/index.d.ts +3 -1
  6. package/angular/esm/index.js +4 -1
  7. package/angular/esm/types.d.ts +4 -0
  8. package/angular/index.ts +4 -1
  9. package/angular/types.ts +6 -0
  10. package/components/ai-chat-message-assistant/index.cjs +1 -1
  11. package/components/ai-chat-message-assistant/index.js +1 -0
  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 +2 -1
  16. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  17. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  18. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  19. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  20. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  21. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  22. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  23. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  24. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  25. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  26. package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
  27. package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
  28. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  29. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  30. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  31. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  32. package/components/color-B6LaL8qz.cjs +20 -0
  33. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  34. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  35. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  36. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  37. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  38. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  39. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  40. package/components/dataset-icon/index.cjs +1 -1
  41. package/components/dataset-icon/index.js +2 -1
  42. package/components/dataset-selector-list/index.cjs +1 -1
  43. package/components/dataset-selector-list/index.js +35 -32
  44. package/components/dataset-selector-row/index.cjs +9 -9
  45. package/components/dataset-selector-row/index.js +53 -51
  46. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  47. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  48. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  49. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  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 +30 -29
  54. package/components/display-settings-datetime/index.cjs +29 -29
  55. package/components/display-settings-datetime/index.js +120 -112
  56. package/components/display-settings-grand-totals/index.cjs +4 -4
  57. package/components/display-settings-grand-totals/index.js +24 -23
  58. package/components/display-settings-numeric/index.cjs +48 -48
  59. package/components/display-settings-numeric/index.js +211 -194
  60. package/components/display-settings-period-over-period/index.cjs +16 -16
  61. package/components/display-settings-period-over-period/index.js +97 -91
  62. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  63. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  64. package/components/draggable-data-item/index.cjs +5 -5
  65. package/components/draggable-data-item/index.js +46 -45
  66. package/components/draggable-data-item-level/index.cjs +11 -11
  67. package/components/draggable-data-item-level/index.js +73 -70
  68. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  69. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  70. package/components/droppable-slot/index.cjs +16 -16
  71. package/components/droppable-slot/index.js +223 -208
  72. package/components/edit-item/index.cjs +9 -9
  73. package/components/edit-item/index.js +119 -116
  74. package/components/edit-option/index.cjs +1 -1
  75. package/components/edit-option/index.js +1 -1
  76. package/components/edit-option-action-button-group/index.cjs +8 -8
  77. package/components/edit-option-action-button-group/index.js +53 -52
  78. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  79. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  80. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  81. package/components/edit-option-color-palette-picker/index.js +1 -1
  82. package/components/edit-option-color-picker/index.cjs +1 -1
  83. package/components/edit-option-color-picker/index.js +1 -1
  84. package/components/edit-option-color-range/index.cjs +19 -19
  85. package/components/edit-option-color-range/index.js +117 -106
  86. package/components/edit-option-multi-language-field/index.cjs +3 -3
  87. package/components/edit-option-multi-language-field/index.js +27 -26
  88. package/components/edit-option-number-field/index.cjs +1 -1
  89. package/components/edit-option-number-field/index.js +1 -1
  90. package/components/edit-option-picker/index.cjs +5 -5
  91. package/components/edit-option-picker/index.js +7 -7
  92. package/components/edit-option-position-picker/index.cjs +4 -4
  93. package/components/edit-option-position-picker/index.js +25 -21
  94. package/components/edit-option-positions-number-field/index.cjs +9 -9
  95. package/components/edit-option-positions-number-field/index.js +81 -76
  96. package/components/edit-option-radio-button-group/index.cjs +6 -6
  97. package/components/edit-option-radio-button-group/index.js +22 -21
  98. package/components/edit-option-slider/index.cjs +1 -1
  99. package/components/edit-option-slider/index.js +1 -1
  100. package/components/edit-option-switch/index.cjs +1 -1
  101. package/components/edit-option-switch/index.js +1 -1
  102. package/components/edit-option-text-field/index.cjs +2 -2
  103. package/components/edit-option-text-field/index.js +23 -22
  104. package/components/en-BKBhKBXY.cjs +20 -0
  105. package/components/en-BOTjhwEc.js +1488 -0
  106. package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
  107. package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  108. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  109. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  110. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  111. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  112. package/components/filter-data-item-picker/index.cjs +7 -7
  113. package/components/filter-data-item-picker/index.js +86 -85
  114. package/components/filter-expression-picker/index.cjs +1 -1
  115. package/components/filter-expression-picker/index.js +1 -1
  116. package/components/filter-item/index.cjs +6 -6
  117. package/components/filter-item/index.js +119 -109
  118. package/components/filter-value-picker/index.cjs +2 -2
  119. package/components/filter-value-picker/index.js +36 -34
  120. package/components/filter-value-picker-datetime/index.cjs +8 -8
  121. package/components/filter-value-picker-datetime/index.js +71 -56
  122. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  123. package/components/filter-value-picker-hierarchy/index.js +124 -113
  124. package/components/filter-value-picker-numeric/index.cjs +8 -8
  125. package/components/filter-value-picker-numeric/index.js +110 -101
  126. package/components/focusable-B3E_hQmm.cjs +20 -0
  127. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  128. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  129. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  130. package/components/get-css-variable-BEYG097C.js +1446 -0
  131. package/components/get-css-variable-BZxY4IOa.cjs +35 -0
  132. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  133. package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
  134. package/components/grid/index.cjs +49 -43
  135. package/components/grid/index.js +1878 -2610
  136. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  137. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  138. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  139. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  140. package/components/helpers-DXQwEH1P.cjs +20 -0
  141. package/components/helpers-v1bPALRP.js +91 -0
  142. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  143. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  144. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  145. package/components/index-CDi4fe3N.js +1716 -0
  146. package/components/index-CQ9ck-BO.cjs +249 -0
  147. package/components/index-CXn67vdn.cjs +121 -0
  148. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  149. package/components/index-Cz9vSXy6.cjs +20 -0
  150. package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
  151. package/components/index-Dn0j_pcR.cjs +20 -0
  152. package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
  153. package/components/index-E239Dotg.js +1735 -0
  154. package/components/index.cjs +1 -1
  155. package/components/index.js +20 -18
  156. package/components/item-options-configs.cjs +1 -1
  157. package/components/item-options-configs.js +37 -37
  158. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  159. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  160. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  161. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  162. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  163. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  164. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  165. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  166. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  167. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  168. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  169. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  170. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  171. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  172. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  173. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  174. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  175. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  176. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  177. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  178. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  179. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  180. package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
  181. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  182. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  183. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  184. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  185. package/components/slot-contents-picker/index.cjs +33 -33
  186. package/components/slot-contents-picker/index.js +205 -194
  187. package/components/slot-menu/index.cjs +12 -12
  188. package/components/slot-menu/index.js +184 -171
  189. package/components/slot-menu-list/index.cjs +3 -3
  190. package/components/slot-menu-list/index.js +103 -97
  191. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  192. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  193. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  194. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  195. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  196. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  197. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  198. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  199. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  200. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  201. package/components/utils.cjs +1 -1
  202. package/components/utils.js +97 -94
  203. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  204. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  205. package/components/widget-menu/index.cjs +51 -0
  206. package/components/widget-menu/index.d.ts +8 -0
  207. package/components/widget-menu/index.js +211 -0
  208. package/components/widget-menu/widget-menu.d.ts +77 -0
  209. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  210. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  211. package/custom-elements.json +133 -20
  212. package/index.d.ts +1 -0
  213. package/package.json +6 -1
  214. package/types.d.ts +4 -0
  215. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  216. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  217. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  218. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  219. package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
  220. package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
  221. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  222. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  223. package/components/color-Czp4Im5q.cjs +0 -20
  224. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  225. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  226. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  227. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  228. package/components/en-D3ihEGXg.js +0 -1483
  229. package/components/en-DZcn_iz_.cjs +0 -20
  230. package/components/focusable-QLh-LlNt.cjs +0 -20
  231. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  232. package/components/get-css-variable-Pzks_rOx.cjs +0 -24
  233. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  234. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  235. package/components/helpers-9I0oLoUB.cjs +0 -20
  236. package/components/helpers-bR8Ibjqh.js +0 -79
  237. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  238. package/components/index-BekTY3Em.cjs +0 -121
  239. package/components/index-CFL6gmIu.cjs +0 -20
  240. package/components/index-DNPULp4A.js +0 -1755
  241. package/components/index-DvkzMbLt.cjs +0 -249
  242. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  243. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  244. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  245. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  246. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  247. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  248. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  249. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  250. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  251. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  252. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -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";const r=require("@luzmo/icons"),u={"array[hierarchy]":{s:r.luzmoTypeArrayHierarchy12,m:r.luzmoTypeArrayHierarchy14,l:r.luzmoTypeArrayHierarchy,xl:r.luzmoTypeArrayHierarchy},"array[datetime]":{s:r.luzmoTypeArrayDatetime12,m:r.luzmoTypeArrayDatetime14,l:r.luzmoTypeArrayDatetime,xl:r.luzmoTypeArrayDatetime},"array[numeric]":{s:r.luzmoTypeArrayNumeric12,m:r.luzmoTypeArrayNumeric14,l:r.luzmoTypeArrayNumeric,xl:r.luzmoTypeArrayNumeric},"array[currency]":{s:r.luzmoTypeArrayCurrency12,m:r.luzmoTypeArrayCurrency14,l:r.luzmoTypeArrayCurrency,xl:r.luzmoTypeArrayCurrency},"array[duration]":{s:r.luzmoTypeArrayDuration12,m:r.luzmoTypeArrayDuration14,l:r.luzmoTypeArrayDuration,xl:r.luzmoTypeArrayDuration},coordinates:{s:r.luzmoTypeCoordinates12,m:r.luzmoTypeCoordinates14,l:r.luzmoTypeCoordinates,xl:r.luzmoTypeCoordinates},currency:{s:r.luzmoTypeCurrency12,m:r.luzmoTypeCurrency14,l:r.luzmoTypeCurrency,xl:r.luzmoTypeCurrency},date:{s:r.luzmoTypeDate12,m:r.luzmoTypeDate14,l:r.luzmoTypeDate,xl:r.luzmoTypeDate},datetime:{s:r.luzmoTypeDatetime12,m:r.luzmoTypeDatetime14,l:r.luzmoTypeDatetime,xl:r.luzmoTypeDatetime},derived:{s:r.luzmoTypeDerived12,m:r.luzmoTypeDerived14,l:r.luzmoTypeDerived,xl:r.luzmoTypeDerived},duration:{s:r.luzmoTypeDuration12,m:r.luzmoTypeDuration14,l:r.luzmoTypeDuration,xl:r.luzmoTypeDuration},hierarchy:{s:r.luzmoTypeHierarchy12,m:r.luzmoTypeHierarchy14,l:r.luzmoTypeHierarchy,xl:r.luzmoTypeHierarchy},image:{s:r.luzmoTypeImage12,m:r.luzmoTypeImage14,l:r.luzmoTypeImage,xl:r.luzmoTypeImage},numeric:{s:r.luzmoTypeNumeric12,m:r.luzmoTypeNumeric14,l:r.luzmoTypeNumeric,xl:r.luzmoTypeNumeric},topography:{s:r.luzmoTypeTopography,m:r.luzmoTypeTopography,l:r.luzmoTypeTopography,xl:r.luzmoTypeTopography},ipaddress:{s:r.luzmoTypeIpAddress12,m:r.luzmoTypeIpAddress14,l:r.luzmoTypeIpAddress,xl:r.luzmoTypeIpAddress},formula:{s:r.luzmoFormula,m:r.luzmoFormula,l:r.luzmoFormula,xl:r.luzmoFormula}},i={xxs:"s",xs:"s",s:"s",m:"m",l:"l",xl:"xl",xxl:"xl"},o=e=>e?i[e]:"m",p=(e,y="m")=>{const l=o(y);return(e==null?void 0:e.type)==="array[hierarchy]"?u["array[hierarchy]"][l]:(e==null?void 0:e.type)==="array[datetime]"?u["array[datetime]"][l]:(e==null?void 0:e.type)==="array[numeric]"?(e==null?void 0:e.subtype)==="currency"?u["array[currency]"][l]:(e==null?void 0:e.subtype)==="duration"?u["array[duration]"][l]:u["array[numeric]"][l]:(e==null?void 0:e.type)==="spatial"?(e==null?void 0:e.subtype)==="topography"?u.topography[l]:u.coordinates[l]:(e==null?void 0:e.type)==="numeric"?(e==null?void 0:e.subtype)==="currency"?u.currency[l]:(e==null?void 0:e.subtype)==="duration"?u.duration[l]:u.numeric[l]:(e==null?void 0:e.type)==="datetime"?e!=null&&e.lowestLevel&&(e==null?void 0:e.lowestLevel)>5&&(e==null?void 0:e.lowestLevel)<=9?u.datetime[l]:e!=null&&e.lowestLevel&&(e==null?void 0:e.lowestLevel)>1&&(e==null?void 0:e.lowestLevel)<=5?u.date[l]:u.datetime[l]:(e==null?void 0:e.type)==="hierarchy"&&(e==null?void 0:e.subtype)==="ip_address"?u.ipaddress[l]:(e==null?void 0:e.type)==="hierarchy"&&(e==null?void 0:e.subtype)==="hierarchy_element_expression"?u.image[l]:u.hierarchy[l]},n=(e,y="m")=>{if(!e)return;const l=o(y),m=typeof e.expression=="string"?e.expression.trim().length>0:e.expression!=null;if(e.formulaId!=null)return u.formula[l];if(e.formulaId==null&&e.columnId!=null&&m)return u.derived[l]};exports.calculateDataItemIcon=p;exports.calculateDataItemSecondaryIcon=n;
@@ -0,0 +1,147 @@
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
+ import { luzmoTypeArrayHierarchy as m, luzmoTypeArrayHierarchy14 as C, luzmoTypeArrayHierarchy12 as b, luzmoTypeArrayDatetime as i, luzmoTypeArrayDatetime14 as N, luzmoTypeArrayDatetime12 as w, luzmoTypeArrayCurrency as n, luzmoTypeArrayCurrency14 as H, luzmoTypeArrayCurrency12 as L, luzmoTypeArrayDuration as p, luzmoTypeArrayDuration14 as S, luzmoTypeArrayDuration12 as E, luzmoTypeArrayNumeric as s, luzmoTypeArrayNumeric14 as _, luzmoTypeArrayNumeric12 as B, luzmoTypeTopography as y, luzmoTypeCoordinates as c, luzmoTypeCoordinates14 as F, luzmoTypeCoordinates12 as j, luzmoTypeCurrency as z, luzmoTypeCurrency14 as k, luzmoTypeCurrency12 as q, luzmoTypeDuration as T, luzmoTypeDuration14 as G, luzmoTypeDuration12 as J, luzmoTypeNumeric as x, luzmoTypeNumeric14 as K, luzmoTypeNumeric12 as M, luzmoTypeDatetime as h, luzmoTypeDatetime14 as O, luzmoTypeDatetime12 as P, luzmoTypeDate as f, luzmoTypeDate14 as Q, luzmoTypeDate12 as R, luzmoTypeIpAddress as D, luzmoTypeIpAddress14 as U, luzmoTypeIpAddress12 as V, luzmoTypeImage as A, luzmoTypeImage14 as W, luzmoTypeImage12 as X, luzmoTypeHierarchy as I, luzmoTypeHierarchy14 as Y, luzmoTypeHierarchy12 as Z, luzmoFormula as u, luzmoTypeDerived as g, luzmoTypeDerived14 as $, luzmoTypeDerived12 as d } from "@luzmo/icons";
21
+ const l = {
22
+ "array[hierarchy]": {
23
+ s: b,
24
+ m: C,
25
+ l: m,
26
+ xl: m
27
+ },
28
+ "array[datetime]": {
29
+ s: w,
30
+ m: N,
31
+ l: i,
32
+ xl: i
33
+ },
34
+ "array[numeric]": {
35
+ s: B,
36
+ m: _,
37
+ l: s,
38
+ xl: s
39
+ },
40
+ "array[currency]": {
41
+ s: L,
42
+ m: H,
43
+ l: n,
44
+ xl: n
45
+ },
46
+ "array[duration]": {
47
+ s: E,
48
+ m: S,
49
+ l: p,
50
+ xl: p
51
+ },
52
+ coordinates: {
53
+ s: j,
54
+ m: F,
55
+ l: c,
56
+ xl: c
57
+ },
58
+ currency: {
59
+ s: q,
60
+ m: k,
61
+ l: z,
62
+ xl: z
63
+ },
64
+ date: {
65
+ s: R,
66
+ m: Q,
67
+ l: f,
68
+ xl: f
69
+ },
70
+ datetime: {
71
+ s: P,
72
+ m: O,
73
+ l: h,
74
+ xl: h
75
+ },
76
+ derived: {
77
+ s: d,
78
+ m: $,
79
+ l: g,
80
+ xl: g
81
+ },
82
+ duration: {
83
+ s: J,
84
+ m: G,
85
+ l: T,
86
+ xl: T
87
+ },
88
+ hierarchy: {
89
+ s: Z,
90
+ m: Y,
91
+ l: I,
92
+ xl: I
93
+ },
94
+ image: {
95
+ s: X,
96
+ m: W,
97
+ l: A,
98
+ xl: A
99
+ },
100
+ numeric: {
101
+ s: M,
102
+ m: K,
103
+ l: x,
104
+ xl: x
105
+ },
106
+ topography: {
107
+ s: y,
108
+ m: y,
109
+ l: y,
110
+ xl: y
111
+ },
112
+ ipaddress: {
113
+ s: V,
114
+ m: U,
115
+ l: D,
116
+ xl: D
117
+ },
118
+ formula: {
119
+ s: u,
120
+ m: u,
121
+ l: u,
122
+ xl: u
123
+ }
124
+ }, a = {
125
+ xxs: "s",
126
+ xs: "s",
127
+ s: "s",
128
+ m: "m",
129
+ l: "l",
130
+ xl: "xl",
131
+ xxl: "xl"
132
+ }, v = (e) => e ? a[e] : "m", re = (e, o = "m") => {
133
+ const r = v(o);
134
+ return (e == null ? void 0 : e.type) === "array[hierarchy]" ? l["array[hierarchy]"][r] : (e == null ? void 0 : e.type) === "array[datetime]" ? l["array[datetime]"][r] : (e == null ? void 0 : e.type) === "array[numeric]" ? (e == null ? void 0 : e.subtype) === "currency" ? l["array[currency]"][r] : (e == null ? void 0 : e.subtype) === "duration" ? l["array[duration]"][r] : l["array[numeric]"][r] : (e == null ? void 0 : e.type) === "spatial" ? (e == null ? void 0 : e.subtype) === "topography" ? l.topography[r] : l.coordinates[r] : (e == null ? void 0 : e.type) === "numeric" ? (e == null ? void 0 : e.subtype) === "currency" ? l.currency[r] : (e == null ? void 0 : e.subtype) === "duration" ? l.duration[r] : l.numeric[r] : (e == null ? void 0 : e.type) === "datetime" ? e != null && e.lowestLevel && (e == null ? void 0 : e.lowestLevel) > 5 && (e == null ? void 0 : e.lowestLevel) <= 9 ? l.datetime[r] : e != null && e.lowestLevel && (e == null ? void 0 : e.lowestLevel) > 1 && (e == null ? void 0 : e.lowestLevel) <= 5 ? l.date[r] : l.datetime[r] : (e == null ? void 0 : e.type) === "hierarchy" && (e == null ? void 0 : e.subtype) === "ip_address" ? l.ipaddress[r] : (e == null ? void 0 : e.type) === "hierarchy" && (e == null ? void 0 : e.subtype) === "hierarchy_element_expression" ? l.image[r] : l.hierarchy[r];
135
+ }, le = (e, o = "m") => {
136
+ if (!e)
137
+ return;
138
+ const r = v(o), t = typeof e.expression == "string" ? e.expression.trim().length > 0 : e.expression != null;
139
+ if (e.formulaId != null)
140
+ return l.formula[r];
141
+ if (e.formulaId == null && e.columnId != null && t)
142
+ return l.derived[r];
143
+ };
144
+ export {
145
+ le as a,
146
+ re as c
147
+ };
@@ -17,10 +17,10 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { g as t, a as p } from "./color-palettes-BqH2Fv19.js";
21
- import { m as d } from "./index-t45_zv93.js";
22
- import { t as n, c as o, a as r } from "./color-range-utils-BSfqtB3A.js";
23
- const V = [
20
+ import { g as n, a as b } from "./color-palettes-BqH2Fv19.js";
21
+ import { m as h } from "./index-t45_zv93.js";
22
+ import { t as y, c as g, a as d } from "./color-range-utils-Bvo9sm5A.js";
23
+ const O = [
24
24
  {
25
25
  key: "general",
26
26
  type: "group",
@@ -110,8 +110,8 @@ const V = [
110
110
  "Voyager",
111
111
  "3D buildings"
112
112
  ],
113
- parseValue: (e) => e?.name || "Basic",
114
- toValue: (e) => d[e] ?? {}
113
+ parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
114
+ toValue: (e) => h[e] ?? {}
115
115
  }
116
116
  }
117
117
  ]
@@ -139,32 +139,39 @@ const V = [
139
139
  label: "Colors type",
140
140
  default: "sequential",
141
141
  enum: ["sequential", "divergent", "manual"],
142
- calculateValue: ({ options: e }) => e?.colorsClass === "manual" ? "manual" : t()?.[e?.colorsClass]?.type ?? "sequential",
142
+ calculateValue: ({ options: e }) => {
143
+ var r;
144
+ if ((e == null ? void 0 : e.colorsClass) === "manual")
145
+ return "manual";
146
+ const a = n();
147
+ return ((r = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : r.type) ?? "sequential";
148
+ },
143
149
  toOptions: ({ options: e, value: a }) => {
144
- const l = e?.colorsClass ?? "PuBu", s = e?.numberClasses ?? 5, u = n(
145
- e?.manualValues?.ranges
146
- ), y = l === "manual" ? "manual" : l;
147
- let c;
150
+ var f, C, V;
151
+ const l = (e == null ? void 0 : e.colorsClass) ?? "PuBu", r = (e == null ? void 0 : e.numberClasses) ?? 5, u = y(
152
+ (f = e == null ? void 0 : e.manualValues) == null ? void 0 : f.ranges
153
+ ), c = l === "manual" ? "manual" : l;
154
+ let s;
148
155
  if (a === "manual")
149
- c = "manual";
156
+ s = "manual";
150
157
  else {
151
- const g = t()?.[e?.colorsClass]?.type;
152
- a !== g && (c = p(a ?? "sequential")[0]);
158
+ const t = n(), k = (C = t == null ? void 0 : t[e == null ? void 0 : e.colorsClass]) == null ? void 0 : C.type;
159
+ a !== k && (s = b(a ?? "sequential")[0]);
153
160
  }
154
- const i = { ...e, colorsClass: c };
155
- if (a === "manual" || e?.classification === "manual") {
156
- const m = o(
157
- s,
158
- a === "manual" ? y : c,
161
+ const m = { ...e, colorsClass: s };
162
+ if (a === "manual" || (e == null ? void 0 : e.classification) === "manual") {
163
+ const t = g(
164
+ r,
165
+ a === "manual" ? c : s,
159
166
  u
160
167
  );
161
- i.manualValues = {
162
- ...i.manualValues,
163
- ranges: r(m)
168
+ m.manualValues = {
169
+ ...m.manualValues,
170
+ ranges: d(t)
164
171
  };
165
172
  } else
166
- delete i?.manualValues?.ranges;
167
- return i;
173
+ (V = m == null ? void 0 : m.manualValues) == null || delete V.ranges;
174
+ return m;
168
175
  }
169
176
  }
170
177
  },
@@ -175,29 +182,32 @@ const V = [
175
182
  label: "Color palette",
176
183
  hideLabel: !0,
177
184
  default: ({ options: e }) => {
178
- const l = t()?.[e?.colorsClass]?.type;
179
- return p(l ?? "sequential")[0];
185
+ var r;
186
+ const a = n(), l = (r = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : r.type;
187
+ return b(l ?? "sequential")[0];
180
188
  },
181
189
  enum: ({ options: e }) => {
182
- const l = t()?.[e?.colorsClass]?.type;
183
- return p(l ?? "sequential");
190
+ var r;
191
+ const a = n(), l = (r = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : r.type;
192
+ return b(l ?? "sequential");
184
193
  },
185
194
  toOptions: ({ options: e, value: a }) => {
195
+ var r, u;
186
196
  const l = { ...e, colorsClass: a };
187
- if (e?.classification === "manual") {
188
- const s = t()[a]?.[`colors${e?.numberClasses ?? 5}`];
197
+ if ((e == null ? void 0 : e.classification) === "manual") {
198
+ const c = (r = n()[a]) == null ? void 0 : r[`colors${(e == null ? void 0 : e.numberClasses) ?? 5}`];
189
199
  l.manualValues = {
190
200
  ...l.manualValues,
191
- ranges: e?.manualValues?.ranges.map((u) => ({
192
- ...u,
193
- color: s?.[u.val]
201
+ ranges: (u = e == null ? void 0 : e.manualValues) == null ? void 0 : u.ranges.map((s) => ({
202
+ ...s,
203
+ color: c == null ? void 0 : c[s.val]
194
204
  }))
195
205
  };
196
206
  }
197
207
  return l;
198
208
  }
199
209
  },
200
- visibleIf: ({ options: e }) => e?.colorsClass !== "manual"
210
+ visibleIf: ({ options: e }) => (e == null ? void 0 : e.colorsClass) !== "manual"
201
211
  },
202
212
  {
203
213
  key: "manualValues.ranges",
@@ -210,19 +220,22 @@ const V = [
210
220
  label: "Manual range colors",
211
221
  hideLabel: !0
212
222
  },
213
- calculateValue: ({ options: e }) => o(
214
- e?.numberClasses,
215
- e?.colorsClass,
216
- n(e?.manualValues?.ranges)
217
- ),
223
+ calculateValue: ({ options: e }) => {
224
+ var a;
225
+ return g(
226
+ e == null ? void 0 : e.numberClasses,
227
+ e == null ? void 0 : e.colorsClass,
228
+ y((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
229
+ );
230
+ },
218
231
  toOptions: ({ options: e, value: a }) => ({
219
232
  ...e,
220
233
  manualValues: {
221
234
  ...e.manualValues,
222
- ranges: r(a)
235
+ ranges: d(a)
223
236
  }
224
237
  }),
225
- visibleIf: ({ options: e }) => e?.colorsClass === "manual"
238
+ visibleIf: ({ options: e }) => (e == null ? void 0 : e.colorsClass) === "manual"
226
239
  }
227
240
  ]
228
241
  },
@@ -238,19 +251,20 @@ const V = [
238
251
  label: "Number of classes",
239
252
  default: "5",
240
253
  enum: ["3", "4", "5", "6", "7", "8", "9"],
241
- parseValue: (e) => e?.toString() ?? "5",
254
+ parseValue: (e) => (e == null ? void 0 : e.toString()) ?? "5",
242
255
  toOptions: ({ options: e, value: a }) => {
256
+ var r;
243
257
  a = Number.parseInt(a, 10) ?? 5;
244
258
  const l = { ...e, numberClasses: a };
245
- if (e?.classification === "manual" || e?.colorsClass === "manual") {
246
- const s = o(
259
+ if ((e == null ? void 0 : e.classification) === "manual" || (e == null ? void 0 : e.colorsClass) === "manual") {
260
+ const u = g(
247
261
  a,
248
- e?.colorsClass,
249
- n(e?.manualValues?.ranges)
262
+ e == null ? void 0 : e.colorsClass,
263
+ y((r = e == null ? void 0 : e.manualValues) == null ? void 0 : r.ranges)
250
264
  );
251
265
  l.manualValues = {
252
266
  ...l.manualValues,
253
- ranges: r(s)
267
+ ranges: d(u)
254
268
  };
255
269
  }
256
270
  return l;
@@ -266,19 +280,20 @@ const V = [
266
280
  // TODO: add manual when being able to retrieve values from the choropleth map
267
281
  enum: ["interval", "manual", "quantile", "continuous"],
268
282
  toOptions: ({ options: e, value: a }) => {
283
+ var r, u;
269
284
  const l = { ...e, classification: a };
270
- if (a === "manual" || e?.colorsClass === "manual") {
271
- const s = o(
272
- e?.numberClasses,
273
- e?.colorsClass,
274
- n(e?.manualValues?.ranges)
285
+ if (a === "manual" || (e == null ? void 0 : e.colorsClass) === "manual") {
286
+ const c = g(
287
+ e == null ? void 0 : e.numberClasses,
288
+ e == null ? void 0 : e.colorsClass,
289
+ y((r = e == null ? void 0 : e.manualValues) == null ? void 0 : r.ranges)
275
290
  );
276
291
  l.manualValues = {
277
292
  ...l.manualValues,
278
- ranges: r(s)
293
+ ranges: d(c)
279
294
  };
280
295
  } else
281
- delete l?.manualValues?.ranges;
296
+ (u = l == null ? void 0 : l.manualValues) == null || delete u.ranges;
282
297
  return l;
283
298
  }
284
299
  }
@@ -293,20 +308,23 @@ const V = [
293
308
  readOnlyColorPicker: !0,
294
309
  label: "Manual range values",
295
310
  hideLabel: !0,
296
- calculateValue: ({ options: e }) => o(
297
- e?.numberClasses,
298
- e?.colorsClass,
299
- n(e?.manualValues?.ranges)
300
- ),
311
+ calculateValue: ({ options: e }) => {
312
+ var a;
313
+ return g(
314
+ e == null ? void 0 : e.numberClasses,
315
+ e == null ? void 0 : e.colorsClass,
316
+ y((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
317
+ );
318
+ },
301
319
  toOptions: ({ options: e, value: a }) => ({
302
320
  ...e,
303
321
  manualValues: {
304
322
  ...e.manualValues,
305
- ranges: r(a)
323
+ ranges: d(a)
306
324
  }
307
325
  })
308
326
  },
309
- visibleIf: ({ options: e }) => e?.classification === "manual"
327
+ visibleIf: ({ options: e }) => (e == null ? void 0 : e.classification) === "manual"
310
328
  }
311
329
  ]
312
330
  },
@@ -352,9 +370,12 @@ const V = [
352
370
  }
353
371
  }
354
372
  ],
355
- visibleIf: ({ options: e }) => e?.display?.legend === !0
373
+ visibleIf: ({ options: e }) => {
374
+ var a;
375
+ return ((a = e == null ? void 0 : e.display) == null ? void 0 : a.legend) === !0;
376
+ }
356
377
  }
357
378
  ];
358
379
  export {
359
- V as default
380
+ O as default
360
381
  };
@@ -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 s=require("./color-palettes-DhNHcib8.cjs"),f=require("./index-DhDgy1sp.cjs"),u=require("./color-range-utils-C5yXW7ZC.cjs"),V=[{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:"map",type:"group",open:!0,children:[{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",tooltip:"Use ctrl + drag",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["No Tiles","Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","3D buildings"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>f.mapVectorTileProviders[e]??{}}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.85,min:.2,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>{var r;if((e==null?void 0:e.colorsClass)==="manual")return"manual";const a=s.getColorMaps();return((r=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:r.type)??"sequential"},toOptions:({options:e,value:a})=>{var y,d,b;const l=(e==null?void 0:e.colorsClass)??"PuBu",r=(e==null?void 0:e.numberClasses)??5,c=u.toRangesWithValue((y=e==null?void 0:e.manualValues)==null?void 0:y.ranges),t=l==="manual"?"manual":l;let n;if(a==="manual")n="manual";else{const m=s.getColorMaps(),C=(d=m==null?void 0:m[e==null?void 0:e.colorsClass])==null?void 0:d.type;a!==C&&(n=s.getColorMapKeys(a??"sequential")[0])}const g={...e,colorsClass:n};if(a==="manual"||(e==null?void 0:e.classification)==="manual"){const m=u.calculateManualRanges(r,a==="manual"?t:n,c);g.manualValues={...g.manualValues,ranges:u.toRangesWithVal(m)}}else(b=g==null?void 0:g.manualValues)==null||delete b.ranges;return g}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{var r;const a=s.getColorMaps(),l=(r=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:r.type;return s.getColorMapKeys(l??"sequential")[0]},enum:({options:e})=>{var r;const a=s.getColorMaps(),l=(r=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:r.type;return s.getColorMapKeys(l??"sequential")},toOptions:({options:e,value:a})=>{var r,c;const l={...e,colorsClass:a};if((e==null?void 0:e.classification)==="manual"){const t=(r=s.getColorMaps()[a])==null?void 0:r[`colors${(e==null?void 0:e.numberClasses)??5}`];l.manualValues={...l.manualValues,ranges:(c=e==null?void 0:e.manualValues)==null?void 0:c.ranges.map(n=>({...n,color:t==null?void 0:t[n.val]}))}}return l}},visibleIf:({options:e})=>(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})=>(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 r;a=Number.parseInt(a,10)??5;const l={...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((r=e==null?void 0:e.manualValues)==null?void 0:r.ranges));l.manualValues={...l.manualValues,ranges:u.toRangesWithVal(c)}}return l}}},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:a})=>{var r,c;const l={...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((r=e==null?void 0:e.manualValues)==null?void 0:r.ranges));l.manualValues={...l.manualValues,ranges:u.toRangesWithVal(t)}}else(c=l==null?void 0:l.manualValues)==null||delete c.ranges;return l}}},{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})=>(e==null?void 0:e.classification)==="manual"}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.type",control:{type:"picker",label:"Type",default:"bar",enum:["bar","list"]}},{key:"legend.size",control:{type:"radio-button-group",label:"Size",default:"M",enum:["S","M","L"]}},{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)===!0}}];exports.default=V;
@@ -17,13 +17,13 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { g as c, a as o, b as i, c as n } from "./helpers-bR8Ibjqh.js";
21
- const r = () => [
20
+ import { g as n, a as o, b as f, c as d } from "./helpers-v1bPALRP.js";
21
+ const i = () => [
22
22
  { color: "#ff0000", value: 0 },
23
23
  { color: "#ffa500", value: 33.34 },
24
24
  { color: "#ffff00", value: 66.67 },
25
25
  { color: "#008000", value: 100 }
26
- ], s = [
26
+ ], g = [
27
27
  {
28
28
  key: "general",
29
29
  type: "group",
@@ -71,13 +71,17 @@ const r = () => [
71
71
  type: "switch",
72
72
  label: "Conditional color",
73
73
  default: !1,
74
- calculateValue: ({ options: e }) => e?.manualValues?.conditional?.length > 0,
74
+ calculateValue: ({ options: e }) => {
75
+ var l, r;
76
+ return ((r = (l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.conditional) == null ? void 0 : r.length) > 0;
77
+ },
75
78
  toOptions: ({ options: e, value: l }) => {
76
- const a = { ...e }, t = e?.manualValues?.conditional?.length > 0;
77
- return l ? t || (a.manualValues = {
78
- ...a?.manualValues,
79
- conditional: r()
80
- }) : delete a?.manualValues?.conditional, a;
79
+ var c, t, u;
80
+ const r = { ...e }, a = ((t = (c = e == null ? void 0 : e.manualValues) == null ? void 0 : c.conditional) == null ? void 0 : t.length) > 0;
81
+ return l ? a || (r.manualValues = {
82
+ ...r == null ? void 0 : r.manualValues,
83
+ conditional: i()
84
+ }) : (u = r == null ? void 0 : r.manualValues) == null || delete u.conditional, r;
81
85
  }
82
86
  }
83
87
  },
@@ -86,20 +90,23 @@ const r = () => [
86
90
  control: {
87
91
  type: "color-picker",
88
92
  label: "Arc color",
89
- default: ({ theme: e }) => n(e),
90
- extraLabel: ({ options: e, theme: l }) => i(e, l, "circle.color"),
93
+ default: ({ theme: e }) => d(e),
94
+ extraLabel: ({ options: e, theme: l }) => f(e, l, "circle.color"),
91
95
  extraLabelHasClickAction: ({ options: e, theme: l }) => o(
92
96
  e,
93
97
  l,
94
98
  "circle.color"
95
99
  ),
96
- extraLabelClickAction: ({ options: e, theme: l }) => c(
100
+ extraLabelClickAction: ({ options: e, theme: l }) => n(
97
101
  e,
98
102
  l,
99
103
  "circle.color"
100
104
  )
101
105
  },
102
- visibleIf: ({ options: e }) => !e?.manualValues?.conditional || e?.manualValues?.conditional?.length === 0
106
+ visibleIf: ({ options: e }) => {
107
+ var l, r, a;
108
+ return !((l = e == null ? void 0 : e.manualValues) != null && l.conditional) || ((a = (r = e == null ? void 0 : e.manualValues) == null ? void 0 : r.conditional) == null ? void 0 : a.length) === 0;
109
+ }
103
110
  },
104
111
  {
105
112
  key: "manualValues.conditional",
@@ -111,17 +118,20 @@ const r = () => [
111
118
  noAlphaChannel: !0,
112
119
  label: "Color ranges",
113
120
  hideLabel: !0,
114
- default: () => r(),
115
- parseValue: (e) => e?.map((l) => ({
116
- color: l?.color,
117
- value: l?.value ?? l?.val
121
+ default: () => i(),
122
+ parseValue: (e) => e == null ? void 0 : e.map((l) => ({
123
+ color: l == null ? void 0 : l.color,
124
+ value: (l == null ? void 0 : l.value) ?? (l == null ? void 0 : l.val)
118
125
  })),
119
- toValue: (e) => e?.map((a) => ({
120
- color: a?.color,
121
- val: a?.value
126
+ toValue: (e) => e == null ? void 0 : e.map((r) => ({
127
+ color: r == null ? void 0 : r.color,
128
+ val: r == null ? void 0 : r.value
122
129
  }))
123
130
  },
124
- visibleIf: ({ options: e }) => e?.manualValues?.conditional?.length > 0
131
+ visibleIf: ({ options: e }) => {
132
+ var l, r;
133
+ return ((r = (l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.conditional) == null ? void 0 : r.length) > 0;
134
+ }
125
135
  },
126
136
  {
127
137
  key: "circle.width",
@@ -159,7 +169,10 @@ const r = () => [
159
169
  label: "Flip arc",
160
170
  default: !0
161
171
  },
162
- visibleIf: ({ options: e }) => e?.circle?.degrees && e?.circle?.degrees !== 360
172
+ visibleIf: ({ options: e }) => {
173
+ var l, r;
174
+ return ((l = e == null ? void 0 : e.circle) == null ? void 0 : l.degrees) && ((r = e == null ? void 0 : e.circle) == null ? void 0 : r.degrees) !== 360;
175
+ }
163
176
  },
164
177
  {
165
178
  key: "circle.lineCap",
@@ -175,5 +188,5 @@ const r = () => [
175
188
  }
176
189
  ];
177
190
  export {
178
- s as default
191
+ g as default
179
192
  };
@@ -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 c=require("./helpers-DXQwEH1P.cjs"),n=()=>[{color:"#ff0000",value:0},{color:"#ffa500",value:33.34},{color:"#ffff00",value:66.67},{color:"#008000",value:100}],o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.gaugeValue",control:{type:"switch",label:"Value",default:!0}},{key:"mode",control:{type:"picker",label:"Display",default:"normal",enum:["normal","percentage","difference"]}},{key:"display.gaugeLabel",control:{type:"switch",label:"Label",default:!0}},{type:"divider"},{key:"conditionalColor",control:{type:"switch",label:"Conditional color",default:!1,calculateValue:({options:e})=>{var l,r;return((r=(l=e==null?void 0:e.manualValues)==null?void 0:l.conditional)==null?void 0:r.length)>0},toOptions:({options:e,value:l})=>{var t,u,i;const r={...e},a=((u=(t=e==null?void 0:e.manualValues)==null?void 0:t.conditional)==null?void 0:u.length)>0;return l?a||(r.manualValues={...r==null?void 0:r.manualValues,conditional:n()}):(i=r==null?void 0:r.manualValues)==null||delete i.conditional,r}}},{key:"circle.color",control:{type:"color-picker",label:"Arc color",default:({theme:e})=>c.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>c.getThemeMainColorResetLabel(e,l,"circle.color"),extraLabelHasClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelHasClickAction(e,l,"circle.color"),extraLabelClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelClickAction(e,l,"circle.color")},visibleIf:({options:e})=>{var l,r,a;return!((l=e==null?void 0:e.manualValues)!=null&&l.conditional)||((a=(r=e==null?void 0:e.manualValues)==null?void 0:r.conditional)==null?void 0:a.length)===0}},{key:"manualValues.conditional",control:{type:"color-range",editRangeSize:!0,minimumRangeSize:2,percentage:!0,noAlphaChannel:!0,label:"Color ranges",hideLabel:!0,default:()=>n(),parseValue:e=>e==null?void 0:e.map(l=>({color:l==null?void 0:l.color,value:(l==null?void 0:l.value)??(l==null?void 0:l.val)})),toValue:e=>e==null?void 0:e.map(r=>({color:r==null?void 0:r.color,val:r==null?void 0:r.value}))},visibleIf:({options:e})=>{var l,r;return((r=(l=e==null?void 0:e.manualValues)==null?void 0:l.conditional)==null?void 0:r.length)>0}},{key:"circle.width",control:{type:"slider",label:"Arc width",default:10,min:1,max:30,step:1}}]},{key:"layout",type:"group",open:!0,children:[{key:"circle.degrees",control:{type:"picker",label:"Arc size",default:"full circle",enum:["full circle","3/4 circle","2/3 circle","1/2 circle"],parseValue:e=>e===360?"full circle":e===270?"3/4 circle":e===240?"2/3 circle":e===180?"1/2 circle":"full circle",toValue:e=>e==="full circle"?360:e==="3/4 circle"?270:e==="2/3 circle"?240:e==="1/2 circle"?180:360}},{key:"circle.flip",control:{type:"switch",label:"Flip arc",default:!0},visibleIf:({options:e})=>{var l,r;return((l=e==null?void 0:e.circle)==null?void 0:l.degrees)&&((r=e==null?void 0:e.circle)==null?void 0:r.degrees)!==360}},{key:"circle.lineCap",control:{type:"switch",label:"Rounded ends",default:!0,parseValue:e=>e!=="butt",toValue:e=>e?"round":"butt"}}]}];exports.default=o;