@luzmo/analytics-components-kit 1.0.1-alpha.46 → 1.0.1-alpha.48

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 (322) hide show
  1. package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
  2. package/components/{box-plot-options.config-vlz5qeNq.js → box-plot-options.config-xu_i6ms7.js} +119 -44
  3. package/components/{bullet-chart-options.config-Bsw7N7Wl.js → bullet-chart-options.config-CDPpX1yc.js} +11 -0
  4. package/components/{button-base-DbkDzb71-CY6MJGqE.cjs → button-base-DbkDzb71-D0Ni0xn1.cjs} +1 -1
  5. package/components/{button-base-DbkDzb71-R8oqSqlY.js → button-base-DbkDzb71-Dh2Out91.js} +1 -1
  6. package/components/{calculate-data-item-icon-DKjZwr-x.js → calculate-data-item-icon-BiIL_s4Z.js} +1 -1
  7. package/components/choropleth-map-options.config-B_W9-rhe.js +381 -0
  8. package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
  9. package/components/{choropleth-map-options.de-B_Agdr4T.cjs → choropleth-map-options.de-C4ko9lE4.cjs} +1 -1
  10. package/components/{choropleth-map-options.de-BSt-L5Vh.js → choropleth-map-options.de-CIls11eI.js} +1 -1
  11. package/components/{choropleth-map-options.en-Cy7WcWLG.js → choropleth-map-options.en-C7cPpmnS.js} +1 -1
  12. package/components/{choropleth-map-options.en-DJHAy6ek.cjs → choropleth-map-options.en-DVWBmXFe.cjs} +1 -1
  13. package/components/{choropleth-map-options.es-BnR-9vJv.js → choropleth-map-options.es-gQPy8Q0q.js} +1 -1
  14. package/components/{choropleth-map-options.es-Dr07odJo.cjs → choropleth-map-options.es-v5dYm1W3.cjs} +1 -1
  15. package/components/{choropleth-map-options.fr-CR5NMRR3.cjs → choropleth-map-options.fr-Bpk_J4Gw.cjs} +1 -1
  16. package/components/{choropleth-map-options.fr-BlwLS1Wy.js → choropleth-map-options.fr-YsTTCv_p.js} +1 -1
  17. package/components/{choropleth-map-options.nl-D70fr4Hl.js → choropleth-map-options.nl-CnEI0pYJ.js} +1 -1
  18. package/components/{choropleth-map-options.nl-BITK3ddz.cjs → choropleth-map-options.nl-CyDZDpyE.cjs} +1 -1
  19. package/components/{circular-gauge-options.config-Kd_WK_w-.js → circular-gauge-options.config-DAIjz4Rl.js} +59 -13
  20. package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
  21. package/components/{circular-gauge-options.de-BO3S8GCr.js → circular-gauge-options.de-BMzGTpZD.js} +3 -0
  22. package/components/{circular-gauge-options.de-BZfrQqs3.cjs → circular-gauge-options.de-CzEREduR.cjs} +1 -1
  23. package/components/{circular-gauge-options.en-CB-jZtE6.cjs → circular-gauge-options.en--hMYjiKb.cjs} +1 -1
  24. package/components/{circular-gauge-options.en-Cyhhijwg.js → circular-gauge-options.en-C6U5peDD.js} +3 -0
  25. package/components/{circular-gauge-options.es-DJ7ru4Wf.js → circular-gauge-options.es-Kajxp0wO.js} +5 -2
  26. package/components/{circular-gauge-options.es-DuQPHjcG.cjs → circular-gauge-options.es-bS5N1QyR.cjs} +1 -1
  27. package/components/{circular-gauge-options.fr-CFMa8H8K.cjs → circular-gauge-options.fr-VgkkhIDb.cjs} +1 -1
  28. package/components/{circular-gauge-options.fr-BVWliP7i.js → circular-gauge-options.fr-l5cqWrSS.js} +3 -0
  29. package/components/{circular-gauge-options.nl-BB_jgj5k.cjs → circular-gauge-options.nl-B-E_GXJl.cjs} +1 -1
  30. package/components/{circular-gauge-options.nl-DGpV7Riu.js → circular-gauge-options.nl-CAx8oTMs.js} +3 -0
  31. package/components/color-B6LaL8qz.cjs +20 -0
  32. package/components/color-DuJ4-73S.js +2867 -0
  33. package/components/color-palettes-BqH2Fv19.js +1852 -0
  34. package/components/color-palettes-DhNHcib8.cjs +20 -0
  35. package/components/color-range-utils-Bvo9sm5A.js +68 -0
  36. package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
  37. package/components/{conditional-number-options.config-BzzAnCOB.js → conditional-number-options.config-BCEpSK9J.js} +68 -12
  38. package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
  39. package/components/{conditional-number-options.de-BJcjBZY1.js → conditional-number-options.de-DbpKd1bd.js} +2 -2
  40. package/components/{conditional-number-options.de-CFnufi0r.cjs → conditional-number-options.de-R9Mtj45x.cjs} +1 -1
  41. package/components/{conditional-number-options.en-Wd-0YtdE.cjs → conditional-number-options.en-C-nOJ85m.cjs} +1 -1
  42. package/components/{conditional-number-options.en-WSrIzRGJ.js → conditional-number-options.en-DZH6utHH.js} +2 -2
  43. package/components/{conditional-number-options.es-BTDTe5SF.cjs → conditional-number-options.es-C41csR3J.cjs} +1 -1
  44. package/components/{conditional-number-options.es-BKqT0zog.js → conditional-number-options.es-_oKhivId.js} +2 -2
  45. package/components/{conditional-number-options.fr-D2r7Azy8.js → conditional-number-options.fr-BSSywulP.js} +2 -2
  46. package/components/{conditional-number-options.fr-CZ-9jzPm.cjs → conditional-number-options.fr-DgaXesnu.cjs} +1 -1
  47. package/components/{conditional-number-options.nl-pkRI1tLZ.js → conditional-number-options.nl-BuKNqxqm.js} +2 -2
  48. package/components/{conditional-number-options.nl-CfRYL6o1.cjs → conditional-number-options.nl-CJ5teRtT.cjs} +1 -1
  49. package/components/{date-filter-options.en-DqY3gH_W.cjs → date-filter-options.en-B7MjV7xe.cjs} +1 -1
  50. package/components/{date-filter-options.en-DgbZmD5M.js → date-filter-options.en-C0AmRz6f.js} +2 -1
  51. package/components/{date-filter-options.es-CQeWi9cD.cjs → date-filter-options.es-C__wCKac.cjs} +1 -1
  52. package/components/{date-filter-options.es-BI-h1lD-.js → date-filter-options.es-bN790adr.js} +4 -3
  53. package/components/{date-filter-options.fr-D22GM6_c.cjs → date-filter-options.fr-CFqwPRzc.cjs} +1 -1
  54. package/components/{date-filter-options.fr-DXLKLmhl.js → date-filter-options.fr-CNKTJNWh.js} +2 -1
  55. package/components/{date-filter-options.nl-CqZmwOux.cjs → date-filter-options.nl-CHOlmw93.cjs} +1 -1
  56. package/components/{date-filter-options.nl-DXgD8Ga_.js → date-filter-options.nl-ajUXG8Z4.js} +2 -1
  57. package/components/display-settings/index.cjs +1 -1
  58. package/components/display-settings/index.js +1 -1
  59. package/components/display-settings-binning/index.cjs +1 -1
  60. package/components/display-settings-binning/index.js +4 -4
  61. package/components/display-settings-datetime/index.cjs +1 -1
  62. package/components/display-settings-datetime/index.js +6 -6
  63. package/components/display-settings-grand-totals/index.cjs +1 -1
  64. package/components/display-settings-grand-totals/index.js +3 -3
  65. package/components/display-settings-numeric/index.cjs +1 -1
  66. package/components/display-settings-numeric/index.js +6 -6
  67. package/components/display-settings-period-over-period/index.cjs +6 -6
  68. package/components/display-settings-period-over-period/index.js +4 -4
  69. package/components/draggable-data-item-level/index.cjs +1 -1
  70. package/components/draggable-data-item-level/index.js +3 -3
  71. package/components/droppable-slot/index.cjs +1 -1
  72. package/components/droppable-slot/index.js +2 -2
  73. package/components/edit-item/index.cjs +2 -2
  74. package/components/edit-item/index.js +57 -57
  75. package/components/edit-option/helpers/control-templates/color-palette-picker-template.d.ts +2 -0
  76. package/components/edit-option/helpers/control-templates/color-range-template.d.ts +2 -0
  77. package/components/edit-option/helpers/get-enum-values.d.ts +1 -0
  78. package/components/edit-option/index.cjs +1 -1
  79. package/components/edit-option/index.js +1 -1
  80. package/components/edit-option-action-button-group/index.cjs +1 -1
  81. package/components/edit-option-action-button-group/index.js +5 -5
  82. package/components/edit-option-base/edit-option-base.d.ts +1 -0
  83. package/components/{edit-option-base-CbpBi6I7.js → edit-option-base-D25zHZVl.js} +12 -9
  84. package/components/{edit-option-base-Db3JjWMk.cjs → edit-option-base-h5ndfVK4.cjs} +3 -3
  85. package/components/edit-option-color-palette-picker/edit-option-color-palette-picker.d.ts +42 -0
  86. package/components/edit-option-color-palette-picker/index.cjs +79 -0
  87. package/components/edit-option-color-palette-picker/index.d.ts +7 -0
  88. package/components/edit-option-color-palette-picker/index.js +405 -0
  89. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +5 -0
  90. package/components/edit-option-color-picker/index.cjs +2 -424
  91. package/components/edit-option-color-picker/index.js +49 -5653
  92. package/components/edit-option-color-range/edit-option-color-range.d.ts +99 -0
  93. package/components/edit-option-color-range/index.cjs +85 -0
  94. package/components/edit-option-color-range/index.d.ts +7 -0
  95. package/components/edit-option-color-range/index.js +261 -0
  96. package/components/edit-option-multi-language-field/index.cjs +1 -1
  97. package/components/edit-option-multi-language-field/index.js +2 -2
  98. package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -0
  99. package/components/edit-option-number-field/index.cjs +7 -3
  100. package/components/edit-option-number-field/index.js +28 -17
  101. package/components/edit-option-picker/index.cjs +1 -1
  102. package/components/edit-option-picker/index.js +3 -3
  103. package/components/edit-option-position-picker/index.cjs +1 -1
  104. package/components/edit-option-position-picker/index.js +2 -2
  105. package/components/edit-option-positions-number-field/index.cjs +1 -1
  106. package/components/edit-option-positions-number-field/index.js +3 -3
  107. package/components/edit-option-radio-button-group/index.cjs +1 -1
  108. package/components/edit-option-radio-button-group/index.js +3 -3
  109. package/components/edit-option-slider/index.cjs +1 -1
  110. package/components/edit-option-slider/index.js +1 -1
  111. package/components/edit-option-switch/index.cjs +1 -1
  112. package/components/edit-option-switch/index.js +1 -1
  113. package/components/edit-option-text-field/index.cjs +1 -1
  114. package/components/edit-option-text-field/index.js +2 -2
  115. package/components/extrapolate-color-0j_AeYkz.cjs +20 -0
  116. package/components/extrapolate-color-CC9CURf6.js +33 -0
  117. package/components/filter-data-item-picker/index.cjs +1 -1
  118. package/components/filter-data-item-picker/index.js +4 -4
  119. package/components/filter-expression-picker/index.cjs +1 -1
  120. package/components/filter-expression-picker/index.js +1 -1
  121. package/components/filter-item/index.cjs +1 -1
  122. package/components/filter-item/index.js +1 -1
  123. package/components/filter-value-picker/index.cjs +1 -1
  124. package/components/filter-value-picker/index.js +1 -1
  125. package/components/filter-value-picker-datetime/index.cjs +1 -1
  126. package/components/filter-value-picker-datetime/index.js +9 -9
  127. package/components/filter-value-picker-hierarchy/index.cjs +1 -1
  128. package/components/filter-value-picker-hierarchy/index.js +2 -2
  129. package/components/filter-value-picker-numeric/index.cjs +1 -1
  130. package/components/filter-value-picker-numeric/index.js +2 -2
  131. package/components/grid/index.cjs +45 -45
  132. package/components/grid/index.js +2231 -5069
  133. package/components/heat-map-options.config-BQ-Afrbi.cjs +20 -0
  134. package/components/{heat-map-options.config-BAuSJV3_.js → heat-map-options.config-DQya-lag.js} +92 -13
  135. package/components/{heat-map-options.de-Cz5Pwwcu.cjs → heat-map-options.de-CCzVMy-R.cjs} +1 -1
  136. package/components/{heat-map-options.de-6onYsjdI.js → heat-map-options.de-UJbdYtlh.js} +4 -5
  137. package/components/{heat-map-options.en-DHX1GKcM.cjs → heat-map-options.en-Bg7i7QKn.cjs} +1 -1
  138. package/components/{heat-map-options.en-mwgrQFkO.js → heat-map-options.en-C0K0NGEE.js} +5 -5
  139. package/components/{heat-map-options.es-A-j6i3Tz.cjs → heat-map-options.es-BYyHRdIH.cjs} +1 -1
  140. package/components/{heat-map-options.es-Dd0KsseA.js → heat-map-options.es-DCUCh58R.js} +5 -5
  141. package/components/{heat-map-options.fr-C3LwETEg.cjs → heat-map-options.fr-CLB-XMRA.cjs} +1 -1
  142. package/components/{heat-map-options.fr-BkrrUt04.js → heat-map-options.fr-a-_Kw5S_.js} +5 -5
  143. package/components/{heat-map-options.nl-CXn1y4jH.cjs → heat-map-options.nl-BHrmi96k.cjs} +1 -1
  144. package/components/{heat-map-options.nl-DME6ILT5.js → heat-map-options.nl-BRGoOun2.js} +5 -5
  145. package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
  146. package/components/{heat-table-options.config-DSu_18VG.js → heat-table-options.config-CUsDdgUr.js} +137 -21
  147. package/components/{heat-table-options.de-BABkUn2Y.js → heat-table-options.de-D6R0zXX0.js} +1 -1
  148. package/components/{heat-table-options.de-aYfCrdCP.cjs → heat-table-options.de-cnjPxQep.cjs} +1 -1
  149. package/components/{heat-table-options.en-CIdnDv3K.cjs → heat-table-options.en-Bjqpkm75.cjs} +1 -1
  150. package/components/{heat-table-options.en-BUBmMDZW.js → heat-table-options.en-Co6IDHlF.js} +1 -1
  151. package/components/{heat-table-options.es-Dl9D9rD_.js → heat-table-options.es-B3Kb8J1N.js} +1 -1
  152. package/components/{heat-table-options.es-DaK6qGQC.cjs → heat-table-options.es-IaNf_Ge4.cjs} +1 -1
  153. package/components/{heat-table-options.fr-BouHFs1P.cjs → heat-table-options.fr-BdZnJYlb.cjs} +1 -1
  154. package/components/{heat-table-options.fr-DOShw8a1.js → heat-table-options.fr-C51PmgHa.js} +1 -1
  155. package/components/{heat-table-options.nl-8CXDqKzS.cjs → heat-table-options.nl-DGS7vzoT.cjs} +1 -1
  156. package/components/{heat-table-options.nl-D6Fn7sgt.js → heat-table-options.nl-DXOd_uE6.js} +1 -1
  157. package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
  158. package/components/{hexbin-map-options.config-DaaC88d8.js → hexbin-map-options.config-F-7uCqxb.js} +55 -20
  159. package/components/{hexbin-map-options.de-BuLxwJd2.js → hexbin-map-options.de-D50U2vgf.js} +1 -1
  160. package/components/{hexbin-map-options.de-DPYaSNHm.cjs → hexbin-map-options.de-DUp41p9I.cjs} +1 -1
  161. package/components/{hexbin-map-options.en-CEGMU7TX.cjs → hexbin-map-options.en-B10UanAQ.cjs} +1 -1
  162. package/components/{hexbin-map-options.en-CXV4sbbg.js → hexbin-map-options.en-iDuuqVpi.js} +1 -1
  163. package/components/{hexbin-map-options.es-urnYaXEk.cjs → hexbin-map-options.es-97IUVMSg.cjs} +1 -1
  164. package/components/{hexbin-map-options.es-2f7amcb6.js → hexbin-map-options.es-RRMQV0DY.js} +1 -1
  165. package/components/{hexbin-map-options.fr-DxRtJ3_F.cjs → hexbin-map-options.fr-Bh9Swyi3.cjs} +1 -1
  166. package/components/{hexbin-map-options.fr-J3g_JcSM.js → hexbin-map-options.fr-CQ7JbE9T.js} +1 -1
  167. package/components/{hexbin-map-options.nl-BnvrfMKQ.js → hexbin-map-options.nl-BpTRJ36m.js} +1 -1
  168. package/components/{hexbin-map-options.nl-GZtiTQw6.cjs → hexbin-map-options.nl-BzyMf0JQ.cjs} +1 -1
  169. package/components/{index-Tx5oQjbt.cjs → index--3gSNupB.cjs} +1 -1
  170. package/components/{index-CDpuEf8W.js → index-9LxnqLJa.js} +2 -2
  171. package/components/{index-MVmoiSxL.cjs → index-B7AFYrfv.cjs} +1 -1
  172. package/components/{index-CHFwXYcm.cjs → index-BKx2WhDB.cjs} +7 -7
  173. package/components/{index-cHKqEi5-.cjs → index-BSgp4MWQ.cjs} +1 -1
  174. package/components/{index-BHJH1eGn.js → index-BW3AUnEX.js} +1 -1
  175. package/components/index-BY1yDIAI.js +5672 -0
  176. package/components/index-Be-pSgzQ.js +174 -0
  177. package/components/{index-Bdy8Bz-n.js → index-BobhBKA2.js} +8 -7
  178. package/components/{index-CBOAQ3-E.cjs → index-Bpdwb9Js.cjs} +3 -3
  179. package/components/{index-BNCgbOV2.js → index-BqSQoHjg.js} +2 -2
  180. package/components/{index-EXO-Hsj2.cjs → index-BukPAqqU.cjs} +1 -1
  181. package/components/{index-Desl7GJ0.js → index-C6NpWavw.js} +3 -3
  182. package/components/{index-BC1LV3vH.js → index-COU9XhBt.js} +1 -1
  183. package/components/{index-ChDwMQlU.js → index-Cf_a7VrO.js} +12 -11
  184. package/components/{index-CnpJUw_z.cjs → index-CnP-Q5Bw.cjs} +1 -1
  185. package/components/index-DCdx3dxQ.cjs +42 -0
  186. package/components/index-DMhm0FM8.cjs +443 -0
  187. package/components/index-DRLFjkH0.cjs +249 -0
  188. package/components/{index-DE3d0E0P.js → index-DYmi-X87.js} +2 -2
  189. package/components/{index-CbuHBIDB.js → index-DeIay7ZE.js} +2 -2
  190. package/components/{index-Cw_HnduG.js → index-PGX2p9Ns.js} +4 -4
  191. package/components/{index-BqMMcuLX.cjs → index-VHrmgynd.cjs} +1 -1
  192. package/components/{index-CNA9joKT.cjs → index-cbfU96gS.cjs} +26 -26
  193. package/components/{index-DSQyBS9Z.cjs → index-fwJBhawL.cjs} +1 -1
  194. package/components/{index-DM0JWaVq.js → index-ydBgjAru.js} +560 -466
  195. package/components/index.cjs +1 -1
  196. package/components/index.js +62 -58
  197. package/components/{luzmo-icons-DnAqAQCX.js → luzmo-icons-4Tmb3sKr.js} +5 -5
  198. package/components/{luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs → luzmo-icons-4nDFv1Lq-D6-m-VWM.cjs} +2 -2
  199. package/components/{luzmo-icons-DbwDQtuO-QG0fLECn.js → luzmo-icons-4nDFv1Lq-DffGNBpO.js} +7 -7
  200. package/components/mutation-controller-DH7YOCyj-B6sXpbgh.cjs +40 -0
  201. package/components/mutation-controller-DH7YOCyj-E7gpCmwh.js +71 -0
  202. package/components/{observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs → observe-slot-presence-CmVi0zTc-NPSGFmv-.cjs} +2 -2
  203. package/components/{observe-slot-presence-CmVi0zTc-DCFuXW7v.js → observe-slot-presence-CmVi0zTc-hhUl4oRa.js} +5 -5
  204. package/components/observe-slot-text-BPfIQQtz-D4LmMIo0.cjs +66 -0
  205. package/components/observe-slot-text-BPfIQQtz-DLOwgi-A.js +172 -0
  206. package/components/route-map-options.config-CN86T7c0.js +346 -0
  207. package/components/route-map-options.config-D7NJePTu.cjs +20 -0
  208. package/components/{route-map-options.de-DrhHqbdy.js → route-map-options.de-DXYmUtv8.js} +20 -0
  209. package/components/{route-map-options.de-ey7CT_tQ.cjs → route-map-options.de-w5wuIvwf.cjs} +1 -1
  210. package/components/{route-map-options.en-DAgywIcY.js → route-map-options.en-CYMhTqyE.js} +20 -0
  211. package/components/{route-map-options.en-CjyQT-Ue.cjs → route-map-options.en-Co0Fbjkz.cjs} +1 -1
  212. package/components/{route-map-options.es-BR7NuBw0.js → route-map-options.es-BEBPlDvt.js} +20 -0
  213. package/components/{route-map-options.es-aEyX7m3t.cjs → route-map-options.es-Cjasm-ZQ.cjs} +1 -1
  214. package/components/{route-map-options.fr-42waILBL.cjs → route-map-options.fr-C1SCfKLH.cjs} +1 -1
  215. package/components/{route-map-options.fr-C7TkfcdY.js → route-map-options.fr-DEHQekgM.js} +20 -0
  216. package/components/{route-map-options.nl-X4lAer8J.cjs → route-map-options.nl-CYmB51pE.cjs} +1 -1
  217. package/components/{route-map-options.nl-Btd3mxx0.js → route-map-options.nl-CwUgb9Zg.js} +20 -0
  218. package/components/slot-contents-picker/index.cjs +1 -1
  219. package/components/slot-contents-picker/index.js +5 -5
  220. package/components/slot-menu/index.cjs +1 -1
  221. package/components/slot-menu/index.js +2 -2
  222. package/components/slot-menu-list/index.js +1 -1
  223. package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
  224. package/components/speedometer-chart-options.config-SL581yOa.js +265 -0
  225. package/components/spike-map-options.config-C5KewecZ.js +436 -0
  226. package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
  227. package/components/{spike-map-options.de-BxTSDs6l.js → spike-map-options.de-COZovZ7s.js} +26 -0
  228. package/components/spike-map-options.de-_47BiyJQ.cjs +20 -0
  229. package/components/spike-map-options.en-B9InMjtg.cjs +20 -0
  230. package/components/{spike-map-options.en-C0DCu7ul.js → spike-map-options.en-Dx9h9SIj.js} +26 -0
  231. package/components/{spike-map-options.es-bTfVypDV.js → spike-map-options.es-CHMMXuMS.js} +26 -0
  232. package/components/spike-map-options.es-e-sVsx0P.cjs +20 -0
  233. package/components/{spike-map-options.fr-BKzDjsKP.js → spike-map-options.fr-BcRnMqG8.js} +26 -0
  234. package/components/spike-map-options.fr-DPpYI3Yd.cjs +20 -0
  235. package/components/spike-map-options.nl-DOJHgdzZ.cjs +20 -0
  236. package/components/{spike-map-options.nl-BGPuQRih.js → spike-map-options.nl-DSGG2M38.js} +26 -0
  237. package/components/{text-field-BIADXoLC-B9oE05VF.js → text-field-ol9Ed5lQ-DbpeM4EP.js} +1 -1
  238. package/components/{text-field-BIADXoLC-B8w9TVmS.cjs → text-field-ol9Ed5lQ-cRqtIf_0.cjs} +1 -1
  239. package/custom-elements.json +369 -2
  240. package/index.d.ts +2 -0
  241. package/item-definitions/box-plot/box-plot-options.config.d.ts +51 -0
  242. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +125 -0
  243. package/item-definitions/choropleth-map/i18n/choropleth-map-options.de.d.ts +1 -1
  244. package/item-definitions/choropleth-map/i18n/choropleth-map-options.en.d.ts +1 -1
  245. package/item-definitions/choropleth-map/i18n/choropleth-map-options.es.d.ts +1 -1
  246. package/item-definitions/choropleth-map/i18n/choropleth-map-options.fr.d.ts +1 -1
  247. package/item-definitions/choropleth-map/i18n/choropleth-map-options.nl.d.ts +1 -1
  248. package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +94 -0
  249. package/item-definitions/circular-gauge/i18n/circular-gauge-options.de.d.ts +3 -0
  250. package/item-definitions/circular-gauge/i18n/circular-gauge-options.en.d.ts +3 -0
  251. package/item-definitions/circular-gauge/i18n/circular-gauge-options.es.d.ts +3 -0
  252. package/item-definitions/circular-gauge/i18n/circular-gauge-options.fr.d.ts +3 -0
  253. package/item-definitions/circular-gauge/i18n/circular-gauge-options.nl.d.ts +3 -0
  254. package/item-definitions/conditional-number/conditional-number-options.config.d.ts +106 -0
  255. package/item-definitions/conditional-number/i18n/conditional-number-options.de.d.ts +2 -2
  256. package/item-definitions/conditional-number/i18n/conditional-number-options.en.d.ts +2 -2
  257. package/item-definitions/conditional-number/i18n/conditional-number-options.es.d.ts +2 -2
  258. package/item-definitions/conditional-number/i18n/conditional-number-options.fr.d.ts +2 -2
  259. package/item-definitions/conditional-number/i18n/conditional-number-options.nl.d.ts +2 -2
  260. package/item-definitions/date-filter/i18n/date-filter-options.en.d.ts +1 -0
  261. package/item-definitions/date-filter/i18n/date-filter-options.es.d.ts +1 -0
  262. package/item-definitions/date-filter/i18n/date-filter-options.fr.d.ts +1 -0
  263. package/item-definitions/date-filter/i18n/date-filter-options.nl.d.ts +1 -0
  264. package/item-definitions/heat-map/heat-map-options.config.d.ts +89 -0
  265. package/item-definitions/heat-map/i18n/heat-map-options.de.d.ts +4 -5
  266. package/item-definitions/heat-map/i18n/heat-map-options.en.d.ts +5 -5
  267. package/item-definitions/heat-map/i18n/heat-map-options.es.d.ts +5 -5
  268. package/item-definitions/heat-map/i18n/heat-map-options.fr.d.ts +5 -5
  269. package/item-definitions/heat-map/i18n/heat-map-options.nl.d.ts +5 -5
  270. package/item-definitions/heat-table/heat-table-options.config.d.ts +90 -4
  271. package/item-definitions/heat-table/i18n/heat-table-options.de.d.ts +1 -1
  272. package/item-definitions/heat-table/i18n/heat-table-options.en.d.ts +1 -1
  273. package/item-definitions/heat-table/i18n/heat-table-options.es.d.ts +1 -1
  274. package/item-definitions/heat-table/i18n/heat-table-options.fr.d.ts +1 -1
  275. package/item-definitions/heat-table/i18n/heat-table-options.nl.d.ts +1 -1
  276. package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +55 -2
  277. package/item-definitions/hexbin-map/i18n/hexbin-map-options.de.d.ts +1 -1
  278. package/item-definitions/hexbin-map/i18n/hexbin-map-options.en.d.ts +1 -1
  279. package/item-definitions/hexbin-map/i18n/hexbin-map-options.es.d.ts +1 -1
  280. package/item-definitions/hexbin-map/i18n/hexbin-map-options.fr.d.ts +1 -1
  281. package/item-definitions/hexbin-map/i18n/hexbin-map-options.nl.d.ts +1 -1
  282. package/item-definitions/route-map/i18n/route-map-options.de.d.ts +20 -0
  283. package/item-definitions/route-map/i18n/route-map-options.en.d.ts +20 -0
  284. package/item-definitions/route-map/i18n/route-map-options.es.d.ts +20 -0
  285. package/item-definitions/route-map/i18n/route-map-options.fr.d.ts +20 -0
  286. package/item-definitions/route-map/i18n/route-map-options.nl.d.ts +20 -0
  287. package/item-definitions/route-map/route-map-options.config.d.ts +157 -0
  288. package/item-definitions/shared/color-range-utils.d.ts +22 -0
  289. package/item-definitions/speedometer-chart/speedometer-chart-options.config.d.ts +126 -0
  290. package/item-definitions/spike-map/i18n/spike-map-options.de.d.ts +26 -0
  291. package/item-definitions/spike-map/i18n/spike-map-options.en.d.ts +26 -0
  292. package/item-definitions/spike-map/i18n/spike-map-options.es.d.ts +26 -0
  293. package/item-definitions/spike-map/i18n/spike-map-options.fr.d.ts +26 -0
  294. package/item-definitions/spike-map/i18n/spike-map-options.nl.d.ts +26 -0
  295. package/item-definitions/spike-map/spike-map-options.config.d.ts +123 -0
  296. package/package.json +11 -1
  297. package/utils/color/color-palettes.d.ts +17 -0
  298. package/utils/color/extrapolate-color.d.ts +1 -0
  299. package/components/box-plot-options.config-DJz_kt-M.cjs +0 -20
  300. package/components/choropleth-map-options.config-CeKXtnYB.js +0 -249
  301. package/components/choropleth-map-options.config-CxUOg3pw.cjs +0 -20
  302. package/components/circular-gauge-options.config-Cz2TGR6X.cjs +0 -20
  303. package/components/conditional-number-options.config-BZfgdUGh.cjs +0 -20
  304. package/components/heat-map-options.config-DsUXxjN0.cjs +0 -20
  305. package/components/heat-table-options.config-DqPL2hIY.cjs +0 -20
  306. package/components/hexbin-map-options.config-B_KAcDYq.cjs +0 -20
  307. package/components/index-BNFpjvqX.cjs +0 -195
  308. package/components/index-C2PPSv8E.cjs +0 -42
  309. package/components/index-rQxtPaJl.js +0 -174
  310. package/components/observe-slot-text-BPfIQQtz-DHOh38Ve.cjs +0 -86
  311. package/components/observe-slot-text-BPfIQQtz-v6B-1BYh.js +0 -221
  312. package/components/route-map-options.config-CcQXPmjN.cjs +0 -20
  313. package/components/route-map-options.config-u0hQqmDh.js +0 -136
  314. package/components/speedometer-chart-options.config-CVsSjLmh.cjs +0 -20
  315. package/components/speedometer-chart-options.config-Dt2feQYV.js +0 -199
  316. package/components/spike-map-options.config-PpPPrsR2.cjs +0 -20
  317. package/components/spike-map-options.config-pdbV_vwg.js +0 -218
  318. package/components/spike-map-options.de-BW8YhDI8.cjs +0 -20
  319. package/components/spike-map-options.en-fNS4A50-.cjs +0 -20
  320. package/components/spike-map-options.es-I-obYF7j.cjs +0 -20
  321. package/components/spike-map-options.fr-DWA0ZZBQ.cjs +0 -20
  322. package/components/spike-map-options.nl-D5Wu6E5D.cjs +0 -20
@@ -0,0 +1,99 @@
1
+ import '@luzmo/lucero/action-button';
2
+ import '@luzmo/lucero/color-field';
3
+ import '@luzmo/lucero/color-picker';
4
+ import '@luzmo/lucero/icon';
5
+ import '@luzmo/lucero/number-field';
6
+ import '@luzmo/lucero/text-field';
7
+ import { PropertyValues, TemplateResult } from 'lit';
8
+ import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
9
+ /**
10
+ * @element luzmo-edit-option-color-range
11
+ * @description A component that allows the user to create a color range.
12
+ * @fires option-changed - Emitted when the color range is changed.
13
+ */
14
+ export declare class LuzmoEditOptionColorRange extends LuzmoEditOptionBase {
15
+ static styles: (import("lit").CSSResult | import("lit").CSSResultArray)[];
16
+ /**
17
+ * The color range
18
+ */
19
+ value?: {
20
+ color: string;
21
+ value?: number;
22
+ }[];
23
+ /**
24
+ * The default color range
25
+ */
26
+ default?: {
27
+ color: string;
28
+ value?: number;
29
+ }[];
30
+ /**
31
+ * Whether the color-range is disabled
32
+ * @default false
33
+ * @type {boolean}
34
+ */
35
+ disabled: boolean;
36
+ /**
37
+ * Range with percentage values
38
+ */
39
+ percentage: boolean;
40
+ /**
41
+ * Range colors can have alpha values
42
+ */
43
+ noAlphaChannel: boolean;
44
+ /**
45
+ * The number of values in the range can be changed
46
+ */
47
+ editRangeSize: boolean;
48
+ /**
49
+ * The values in the range can be changed by the user in the input field
50
+ */
51
+ noValues: boolean;
52
+ /**
53
+ * The minimum range size
54
+ */
55
+ minimumRangeSize: number;
56
+ /**
57
+ * Whether there is a first range value that sets color from negative infinity to the next range value. That first range value has a color, but the value is disregarded
58
+ */
59
+ negativeInfinityValue: boolean;
60
+ /**
61
+ * The color pickers can be read-only
62
+ */
63
+ readOnlyColorPicker: boolean;
64
+ /**
65
+ * Whether the colors are reversed
66
+ */
67
+ reverse: boolean;
68
+ /**
69
+ * The debounce time in milliseconds
70
+ */
71
+ debounce: number;
72
+ /**
73
+ * The function to parse the value
74
+ */
75
+ parseValue?: (value: any) => {
76
+ color: string;
77
+ value?: number;
78
+ }[];
79
+ /**
80
+ * The function to convert the value
81
+ */
82
+ toValue?: (value: any) => any;
83
+ private colorRangeLines;
84
+ /**
85
+ * @internal
86
+ */
87
+ debounceTimeout: any;
88
+ private _ranges;
89
+ protected willUpdate(changedProperties: PropertyValues): void;
90
+ private _handleChangeEvent;
91
+ private _getIndex;
92
+ private _extrapolateNewValue;
93
+ private _setColor;
94
+ private _setNumber;
95
+ private _removeRangeValue;
96
+ private _addRangeValue;
97
+ private renderRangeValues;
98
+ protected renderController(): TemplateResult;
99
+ }
@@ -0,0 +1,85 @@
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";var h=Object.getPrototypeOf;var v=Reflect.get;var p=(d,o,r)=>v(h(d),r,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../luzmo-icons-Bvm-_ECi.cjs");require("../index-DCdx3dxQ.cjs");require("../index-DMhm0FM8.cjs");require("../index-fwJBhawL.cjs");require("../index-Bpdwb9Js.cjs");require("../index-BSgp4MWQ.cjs");const e=require("../property-BV1QaY8E.cjs"),m=require("../state-CuE7TJCY.cjs"),b=require("../query-all-CR2wWKRD.cjs"),f=require("../extrapolate-color-0j_AeYkz.cjs"),w=require("../edit-option-base-h5ndfVK4.cjs"),y=':host{--luzmo-swatch-size: 14px}.luzmo-edit-option{height:fit-content;align-items:start}.control-container{align-items:start;flex-grow:1}.color-range-line{display:flex;align-items:center}luzmo-color-field,luzmo-number-field{flex-grow:1}.color-range-lines-container,.color-range-lines{flex-grow:1;display:flex;flex-direction:column;gap:var(--luzmo-edit-option-color-range-ranges-gap, var(--color-ranges-gap))}.color-range-lines{width:100%}.extra-label{height:var(--edit-option-component-height);display:flex;align-items:center}.color-range-percentage-value{padding-inline-start:var(--luzmo-edit-option-color-range-color-swatch-to-percentage, var(--color-swatch-to-percentage));padding-inline-end:var(--luzmo-edit-option-color-range-percentage-to-input-field, var(--percentage-to-input-field))}luzmo-color-picker{position:relative}luzmo-color-picker:not(:has(+.color-range-percentage-value)){padding-inline-end:var(--luzmo-edit-option-color-range-color-swatch-to-input-field, var(--color-swatch-to-input-field))}luzmo-number-field:has(+luzmo-action-button),luzmo-color-field:has(+luzmo-action-button){padding-inline-end:var(--luzmo-edit-option-color-range-input-field-to-button, var(--input-field-to-button))}luzmo-color-picker:before{box-sizing:border-box;content:"";position:absolute;top:var(--color-range-connector-top);left:var(--color-range-connector-left);height:var(--color-range-connector-height);width:var(--color-range-connector-width);background:var(--range-color);border:var(--luzmo-edit-option-color-range-connector-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-color-range-connector-border-color, var(--luzmo-border-color));border-top:0;border-bottom:0;z-index:-1}:host([reverse]) luzmo-color-picker:before{top:var(--color-range-reverse-connector-top)}.color-range-lines:not(.edit-range-size) .color-range-line:last-child luzmo-color-picker:before{display:none}.color-range-add-value-container{height:var(--color-range-input-field-height);display:flex;align-items:center;justify-content:start}.color-range-add-value{box-sizing:border-box;display:flex;position:relative;align-items:center;justify-content:center;width:var(--luzmo-edit-option-color-range-add-value-width, var(--luzmo-swatch-size));height:var(--luzmo-edit-option-color-range-add-value-height, var(--luzmo-swatch-size));border-width:var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width));border-style:solid;border-color:var(--luzmo-edit-option-color-range-add-value-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-color-range-add-value-border-radius, 50%);background-color:var(--luzmo-edit-option-color-range-add-value-background-color, var(--luzmo-background-color));cursor:pointer;color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary))}.color-range-add-value .plus-sign{position:absolute;top:0;left:0;width:100%;height:100%}.color-range-add-value .plus-sign:before{content:" ";position:absolute;display:block;background-color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary));height:var(--add-color-range-plus-size);width:var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width));top:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--add-color-range-plus-size)) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));left:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width))) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));z-index:1}.color-range-add-value .plus-sign:after{content:" ";position:absolute;display:block;background-color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary));width:var(--add-color-range-plus-size);height:var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width));left:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--add-color-range-plus-size)) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));top:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width))) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));z-index:1}.color-range-add-value:hover{background-color:var(--luzmo-edit-option-color-range-add-value-background-color-hover, var(--luzmo-background-color-hover));color:var(--luzmo-edit-option-color-range-add-value-color-hover, var(--luzmo-primary-hover))}.color-range-add-value[focused],.color-range-add-value:focus-visible{outline:none;background-color:var(--luzmo-edit-option-color-range-add-value-background-color-focus, var(--luzmo-background-color-focus));color:var(--luzmo-edit-option-color-range-add-value-color-focus, var(--luzmo-primary-focus))}.color-range-add-value[focused]:after,.color-range-add-value:focus-visible:after{content:"";inset:calc(var(--luzmo-edit-option-color-range-add-value-focus-indicator-gap, var(--add-value-focus-indicator-gap)) * -2);background-color:var(--luzmo-edit-option-color-range-add-value-focus-indicator-background-color, var(--luzmo-background-color));border-width:var(--luzmo-edit-option-color-range-add-value-focus-indicator-width, var(--add-value-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-edit-option-color-range-add-value-focus-indicator-color, var(--add-value-focus-indicator-color)));border-radius:var(--luzmo-edit-option-color-range-add-value-focus-indicator-border-radius, var(--add-value-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute;z-index:-1}:host{--luzmo-swatch-size: var(--color-range-swatch-size);--color-range-swatch-size: 16px;--color-ranges-gap: calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--color-range-connector-width: .25rem;--color-range-connector-height: calc( var(--color-range-input-field-height) + var(--color-ranges-gap) - var(--color-range-swatch-size) + var(--color-range-connector-width) );--color-range-connector-top: calc( var(--color-range-swatch-size) - (var(--color-range-connector-width) / 2) );--color-range-reverse-connector-top: calc( -1 * var(--color-range-connector-height) + (var(--color-range-connector-width) / 2) );--color-range-connector-left: calc( (var(--color-range-swatch-size) - var(--color-range-connector-width)) / 2 );--color-range-input-field-height: var(--luzmo-component-height);--add-color-range-size: var(--color-range-swatch-size);--add-color-range-plus-size: 8px;--add-color-range-plus-sign-border-width: 2px;--add-value-focus-indicator-border-radius: 50%;--add-value-focus-indicator-gap: 3px;--add-value-focus-indicator-width: 1px;--add-value-focus-indicator-color: var(--luzmo-primary);--color-swatch-to-percentage: var(--luzmo-spacing-4);--color-swatch-to-input-field: var(--luzmo-spacing-4);--percentage-to-input-field: var(--luzmo-spacing-4);--input-field-to-button: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=s]){--color-range-swatch-size: 14px;--color-range-input-field-height: var(--luzmo-component-height-s);--color-ranges-gap: var(--luzmo-spacing-2);--add-color-range-plus-size: 6px;--add-color-range-plus-sign-border-width: 2px;--color-swatch-to-percentage: var(--luzmo-spacing-3);--color-swatch-to-input-field: var(--luzmo-spacing-3);--percentage-to-input-field: var(--luzmo-spacing-3);--input-field-to-button: var(--luzmo-spacing-2)}:host([size=l]){--color-range-swatch-size: 18px;--color-range-input-field-height: var(--luzmo-component-height-l);--color-ranges-gap: calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--add-color-range-plus-size: 10px;--color-swatch-to-percentage: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--color-swatch-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--percentage-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--input-field-to-button: var(--luzmo-spacing-3)}:host([size=xl]){--color-range-swatch-size: 20px;--color-range-input-field-height: var(--luzmo-component-height-xl);--color-ranges-gap: var(--luzmo-spacing-3);--add-color-range-plus-size: 10px;--color-swatch-to-percentage: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--color-swatch-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--percentage-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--input-field-to-button: var(--luzmo-spacing-4)}';var x=Object.defineProperty,n=(d,o,r,l)=>{for(var a=void 0,c=d.length-1,i;c>=0;c--)(i=d[c])&&(a=i(o,r,a)||a);return a&&x(o,r,a),a};const s=class s extends w.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.percentage=!1,this.noAlphaChannel=!1,this.editRangeSize=!1,this.noValues=!1,this.minimumRangeSize=2,this.negativeInfinityValue=!1,this.readOnlyColorPicker=!1,this.reverse=!1,this.debounce=100,this._ranges=[]}willUpdate(o){super.willUpdate(o),o.has("value")&&(this._ranges=typeof this.parseValue=="function"?this.parseValue(this.value??this.default??[]):this.value??this.default??[]),this.negativeInfinityValue&&(this._ranges=[{color:this._ranges[0].color,value:-1/0},...this._ranges.slice(1)])}_handleChangeEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this._ranges):this._ranges}}))},this.debounce??200)}_getIndex(o){var l,a;let r=[...this.colorRangeLines].indexOf((l=o==null?void 0:o.target)==null?void 0:l.closest(".color-range-line"));return this.reverse&&(r=(((a=this._ranges)==null?void 0:a.length)??0)-1-r),r}_extrapolateNewValue(o){if(o.length<2)return 0;const r=o.at(-1),l=o.at(-2),a=(r??0)-(l??0);return(r??0)+a}_setColor(o){var a;const r=this._getIndex(o),l=o.target.color??o.target.value;(a=this._ranges)!=null&&a[r]&&(this._ranges[r].color=l),this._ranges=structuredClone(this._ranges),this._handleChangeEvent()}_setNumber(o){var a;const r=this._getIndex(o),l=o.target.value;(a=this._ranges)!=null&&a[r]&&(this._ranges[r].value=l),this._ranges=structuredClone(this._ranges.sort((c,i)=>((c==null?void 0:c.value)??0)-((i==null?void 0:i.value)??0))),this._handleChangeEvent()}_removeRangeValue(o){var l;const r=this._getIndex(o);(l=this._ranges)==null||l.splice(r,1),this._ranges=structuredClone(this._ranges),this._handleChangeEvent()}_addRangeValue(){var l,a,c;const o=f.extrapolateNewColor(((l=this._ranges)==null?void 0:l.map(i=>i.color))??[]),r=this._extrapolateNewValue(((a=this._ranges)==null?void 0:a.map(i=>i.value??0))??[]);(c=this._ranges)==null||c.push({color:o,value:r}),this._ranges=structuredClone(this._ranges),this._handleChangeEvent()}renderRangeValues(){const o=(a,c,i,u)=>{var g;return e.x`
21
+ <div class="color-range-line" style="--range-color: ${a}">
22
+ <luzmo-color-picker
23
+ .color=${a}
24
+ .debounce=${this.debounce}
25
+ ?disabled=${this.disabled}
26
+ ?no-alpha-channel=${this.noAlphaChannel}
27
+ ?read-only=${this.readOnlyColorPicker}
28
+ @change=${this._setColor}
29
+ ></luzmo-color-picker>
30
+ ${this.percentage?e.x`<div class="color-range-percentage-value">%</div>`:e.x``}
31
+ ${this.noValues?e.x` <luzmo-color-field
32
+ .value=${a}
33
+ .size=${this.size}
34
+ .debounce=${this.debounce}
35
+ ?no-alpha-channel=${this.noAlphaChannel}
36
+ ?disabled=${this.disabled}
37
+ @change=${this._setColor}
38
+ ></luzmo-color-field>`:i?e.x` <luzmo-text-field
39
+ .value=${"< "+(u??0)}
40
+ .size=${this.size}
41
+ readonly
42
+ ></luzmo-text-field>`:e.x` <luzmo-number-field
43
+ .value=${c??0}
44
+ .size=${this.size}
45
+ .debounce=${this.debounce}
46
+ ?disabled=${this.disabled}
47
+ @change=${this._setNumber}
48
+ ></luzmo-number-field>`}
49
+ ${this.editRangeSize&&!this.disabled&&!i&&(((g=this._ranges)==null?void 0:g.length)??0)>this.minimumRangeSize?e.x`<luzmo-action-button
50
+ quiet
51
+ .size=${this.size}
52
+ @click=${this._removeRangeValue}
53
+ >
54
+ <luzmo-icon
55
+ slot="icon"
56
+ .size=${this.size}
57
+ .icon=${z.C1}
58
+ ></luzmo-icon>
59
+ </luzmo-action-button>`:e.x``}
60
+ </div>
61
+ `};let r=this._ranges??this.default??[];this.reverse&&(r=[...r].reverse());const l=r.map(({color:a,value:c},i)=>{var u;return o(a,c,i===0&&this.negativeInfinityValue,i===0&&this.negativeInfinityValue?(u=r[1])==null?void 0:u.value:void 0)});return e.x`
62
+ <div class="color-range-lines-container">
63
+ ${this.editRangeSize&&!this.disabled&&this.reverse?e.x`<div class="color-range-add-value-container">
64
+ <button
65
+ class="color-range-add-value"
66
+ @click=${this._addRangeValue}
67
+ >
68
+ <div class="plus-sign"></div>
69
+ </button>
70
+ </div>`:e.x``}
71
+ <div
72
+ class="color-range-lines ${this.editRangeSize&&!this.disabled?"edit-range-size":""}"
73
+ >
74
+ ${l}
75
+ </div>
76
+ ${this.editRangeSize&&!this.disabled&&!this.reverse?e.x`<div class="color-range-add-value-container">
77
+ <button
78
+ class="color-range-add-value"
79
+ @click=${this._addRangeValue}
80
+ >
81
+ <div class="plus-sign"></div>
82
+ </button>
83
+ </div>`:e.x``}
84
+ </div>
85
+ `}renderController(){return this.renderRangeValues()}};s.styles=[p(s,s,"styles"),e.r(y)];let t=s;n([e.n({type:Array,reflect:!0})],t.prototype,"value");n([e.n({type:Array,reflect:!0})],t.prototype,"default");n([e.n({type:Boolean,reflect:!0})],t.prototype,"disabled");n([e.n({type:Boolean})],t.prototype,"percentage");n([e.n({type:Boolean,attribute:"no-alpha-channel"})],t.prototype,"noAlphaChannel");n([e.n({type:Boolean,attribute:"edit-range-size"})],t.prototype,"editRangeSize");n([e.n({type:Boolean,attribute:"no-values"})],t.prototype,"noValues");n([e.n({type:Number,reflect:!0,attribute:"minimum-range-size"})],t.prototype,"minimumRangeSize");n([e.n({type:Boolean,reflect:!0,attribute:"negative-infinity-value"})],t.prototype,"negativeInfinityValue");n([e.n({type:Boolean,attribute:"read-only-color-picker"})],t.prototype,"readOnlyColorPicker");n([e.n({type:Boolean})],t.prototype,"reverse");n([e.n({type:Number,reflect:!0})],t.prototype,"debounce");n([e.n()],t.prototype,"parseValue");n([e.n()],t.prototype,"toValue");n([b.r(".color-range-line")],t.prototype,"colorRangeLines");n([m.r()],t.prototype,"_ranges");customElements.get("luzmo-edit-option-color-range")||customElements.define("luzmo-edit-option-color-range",t);exports.LuzmoEditOptionColorRange=t;
@@ -0,0 +1,7 @@
1
+ import { LuzmoEditOptionColorRange } from './edit-option-color-range';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-edit-option-color-range': LuzmoEditOptionColorRange;
5
+ }
6
+ }
7
+ export { LuzmoEditOptionColorRange } from './edit-option-color-range';
@@ -0,0 +1,261 @@
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
+ var h = Object.getPrototypeOf;
21
+ var z = Reflect.get;
22
+ var m = (d, o, e) => z(h(d), e, o);
23
+ import { a7 as f } from "../luzmo-icons-4Tmb3sKr.js";
24
+ import "../index-Be-pSgzQ.js";
25
+ import "../index-BY1yDIAI.js";
26
+ import "../index-COU9XhBt.js";
27
+ import "../index-C6NpWavw.js";
28
+ import "../index-DYmi-X87.js";
29
+ import { r as b, x as s, n as c } from "../property-BFMfZY1k.js";
30
+ import { r as x } from "../state-BSTa7W6f.js";
31
+ import { r as w } from "../query-all-Ddzx2fEK.js";
32
+ import { e as y } from "../extrapolate-color-CC9CURf6.js";
33
+ import { L as _ } from "../edit-option-base-D25zHZVl.js";
34
+ const v = () => {
35
+ if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
36
+ const d = document.createElement("style");
37
+ d.setAttribute("data-luzmo-vars", ""), d.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(d);
38
+ }
39
+ };
40
+ v();
41
+ const k = ':host{--luzmo-swatch-size: 14px}.luzmo-edit-option{height:fit-content;align-items:start}.control-container{align-items:start;flex-grow:1}.color-range-line{display:flex;align-items:center}luzmo-color-field,luzmo-number-field{flex-grow:1}.color-range-lines-container,.color-range-lines{flex-grow:1;display:flex;flex-direction:column;gap:var(--luzmo-edit-option-color-range-ranges-gap, var(--color-ranges-gap))}.color-range-lines{width:100%}.extra-label{height:var(--edit-option-component-height);display:flex;align-items:center}.color-range-percentage-value{padding-inline-start:var(--luzmo-edit-option-color-range-color-swatch-to-percentage, var(--color-swatch-to-percentage));padding-inline-end:var(--luzmo-edit-option-color-range-percentage-to-input-field, var(--percentage-to-input-field))}luzmo-color-picker{position:relative}luzmo-color-picker:not(:has(+.color-range-percentage-value)){padding-inline-end:var(--luzmo-edit-option-color-range-color-swatch-to-input-field, var(--color-swatch-to-input-field))}luzmo-number-field:has(+luzmo-action-button),luzmo-color-field:has(+luzmo-action-button){padding-inline-end:var(--luzmo-edit-option-color-range-input-field-to-button, var(--input-field-to-button))}luzmo-color-picker:before{box-sizing:border-box;content:"";position:absolute;top:var(--color-range-connector-top);left:var(--color-range-connector-left);height:var(--color-range-connector-height);width:var(--color-range-connector-width);background:var(--range-color);border:var(--luzmo-edit-option-color-range-connector-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-color-range-connector-border-color, var(--luzmo-border-color));border-top:0;border-bottom:0;z-index:-1}:host([reverse]) luzmo-color-picker:before{top:var(--color-range-reverse-connector-top)}.color-range-lines:not(.edit-range-size) .color-range-line:last-child luzmo-color-picker:before{display:none}.color-range-add-value-container{height:var(--color-range-input-field-height);display:flex;align-items:center;justify-content:start}.color-range-add-value{box-sizing:border-box;display:flex;position:relative;align-items:center;justify-content:center;width:var(--luzmo-edit-option-color-range-add-value-width, var(--luzmo-swatch-size));height:var(--luzmo-edit-option-color-range-add-value-height, var(--luzmo-swatch-size));border-width:var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width));border-style:solid;border-color:var(--luzmo-edit-option-color-range-add-value-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-color-range-add-value-border-radius, 50%);background-color:var(--luzmo-edit-option-color-range-add-value-background-color, var(--luzmo-background-color));cursor:pointer;color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary))}.color-range-add-value .plus-sign{position:absolute;top:0;left:0;width:100%;height:100%}.color-range-add-value .plus-sign:before{content:" ";position:absolute;display:block;background-color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary));height:var(--add-color-range-plus-size);width:var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width));top:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--add-color-range-plus-size)) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));left:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width))) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));z-index:1}.color-range-add-value .plus-sign:after{content:" ";position:absolute;display:block;background-color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary));width:var(--add-color-range-plus-size);height:var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width));left:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--add-color-range-plus-size)) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));top:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width))) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));z-index:1}.color-range-add-value:hover{background-color:var(--luzmo-edit-option-color-range-add-value-background-color-hover, var(--luzmo-background-color-hover));color:var(--luzmo-edit-option-color-range-add-value-color-hover, var(--luzmo-primary-hover))}.color-range-add-value[focused],.color-range-add-value:focus-visible{outline:none;background-color:var(--luzmo-edit-option-color-range-add-value-background-color-focus, var(--luzmo-background-color-focus));color:var(--luzmo-edit-option-color-range-add-value-color-focus, var(--luzmo-primary-focus))}.color-range-add-value[focused]:after,.color-range-add-value:focus-visible:after{content:"";inset:calc(var(--luzmo-edit-option-color-range-add-value-focus-indicator-gap, var(--add-value-focus-indicator-gap)) * -2);background-color:var(--luzmo-edit-option-color-range-add-value-focus-indicator-background-color, var(--luzmo-background-color));border-width:var(--luzmo-edit-option-color-range-add-value-focus-indicator-width, var(--add-value-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-edit-option-color-range-add-value-focus-indicator-color, var(--add-value-focus-indicator-color)));border-radius:var(--luzmo-edit-option-color-range-add-value-focus-indicator-border-radius, var(--add-value-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute;z-index:-1}:host{--luzmo-swatch-size: var(--color-range-swatch-size);--color-range-swatch-size: 16px;--color-ranges-gap: calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--color-range-connector-width: .25rem;--color-range-connector-height: calc( var(--color-range-input-field-height) + var(--color-ranges-gap) - var(--color-range-swatch-size) + var(--color-range-connector-width) );--color-range-connector-top: calc( var(--color-range-swatch-size) - (var(--color-range-connector-width) / 2) );--color-range-reverse-connector-top: calc( -1 * var(--color-range-connector-height) + (var(--color-range-connector-width) / 2) );--color-range-connector-left: calc( (var(--color-range-swatch-size) - var(--color-range-connector-width)) / 2 );--color-range-input-field-height: var(--luzmo-component-height);--add-color-range-size: var(--color-range-swatch-size);--add-color-range-plus-size: 8px;--add-color-range-plus-sign-border-width: 2px;--add-value-focus-indicator-border-radius: 50%;--add-value-focus-indicator-gap: 3px;--add-value-focus-indicator-width: 1px;--add-value-focus-indicator-color: var(--luzmo-primary);--color-swatch-to-percentage: var(--luzmo-spacing-4);--color-swatch-to-input-field: var(--luzmo-spacing-4);--percentage-to-input-field: var(--luzmo-spacing-4);--input-field-to-button: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=s]){--color-range-swatch-size: 14px;--color-range-input-field-height: var(--luzmo-component-height-s);--color-ranges-gap: var(--luzmo-spacing-2);--add-color-range-plus-size: 6px;--add-color-range-plus-sign-border-width: 2px;--color-swatch-to-percentage: var(--luzmo-spacing-3);--color-swatch-to-input-field: var(--luzmo-spacing-3);--percentage-to-input-field: var(--luzmo-spacing-3);--input-field-to-button: var(--luzmo-spacing-2)}:host([size=l]){--color-range-swatch-size: 18px;--color-range-input-field-height: var(--luzmo-component-height-l);--color-ranges-gap: calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--add-color-range-plus-size: 10px;--color-swatch-to-percentage: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--color-swatch-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--percentage-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--input-field-to-button: var(--luzmo-spacing-3)}:host([size=xl]){--color-range-swatch-size: 20px;--color-range-input-field-height: var(--luzmo-component-height-xl);--color-ranges-gap: var(--luzmo-spacing-3);--add-color-range-plus-size: 10px;--color-swatch-to-percentage: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--color-swatch-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--percentage-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--input-field-to-button: var(--luzmo-spacing-4)}';
42
+ var $ = Object.defineProperty, i = (d, o, e, l) => {
43
+ for (var r = void 0, n = d.length - 1, t; n >= 0; n--)
44
+ (t = d[n]) && (r = t(o, e, r) || r);
45
+ return r && $(o, e, r), r;
46
+ };
47
+ const u = class u extends _ {
48
+ constructor() {
49
+ super(...arguments), this.disabled = !1, this.percentage = !1, this.noAlphaChannel = !1, this.editRangeSize = !1, this.noValues = !1, this.minimumRangeSize = 2, this.negativeInfinityValue = !1, this.readOnlyColorPicker = !1, this.reverse = !1, this.debounce = 100, this._ranges = [];
50
+ }
51
+ willUpdate(o) {
52
+ super.willUpdate(o), o.has("value") && (this._ranges = typeof this.parseValue == "function" ? this.parseValue(this.value ?? this.default ?? []) : this.value ?? this.default ?? []), this.negativeInfinityValue && (this._ranges = [
53
+ { color: this._ranges[0].color, value: -1 / 0 },
54
+ ...this._ranges.slice(1)
55
+ ]);
56
+ }
57
+ _handleChangeEvent() {
58
+ this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(() => {
59
+ this.dispatchEvent(
60
+ new CustomEvent("option-changed", {
61
+ bubbles: !0,
62
+ composed: !0,
63
+ cancelable: !0,
64
+ detail: {
65
+ value: typeof this.toValue == "function" ? this.toValue(this._ranges) : this._ranges
66
+ }
67
+ })
68
+ );
69
+ }, this.debounce ?? 200);
70
+ }
71
+ _getIndex(o) {
72
+ var l, r;
73
+ let e = [...this.colorRangeLines].indexOf(
74
+ (l = o == null ? void 0 : o.target) == null ? void 0 : l.closest(
75
+ ".color-range-line"
76
+ )
77
+ );
78
+ return this.reverse && (e = (((r = this._ranges) == null ? void 0 : r.length) ?? 0) - 1 - e), e;
79
+ }
80
+ _extrapolateNewValue(o) {
81
+ if (o.length < 2)
82
+ return 0;
83
+ const e = o.at(-1), l = o.at(-2), r = (e ?? 0) - (l ?? 0);
84
+ return (e ?? 0) + r;
85
+ }
86
+ _setColor(o) {
87
+ var r;
88
+ const e = this._getIndex(o), l = o.target.color ?? o.target.value;
89
+ (r = this._ranges) != null && r[e] && (this._ranges[e].color = l), this._ranges = structuredClone(this._ranges), this._handleChangeEvent();
90
+ }
91
+ _setNumber(o) {
92
+ var r;
93
+ const e = this._getIndex(o), l = o.target.value;
94
+ (r = this._ranges) != null && r[e] && (this._ranges[e].value = l), this._ranges = structuredClone(
95
+ this._ranges.sort((n, t) => ((n == null ? void 0 : n.value) ?? 0) - ((t == null ? void 0 : t.value) ?? 0))
96
+ ), this._handleChangeEvent();
97
+ }
98
+ _removeRangeValue(o) {
99
+ var l;
100
+ const e = this._getIndex(o);
101
+ (l = this._ranges) == null || l.splice(e, 1), this._ranges = structuredClone(this._ranges), this._handleChangeEvent();
102
+ }
103
+ _addRangeValue() {
104
+ var l, r, n;
105
+ const o = y(
106
+ ((l = this._ranges) == null ? void 0 : l.map((t) => t.color)) ?? []
107
+ ), e = this._extrapolateNewValue(
108
+ ((r = this._ranges) == null ? void 0 : r.map((t) => t.value ?? 0)) ?? []
109
+ );
110
+ (n = this._ranges) == null || n.push({ color: o, value: e }), this._ranges = structuredClone(this._ranges), this._handleChangeEvent();
111
+ }
112
+ renderRangeValues() {
113
+ const o = (r, n, t, g) => {
114
+ var p;
115
+ return s`
116
+ <div class="color-range-line" style="--range-color: ${r}">
117
+ <luzmo-color-picker
118
+ .color=${r}
119
+ .debounce=${this.debounce}
120
+ ?disabled=${this.disabled}
121
+ ?no-alpha-channel=${this.noAlphaChannel}
122
+ ?read-only=${this.readOnlyColorPicker}
123
+ @change=${this._setColor}
124
+ ></luzmo-color-picker>
125
+ ${this.percentage ? s`<div class="color-range-percentage-value">%</div>` : s``}
126
+ ${this.noValues ? s` <luzmo-color-field
127
+ .value=${r}
128
+ .size=${this.size}
129
+ .debounce=${this.debounce}
130
+ ?no-alpha-channel=${this.noAlphaChannel}
131
+ ?disabled=${this.disabled}
132
+ @change=${this._setColor}
133
+ ></luzmo-color-field>` : t ? s` <luzmo-text-field
134
+ .value=${"< " + (g ?? 0)}
135
+ .size=${this.size}
136
+ readonly
137
+ ></luzmo-text-field>` : s` <luzmo-number-field
138
+ .value=${n ?? 0}
139
+ .size=${this.size}
140
+ .debounce=${this.debounce}
141
+ ?disabled=${this.disabled}
142
+ @change=${this._setNumber}
143
+ ></luzmo-number-field>`}
144
+ ${this.editRangeSize && !this.disabled && !t && (((p = this._ranges) == null ? void 0 : p.length) ?? 0) > this.minimumRangeSize ? s`<luzmo-action-button
145
+ quiet
146
+ .size=${this.size}
147
+ @click=${this._removeRangeValue}
148
+ >
149
+ <luzmo-icon
150
+ slot="icon"
151
+ .size=${this.size}
152
+ .icon=${f}
153
+ ></luzmo-icon>
154
+ </luzmo-action-button>` : s``}
155
+ </div>
156
+ `;
157
+ };
158
+ let e = this._ranges ?? this.default ?? [];
159
+ this.reverse && (e = [...e].reverse());
160
+ const l = e.map(
161
+ ({ color: r, value: n }, t) => {
162
+ var g;
163
+ return o(
164
+ r,
165
+ n,
166
+ t === 0 && this.negativeInfinityValue,
167
+ t === 0 && this.negativeInfinityValue ? (g = e[1]) == null ? void 0 : g.value : void 0
168
+ );
169
+ }
170
+ );
171
+ return s`
172
+ <div class="color-range-lines-container">
173
+ ${this.editRangeSize && !this.disabled && this.reverse ? s`<div class="color-range-add-value-container">
174
+ <button
175
+ class="color-range-add-value"
176
+ @click=${this._addRangeValue}
177
+ >
178
+ <div class="plus-sign"></div>
179
+ </button>
180
+ </div>` : s``}
181
+ <div
182
+ class="color-range-lines ${this.editRangeSize && !this.disabled ? "edit-range-size" : ""}"
183
+ >
184
+ ${l}
185
+ </div>
186
+ ${this.editRangeSize && !this.disabled && !this.reverse ? s`<div class="color-range-add-value-container">
187
+ <button
188
+ class="color-range-add-value"
189
+ @click=${this._addRangeValue}
190
+ >
191
+ <div class="plus-sign"></div>
192
+ </button>
193
+ </div>` : s``}
194
+ </div>
195
+ `;
196
+ }
197
+ renderController() {
198
+ return this.renderRangeValues();
199
+ }
200
+ };
201
+ u.styles = [m(u, u, "styles"), b(k)];
202
+ let a = u;
203
+ i([
204
+ c({ type: Array, reflect: !0 })
205
+ ], a.prototype, "value");
206
+ i([
207
+ c({ type: Array, reflect: !0 })
208
+ ], a.prototype, "default");
209
+ i([
210
+ c({ type: Boolean, reflect: !0 })
211
+ ], a.prototype, "disabled");
212
+ i([
213
+ c({ type: Boolean })
214
+ ], a.prototype, "percentage");
215
+ i([
216
+ c({ type: Boolean, attribute: "no-alpha-channel" })
217
+ ], a.prototype, "noAlphaChannel");
218
+ i([
219
+ c({ type: Boolean, attribute: "edit-range-size" })
220
+ ], a.prototype, "editRangeSize");
221
+ i([
222
+ c({ type: Boolean, attribute: "no-values" })
223
+ ], a.prototype, "noValues");
224
+ i([
225
+ c({ type: Number, reflect: !0, attribute: "minimum-range-size" })
226
+ ], a.prototype, "minimumRangeSize");
227
+ i([
228
+ c({
229
+ type: Boolean,
230
+ reflect: !0,
231
+ attribute: "negative-infinity-value"
232
+ })
233
+ ], a.prototype, "negativeInfinityValue");
234
+ i([
235
+ c({ type: Boolean, attribute: "read-only-color-picker" })
236
+ ], a.prototype, "readOnlyColorPicker");
237
+ i([
238
+ c({ type: Boolean })
239
+ ], a.prototype, "reverse");
240
+ i([
241
+ c({ type: Number, reflect: !0 })
242
+ ], a.prototype, "debounce");
243
+ i([
244
+ c()
245
+ ], a.prototype, "parseValue");
246
+ i([
247
+ c()
248
+ ], a.prototype, "toValue");
249
+ i([
250
+ w(".color-range-line")
251
+ ], a.prototype, "colorRangeLines");
252
+ i([
253
+ x()
254
+ ], a.prototype, "_ranges");
255
+ customElements.get("luzmo-edit-option-color-range") || customElements.define(
256
+ "luzmo-edit-option-color-range",
257
+ a
258
+ );
259
+ export {
260
+ a as LuzmoEditOptionColorRange
261
+ };
@@ -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
- "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-Tx5oQjbt.cjs");const l=require("../property-BV1QaY8E.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-Db3JjWMk.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
20
+ "use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index--3gSNupB.cjs");const l=require("../property-BV1QaY8E.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-h5ndfVK4.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
21
21
  <luzmo-multi-language-field
22
22
  .value=${t}
23
23
  .language=${this.language??"en"}
@@ -20,10 +20,10 @@
20
20
  var s = Object.getPrototypeOf;
21
21
  var d = Reflect.get;
22
22
  var c = (r, e, u) => d(s(r), u, e);
23
- import "../index-CbuHBIDB.js";
23
+ import "../index-DeIay7ZE.js";
24
24
  import { x as f, n as t } from "../property-BFMfZY1k.js";
25
25
  import { e as g } from "../query-Ddbd72Um.js";
26
- import { L as p } from "../edit-option-base-CbpBi6I7.js";
26
+ import { L as p } from "../edit-option-base-D25zHZVl.js";
27
27
  const z = () => {
28
28
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
29
29
  const r = document.createElement("style");
@@ -7,6 +7,8 @@ export declare class LuzmoEditOptionNumberField extends LuzmoEditOptionBase {
7
7
  max?: number;
8
8
  default?: number;
9
9
  value?: number;
10
+ placeholder?: string;
11
+ minWidthInputField?: string;
10
12
  step: number;
11
13
  unit: boolean;
12
14
  debounce: number;
@@ -17,16 +17,20 @@
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";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(n,r,s)=>c(d(n),s,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CBOAQ3-E.cjs");const t=require("../property-BV1QaY8E.cjs"),h=require("../query-D5qWDopr.cjs"),f=require("../edit-option-base-Db3JjWMk.cjs");var m=Object.defineProperty,u=(n,r,s,b)=>{for(var i=void 0,l=n.length-1,a;l>=0;l--)(a=n[l])&&(i=a(r,s,i)||i);return i&&m(r,s,i),i};const o=class o extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
20
+ "use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var a=(s,r,u)=>c(h(s),u,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-Bpdwb9Js.cjs");const t=require("../property-BV1QaY8E.cjs"),f=require("../query-D5qWDopr.cjs"),d=require("../if-defined-DjdbEoAa.cjs"),m=require("../edit-option-base-h5ndfVK4.cjs");var y=Object.defineProperty,i=(s,r,u,b)=>{for(var n=void 0,l=s.length-1,p;l>=0;l--)(p=s[l])&&(n=p(r,u,n)||n);return n&&y(r,u,n),n};const o=class o extends m.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,u=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
21
21
  <luzmo-number-field
22
- .value=${r??s??0}
22
+ style="min-width: ${this.minWidthInputField??"auto"}"
23
+ value=${d.o(r??u)}
23
24
  .size=${this.size}
24
25
  .step=${this.step}
25
26
  .min=${this.min}
26
27
  .max=${this.max}
27
28
  .unit=${this.unit}
29
+ .debounce=${this.debounce}
30
+ placeholder=${d.o(this.placeholder)}
28
31
  .disabled=${this.disabled}
29
32
  @change=${this._handleEvent}
33
+ @input=${this._handleEvent}
30
34
  >
31
35
  </luzmo-number-field>
32
- `}};o.styles=[p(o,o,"styles")];let e=o;u([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");u([t.n({type:Number,reflect:!0})],e.prototype,"min");u([t.n({type:Number,reflect:!0})],e.prototype,"max");u([t.n({type:Number,reflect:!0})],e.prototype,"default");u([t.n({type:Number,reflect:!0})],e.prototype,"value");u([t.n({type:Number,reflect:!0})],e.prototype,"step");u([t.n({type:String,reflect:!0})],e.prototype,"unit");u([t.n({type:Number,reflect:!0})],e.prototype,"debounce");u([t.n()],e.prototype,"parseValue");u([t.n()],e.prototype,"toValue");u([h.e("luzmo-number-field")],e.prototype,"numberField");customElements.get("luzmo-edit-option-number-field")||customElements.define("luzmo-edit-option-number-field",e);exports.LuzmoEditOptionNumberField=e;
36
+ `}};o.styles=[a(o,o,"styles")];let e=o;i([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");i([t.n({type:Number,reflect:!0})],e.prototype,"min");i([t.n({type:Number,reflect:!0})],e.prototype,"max");i([t.n({type:Number,reflect:!0})],e.prototype,"default");i([t.n({type:Number,reflect:!0})],e.prototype,"value");i([t.n({type:String,reflect:!0})],e.prototype,"placeholder");i([t.n({type:String,reflect:!0,attribute:"min-width-input-field"})],e.prototype,"minWidthInputField");i([t.n({type:Number,reflect:!0})],e.prototype,"step");i([t.n({type:String,reflect:!0})],e.prototype,"unit");i([t.n({type:Number,reflect:!0})],e.prototype,"debounce");i([t.n()],e.prototype,"parseValue");i([t.n()],e.prototype,"toValue");i([f.e("luzmo-number-field")],e.prototype,"numberField");customElements.get("luzmo-edit-option-number-field")||customElements.define("luzmo-edit-option-number-field",e);exports.LuzmoEditOptionNumberField=e;