@luzmo/analytics-components-kit 1.0.1-alpha.18 → 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 (157) 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-B24MqnZj.js → conditional-number-options.config-PVvKLc1P.js} +16 -34
  29. package/components/{donut-chart-options.config-DuJFyp4z.js → donut-chart-options.config-NPwNtLDW.js} +23 -20
  30. package/components/donut-chart-options.config-bqcKuyIu.cjs +20 -0
  31. package/components/{dropdown-filter-options.config-BxjR1xAD.js → dropdown-filter-options.config-D9dvPypF.js} +5 -5
  32. package/components/{dropdown-filter-options.config-C3YEGK-5.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
  33. package/components/edit-item/index.cjs +14 -14
  34. package/components/edit-item/index.js +74 -56
  35. package/components/edit-option/helpers/get-default-value.d.ts +1 -0
  36. package/components/edit-option/index.cjs +91 -91
  37. package/components/edit-option/index.js +330 -330
  38. package/components/edit-option-position-picker/edit-option-position-picker.d.ts +1 -1
  39. package/components/edit-option-position-picker/index.cjs +2 -2
  40. package/components/edit-option-position-picker/index.js +4 -6
  41. package/components/funnel-chart-options.config-CrlHKd36.js +184 -0
  42. package/components/funnel-chart-options.config-hw_GXs4s.cjs +20 -0
  43. package/components/funnel-chart-options.de-CuVFMJUC.js +93 -0
  44. package/components/funnel-chart-options.de-DRAGes5d.cjs +20 -0
  45. package/components/funnel-chart-options.en-CvPbJr1r.js +93 -0
  46. package/components/funnel-chart-options.en-b6BBKfZh.cjs +20 -0
  47. package/components/funnel-chart-options.es-DfDw5S5g.cjs +20 -0
  48. package/components/funnel-chart-options.es-_M7sC4m6.js +93 -0
  49. package/components/funnel-chart-options.fr-DWkPkC47.cjs +20 -0
  50. package/components/funnel-chart-options.fr-DvnZ-XbE.js +93 -0
  51. package/components/funnel-chart-options.nl-BdAL0ZJP.cjs +20 -0
  52. package/components/funnel-chart-options.nl-C72_FTNm.js +93 -0
  53. package/components/helpers-CKo1Fkek.cjs +20 -0
  54. package/components/helpers-DqqxcHaY.js +51 -0
  55. package/components/{line-chart-options.config-CEUJYNt7.js → line-chart-options.config-BtfCTjNr.js} +32 -31
  56. package/components/line-chart-options.config-Cb7txmmw.cjs +20 -0
  57. package/components/radar-chart-options.config-Ck7skfge.cjs +20 -0
  58. package/components/{radar-chart-options.config-gKHFbC63.js → radar-chart-options.config-DFxna7UF.js} +25 -43
  59. package/components/sankey-diagram-options.config-DJqI2dMh.cjs +20 -0
  60. package/components/{sankey-diagram-options.config-ylhZhJ6H.js → sankey-diagram-options.config-Dj9g2BOp.js} +16 -26
  61. package/components/{search-filter-options.config-C9CoGS9f.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
  62. package/components/{search-filter-options.config-baX2Vdul.js → search-filter-options.config-BE3JhR-F.js} +1 -1
  63. package/components/{slicer-filter-options.config-A3YK_KZn.js → slicer-filter-options.config-BArPA7Mb.js} +20 -38
  64. package/components/slicer-filter-options.config-BW44EPso.cjs +20 -0
  65. package/components/{slider-filter-options.config-C-zvfTNl.js → slider-filter-options.config-BIKIbGbN.js} +7 -25
  66. package/components/slider-filter-options.config-zuWa8Rtt.cjs +20 -0
  67. package/components/sunburst-chart-options.config-BjtKxThH.cjs +20 -0
  68. package/components/{sunburst-chart-options.config-VZqDthcz.js → sunburst-chart-options.config-BxkJfdrU.js} +30 -30
  69. package/components/{textobject-options.nl-V03mmGmH.js → text-options.nl-C8sliUgH.js} +2 -2
  70. package/components/{treemap-chart-options.config-f8L8KfDj.js → treemap-chart-options.config-MyCTS35Y.js} +45 -63
  71. package/components/treemap-chart-options.config-PwXbMhHZ.cjs +20 -0
  72. package/components/{video-options.config-BBDHSf6_.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
  73. package/components/{video-options.config-CbtNZAEK.js → video-options.config-Dk36zJ1B.js} +5 -5
  74. package/components/wordcloud-chart-options.config-Cv9l0THs.cjs +20 -0
  75. package/components/{wordcloud-chart-options.config-CQs8YFfd.js → wordcloud-chart-options.config-Dq7TF0sb.js} +10 -28
  76. package/custom-elements.json +31 -3
  77. package/item-definitions/area-chart/area-chart-options.config.d.ts +27 -6
  78. package/item-definitions/bar-chart/bar-chart-options.config.d.ts +13 -13
  79. package/item-definitions/box-plot/box-plot-options.config.d.ts +16 -16
  80. package/item-definitions/bubble-chart/bubble-chart-options.config.d.ts +7 -7
  81. package/item-definitions/bubble-chart/i18n/bubble-chart-options.de.d.ts +5 -0
  82. package/item-definitions/bubble-chart/i18n/bubble-chart-options.en.d.ts +5 -0
  83. package/item-definitions/bubble-chart/i18n/bubble-chart-options.es.d.ts +5 -0
  84. package/item-definitions/bubble-chart/i18n/bubble-chart-options.fr.d.ts +5 -0
  85. package/item-definitions/bubble-chart/i18n/bubble-chart-options.nl.d.ts +5 -0
  86. package/item-definitions/bullet-chart/bullet-chart-options.config.d.ts +4 -4
  87. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +1 -1
  88. package/item-definitions/circular-gauge/{circular-guage-options.config.d.ts → circular-gauge-options.config.d.ts} +4 -4
  89. package/item-definitions/column-chart/column-chart-options.config.d.ts +13 -13
  90. package/item-definitions/conditional-number/conditional-number-options.config.d.ts +7 -7
  91. package/item-definitions/donut-chart/donut-chart-options.config.d.ts +8 -7
  92. package/item-definitions/dropdown-filter/dropdown-filter-options.config.d.ts +2 -2
  93. package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +88 -0
  94. package/item-definitions/funnel-chart/i18n/funnel-chart-options.de.d.ts +72 -0
  95. package/item-definitions/funnel-chart/i18n/funnel-chart-options.en.d.ts +72 -0
  96. package/item-definitions/funnel-chart/i18n/funnel-chart-options.es.d.ts +72 -0
  97. package/item-definitions/funnel-chart/i18n/funnel-chart-options.fr.d.ts +72 -0
  98. package/item-definitions/funnel-chart/i18n/funnel-chart-options.nl.d.ts +72 -0
  99. package/item-definitions/helpers.d.ts +7 -0
  100. package/item-definitions/line-chart/line-chart-options.config.d.ts +31 -7
  101. package/item-definitions/radar-chart/radar-chart-options.config.d.ts +8 -8
  102. package/item-definitions/sankey-diagram/sankey-diagram-options.config.d.ts +5 -5
  103. package/item-definitions/search-filter/search-filter-options.config.d.ts +1 -1
  104. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +8 -8
  105. package/item-definitions/slider-filter/slider-filter-options.config.d.ts +4 -4
  106. package/item-definitions/sunburst-chart/sunburst-chart-options.config.d.ts +4 -4
  107. package/item-definitions/treemap-chart/treemap-chart-options.config.d.ts +10 -10
  108. package/item-definitions/video/video-options.config.d.ts +3 -3
  109. package/item-definitions/wordcloud-chart/wordcloud-chart-options.config.d.ts +5 -5
  110. package/package.json +1 -1
  111. package/components/area-chart-options.config-DMfRioZx.cjs +0 -20
  112. package/components/bar-chart-options.config-C7BGg5sh.cjs +0 -20
  113. package/components/bar-chart-options.config-CQfpV1Rx.js +0 -181
  114. package/components/box-plot-options.config-BsFp2CBS.cjs +0 -20
  115. package/components/bubble-chart-options.config-DL5Xl6Ad.cjs +0 -20
  116. package/components/bullet-chart-options.config-BO22R7gx.cjs +0 -20
  117. package/components/circular-guage-options.config-Dvg5quJ9.cjs +0 -20
  118. package/components/column-chart-options.config-DomUPYPM.cjs +0 -20
  119. package/components/conditional-number-options.config-C1eERsoe.cjs +0 -20
  120. package/components/donut-chart-options.config-kUyTbAtZ.cjs +0 -20
  121. package/components/line-chart-options.config-DNGyRAvG.cjs +0 -20
  122. package/components/radar-chart-options.config-DUXOzdbl.cjs +0 -20
  123. package/components/sankey-diagram-options.config-CG5S1OI3.cjs +0 -20
  124. package/components/slicer-filter-options.config-DQunaj8q.cjs +0 -20
  125. package/components/slider-filter-options.config-DF_sAElS.cjs +0 -20
  126. package/components/sunburst-chart-options.config-CEfAd1RQ.cjs +0 -20
  127. package/components/treemap-chart-options.config-Dc2UNcGG.cjs +0 -20
  128. package/components/wordcloud-chart-options.config-BLvcDvxT.cjs +0 -20
  129. /package/components/{imageobject-options.de-CBkRiIbw.cjs → image-options.de-CBkRiIbw.cjs} +0 -0
  130. /package/components/{imageobject-options.de-CYVnqdL_.js → image-options.de-CYVnqdL_.js} +0 -0
  131. /package/components/{imageobject-options.en-BMmV-4O-.js → image-options.en-BMmV-4O-.js} +0 -0
  132. /package/components/{imageobject-options.en-DflcU_2H.cjs → image-options.en-DflcU_2H.cjs} +0 -0
  133. /package/components/{imageobject-options.es-CRbNv384.cjs → image-options.es-CRbNv384.cjs} +0 -0
  134. /package/components/{imageobject-options.es-UN5rmaEt.js → image-options.es-UN5rmaEt.js} +0 -0
  135. /package/components/{imageobject-options.fr-DRE3zImB.js → image-options.fr-DRE3zImB.js} +0 -0
  136. /package/components/{imageobject-options.fr-ycH7UoX5.cjs → image-options.fr-ycH7UoX5.cjs} +0 -0
  137. /package/components/{imageobject-options.nl-D20hki6i.js → image-options.nl-D20hki6i.js} +0 -0
  138. /package/components/{imageobject-options.nl-DQL45o0j.cjs → image-options.nl-DQL45o0j.cjs} +0 -0
  139. /package/components/{textobject-options.de-BjfS5RBn.js → text-options.de-BjfS5RBn.js} +0 -0
  140. /package/components/{textobject-options.de-DLr2-jBn.cjs → text-options.de-DLr2-jBn.cjs} +0 -0
  141. /package/components/{textobject-options.en-BQqHFc7M.js → text-options.en-BQqHFc7M.js} +0 -0
  142. /package/components/{textobject-options.en-LfsMtwo6.cjs → text-options.en-LfsMtwo6.cjs} +0 -0
  143. /package/components/{textobject-options.es-BLQBqlvK.cjs → text-options.es-BLQBqlvK.cjs} +0 -0
  144. /package/components/{textobject-options.es-CMB1DKq4.js → text-options.es-CMB1DKq4.js} +0 -0
  145. /package/components/{textobject-options.fr-B8x29grG.cjs → text-options.fr-B8x29grG.cjs} +0 -0
  146. /package/components/{textobject-options.fr-VPJ3bDOM.js → text-options.fr-VPJ3bDOM.js} +0 -0
  147. /package/components/{textobject-options.nl-DzglrI3i.cjs → text-options.nl-DzglrI3i.cjs} +0 -0
  148. /package/item-definitions/image/i18n/{imageobject-options.de.d.ts → image-options.de.d.ts} +0 -0
  149. /package/item-definitions/image/i18n/{imageobject-options.en.d.ts → image-options.en.d.ts} +0 -0
  150. /package/item-definitions/image/i18n/{imageobject-options.es.d.ts → image-options.es.d.ts} +0 -0
  151. /package/item-definitions/image/i18n/{imageobject-options.fr.d.ts → image-options.fr.d.ts} +0 -0
  152. /package/item-definitions/image/i18n/{imageobject-options.nl.d.ts → image-options.nl.d.ts} +0 -0
  153. /package/item-definitions/text/i18n/{textobject-options.de.d.ts → text-options.de.d.ts} +0 -0
  154. /package/item-definitions/text/i18n/{textobject-options.en.d.ts → text-options.en.d.ts} +0 -0
  155. /package/item-definitions/text/i18n/{textobject-options.es.d.ts → text-options.es.d.ts} +0 -0
  156. /package/item-definitions/text/i18n/{textobject-options.fr.d.ts → text-options.fr.d.ts} +0 -0
  157. /package/item-definitions/text/i18n/{textobject-options.nl.d.ts → text-options.nl.d.ts} +0 -0
@@ -17,15 +17,16 @@
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 c = (i, e) => {
21
- var r, n, o, l;
20
+ import { g as l, a as u, b as d, c as f } from "./helpers-DqqxcHaY.js";
21
+ const c = ({ slots: e }) => {
22
+ var r, a, t, i;
22
23
  if (Array.isArray(e) && (e == null ? void 0 : e.length) > 0)
23
- return ((n = (r = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "legend")) == null ? void 0 : r.content) == null ? void 0 : n.length) > 0 || ((l = (o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "measure")) == null ? void 0 : o.content) == null ? void 0 : l.length) > 1;
24
- }, t = (i, e) => {
25
- var r, n, o, l;
24
+ return ((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;
25
+ }, o = ({ slots: e }) => {
26
+ var r, a, t, i;
26
27
  if (Array.isArray(e) && (e == null ? void 0 : e.length) > 0)
27
- return ((n = (r = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "legend")) == null ? void 0 : r.content) == null ? void 0 : n.length) === 0 && ((l = (o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "measure")) == null ? void 0 : o.content) == null ? void 0 : l.length) <= 1;
28
- }, u = [
28
+ return ((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;
29
+ }, g = [
29
30
  {
30
31
  key: "general",
31
32
  type: "group",
@@ -87,32 +88,32 @@ const c = (i, e) => {
87
88
  type: "switch",
88
89
  default: !1
89
90
  },
90
- visibleIf: t
91
+ visibleIf: o
91
92
  },
92
93
  {
93
94
  key: "bars.roundedCorners",
94
95
  control: {
95
96
  type: "slider",
96
- default: (i, e, r) => {
97
- var n;
98
- return (n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding;
97
+ default: ({ theme: e }) => {
98
+ var r;
99
+ return (r = e == null ? void 0 : e.itemSpecific) == null ? void 0 : r.rounding;
99
100
  },
100
101
  min: 0,
101
102
  max: 20,
102
103
  step: 1,
103
- extraLabel: (i, e, r) => {
104
- var n, o;
105
- if (typeof ((n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding) == "number")
106
- return typeof ((o = i == null ? void 0 : i.bars) == null ? void 0 : o.roundedCorners) != "number" ? "auto" : "reset";
104
+ extraLabel: ({ options: e, theme: r }) => {
105
+ var a, t;
106
+ if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) == "number")
107
+ return typeof ((t = e == null ? void 0 : e.bars) == null ? void 0 : t.roundedCorners) != "number" ? "auto" : "reset";
107
108
  },
108
- extraLabelHasClickAction: (i, e, r) => {
109
- var n, o;
110
- return !(typeof ((n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding) != "number" || typeof ((o = i == null ? void 0 : i.bars) == null ? void 0 : o.roundedCorners) != "number");
109
+ extraLabelHasClickAction: ({ options: e, theme: r }) => {
110
+ var a, t;
111
+ 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");
111
112
  },
112
- extraLabelClickAction: (i, e, r) => {
113
- var o;
114
- const n = { ...i };
115
- return (o = n == null ? void 0 : n.bars) == null || delete o.roundedCorners, { value: null, options: n };
113
+ extraLabelClickAction: ({ options: e }) => {
114
+ var a;
115
+ const r = { ...e };
116
+ return (a = r == null ? void 0 : r.bars) == null || delete a.roundedCorners, { value: null, options: r };
116
117
  }
117
118
  }
118
119
  },
@@ -120,31 +121,12 @@ const c = (i, e) => {
120
121
  key: "color",
121
122
  control: {
122
123
  type: "color-picker",
123
- default: (i, e, r) => {
124
- var n;
125
- return (r == null ? void 0 : r.mainColor) ?? ((n = r == null ? void 0 : r.colors) == null ? void 0 : n[0]);
126
- },
127
- extraLabel: (i, e, r) => {
128
- var o;
129
- const n = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
130
- if (n && i.color !== n)
131
- return "reset";
132
- },
133
- extraLabelHasClickAction: (i, e, r) => {
134
- var o;
135
- const n = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
136
- return !!(n && i.color !== n);
137
- },
138
- extraLabelClickAction: (i, e, r) => {
139
- var o;
140
- const n = { ...i };
141
- return n.color = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]), {
142
- value: n.color,
143
- options: n
144
- };
145
- }
124
+ default: ({ theme: e }) => f(e),
125
+ extraLabel: ({ options: e, theme: r }) => d(e, r, "color"),
126
+ extraLabelHasClickAction: ({ options: e, theme: r }) => u(e, r, "color"),
127
+ extraLabelClickAction: ({ options: e, theme: r }) => l(e, r, "color")
146
128
  },
147
- visibleIf: t
129
+ visibleIf: o
148
130
  }
149
131
  ]
150
132
  },
@@ -158,15 +140,15 @@ const c = (i, e) => {
158
140
  control: {
159
141
  label: "Position",
160
142
  type: "position-picker",
161
- default: "top-right",
143
+ default: "topRight",
162
144
  enum: [
163
- "top-left",
145
+ "topLeft",
164
146
  "top",
165
- "top-right",
147
+ "topRight",
166
148
  "right",
167
- "bottom-right",
149
+ "bottomRight",
168
150
  "bottom",
169
- "bottom-left",
151
+ "bottomLeft",
170
152
  "left"
171
153
  ]
172
154
  }
@@ -176,5 +158,5 @@ const c = (i, e) => {
176
158
  }
177
159
  ];
178
160
  export {
179
- u as default
161
+ g as default
180
162
  };
@@ -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 a=require("./helpers-CKo1Fkek.cjs"),o=[{key:"general",type:"group",open:!0,children:[{key:"display.label",control:{type:"switch",label:"Label",default:!0}},{key:"mode",control:{type:"picker",label:"Display",default:"normal",enum:["normal","percentage","difference"]}},{key:"manualValues.target",control:{type:"number-field",label:"Manual target",default:100,min:0,step:1},visibleIf:({slots:e})=>{var l,n;return!Array.isArray(e)||!(((n=(l=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="target"))==null?void 0:l.content)==null?void 0:n.length)>0)}},{key:"manualValues.conditional",control:{type:"switch",label:"Conditional color",default:!1}},{key:"manualValues.asBackgroundColor",control:{type:"switch",label:"Use as background color",default:!0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.manualValues)==null?void 0:l.conditional)===!0}},{key:"color",control:{type:"color-picker",label:"Text color",default:({theme:e})=>a.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>a.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelClickAction(e,l,"color")},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.manualValues)==null?void 0:l.conditional)!==!0}}]},{key:"alignment",type:"group",open:!0,children:[{key:"alignment.vertical",control:{type:"action-button-group",label:"Vertical",default:["middle"],values:{top:{iconName:"alignTop",label:"align top"},middle:{iconName:"alignMiddle",label:"align middle"},bottom:{iconName:"alignBottom",label:"align bottom"}},selects:"single"}},{key:"alignment.horizontal",control:{type:"action-button-group",label:"Horizontal",default:["center"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}}]}];exports.default=o;
@@ -17,7 +17,8 @@
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 o = [
20
+ import { g as n, a as o, b as i, c as r } from "./helpers-DqqxcHaY.js";
21
+ const u = [
21
22
  {
22
23
  key: "general",
23
24
  type: "group",
@@ -49,9 +50,9 @@ const o = [
49
50
  min: 0,
50
51
  step: 1
51
52
  },
52
- visibleIf: (a, n) => {
53
- var l, r;
54
- return !Array.isArray(n) || !(((r = (l = n == null ? void 0 : n.find((e) => (e == null ? void 0 : e.name) === "target")) == null ? void 0 : l.content) == null ? void 0 : r.length) > 0);
53
+ visibleIf: ({ slots: e }) => {
54
+ var l, t;
55
+ return !Array.isArray(e) || !(((t = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "target")) == null ? void 0 : l.content) == null ? void 0 : t.length) > 0);
55
56
  }
56
57
  },
57
58
  {
@@ -69,9 +70,9 @@ const o = [
69
70
  label: "Use as background color",
70
71
  default: !0
71
72
  },
72
- visibleIf: (a) => {
73
- var n;
74
- return ((n = a == null ? void 0 : a.manualValues) == null ? void 0 : n.conditional) === !0;
73
+ visibleIf: ({ options: e }) => {
74
+ var l;
75
+ return ((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.conditional) === !0;
75
76
  }
76
77
  },
77
78
  {
@@ -79,33 +80,14 @@ const o = [
79
80
  control: {
80
81
  type: "color-picker",
81
82
  label: "Text color",
82
- default: (a, n, l) => {
83
- var r;
84
- return (l == null ? void 0 : l.mainColor) ?? ((r = l == null ? void 0 : l.colors) == null ? void 0 : r[0]) ?? "#4B57FF";
85
- },
86
- extraLabel: (a, n, l) => {
87
- var e;
88
- const r = (l == null ? void 0 : l.mainColor) ?? ((e = l == null ? void 0 : l.colors) == null ? void 0 : e[0]);
89
- if (a != null && a.color && r && (a == null ? void 0 : a.color) !== r)
90
- return "reset";
91
- },
92
- extraLabelHasClickAction: (a, n, l) => {
93
- var e;
94
- const r = (l == null ? void 0 : l.mainColor) ?? ((e = l == null ? void 0 : l.colors) == null ? void 0 : e[0]);
95
- return !!(a != null && a.color && r && (a == null ? void 0 : a.color) !== r);
96
- },
97
- extraLabelClickAction: (a, n, l) => {
98
- var e;
99
- const r = { ...a };
100
- return r.color = (l == null ? void 0 : l.mainColor) ?? ((e = l == null ? void 0 : l.colors) == null ? void 0 : e[0]) ?? "#4B57FF", {
101
- value: r.color,
102
- options: r
103
- };
104
- }
83
+ default: ({ theme: e }) => r(e),
84
+ extraLabel: ({ options: e, theme: l }) => i(e, l, "color"),
85
+ extraLabelHasClickAction: ({ options: e, theme: l }) => o(e, l, "color"),
86
+ extraLabelClickAction: ({ options: e, theme: l }) => n(e, l, "color")
105
87
  },
106
- visibleIf: (a) => {
107
- var n;
108
- return ((n = a == null ? void 0 : a.manualValues) == null ? void 0 : n.conditional) !== !0;
88
+ visibleIf: ({ options: e }) => {
89
+ var l;
90
+ return ((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.conditional) !== !0;
109
91
  }
110
92
  }
111
93
  ]
@@ -147,5 +129,5 @@ const o = [
147
129
  }
148
130
  ];
149
131
  export {
150
- o as default
132
+ u as default
151
133
  };
@@ -66,8 +66,11 @@ const a = [
66
66
  type: "radio-button-group",
67
67
  enum: ["list", "labels"],
68
68
  fromOptionValue: (e) => e ? "labels" : "list",
69
- toOptionValue: (e) => e === "labels",
70
- sideEffect: (e, n) => (e === "labels" && (n.display.legend = !1), n)
69
+ toOptionValue: (e) => e === "labels"
70
+ },
71
+ sideEffect: ({ options: e }) => {
72
+ var l;
73
+ return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.categoryLabels) === "labels" && (e.display.legend = !1), e;
71
74
  }
72
75
  }
73
76
  ]
@@ -131,19 +134,19 @@ const a = [
131
134
  min: 0,
132
135
  max: 24,
133
136
  step: 1,
134
- extraLabel: (e, n, r) => {
135
- var l, t;
136
- if (typeof ((l = r == null ? void 0 : r.itemSpecific) == null ? void 0 : l.rounding) == "number")
137
+ extraLabel: ({ options: e, theme: l }) => {
138
+ var r, t;
139
+ if (typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.rounding) == "number")
137
140
  return typeof ((t = e == null ? void 0 : e.slices) == null ? void 0 : t.roundedCorners) != "number" ? "auto" : "reset";
138
141
  },
139
- extraLabelHasClickAction: (e, n, r) => {
140
- var l, t;
141
- return !(typeof ((l = r == null ? void 0 : r.itemSpecific) == null ? void 0 : l.rounding) != "number" || typeof ((t = e == null ? void 0 : e.slices) == null ? void 0 : t.roundedCorners) != "number");
142
+ extraLabelHasClickAction: ({ options: e, theme: l }) => {
143
+ var r, t;
144
+ return !(typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.rounding) != "number" || typeof ((t = e == null ? void 0 : e.slices) == null ? void 0 : t.roundedCorners) != "number");
142
145
  },
143
- extraLabelClickAction: (e, n, r) => {
144
- var t;
146
+ extraLabelClickAction: ({ options: e }) => {
147
+ var r;
145
148
  const l = { ...e };
146
- return ((t = l == null ? void 0 : l.slices) == null ? void 0 : t.roundedCorners) !== void 0 && delete l.slices.roundedCorners, { value: null, options: l };
149
+ return ((r = l == null ? void 0 : l.slices) == null ? void 0 : r.roundedCorners) !== void 0 && delete l.slices.roundedCorners, { value: null, options: l };
147
150
  }
148
151
  }
149
152
  },
@@ -155,19 +158,19 @@ const a = [
155
158
  min: 0,
156
159
  max: 20,
157
160
  step: 1,
158
- extraLabel: (e, n, r) => {
159
- var l, t;
160
- if (typeof ((l = r == null ? void 0 : r.itemSpecific) == null ? void 0 : l.padding) == "number")
161
+ extraLabel: ({ options: e, theme: l }) => {
162
+ var r, t;
163
+ if (typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.padding) == "number")
161
164
  return typeof ((t = e == null ? void 0 : e.slices) == null ? void 0 : t.padding) != "number" ? "auto" : "reset";
162
165
  },
163
- extraLabelHasClickAction: (e, n, r) => {
164
- var l, t;
165
- return !(typeof ((l = r == null ? void 0 : r.itemSpecific) == null ? void 0 : l.padding) != "number" || typeof ((t = e == null ? void 0 : e.slices) == null ? void 0 : t.padding) != "number");
166
+ extraLabelHasClickAction: ({ options: e, theme: l }) => {
167
+ var r, t;
168
+ return !(typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.padding) != "number" || typeof ((t = e == null ? void 0 : e.slices) == null ? void 0 : t.padding) != "number");
166
169
  },
167
- extraLabelClickAction: (e, n, r) => {
168
- var t;
170
+ extraLabelClickAction: ({ options: e }) => {
171
+ var r;
169
172
  const l = { ...e };
170
- return ((t = l == null ? void 0 : l.slices) == null ? void 0 : t.padding) !== void 0 && delete l.slices.padding, { value: null, options: l };
173
+ return ((r = l == null ? void 0 : l.slices) == null ? void 0 : r.padding) !== void 0 && delete l.slices.padding, { value: null, options: l };
171
174
  }
172
175
  }
173
176
  }
@@ -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 a=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],fromOptionValue:e=>e?"half":"full",toOptionValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],fromOptionValue:e=>e?"labels":"list",toOptionValue:e=>e==="labels"},sideEffect:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.categoryLabels)==="labels"&&(e.display.legend=!1),e}}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var r,t;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,t;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.roundedCorners)!==void 0&&delete l.slices.roundedCorners,{value:null,options:l}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var r,t;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,t;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=a;
@@ -54,7 +54,7 @@ const t = [
54
54
  label: "Filter with Apply button",
55
55
  default: !1
56
56
  },
57
- visibleIf: (e) => e == null ? void 0 : e.multiselect
57
+ visibleIf: ({ options: e }) => e == null ? void 0 : e.multiselect
58
58
  },
59
59
  {
60
60
  key: "showCheckboxes",
@@ -63,7 +63,7 @@ const t = [
63
63
  label: "Show checkboxes",
64
64
  default: !0
65
65
  },
66
- visibleIf: (e) => e == null ? void 0 : e.multiselect
66
+ visibleIf: ({ options: e }) => e == null ? void 0 : e.multiselect
67
67
  },
68
68
  {
69
69
  key: "display.search",
@@ -72,7 +72,7 @@ const t = [
72
72
  label: "Search",
73
73
  default: !0
74
74
  },
75
- visibleIf: (e) => !(e != null && e.multiselect)
75
+ visibleIf: ({ options: e }) => !(e != null && e.multiselect)
76
76
  },
77
77
  {
78
78
  key: "display.clear",
@@ -81,7 +81,7 @@ const t = [
81
81
  label: "Show clear selection",
82
82
  default: !0
83
83
  },
84
- visibleIf: (e) => !(e != null && e.multiselect)
84
+ visibleIf: ({ options: e }) => !(e != null && e.multiselect)
85
85
  }
86
86
  ]
87
87
  },
@@ -121,7 +121,7 @@ const t = [
121
121
  label: "Text",
122
122
  placeholder: "Select..."
123
123
  },
124
- visibleIf: (e) => {
124
+ visibleIf: ({ options: e }) => {
125
125
  var l;
126
126
  return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.placeholder) !== !1;
127
127
  }
@@ -17,4 +17,4 @@
17
17
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
18
  * SOFTWARE.
19
19
  * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.label",control:{type:"switch",label:"Label",default:!1}},{key:"multiselect",control:{type:"switch",label:"Multiselect",default:!1}},{key:"applyFiltersWithButton",control:{type:"switch",label:"Filter with Apply button",default:!1},visibleIf:e=>e==null?void 0:e.multiselect},{key:"showCheckboxes",control:{type:"switch",label:"Show checkboxes",default:!0},visibleIf:e=>e==null?void 0:e.multiselect},{key:"display.search",control:{type:"switch",label:"Search",default:!0},visibleIf:e=>!(e!=null&&e.multiselect)},{key:"display.clear",control:{type:"switch",label:"Show clear selection",default:!0},visibleIf:e=>!(e!=null&&e.multiselect)}]},{key:"order",type:"group",open:!1,children:[{key:"sort.direction",control:{type:"picker",label:"Ordering",default:"asc",enum:["asc","desc"]}}]},{key:"placeholder",type:"group",open:!0,children:[{key:"display.placeholder",control:{type:"switch",label:"Display",default:!0}},{key:"placeholder",control:{type:"multi-language-field",label:"Text",placeholder:"Select..."},visibleIf:e=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.placeholder)!==!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{label:"Padding left",type:"number-field",default:16,min:0,max:100,step:1}},{key:"padding.right",control:{label:"Padding right",type:"number-field",default:16,min:0,max:100,step:1}}]}];exports.default=t;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.label",control:{type:"switch",label:"Label",default:!1}},{key:"multiselect",control:{type:"switch",label:"Multiselect",default:!1}},{key:"applyFiltersWithButton",control:{type:"switch",label:"Filter with Apply button",default:!1},visibleIf:({options:e})=>e==null?void 0:e.multiselect},{key:"showCheckboxes",control:{type:"switch",label:"Show checkboxes",default:!0},visibleIf:({options:e})=>e==null?void 0:e.multiselect},{key:"display.search",control:{type:"switch",label:"Search",default:!0},visibleIf:({options:e})=>!(e!=null&&e.multiselect)},{key:"display.clear",control:{type:"switch",label:"Show clear selection",default:!0},visibleIf:({options:e})=>!(e!=null&&e.multiselect)}]},{key:"order",type:"group",open:!1,children:[{key:"sort.direction",control:{type:"picker",label:"Ordering",default:"asc",enum:["asc","desc"]}}]},{key:"placeholder",type:"group",open:!0,children:[{key:"display.placeholder",control:{type:"switch",label:"Display",default:!0}},{key:"placeholder",control:{type:"multi-language-field",label:"Text",placeholder:"Select..."},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.placeholder)!==!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{label:"Padding left",type:"number-field",default:16,min:0,max:100,step:1}},{key:"padding.right",control:{label:"Padding right",type:"number-field",default:16,min:0,max:100,step:1}}]}];exports.default=t;