@luzmo/analytics-components-kit 1.0.1-alpha.15 → 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.
- package/components/{area-chart-options.config-C0l_W4Yq.js → area-chart-options.config-B5qtlH-_.js} +24 -24
- package/components/area-chart-options.config-DMfRioZx.cjs +20 -0
- package/components/{bar-chart-options.config-BO9Ik7mh.cjs → bar-chart-options.config-C7BGg5sh.cjs} +1 -1
- package/components/{bar-chart-options.config-CF1i1Imw.js → bar-chart-options.config-CQfpV1Rx.js} +29 -29
- package/components/{bubble-chart-options.config-1MrC55Nb.js → bubble-chart-options.config-Cp6OQnJl.js} +7 -7
- package/components/{bubble-chart-options.config-bQBq1s3C.cjs → bubble-chart-options.config-DL5Xl6Ad.cjs} +1 -1
- package/components/{column-chart-options.config-BT1QH4BI.js → column-chart-options.config-CGw1dN1E.js} +29 -29
- package/components/column-chart-options.config-DomUPYPM.cjs +20 -0
- package/components/draggable-data-item-level/index.cjs +2 -2
- package/components/draggable-data-item-level/index.js +2 -2
- package/components/edit-item/index.cjs +1 -1
- package/components/edit-item/index.js +7 -7
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +7 -7
- package/components/{line-chart-options.config-DKcFPWP7.js → line-chart-options.config-CEUJYNt7.js} +18 -18
- package/components/line-chart-options.config-DNGyRAvG.cjs +20 -0
- package/components/radar-chart-options.config-DUXOzdbl.cjs +20 -0
- package/components/{radar-chart-options.config-DfID1TZ-.js → radar-chart-options.config-gKHFbC63.js} +25 -25
- package/components/{treemap-chart-options.config-D6H5Hf2B.cjs → treemap-chart-options.config-Dc2UNcGG.cjs} +1 -1
- package/components/{treemap-chart-options.config-BalwwrhW.js → treemap-chart-options.config-f8L8KfDj.js} +19 -19
- package/package.json +1 -1
- package/components/area-chart-options.config-DHHGMb22.cjs +0 -20
- package/components/column-chart-options.config-DVPrV-XO.cjs +0 -20
- package/components/line-chart-options.config-i2233s5F.cjs +0 -20
- package/components/radar-chart-options.config-DPPlIptA.cjs +0 -20
package/components/{area-chart-options.config-C0l_W4Yq.js → area-chart-options.config-B5qtlH-_.js}
RENAMED
@@ -17,19 +17,19 @@
|
|
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
|
21
|
-
var
|
22
|
-
return e && e.length > 0 ? ((
|
23
|
-
},
|
24
|
-
var
|
25
|
-
return e && e.length > 0 ? !(((
|
26
|
-
},
|
27
|
-
var
|
28
|
-
return ((
|
29
|
-
},
|
30
|
-
var
|
31
|
-
return ((
|
32
|
-
},
|
20
|
+
const u = (l, e) => {
|
21
|
+
var i, a, t, r;
|
22
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (i = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : i.content) == null ? void 0 : a.length) > 0 || ((r = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : r.length) > 1 : !1;
|
23
|
+
}, d = (l, e) => {
|
24
|
+
var i, a, t, r;
|
25
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((a = (i = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : i.content) == null ? void 0 : a.length) > 0) && ((r = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : r.length) <= 1 : !0;
|
26
|
+
}, p = (l, e) => {
|
27
|
+
var i, a, t;
|
28
|
+
return Array.isArray(e) && ((t = (a = (i = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "x-axis")) == null ? void 0 : i.content) == null ? void 0 : a[0]) == null ? void 0 : t.type) === "datetime";
|
29
|
+
}, c = (l, e) => {
|
30
|
+
var i, a, t, r;
|
31
|
+
return Array.isArray(e) && ((t = (a = (i = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "x-axis")) == null ? void 0 : i.content) == null ? void 0 : a[0]) == null ? void 0 : t.type) === "datetime" && ((r = l == null ? void 0 : l.missingValue) == null ? void 0 : r.type) === "manual";
|
32
|
+
}, y = [
|
33
33
|
{
|
34
34
|
key: "general",
|
35
35
|
type: "group",
|
@@ -54,7 +54,7 @@ const o = (r, e) => {
|
|
54
54
|
default: "unstacked",
|
55
55
|
enum: ["100", "unstacked", "stacked", "stream"]
|
56
56
|
},
|
57
|
-
visibleIf:
|
57
|
+
visibleIf: u
|
58
58
|
},
|
59
59
|
{
|
60
60
|
key: "interpolation",
|
@@ -72,7 +72,7 @@ const o = (r, e) => {
|
|
72
72
|
type: "switch",
|
73
73
|
default: !0
|
74
74
|
},
|
75
|
-
visibleIf:
|
75
|
+
visibleIf: u
|
76
76
|
},
|
77
77
|
{
|
78
78
|
key: "display.modeOption",
|
@@ -81,7 +81,7 @@ const o = (r, e) => {
|
|
81
81
|
type: "switch",
|
82
82
|
default: !0
|
83
83
|
},
|
84
|
-
visibleIf:
|
84
|
+
visibleIf: u
|
85
85
|
},
|
86
86
|
{
|
87
87
|
key: "missingValue.type",
|
@@ -91,7 +91,7 @@ const o = (r, e) => {
|
|
91
91
|
default: "no",
|
92
92
|
enum: ["no", "break", "manual"]
|
93
93
|
},
|
94
|
-
visibleIf:
|
94
|
+
visibleIf: p
|
95
95
|
},
|
96
96
|
{
|
97
97
|
key: "missingValue.value",
|
@@ -101,19 +101,19 @@ const o = (r, e) => {
|
|
101
101
|
default: "no",
|
102
102
|
min: 1
|
103
103
|
},
|
104
|
-
visibleIf:
|
104
|
+
visibleIf: c
|
105
105
|
},
|
106
106
|
{
|
107
107
|
key: "color",
|
108
108
|
control: {
|
109
109
|
label: "Line color",
|
110
110
|
type: "color-picker",
|
111
|
-
default: (
|
112
|
-
var
|
113
|
-
return (
|
111
|
+
default: (l, e, i) => {
|
112
|
+
var a;
|
113
|
+
return (i == null ? void 0 : i.mainColor) ?? ((a = i == null ? void 0 : i.colors) == null ? void 0 : a[0]);
|
114
114
|
}
|
115
115
|
},
|
116
|
-
visibleIf:
|
116
|
+
visibleIf: d
|
117
117
|
}
|
118
118
|
]
|
119
119
|
},
|
@@ -141,9 +141,9 @@ const o = (r, e) => {
|
|
141
141
|
}
|
142
142
|
}
|
143
143
|
],
|
144
|
-
visibleIf:
|
144
|
+
visibleIf: u
|
145
145
|
}
|
146
146
|
];
|
147
147
|
export {
|
148
|
-
|
148
|
+
y as default
|
149
149
|
};
|
@@ -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 u=(l,e)=>{var i,r,t,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((r=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:i.content)==null?void 0:r.length)>0||((a=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:t.content)==null?void 0:a.length)>1:!1},d=(l,e)=>{var i,r,t,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?!(((r=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:i.content)==null?void 0:r.length)>0)&&((a=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:t.content)==null?void 0:a.length)<=1:!0},p=(l,e)=>{var i,r,t;return Array.isArray(e)&&((t=(r=(i=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="x-axis"))==null?void 0:i.content)==null?void 0:r[0])==null?void 0:t.type)==="datetime"},c=(l,e)=>{var i,r,t,a;return Array.isArray(e)&&((t=(r=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="x-axis"))==null?void 0:i.content)==null?void 0:r[0])==null?void 0:t.type)==="datetime"&&((a=l==null?void 0:l.missingValue)==null?void 0:a.type)==="manual"},o=[{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:u},{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:u},{key:"display.modeOption",control:{label:"Mode option",type:"switch",default:!0},visibleIf:u},{key:"missingValue.type",control:{label:"Fill missing values",type:"picker",default:"no",enum:["no","break","manual"]},visibleIf:p},{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,i)=>{var r;return(i==null?void 0:i.mainColor)??((r=i==null?void 0:i.colors)==null?void 0:r[0])}},visibleIf:d}]},{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:u}];exports.default=o;
|
package/components/{bar-chart-options.config-BO9Ik7mh.cjs → bar-chart-options.config-C7BGg5sh.cjs}
RENAMED
@@ -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
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=(i,n)=>{var r,e,o,a;if(Array.isArray(n)&&(n==null?void 0:n.length)>0)return((e=(r=n==null?void 0:n.find(l=>(l==null?void 0:l.name)==="legend"))==null?void 0:r.content)==null?void 0:e.length)>0||((a=(o=n==null?void 0:n.find(l=>(l==null?void 0:l.name)==="measure"))==null?void 0:o.content)==null?void 0:a.length)>1},t=(i,n)=>{var r,e,o,a;if(Array.isArray(n)&&(n==null?void 0:n.length)>0)return((e=(r=n==null?void 0:n.find(l=>(l==null?void 0:l.name)==="legend"))==null?void 0:r.content)==null?void 0:e.length)===0&&((a=(o=n==null?void 0:n.find(l=>(l==null?void 0:l.name)==="measure"))==null?void 0:o.content)==null?void 0:a.length)<=1},u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:c},{type:"divider",visibleIf:c},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:c},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:c},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:t},{key:"bars.roundedCorners",control:{type:"slider",default:(i,n,r)=>{var e;return(e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding},min:0,max:20,step:1,extraLabel:(i,n,r)=>{var e,o;if(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding)=="number")return typeof((o=i==null?void 0:i.bars)==null?void 0:o.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(i,n,r)=>{var e,o;return!(typeof((e=r==null?void 0:r.itemSpecific)==null?void 0:e.rounding)!="number"||typeof((o=i==null?void 0:i.bars)==null?void 0:o.roundedCorners)!="number")},extraLabelClickAction:(i,n,r)=>{var o;const e={...i};return(o=e==null?void 0:e.bars)==null||delete o.roundedCorners,{value:null,options:e}}}},{key:"color",control:{type:"color-picker",label:"Bar color",default:(i,n,r)=>{var e;return(r==null?void 0:r.mainColor)??((e=r==null?void 0:r.colors)==null?void 0:e[0])},extraLabel:(i,n,r)=>{var o;const e=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);if(e&&i.color!==e)return"reset"},extraLabelHasClickAction:(i,n,r)=>{var o;const e=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);return!!(e&&i.color!==e)},extraLabelClickAction:(i,n,r)=>{var o;const e={...i};return e.color=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]),{value:e.color,options:e}}},visibleIf:t}]},{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:c}];exports.default=u;
|
package/components/{bar-chart-options.config-CF1i1Imw.js → bar-chart-options.config-CQfpV1Rx.js}
RENAMED
@@ -17,14 +17,14 @@
|
|
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
|
21
|
-
var r, n, o,
|
22
|
-
if (e && e.length > 0)
|
23
|
-
return ((n = (r = e == null ? void 0 : e.find((
|
24
|
-
},
|
25
|
-
var r, n, o,
|
26
|
-
if (e && e.length > 0)
|
27
|
-
return ((n = (r = e == null ? void 0 : e.find((
|
20
|
+
const c = (i, e) => {
|
21
|
+
var r, n, o, l;
|
22
|
+
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;
|
26
|
+
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
28
|
}, u = [
|
29
29
|
{
|
30
30
|
key: "general",
|
@@ -38,11 +38,11 @@ const t = (l, e) => {
|
|
38
38
|
default: "grouped",
|
39
39
|
enum: ["grouped", "stacked", "100"]
|
40
40
|
},
|
41
|
-
visibleIf:
|
41
|
+
visibleIf: c
|
42
42
|
},
|
43
43
|
{
|
44
44
|
type: "divider",
|
45
|
-
visibleIf:
|
45
|
+
visibleIf: c
|
46
46
|
},
|
47
47
|
{
|
48
48
|
key: "display.title",
|
@@ -57,7 +57,7 @@ const t = (l, e) => {
|
|
57
57
|
type: "switch",
|
58
58
|
default: !0
|
59
59
|
},
|
60
|
-
visibleIf:
|
60
|
+
visibleIf: c
|
61
61
|
},
|
62
62
|
{
|
63
63
|
key: "display.modeOption",
|
@@ -65,7 +65,7 @@ const t = (l, e) => {
|
|
65
65
|
type: "switch",
|
66
66
|
default: !1
|
67
67
|
},
|
68
|
-
visibleIf:
|
68
|
+
visibleIf: c
|
69
69
|
},
|
70
70
|
{
|
71
71
|
key: "bars.label",
|
@@ -87,31 +87,31 @@ const t = (l, e) => {
|
|
87
87
|
type: "switch",
|
88
88
|
default: !1
|
89
89
|
},
|
90
|
-
visibleIf:
|
90
|
+
visibleIf: t
|
91
91
|
},
|
92
92
|
{
|
93
93
|
key: "bars.roundedCorners",
|
94
94
|
control: {
|
95
95
|
type: "slider",
|
96
|
-
default: (
|
96
|
+
default: (i, e, r) => {
|
97
97
|
var n;
|
98
98
|
return (n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding;
|
99
99
|
},
|
100
100
|
min: 0,
|
101
101
|
max: 20,
|
102
102
|
step: 1,
|
103
|
-
extraLabel: (
|
103
|
+
extraLabel: (i, e, r) => {
|
104
104
|
var n, o;
|
105
105
|
if (typeof ((n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding) == "number")
|
106
|
-
return typeof ((o =
|
106
|
+
return typeof ((o = i == null ? void 0 : i.bars) == null ? void 0 : o.roundedCorners) != "number" ? "auto" : "reset";
|
107
107
|
},
|
108
|
-
extraLabelHasClickAction: (
|
108
|
+
extraLabelHasClickAction: (i, e, r) => {
|
109
109
|
var n, o;
|
110
|
-
return !(typeof ((n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding) != "number" || typeof ((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");
|
111
111
|
},
|
112
|
-
extraLabelClickAction: (
|
112
|
+
extraLabelClickAction: (i, e, r) => {
|
113
113
|
var o;
|
114
|
-
const n = { ...
|
114
|
+
const n = { ...i };
|
115
115
|
return (o = n == null ? void 0 : n.bars) == null || delete o.roundedCorners, { value: null, options: n };
|
116
116
|
}
|
117
117
|
}
|
@@ -121,31 +121,31 @@ const t = (l, e) => {
|
|
121
121
|
control: {
|
122
122
|
type: "color-picker",
|
123
123
|
label: "Bar color",
|
124
|
-
default: (
|
124
|
+
default: (i, e, r) => {
|
125
125
|
var n;
|
126
126
|
return (r == null ? void 0 : r.mainColor) ?? ((n = r == null ? void 0 : r.colors) == null ? void 0 : n[0]);
|
127
127
|
},
|
128
|
-
extraLabel: (
|
128
|
+
extraLabel: (i, e, r) => {
|
129
129
|
var o;
|
130
130
|
const n = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
|
131
|
-
if (n &&
|
131
|
+
if (n && i.color !== n)
|
132
132
|
return "reset";
|
133
133
|
},
|
134
|
-
extraLabelHasClickAction: (
|
134
|
+
extraLabelHasClickAction: (i, e, r) => {
|
135
135
|
var o;
|
136
136
|
const n = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
|
137
|
-
return !!(n &&
|
137
|
+
return !!(n && i.color !== n);
|
138
138
|
},
|
139
|
-
extraLabelClickAction: (
|
139
|
+
extraLabelClickAction: (i, e, r) => {
|
140
140
|
var o;
|
141
|
-
const n = { ...
|
141
|
+
const n = { ...i };
|
142
142
|
return n.color = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]), {
|
143
143
|
value: n.color,
|
144
144
|
options: n
|
145
145
|
};
|
146
146
|
}
|
147
147
|
},
|
148
|
-
visibleIf:
|
148
|
+
visibleIf: t
|
149
149
|
}
|
150
150
|
]
|
151
151
|
},
|
@@ -173,7 +173,7 @@ const t = (l, e) => {
|
|
173
173
|
}
|
174
174
|
}
|
175
175
|
],
|
176
|
-
visibleIf:
|
176
|
+
visibleIf: c
|
177
177
|
}
|
178
178
|
];
|
179
179
|
export {
|
@@ -19,11 +19,11 @@
|
|
19
19
|
* */
|
20
20
|
const a = (e, r) => {
|
21
21
|
var o, l;
|
22
|
-
return r && r.length > 0 ? ((l = (o = r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : o.content) == null ? void 0 : l.length) > 0 : !1;
|
23
|
-
},
|
22
|
+
return Array.isArray(r) && (r == null ? void 0 : r.length) > 0 ? ((l = (o = r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : o.content) == null ? void 0 : l.length) > 0 : !1;
|
23
|
+
}, i = (e, r) => {
|
24
24
|
var o, l;
|
25
|
-
return r && r.length > 0 ? !(((l = (o = r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : o.content) == null ? void 0 : l.length) > 0) : !0;
|
26
|
-
},
|
25
|
+
return Array.isArray(r) && (r == null ? void 0 : r.length) > 0 ? !(((l = (o = r == null ? void 0 : r.find((n) => (n == null ? void 0 : n.name) === "color")) == null ? void 0 : o.content) == null ? void 0 : l.length) > 0) : !0;
|
26
|
+
}, c = [
|
27
27
|
{
|
28
28
|
key: "general",
|
29
29
|
type: "group",
|
@@ -72,7 +72,7 @@ const a = (e, r) => {
|
|
72
72
|
label: "Bubble color by category",
|
73
73
|
default: !0
|
74
74
|
},
|
75
|
-
visibleIf:
|
75
|
+
visibleIf: i
|
76
76
|
},
|
77
77
|
{
|
78
78
|
key: "color",
|
@@ -105,7 +105,7 @@ const a = (e, r) => {
|
|
105
105
|
},
|
106
106
|
visibleIf: (e, r) => {
|
107
107
|
var o;
|
108
|
-
return ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.colored) === !1 &&
|
108
|
+
return ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.colored) === !1 && i(e, r);
|
109
109
|
}
|
110
110
|
}
|
111
111
|
]
|
@@ -138,5 +138,5 @@ const a = (e, r) => {
|
|
138
138
|
}
|
139
139
|
];
|
140
140
|
export {
|
141
|
-
|
141
|
+
c as default
|
142
142
|
};
|
@@ -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
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=(n,r)=>{var o,l;return Array.isArray(r)&&(r==null?void 0:r.length)>0?((l=(o=r==null?void 0:r.find(e=>(e==null?void 0:e.name)==="color"))==null?void 0:o.content)==null?void 0:l.length)>0:!1},i=(n,r)=>{var o,l;return Array.isArray(r)&&(r==null?void 0:r.length)>0?!(((l=(o=r==null?void 0:r.find(e=>(e==null?void 0:e.name)==="color"))==null?void 0:o.content)==null?void 0:l.length)>0):!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.bubbleLabels",control:{type:"switch",label:"Show labels",tooltip:"If enough room available",default:!0}},{key:"display.bubbleValues",control:{type:"picker",label:"Show values",tooltip:"If enough room available",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Bubble color by category",default:!0},visibleIf:i},{key:"color",control:{type:"color-picker",label:"Bubble color",default:(n,r,o)=>{var l;return(o==null?void 0:o.mainColor)??((l=o==null?void 0:o.colors)==null?void 0:l[0])},extraLabel:(n,r,o)=>{var e;const l=(o==null?void 0:o.mainColor)??((e=o==null?void 0:o.colors)==null?void 0:e[0]);if(l&&n.color!==l)return"reset"},extraLabelHasClickAction:(n,r,o)=>{var e;const l=(o==null?void 0:o.mainColor)??((e=o==null?void 0:o.colors)==null?void 0:e[0]);return!!(l&&n.color!==l)},extraLabelClickAction:(n,r,o)=>{var e;const l={...n};return l.color=(o==null?void 0:o.mainColor)??((e=o==null?void 0:o.colors)==null?void 0:e[0]),{value:l.color,options:l}}},visibleIf:(n,r)=>{var o;return((o=n==null?void 0:n.categories)==null?void 0:o.colored)===!1&&i(n,r)}}]},{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;
|
@@ -17,14 +17,14 @@
|
|
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
|
21
|
-
var r, n, o,
|
22
|
-
if (e && e.length > 0)
|
23
|
-
return ((n = (r = e == null ? void 0 : e.find((
|
24
|
-
},
|
25
|
-
var r, n, o,
|
26
|
-
if (e && e.length > 0)
|
27
|
-
return ((n = (r = e == null ? void 0 : e.find((
|
20
|
+
const c = (i, e) => {
|
21
|
+
var r, n, o, l;
|
22
|
+
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;
|
26
|
+
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
28
|
}, u = [
|
29
29
|
{
|
30
30
|
key: "general",
|
@@ -38,11 +38,11 @@ const t = (l, e) => {
|
|
38
38
|
default: "grouped",
|
39
39
|
enum: ["grouped", "stacked", "100"]
|
40
40
|
},
|
41
|
-
visibleIf:
|
41
|
+
visibleIf: c
|
42
42
|
},
|
43
43
|
{
|
44
44
|
type: "divider",
|
45
|
-
visibleIf:
|
45
|
+
visibleIf: c
|
46
46
|
},
|
47
47
|
{
|
48
48
|
key: "display.title",
|
@@ -57,7 +57,7 @@ const t = (l, e) => {
|
|
57
57
|
type: "switch",
|
58
58
|
default: !0
|
59
59
|
},
|
60
|
-
visibleIf:
|
60
|
+
visibleIf: c
|
61
61
|
},
|
62
62
|
{
|
63
63
|
key: "display.modeOption",
|
@@ -65,7 +65,7 @@ const t = (l, e) => {
|
|
65
65
|
type: "switch",
|
66
66
|
default: !1
|
67
67
|
},
|
68
|
-
visibleIf:
|
68
|
+
visibleIf: c
|
69
69
|
},
|
70
70
|
{
|
71
71
|
key: "bars.label",
|
@@ -87,31 +87,31 @@ const t = (l, e) => {
|
|
87
87
|
type: "switch",
|
88
88
|
default: !1
|
89
89
|
},
|
90
|
-
visibleIf:
|
90
|
+
visibleIf: t
|
91
91
|
},
|
92
92
|
{
|
93
93
|
key: "bars.roundedCorners",
|
94
94
|
control: {
|
95
95
|
type: "slider",
|
96
|
-
default: (
|
96
|
+
default: (i, e, r) => {
|
97
97
|
var n;
|
98
98
|
return (n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding;
|
99
99
|
},
|
100
100
|
min: 0,
|
101
101
|
max: 20,
|
102
102
|
step: 1,
|
103
|
-
extraLabel: (
|
103
|
+
extraLabel: (i, e, r) => {
|
104
104
|
var n, o;
|
105
105
|
if (typeof ((n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding) == "number")
|
106
|
-
return typeof ((o =
|
106
|
+
return typeof ((o = i == null ? void 0 : i.bars) == null ? void 0 : o.roundedCorners) != "number" ? "auto" : "reset";
|
107
107
|
},
|
108
|
-
extraLabelHasClickAction: (
|
108
|
+
extraLabelHasClickAction: (i, e, r) => {
|
109
109
|
var n, o;
|
110
|
-
return !(typeof ((n = r == null ? void 0 : r.itemSpecific) == null ? void 0 : n.rounding) != "number" || typeof ((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");
|
111
111
|
},
|
112
|
-
extraLabelClickAction: (
|
112
|
+
extraLabelClickAction: (i, e, r) => {
|
113
113
|
var o;
|
114
|
-
const n = { ...
|
114
|
+
const n = { ...i };
|
115
115
|
return (o = n == null ? void 0 : n.bars) == null || delete o.roundedCorners, { value: null, options: n };
|
116
116
|
}
|
117
117
|
}
|
@@ -120,31 +120,31 @@ const t = (l, e) => {
|
|
120
120
|
key: "color",
|
121
121
|
control: {
|
122
122
|
type: "color-picker",
|
123
|
-
default: (
|
123
|
+
default: (i, e, r) => {
|
124
124
|
var n;
|
125
125
|
return (r == null ? void 0 : r.mainColor) ?? ((n = r == null ? void 0 : r.colors) == null ? void 0 : n[0]);
|
126
126
|
},
|
127
|
-
extraLabel: (
|
127
|
+
extraLabel: (i, e, r) => {
|
128
128
|
var o;
|
129
129
|
const n = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
|
130
|
-
if (n &&
|
130
|
+
if (n && i.color !== n)
|
131
131
|
return "reset";
|
132
132
|
},
|
133
|
-
extraLabelHasClickAction: (
|
133
|
+
extraLabelHasClickAction: (i, e, r) => {
|
134
134
|
var o;
|
135
135
|
const n = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]);
|
136
|
-
return !!(n &&
|
136
|
+
return !!(n && i.color !== n);
|
137
137
|
},
|
138
|
-
extraLabelClickAction: (
|
138
|
+
extraLabelClickAction: (i, e, r) => {
|
139
139
|
var o;
|
140
|
-
const n = { ...
|
140
|
+
const n = { ...i };
|
141
141
|
return n.color = (r == null ? void 0 : r.mainColor) ?? ((o = r == null ? void 0 : r.colors) == null ? void 0 : o[0]), {
|
142
142
|
value: n.color,
|
143
143
|
options: n
|
144
144
|
};
|
145
145
|
}
|
146
146
|
},
|
147
|
-
visibleIf:
|
147
|
+
visibleIf: t
|
148
148
|
}
|
149
149
|
]
|
150
150
|
},
|
@@ -172,7 +172,7 @@ const t = (l, e) => {
|
|
172
172
|
}
|
173
173
|
}
|
174
174
|
],
|
175
|
-
visibleIf:
|
175
|
+
visibleIf: c
|
176
176
|
}
|
177
177
|
];
|
178
178
|
export {
|
@@ -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 c=(i,e)=>{var r,n,o,a;if(Array.isArray(e)&&(e==null?void 0:e.length)>0)return((n=(r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)>0||((a=(o=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="measure"))==null?void 0:o.content)==null?void 0:a.length)>1},t=(i,e)=>{var r,n,o,a;if(Array.isArray(e)&&(e==null?void 0:e.length)>0)return((n=(r=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)===0&&((a=(o=e==null?void 0:e.find(l=>(l==null?void 0:l.name)==="measure"))==null?void 0:o.content)==null?void 0:a.length)<=1},u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:c},{type:"divider",visibleIf:c},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:c},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:c},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:t},{key:"bars.roundedCorners",control:{type:"slider",default:(i,e,r)=>{var n;return(n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding},min:0,max:20,step:1,extraLabel:(i,e,r)=>{var n,o;if(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)=="number")return typeof((o=i==null?void 0:i.bars)==null?void 0:o.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(i,e,r)=>{var n,o;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")},extraLabelClickAction:(i,e,r)=>{var o;const n={...i};return(o=n==null?void 0:n.bars)==null||delete o.roundedCorners,{value:null,options:n}}}},{key:"color",control:{type:"color-picker",default:(i,e,r)=>{var n;return(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0])},extraLabel:(i,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&&i.color!==n)return"reset"},extraLabelHasClickAction:(i,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&&i.color!==n)},extraLabelClickAction:(i,e,r)=>{var o;const n={...i};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:t}]},{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:c}];exports.default=u;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../get-css-variable-DLiZYZEi.cjs"),e=require("../luzmo-icons-XsFsTAl3.cjs");require("../index-h9T5DPIm.cjs");require("../index-ByjLd3bT.cjs");const i=require("../property-0L4eB11h.cjs"),F=require("../sized-mixin-BxMraZLS-DEFWqo8f.cjs"),M=require("../localize-r7ALOUy_.cjs"),R=":host{font-family:var(--luzmo-draggable-data-item-level-font-family, var(--luzmo-font-family));color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color))}.draggable-data-item-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-draggable-data-item-level-background-color, var(--draggable-data-item-level-background-color));display:flex;justify-content:space-between;align-items:center;padding:0 var(--luzmo-draggable-data-item-level-horizontal-padding, var(--draggable-data-item-level-horizontal-padding));gap:var(--luzmo-draggable-data-item-level-gap, var(--draggable-data-item-level-gap));border-radius:var(--luzmo-draggable-data-item-level-border-radius, var(--draggable-data-item-level-border-radius));border-width:var(--luzmo-draggable-data-item-level-border-width, var(--draggable-data-item-level-border-width));border-style:var(--luzmo-draggable-data-item-level-border-style, var(--draggable-data-item-level-border-style));border-color:var(--luzmo-draggable-data-item-level-border-color, var(--draggable-data-item-level-border-color));height:var(--luzmo-draggable-data-item-level-height, var(--draggable-data-item-level-height));cursor:move}.draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-background-color-hover, var(--draggable-data-item-level-background-color-hover))}.draggable-data-item-level .data-label{font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([sublevel]) .draggable-data-item-level{height:var(--luzmo-draggable-data-item-level-sublevel-height, var(--draggable-data-item-level-sublevel-height));background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color, var(--draggable-data-item-level-sublevel-background-color));border-color:var(--luzmo-draggable-data-item-level-sublevel-border-color, var(--draggable-data-item-level-sublevel-border-color));margin-inline-start:var(--luzmo-draggable-data-item-level-sublevel-margin-inline-start, var(--draggable-data-item-level-sublevel-margin-inline-start))}:host([sublevel]) .draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-hover, var(--draggable-data-item-level-sublevel-background-color-hover))}:host([sublevel]) .draggable-data-item-level .drag-handle-icon{width:var(--luzmo-draggable-data-item-level-sublevel-drag-handle-width, var(--draggable-data-item-level-sublevel-drag-handle-width));text-align:center}:host([disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-background-color-disabled, var(--draggable-data-item-level-background-color-disabled));color:var(--luzmo-draggable-data-item-level-color-disabled, var(--draggable-data-item-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-disabled, var(--draggable-data-item-level-sublevel-background-color-disabled))}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-draggable-data-item-level-drag-handle-size, var(--luzmo-draggable-data-item-level-drag-handle-size));width:var(--luzmo-draggable-data-item-level-drag-handle-width, var(--luzmo-draggable-data-item-level-drag-handle-width));text-align:center}.data-icon-type{width:var(--luzmo-draggable-data-item-level-data-icon-width, var(--luzmo-draggable-data-item-level-data-icon-width));text-align:center}.data-label{flex-grow:1}.data-description{height:100%;display:flex;align-items:center;background-color:transparent;outline:none;border:none;font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size))}:host([variant=highlight]){--draggable-data-item-level-background-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-border-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-background-color-hover: var( --luzmo-background-color-highlight-hover )}:host{--draggable-data-item-level-height: var(--luzmo-component-height);--draggable-data-item-level-label-font-size: var(--luzmo-font-size);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-width: var(--luzmo-border-width);--draggable-data-item-level-border-style: solid;--draggable-data-item-level-border-color: var(--luzmo-border-color-hover);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-4);--draggable-data-item-level-font-color: var(--luzmo-font-color);--draggable-data-item-level-color-disabled: var(--luzmo-color-disabled);--draggable-data-item-level-background-color-disabled: var( --luzmo-background-color-disabled );--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-s);--luzmo-draggable-data-item-level-drag-handle-width: var( --draggable-data-item-level-icon-type-size );--luzmo-draggable-data-item-level-data-icon-width: calc( var(--draggable-data-item-level-icon-type-size) + var(--luzmo-spacing-3) );--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-s);--draggable-data-item-level-sublevel-border-color: transparent;--draggable-data-item-level-sublevel-background-color: transparent;--draggable-data-item-level-sublevel-background-color-disabled: transparent;--draggable-data-item-level-sublevel-margin-inline-start: calc( var(--draggable-data-item-level-gap) + var(--luzmo-draggable-data-item-level-drag-handle-width) );--luzmo-draggable-data-item-level-sublevel-drag-handle-width: var( --luzmo-draggable-data-item-level-data-icon-width );--draggable-data-item-level-sublevel-background-color-hover: rgba( var(--luzmo-border-color-rgb), .05 )}:host([hide-type-icon]){--draggable-data-item-level-sublevel-margin-inline-start: var( --draggable-data-item-level-gap )}:host([size=s]){--draggable-data-item-level-height: var(--luzmo-component-height-s);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-s);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-s);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-4);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-3);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-xs);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-xs)}:host([size=l]){--draggable-data-item-level-height: var(--luzmo-component-height-l);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-l);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-l);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-l);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size)}:host([size=xl]){--draggable-data-item-level-height: var(--luzmo-component-height-xl);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-xl);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-xl);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-xl);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-l);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-l)}:host{box-sizing:border-box}",d={array:{s:e.D0,m:e.w0,l:e.x0,xl:e.x0},coordinates:{s:e.A0,m:e.Z0,l:e.u0,xl:e.u0},currency:{s:e.V0,m:e.H0,l:e.p0,xl:e.p0},date:{s:e.a0,m:e.o0,l:e.t,xl:e.t},datetime:{s:e.n0,m:e.z0,l:e.l0,xl:e.l0},duration:{s:e.k0,m:e.S0,l:e.f0,xl:e.f0},hierarchy:{s:e.E0,m:e.P0,l:e.U0,xl:e.U0},image:{s:e.O0,m:e.Q0,l:e.N0,xl:e.N0},numeric:{s:e.X0,m:e.Y0,l:e._0,xl:e._0},time:{s:e.M2,m:e.L2,l:e.r2,xl:e.r2},topography:{s:e.W1,m:e.W1,l:e.W1,xl:e.W1},ipaddress:{s:e.x2,m:e.B2,l:e.F2,xl:e.F2}},j=(a,l)=>(l==null?void 0:l.type)==="array"?d.array[a]:(l==null?void 0:l.type)==="image"?d.image[a]:(l==null?void 0:l.type)==="spatial"?(l==null?void 0:l.subtype)==="topography"?d.topography[a]:d.coordinates[a]:(l==null?void 0:l.type)==="numeric"?(l==null?void 0:l.subtype)==="currency"?d.currency[a]:(l==null?void 0:l.subtype)==="duration"?d.duration[a]:d.numeric[a]:(l==null?void 0:l.type)==="datetime"?(l==null?void 0:l.subtype)==="time"?d.time[a]:(l==null?void 0:l.subtype)==="date"?d.date[a]:d.datetime[a]:(l==null?void 0:l.type)==="hierarchy"&&(l==null?void 0:l.subtype)==="ipaddress"?d.ipaddress[a]:d.hierarchy[a],U=a=>{var u,c,h,p,x,k,w,S,C,D,O,P,$,q,E,I,_;const l=a.source.element;let t="";(p=(h=(c=(u=a.source)==null?void 0:u.element)==null?void 0:c.renderRoot)==null?void 0:h.querySelector(".data-label"))!=null&&p.textContent&&(t=(w=(k=(x=a.source)==null?void 0:x.element)==null?void 0:k.renderRoot)==null?void 0:w.querySelector(".data-label").textContent),t||(t=M.localize((C=(S=a==null?void 0:a.source)==null?void 0:S.data)==null?void 0:C.label,(O=(D=a==null?void 0:a.source)==null?void 0:D.element)==null?void 0:O.language),t=t||"Untitled");const v=($=(P=a==null?void 0:a.source)==null?void 0:P.data)==null?void 0:$.type,o=(E=(q=a==null?void 0:a.source)==null?void 0:q.data)==null?void 0:E.subtype,n=j(l.size,{type:v,subtype:o}),r={};[["borderColor","--luzmo-draggable-data-item-level-border-color","--draggable-data-item-level-border-color"],["backgroundColor","--luzmo-draggable-data-item-level-background-color","--draggable-data-item-level-background-color"],["color","--luzmo-draggable-data-item-level-font-color","--draggable-data-item-level-font-color"],["fontSize","--luzmo-draggable-data-item-level-label-font-size","--draggable-data-item-level-label-font-size"],["height","--luzmo-draggable-data-item-level-height","--draggable-data-item-level-height"],["borderRadius","--luzmo-draggable-data-item-level-border-radius","--draggable-data-item-level-border-radius"],["fontFamily","--luzmo-draggable-data-item-level-font-family","--luzmo-font-family"],["horizontalPadding","--luzmo-draggable-data-item-level-horizontal-padding","--draggable-data-item-level-horizontal-padding"],["gap","--luzmo-draggable-data-item-level-gap","--draggable-data-item-level-gap"]].forEach(([z,T,V])=>{const B=f.getCssVariableValue(l,T)||f.getCssVariableValue(l,V);r[z]=B});const m=document.createElement("div"),s=document.createElement("div");if(m.innerHTML=t,!((_=(I=a==null?void 0:a.source)==null?void 0:I.element)!=null&&_.sublevel)){const z=document.createElement("luzmo-icon");z.icon=n,s.append(z)}return s.append(m),Object.assign(s.style,{display:"flex",alignItems:"center",height:r.height,border:`1px solid ${r.borderColor}`,backgroundColor:r.backgroundColor,borderRadius:r.borderRadius,fontFamily:r.fontFamily,fontSize:r.fontSize,color:r.color,padding:`0 ${r.horizontalPadding}`,gap:r.gap}),s};var W=Object.defineProperty,b=(a,l,t,v)=>{for(var o=void 0,n=a.length-1,r;n>=0;n--)(r=a[n])&&(o=r(l,t,o)||o);return o&&W(l,t,o),o};const y=class y extends F.m(i.kt,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={},this.dataItemLevelDropped=l=>{this.dispatchEvent(new CustomEvent("data-item-dropped",{bubbles:!0,composed:!0,cancelable:!0,detail:{data:l}}))}}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDraggable()}firstUpdated(l){this._cleanupDraggable=f.draggable({element:this,canDrag:()=>!this.disabled,onDragStart:()=>{this.style.opacity="0.5"},onDrop:()=>{this.style.opacity="1",this.dataItemLevelDropped(this.data)},getInitialData:()=>{const t={...this.data};return this.label&&this.language&&!this.sublevel&&(t.label={},t.label[this.language]=this.label),this.description&&this.language&&(t.description={},t.description[this.language]=this.description),t},onGenerateDragPreview:t=>{const v=t.nativeSetDragImage;f.setCustomNativeDragPreview({render({container:o}){const n=U(t);o.append(n)},nativeSetDragImage:v})}})}render(){var v,o,n,r,m,s,u,c,h,p;const l=this.label??((o=(v=this.data)==null?void 0:v.label)==null?void 0:o[this.language])??((m=(n=this.data)==null?void 0:n.label)==null?void 0:m[Object.keys((r=this.data)==null?void 0:r.label)[0]])??"Untitled",t=this.description??((u=(s=this.data)==null?void 0:s.description)==null?void 0:u[this.language])??((p=(c=this.data)==null?void 0:c.description)==null?void 0:p[Object.keys((h=this.data)==null?void 0:h.description)[0]]);return i.x`
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../get-css-variable-DLiZYZEi.cjs"),e=require("../luzmo-icons-XsFsTAl3.cjs");require("../index-h9T5DPIm.cjs");require("../index-ByjLd3bT.cjs");const i=require("../property-0L4eB11h.cjs"),F=require("../sized-mixin-BxMraZLS-DEFWqo8f.cjs"),M=require("../localize-r7ALOUy_.cjs"),R=":host{font-family:var(--luzmo-draggable-data-item-level-font-family, var(--luzmo-font-family));color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color))}.draggable-data-item-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-draggable-data-item-level-background-color, var(--draggable-data-item-level-background-color));display:flex;justify-content:space-between;align-items:center;padding:0 var(--luzmo-draggable-data-item-level-horizontal-padding, var(--draggable-data-item-level-horizontal-padding));gap:var(--luzmo-draggable-data-item-level-gap, var(--draggable-data-item-level-gap));border-radius:var(--luzmo-draggable-data-item-level-border-radius, var(--draggable-data-item-level-border-radius));border-width:var(--luzmo-draggable-data-item-level-border-width, var(--draggable-data-item-level-border-width));border-style:var(--luzmo-draggable-data-item-level-border-style, var(--draggable-data-item-level-border-style));border-color:var(--luzmo-draggable-data-item-level-border-color, var(--draggable-data-item-level-border-color));height:var(--luzmo-draggable-data-item-level-height, var(--draggable-data-item-level-height));cursor:move}.draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-background-color-hover, var(--draggable-data-item-level-background-color-hover))}.draggable-data-item-level .data-label{font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([sublevel]) .draggable-data-item-level{height:var(--luzmo-draggable-data-item-level-sublevel-height, var(--draggable-data-item-level-sublevel-height));background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color, var(--draggable-data-item-level-sublevel-background-color));border-color:var(--luzmo-draggable-data-item-level-sublevel-border-color, var(--draggable-data-item-level-sublevel-border-color));margin-inline-start:var(--luzmo-draggable-data-item-level-sublevel-margin-inline-start, var(--draggable-data-item-level-sublevel-margin-inline-start))}:host([sublevel]) .draggable-data-item-level:hover{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-hover, var(--draggable-data-item-level-sublevel-background-color-hover))}:host([sublevel]) .draggable-data-item-level .drag-handle-icon{width:var(--luzmo-draggable-data-item-level-sublevel-drag-handle-width, var(--draggable-data-item-level-sublevel-drag-handle-width));text-align:center}:host([disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-background-color-disabled, var(--draggable-data-item-level-background-color-disabled));color:var(--luzmo-draggable-data-item-level-color-disabled, var(--draggable-data-item-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .draggable-data-item-level{background-color:var(--luzmo-draggable-data-item-level-sublevel-background-color-disabled, var(--draggable-data-item-level-sublevel-background-color-disabled))}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-draggable-data-item-level-drag-handle-size, var(--luzmo-draggable-data-item-level-drag-handle-size));width:var(--luzmo-draggable-data-item-level-drag-handle-width, var(--luzmo-draggable-data-item-level-drag-handle-width));text-align:center}.data-icon-type{width:var(--luzmo-draggable-data-item-level-data-icon-width, var(--luzmo-draggable-data-item-level-data-icon-width));text-align:center}.data-label{flex-grow:1}.data-description{height:100%;display:flex;align-items:center;background-color:transparent;outline:none;border:none;color:var(--luzmo-draggable-data-item-level-font-color, var(--draggable-data-item-level-font-color));font-size:var(--luzmo-draggable-data-item-level-label-font-size, var(--draggable-data-item-level-label-font-size))}:host([variant=highlight]){--draggable-data-item-level-background-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-border-color: var( --luzmo-background-color-highlight );--draggable-data-item-level-background-color-hover: var( --luzmo-background-color-highlight-hover )}:host{--draggable-data-item-level-height: var(--luzmo-component-height);--draggable-data-item-level-label-font-size: var(--luzmo-font-size);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-width: var(--luzmo-border-width);--draggable-data-item-level-border-style: solid;--draggable-data-item-level-border-color: var(--luzmo-border-color-hover);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-4);--draggable-data-item-level-font-color: var(--luzmo-font-color);--draggable-data-item-level-color-disabled: var(--luzmo-color-disabled);--draggable-data-item-level-background-color-disabled: var( --luzmo-background-color-disabled );--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-s);--luzmo-draggable-data-item-level-drag-handle-width: var( --draggable-data-item-level-icon-type-size );--luzmo-draggable-data-item-level-data-icon-width: calc( var(--draggable-data-item-level-icon-type-size) + var(--luzmo-spacing-3) );--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-s);--draggable-data-item-level-sublevel-border-color: transparent;--draggable-data-item-level-sublevel-background-color: transparent;--draggable-data-item-level-sublevel-background-color-disabled: transparent;--draggable-data-item-level-sublevel-margin-inline-start: calc( var(--draggable-data-item-level-gap) + var(--luzmo-draggable-data-item-level-drag-handle-width) );--luzmo-draggable-data-item-level-sublevel-drag-handle-width: var( --luzmo-draggable-data-item-level-data-icon-width );--draggable-data-item-level-sublevel-background-color-hover: rgba( var(--luzmo-border-color-rgb), .05 )}:host([hide-type-icon]){--draggable-data-item-level-sublevel-margin-inline-start: var( --draggable-data-item-level-gap )}:host([size=s]){--draggable-data-item-level-height: var(--luzmo-component-height-s);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-s);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-s);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-4);--draggable-data-item-level-border-radius: var(--luzmo-border-radius);--draggable-data-item-level-gap: var(--luzmo-spacing-3);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-xs);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-xs)}:host([size=l]){--draggable-data-item-level-height: var(--luzmo-component-height-l);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-l);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-l);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-l);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size)}:host([size=xl]){--draggable-data-item-level-height: var(--luzmo-component-height-xl);--draggable-data-item-level-label-font-size: var(--luzmo-font-size-xl);--draggable-data-item-level-icon-type-size: var(--luzmo-font-size-xl);--draggable-data-item-level-horizontal-padding: var(--luzmo-spacing-5);--draggable-data-item-level-border-radius: var(--luzmo-border-radius-xl);--draggable-data-item-level-gap: var(--luzmo-spacing-5);--draggable-data-item-level-sublevel-height: var(--luzmo-component-height-l);--luzmo-draggable-data-item-level-drag-handle-size: var(--luzmo-font-size-l)}:host{box-sizing:border-box}",d={array:{s:e.D0,m:e.w0,l:e.x0,xl:e.x0},coordinates:{s:e.A0,m:e.Z0,l:e.u0,xl:e.u0},currency:{s:e.V0,m:e.H0,l:e.p0,xl:e.p0},date:{s:e.a0,m:e.o0,l:e.t,xl:e.t},datetime:{s:e.n0,m:e.z0,l:e.l0,xl:e.l0},duration:{s:e.k0,m:e.S0,l:e.f0,xl:e.f0},hierarchy:{s:e.E0,m:e.P0,l:e.U0,xl:e.U0},image:{s:e.O0,m:e.Q0,l:e.N0,xl:e.N0},numeric:{s:e.X0,m:e.Y0,l:e._0,xl:e._0},time:{s:e.M2,m:e.L2,l:e.r2,xl:e.r2},topography:{s:e.W1,m:e.W1,l:e.W1,xl:e.W1},ipaddress:{s:e.x2,m:e.B2,l:e.F2,xl:e.F2}},j=(a,l)=>(l==null?void 0:l.type)==="array"?d.array[a]:(l==null?void 0:l.type)==="image"?d.image[a]:(l==null?void 0:l.type)==="spatial"?(l==null?void 0:l.subtype)==="topography"?d.topography[a]:d.coordinates[a]:(l==null?void 0:l.type)==="numeric"?(l==null?void 0:l.subtype)==="currency"?d.currency[a]:(l==null?void 0:l.subtype)==="duration"?d.duration[a]:d.numeric[a]:(l==null?void 0:l.type)==="datetime"?(l==null?void 0:l.subtype)==="time"?d.time[a]:(l==null?void 0:l.subtype)==="date"?d.date[a]:d.datetime[a]:(l==null?void 0:l.type)==="hierarchy"&&(l==null?void 0:l.subtype)==="ipaddress"?d.ipaddress[a]:d.hierarchy[a],U=a=>{var u,c,h,p,x,k,w,S,C,D,O,P,$,q,E,I,_;const l=a.source.element;let t="";(p=(h=(c=(u=a.source)==null?void 0:u.element)==null?void 0:c.renderRoot)==null?void 0:h.querySelector(".data-label"))!=null&&p.textContent&&(t=(w=(k=(x=a.source)==null?void 0:x.element)==null?void 0:k.renderRoot)==null?void 0:w.querySelector(".data-label").textContent),t||(t=M.localize((C=(S=a==null?void 0:a.source)==null?void 0:S.data)==null?void 0:C.label,(O=(D=a==null?void 0:a.source)==null?void 0:D.element)==null?void 0:O.language),t=t||"Untitled");const v=($=(P=a==null?void 0:a.source)==null?void 0:P.data)==null?void 0:$.type,o=(E=(q=a==null?void 0:a.source)==null?void 0:q.data)==null?void 0:E.subtype,n=j(l.size,{type:v,subtype:o}),r={};[["borderColor","--luzmo-draggable-data-item-level-border-color","--draggable-data-item-level-border-color"],["backgroundColor","--luzmo-draggable-data-item-level-background-color","--draggable-data-item-level-background-color"],["color","--luzmo-draggable-data-item-level-font-color","--draggable-data-item-level-font-color"],["fontSize","--luzmo-draggable-data-item-level-label-font-size","--draggable-data-item-level-label-font-size"],["height","--luzmo-draggable-data-item-level-height","--draggable-data-item-level-height"],["borderRadius","--luzmo-draggable-data-item-level-border-radius","--draggable-data-item-level-border-radius"],["fontFamily","--luzmo-draggable-data-item-level-font-family","--luzmo-font-family"],["horizontalPadding","--luzmo-draggable-data-item-level-horizontal-padding","--draggable-data-item-level-horizontal-padding"],["gap","--luzmo-draggable-data-item-level-gap","--draggable-data-item-level-gap"]].forEach(([z,T,V])=>{const B=f.getCssVariableValue(l,T)||f.getCssVariableValue(l,V);r[z]=B});const s=document.createElement("div"),m=document.createElement("div");if(s.innerHTML=t,!((_=(I=a==null?void 0:a.source)==null?void 0:I.element)!=null&&_.sublevel)){const z=document.createElement("luzmo-icon");z.icon=n,m.append(z)}return m.append(s),Object.assign(m.style,{display:"flex",alignItems:"center",height:r.height,border:`1px solid ${r.borderColor}`,backgroundColor:r.backgroundColor,borderRadius:r.borderRadius,fontFamily:r.fontFamily,fontSize:r.fontSize,color:r.color,padding:`0 ${r.horizontalPadding}`,gap:r.gap}),m};var W=Object.defineProperty,b=(a,l,t,v)=>{for(var o=void 0,n=a.length-1,r;n>=0;n--)(r=a[n])&&(o=r(l,t,o)||o);return o&&W(l,t,o),o};const y=class y extends F.m(i.kt,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={},this.dataItemLevelDropped=l=>{this.dispatchEvent(new CustomEvent("data-item-dropped",{bubbles:!0,composed:!0,cancelable:!0,detail:{data:l}}))}}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDraggable()}firstUpdated(l){this._cleanupDraggable=f.draggable({element:this,canDrag:()=>!this.disabled,onDragStart:()=>{this.style.opacity="0.5"},onDrop:()=>{this.style.opacity="1",this.dataItemLevelDropped(this.data)},getInitialData:()=>{const t={...this.data};return this.label&&this.language&&!this.sublevel&&(t.label={},t.label[this.language]=this.label),this.description&&this.language&&(t.description={},t.description[this.language]=this.description),t},onGenerateDragPreview:t=>{const v=t.nativeSetDragImage;f.setCustomNativeDragPreview({render({container:o}){const n=U(t);o.append(n)},nativeSetDragImage:v})}})}render(){var v,o,n,r,s,m,u,c,h,p;const l=this.label??((o=(v=this.data)==null?void 0:v.label)==null?void 0:o[this.language])??((s=(n=this.data)==null?void 0:n.label)==null?void 0:s[Object.keys((r=this.data)==null?void 0:r.label)[0]])??"Untitled",t=this.description??((u=(m=this.data)==null?void 0:m.description)==null?void 0:u[this.language])??((p=(c=this.data)==null?void 0:c.description)==null?void 0:p[Object.keys((h=this.data)==null?void 0:h.description)[0]]);return i.x`
|
21
21
|
<div class="draggable-data-item-level">
|
22
22
|
<div class="drag-handle-icon">
|
23
23
|
${this.sublevel?e.O2(e.b0):e.O2(e.W)}
|
@@ -26,7 +26,7 @@
|
|
26
26
|
${e.O2(j(this.size,this.data))}
|
27
27
|
</div>`}
|
28
28
|
<div class="data-label">${l}</div>
|
29
|
-
${t?i.x`<button class="data-description">
|
29
|
+
${!this.sublevel&&t?i.x`<button class="data-description">
|
30
30
|
${e.O2(e.p1)}
|
31
31
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
32
32
|
${t}
|