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

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