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

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 (43) 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/conditional-number-options.config-B24MqnZj.js +151 -0
  10. package/components/conditional-number-options.config-C1eERsoe.cjs +20 -0
  11. package/components/conditional-number-options.de-BJcjBZY1.js +74 -0
  12. package/components/conditional-number-options.de-CFnufi0r.cjs +20 -0
  13. package/components/conditional-number-options.en-WSrIzRGJ.js +74 -0
  14. package/components/conditional-number-options.en-Wd-0YtdE.cjs +20 -0
  15. package/components/conditional-number-options.es-BKqT0zog.js +74 -0
  16. package/components/conditional-number-options.es-BTDTe5SF.cjs +20 -0
  17. package/components/conditional-number-options.fr-CZ-9jzPm.cjs +20 -0
  18. package/components/conditional-number-options.fr-D2r7Azy8.js +74 -0
  19. package/components/conditional-number-options.nl-CfRYL6o1.cjs +20 -0
  20. package/components/conditional-number-options.nl-pkRI1tLZ.js +74 -0
  21. package/components/edit-item/index.cjs +4 -4
  22. package/components/edit-item/index.js +13 -7
  23. package/components/edit-option/index.cjs +24 -24
  24. package/components/edit-option/index.js +47 -41
  25. package/components/edit-option-action-button-group/index.cjs +7 -7
  26. package/components/edit-option-action-button-group/index.js +56 -54
  27. package/components/{line-chart-options.config-DKcFPWP7.js → line-chart-options.config-CEUJYNt7.js} +18 -18
  28. package/components/line-chart-options.config-DNGyRAvG.cjs +20 -0
  29. package/components/radar-chart-options.config-DUXOzdbl.cjs +20 -0
  30. package/components/{radar-chart-options.config-DfID1TZ-.js → radar-chart-options.config-gKHFbC63.js} +25 -25
  31. package/components/{treemap-chart-options.config-D6H5Hf2B.cjs → treemap-chart-options.config-Dc2UNcGG.cjs} +1 -1
  32. package/components/{treemap-chart-options.config-BalwwrhW.js → treemap-chart-options.config-f8L8KfDj.js} +19 -19
  33. package/item-definitions/conditional-number/conditional-number-options.config.d.ts +135 -0
  34. package/item-definitions/conditional-number/i18n/conditional-number-options.de.d.ts +53 -0
  35. package/item-definitions/conditional-number/i18n/conditional-number-options.en.d.ts +53 -0
  36. package/item-definitions/conditional-number/i18n/conditional-number-options.es.d.ts +53 -0
  37. package/item-definitions/conditional-number/i18n/conditional-number-options.fr.d.ts +53 -0
  38. package/item-definitions/conditional-number/i18n/conditional-number-options.nl.d.ts +53 -0
  39. package/package.json +1 -1
  40. package/components/area-chart-options.config-DHHGMb22.cjs +0 -20
  41. package/components/column-chart-options.config-DVPrV-XO.cjs +0 -20
  42. package/components/line-chart-options.config-i2233s5F.cjs +0 -20
  43. package/components/radar-chart-options.config-DPPlIptA.cjs +0 -20
@@ -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=(n,l)=>{var r,o;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},t=(n,l)=>{var r,o;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},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:a}]},{key:"radar",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Color",default:(n,l,r)=>{var o;return(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0])},extraLabel:(n,l,r)=>{var i;const o=(r==null?void 0:r.mainColor)??((i=r==null?void 0:r.colors)==null?void 0:i[0]);if(o&&n.color!==o)return"reset"},extraLabelHasClickAction:(n,l,r)=>{var i;const o=(r==null?void 0:r.mainColor)??((i=r==null?void 0:r.colors)==null?void 0:i[0]);return!!(o&&n.color!==o)},extraLabelClickAction:(n,l,r)=>{var i;const o={...n};return o.color=(r==null?void 0:r.mainColor)??((i=r==null?void 0:r.colors)==null?void 0:i[0]),{value:o.color,options:o}}},visibleIf:t},{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 l;return(l=n==null?void 0:n.display)==null?void 0:l.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,l)=>{var r;return((r=n==null?void 0:n.display)==null?void 0:r.legend)!==!1&&a(n,l)}}];exports.default=e;
@@ -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 {
@@ -0,0 +1,135 @@
1
+ declare const _default: ({
2
+ key: string;
3
+ type: string;
4
+ open: boolean;
5
+ children: ({
6
+ key: string;
7
+ control: {
8
+ type: string;
9
+ label: string;
10
+ default: boolean;
11
+ enum?: undefined;
12
+ min?: undefined;
13
+ step?: undefined;
14
+ extraLabel?: undefined;
15
+ extraLabelHasClickAction?: undefined;
16
+ extraLabelClickAction?: undefined;
17
+ };
18
+ visibleIf?: undefined;
19
+ } | {
20
+ key: string;
21
+ control: {
22
+ type: string;
23
+ label: string;
24
+ default: string;
25
+ enum: string[];
26
+ min?: undefined;
27
+ step?: undefined;
28
+ extraLabel?: undefined;
29
+ extraLabelHasClickAction?: undefined;
30
+ extraLabelClickAction?: undefined;
31
+ };
32
+ visibleIf?: undefined;
33
+ } | {
34
+ key: string;
35
+ control: {
36
+ type: string;
37
+ label: string;
38
+ default: number;
39
+ min: number;
40
+ step: number;
41
+ enum?: undefined;
42
+ extraLabel?: undefined;
43
+ extraLabelHasClickAction?: undefined;
44
+ extraLabelClickAction?: undefined;
45
+ };
46
+ visibleIf: (_: any, slots: any[]) => boolean;
47
+ } | {
48
+ key: string;
49
+ control: {
50
+ type: string;
51
+ label: string;
52
+ default: boolean;
53
+ enum?: undefined;
54
+ min?: undefined;
55
+ step?: undefined;
56
+ extraLabel?: undefined;
57
+ extraLabelHasClickAction?: undefined;
58
+ extraLabelClickAction?: undefined;
59
+ };
60
+ visibleIf: (options: any) => boolean;
61
+ } | {
62
+ key: string;
63
+ control: {
64
+ type: string;
65
+ label: string;
66
+ default: (_options: any, _slots: any, theme: any) => any;
67
+ extraLabel: (options: any, _slots: any, theme: any) => "reset" | undefined;
68
+ extraLabelHasClickAction: (options: any, _slots: any, theme: any) => boolean;
69
+ extraLabelClickAction: (options: any, _slots: any, theme: any) => {
70
+ value: any;
71
+ options: any;
72
+ };
73
+ enum?: undefined;
74
+ min?: undefined;
75
+ step?: undefined;
76
+ };
77
+ visibleIf: (options: any) => boolean;
78
+ })[];
79
+ } | {
80
+ key: string;
81
+ type: string;
82
+ open: boolean;
83
+ children: ({
84
+ key: string;
85
+ control: {
86
+ type: string;
87
+ label: string;
88
+ default: string[];
89
+ values: {
90
+ top: {
91
+ iconName: string;
92
+ label: string;
93
+ };
94
+ middle: {
95
+ iconName: string;
96
+ label: string;
97
+ };
98
+ bottom: {
99
+ iconName: string;
100
+ label: string;
101
+ };
102
+ left?: undefined;
103
+ center?: undefined;
104
+ right?: undefined;
105
+ };
106
+ selects: string;
107
+ };
108
+ } | {
109
+ key: string;
110
+ control: {
111
+ type: string;
112
+ label: string;
113
+ default: string[];
114
+ values: {
115
+ left: {
116
+ iconName: string;
117
+ label: string;
118
+ };
119
+ center: {
120
+ iconName: string;
121
+ label: string;
122
+ };
123
+ right: {
124
+ iconName: string;
125
+ label: string;
126
+ };
127
+ top?: undefined;
128
+ middle?: undefined;
129
+ bottom?: undefined;
130
+ };
131
+ selects: string;
132
+ };
133
+ })[];
134
+ })[];
135
+ export default _default;
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ name: string;
3
+ groups: {
4
+ general: {
5
+ label: string;
6
+ };
7
+ alignment: {
8
+ label: string;
9
+ };
10
+ };
11
+ options: {
12
+ 'display.label': {
13
+ label: string;
14
+ };
15
+ mode: {
16
+ label: string;
17
+ enum: {
18
+ normal: string;
19
+ percentage: string;
20
+ difference: string;
21
+ };
22
+ };
23
+ 'manualValues.target': {
24
+ label: string;
25
+ };
26
+ 'manualValues.conditional': {
27
+ label: string;
28
+ };
29
+ 'manualValues.asBackground': {
30
+ label: string;
31
+ };
32
+ color: {
33
+ label: string;
34
+ };
35
+ 'alignment.vertical': {
36
+ label: string;
37
+ values: {
38
+ top: string;
39
+ middle: string;
40
+ bottom: string;
41
+ };
42
+ };
43
+ 'alignment.horizontal': {
44
+ label: string;
45
+ values: {
46
+ left: string;
47
+ center: string;
48
+ right: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export default _default;
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ name: string;
3
+ groups: {
4
+ general: {
5
+ label: string;
6
+ };
7
+ alignment: {
8
+ label: string;
9
+ };
10
+ };
11
+ options: {
12
+ 'display.label': {
13
+ label: string;
14
+ };
15
+ mode: {
16
+ label: string;
17
+ enum: {
18
+ normal: string;
19
+ percentage: string;
20
+ difference: string;
21
+ };
22
+ };
23
+ 'manualValues.target': {
24
+ label: string;
25
+ };
26
+ 'manualValues.conditional': {
27
+ label: string;
28
+ };
29
+ 'manualValues.asBackground': {
30
+ label: string;
31
+ };
32
+ color: {
33
+ label: string;
34
+ };
35
+ 'alignment.vertical': {
36
+ label: string;
37
+ values: {
38
+ top: string;
39
+ middle: string;
40
+ bottom: string;
41
+ };
42
+ };
43
+ 'alignment.horizontal': {
44
+ label: string;
45
+ values: {
46
+ left: string;
47
+ center: string;
48
+ right: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export default _default;
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ name: string;
3
+ groups: {
4
+ general: {
5
+ label: string;
6
+ };
7
+ alignment: {
8
+ label: string;
9
+ };
10
+ };
11
+ options: {
12
+ 'display.label': {
13
+ label: string;
14
+ };
15
+ mode: {
16
+ label: string;
17
+ enum: {
18
+ normal: string;
19
+ percentage: string;
20
+ difference: string;
21
+ };
22
+ };
23
+ 'manualValues.target': {
24
+ label: string;
25
+ };
26
+ 'manualValues.conditional': {
27
+ label: string;
28
+ };
29
+ 'manualValues.asBackground': {
30
+ label: string;
31
+ };
32
+ color: {
33
+ label: string;
34
+ };
35
+ 'alignment.vertical': {
36
+ label: string;
37
+ values: {
38
+ top: string;
39
+ middle: string;
40
+ bottom: string;
41
+ };
42
+ };
43
+ 'alignment.horizontal': {
44
+ label: string;
45
+ values: {
46
+ left: string;
47
+ center: string;
48
+ right: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export default _default;
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ name: string;
3
+ groups: {
4
+ general: {
5
+ label: string;
6
+ };
7
+ alignment: {
8
+ label: string;
9
+ };
10
+ };
11
+ options: {
12
+ 'display.label': {
13
+ label: string;
14
+ };
15
+ mode: {
16
+ label: string;
17
+ enum: {
18
+ normal: string;
19
+ percentage: string;
20
+ difference: string;
21
+ };
22
+ };
23
+ 'manualValues.target': {
24
+ label: string;
25
+ };
26
+ 'manualValues.conditional': {
27
+ label: string;
28
+ };
29
+ 'manualValues.asBackground': {
30
+ label: string;
31
+ };
32
+ color: {
33
+ label: string;
34
+ };
35
+ 'alignment.vertical': {
36
+ label: string;
37
+ values: {
38
+ top: string;
39
+ middle: string;
40
+ bottom: string;
41
+ };
42
+ };
43
+ 'alignment.horizontal': {
44
+ label: string;
45
+ values: {
46
+ left: string;
47
+ center: string;
48
+ right: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export default _default;
@@ -0,0 +1,53 @@
1
+ declare const _default: {
2
+ name: string;
3
+ groups: {
4
+ general: {
5
+ label: string;
6
+ };
7
+ alignment: {
8
+ label: string;
9
+ };
10
+ };
11
+ options: {
12
+ 'display.label': {
13
+ label: string;
14
+ };
15
+ mode: {
16
+ label: string;
17
+ enum: {
18
+ normal: string;
19
+ percentage: string;
20
+ difference: string;
21
+ };
22
+ };
23
+ 'manualValues.target': {
24
+ label: string;
25
+ };
26
+ 'manualValues.conditional': {
27
+ label: string;
28
+ };
29
+ 'manualValues.asBackground': {
30
+ label: string;
31
+ };
32
+ color: {
33
+ label: string;
34
+ };
35
+ 'alignment.vertical': {
36
+ label: string;
37
+ values: {
38
+ top: string;
39
+ middle: string;
40
+ bottom: string;
41
+ };
42
+ };
43
+ 'alignment.horizontal': {
44
+ label: string;
45
+ values: {
46
+ left: string;
47
+ center: string;
48
+ right: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ export default _default;
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.18",
4
4
  "type": "module",
5
5
  "main": "./components/index.js",
6
6
  "module": "./components/index.js",