@luzmo/analytics-components-kit 1.0.1-alpha.17 → 1.0.1-alpha.19

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 (173) hide show
  1. package/components/area-chart-options.config-A8NH6aUG.cjs +20 -0
  2. package/components/{area-chart-options.config-B5qtlH-_.js → area-chart-options.config-BbSP_Auh.js} +32 -31
  3. package/components/bar-chart-options.config-CRGDLJCK.js +161 -0
  4. package/components/bar-chart-options.config-Cpbrpmp1.cjs +20 -0
  5. package/components/{box-plot-options.config-DoZHVmpm.js → box-plot-options.config-BtonHYul.js} +65 -90
  6. package/components/box-plot-options.config-CGIKZNsw.cjs +20 -0
  7. package/components/bubble-chart-options.config-BM7njnkG.cjs +20 -0
  8. package/components/{bubble-chart-options.config-Cp6OQnJl.js → bubble-chart-options.config-R5R-E3dd.js} +24 -42
  9. package/components/{bubble-chart-options.de-L-yQc0Vj.cjs → bubble-chart-options.de-D2Z88fwi.cjs} +1 -1
  10. package/components/{bubble-chart-options.de-BGWrRmuN.js → bubble-chart-options.de-D8Ap7joq.js} +6 -1
  11. package/components/{bubble-chart-options.en-CYwRht5M.js → bubble-chart-options.en-BU3F4n13.js} +8 -3
  12. package/components/{bubble-chart-options.en-CCG_rkEd.cjs → bubble-chart-options.en-CP9PhuPw.cjs} +1 -1
  13. package/components/{bubble-chart-options.es-CihHnrZ4.cjs → bubble-chart-options.es-B6mTDtxs.cjs} +1 -1
  14. package/components/{bubble-chart-options.es-ZnkjzgL_.js → bubble-chart-options.es-Bh_dRgE3.js} +7 -2
  15. package/components/{bubble-chart-options.fr-CFULfSKT.cjs → bubble-chart-options.fr-BMPe3Z5G.cjs} +1 -1
  16. package/components/{bubble-chart-options.fr-Cym1h3sF.js → bubble-chart-options.fr-CNiJgmGl.js} +7 -2
  17. package/components/{bubble-chart-options.nl-Deep5xXO.cjs → bubble-chart-options.nl-5thQrFoi.cjs} +1 -1
  18. package/components/{bubble-chart-options.nl-D1TFWi5k.js → bubble-chart-options.nl-BoV3kpaZ.js} +8 -3
  19. package/components/{bullet-chart-options.config-D8mAooLE.js → bullet-chart-options.config-D-_esi9S.js} +7 -25
  20. package/components/bullet-chart-options.config-D-wrbTMO.cjs +20 -0
  21. package/components/{choropleth-map-options.config-4QDypbCL.cjs → choropleth-map-options.config-BOuMfF8r.cjs} +1 -1
  22. package/components/{choropleth-map-options.config-V8tRnQqz.js → choropleth-map-options.config-z2fY__jr.js} +4 -4
  23. package/components/{circular-guage-options.config-C3ExuT5F.js → circular-gauge-options.config-9tIxyJj1.js} +19 -29
  24. package/components/circular-gauge-options.config-h9KNl5Eq.cjs +20 -0
  25. package/components/column-chart-options.config-B-e2SI2W.cjs +20 -0
  26. package/components/{column-chart-options.config-CGw1dN1E.js → column-chart-options.config-D87ZFT76.js} +34 -52
  27. package/components/conditional-number-options.config-D09JeUlU.cjs +20 -0
  28. package/components/conditional-number-options.config-PVvKLc1P.js +133 -0
  29. package/components/conditional-number-options.de-BJcjBZY1.js +74 -0
  30. package/components/conditional-number-options.de-CFnufi0r.cjs +20 -0
  31. package/components/conditional-number-options.en-WSrIzRGJ.js +74 -0
  32. package/components/conditional-number-options.en-Wd-0YtdE.cjs +20 -0
  33. package/components/conditional-number-options.es-BKqT0zog.js +74 -0
  34. package/components/conditional-number-options.es-BTDTe5SF.cjs +20 -0
  35. package/components/conditional-number-options.fr-CZ-9jzPm.cjs +20 -0
  36. package/components/conditional-number-options.fr-D2r7Azy8.js +74 -0
  37. package/components/conditional-number-options.nl-CfRYL6o1.cjs +20 -0
  38. package/components/conditional-number-options.nl-pkRI1tLZ.js +74 -0
  39. package/components/{donut-chart-options.config-DuJFyp4z.js → donut-chart-options.config-NPwNtLDW.js} +23 -20
  40. package/components/donut-chart-options.config-bqcKuyIu.cjs +20 -0
  41. package/components/{dropdown-filter-options.config-BxjR1xAD.js → dropdown-filter-options.config-D9dvPypF.js} +5 -5
  42. package/components/{dropdown-filter-options.config-C3YEGK-5.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  43. package/components/edit-item/index.cjs +14 -14
  44. package/components/edit-item/index.js +79 -55
  45. package/components/edit-option/helpers/get-default-value.d.ts +1 -0
  46. package/components/edit-option/index.cjs +98 -98
  47. package/components/edit-option/index.js +335 -329
  48. package/components/edit-option-action-button-group/index.cjs +7 -7
  49. package/components/edit-option-action-button-group/index.js +56 -54
  50. package/components/edit-option-position-picker/edit-option-position-picker.d.ts +1 -1
  51. package/components/edit-option-position-picker/index.cjs +2 -2
  52. package/components/edit-option-position-picker/index.js +4 -6
  53. package/components/funnel-chart-options.config-CrlHKd36.js +184 -0
  54. package/components/funnel-chart-options.config-hw_GXs4s.cjs +20 -0
  55. package/components/funnel-chart-options.de-CuVFMJUC.js +93 -0
  56. package/components/funnel-chart-options.de-DRAGes5d.cjs +20 -0
  57. package/components/funnel-chart-options.en-CvPbJr1r.js +93 -0
  58. package/components/funnel-chart-options.en-b6BBKfZh.cjs +20 -0
  59. package/components/funnel-chart-options.es-DfDw5S5g.cjs +20 -0
  60. package/components/funnel-chart-options.es-_M7sC4m6.js +93 -0
  61. package/components/funnel-chart-options.fr-DWkPkC47.cjs +20 -0
  62. package/components/funnel-chart-options.fr-DvnZ-XbE.js +93 -0
  63. package/components/funnel-chart-options.nl-BdAL0ZJP.cjs +20 -0
  64. package/components/funnel-chart-options.nl-C72_FTNm.js +93 -0
  65. package/components/helpers-CKo1Fkek.cjs +20 -0
  66. package/components/helpers-DqqxcHaY.js +51 -0
  67. package/components/{line-chart-options.config-CEUJYNt7.js → line-chart-options.config-BtfCTjNr.js} +32 -31
  68. package/components/line-chart-options.config-Cb7txmmw.cjs +20 -0
  69. package/components/radar-chart-options.config-Ck7skfge.cjs +20 -0
  70. package/components/{radar-chart-options.config-gKHFbC63.js → radar-chart-options.config-DFxna7UF.js} +25 -43
  71. package/components/sankey-diagram-options.config-DJqI2dMh.cjs +20 -0
  72. package/components/{sankey-diagram-options.config-ylhZhJ6H.js → sankey-diagram-options.config-Dj9g2BOp.js} +16 -26
  73. package/components/{search-filter-options.config-C9CoGS9f.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  74. package/components/{search-filter-options.config-baX2Vdul.js → search-filter-options.config-BE3JhR-F.js} +1 -1
  75. package/components/{slicer-filter-options.config-A3YK_KZn.js → slicer-filter-options.config-BArPA7Mb.js} +20 -38
  76. package/components/slicer-filter-options.config-BW44EPso.cjs +20 -0
  77. package/components/{slider-filter-options.config-C-zvfTNl.js → slider-filter-options.config-BIKIbGbN.js} +7 -25
  78. package/components/slider-filter-options.config-zuWa8Rtt.cjs +20 -0
  79. package/components/sunburst-chart-options.config-BjtKxThH.cjs +20 -0
  80. package/components/{sunburst-chart-options.config-VZqDthcz.js → sunburst-chart-options.config-BxkJfdrU.js} +30 -30
  81. package/components/{textobject-options.nl-V03mmGmH.js → text-options.nl-C8sliUgH.js} +2 -2
  82. package/components/{treemap-chart-options.config-f8L8KfDj.js → treemap-chart-options.config-MyCTS35Y.js} +45 -63
  83. package/components/treemap-chart-options.config-PwXbMhHZ.cjs +20 -0
  84. package/components/{video-options.config-BBDHSf6_.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  85. package/components/{video-options.config-CbtNZAEK.js → video-options.config-Dk36zJ1B.js} +5 -5
  86. package/components/wordcloud-chart-options.config-Cv9l0THs.cjs +20 -0
  87. package/components/{wordcloud-chart-options.config-CQs8YFfd.js → wordcloud-chart-options.config-Dq7TF0sb.js} +10 -28
  88. package/custom-elements.json +31 -3
  89. package/item-definitions/area-chart/area-chart-options.config.d.ts +27 -6
  90. package/item-definitions/bar-chart/bar-chart-options.config.d.ts +13 -13
  91. package/item-definitions/box-plot/box-plot-options.config.d.ts +16 -16
  92. package/item-definitions/bubble-chart/bubble-chart-options.config.d.ts +7 -7
  93. package/item-definitions/bubble-chart/i18n/bubble-chart-options.de.d.ts +5 -0
  94. package/item-definitions/bubble-chart/i18n/bubble-chart-options.en.d.ts +5 -0
  95. package/item-definitions/bubble-chart/i18n/bubble-chart-options.es.d.ts +5 -0
  96. package/item-definitions/bubble-chart/i18n/bubble-chart-options.fr.d.ts +5 -0
  97. package/item-definitions/bubble-chart/i18n/bubble-chart-options.nl.d.ts +5 -0
  98. package/item-definitions/bullet-chart/bullet-chart-options.config.d.ts +4 -4
  99. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +1 -1
  100. package/item-definitions/circular-gauge/{circular-guage-options.config.d.ts → circular-gauge-options.config.d.ts} +4 -4
  101. package/item-definitions/column-chart/column-chart-options.config.d.ts +13 -13
  102. package/item-definitions/conditional-number/conditional-number-options.config.d.ts +135 -0
  103. package/item-definitions/conditional-number/i18n/conditional-number-options.de.d.ts +53 -0
  104. package/item-definitions/conditional-number/i18n/conditional-number-options.en.d.ts +53 -0
  105. package/item-definitions/conditional-number/i18n/conditional-number-options.es.d.ts +53 -0
  106. package/item-definitions/conditional-number/i18n/conditional-number-options.fr.d.ts +53 -0
  107. package/item-definitions/conditional-number/i18n/conditional-number-options.nl.d.ts +53 -0
  108. package/item-definitions/donut-chart/donut-chart-options.config.d.ts +8 -7
  109. package/item-definitions/dropdown-filter/dropdown-filter-options.config.d.ts +2 -2
  110. package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +88 -0
  111. package/item-definitions/funnel-chart/i18n/funnel-chart-options.de.d.ts +72 -0
  112. package/item-definitions/funnel-chart/i18n/funnel-chart-options.en.d.ts +72 -0
  113. package/item-definitions/funnel-chart/i18n/funnel-chart-options.es.d.ts +72 -0
  114. package/item-definitions/funnel-chart/i18n/funnel-chart-options.fr.d.ts +72 -0
  115. package/item-definitions/funnel-chart/i18n/funnel-chart-options.nl.d.ts +72 -0
  116. package/item-definitions/helpers.d.ts +7 -0
  117. package/item-definitions/line-chart/line-chart-options.config.d.ts +31 -7
  118. package/item-definitions/radar-chart/radar-chart-options.config.d.ts +8 -8
  119. package/item-definitions/sankey-diagram/sankey-diagram-options.config.d.ts +5 -5
  120. package/item-definitions/search-filter/search-filter-options.config.d.ts +1 -1
  121. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +8 -8
  122. package/item-definitions/slider-filter/slider-filter-options.config.d.ts +4 -4
  123. package/item-definitions/sunburst-chart/sunburst-chart-options.config.d.ts +4 -4
  124. package/item-definitions/treemap-chart/treemap-chart-options.config.d.ts +10 -10
  125. package/item-definitions/video/video-options.config.d.ts +3 -3
  126. package/item-definitions/wordcloud-chart/wordcloud-chart-options.config.d.ts +5 -5
  127. package/package.json +1 -1
  128. package/components/area-chart-options.config-DMfRioZx.cjs +0 -20
  129. package/components/bar-chart-options.config-C7BGg5sh.cjs +0 -20
  130. package/components/bar-chart-options.config-CQfpV1Rx.js +0 -181
  131. package/components/box-plot-options.config-BsFp2CBS.cjs +0 -20
  132. package/components/bubble-chart-options.config-DL5Xl6Ad.cjs +0 -20
  133. package/components/bullet-chart-options.config-BO22R7gx.cjs +0 -20
  134. package/components/circular-guage-options.config-Dvg5quJ9.cjs +0 -20
  135. package/components/column-chart-options.config-DomUPYPM.cjs +0 -20
  136. package/components/donut-chart-options.config-kUyTbAtZ.cjs +0 -20
  137. package/components/line-chart-options.config-DNGyRAvG.cjs +0 -20
  138. package/components/radar-chart-options.config-DUXOzdbl.cjs +0 -20
  139. package/components/sankey-diagram-options.config-CG5S1OI3.cjs +0 -20
  140. package/components/slicer-filter-options.config-DQunaj8q.cjs +0 -20
  141. package/components/slider-filter-options.config-DF_sAElS.cjs +0 -20
  142. package/components/sunburst-chart-options.config-CEfAd1RQ.cjs +0 -20
  143. package/components/treemap-chart-options.config-Dc2UNcGG.cjs +0 -20
  144. package/components/wordcloud-chart-options.config-BLvcDvxT.cjs +0 -20
  145. /package/components/{imageobject-options.de-CBkRiIbw.cjs → image-options.de-CBkRiIbw.cjs} +0 -0
  146. /package/components/{imageobject-options.de-CYVnqdL_.js → image-options.de-CYVnqdL_.js} +0 -0
  147. /package/components/{imageobject-options.en-BMmV-4O-.js → image-options.en-BMmV-4O-.js} +0 -0
  148. /package/components/{imageobject-options.en-DflcU_2H.cjs → image-options.en-DflcU_2H.cjs} +0 -0
  149. /package/components/{imageobject-options.es-CRbNv384.cjs → image-options.es-CRbNv384.cjs} +0 -0
  150. /package/components/{imageobject-options.es-UN5rmaEt.js → image-options.es-UN5rmaEt.js} +0 -0
  151. /package/components/{imageobject-options.fr-DRE3zImB.js → image-options.fr-DRE3zImB.js} +0 -0
  152. /package/components/{imageobject-options.fr-ycH7UoX5.cjs → image-options.fr-ycH7UoX5.cjs} +0 -0
  153. /package/components/{imageobject-options.nl-D20hki6i.js → image-options.nl-D20hki6i.js} +0 -0
  154. /package/components/{imageobject-options.nl-DQL45o0j.cjs → image-options.nl-DQL45o0j.cjs} +0 -0
  155. /package/components/{textobject-options.de-BjfS5RBn.js → text-options.de-BjfS5RBn.js} +0 -0
  156. /package/components/{textobject-options.de-DLr2-jBn.cjs → text-options.de-DLr2-jBn.cjs} +0 -0
  157. /package/components/{textobject-options.en-BQqHFc7M.js → text-options.en-BQqHFc7M.js} +0 -0
  158. /package/components/{textobject-options.en-LfsMtwo6.cjs → text-options.en-LfsMtwo6.cjs} +0 -0
  159. /package/components/{textobject-options.es-BLQBqlvK.cjs → text-options.es-BLQBqlvK.cjs} +0 -0
  160. /package/components/{textobject-options.es-CMB1DKq4.js → text-options.es-CMB1DKq4.js} +0 -0
  161. /package/components/{textobject-options.fr-B8x29grG.cjs → text-options.fr-B8x29grG.cjs} +0 -0
  162. /package/components/{textobject-options.fr-VPJ3bDOM.js → text-options.fr-VPJ3bDOM.js} +0 -0
  163. /package/components/{textobject-options.nl-DzglrI3i.cjs → text-options.nl-DzglrI3i.cjs} +0 -0
  164. /package/item-definitions/image/i18n/{imageobject-options.de.d.ts → image-options.de.d.ts} +0 -0
  165. /package/item-definitions/image/i18n/{imageobject-options.en.d.ts → image-options.en.d.ts} +0 -0
  166. /package/item-definitions/image/i18n/{imageobject-options.es.d.ts → image-options.es.d.ts} +0 -0
  167. /package/item-definitions/image/i18n/{imageobject-options.fr.d.ts → image-options.fr.d.ts} +0 -0
  168. /package/item-definitions/image/i18n/{imageobject-options.nl.d.ts → image-options.nl.d.ts} +0 -0
  169. /package/item-definitions/text/i18n/{textobject-options.de.d.ts → text-options.de.d.ts} +0 -0
  170. /package/item-definitions/text/i18n/{textobject-options.en.d.ts → text-options.en.d.ts} +0 -0
  171. /package/item-definitions/text/i18n/{textobject-options.es.d.ts → text-options.es.d.ts} +0 -0
  172. /package/item-definitions/text/i18n/{textobject-options.fr.d.ts → text-options.fr.d.ts} +0 -0
  173. /package/item-definitions/text/i18n/{textobject-options.nl.d.ts → text-options.nl.d.ts} +0 -0
@@ -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 l=require("./helpers-CKo1Fkek.cjs"),o=({slots:e})=>{var n,i,r,t;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((i=(n=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:n.content)==null?void 0:i.length)>0||((t=(r=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:r.content)==null?void 0:t.length)>1:!1},u=({slots:e})=>{var n,i,r,t;return Array.isArray(e)&&(e==null?void 0:e.length)>0?!(((i=(n=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:n.content)==null?void 0:i.length)>0)&&((t=(r=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:r.content)==null?void 0:t.length)<=1:!0},d=({slots:e})=>{var n,i,r;return Array.isArray(e)&&((r=(i=(n=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="x-axis"))==null?void 0:n.content)==null?void 0:i[0])==null?void 0:r.type)==="datetime"},p=({options:e,slots:n})=>{var i,r,t,a;return Array.isArray(n)&&((t=(r=(i=n==null?void 0:n.find(c=>(c==null?void 0:c.name)==="x-axis"))==null?void 0:i.content)==null?void 0:r[0])==null?void 0:t.type)==="datetime"&&((a=e==null?void 0:e.missingValue)==null?void 0:a.type)==="manual"},y=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{label:"Title",type:"switch",default:!0}},{type:"divider"},{key:"mode",control:{label:"Mode",type:"picker",default:"unstacked",enum:["100","unstacked","stacked","stream"]},visibleIf:o},{key:"interpolation",control:{label:"Interpolation",type:"picker",default:"linear",enum:["linear","step-before","step-after","monotone"]}},{key:"display.legend",control:{label:"Legend",type:"switch",default:!0},visibleIf:o},{key:"display.modeOption",control:{label:"Mode option",type:"switch",default:!0},visibleIf:o},{key:"missingValue.type",control:{label:"Fill missing values",type:"picker",default:"no",enum:["no","break","manual"]},visibleIf:d},{key:"missingValue.value",control:{label:"Value",type:"number-field",default:"no",min:1},visibleIf:p},{key:"color",control:{label:"Area color",type:"color-picker",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:n})=>l.getThemeMainColorResetLabel(e,n,"color"),extraLabelHasClickAction:({options:e,theme:n})=>l.getThemeMainColorExtraLabelHasClickAction(e,n,"color"),extraLabelClickAction:({options:e,theme:n})=>l.getThemeMainColorExtraLabelClickAction(e,n,"color")},visibleIf:u}]},{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:o}];exports.default=y;
@@ -17,19 +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
- const u = (l, e) => {
21
- var i, a, t, r;
22
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (i = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : i.content) == null ? void 0 : a.length) > 0 || ((r = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : r.length) > 1 : !1;
23
- }, d = (l, e) => {
24
- var i, a, t, r;
25
- return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((a = (i = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : i.content) == null ? void 0 : a.length) > 0) && ((r = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : r.length) <= 1 : !0;
26
- }, p = (l, e) => {
27
- var i, a, t;
28
- return Array.isArray(e) && ((t = (a = (i = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "x-axis")) == null ? void 0 : i.content) == null ? void 0 : a[0]) == null ? void 0 : t.type) === "datetime";
29
- }, c = (l, e) => {
30
- var i, a, t, r;
31
- return Array.isArray(e) && ((t = (a = (i = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "x-axis")) == null ? void 0 : i.content) == null ? void 0 : a[0]) == null ? void 0 : t.type) === "datetime" && ((r = l == null ? void 0 : l.missingValue) == null ? void 0 : r.type) === "manual";
32
- }, y = [
20
+ import { g as c, a as u, b as d, c as p } from "./helpers-DqqxcHaY.js";
21
+ const l = ({ slots: e }) => {
22
+ var a, i, r, t;
23
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((i = (a = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : a.content) == null ? void 0 : i.length) > 0 || ((t = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : r.content) == null ? void 0 : t.length) > 1 : !1;
24
+ }, y = ({ slots: e }) => {
25
+ var a, i, r, t;
26
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((i = (a = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : a.content) == null ? void 0 : i.length) > 0) && ((t = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : r.content) == null ? void 0 : t.length) <= 1 : !0;
27
+ }, m = ({ slots: e }) => {
28
+ var a, i, r;
29
+ return Array.isArray(e) && ((r = (i = (a = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.name) === "x-axis")) == null ? void 0 : a.content) == null ? void 0 : i[0]) == null ? void 0 : r.type) === "datetime";
30
+ }, f = ({ options: e, slots: a }) => {
31
+ var i, r, t, n;
32
+ return Array.isArray(a) && ((t = (r = (i = a == null ? void 0 : a.find((o) => (o == null ? void 0 : o.name) === "x-axis")) == null ? void 0 : i.content) == null ? void 0 : r[0]) == null ? void 0 : t.type) === "datetime" && ((n = e == null ? void 0 : e.missingValue) == null ? void 0 : n.type) === "manual";
33
+ }, b = [
33
34
  {
34
35
  key: "general",
35
36
  type: "group",
@@ -54,7 +55,7 @@ const u = (l, e) => {
54
55
  default: "unstacked",
55
56
  enum: ["100", "unstacked", "stacked", "stream"]
56
57
  },
57
- visibleIf: u
58
+ visibleIf: l
58
59
  },
59
60
  {
60
61
  key: "interpolation",
@@ -72,7 +73,7 @@ const u = (l, e) => {
72
73
  type: "switch",
73
74
  default: !0
74
75
  },
75
- visibleIf: u
76
+ visibleIf: l
76
77
  },
77
78
  {
78
79
  key: "display.modeOption",
@@ -81,7 +82,7 @@ const u = (l, e) => {
81
82
  type: "switch",
82
83
  default: !0
83
84
  },
84
- visibleIf: u
85
+ visibleIf: l
85
86
  },
86
87
  {
87
88
  key: "missingValue.type",
@@ -91,7 +92,7 @@ const u = (l, e) => {
91
92
  default: "no",
92
93
  enum: ["no", "break", "manual"]
93
94
  },
94
- visibleIf: p
95
+ visibleIf: m
95
96
  },
96
97
  {
97
98
  key: "missingValue.value",
@@ -101,19 +102,19 @@ const u = (l, e) => {
101
102
  default: "no",
102
103
  min: 1
103
104
  },
104
- visibleIf: c
105
+ visibleIf: f
105
106
  },
106
107
  {
107
108
  key: "color",
108
109
  control: {
109
- label: "Line color",
110
+ label: "Area color",
110
111
  type: "color-picker",
111
- default: (l, e, i) => {
112
- var a;
113
- return (i == null ? void 0 : i.mainColor) ?? ((a = i == null ? void 0 : i.colors) == null ? void 0 : a[0]);
114
- }
112
+ default: ({ theme: e }) => p(e),
113
+ extraLabel: ({ options: e, theme: a }) => d(e, a, "color"),
114
+ extraLabelHasClickAction: ({ options: e, theme: a }) => u(e, a, "color"),
115
+ extraLabelClickAction: ({ options: e, theme: a }) => c(e, a, "color")
115
116
  },
116
- visibleIf: d
117
+ visibleIf: y
117
118
  }
118
119
  ]
119
120
  },
@@ -127,23 +128,23 @@ const u = (l, e) => {
127
128
  control: {
128
129
  label: "Position",
129
130
  type: "position-picker",
130
- default: "top-right",
131
+ default: "topRight",
131
132
  enum: [
132
- "top-left",
133
+ "topLeft",
133
134
  "top",
134
- "top-right",
135
+ "topRight",
135
136
  "right",
136
- "bottom-right",
137
+ "bottomRight",
137
138
  "bottom",
138
- "bottom-left",
139
+ "bottomLeft",
139
140
  "left"
140
141
  ]
141
142
  }
142
143
  }
143
144
  ],
144
- visibleIf: u
145
+ visibleIf: l
145
146
  }
146
147
  ];
147
148
  export {
148
- y as default
149
+ b as default
149
150
  };
@@ -0,0 +1,161 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { g as c, a as u, b as d, c as f } from "./helpers-DqqxcHaY.js";
21
+ const l = ({ slots: e }) => {
22
+ var r, a, t, i;
23
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : r.content) == null ? void 0 : a.length) > 0 || ((i = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : i.length) > 1 : !1;
24
+ }, o = ({ slots: e }) => {
25
+ var r, a, t, i;
26
+ return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : r.content) == null ? void 0 : a.length) === 0 && ((i = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : i.length) <= 1 : !0;
27
+ }, g = [
28
+ {
29
+ key: "general",
30
+ type: "group",
31
+ open: !0,
32
+ children: [
33
+ {
34
+ key: "mode",
35
+ control: {
36
+ type: "picker",
37
+ default: "grouped",
38
+ enum: ["grouped", "stacked", "100"]
39
+ },
40
+ visibleIf: l
41
+ },
42
+ {
43
+ type: "divider",
44
+ visibleIf: l
45
+ },
46
+ {
47
+ key: "display.title",
48
+ control: {
49
+ type: "switch",
50
+ default: !0
51
+ }
52
+ },
53
+ {
54
+ key: "display.legend",
55
+ control: {
56
+ type: "switch",
57
+ default: !0
58
+ },
59
+ visibleIf: l
60
+ },
61
+ {
62
+ key: "display.modeOption",
63
+ control: {
64
+ type: "switch",
65
+ default: !1
66
+ },
67
+ visibleIf: l
68
+ },
69
+ {
70
+ key: "bars.label",
71
+ control: {
72
+ type: "picker",
73
+ default: "none",
74
+ enum: [
75
+ "none",
76
+ "percentage",
77
+ "percentageLegend",
78
+ "percentageCategory",
79
+ "percentageMax"
80
+ ]
81
+ }
82
+ },
83
+ {
84
+ key: "categories.colored",
85
+ control: {
86
+ type: "switch",
87
+ default: !1
88
+ },
89
+ visibleIf: o
90
+ },
91
+ {
92
+ key: "bars.roundedCorners",
93
+ control: {
94
+ type: "slider",
95
+ default: ({ theme: e }) => {
96
+ var r;
97
+ return (r = e == null ? void 0 : e.itemSpecific) == null ? void 0 : r.rounding;
98
+ },
99
+ min: 0,
100
+ max: 20,
101
+ step: 1,
102
+ extraLabel: ({ options: e, theme: r }) => {
103
+ var a, t;
104
+ if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) == "number")
105
+ return typeof ((t = e == null ? void 0 : e.bars) == null ? void 0 : t.roundedCorners) != "number" ? "auto" : "reset";
106
+ },
107
+ extraLabelHasClickAction: ({ options: e, theme: r }) => {
108
+ var a, t;
109
+ return !(typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) != "number" || typeof ((t = e == null ? void 0 : e.bars) == null ? void 0 : t.roundedCorners) != "number");
110
+ },
111
+ extraLabelClickAction: ({ options: e }) => {
112
+ var a;
113
+ const r = { ...e };
114
+ return (a = r == null ? void 0 : r.bars) == null || delete a.roundedCorners, { value: null, options: r };
115
+ }
116
+ }
117
+ },
118
+ {
119
+ key: "color",
120
+ control: {
121
+ type: "color-picker",
122
+ label: "Bar color",
123
+ default: ({ theme: e }) => f(e),
124
+ extraLabel: ({ options: e, theme: r }) => d(e, r, "color"),
125
+ extraLabelHasClickAction: ({ options: e, theme: r }) => u(e, r, "color"),
126
+ extraLabelClickAction: ({ options: e, theme: r }) => c(e, r, "color")
127
+ },
128
+ visibleIf: o
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ key: "legend",
134
+ type: "group",
135
+ open: !1,
136
+ children: [
137
+ {
138
+ key: "legend.position",
139
+ control: {
140
+ label: "Position",
141
+ type: "position-picker",
142
+ default: "topRight",
143
+ enum: [
144
+ "topLeft",
145
+ "top",
146
+ "topRight",
147
+ "right",
148
+ "bottomRight",
149
+ "bottom",
150
+ "bottomLeft",
151
+ "left"
152
+ ]
153
+ }
154
+ }
155
+ ],
156
+ visibleIf: l
157
+ }
158
+ ];
159
+ export {
160
+ g as default
161
+ };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./helpers-CKo1Fkek.cjs"),l=({slots:e})=>{var r,t,i,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((t=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:r.content)==null?void 0:t.length)>0||((a=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:i.content)==null?void 0:a.length)>1:!1},c=({slots:e})=>{var r,t,i,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((t=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:r.content)==null?void 0:t.length)===0&&((a=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:i.content)==null?void 0:a.length)<=1:!0},u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:l},{type:"divider",visibleIf:l},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:l},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:l},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:c},{key:"bars.roundedCorners",control:{type:"slider",default:({theme:e})=>{var r;return(r=e==null?void 0:e.itemSpecific)==null?void 0:r.rounding},min:0,max:20,step:1,extraLabel:({options:e,theme:r})=>{var t,i;if(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)=="number")return typeof((i=e==null?void 0:e.bars)==null?void 0:i.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var t,i;return!(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)!="number"||typeof((i=e==null?void 0:e.bars)==null?void 0:i.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{var t;const r={...e};return(t=r==null?void 0:r.bars)==null||delete t.roundedCorners,{value:null,options:r}}}},{key:"color",control:{type:"color-picker",label:"Bar color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:r})=>o.getThemeMainColorResetLabel(e,r,"color"),extraLabelHasClickAction:({options:e,theme:r})=>o.getThemeMainColorExtraLabelHasClickAction(e,r,"color"),extraLabelClickAction:({options:e,theme:r})=>o.getThemeMainColorExtraLabelClickAction(e,r,"color")},visibleIf:c}]},{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:l}];exports.default=u;
@@ -17,10 +17,11 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- const n = (r) => {
21
- var s;
22
- return ((s = r == null ? void 0 : r.observations) == null ? void 0 : s.display) === !0;
23
- }, c = [
20
+ import { g as n, a as c, b as s, c as b } from "./helpers-DqqxcHaY.js";
21
+ const t = ({ options: e }) => {
22
+ var l;
23
+ return ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.display) === !0;
24
+ }, d = [
24
25
  {
25
26
  key: "general",
26
27
  type: "group",
@@ -41,8 +42,8 @@ const n = (r) => {
41
42
  label: "Display",
42
43
  default: "vertical",
43
44
  enum: ["vertical", "horizontal"],
44
- fromOptionValue: (r) => r ? "horizontal" : "vertical",
45
- toOptionValue: (r) => r === "horizontal"
45
+ fromOptionValue: (e) => e ? "horizontal" : "vertical",
46
+ toOptionValue: (e) => e === "horizontal"
46
47
  }
47
48
  },
48
49
  {
@@ -76,29 +77,14 @@ const n = (r) => {
76
77
  control: {
77
78
  type: "color-picker",
78
79
  label: "Box fill",
79
- default: (r, s, o) => {
80
- var l;
81
- return (o == null ? void 0 : o.mainColor) ?? ((l = o == null ? void 0 : o.colors) == null ? void 0 : l[0]);
82
- },
83
- extraLabel: (r, s, o) => {
84
- var i;
85
- const l = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]);
86
- if (l && r.boxFill && r.boxFill !== l)
87
- return "reset";
88
- },
89
- extraLabelHasClickAction: (r, s, o) => {
90
- var i;
91
- const l = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]);
92
- return !!(l && r.boxFill !== l);
93
- },
94
- extraLabelClickAction: (r, s, o) => {
95
- var i;
96
- const l = { ...r };
97
- return l.boxFill = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]), {
98
- value: l.boxFill,
99
- options: l
100
- };
101
- }
80
+ default: ({ theme: e }) => b(e),
81
+ extraLabel: ({ options: e, theme: l }) => s(e, l, "boxFill"),
82
+ extraLabelHasClickAction: ({ options: e, theme: l }) => c(
83
+ e,
84
+ l,
85
+ "boxFill"
86
+ ),
87
+ extraLabelClickAction: ({ options: e, theme: l }) => n(e, l, "boxFill")
102
88
  }
103
89
  },
104
90
  {
@@ -106,24 +92,24 @@ const n = (r) => {
106
92
  control: {
107
93
  type: "slider",
108
94
  label: "Rounded corners",
109
- default: (r, s, o) => {
95
+ default: ({ theme: e }) => {
110
96
  var l;
111
- return ((l = o == null ? void 0 : o.itemSpecific) == null ? void 0 : l.rounding) ?? 8;
97
+ return ((l = e == null ? void 0 : e.itemSpecific) == null ? void 0 : l.rounding) ?? 8;
112
98
  },
113
99
  min: 0,
114
100
  max: 24,
115
101
  step: 1,
116
- extraLabel: (r, s, o) => {
117
- var l;
118
- if (typeof ((l = o == null ? void 0 : o.itemSpecific) == null ? void 0 : l.rounding) == "number")
119
- return typeof (r == null ? void 0 : r.roundedCorners) != "number" ? "auto" : "reset";
102
+ extraLabel: ({ options: e, theme: l }) => {
103
+ var r;
104
+ if (typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.rounding) == "number")
105
+ return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
120
106
  },
121
- extraLabelHasClickAction: (r, s, o) => {
122
- var l;
123
- return !(typeof ((l = o == null ? void 0 : o.itemSpecific) == null ? void 0 : l.rounding) != "number" || typeof (r == null ? void 0 : r.roundedCorners) != "number");
107
+ extraLabelHasClickAction: ({ options: e, theme: l }) => {
108
+ var r;
109
+ return !(typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
124
110
  },
125
- extraLabelClickAction: (r, s, o) => {
126
- const l = { ...r };
111
+ extraLabelClickAction: ({ options: e }) => {
112
+ const l = { ...e };
127
113
  return (l == null ? void 0 : l.roundedCorners) !== void 0 && delete l.roundedCorners, { value: null, options: l };
128
114
  }
129
115
  }
@@ -144,29 +130,18 @@ const n = (r) => {
144
130
  control: {
145
131
  type: "color-picker",
146
132
  label: "Box stroke color",
147
- default: (r, s, o) => {
148
- var l;
149
- return (o == null ? void 0 : o.mainColor) ?? ((l = o == null ? void 0 : o.colors) == null ? void 0 : l[0]);
150
- },
151
- extraLabel: (r, s, o) => {
152
- var i;
153
- const l = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]);
154
- if (l && r.boxStrokeColor && r.boxStrokeColor !== l)
155
- return "reset";
156
- },
157
- extraLabelHasClickAction: (r, s, o) => {
158
- var i;
159
- const l = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]);
160
- return !!(l && r.boxStrokeColor !== l);
161
- },
162
- extraLabelClickAction: (r, s, o) => {
163
- var i;
164
- const l = { ...r };
165
- return l.boxStrokeColor = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]), {
166
- value: l.boxStrokeColor,
167
- options: l
168
- };
169
- }
133
+ default: ({ theme: e }) => b(e),
134
+ extraLabel: ({ options: e, theme: l }) => s(e, l, "boxStrokeColor"),
135
+ extraLabelHasClickAction: ({ options: e, theme: l }) => c(
136
+ e,
137
+ l,
138
+ "boxStrokeColor"
139
+ ),
140
+ extraLabelClickAction: ({ options: e, theme: l }) => n(
141
+ e,
142
+ l,
143
+ "boxStrokeColor"
144
+ )
170
145
  }
171
146
  },
172
147
  {
@@ -210,7 +185,7 @@ const n = (r) => {
210
185
  label: "Only outliers",
211
186
  default: !1
212
187
  },
213
- visibleIf: n
188
+ visibleIf: t
214
189
  },
215
190
  {
216
191
  key: "observations.type",
@@ -220,7 +195,7 @@ const n = (r) => {
220
195
  default: "dot",
221
196
  enum: ["dot", "ticks"]
222
197
  },
223
- visibleIf: n
198
+ visibleIf: t
224
199
  },
225
200
  {
226
201
  key: "observations.size",
@@ -232,7 +207,7 @@ const n = (r) => {
232
207
  max: 10,
233
208
  step: 1
234
209
  },
235
- visibleIf: n
210
+ visibleIf: t
236
211
  },
237
212
  {
238
213
  key: "observations.opacity",
@@ -244,7 +219,7 @@ const n = (r) => {
244
219
  max: 1,
245
220
  step: 0.1
246
221
  },
247
- visibleIf: n
222
+ visibleIf: t
248
223
  },
249
224
  {
250
225
  key: "observations.jitter",
@@ -256,7 +231,7 @@ const n = (r) => {
256
231
  max: 100,
257
232
  step: 1
258
233
  },
259
- visibleIf: n
234
+ visibleIf: t
260
235
  },
261
236
  {
262
237
  key: "observations.colorType",
@@ -266,38 +241,38 @@ const n = (r) => {
266
241
  default: "single",
267
242
  enum: ["single", "range"]
268
243
  },
269
- visibleIf: n
244
+ visibleIf: t
270
245
  },
271
246
  {
272
247
  key: "observations.color",
273
248
  control: {
274
249
  type: "color-picker",
275
250
  label: "Color",
276
- default: (r, s, o) => {
251
+ default: ({ theme: e }) => {
277
252
  var l;
278
- return (l = o == null ? void 0 : o.colors) == null ? void 0 : l[1];
253
+ return (l = e == null ? void 0 : e.colors) == null ? void 0 : l[1];
279
254
  },
280
- extraLabel: (r, s, o) => {
281
- var l, i, a, t;
282
- if ((l = o == null ? void 0 : o.colors) != null && l[1] && ((i = r.observations) != null && i.color) && ((a = r.observations) == null ? void 0 : a.color) !== ((t = o == null ? void 0 : o.colors) == null ? void 0 : t[1]))
255
+ extraLabel: ({ options: e, theme: l }) => {
256
+ var r, o, a, i;
257
+ if ((r = l == null ? void 0 : l.colors) != null && r[1] && ((o = e.observations) != null && o.color) && ((a = e.observations) == null ? void 0 : a.color) !== ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[1]))
283
258
  return "reset";
284
259
  },
285
- extraLabelHasClickAction: (r, s, o) => {
286
- var l, i, a;
287
- return !!((l = o == null ? void 0 : o.colors) != null && l[1] && ((i = r.observations) == null ? void 0 : i.color) !== ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[1]));
260
+ extraLabelHasClickAction: ({ options: e, theme: l }) => {
261
+ var r, o, a;
262
+ return !!((r = l == null ? void 0 : l.colors) != null && r[1] && ((o = e.observations) == null ? void 0 : o.color) !== ((a = l == null ? void 0 : l.colors) == null ? void 0 : a[1]));
288
263
  },
289
- extraLabelClickAction: (r, s, o) => {
290
- var i;
291
- const l = { ...r };
292
- return l.observations.color = (i = o == null ? void 0 : o.colors) == null ? void 0 : i[1], {
293
- value: l.observations.color,
294
- options: l
264
+ extraLabelClickAction: ({ options: e, theme: l }) => {
265
+ var o;
266
+ const r = { ...e };
267
+ return r.observations.color = (o = l == null ? void 0 : l.colors) == null ? void 0 : o[1], {
268
+ value: r.observations.color,
269
+ options: r
295
270
  };
296
271
  }
297
272
  },
298
- visibleIf: (r) => {
299
- var s;
300
- return n(r) && ((s = r == null ? void 0 : r.observations) == null ? void 0 : s.colorType) === "single";
273
+ visibleIf: ({ options: e }) => {
274
+ var l;
275
+ return t({ options: e }) && ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.colorType) === "single";
301
276
  }
302
277
  },
303
278
  {
@@ -308,14 +283,14 @@ const n = (r) => {
308
283
  default: "divergent",
309
284
  enum: ["sequential", "divergent", "manual"]
310
285
  },
311
- visibleIf: (r) => {
312
- var s;
313
- return n(r) && ((s = r == null ? void 0 : r.observations) == null ? void 0 : s.colorType) === "range";
286
+ visibleIf: ({ options: e }) => {
287
+ var l;
288
+ return t({ options: e }) && ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.colorType) === "range";
314
289
  }
315
290
  }
316
291
  ]
317
292
  }
318
293
  ];
319
294
  export {
320
- c as default
295
+ d as default
321
296
  };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./helpers-CKo1Fkek.cjs"),a=({options:e})=>{var l;return((l=e==null?void 0:e.observations)==null?void 0:l.display)===!0},c=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"horizontal",control:{type:"picker",label:"Display",default:"vertical",enum:["vertical","horizontal"],fromOptionValue:e=>e?"horizontal":"vertical",toOptionValue:e=>e==="horizontal"}},{key:"extentTicks",control:{type:"switch",label:"Extent ticks",default:!0}}]},{key:"box",type:"group",open:!0,children:[{key:"boxWidth",control:{type:"slider",label:"Box width",default:.9,min:.1,max:1,step:.1}},{key:"boxFill",control:{type:"color-picker",label:"Box fill",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"boxFill"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"boxFill"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"boxFill")}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:({theme:e})=>{var l;return((l=e==null?void 0:e.itemSpecific)==null?void 0:l.rounding)??8},min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var o;if(typeof((o=l==null?void 0:l.itemSpecific)==null?void 0:o.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var o;return!(typeof((o=l==null?void 0:l.itemSpecific)==null?void 0:o.rounding)!="number"||typeof(e==null?void 0:e.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{const l={...e};return(l==null?void 0:l.roundedCorners)!==void 0&&delete l.roundedCorners,{value:null,options:l}}}},{key:"boxStrokeWidth",control:{type:"slider",label:"Box stroke width",default:1,min:0,max:5,step:.5}},{key:"boxStrokeColor",control:{type:"color-picker",label:"Box stroke color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"boxStrokeColor"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"boxStrokeColor"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"boxStrokeColor")}},{key:"medianStrokeWidth",control:{type:"slider",label:"Median stroke width",default:2,min:0,max:5,step:.5}},{key:"medianStrokeColor",control:{type:"color-picker",label:"Median stroke color",default:"#000000"}}]},{key:"observations",type:"group",open:!0,children:[{key:"observations.display",control:{type:"switch",label:"Show",default:!1}},{key:"observations.onlyOutliers",control:{type:"switch",label:"Only outliers",default:!1},visibleIf:a},{key:"observations.type",control:{type:"picker",label:"Type",default:"dot",enum:["dot","ticks"]},visibleIf:a},{key:"observations.size",control:{type:"slider",label:"Size",default:3,min:1,max:10,step:1},visibleIf:a},{key:"observations.opacity",control:{type:"slider",label:"Opacity",default:.4,min:.1,max:1,step:.1},visibleIf:a},{key:"observations.jitter",control:{type:"slider",label:"Jitter",default:30,min:1,max:100,step:1},visibleIf:a},{key:"observations.colorType",control:{type:"picker",label:"Color mode",default:"single",enum:["single","range"]},visibleIf:a},{key:"observations.color",control:{type:"color-picker",label:"Color",default:({theme:e})=>{var l;return(l=e==null?void 0:e.colors)==null?void 0:l[1]},extraLabel:({options:e,theme:l})=>{var o,r,i,n;if((o=l==null?void 0:l.colors)!=null&&o[1]&&((r=e.observations)!=null&&r.color)&&((i=e.observations)==null?void 0:i.color)!==((n=l==null?void 0:l.colors)==null?void 0:n[1]))return"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var o,r,i;return!!((o=l==null?void 0:l.colors)!=null&&o[1]&&((r=e.observations)==null?void 0:r.color)!==((i=l==null?void 0:l.colors)==null?void 0:i[1]))},extraLabelClickAction:({options:e,theme:l})=>{var r;const o={...e};return o.observations.color=(r=l==null?void 0:l.colors)==null?void 0:r[1],{value:o.observations.color,options:o}}},visibleIf:({options:e})=>{var l;return a({options:e})&&((l=e==null?void 0:e.observations)==null?void 0:l.colorType)==="single"}},{key:"observations.colorsType",control:{type:"picker",label:"Colors type",default:"divergent",enum:["sequential","divergent","manual"]},visibleIf:({options:e})=>{var l;return a({options:e})&&((l=e==null?void 0:e.observations)==null?void 0:l.colorType)==="range"}}]}];exports.default=c;