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

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 (235) hide show
  1. package/components/ai-chat-message-assistant/index.cjs +1 -1
  2. package/components/ai-chat-message-assistant/index.js +1 -0
  3. package/components/ai-chat-messages-container/index.cjs +1 -1
  4. package/components/ai-chat-messages-container/index.js +2 -2
  5. package/components/ai-interaction-textarea/index.cjs +1 -1
  6. package/components/ai-interaction-textarea/index.js +2 -1
  7. package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
  8. package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
  9. package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
  10. package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
  11. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  12. package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
  13. package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
  14. package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
  15. package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
  16. package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
  17. package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
  18. package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
  19. package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
  20. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  21. package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
  22. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  23. package/components/color-B6LaL8qz.cjs +20 -0
  24. package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
  25. package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
  26. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  27. package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
  28. package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
  29. package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
  30. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  31. package/components/dataset-icon/index.cjs +1 -1
  32. package/components/dataset-icon/index.js +2 -1
  33. package/components/dataset-selector-list/index.cjs +1 -1
  34. package/components/dataset-selector-list/index.js +35 -32
  35. package/components/dataset-selector-row/index.cjs +9 -9
  36. package/components/dataset-selector-row/index.js +52 -50
  37. package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
  38. package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
  39. package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
  40. package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
  41. package/components/display-settings/index.cjs +1 -1
  42. package/components/display-settings/index.js +1 -1
  43. package/components/display-settings-binning/index.cjs +5 -5
  44. package/components/display-settings-binning/index.js +30 -29
  45. package/components/display-settings-datetime/index.cjs +29 -29
  46. package/components/display-settings-datetime/index.js +120 -112
  47. package/components/display-settings-grand-totals/index.cjs +4 -4
  48. package/components/display-settings-grand-totals/index.js +24 -23
  49. package/components/display-settings-numeric/index.cjs +48 -48
  50. package/components/display-settings-numeric/index.js +206 -190
  51. package/components/display-settings-period-over-period/index.cjs +16 -16
  52. package/components/display-settings-period-over-period/index.js +97 -91
  53. package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
  54. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  55. package/components/draggable-data-item/index.cjs +5 -5
  56. package/components/draggable-data-item/index.js +46 -45
  57. package/components/draggable-data-item-level/index.cjs +11 -11
  58. package/components/draggable-data-item-level/index.js +73 -70
  59. package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
  60. package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  61. package/components/droppable-slot/index.cjs +16 -16
  62. package/components/droppable-slot/index.js +223 -208
  63. package/components/edit-item/index.cjs +9 -9
  64. package/components/edit-item/index.js +119 -116
  65. package/components/edit-option/index.cjs +1 -1
  66. package/components/edit-option/index.js +1 -1
  67. package/components/edit-option-action-button-group/index.cjs +8 -8
  68. package/components/edit-option-action-button-group/index.js +53 -52
  69. package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
  70. package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
  71. package/components/edit-option-color-palette-picker/index.cjs +1 -1
  72. package/components/edit-option-color-palette-picker/index.js +1 -1
  73. package/components/edit-option-color-picker/index.cjs +1 -1
  74. package/components/edit-option-color-picker/index.js +1 -1
  75. package/components/edit-option-color-range/index.cjs +19 -19
  76. package/components/edit-option-color-range/index.js +117 -106
  77. package/components/edit-option-multi-language-field/index.cjs +3 -3
  78. package/components/edit-option-multi-language-field/index.js +27 -26
  79. package/components/edit-option-number-field/index.cjs +1 -1
  80. package/components/edit-option-number-field/index.js +1 -1
  81. package/components/edit-option-picker/index.cjs +5 -5
  82. package/components/edit-option-picker/index.js +7 -7
  83. package/components/edit-option-position-picker/index.cjs +4 -4
  84. package/components/edit-option-position-picker/index.js +25 -21
  85. package/components/edit-option-positions-number-field/index.cjs +9 -9
  86. package/components/edit-option-positions-number-field/index.js +81 -76
  87. package/components/edit-option-radio-button-group/index.cjs +6 -6
  88. package/components/edit-option-radio-button-group/index.js +22 -21
  89. package/components/edit-option-slider/index.cjs +1 -1
  90. package/components/edit-option-slider/index.js +1 -1
  91. package/components/edit-option-switch/index.cjs +1 -1
  92. package/components/edit-option-switch/index.js +1 -1
  93. package/components/edit-option-text-field/index.cjs +2 -2
  94. package/components/edit-option-text-field/index.js +23 -22
  95. package/components/en-BKBhKBXY.cjs +20 -0
  96. package/components/en-BOTjhwEc.js +1488 -0
  97. package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
  98. package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
  99. package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  100. package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
  101. package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
  102. package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
  103. package/components/filter-data-item-picker/index.cjs +7 -7
  104. package/components/filter-data-item-picker/index.js +86 -85
  105. package/components/filter-expression-picker/index.cjs +1 -1
  106. package/components/filter-expression-picker/index.js +1 -1
  107. package/components/filter-item/index.cjs +6 -6
  108. package/components/filter-item/index.js +119 -109
  109. package/components/filter-value-picker/index.cjs +2 -2
  110. package/components/filter-value-picker/index.js +36 -34
  111. package/components/filter-value-picker-datetime/index.cjs +8 -8
  112. package/components/filter-value-picker-datetime/index.js +71 -56
  113. package/components/filter-value-picker-hierarchy/index.cjs +12 -12
  114. package/components/filter-value-picker-hierarchy/index.js +124 -113
  115. package/components/filter-value-picker-numeric/index.cjs +8 -8
  116. package/components/filter-value-picker-numeric/index.js +110 -101
  117. package/components/focusable-B3E_hQmm.cjs +20 -0
  118. package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
  119. package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
  120. package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
  121. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  122. package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
  123. package/components/grid/index.cjs +49 -43
  124. package/components/grid/index.js +1878 -2610
  125. package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
  126. package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
  127. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  128. package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
  129. package/components/helpers-DXQwEH1P.cjs +20 -0
  130. package/components/helpers-v1bPALRP.js +91 -0
  131. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  132. package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
  133. package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
  134. package/components/index-CDi4fe3N.js +1716 -0
  135. package/components/index-CQ9ck-BO.cjs +249 -0
  136. package/components/index-CXn67vdn.cjs +121 -0
  137. package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
  138. package/components/index-Cz9vSXy6.cjs +20 -0
  139. package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
  140. package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
  141. package/components/index.cjs +1 -1
  142. package/components/index.js +5 -5
  143. package/components/item-options-configs.cjs +1 -1
  144. package/components/item-options-configs.js +37 -37
  145. package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
  146. package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
  147. package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
  148. package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
  149. package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
  150. package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
  151. package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
  152. package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
  153. package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
  154. package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
  155. package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
  156. package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
  157. package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
  158. package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
  159. package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
  160. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  161. package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
  162. package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
  163. package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
  164. package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
  165. package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  166. package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
  167. package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
  168. package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
  169. package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
  170. package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
  171. package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
  172. package/components/slot-contents-picker/index.cjs +33 -33
  173. package/components/slot-contents-picker/index.js +205 -194
  174. package/components/slot-menu/index.cjs +12 -12
  175. package/components/slot-menu/index.js +184 -171
  176. package/components/slot-menu-list/index.cjs +3 -3
  177. package/components/slot-menu-list/index.js +103 -97
  178. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  179. package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
  180. package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
  181. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  182. package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
  183. package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
  184. package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
  185. package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
  186. package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
  187. package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
  188. package/components/utils.cjs +1 -1
  189. package/components/utils.js +97 -94
  190. package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  191. package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
  192. package/components/viz-item-menu/index.cjs +2 -2
  193. package/components/viz-item-menu/index.js +5 -4
  194. package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
  195. package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
  196. package/custom-elements.json +0 -20
  197. package/package.json +1 -1
  198. package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
  199. package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
  200. package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
  201. package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
  202. package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
  203. package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
  204. package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
  205. package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
  206. package/components/color-Czp4Im5q.cjs +0 -20
  207. package/components/color-range-utils-DYYR-iwx.cjs +0 -20
  208. package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
  209. package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
  210. package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
  211. package/components/en-D3ihEGXg.js +0 -1483
  212. package/components/en-DZcn_iz_.cjs +0 -20
  213. package/components/focusable-QLh-LlNt.cjs +0 -20
  214. package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
  215. package/components/get-css-variable-Pzks_rOx.cjs +0 -24
  216. package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
  217. package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
  218. package/components/helpers-9I0oLoUB.cjs +0 -20
  219. package/components/helpers-bR8Ibjqh.js +0 -79
  220. package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
  221. package/components/index-BekTY3Em.cjs +0 -121
  222. package/components/index-CFL6gmIu.cjs +0 -20
  223. package/components/index-DNPULp4A.js +0 -1755
  224. package/components/index-DvkzMbLt.cjs +0 -249
  225. package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
  226. package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
  227. package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
  228. package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
  229. package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
  230. package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
  231. package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
  232. package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
  233. package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
  234. package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
  235. package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
@@ -17,21 +17,28 @@
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 o, a as p } from "./color-palettes-BqH2Fv19.js";
21
- import { m as d } from "./index-t45_zv93.js";
22
- import { g as C, a as k, b as h, c as V } from "./helpers-bR8Ibjqh.js";
23
- import { t as r, c as n, a as i } from "./color-range-utils-BSfqtB3A.js";
24
- const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a?.name === "color")?.content?.length === 0 : !0, f = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a?.name === "color")?.content?.length > 0 : !1, t = ({ slots: e }) => {
25
- if (Array.isArray(e) && e?.length > 0) {
26
- const a = e?.find((l) => l?.name === "color");
27
- if (a) {
28
- const l = a?.content;
20
+ import { g as f, a as d } from "./color-palettes-BqH2Fv19.js";
21
+ import { m as T } from "./index-t45_zv93.js";
22
+ import { g as L, a as I, b as x, c as R } from "./helpers-v1bPALRP.js";
23
+ import { t as s, c as g, a as b } from "./color-range-utils-Bvo9sm5A.js";
24
+ const M = ({ slots: e }) => {
25
+ var a, r;
26
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((r = (a = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : a.content) == null ? void 0 : r.length) === 0 : !0;
27
+ }, h = ({ slots: e }) => {
28
+ var a, r;
29
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((r = (a = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : a.content) == null ? void 0 : r.length) > 0 : !1;
30
+ }, c = ({ slots: e }) => {
31
+ var a;
32
+ if (Array.isArray(e) && (e == null ? void 0 : e.length) > 0) {
33
+ const r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color");
34
+ if (r) {
35
+ const l = r == null ? void 0 : r.content;
29
36
  if (l)
30
- return l?.filter((s) => s?.type === "numeric")?.length > 0;
37
+ return ((a = l == null ? void 0 : l.filter((u) => (u == null ? void 0 : u.type) === "numeric")) == null ? void 0 : a.length) > 0;
31
38
  }
32
39
  }
33
40
  return !1;
34
- }, O = [
41
+ }, q = [
35
42
  {
36
43
  key: "general",
37
44
  type: "group",
@@ -52,7 +59,7 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
52
59
  label: "Legend",
53
60
  default: !0
54
61
  },
55
- visibleIf: f
62
+ visibleIf: h
56
63
  },
57
64
  {
58
65
  key: "enabled.zoom",
@@ -101,8 +108,8 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
101
108
  "Voyager",
102
109
  "No Tiles"
103
110
  ],
104
- parseValue: (e) => e?.name || "Basic",
105
- toValue: (e) => d[e] ?? {}
111
+ parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
112
+ toValue: (e) => T[e] ?? {}
106
113
  }
107
114
  }
108
115
  ]
@@ -117,10 +124,10 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
117
124
  control: {
118
125
  type: "color-picker",
119
126
  label: "Spike color",
120
- default: ({ theme: e }) => V(e),
121
- extraLabel: ({ options: e, theme: a }) => h(e, a, "color"),
122
- extraLabelHasClickAction: ({ options: e, theme: a }) => k(e, a, "color"),
123
- extraLabelClickAction: ({ options: e, theme: a }) => C(e, a, "color")
127
+ default: ({ theme: e }) => R(e),
128
+ extraLabel: ({ options: e, theme: a }) => x(e, a, "color"),
129
+ extraLabelHasClickAction: ({ options: e, theme: a }) => I(e, a, "color"),
130
+ extraLabelClickAction: ({ options: e, theme: a }) => L(e, a, "color")
124
131
  },
125
132
  visibleIf: M
126
133
  },
@@ -182,35 +189,42 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
182
189
  label: "Colors type",
183
190
  default: "sequential",
184
191
  enum: ["sequential", "divergent", "manual"],
185
- calculateValue: ({ options: e }) => e?.colorsClass === "manual" ? "manual" : o()?.[e?.colorsClass]?.type ?? "sequential",
192
+ calculateValue: ({ options: e }) => {
193
+ var l;
194
+ if ((e == null ? void 0 : e.colorsClass) === "manual")
195
+ return "manual";
196
+ const a = f();
197
+ return ((l = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : l.type) ?? "sequential";
198
+ },
186
199
  toOptions: ({ options: e, value: a }) => {
187
- const l = e?.colorsClass ?? "PuBu", s = e?.numberClasses ?? 5, u = r(
188
- e?.manualValues?.ranges
189
- ), g = l === "manual" ? "manual" : l;
190
- let c;
200
+ var C, i, k;
201
+ const r = (e == null ? void 0 : e.colorsClass) ?? "PuBu", l = (e == null ? void 0 : e.numberClasses) ?? 5, u = s(
202
+ (C = e == null ? void 0 : e.manualValues) == null ? void 0 : C.ranges
203
+ ), n = r === "manual" ? "manual" : r;
204
+ let t;
191
205
  if (a === "manual")
192
- c = "manual";
206
+ t = "manual";
193
207
  else {
194
- const b = o()?.[e?.colorsClass]?.type;
195
- a !== b && (c = p(a ?? "sequential")[0]);
208
+ const y = f(), V = (i = y == null ? void 0 : y[e == null ? void 0 : e.colorsClass]) == null ? void 0 : i.type;
209
+ a !== V && (t = d(a ?? "sequential")[0]);
196
210
  }
197
- const m = { ...e, colorsClass: c };
198
- if (a === "manual" || e?.classification === "manual") {
199
- const y = n(
200
- s,
201
- a === "manual" ? g : c,
211
+ const m = { ...e, colorsClass: t };
212
+ if (a === "manual" || (e == null ? void 0 : e.classification) === "manual") {
213
+ const y = g(
214
+ l,
215
+ a === "manual" ? n : t,
202
216
  u
203
217
  );
204
218
  m.manualValues = {
205
219
  ...m.manualValues,
206
- ranges: i(y)
220
+ ranges: b(y)
207
221
  };
208
222
  } else
209
- delete m?.manualValues?.ranges;
223
+ (k = m == null ? void 0 : m.manualValues) == null || delete k.ranges;
210
224
  return m;
211
225
  }
212
226
  },
213
- visibleIf: t
227
+ visibleIf: c
214
228
  },
215
229
  {
216
230
  key: "colorsClass",
@@ -219,29 +233,32 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
219
233
  label: "Color palette",
220
234
  hideLabel: !0,
221
235
  default: ({ options: e }) => {
222
- const l = o()?.[e?.colorsClass]?.type;
223
- return p(l ?? "sequential")[0];
236
+ var l;
237
+ const a = f(), r = (l = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : l.type;
238
+ return d(r ?? "sequential")[0];
224
239
  },
225
240
  enum: ({ options: e }) => {
226
- const l = o()?.[e?.colorsClass]?.type;
227
- return p(l ?? "sequential");
241
+ var l;
242
+ const a = f(), r = (l = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : l.type;
243
+ return d(r ?? "sequential");
228
244
  },
229
245
  toOptions: ({ options: e, value: a }) => {
230
- const l = { ...e, colorsClass: a };
231
- if (e?.classification === "manual") {
232
- const s = o()[a]?.[`colors${e?.numberClasses ?? 5}`];
233
- l.manualValues = {
234
- ...l.manualValues,
235
- ranges: e?.manualValues?.ranges.map((u) => ({
236
- ...u,
237
- color: s?.[u.val]
246
+ var l, u;
247
+ const r = { ...e, colorsClass: a };
248
+ if ((e == null ? void 0 : e.classification) === "manual") {
249
+ const n = (l = f()[a]) == null ? void 0 : l[`colors${(e == null ? void 0 : e.numberClasses) ?? 5}`];
250
+ r.manualValues = {
251
+ ...r.manualValues,
252
+ ranges: (u = e == null ? void 0 : e.manualValues) == null ? void 0 : u.ranges.map((t) => ({
253
+ ...t,
254
+ color: n == null ? void 0 : n[t.val]
238
255
  }))
239
256
  };
240
257
  }
241
- return l;
258
+ return r;
242
259
  }
243
260
  },
244
- visibleIf: ({ options: e, slots: a }) => t({ slots: a }) && e?.colorsClass !== "manual"
261
+ visibleIf: ({ options: e, slots: a }) => c({ slots: a }) && (e == null ? void 0 : e.colorsClass) !== "manual"
245
262
  },
246
263
  {
247
264
  key: "manualValues.ranges",
@@ -254,22 +271,25 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
254
271
  label: "Manual range colors",
255
272
  hideLabel: !0
256
273
  },
257
- calculateValue: ({ options: e }) => n(
258
- e?.numberClasses,
259
- e?.colorsClass,
260
- r(e?.manualValues?.ranges)
261
- ),
274
+ calculateValue: ({ options: e }) => {
275
+ var a;
276
+ return g(
277
+ e == null ? void 0 : e.numberClasses,
278
+ e == null ? void 0 : e.colorsClass,
279
+ s((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
280
+ );
281
+ },
262
282
  toOptions: ({ options: e, value: a }) => ({
263
283
  ...e,
264
284
  manualValues: {
265
285
  ...e.manualValues,
266
- ranges: i(a)
286
+ ranges: b(a)
267
287
  }
268
288
  }),
269
- visibleIf: ({ options: e, slots: a }) => t({ slots: a }) && e?.colorsClass === "manual"
289
+ visibleIf: ({ options: e, slots: a }) => c({ slots: a }) && (e == null ? void 0 : e.colorsClass) === "manual"
270
290
  }
271
291
  ],
272
- visibleIf: t
292
+ visibleIf: c
273
293
  },
274
294
  {
275
295
  key: "classification",
@@ -283,25 +303,26 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
283
303
  label: "Number of classes",
284
304
  default: "5",
285
305
  enum: ["3", "4", "5", "6", "7", "8", "9"],
286
- parseValue: (e) => e?.toString() ?? "5",
306
+ parseValue: (e) => (e == null ? void 0 : e.toString()) ?? "5",
287
307
  toOptions: ({ options: e, value: a }) => {
308
+ var l;
288
309
  a = Number.parseInt(a, 10) ?? 5;
289
- const l = { ...e, numberClasses: a };
290
- if (e?.classification === "manual" || e?.colorsClass === "manual") {
291
- const s = n(
310
+ const r = { ...e, numberClasses: a };
311
+ if ((e == null ? void 0 : e.classification) === "manual" || (e == null ? void 0 : e.colorsClass) === "manual") {
312
+ const u = g(
292
313
  a,
293
- e?.colorsClass,
294
- r(e?.manualValues?.ranges)
314
+ e == null ? void 0 : e.colorsClass,
315
+ s((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.ranges)
295
316
  );
296
- l.manualValues = {
297
- ...l.manualValues,
298
- ranges: i(s)
317
+ r.manualValues = {
318
+ ...r.manualValues,
319
+ ranges: b(u)
299
320
  };
300
321
  }
301
- return l;
322
+ return r;
302
323
  }
303
324
  },
304
- visibleIf: t
325
+ visibleIf: c
305
326
  },
306
327
  {
307
328
  key: "classification",
@@ -311,23 +332,24 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
311
332
  default: "interval",
312
333
  enum: ["interval", "manual", "quantile", "continuous"],
313
334
  toOptions: ({ options: e, value: a }) => {
314
- const l = { ...e, classification: a };
315
- if (a === "manual" || e?.colorsClass === "manual") {
316
- const s = n(
317
- e?.numberClasses,
318
- e?.colorsClass,
319
- r(e?.manualValues?.ranges)
335
+ var l, u;
336
+ const r = { ...e, classification: a };
337
+ if (a === "manual" || (e == null ? void 0 : e.colorsClass) === "manual") {
338
+ const n = g(
339
+ e == null ? void 0 : e.numberClasses,
340
+ e == null ? void 0 : e.colorsClass,
341
+ s((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.ranges)
320
342
  );
321
- l.manualValues = {
322
- ...l.manualValues,
323
- ranges: i(s)
343
+ r.manualValues = {
344
+ ...r.manualValues,
345
+ ranges: b(n)
324
346
  };
325
347
  } else
326
- delete l?.manualValues?.ranges;
327
- return l;
348
+ (u = r == null ? void 0 : r.manualValues) == null || delete u.ranges;
349
+ return r;
328
350
  }
329
351
  },
330
- visibleIf: t
352
+ visibleIf: c
331
353
  },
332
354
  {
333
355
  key: "manualValues.rangesValues",
@@ -339,23 +361,26 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
339
361
  readOnlyColorPicker: !0,
340
362
  label: "Manual range values",
341
363
  hideLabel: !0,
342
- calculateValue: ({ options: e }) => n(
343
- e?.numberClasses,
344
- e?.colorsClass,
345
- r(e?.manualValues?.ranges)
346
- ),
364
+ calculateValue: ({ options: e }) => {
365
+ var a;
366
+ return g(
367
+ e == null ? void 0 : e.numberClasses,
368
+ e == null ? void 0 : e.colorsClass,
369
+ s((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
370
+ );
371
+ },
347
372
  toOptions: ({ options: e, value: a }) => ({
348
373
  ...e,
349
374
  manualValues: {
350
375
  ...e.manualValues,
351
- ranges: i(a)
376
+ ranges: b(a)
352
377
  }
353
378
  })
354
379
  },
355
- visibleIf: ({ options: e, slots: a }) => t({ slots: a }) && e?.classification === "manual"
380
+ visibleIf: ({ options: e, slots: a }) => c({ slots: a }) && (e == null ? void 0 : e.classification) === "manual"
356
381
  }
357
382
  ],
358
- visibleIf: t
383
+ visibleIf: c
359
384
  },
360
385
  {
361
386
  key: "legend",
@@ -375,7 +400,10 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
375
400
  },
376
401
  selects: "single"
377
402
  },
378
- visibleIf: ({ options: e }) => e?.display?.legend !== !1
403
+ visibleIf: ({ options: e }) => {
404
+ var a;
405
+ return ((a = e == null ? void 0 : e.display) == null ? void 0 : a.legend) !== !1;
406
+ }
379
407
  },
380
408
  {
381
409
  key: "legend.position",
@@ -394,12 +422,15 @@ const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a
394
422
  "left"
395
423
  ]
396
424
  },
397
- visibleIf: ({ options: e }) => e?.display?.legend !== !1
425
+ visibleIf: ({ options: e }) => {
426
+ var a;
427
+ return ((a = e == null ? void 0 : e.display) == null ? void 0 : a.legend) !== !1;
428
+ }
398
429
  }
399
430
  ],
400
- visibleIf: f
431
+ visibleIf: h
401
432
  }
402
433
  ];
403
434
  export {
404
- O as default
435
+ q as default
405
436
  };
@@ -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 t=require("./color-palettes-DhNHcib8.cjs"),V=require("./index-DhDgy1sp.cjs"),f=require("./helpers-DXQwEH1P.cjs"),u=require("./color-range-utils-C5yXW7ZC.cjs"),k=({slots:e})=>{var a,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(a=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color"))==null?void 0:a.content)==null?void 0:r.length)===0:!0},C=({slots:e})=>{var a,r;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(a=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color"))==null?void 0:a.content)==null?void 0:r.length)>0:!1},n=({slots:e})=>{var a;if(Array.isArray(e)&&(e==null?void 0:e.length)>0){const r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color");if(r){const l=r==null?void 0:r.content;if(l)return((a=l==null?void 0:l.filter(c=>(c==null?void 0:c.type)==="numeric"))==null?void 0:a.length)>0}}return!1},R=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:C},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>V.mapVectorTileProviders[e]??{}}}]},{key:"spike",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Spike color",default:({theme:e})=>f.getThemeMainColor(e),extraLabel:({options:e,theme:a})=>f.getThemeMainColorResetLabel(e,a,"color"),extraLabelHasClickAction:({options:e,theme:a})=>f.getThemeMainColorExtraLabelHasClickAction(e,a,"color"),extraLabelClickAction:({options:e,theme:a})=>f.getThemeMainColorExtraLabelClickAction(e,a,"color")},visibleIf:k},{key:"spikeWidth",control:{type:"slider",label:"Width",default:30,min:1,max:100,step:1}},{key:"spikeHeight",control:{type:"slider",label:"Height",default:150,min:1,max:350,step:1}},{key:"strokeOpacity",control:{type:"slider",label:"Stroke opacity",default:.9,min:.1,max:1,step:.01}},{key:"fillOpacity",control:{type:"slider",label:"Fill opacity",default:.5,min:.1,max:1,step:.01}}]},{key:"colors",type:"group",open:!0,children:[{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>{var l;if((e==null?void 0:e.colorsClass)==="manual")return"manual";const a=t.getColorMaps();return((l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type)??"sequential"},toOptions:({options:e,value:a})=>{var b,d,i;const r=(e==null?void 0:e.colorsClass)??"PuBu",l=(e==null?void 0:e.numberClasses)??5,c=u.toRangesWithValue((b=e==null?void 0:e.manualValues)==null?void 0:b.ranges),g=r==="manual"?"manual":r;let m;if(a==="manual")m="manual";else{const y=t.getColorMaps(),h=(d=y==null?void 0:y[e==null?void 0:e.colorsClass])==null?void 0:d.type;a!==h&&(m=t.getColorMapKeys(a??"sequential")[0])}const s={...e,colorsClass:m};if(a==="manual"||(e==null?void 0:e.classification)==="manual"){const y=u.calculateManualRanges(l,a==="manual"?g:m,c);s.manualValues={...s.manualValues,ranges:u.toRangesWithVal(y)}}else(i=s==null?void 0:s.manualValues)==null||delete i.ranges;return s}},visibleIf:n},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{var l;const a=t.getColorMaps(),r=(l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type;return t.getColorMapKeys(r??"sequential")[0]},enum:({options:e})=>{var l;const a=t.getColorMaps(),r=(l=a==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:l.type;return t.getColorMapKeys(r??"sequential")},toOptions:({options:e,value:a})=>{var l,c;const r={...e,colorsClass:a};if((e==null?void 0:e.classification)==="manual"){const g=(l=t.getColorMaps()[a])==null?void 0:l[`colors${(e==null?void 0:e.numberClasses)??5}`];r.manualValues={...r.manualValues,ranges:(c=e==null?void 0:e.manualValues)==null?void 0:c.ranges.map(m=>({...m,color:g==null?void 0:g[m.val]}))}}return r}},visibleIf:({options:e,slots:a})=>n({slots:a})&&(e==null?void 0:e.colorsClass)!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!0,noAlphaChannel:!0,label:"Manual range colors",hideLabel:!0},calculateValue:({options:e})=>{var a;return u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((a=e==null?void 0:e.manualValues)==null?void 0:a.ranges))},toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:u.toRangesWithVal(a)}}),visibleIf:({options:e,slots:a})=>n({slots:a})&&(e==null?void 0:e.colorsClass)==="manual"}],visibleIf:n},{key:"classification",type:"group",open:!0,children:[{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>(e==null?void 0:e.toString())??"5",toOptions:({options:e,value:a})=>{var l;a=Number.parseInt(a,10)??5;const r={...e,numberClasses:a};if((e==null?void 0:e.classification)==="manual"||(e==null?void 0:e.colorsClass)==="manual"){const c=u.calculateManualRanges(a,e==null?void 0:e.colorsClass,u.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges));r.manualValues={...r.manualValues,ranges:u.toRangesWithVal(c)}}return r}},visibleIf:n},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:a})=>{var l,c;const r={...e,classification:a};if(a==="manual"||(e==null?void 0:e.colorsClass)==="manual"){const g=u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges));r.manualValues={...r.manualValues,ranges:u.toRangesWithVal(g)}}else(c=r==null?void 0:r.manualValues)==null||delete c.ranges;return r}},visibleIf:n},{key:"manualValues.rangesValues",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>{var a;return u.calculateManualRanges(e==null?void 0:e.numberClasses,e==null?void 0:e.colorsClass,u.toRangesWithValue((a=e==null?void 0:e.manualValues)==null?void 0:a.ranges))},toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:u.toRangesWithVal(a)}})},visibleIf:({options:e,slots:a})=>n({slots:a})&&(e==null?void 0:e.classification)==="manual"}],visibleIf:n},{key:"legend",type:"group",open:!1,children:[{key:"legend.size",control:{type:"action-button-group",label:"Size",default:["M"],values:{S:{buttonText:"S",label:"Small"},M:{buttonText:"M",label:"Medium"},L:{buttonText:"L",label:"Large"}},selects:"single"},visibleIf:({options:e})=>{var a;return((a=e==null?void 0:e.display)==null?void 0:a.legend)!==!1}},{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>{var a;return((a=e==null?void 0:e.display)==null?void 0:a.legend)!==!1}}],visibleIf:C}];exports.default=R;
@@ -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 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:!1}},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}}]},{key:"slices",type:"group",open:!0,children:[{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.rounding=="number")return typeof e?.roundedCorners!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.rounding!="number"||typeof e?.roundedCorners!="number"),extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,roundedCorners:void 0}})}},{key:"internalPadding",control:{type:"slider",label:"Internal padding",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.padding=="number")return typeof e?.internalPadding!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.padding!="number"||typeof e?.internalPadding!="number"),extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,internalPadding:void 0}})}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>e?.display?.legend}];exports.default=n;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const 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:!1}},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}}]},{key:"slices",type:"group",open:!0,children:[{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:r})=>{var t;if(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var t;return!(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)!="number"||typeof(e==null?void 0:e.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,roundedCorners:void 0}})}},{key:"internalPadding",control:{type:"slider",label:"Internal padding",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:r})=>{var t;if(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.padding)=="number")return typeof(e==null?void 0:e.internalPadding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var t;return!(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.padding)!="number"||typeof(e==null?void 0:e.internalPadding)!="number")},extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,internalPadding:void 0}})}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>{var r;return(r=e==null?void 0:e.display)==null?void 0:r.legend}}];exports.default=n;
@@ -63,11 +63,15 @@ const n = [
63
63
  min: 0,
64
64
  max: 24,
65
65
  step: 1,
66
- extraLabel: ({ options: e, theme: t }) => {
67
- if (typeof t?.itemSpecific?.rounding == "number")
68
- return typeof e?.roundedCorners != "number" ? "auto" : "reset";
66
+ extraLabel: ({ options: e, theme: r }) => {
67
+ var t;
68
+ if (typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.rounding) == "number")
69
+ return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
70
+ },
71
+ extraLabelHasClickAction: ({ options: e, theme: r }) => {
72
+ var t;
73
+ return !(typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
69
74
  },
70
- extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.rounding != "number" || typeof e?.roundedCorners != "number"),
71
75
  extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, roundedCorners: void 0 } })
72
76
  }
73
77
  },
@@ -80,11 +84,15 @@ const n = [
80
84
  min: 0,
81
85
  max: 20,
82
86
  step: 1,
83
- extraLabel: ({ options: e, theme: t }) => {
84
- if (typeof t?.itemSpecific?.padding == "number")
85
- return typeof e?.internalPadding != "number" ? "auto" : "reset";
87
+ extraLabel: ({ options: e, theme: r }) => {
88
+ var t;
89
+ if (typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.padding) == "number")
90
+ return typeof (e == null ? void 0 : e.internalPadding) != "number" ? "auto" : "reset";
91
+ },
92
+ extraLabelHasClickAction: ({ options: e, theme: r }) => {
93
+ var t;
94
+ return !(typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.padding) != "number" || typeof (e == null ? void 0 : e.internalPadding) != "number");
86
95
  },
87
- extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.padding != "number" || typeof e?.internalPadding != "number"),
88
96
  extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, internalPadding: void 0 } })
89
97
  }
90
98
  }
@@ -114,7 +122,10 @@ const n = [
114
122
  }
115
123
  }
116
124
  ],
117
- visibleIf: ({ options: e }) => e?.display?.legend
125
+ visibleIf: ({ options: e }) => {
126
+ var r;
127
+ return (r = e == null ? void 0 : e.display) == null ? void 0 : r.legend;
128
+ }
118
129
  }
119
130
  ];
120
131
  export {
@@ -18,8 +18,14 @@
18
18
  * SOFTWARE.
19
19
  * */
20
20
  import { m as o } from "./index-t45_zv93.js";
21
- import { g as l, a, b as r, c as i } from "./helpers-bR8Ibjqh.js";
22
- const n = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "category")?.content?.length === 0 : !0, c = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t?.name === "category")?.content?.length > 0 : !1, s = [
21
+ import { g as i, a as l, b as n, c } from "./helpers-v1bPALRP.js";
22
+ const y = ({ slots: e }) => {
23
+ var t, a;
24
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (t = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "category")) == null ? void 0 : t.content) == null ? void 0 : a.length) === 0 : !0;
25
+ }, p = ({ slots: e }) => {
26
+ var t, a;
27
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (t = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "category")) == null ? void 0 : t.content) == null ? void 0 : a.length) > 0 : !1;
28
+ }, f = [
23
29
  {
24
30
  key: "general",
25
31
  type: "group",
@@ -80,7 +86,7 @@ const n = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
80
86
  "Voyager",
81
87
  "No Tiles"
82
88
  ],
83
- parseValue: (e) => e?.name || "Basic",
89
+ parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
84
90
  toValue: (e) => o[e] ?? {}
85
91
  }
86
92
  }
@@ -96,12 +102,12 @@ const n = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
96
102
  control: {
97
103
  type: "color-picker",
98
104
  label: "Symbol color",
99
- default: ({ theme: e }) => i(e),
100
- extraLabel: ({ options: e, theme: t }) => r(e, t, "color"),
101
- extraLabelHasClickAction: ({ options: e, theme: t }) => a(e, t, "color"),
102
- extraLabelClickAction: ({ options: e, theme: t }) => l(e, t, "color")
105
+ default: ({ theme: e }) => c(e),
106
+ extraLabel: ({ options: e, theme: t }) => n(e, t, "color"),
107
+ extraLabelHasClickAction: ({ options: e, theme: t }) => l(e, t, "color"),
108
+ extraLabelClickAction: ({ options: e, theme: t }) => i(e, t, "color")
103
109
  },
104
- visibleIf: n
110
+ visibleIf: y
105
111
  },
106
112
  {
107
113
  key: "size",
@@ -149,12 +155,15 @@ const n = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
149
155
  "left"
150
156
  ]
151
157
  },
152
- visibleIf: ({ options: e }) => e?.display?.legend !== !1
158
+ visibleIf: ({ options: e }) => {
159
+ var t;
160
+ return ((t = e == null ? void 0 : e.display) == null ? void 0 : t.legend) !== !1;
161
+ }
153
162
  }
154
163
  ],
155
- visibleIf: c
164
+ visibleIf: p
156
165
  }
157
166
  ];
158
167
  export {
159
- s as default
168
+ f as default
160
169
  };
@@ -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("./index-DhDgy1sp.cjs"),i=require("./helpers-DXQwEH1P.cjs"),l=({slots:e})=>{var t,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((a=(t=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="category"))==null?void 0:t.content)==null?void 0:a.length)===0:!0},n=({slots:e})=>{var t,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((a=(t=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="category"))==null?void 0:t.content)==null?void 0:a.length)>0:!1},c=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>o.mapVectorTileProviders[e]??{}}}]},{key:"symbol",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Symbol color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>i.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>i.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>i.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:l},{key:"size",control:{type:"slider",label:"Size",default:30,min:1,max:250,step:1}},{key:"opacity",control:{type:"slider",label:"Opacity",default:.9,min:.1,max:1,step:.01}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>{var t;return((t=e==null?void 0:e.display)==null?void 0:t.legend)!==!1}}],visibleIf:n}];exports.default=c;
@@ -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 t=require("./helpers-DXQwEH1P.cjs"),n=({slots:e})=>{var r,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((a=(r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color"))==null?void 0:r.content)==null?void 0:a.length)>0:!1},i=({slots:e})=>{var r,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((a=(r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="color"))==null?void 0:r.content)==null?void 0:a.length)===0||!(e!=null&&e.some(l=>(l==null?void 0:l.name)==="color")):!0},o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:n},{key:"display.modeOption",control:{type:"switch",label:"Mode option",default:!1},visibleIf:n},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}},{key:"labels.autoSize",control:{type:"switch",label:"Auto size labels",default:!1}},{key:"display.values",control:{type:"picker",label:"Show values",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Color area by category",default:!0},visibleIf:i},{key:"color",control:{type:"color-picker",label:"Area color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:r})=>t.getThemeMainColorResetLabel(e,r,"color"),extraLabelHasClickAction:({options:e,theme:r})=>t.getThemeMainColorExtraLabelHasClickAction(e,r,"color"),extraLabelClickAction:({options:e,theme:r})=>t.getThemeMainColorExtraLabelClickAction(e,r,"color")},visibleIf:({options:e,slots:r})=>{var a;return((a=e==null?void 0:e.categories)==null?void 0:a.colored)===!1&&i({slots:r})}},{key:"mode",control:{type:"picker",label:"Mode",default:"squarify",enum:["squarify","slice","dice","slice-dice"]}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:r})=>{var a;if(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var a;return!(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.rounding)!="number"||typeof(e==null?void 0:e.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,roundedCorners:void 0}})}},{key:"padding",control:{type:"slider",label:"Internal padding",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:r})=>{var a;if(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.padding)=="number")return typeof(e==null?void 0:e.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var a;return!(typeof((a=r==null?void 0:r.itemSpecific)==null?void 0:a.padding)!="number"||typeof(e==null?void 0:e.padding)!="number")},extraLabelClickAction:({options:e})=>({value:void 0,options:{...e,padding:void 0}})}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:n}];exports.default=o;