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

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 (23) hide show
  1. package/components/{area-chart-options.config-C0l_W4Yq.js → area-chart-options.config-B5qtlH-_.js} +24 -24
  2. package/components/area-chart-options.config-DMfRioZx.cjs +20 -0
  3. package/components/{bar-chart-options.config-BO9Ik7mh.cjs → bar-chart-options.config-C7BGg5sh.cjs} +1 -1
  4. package/components/{bar-chart-options.config-CF1i1Imw.js → bar-chart-options.config-CQfpV1Rx.js} +29 -29
  5. package/components/{bubble-chart-options.config-1MrC55Nb.js → bubble-chart-options.config-Cp6OQnJl.js} +7 -7
  6. package/components/{bubble-chart-options.config-bQBq1s3C.cjs → bubble-chart-options.config-DL5Xl6Ad.cjs} +1 -1
  7. package/components/{column-chart-options.config-BT1QH4BI.js → column-chart-options.config-CGw1dN1E.js} +29 -29
  8. package/components/column-chart-options.config-DomUPYPM.cjs +20 -0
  9. package/components/edit-item/index.cjs +1 -1
  10. package/components/edit-item/index.js +7 -7
  11. package/components/edit-option/index.cjs +1 -1
  12. package/components/edit-option/index.js +7 -7
  13. package/components/{line-chart-options.config-DKcFPWP7.js → line-chart-options.config-CEUJYNt7.js} +18 -18
  14. package/components/line-chart-options.config-DNGyRAvG.cjs +20 -0
  15. package/components/radar-chart-options.config-DUXOzdbl.cjs +20 -0
  16. package/components/{radar-chart-options.config-DfID1TZ-.js → radar-chart-options.config-gKHFbC63.js} +25 -25
  17. package/components/{treemap-chart-options.config-D6H5Hf2B.cjs → treemap-chart-options.config-Dc2UNcGG.cjs} +1 -1
  18. package/components/{treemap-chart-options.config-BalwwrhW.js → treemap-chart-options.config-f8L8KfDj.js} +19 -19
  19. package/package.json +1 -1
  20. package/components/area-chart-options.config-DHHGMb22.cjs +0 -20
  21. package/components/column-chart-options.config-DVPrV-XO.cjs +0 -20
  22. package/components/line-chart-options.config-i2233s5F.cjs +0 -20
  23. package/components/radar-chart-options.config-DPPlIptA.cjs +0 -20
@@ -17,12 +17,12 @@
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 a = (n, o) => {
21
- var l, r;
22
- return ((r = (l = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : r.length) > 0;
23
- }, t = (n, o) => {
24
- var l, r;
25
- return o && o.length > 0 ? !(((r = (l = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : r.length) > 0) : !0;
20
+ const a = (n, l) => {
21
+ var r, o;
22
+ return Array.isArray(l) && ((o = (r = l == null ? void 0 : l.find((i) => (i == null ? void 0 : i.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : o.length) > 0;
23
+ }, t = (n, l) => {
24
+ var r, o;
25
+ return Array.isArray(l) && (l == null ? void 0 : l.length) > 0 ? !(((o = (r = l == null ? void 0 : l.find((i) => (i == null ? void 0 : i.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : o.length) > 0) : !0;
26
26
  }, e = [
27
27
  {
28
28
  key: "general",
@@ -58,27 +58,27 @@ const a = (n, o) => {
58
58
  control: {
59
59
  type: "color-picker",
60
60
  label: "Color",
61
- default: (n, o, l) => {
62
- var r;
63
- return (l == null ? void 0 : l.mainColor) ?? ((r = l == null ? void 0 : l.colors) == null ? void 0 : r[0]);
61
+ default: (n, l, r) => {
62
+ var o;
63
+ return (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
64
64
  },
65
- extraLabel: (n, o, l) => {
65
+ extraLabel: (n, l, r) => {
66
66
  var i;
67
- const r = (l == null ? void 0 : l.mainColor) ?? ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[0]);
68
- if (r && n.color !== r)
67
+ const o = (r == null ? void 0 : r.mainColor) ?? ((i = r == null ? void 0 : r.colors) == null ? void 0 : i[0]);
68
+ if (o && n.color !== o)
69
69
  return "reset";
70
70
  },
71
- extraLabelHasClickAction: (n, o, l) => {
71
+ extraLabelHasClickAction: (n, l, r) => {
72
72
  var i;
73
- const r = (l == null ? void 0 : l.mainColor) ?? ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[0]);
74
- return !!(r && n.color !== r);
73
+ const o = (r == null ? void 0 : r.mainColor) ?? ((i = r == null ? void 0 : r.colors) == null ? void 0 : i[0]);
74
+ return !!(o && n.color !== o);
75
75
  },
76
- extraLabelClickAction: (n, o, l) => {
76
+ extraLabelClickAction: (n, l, r) => {
77
77
  var i;
78
- const r = { ...n };
79
- return r.color = (l == null ? void 0 : l.mainColor) ?? ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[0]), {
80
- value: r.color,
81
- options: r
78
+ const o = { ...n };
79
+ return o.color = (r == null ? void 0 : r.mainColor) ?? ((i = r == null ? void 0 : r.colors) == null ? void 0 : i[0]), {
80
+ value: o.color,
81
+ options: o
82
82
  };
83
83
  }
84
84
  },
@@ -123,8 +123,8 @@ const a = (n, o) => {
123
123
  step: 1
124
124
  },
125
125
  visibleIf: (n) => {
126
- var o;
127
- return (o = n == null ? void 0 : n.display) == null ? void 0 : o.points;
126
+ var l;
127
+ return (l = n == null ? void 0 : n.display) == null ? void 0 : l.points;
128
128
  }
129
129
  }
130
130
  ]
@@ -153,9 +153,9 @@ const a = (n, o) => {
153
153
  }
154
154
  }
155
155
  ],
156
- visibleIf: (n, o) => {
157
- var l;
158
- return ((l = n == null ? void 0 : n.display) == null ? void 0 : l.legend) !== !1 && a(n, o);
156
+ visibleIf: (n, l) => {
157
+ var r;
158
+ return ((r = n == null ? void 0 : n.display) == null ? void 0 : r.legend) !== !1 && a(n, l);
159
159
  }
160
160
  }
161
161
  ];
@@ -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 a=(l,o)=>{var r,e;return o&&o.length>0?((e=(r=o==null?void 0:o.find(n=>(n==null?void 0:n.name)==="color"))==null?void 0:r.content)==null?void 0:e.length)>0:!1},i=(l,o)=>{var r,e;return o&&o.length>0?((e=(r=o==null?void 0:o.find(n=>(n==null?void 0:n.name)==="color"))==null?void 0:r.content)==null?void 0:e.length)===0||!(o!=null&&o.some(n=>(n==null?void 0:n.name)==="color")):!0},t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:a},{key:"display.modeOption",control:{type:"switch",label:"Mode option",default:!1},visibleIf:a},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}},{key:"labels.autoSize",control:{type:"switch",label:"Auto size labels",default:!1}},{key:"display.values",control:{type:"picker",label:"Show values",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Color area by category",default:!0},visibleIf:i},{key:"color",control:{type:"color-picker",label:"Area color",default:(l,o,r)=>{var e;return(r==null?void 0:r.mainColor)??((e=r==null?void 0:r.colors)==null?void 0:e[0])},extraLabel:(l,o,r)=>{var n;const e=(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0]);if(e&&l.color!==e)return"reset"},extraLabelHasClickAction:(l,o,r)=>{var n;const e=(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0]);return!!(e&&l.color!==e)},extraLabelClickAction:(l,o,r)=>{var n;const e={...l};return e.color=(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0]),{value:e.color,options:e}}},visibleIf:(l,o)=>{var r;return((r=l==null?void 0:l.categories)==null?void 0:r.colored)===!1&&i(l,o)}},{key:"mode",control:{type:"picker",label:"Mode",default:"squarify",enum:["squarify","slice","dice","slice-dice"]}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:(l,o,r)=>{var e;if(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding)=="number")return typeof(l==null?void 0:l.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,o,r)=>{var e;return!(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding)!="number"||typeof(l==null?void 0:l.roundedCorners)!="number")},extraLabelClickAction:(l,o,r)=>{const e={...l};return(e==null?void 0:e.roundedCorners)!==void 0&&delete e.roundedCorners,{value:null,options:e}}}},{key:"padding",control:{type:"slider",label:"Internal padding",default:5,min:0,max:20,step:1,extraLabel:(l,o,r)=>{var e;if(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.padding)=="number")return typeof(l==null?void 0:l.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,o,r)=>{var e;return!(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.padding)!="number"||typeof(l==null?void 0:l.padding)!="number")},extraLabelClickAction:(l,o,r)=>{const e={...l};return(e==null?void 0:e.padding)!==void 0&&delete e.padding,{value:null,options:e}}}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}],visibleIf:a}];exports.default=t;
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(l,n)=>{var r,e;return Array.isArray(n)&&(n==null?void 0:n.length)>0?((e=(r=n==null?void 0:n.find(a=>(a==null?void 0:a.name)==="color"))==null?void 0:r.content)==null?void 0:e.length)>0:!1},i=(l,n)=>{var r,e;return Array.isArray(n)&&(n==null?void 0:n.length)>0?((e=(r=n==null?void 0:n.find(a=>(a==null?void 0:a.name)==="color"))==null?void 0:r.content)==null?void 0:e.length)===0||!(n!=null&&n.some(a=>(a==null?void 0:a.name)==="color")):!0},t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:o},{key:"display.modeOption",control:{type:"switch",label:"Mode option",default:!1},visibleIf:o},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}},{key:"labels.autoSize",control:{type:"switch",label:"Auto size labels",default:!1}},{key:"display.values",control:{type:"picker",label:"Show values",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Color area by category",default:!0},visibleIf:i},{key:"color",control:{type:"color-picker",label:"Area color",default:(l,n,r)=>{var e;return(r==null?void 0:r.mainColor)??((e=r==null?void 0:r.colors)==null?void 0:e[0])},extraLabel:(l,n,r)=>{var a;const e=(r==null?void 0:r.mainColor)??((a=r==null?void 0:r.colors)==null?void 0:a[0]);if(e&&l.color!==e)return"reset"},extraLabelHasClickAction:(l,n,r)=>{var a;const e=(r==null?void 0:r.mainColor)??((a=r==null?void 0:r.colors)==null?void 0:a[0]);return!!(e&&l.color!==e)},extraLabelClickAction:(l,n,r)=>{var a;const e={...l};return e.color=(r==null?void 0:r.mainColor)??((a=r==null?void 0:r.colors)==null?void 0:a[0]),{value:e.color,options:e}}},visibleIf:(l,n)=>{var r;return((r=l==null?void 0:l.categories)==null?void 0:r.colored)===!1&&i(l,n)}},{key:"mode",control:{type:"picker",label:"Mode",default:"squarify",enum:["squarify","slice","dice","slice-dice"]}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:(l,n,r)=>{var e;if(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding)=="number")return typeof(l==null?void 0:l.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,n,r)=>{var e;return!(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding)!="number"||typeof(l==null?void 0:l.roundedCorners)!="number")},extraLabelClickAction:(l,n,r)=>{const e={...l};return(e==null?void 0:e.roundedCorners)!==void 0&&delete e.roundedCorners,{value:null,options:e}}}},{key:"padding",control:{type:"slider",label:"Internal padding",default:5,min:0,max:20,step:1,extraLabel:(l,n,r)=>{var e;if(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.padding)=="number")return typeof(l==null?void 0:l.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,n,r)=>{var e;return!(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.padding)!="number"||typeof(l==null?void 0:l.padding)!="number")},extraLabelClickAction:(l,n,r)=>{const e={...l};return(e==null?void 0:e.padding)!==void 0&&delete e.padding,{value:null,options:e}}}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}],visibleIf:o}];exports.default=t;
@@ -17,12 +17,12 @@
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 a = (l, o) => {
20
+ const o = (l, a) => {
21
21
  var r, e;
22
- return o && o.length > 0 ? ((e = (r = o == null ? void 0 : o.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : e.length) > 0 : !1;
23
- }, i = (l, o) => {
22
+ return Array.isArray(a) && (a == null ? void 0 : a.length) > 0 ? ((e = (r = a == null ? void 0 : a.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : e.length) > 0 : !1;
23
+ }, i = (l, a) => {
24
24
  var r, e;
25
- return o && o.length > 0 ? ((e = (r = o == null ? void 0 : o.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : e.length) === 0 || !(o != null && o.some((n) => (n == null ? void 0 : n.name) === "color")) : !0;
25
+ return Array.isArray(a) && (a == null ? void 0 : a.length) > 0 ? ((e = (r = a == null ? void 0 : a.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : e.length) === 0 || !(a != null && a.some((n) => (n == null ? void 0 : n.name) === "color")) : !0;
26
26
  }, t = [
27
27
  {
28
28
  key: "general",
@@ -44,7 +44,7 @@ const a = (l, o) => {
44
44
  label: "Legend",
45
45
  default: !0
46
46
  },
47
- visibleIf: a
47
+ visibleIf: o
48
48
  },
49
49
  {
50
50
  key: "display.modeOption",
@@ -53,7 +53,7 @@ const a = (l, o) => {
53
53
  label: "Mode option",
54
54
  default: !1
55
55
  },
56
- visibleIf: a
56
+ visibleIf: o
57
57
  },
58
58
  {
59
59
  key: "display.labels",
@@ -94,22 +94,22 @@ const a = (l, o) => {
94
94
  control: {
95
95
  type: "color-picker",
96
96
  label: "Area color",
97
- default: (l, o, r) => {
97
+ default: (l, a, r) => {
98
98
  var e;
99
99
  return (r == null ? void 0 : r.mainColor) ?? ((e = r == null ? void 0 : r.colors) == null ? void 0 : e[0]);
100
100
  },
101
- extraLabel: (l, o, r) => {
101
+ extraLabel: (l, a, r) => {
102
102
  var n;
103
103
  const e = (r == null ? void 0 : r.mainColor) ?? ((n = r == null ? void 0 : r.colors) == null ? void 0 : n[0]);
104
104
  if (e && l.color !== e)
105
105
  return "reset";
106
106
  },
107
- extraLabelHasClickAction: (l, o, r) => {
107
+ extraLabelHasClickAction: (l, a, r) => {
108
108
  var n;
109
109
  const e = (r == null ? void 0 : r.mainColor) ?? ((n = r == null ? void 0 : r.colors) == null ? void 0 : n[0]);
110
110
  return !!(e && l.color !== e);
111
111
  },
112
- extraLabelClickAction: (l, o, r) => {
112
+ extraLabelClickAction: (l, a, r) => {
113
113
  var n;
114
114
  const e = { ...l };
115
115
  return e.color = (r == null ? void 0 : r.mainColor) ?? ((n = r == null ? void 0 : r.colors) == null ? void 0 : n[0]), {
@@ -118,9 +118,9 @@ const a = (l, o) => {
118
118
  };
119
119
  }
120
120
  },
121
- visibleIf: (l, o) => {
121
+ visibleIf: (l, a) => {
122
122
  var r;
123
- return ((r = l == null ? void 0 : l.categories) == null ? void 0 : r.colored) === !1 && i(l, o);
123
+ return ((r = l == null ? void 0 : l.categories) == null ? void 0 : r.colored) === !1 && i(l, a);
124
124
  }
125
125
  },
126
126
  {
@@ -141,16 +141,16 @@ const a = (l, o) => {
141
141
  min: 0,
142
142
  max: 24,
143
143
  step: 1,
144
- extraLabel: (l, o, r) => {
144
+ extraLabel: (l, a, r) => {
145
145
  var e;
146
146
  if (typeof ((e = r == null ? void 0 : r.itemSpecific) == null ? void 0 : e.rounding) == "number")
147
147
  return typeof (l == null ? void 0 : l.roundedCorners) != "number" ? "auto" : "reset";
148
148
  },
149
- extraLabelHasClickAction: (l, o, r) => {
149
+ extraLabelHasClickAction: (l, a, r) => {
150
150
  var e;
151
151
  return !(typeof ((e = r == null ? void 0 : r.itemSpecific) == null ? void 0 : e.rounding) != "number" || typeof (l == null ? void 0 : l.roundedCorners) != "number");
152
152
  },
153
- extraLabelClickAction: (l, o, r) => {
153
+ extraLabelClickAction: (l, a, r) => {
154
154
  const e = { ...l };
155
155
  return (e == null ? void 0 : e.roundedCorners) !== void 0 && delete e.roundedCorners, { value: null, options: e };
156
156
  }
@@ -165,16 +165,16 @@ const a = (l, o) => {
165
165
  min: 0,
166
166
  max: 20,
167
167
  step: 1,
168
- extraLabel: (l, o, r) => {
168
+ extraLabel: (l, a, r) => {
169
169
  var e;
170
170
  if (typeof ((e = r == null ? void 0 : r.itemSpecific) == null ? void 0 : e.padding) == "number")
171
171
  return typeof (l == null ? void 0 : l.padding) != "number" ? "auto" : "reset";
172
172
  },
173
- extraLabelHasClickAction: (l, o, r) => {
173
+ extraLabelHasClickAction: (l, a, r) => {
174
174
  var e;
175
175
  return !(typeof ((e = r == null ? void 0 : r.itemSpecific) == null ? void 0 : e.padding) != "number" || typeof (l == null ? void 0 : l.padding) != "number");
176
176
  },
177
- extraLabelClickAction: (l, o, r) => {
177
+ extraLabelClickAction: (l, a, r) => {
178
178
  const e = { ...l };
179
179
  return (e == null ? void 0 : e.padding) !== void 0 && delete e.padding, { value: null, options: e };
180
180
  }
@@ -206,7 +206,7 @@ const a = (l, o) => {
206
206
  }
207
207
  }
208
208
  ],
209
- visibleIf: a
209
+ visibleIf: o
210
210
  }
211
211
  ];
212
212
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/analytics-components-kit",
3
- "version": "1.0.1-alpha.16",
3
+ "version": "1.0.1-alpha.17",
4
4
  "type": "module",
5
5
  "main": "./components/index.js",
6
6
  "module": "./components/index.js",
@@ -1,20 +0,0 @@
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=(r,e)=>{var t,i,l,a;return e&&e.length>0?((i=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:t.content)==null?void 0:i.length)>0||((a=(l=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:l.content)==null?void 0:a.length)>1:!1},u=(r,e)=>{var t,i,l,a;return e&&e.length>0?!(((i=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:t.content)==null?void 0:i.length)>0)&&((a=(l=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:l.content)==null?void 0:a.length)<=1:!0},d=(r,e)=>{var t,i,l;return((l=(i=(t=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="x-axis"))==null?void 0:t.content)==null?void 0:i[0])==null?void 0:l.type)==="datetime"},p=(r,e)=>{var t,i,l,a;return((l=(i=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="x-axis"))==null?void 0:t.content)==null?void 0:i[0])==null?void 0:l.type)==="datetime"&&((a=r==null?void 0:r.missingValue)==null?void 0:a.type)==="manual"},c=[{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:"Line color",type:"color-picker",default:(r,e,t)=>{var i;return(t==null?void 0:t.mainColor)??((i=t==null?void 0:t.colors)==null?void 0:i[0])}},visibleIf:u}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}],visibleIf:o}];exports.default=c;
@@ -1,20 +0,0 @@
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=(l,e)=>{var r,n,o,t;if(e&&e.length>0)return((n=(r=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)>0||((t=(o=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="measure"))==null?void 0:o.content)==null?void 0:t.length)>1},c=(l,e)=>{var r,n,o,t;if(e&&e.length>0)return((n=(r=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)===0&&((t=(o=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="measure"))==null?void 0:o.content)==null?void 0:t.length)<=1},u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:a},{type:"divider",visibleIf:a},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:a},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:a},{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:(l,e,r)=>{var n;return(n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding},min:0,max:20,step:1,extraLabel:(l,e,r)=>{var n,o;if(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)=="number")return typeof((o=l==null?void 0:l.bars)==null?void 0:o.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,e,r)=>{var n,o;return!(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)!="number"||typeof((o=l==null?void 0:l.bars)==null?void 0:o.roundedCorners)!="number")},extraLabelClickAction:(l,e,r)=>{var o;const n={...l};return(o=n==null?void 0:n.bars)==null||delete o.roundedCorners,{value:null,options:n}}}},{key:"color",control:{type:"color-picker",default:(l,e,r)=>{var n;return(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0])},extraLabel:(l,e,r)=>{var o;const n=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);if(n&&l.color!==n)return"reset"},extraLabelHasClickAction:(l,e,r)=>{var o;const n=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);return!!(n&&l.color!==n)},extraLabelClickAction:(l,e,r)=>{var o;const n={...l};return n.color=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]),{value:n.color,options:n}}},visibleIf:c}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}],visibleIf:a}];exports.default=u;
@@ -1,20 +0,0 @@
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 d=(l,e)=>{var t,i,r,a;return e&&e.length>0?((i=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:t.content)==null?void 0:i.length)>0||((a=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:r.content)==null?void 0:a.length)>1:!1},u=(l,e)=>{var t,i,r,a;return e&&e.length>0?!(((i=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:t.content)==null?void 0:i.length)>0)&&((a=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:r.content)==null?void 0:a.length)<=1:!0},o=(l,e)=>{var t,i,r;return((r=(i=(t=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="x-axis"))==null?void 0:t.content)==null?void 0:i[0])==null?void 0:r.type)==="datetime"},c=(l,e)=>{var t,i,r,a;return((r=(i=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="x-axis"))==null?void 0:t.content)==null?void 0:i[0])==null?void 0:r.type)==="datetime"&&((a=l==null?void 0:l.missingValue)==null?void 0:a.type)==="manual"},p=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{label:"Title",type:"switch",default:!0}},{key:"display.legend",control:{label:"Legend",type:"switch",default:!0},visibleIf:d},{type:"divider"},{key:"interpolation",control:{label:"Interpolation",type:"picker",default:"linear",enum:["linear","step-before","step-after","monotone"]}},{key:"missingValue.type",control:{label:"Fill missing values",type:"picker",default:"no",enum:["no","break","manual"]},visibleIf:o},{key:"missingValue.value",control:{label:"Value",type:"number-field",default:"no",min:1},visibleIf:c},{key:"color",control:{label:"Line color",type:"color-picker",default:(l,e,t)=>{var i;return(t==null?void 0:t.mainColor)??((i=t==null?void 0:t.colors)==null?void 0:i[0])}},visibleIf:u},{key:"lines.gradient",control:{label:"Line gradient",type:"switch",default:!0}},{key:"lines.strokeWidth",control:{label:"Stroke width",type:"slider",default:2,min:1,max:7,step:1}}]},{key:"markers",type:"group",open:!1,children:[{key:"markers.enabled",control:{label:"Enabled",type:"switch",default:!1}},{key:"markers.size",control:{type:"slider",label:"Size",default:4,min:2,max:10,step:1},visibleIf:l=>{var e;return(e=l==null?void 0:l.markers)==null?void 0:e.enabled}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}],visibleIf:d}];exports.default=p;
@@ -1,20 +0,0 @@
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=(n,o)=>{var l,r;return((r=(l=o==null?void 0:o.find(i=>(i==null?void 0:i.name)==="color"))==null?void 0:l.content)==null?void 0:r.length)>0},a=(n,o)=>{var l,r;return o&&o.length>0?!(((r=(l=o==null?void 0:o.find(i=>(i==null?void 0:i.name)==="color"))==null?void 0:l.content)==null?void 0:r.length)>0):!0},e=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:t}]},{key:"radar",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Color",default:(n,o,l)=>{var r;return(l==null?void 0:l.mainColor)??((r=l==null?void 0:l.colors)==null?void 0:r[0])},extraLabel:(n,o,l)=>{var i;const r=(l==null?void 0:l.mainColor)??((i=l==null?void 0:l.colors)==null?void 0:i[0]);if(r&&n.color!==r)return"reset"},extraLabelHasClickAction:(n,o,l)=>{var i;const r=(l==null?void 0:l.mainColor)??((i=l==null?void 0:l.colors)==null?void 0:i[0]);return!!(r&&n.color!==r)},extraLabelClickAction:(n,o,l)=>{var i;const r={...n};return r.color=(l==null?void 0:l.mainColor)??((i=l==null?void 0:l.colors)==null?void 0:i[0]),{value:r.color,options:r}}},visibleIf:a},{key:"fillOpacity",control:{type:"slider",label:"Fill opacity",default:.05,min:0,max:.7,step:.01}},{key:"interpolation",control:{type:"picker",label:"Interpolation",default:"linear",enum:["linear","rounded"]}},{key:"display.points",control:{type:"switch",label:"Show points",default:!1}},{key:"pointSize",control:{type:"slider",label:"Point size",default:3,min:2,max:7,step:1},visibleIf:n=>{var o;return(o=n==null?void 0:n.display)==null?void 0:o.points}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}],visibleIf:(n,o)=>{var l;return((l=n==null?void 0:n.display)==null?void 0:l.legend)!==!1&&t(n,o)}}];exports.default=e;