@luzmo/analytics-components-kit 1.0.1-alpha.90 → 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 (253) hide show
  1. package/README.md +195 -0
  2. package/angular/README.md +1 -0
  3. package/angular/components/widget-menu.component.ts +25 -0
  4. package/angular/esm/components/widget-menu.component.d.ts +13 -0
  5. package/angular/esm/components/widget-menu.component.js +49 -0
  6. package/angular/esm/index.d.ts +3 -1
  7. package/angular/esm/index.js +4 -1
  8. package/angular/esm/types.d.ts +4 -0
  9. package/angular/index.ts +4 -1
  10. package/angular/types.ts +6 -0
  11. package/components/ai-chat-message-assistant/index.cjs +1 -1
  12. package/components/ai-chat-message-assistant/index.js +1 -0
  13. package/components/ai-chat-messages-container/index.cjs +1 -1
  14. package/components/ai-chat-messages-container/index.js +2 -2
  15. package/components/ai-interaction-textarea/index.cjs +1 -1
  16. package/components/ai-interaction-textarea/index.js +2 -1
  17. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  18. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  19. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  20. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  21. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  22. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  23. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  24. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  25. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  26. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  27. package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
  28. package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
  29. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  30. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  31. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  32. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  33. package/components/color-B6LaL8qz.cjs +20 -0
  34. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  35. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  36. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  37. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  38. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  39. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  40. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  41. package/components/dataset-icon/index.cjs +1 -1
  42. package/components/dataset-icon/index.js +2 -1
  43. package/components/dataset-selector-list/index.cjs +1 -1
  44. package/components/dataset-selector-list/index.js +35 -32
  45. package/components/dataset-selector-row/index.cjs +9 -9
  46. package/components/dataset-selector-row/index.js +53 -51
  47. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  48. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  49. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  50. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  51. package/components/display-settings/index.cjs +1 -1
  52. package/components/display-settings/index.js +1 -1
  53. package/components/display-settings-binning/index.cjs +5 -5
  54. package/components/display-settings-binning/index.js +30 -29
  55. package/components/display-settings-datetime/index.cjs +29 -29
  56. package/components/display-settings-datetime/index.js +120 -112
  57. package/components/display-settings-grand-totals/index.cjs +4 -4
  58. package/components/display-settings-grand-totals/index.js +24 -23
  59. package/components/display-settings-numeric/index.cjs +48 -48
  60. package/components/display-settings-numeric/index.js +211 -194
  61. package/components/display-settings-period-over-period/index.cjs +16 -16
  62. package/components/display-settings-period-over-period/index.js +97 -91
  63. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  64. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  65. package/components/draggable-data-item/index.cjs +5 -5
  66. package/components/draggable-data-item/index.js +46 -45
  67. package/components/draggable-data-item-level/index.cjs +11 -11
  68. package/components/draggable-data-item-level/index.js +73 -70
  69. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  70. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  71. package/components/droppable-slot/index.cjs +16 -16
  72. package/components/droppable-slot/index.js +223 -208
  73. package/components/edit-item/index.cjs +9 -9
  74. package/components/edit-item/index.js +119 -116
  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 +53 -52
  79. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  80. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.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 +117 -106
  87. package/components/edit-option-multi-language-field/index.cjs +3 -3
  88. package/components/edit-option-multi-language-field/index.js +27 -26
  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 +25 -21
  95. package/components/edit-option-positions-number-field/index.cjs +9 -9
  96. package/components/edit-option-positions-number-field/index.js +81 -76
  97. package/components/edit-option-radio-button-group/index.cjs +6 -6
  98. package/components/edit-option-radio-button-group/index.js +22 -21
  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 +23 -22
  105. package/components/en-BKBhKBXY.cjs +20 -0
  106. package/components/en-BOTjhwEc.js +1488 -0
  107. package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
  108. package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  109. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  110. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  111. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  112. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  113. package/components/filter-data-item-picker/index.cjs +7 -7
  114. package/components/filter-data-item-picker/index.js +86 -85
  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 +119 -109
  119. package/components/filter-value-picker/index.cjs +2 -2
  120. package/components/filter-value-picker/index.js +36 -34
  121. package/components/filter-value-picker-datetime/index.cjs +8 -8
  122. package/components/filter-value-picker-datetime/index.js +71 -56
  123. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  124. package/components/filter-value-picker-hierarchy/index.js +124 -113
  125. package/components/filter-value-picker-numeric/index.cjs +8 -8
  126. package/components/filter-value-picker-numeric/index.js +110 -101
  127. package/components/focusable-B3E_hQmm.cjs +20 -0
  128. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  129. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  130. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  131. package/components/get-css-variable-BEYG097C.js +1446 -0
  132. package/components/get-css-variable-BZxY4IOa.cjs +35 -0
  133. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  134. package/components/{get-css-variable-CdwF98oh.js → get-css-variable-YlLiVgo8.js} +35 -35
  135. package/components/grid/index.cjs +49 -43
  136. package/components/grid/index.js +1878 -2610
  137. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  138. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  139. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  140. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  141. package/components/helpers-DXQwEH1P.cjs +20 -0
  142. package/components/helpers-v1bPALRP.js +91 -0
  143. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  144. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  145. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  146. package/components/index-CDi4fe3N.js +1716 -0
  147. package/components/index-CQ9ck-BO.cjs +249 -0
  148. package/components/index-CXn67vdn.cjs +121 -0
  149. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  150. package/components/index-Cz9vSXy6.cjs +20 -0
  151. package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
  152. package/components/index-Dn0j_pcR.cjs +20 -0
  153. package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
  154. package/components/index-E239Dotg.js +1735 -0
  155. package/components/index.cjs +1 -1
  156. package/components/index.js +20 -18
  157. package/components/item-options-configs.cjs +1 -1
  158. package/components/item-options-configs.js +37 -37
  159. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  160. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  161. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  162. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  163. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  164. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  165. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  166. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  167. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  168. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  169. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  170. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  171. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  172. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  173. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  174. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  175. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  176. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  177. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  178. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  179. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  180. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  181. package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
  182. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  183. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  184. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  185. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  186. package/components/slot-contents-picker/index.cjs +33 -33
  187. package/components/slot-contents-picker/index.js +205 -194
  188. package/components/slot-menu/index.cjs +12 -12
  189. package/components/slot-menu/index.js +184 -171
  190. package/components/slot-menu-list/index.cjs +3 -3
  191. package/components/slot-menu-list/index.js +103 -97
  192. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  193. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  194. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  195. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  196. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  197. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  198. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  199. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  200. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  201. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  202. package/components/utils.cjs +1 -1
  203. package/components/utils.js +97 -94
  204. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  205. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  206. package/components/widget-menu/index.cjs +51 -0
  207. package/components/widget-menu/index.d.ts +8 -0
  208. package/components/widget-menu/index.js +211 -0
  209. package/components/widget-menu/widget-menu.d.ts +77 -0
  210. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  211. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  212. package/custom-elements.json +133 -20
  213. package/index.d.ts +1 -0
  214. package/package.json +6 -1
  215. package/types.d.ts +4 -0
  216. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  217. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  218. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  219. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  220. package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
  221. package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
  222. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  223. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  224. package/components/color-Czp4Im5q.cjs +0 -20
  225. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  226. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  227. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  228. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  229. package/components/en-D3ihEGXg.js +0 -1483
  230. package/components/en-DZcn_iz_.cjs +0 -20
  231. package/components/focusable-QLh-LlNt.cjs +0 -20
  232. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  233. package/components/get-css-variable-COd1d84B.cjs +0 -24
  234. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  235. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  236. package/components/helpers-9I0oLoUB.cjs +0 -20
  237. package/components/helpers-bR8Ibjqh.js +0 -79
  238. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  239. package/components/index-BekTY3Em.cjs +0 -121
  240. package/components/index-CFL6gmIu.cjs +0 -20
  241. package/components/index-DNPULp4A.js +0 -1755
  242. package/components/index-DvkzMbLt.cjs +0 -249
  243. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  244. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  245. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  246. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  247. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  248. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  249. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  250. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  251. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  252. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  253. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -17,8 +17,14 @@
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 a, a as r, b as i, c as n } from "./helpers-bR8Ibjqh.js";
21
- const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "color")?.content?.length > 0 : !1, l = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? !(e?.find((t) => t?.name === "color")?.content?.length > 0) : !0, b = [
20
+ import { g as i, a as n, b as c, c as b } from "./helpers-v1bPALRP.js";
21
+ const o = ({ slots: e }) => {
22
+ var l, t;
23
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((t = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : t.length) > 0 : !1;
24
+ }, r = ({ slots: e }) => {
25
+ var l, t;
26
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((t = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : t.length) > 0) : !0;
27
+ }, g = [
22
28
  {
23
29
  key: "general",
24
30
  type: "group",
@@ -67,19 +73,22 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
67
73
  label: "Bubble color by category",
68
74
  default: !0
69
75
  },
70
- visibleIf: l
76
+ visibleIf: r
71
77
  },
72
78
  {
73
79
  key: "color",
74
80
  control: {
75
81
  type: "color-picker",
76
82
  label: "Bubble color",
77
- default: ({ theme: e }) => n(e),
78
- extraLabel: ({ options: e, theme: t }) => i(e, t, "color"),
79
- extraLabelHasClickAction: ({ options: e, theme: t }) => r(e, t, "color"),
80
- extraLabelClickAction: ({ options: e, theme: t }) => a(e, t, "color")
83
+ default: ({ theme: e }) => b(e),
84
+ extraLabel: ({ options: e, theme: l }) => c(e, l, "color"),
85
+ extraLabelHasClickAction: ({ options: e, theme: l }) => n(e, l, "color"),
86
+ extraLabelClickAction: ({ options: e, theme: l }) => i(e, l, "color")
81
87
  },
82
- visibleIf: ({ options: e, slots: t }) => e?.categories?.colored === !1 && l({ slots: t })
88
+ visibleIf: ({ options: e, slots: l }) => {
89
+ var t;
90
+ return ((t = e == null ? void 0 : e.categories) == null ? void 0 : t.colored) === !1 && r({ slots: l });
91
+ }
83
92
  }
84
93
  ]
85
94
  },
@@ -111,5 +120,5 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
111
120
  }
112
121
  ];
113
122
  export {
114
- b as default
123
+ g as default
115
124
  };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./helpers-DXQwEH1P.cjs"),a=({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:!1},i=({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:"display.bubbleLabels",control:{type:"switch",label:"Show labels",tooltip:"If enough room available",default:!0}},{key:"display.bubbleValues",control:{type:"picker",label:"Show values",tooltip:"If enough room available",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Bubble color by category",default:!0},visibleIf:i},{key:"color",control:{type:"color-picker",label:"Bubble color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>o.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:({options:e,slots:t})=>{var l;return((l=e==null?void 0:e.categories)==null?void 0:l.colored)===!1&&i({slots:t})}}]},{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:a}];exports.default=n;
@@ -17,7 +17,7 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- import { g as t, a as o, b as a, c as r } from "./helpers-bR8Ibjqh.js";
20
+ import { g as t, a as o, b as a, c as r } from "./helpers-v1bPALRP.js";
21
21
  const i = [
22
22
  {
23
23
  key: "general",
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./helpers-9I0oLoUB.cjs"),o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.ranges",control:{type:"switch",label:"Ranges",default:!0}},{key:"display.bulletSubtitles",control:{type:"switch",label:"Bullet subtitle",default:!1}},{key:"color",control:{type:"color-picker",label:"Bullet 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")}},{key:"sort.direction",control:{type:"picker",label:"Bullet order",default:"asc",enum:["asc","desc"]}}]}];exports.default=o;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./helpers-DXQwEH1P.cjs"),o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.ranges",control:{type:"switch",label:"Ranges",default:!0}},{key:"display.bulletSubtitles",control:{type:"switch",label:"Bullet subtitle",default:!1}},{key:"color",control:{type:"color-picker",label:"Bullet 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")}},{key:"sort.direction",control:{type:"picker",label:"Bullet order",default:"asc",enum:["asc","desc"]}}]}];exports.default=o;
@@ -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;