@luzmo/analytics-components-kit 1.0.1-alpha.24 → 1.0.1-alpha.26
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/box-plot-options.config-DJz_kt-M.cjs +20 -0
- package/components/{box-plot-options.config-RAhd--7J.js → box-plot-options.config-vlz5qeNq.js} +7 -7
- package/components/{choropleth-map-options.config-DHQu69ib.js → choropleth-map-options.config-CeKXtnYB.js} +2 -2
- package/components/{choropleth-map-options.config-BfiQod-y.cjs → choropleth-map-options.config-CxUOg3pw.cjs} +1 -1
- package/components/{circular-gauge-options.config-B8kWlhsc.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
- package/components/{circular-gauge-options.config-D7FdVupw.js → circular-gauge-options.config-Kd_WK_w-.js} +6 -6
- package/components/{date-filter-options.config-KiuizKhg.js → date-filter-options.config-DBRxlTWy.js} +2 -2
- package/components/{donut-chart-options.config-NPwNtLDW.js → donut-chart-options.config-BulUEiaH.js} +37 -18
- package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
- package/components/draggable-data-item-level/index.cjs +4 -4
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +18 -18
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -1
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -2
- package/components/edit-option-multi-language-field/index.cjs +2 -2
- package/components/edit-option-multi-language-field/index.js +10 -10
- package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -2
- package/components/edit-option-number-field/index.cjs +3 -3
- package/components/edit-option-number-field/index.js +10 -10
- package/components/edit-option-picker/edit-option-picker.d.ts +2 -2
- package/components/edit-option-picker/index.cjs +6 -6
- package/components/edit-option-picker/index.js +10 -10
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +2 -2
- package/components/edit-option-radio-button-group/index.cjs +3 -3
- package/components/edit-option-radio-button-group/index.js +16 -16
- package/components/edit-option-slider/edit-option-slider.d.ts +2 -2
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +29 -29
- package/components/edit-option-switch/edit-option-switch.d.ts +2 -2
- package/components/edit-option-switch/index.cjs +2 -2
- package/components/edit-option-switch/index.js +10 -10
- package/components/{evolution-number-options.config-D-2-hoge.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-FlQ0IH6f.js → evolution-number-options.config-DzkfeoIN.js} +2 -2
- package/components/{funnel-chart-options.config-CrlHKd36.js → funnel-chart-options.config-CIOrejfS.js} +23 -22
- package/components/funnel-chart-options.config-L_gqlFs2.cjs +20 -0
- package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js} +4 -4
- package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.cjs} +1 -1
- package/components/{heat-table-options.config-C0L9ZJHP.js → heat-table-options.config-DSu_18VG.js} +2 -2
- package/components/{heat-table-options.config-QMSy8dYT.cjs → heat-table-options.config-DqPL2hIY.cjs} +1 -1
- package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.cjs} +1 -1
- package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js} +2 -2
- package/components/{index-5yuxnZFm.js → index-Dn7LyFPv.js} +321 -311
- package/components/{index-CpBHyBSr.cjs → index-eEpFkbP8.cjs} +104 -104
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{marker-map-options.config-DlJhJQFX.js → marker-map-options.config-CYoq89Oz.js} +6 -6
- package/components/{marker-map-options.config-DJrnM51M.cjs → marker-map-options.config-_XFv5XWK.cjs} +1 -1
- package/components/{pyramid-chart-options.config-senv4pUq.js → pyramid-chart-options.config-CcVMatYx.js} +1 -1
- package/components/{regular-table-options.config-CAb4esiC.js → regular-table-options.config-BoLZsBry.js} +17 -17
- package/components/regular-table-options.config-DTx3RTnS.cjs +20 -0
- package/components/{route-map-options.config-Dcj-usMY.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
- package/components/{route-map-options.config-BmrbNMnQ.js → route-map-options.config-u0hQqmDh.js} +5 -5
- package/components/{slicer-filter-options.config-DcUkjMck.js → slicer-filter-options.config-3JZZcw5C.js} +4 -4
- package/components/{slicer-filter-options.config-CC5wUFC3.cjs → slicer-filter-options.config-DNI-XevE.cjs} +1 -1
- package/components/{spike-map-options.config-CrccOQVL.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
- package/components/{spike-map-options.config-DwUz-EkV.js → spike-map-options.config-pdbV_vwg.js} +2 -2
- package/components/{symbol-map-options.config-CKd-phmw.js → symbol-map-options.config-Bj-UuL9m.js} +2 -2
- package/components/{symbol-map-options.config-BidCDEaK.cjs → symbol-map-options.config-sdPlHspI.cjs} +1 -1
- package/custom-elements.json +25 -25
- package/item-definitions/box-plot/box-plot-options.config.d.ts +4 -4
- package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +6 -6
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +6 -6
- package/item-definitions/donut-chart/donut-chart-options.config.d.ts +35 -13
- package/item-definitions/evolution-number/evolution-number-options.config.d.ts +10 -10
- package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +24 -8
- package/item-definitions/heat-map/heat-map-options.config.d.ts +4 -4
- package/item-definitions/heat-table/heat-table-options.config.d.ts +8 -8
- package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +4 -4
- package/item-definitions/marker-map/marker-map-options.config.d.ts +6 -6
- package/item-definitions/regular-table/regular-table-options.config.d.ts +6 -6
- package/item-definitions/route-map/route-map-options.config.d.ts +6 -6
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +10 -10
- package/item-definitions/spike-map/spike-map-options.config.d.ts +6 -6
- package/item-definitions/symbol-map/symbol-map-options.config.d.ts +4 -4
- package/package.json +1 -1
- package/components/box-plot-options.config-DNtA8fnn.cjs +0 -20
- package/components/donut-chart-options.config-bqcKuyIu.cjs +0 -20
- package/components/funnel-chart-options.config-hw_GXs4s.cjs +0 -20
- package/components/regular-table-options.config-Ba8dfyVF.cjs +0 -20
@@ -20,7 +20,7 @@
|
|
20
20
|
var Vt = Object.getPrototypeOf;
|
21
21
|
var At = Reflect.get;
|
22
22
|
var Be = (o, e, i) => At(Vt(o), i, e);
|
23
|
-
import { k as
|
23
|
+
import { k as Mt, H as Ot, h as Dt, R as W, x as Lt, n as B } from "../property-B2F7x7Cz.js";
|
24
24
|
import { m as Ht } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
25
25
|
import { L as jt } from "../edit-option-base-qePiIQWd.js";
|
26
26
|
const Pt = () => {
|
@@ -58,10 +58,10 @@ var $;
|
|
58
58
|
(function(o) {
|
59
59
|
o.Range = "range", o.Steps = "steps", o.Positions = "positions", o.Count = "count", o.Values = "values";
|
60
60
|
})($ || ($ = {}));
|
61
|
-
var
|
61
|
+
var O;
|
62
62
|
(function(o) {
|
63
63
|
o[o.None = -1] = "None", o[o.NoValue = 0] = "NoValue", o[o.LargeValue = 1] = "LargeValue", o[o.SmallValue = 2] = "SmallValue";
|
64
|
-
})(
|
64
|
+
})(O || (O = {}));
|
65
65
|
function Ft(o) {
|
66
66
|
return se(o) && typeof o.from == "function";
|
67
67
|
}
|
@@ -93,7 +93,7 @@ function L(o) {
|
|
93
93
|
return typeof o == "number" && !isNaN(o) && isFinite(o);
|
94
94
|
}
|
95
95
|
function Xe(o, e, i) {
|
96
|
-
i > 0 && (
|
96
|
+
i > 0 && (M(o, e), setTimeout(function() {
|
97
97
|
le(o, e);
|
98
98
|
}, i));
|
99
99
|
}
|
@@ -108,7 +108,7 @@ function Bt(o) {
|
|
108
108
|
var e = o.split(".");
|
109
109
|
return e.length > 1 ? e[1].length : 0;
|
110
110
|
}
|
111
|
-
function
|
111
|
+
function M(o, e) {
|
112
112
|
o.classList && !/\s/.test(e) ? o.classList.add(e) : o.className += " " + e;
|
113
113
|
}
|
114
114
|
function le(o, e) {
|
@@ -571,7 +571,7 @@ function wo(o, e, i) {
|
|
571
571
|
var c = Yt(), l = It(), m = l && Xt(), p = o, x, y, h, N, A, T, g = e.spectrum, j = [], S = [], D = [], ce = 0, R = {}, K = !1, G = o.ownerDocument, oe = e.documentElement || G.documentElement, re = G.body, ot = G.dir === "rtl" || e.ort === 1 ? 0 : 100;
|
572
572
|
function F(t, r) {
|
573
573
|
var n = G.createElement("div");
|
574
|
-
return r &&
|
574
|
+
return r && M(n, r), t.appendChild(n), n;
|
575
575
|
}
|
576
576
|
function rt(t, r) {
|
577
577
|
var n = F(t, e.cssClasses.origin), a = F(n, e.cssClasses.handle);
|
@@ -583,7 +583,7 @@ function wo(o, e, i) {
|
|
583
583
|
a.setAttribute(u, s[u]);
|
584
584
|
});
|
585
585
|
}
|
586
|
-
return a.setAttribute("role", "slider"), a.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), r === 0 ?
|
586
|
+
return a.setAttribute("role", "slider"), a.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), r === 0 ? M(a, e.cssClasses.handleLower) : r === e.handles - 1 && M(a, e.cssClasses.handleUpper), n.handle = a, n;
|
587
587
|
}
|
588
588
|
function de(t, r) {
|
589
589
|
return r ? F(t, e.cssClasses.connect) : !1;
|
@@ -594,9 +594,9 @@ function wo(o, e, i) {
|
|
594
594
|
h.push(rt(r, n)), D[n] = n, N.push(de(y, t[n + 1]));
|
595
595
|
}
|
596
596
|
function it(t) {
|
597
|
-
|
597
|
+
M(t, e.cssClasses.target), e.dir === 0 ? M(t, e.cssClasses.ltr) : M(t, e.cssClasses.rtl), e.ort === 0 ? M(t, e.cssClasses.horizontal) : M(t, e.cssClasses.vertical);
|
598
598
|
var r = getComputedStyle(t).direction;
|
599
|
-
return r === "rtl" ?
|
599
|
+
return r === "rtl" ? M(t, e.cssClasses.textDirectionRtl) : M(t, e.cssClasses.textDirectionLtr), F(t, e.cssClasses.base);
|
600
600
|
}
|
601
601
|
function at(t, r) {
|
602
602
|
return !e.tooltips || !e.tooltips[r] ? !1 : F(t.firstChild, e.cssClasses.tooltip);
|
@@ -670,21 +670,21 @@ function wo(o, e, i) {
|
|
670
670
|
for ($e && (U = g.xNumSteps[w]), U || (U = C - P), C === void 0 && (C = P), U = Math.max(U, 1e-7), b = P; b <= C; b = r(b, U)) {
|
671
671
|
for (V = g.toStepping(b), ye = V - v, Te = ye / (t.density || 1), Se = Math.round(Te), _e = ye / Se, E = 1; E <= Se; E += 1)
|
672
672
|
we = v + E * _e, a[we.toFixed(5)] = [g.fromStepping(we), 0];
|
673
|
-
Ue = n.indexOf(b) > -1 ?
|
673
|
+
Ue = n.indexOf(b) > -1 ? O.LargeValue : $e ? O.SmallValue : O.NoValue, !w && f && b !== C && (Ue = 0), b === C && d || (a[V.toFixed(5)] = [b, Ue]), v = V;
|
674
674
|
}
|
675
675
|
}), a;
|
676
676
|
}
|
677
677
|
function ft(t, r, n) {
|
678
|
-
var a, s, u = G.createElement("div"), f = (a = {}, a[
|
679
|
-
|
678
|
+
var a, s, u = G.createElement("div"), f = (a = {}, a[O.None] = "", a[O.NoValue] = e.cssClasses.valueNormal, a[O.LargeValue] = e.cssClasses.valueLarge, a[O.SmallValue] = e.cssClasses.valueSub, a), d = (s = {}, s[O.None] = "", s[O.NoValue] = e.cssClasses.markerNormal, s[O.LargeValue] = e.cssClasses.markerLarge, s[O.SmallValue] = e.cssClasses.markerSub, s), v = [e.cssClasses.valueHorizontal, e.cssClasses.valueVertical], z = [e.cssClasses.markerHorizontal, e.cssClasses.markerVertical];
|
679
|
+
M(u, e.cssClasses.pips), M(u, e.ort === 0 ? e.cssClasses.pipsHorizontal : e.cssClasses.pipsVertical);
|
680
680
|
function w(b, E) {
|
681
681
|
var P = E === e.cssClasses.value, C = P ? v : z, V = P ? f : d;
|
682
682
|
return E + " " + C[e.ort] + " " + V[b];
|
683
683
|
}
|
684
684
|
function U(b, E, P) {
|
685
|
-
if (P = r ? r(E, P) : P, P !==
|
685
|
+
if (P = r ? r(E, P) : P, P !== O.None) {
|
686
686
|
var C = F(u, !1);
|
687
|
-
C.className = w(P, e.cssClasses.marker), C.style[e.style] = b + "%", P >
|
687
|
+
C.className = w(P, e.cssClasses.marker), C.style[e.style] = b + "%", P > O.NoValue && (C = F(u, !1), C.className = w(P, e.cssClasses.value), C.setAttribute("data-value", String(E)), C.style[e.style] = b + "%", C.innerHTML = String(n.to(E)));
|
688
688
|
}
|
689
689
|
}
|
690
690
|
return Object.keys(t).forEach(function(b) {
|
@@ -741,7 +741,7 @@ function wo(o, e, i) {
|
|
741
741
|
}
|
742
742
|
return r = r || We(G), (s || u) && (f = t.clientX + r.x, d = t.clientY + r.y), t.pageOffset = r, t.points = [f, d], t.cursor = s || u, t;
|
743
743
|
}
|
744
|
-
function
|
744
|
+
function Me(t) {
|
745
745
|
var r = t - $t(x, e.ort), n = r * 100 / Pe();
|
746
746
|
return n = Ie(n), e.dir ? 100 - n : n;
|
747
747
|
}
|
@@ -779,7 +779,7 @@ function wo(o, e, i) {
|
|
779
779
|
var n;
|
780
780
|
if (r.handleNumbers.length === 1) {
|
781
781
|
var a = h[r.handleNumbers[0]];
|
782
|
-
n = a.children[0], ce += 1,
|
782
|
+
n = a.children[0], ce += 1, M(n, e.cssClasses.active);
|
783
783
|
}
|
784
784
|
t.stopPropagation();
|
785
785
|
var s = [], u = Y(c.move, oe, gt, {
|
@@ -808,18 +808,18 @@ function wo(o, e, i) {
|
|
808
808
|
doNotReject: !0,
|
809
809
|
handleNumbers: r.handleNumbers
|
810
810
|
});
|
811
|
-
s.push.apply(s, u.concat(f, d)), t.cursor && (re.style.cursor = getComputedStyle(t.target).cursor, h.length > 1 &&
|
811
|
+
s.push.apply(s, u.concat(f, d)), t.cursor && (re.style.cursor = getComputedStyle(t.target).cursor, h.length > 1 && M(p, e.cssClasses.drag), re.addEventListener("selectstart", Ye, !1)), r.handleNumbers.forEach(function(v) {
|
812
812
|
k("start", v);
|
813
813
|
});
|
814
814
|
}
|
815
815
|
}
|
816
816
|
function bt(t) {
|
817
817
|
t.stopPropagation();
|
818
|
-
var r =
|
818
|
+
var r = Me(t.calcPoint), n = mt(r);
|
819
819
|
n !== !1 && (e.events.snap || Xe(p, e.cssClasses.tap, e.animationDuration), X(n, r, !0, !0), xe(), k("slide", n, !0), k("update", n, !0), e.events.snap ? be(t, { handleNumbers: [n] }) : (k("change", n, !0), k("set", n, !0)));
|
820
820
|
}
|
821
821
|
function vt(t) {
|
822
|
-
var r =
|
822
|
+
var r = Me(t.calcPoint), n = g.getStep(r), a = g.fromStepping(n);
|
823
823
|
Object.keys(R).forEach(function(s) {
|
824
824
|
s.split(".")[0] === "hover" && R[s].forEach(function(u) {
|
825
825
|
u.call(ae, a);
|
@@ -844,7 +844,7 @@ function wo(o, e, i) {
|
|
844
844
|
} else b ? E = e.spectrum.xVal[e.spectrum.xVal.length - 1] : E = e.spectrum.xVal[0];
|
845
845
|
return X(r, g.toStepping(E), !0, !0), k("slide", r), k("update", r), k("change", r), k("set", r), !1;
|
846
846
|
}
|
847
|
-
function
|
847
|
+
function Oe(t) {
|
848
848
|
t.fixed || h.forEach(function(r, n) {
|
849
849
|
Y(c.start, r.children[0], be, {
|
850
850
|
handleNumbers: [n]
|
@@ -854,7 +854,7 @@ function wo(o, e, i) {
|
|
854
854
|
}), t.drag && N.forEach(function(r, n) {
|
855
855
|
if (!(r === !1 || n === 0 || n === N.length - 1)) {
|
856
856
|
var a = h[n - 1], s = h[n], u = [r], f = [a, s], d = [n - 1, n];
|
857
|
-
|
857
|
+
M(r, e.cssClasses.draggable), t.fixed && (u.push(a.children[0]), u.push(s.children[0])), t.dragAll && (f = h, d = D), u.forEach(function(v) {
|
858
858
|
Y(c.start, v, be, {
|
859
859
|
handles: f,
|
860
860
|
handleNumbers: d,
|
@@ -1046,7 +1046,7 @@ function wo(o, e, i) {
|
|
1046
1046
|
y.removeChild(y.firstChild);
|
1047
1047
|
for (var t = 0; t <= e.handles; t++)
|
1048
1048
|
N[t] = de(y, e.connect[t]), Z(t);
|
1049
|
-
|
1049
|
+
Oe({ drag: e.events.drag, fixed: !0 });
|
1050
1050
|
}
|
1051
1051
|
function Ct() {
|
1052
1052
|
K = !K, Qe(
|
@@ -1058,7 +1058,7 @@ function wo(o, e, i) {
|
|
1058
1058
|
), Fe();
|
1059
1059
|
}
|
1060
1060
|
function Nt() {
|
1061
|
-
x = it(p), nt(e.connect, x),
|
1061
|
+
x = it(p), nt(e.connect, x), Oe(e.events), ie(e.start), e.pips && he(e.pips), e.tooltips && Ve(), ut();
|
1062
1062
|
}
|
1063
1063
|
Nt();
|
1064
1064
|
var ae = {
|
@@ -1116,7 +1116,7 @@ var Eo = Object.defineProperty, J = (o, e, i, c) => {
|
|
1116
1116
|
(p = o[m]) && (l = p(e, i, l) || l);
|
1117
1117
|
return l && Eo(e, i, l), l;
|
1118
1118
|
};
|
1119
|
-
const tt = class extends Ht(
|
1119
|
+
const tt = class extends Ht(Mt) {
|
1120
1120
|
constructor() {
|
1121
1121
|
super(...arguments), this.value = 0, this.min = 0, this.max = 100, this.step = 100, this.disabled = !1, this.debounce = 200, this._doingUpdate = !1;
|
1122
1122
|
}
|
@@ -1159,7 +1159,7 @@ const tt = class extends Ht(Ot) {
|
|
1159
1159
|
);
|
1160
1160
|
}
|
1161
1161
|
render() {
|
1162
|
-
return
|
1162
|
+
return Ot`<div class="luzmo-slider-container"></div>`;
|
1163
1163
|
}
|
1164
1164
|
};
|
1165
1165
|
tt.styles = [Dt(ko)];
|
@@ -1199,13 +1199,13 @@ const ee = class ee extends jt {
|
|
1199
1199
|
composed: !0,
|
1200
1200
|
cancelable: !0,
|
1201
1201
|
detail: {
|
1202
|
-
value: typeof this.
|
1202
|
+
value: typeof this.toValue == "function" ? this.toValue(e.detail) : e.detail
|
1203
1203
|
}
|
1204
1204
|
})
|
1205
1205
|
);
|
1206
1206
|
}
|
1207
1207
|
renderController() {
|
1208
|
-
const e = typeof this.
|
1208
|
+
const e = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, i = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
1209
1209
|
return Lt`
|
1210
1210
|
<luzmo-slider
|
1211
1211
|
id="luzmo-edit-option-control"
|
@@ -1243,10 +1243,10 @@ q([
|
|
1243
1243
|
], H.prototype, "debounce");
|
1244
1244
|
q([
|
1245
1245
|
B()
|
1246
|
-
], H.prototype, "
|
1246
|
+
], H.prototype, "parseValue");
|
1247
1247
|
q([
|
1248
1248
|
B()
|
1249
|
-
], H.prototype, "
|
1249
|
+
], H.prototype, "toValue");
|
1250
1250
|
customElements.get("luzmo-edit-option-slider") || customElements.define("luzmo-edit-option-slider", H);
|
1251
1251
|
export {
|
1252
1252
|
H as LuzmoEditOptionSlider
|
@@ -4,8 +4,8 @@ export declare class LuzmoEditOptionSwitch extends LuzmoEditOptionBase {
|
|
4
4
|
static styles: (import("lit").CSSResultOrNative | import("lit").CSSResultArray)[];
|
5
5
|
value?: boolean;
|
6
6
|
default?: boolean;
|
7
|
-
|
8
|
-
|
7
|
+
parseValue?: (value?: string | number | any) => boolean;
|
8
|
+
toValue?: (value?: boolean) => string | number | any;
|
9
9
|
private _handleEvent;
|
10
10
|
protected renderController(): import("lit-html").TemplateResult<1>;
|
11
11
|
}
|
@@ -37,7 +37,7 @@
|
|
37
37
|
${super.render()}
|
38
38
|
<span id="switch"></span>
|
39
39
|
<label id="label" for="input"><slot></slot></label>
|
40
|
-
`}firstUpdated(r){super.firstUpdated(r),this.inputElement.setAttribute("role","switch")}updated(r){r.has("checked")&&this.inputElement.setAttribute("aria-checked",this.checked?"true":"false")}}b([t.Rt({type:Boolean,reflect:!0})],d.prototype,"emphasized");b([t.Rt({type:String,reflect:!0})],d.prototype,"thumb");customElements.get("luzmo-switch")||customElements.define("luzmo-switch",d);const y=":host{--luzmo-switch-control-label-spacing: 0px}";var B=Object.defineProperty,h=(o,r,c,w)=>{for(var e=void 0,i=o.length-1,a;i>=0;i--)(a=o[i])&&(e=a(r,c,e)||e);return e&&B(r,c,e),e};const s=class s extends f.LuzmoEditOptionBase{_handleEvent(r){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.
|
40
|
+
`}firstUpdated(r){super.firstUpdated(r),this.inputElement.setAttribute("role","switch")}updated(r){r.has("checked")&&this.inputElement.setAttribute("aria-checked",this.checked?"true":"false")}}b([t.Rt({type:Boolean,reflect:!0})],d.prototype,"emphasized");b([t.Rt({type:String,reflect:!0})],d.prototype,"thumb");customElements.get("luzmo-switch")||customElements.define("luzmo-switch",d);const y=":host{--luzmo-switch-control-label-spacing: 0px}";var B=Object.defineProperty,h=(o,r,c,w)=>{for(var e=void 0,i=o.length-1,a;i>=0;i--)(a=o[i])&&(e=a(r,c,e)||e);return e&&B(r,c,e),e};const s=class s extends f.LuzmoEditOptionBase{_handleEvent(r){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(r.detail):r.detail}}))}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,c=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
|
41
41
|
<luzmo-switch
|
42
42
|
id="luzmo-edit-option-control"
|
43
43
|
thumb="overflow"
|
@@ -47,4 +47,4 @@
|
|
47
47
|
.disabled=${this.disabled}
|
48
48
|
@change=${this._handleEvent}
|
49
49
|
></luzmo-switch>
|
50
|
-
`}};s.styles=[...n(s,s,"styles"),t.r$1(y)];let l=s;h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"value");h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"default");h([t.n()],l.prototype,"
|
50
|
+
`}};s.styles=[...n(s,s,"styles"),t.r$1(y)];let l=s;h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"value");h([t.n({type:Boolean,converter:{fromAttribute:o=>{if(o==="false"||o===!1)return!1;if(o==="true"||o===!0)return!0}}})],l.prototype,"default");h([t.n()],l.prototype,"parseValue");h([t.n()],l.prototype,"toValue");customElements.get("luzmo-edit-option-switch")||customElements.define("luzmo-edit-option-switch",l);exports.LuzmoEditOptionSwitch=l;
|
@@ -61,10 +61,10 @@ class G extends B(p) {
|
|
61
61
|
}
|
62
62
|
}
|
63
63
|
const b = ':host{--switch-focus-indicator-width: var(--luzmo-focus-indicator-width, var(--luzmo-indicator-width));min-block-size:var(--luzmo-switch-height, var(--switch-min-height));--switch-track-height: var(--switch-control-height);max-inline-size:100%;vertical-align:top;align-items:flex-start;display:inline-flex;position:relative}#input{box-sizing:border-box;inline-size:100%;block-size:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0}:host([checked]) #input+#switch:before{transform:translate(calc(var(--luzmo-switch-control-width, var(--switch-control-width)) - 100%))}:host([checked]) #input+#switch:dir(rtl):before,:host([dir=rtl][checked]) #input+#switch:before{transform:translate(calc((var(--luzmo-switch-control-width, var(--switch-control-width)) - 100%) * -1))}:host([disabled]) #input{cursor:not-allowed}#input:focus-visible+#switch:after{margin:calc(var(--luzmo-focus-indicator-gap, var(--switch-focus-indicator-gap)) * -1)}#label{color:var(--highcontrast-switch-label-color-default, var(--luzmo-switch-label-color-default, var(--switch-label-color-default)));margin-inline:var(--luzmo-switch-control-label-spacing, var(--switch-control-label-spacing));font-size:var(--luzmo-switch-font-size, var(--switch-font-size));line-height:var(--luzmo-switch-line-height, 1.3);transition:color calc(var(--luzmo-animation-duration) * 2) ease-in-out;margin-block-start:var(--luzmo-switch-spacing-top-to-label, var(--switch-spacing-top-to-label));margin-block-end:0}#switch{box-sizing:border-box;inline-size:var(--luzmo-switch-control-width, var(--switch-control-width));margin-block:calc(var(--luzmo-switch-height, var(--switch-min-height)) - var(--luzmo-switch-control-height, var(--switch-control-height)) - var(--luzmo-switch-spacing-top-to-control, var(--switch-spacing-top-to-control)));vertical-align:middle;transition:background var(--luzmo-animation-duration) ease-in-out,border var(--luzmo-animation-duration) ease-in-out;block-size:var(--luzmo-switch-track-height, var(--switch-track-height));border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2);flex-grow:0;flex-shrink:0;margin-inline:0;display:inline-block;position:relative;inset-inline:0}#switch:before{box-sizing:border-box;transition:background var(--luzmo-animation-duration) ease-in-out,border var(--luzmo-animation-duration) ease-in-out,transform var(--luzmo-animation-duration) ease-in-out,box-shadow var(--luzmo-animation-duration) ease-in-out;inline-size:var(--luzmo-switch-control-height, var(--switch-control-height));block-size:var(--luzmo-switch-control-height, var(--switch-control-height));box-shadow:var(--luzmo-switch-control-box-shadow, var(--switch-control-box-shadow));border-width:var(--luzmo-switch-border-width, var(--luzmo-switch-border-width, var(--luzmo-border-width)));border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2);border-style:solid}#switch:after,#switch:before{content:"";display:block;position:absolute;inset-block-start:0;inset-inline-start:0}#switch:after{border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2 + var(--luzmo-focus-indicator-gap, var(--switch-focus-indicator-gap)) * 2);transition:opacity var(--luzmo-animation-duration) ease-out,margin var(--luzmo-animation-duration) ease-out;margin:0;inset-block-end:0;inset-inline-end:0}#switch{background-color:var(--highcontrast-switch-background-color, var(--luzmo-switch-background-color, var(--switch-background-color)))}#switch:before{background-color:var(--highcontrast-switch-handle-background-color, var(--luzmo-switch-handle-background-color, var(--switch-handle-background-color)));border-color:var(--highcontrast-switch-handle-border-color-default, var(--luzmo-switch-handle-border-color-default, var(--switch-handle-border-color-default)))}:host(:active) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-down, var(--luzmo-switch-handle-border-color-down, var(--switch-handle-border-color-down)))}:host(:active) #input~#label{color:var(--highcontrast-switch-label-color-down, var(--luzmo-switch-label-color-down, var(--switch-label-color-down)))}:host(:active[checked]) #input:enabled+#switch{background-color:var(--highcontrast-switch-background-color-selected-down, var(--luzmo-switch-background-color-selected-down, var(--switch-background-color-selected-down)))}:host(:active[checked]) #input:enabled+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-down, var(--luzmo-switch-handle-border-color-selected-down, var(--switch-handle-border-color-selected-down)))}#input:focus-visible+#switch:after{box-shadow:0 0 0 var(--luzmo-switch-focus-indicator-width, var(--luzmo-focus-indicator-width, var(--switch-focus-indicator-width))) var(--highcontrast-switch-focus-indicator-color, var(--luzmo-switch-focus-indicator-color, var(--switch-focus-indicator-color)))}#input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-focus, var(--luzmo-switch-handle-border-color-focus, var(--switch-handle-border-color-focus)))}:host([checked]) #input:focus-visible+#switch{background-color:var(--highcontrast-switch-background-color-selected-focus, var(--luzmo-switch-background-color-selected-focus, var(--switch-background-color-selected-focus)))}:host([checked]) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-focus, var(--luzmo-switch-handle-border-color-selected-focus, var(--switch-handle-border-color-selected-focus)))}#input:focus-visible~#label{color:var(--highcontrast-switch-label-color-focus, var(--luzmo-switch-label-color-focus, var(--switch-label-color-focus)))}@media (hover: hover){:host(:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-hover, var(--luzmo-switch-handle-border-color-hover, var(--switch-handle-border-color-hover)));box-shadow:var(--luzmo-switch-control-box-shadow, var(--switch-control-box-shadow, none));background-color:var(--highcontrast-switch-background-color-hover, var(--luzmo-switch-background-color-hover, var(--switch-background-color-hover, var(--luzmo-background-color-hover))))}:host(:hover) #input~#label{color:var(--highcontrast-switch-label-color-hover, var(--luzmo-switch-label-color-hover, var(--switch-label-color-hover)))}:host([checked]:hover) #input:enabled+#switch{background-color:var(--highcontrast-switch-background-color-selected-hover, var(--luzmo-switch-background-color-selected-hover, var(--switch-background-color-selected-hover)))}:host([checked]:hover) #input:enabled+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-hover, var(--luzmo-switch-handle-border-color-selected-hover, var(--switch-handle-border-color-selected-hover)))}:host([disabled]:hover) #input+#switch{background-color:var(--highcontrast-switch-background-color-disabled, var(--luzmo-switch-background-color-disabled, var(--switch-background-color-disabled)))}:host([disabled]:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled]:hover) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}:host([disabled][checked]:hover) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-disabled, var(--luzmo-switch-background-color-selected-disabled, var(--switch-background-color-selected-disabled)))}:host([disabled][checked]:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled][checked]:hover) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}:host(:hover) #input:focus-visible+#switch:after{box-shadow:0 0 0 var(--luzmo-switch-focus-indicator-width, var(--luzmo-focus-indicator-width, var(--switch-focus-indicator-width))) var(--highcontrast-switch-focus-indicator-color, var(--luzmo-switch-focus-indicator-color, var(--switch-focus-indicator-color)))}:host(:hover) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-focus, var(--luzmo-switch-handle-border-color-focus, var(--switch-handle-border-color-focus)))}:host([checked]:hover) #input:focus-visible+#switch{background-color:var(--highcontrast-switch-background-color-selected-focus, var(--luzmo-switch-background-color-selected-focus, var(--switch-background-color-selected-focus)))}:host([checked]:hover) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-focus, var(--luzmo-switch-handle-border-color-selected-focus, var(--switch-handle-border-color-selected-focus)))}:host(:hover) #input:focus-visible~#label{color:var(--highcontrast-switch-label-color-focus, var(--luzmo-switch-label-color-focus, var(--switch-label-color-focus)))}}:host([checked]) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-default, var(--luzmo-switch-background-color-selected-default, var(--switch-background-color-selected-default)))}:host([checked]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-default, var(--luzmo-switch-handle-border-color-selected-default, var(--switch-handle-border-color-selected-default)))}:host([disabled]) #input+#switch{background-color:var(--highcontrast-switch-background-color-disabled, var(--luzmo-switch-background-color-disabled, var(--switch-background-color-disabled)))}:host([disabled]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled][checked]) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-disabled, var(--luzmo-switch-background-color-selected-disabled, var(--switch-background-color-selected-disabled)))}:host([disabled][checked]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled]) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}@media (forced-colors: active){:host{--highcontrast-switch-label-color-default: ButtonText;--highcontrast-switch-label-color-hover: ButtonText;--highcontrast-switch-label-color-down: ButtonText;--highcontrast-switch-label-color-focus: ButtonText;--highcontrast-switch-label-color-disabled: GrayText;--highcontrast-switch-handle-background-color: ButtonFace;--highcontrast-switch-handle-border-color-default: ButtonText;--highcontrast-switch-handle-border-color-hover: Highlight;--highcontrast-switch-handle-border-color-down: Highlight;--highcontrast-switch-handle-border-color-focus: Highlight;--highcontrast-switch-handle-border-color-disabled: Highlight;--highcontrast-switch-handle-border-color-selected-default: Highlight;--highcontrast-switch-handle-border-color-selected-hover: Highlight;--highcontrast-switch-handle-border-color-selected-down: Highlight;--highcontrast-switch-handle-border-color-selected-focus: Highlight;--highcontrast-switch-background-color: ButtonFace;--highcontrast-switch-background-color-selected-default: Highlight;--highcontrast-switch-background-color-selected-hover: Highlight;--highcontrast-switch-background-color-selected-down: Highlight;--highcontrast-switch-background-color-selected-focus: Highlight;--highcontrast-switch-background-color-selected-disabled: Highlight;--highcontrast-switch-focus-indicator-color: ButtonText;forced-color-adjust:none}#input:not(:checked)+#switch{box-shadow:inset 0 0 0 1px ButtonText}}@media (forced-colors: active) and (hover: hover){:host(:hover) #input:not(:checked)+#switch{box-shadow:inset 0 0 0 1px Highlight}:host([disabled][checked]:hover) #input+#switch{background-color:GrayText;box-shadow:inset 0 0 0 1px GrayText}:host([disabled][checked]:hover) #input+#switch:before{background-color:ButtonFace;border-color:GrayText}}@media (forced-colors: active){:host([disabled]) #input:not(:checked)+#switch{background-color:ButtonFace;box-shadow:inset 0 0 0 1px GrayText}:host([disabled]) #input:not(:checked)+#switch:before{background-color:ButtonFace;border-color:GrayText}:host([disabled][checked]) #input+#switch{background-color:GrayText;box-shadow:inset 0 0 0 1px GrayText}:host([disabled][checked]) #input+#switch:before{background-color:ButtonFace;border-color:GrayText}:host([disabled]) #input~#label{color:GrayText}}:host{--switch-handle-border-color-default: var(--luzmo-color-selected);--switch-handle-border-color-hover: var(--luzmo-color-selected-hover);--switch-handle-border-color-down: var(--luzmo-color-selected-down);--switch-handle-border-color-focus: var(--luzmo-color-selected-focus);--switch-handle-border-color-selected-default: var(--luzmo-color-selected-hover);--switch-handle-border-color-selected-hover: var(--luzmo-color-selected-down);--switch-handle-border-color-selected-down: var(--luzmo-color-selected-hard-down);--switch-handle-border-color-selected-focus: var(--luzmo-color-selected-down);--switch-focus-indicator-gap: var(--luzmo-indicator-gap);--switch-label-color-default: var(--luzmo-color-selected-hard);--switch-label-color-hover: var(--luzmo-color-selected-hard-hover);--switch-label-color-down: var(--luzmo-color-selected-hard-down);--switch-label-color-focus: var(--luzmo-color-selected-hard-focus);--switch-label-color-disabled: var(--luzmo-color-disabled);--switch-background-color: var(--luzmo-border-color);--switch-background-color-disabled: var(--luzmo-background-color-disabled);--switch-background-color-selected-disabled: var(--luzmo-color-disabled);--switch-background-color-selected-default: var(--luzmo-color-selected-hover);--switch-background-color-selected-hover: var(--luzmo-color-selected-down);--switch-background-color-selected-down: var(--luzmo-color-selected-hard-down);--switch-background-color-selected-focus: var(--luzmo-color-selected-down);--switch-focus-indicator-width: var(luzmo-indicator-width);--switch-focus-indicator-color: var(--luzmo-primary);--switch-handle-background-color: var(--luzmo-background-color);--switch-handle-border-color-disabled: var(--luzmo-color-disabled);--switch-spacing-top-to-control: calc((var(--switch-min-height) - var(--switch-control-height)) / 2)}:host([disabled]){--switch-label-color-default: var(--luzmo-color-disabled)}:host([emphasized]){--switch-background-color-selected-default: var(--luzmo-primary);--switch-background-color-selected-hover: var(--luzmo-primary-hover);--switch-background-color-selected-down: var(--luzmo-primary-down);--switch-background-color-selected-focus: var(--luzmo-primary-focus);--switch-handle-border-color-selected-default: var(--luzmo-primary);--switch-handle-border-color-selected-hover: var(--luzmo-primary-hover);--switch-handle-border-color-selected-down: var(--luzmo-primary-down);--switch-handle-border-color-selected-focus: var(--luzmo-primary-focus)}:host([size=s]){--switch-min-height: 24px;--switch-control-width: 23px;--switch-control-height: var(--luzmo-font-size-s);--switch-control-label-spacing: var(--luzmo-spacing-3);--switch-spacing-top-to-label: 4px;--switch-font-size: var(--luzmo-font-size-s)}:host{--switch-min-height: 32px;--switch-control-width: 26px;--switch-control-height: var(--luzmo-font-size);--switch-control-label-spacing: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--switch-spacing-top-to-label: 6px;--switch-font-size: var(--luzmo-font-size)}:host([size=l]){--switch-min-height: 40px;--switch-control-width: 28px;--switch-control-height: var(--luzmo-font-size-l);--switch-control-label-spacing: var(--luzmo-spacing-4);--switch-spacing-top-to-label: 9px;--switch-font-size: var(--luzmo-font-size-l)}:host([size=xl]){--switch-min-height: 48px;--switch-control-width: 32px;--switch-control-height: var(--luzmo-font-size-xl);--switch-control-label-spacing: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--switch-spacing-top-to-label: 12px;--switch-font-size: var(--luzmo-font-size-xl)}:host([disabled]){pointer-events:none}:host([thumb=overflow]){--luzmo-switch-border-width: 0px;--switch-control-width: calc(var(--switch-control-height) * 2);--switch-control-box-shadow: 0 .125rem .25rem rgba(var(--luzmo-border-color-rgb), .2), inset 0 0 0 .0625rem rgba(var(--luzmo-border-color-rgb), .2)}:host([thumb=overflow]) #switch{margin-top:calc((var(--luzmo-switch-min-height, var(--switch-min-height)) - var(--luzmo-switch-track-height, var(--switch-track-height))) / 2)}:host([thumb=overflow]) #switch:before{inset-block-start:calc(-1 * (var(--luzmo-switch-control-height, var(--switch-control-height)) - var(--luzmo-switch-track-height, var(--switch-track-height))) / 2)}:host([thumb=overflow][size=s]){--switch-track-height: 10px;--switch-control-height: 16px;--switch-focus-indicator-gap: 5px}:host([thumb=overflow]){--switch-track-height: 10px;--switch-control-height: 18px;--switch-focus-indicator-gap: 6px}:host([thumb=overflow][size=l]){--switch-track-height: 12px;--switch-control-height: 20px;--switch-focus-indicator-gap: 7px}:host([thumb=overflow][size=xl]){--switch-track-height: 12px;--switch-control-height: 22px;--switch-focus-indicator-gap: 8px}';
|
64
|
-
var
|
64
|
+
var C = Object.defineProperty, g = (o, r, l, w) => {
|
65
65
|
for (var e = void 0, t = o.length - 1, i; t >= 0; t--)
|
66
66
|
(i = o[t]) && (e = i(r, l, e) || e);
|
67
|
-
return e &&
|
67
|
+
return e && C(r, l, e), e;
|
68
68
|
};
|
69
69
|
class d extends H(G) {
|
70
70
|
constructor() {
|
@@ -97,11 +97,11 @@ g([
|
|
97
97
|
m({ type: String, reflect: !0 })
|
98
98
|
], d.prototype, "thumb");
|
99
99
|
customElements.get("luzmo-switch") || customElements.define("luzmo-switch", d);
|
100
|
-
const
|
101
|
-
var
|
100
|
+
const V = ":host{--luzmo-switch-control-label-spacing: 0px}";
|
101
|
+
var A = Object.defineProperty, h = (o, r, l, w) => {
|
102
102
|
for (var e = void 0, t = o.length - 1, i; t >= 0; t--)
|
103
103
|
(i = o[t]) && (e = i(r, l, e) || e);
|
104
|
-
return e &&
|
104
|
+
return e && A(r, l, e), e;
|
105
105
|
};
|
106
106
|
const a = class a extends T {
|
107
107
|
_handleEvent(r) {
|
@@ -111,13 +111,13 @@ const a = class a extends T {
|
|
111
111
|
composed: !0,
|
112
112
|
cancelable: !0,
|
113
113
|
detail: {
|
114
|
-
value: typeof this.
|
114
|
+
value: typeof this.toValue == "function" ? this.toValue(r.detail) : r.detail
|
115
115
|
}
|
116
116
|
})
|
117
117
|
);
|
118
118
|
}
|
119
119
|
renderController() {
|
120
|
-
const r = typeof this.
|
120
|
+
const r = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, l = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
121
121
|
return y`
|
122
122
|
<luzmo-switch
|
123
123
|
id="luzmo-edit-option-control"
|
@@ -131,7 +131,7 @@ const a = class a extends T {
|
|
131
131
|
`;
|
132
132
|
}
|
133
133
|
};
|
134
|
-
a.styles = [...n(a, a, "styles"), k(
|
134
|
+
a.styles = [...n(a, a, "styles"), k(V)];
|
135
135
|
let c = a;
|
136
136
|
h([
|
137
137
|
s({
|
@@ -161,10 +161,10 @@ h([
|
|
161
161
|
], c.prototype, "default");
|
162
162
|
h([
|
163
163
|
s()
|
164
|
-
], c.prototype, "
|
164
|
+
], c.prototype, "parseValue");
|
165
165
|
h([
|
166
166
|
s()
|
167
|
-
], c.prototype, "
|
167
|
+
], c.prototype, "toValue");
|
168
168
|
customElements.get("luzmo-edit-option-switch") || customElements.define("luzmo-edit-option-switch", c);
|
169
169
|
export {
|
170
170
|
c as LuzmoEditOptionSwitch
|
@@ -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=require("./helpers-DXQwEH1P.cjs"),t=[{key:"general",type:"group",label:"General",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"showSubtitle",control:{type:"switch",label:"Subtitle",default:!1}},{key:"horizontalAlignment",control:{type:"action-button-group",label:"Horizontal alignment",default:["center"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}},{key:"verticalAlignment",control:{type:"action-button-group",label:"Vertical alignment",default:["middle"],values:{top:{iconName:"alignTop",label:"align top"},middle:{iconName:"alignMiddle",label:"align middle"},bottom:{iconName:"alignBottom",label:"align bottom"}},selects:"single"}},{key:"color",control:{type:"color-picker",label:"Number color",default:({theme:e})=>a.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>a.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelClickAction(e,l,"color")}}]},{key:"fontSizes",type:"group",label:"Font sizes",open:!1,children:[{key:"numberFontSize",control:{type:"number-field",label:"Number font size",default:86,min:10,max:200,step:1,unit:"px"}},{key:"titleFontSize",control:{type:"number-field",label:"Title font size",default:15,min:10,max:100,step:1,unit:"px"}}]},{key:"evolution",type:"group",open:!1,children:[{key:"evolutionGraphDisplay",control:{type:"picker",label:"Show evolution graph",default:"background",enum:["none","background","fixedbottom","belownumber"]}},{key:"evolutionGraphType",control:{type:"picker",label:"Graph type",default:"area",enum:["area","line"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"evolutionGraphInterpolation",control:{type:"picker",label:"Graph interpolation",default:"linear",enum:["linear","step-before","step-after","monotone"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"missingValue.type",control:{type:"picker",label:"Fill missing days",default:"no",enum:["no","break","manual"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"missingValue.value",control:{type:"number-field",label:"Value",default:0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.missingValue)==null?void 0:l.type)==="manual"}},{key:"evolutionGraphOpacity",control:{type:"slider",label:"Graph opacity",default:35,min:0,max:100,step:1},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"evolutionColor",control:{type:"switch",label:"Lower is better",default:"normal",
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./helpers-DXQwEH1P.cjs"),t=[{key:"general",type:"group",label:"General",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"showSubtitle",control:{type:"switch",label:"Subtitle",default:!1}},{key:"horizontalAlignment",control:{type:"action-button-group",label:"Horizontal alignment",default:["center"],values:{left:{iconName:"alignLeft",label:"align left"},center:{iconName:"alignCenter",label:"align center"},right:{iconName:"alignRight",label:"align right"}},selects:"single"}},{key:"verticalAlignment",control:{type:"action-button-group",label:"Vertical alignment",default:["middle"],values:{top:{iconName:"alignTop",label:"align top"},middle:{iconName:"alignMiddle",label:"align middle"},bottom:{iconName:"alignBottom",label:"align bottom"}},selects:"single"}},{key:"color",control:{type:"color-picker",label:"Number color",default:({theme:e})=>a.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>a.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>a.getThemeMainColorExtraLabelClickAction(e,l,"color")}}]},{key:"fontSizes",type:"group",label:"Font sizes",open:!1,children:[{key:"numberFontSize",control:{type:"number-field",label:"Number font size",default:86,min:10,max:200,step:1,unit:"px"}},{key:"titleFontSize",control:{type:"number-field",label:"Title font size",default:15,min:10,max:100,step:1,unit:"px"}}]},{key:"evolution",type:"group",open:!1,children:[{key:"evolutionGraphDisplay",control:{type:"picker",label:"Show evolution graph",default:"background",enum:["none","background","fixedbottom","belownumber"]}},{key:"evolutionGraphType",control:{type:"picker",label:"Graph type",default:"area",enum:["area","line"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"evolutionGraphInterpolation",control:{type:"picker",label:"Graph interpolation",default:"linear",enum:["linear","step-before","step-after","monotone"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"missingValue.type",control:{type:"picker",label:"Fill missing days",default:"no",enum:["no","break","manual"]},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"missingValue.value",control:{type:"number-field",label:"Value",default:0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.missingValue)==null?void 0:l.type)==="manual"}},{key:"evolutionGraphOpacity",control:{type:"slider",label:"Graph opacity",default:35,min:0,max:100,step:1},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"},{key:"evolutionColor",control:{type:"switch",label:"Lower is better",default:"normal",parseValue:e=>e==="inverse",toValue:e=>e?"inverse":"normal"},visibleIf:({options:e})=>(e==null?void 0:e.evolutionGraphDisplay)!=="none"}]}];exports.default=t;
|
@@ -188,8 +188,8 @@ const r = [
|
|
188
188
|
type: "switch",
|
189
189
|
label: "Lower is better",
|
190
190
|
default: "normal",
|
191
|
-
|
192
|
-
|
191
|
+
parseValue: (e) => e === "inverse",
|
192
|
+
toValue: (e) => e ? "inverse" : "normal"
|
193
193
|
},
|
194
194
|
visibleIf: ({ options: e }) => (e == null ? void 0 : e.evolutionGraphDisplay) !== "none"
|
195
195
|
}
|
@@ -36,13 +36,20 @@ const t = [
|
|
36
36
|
control: {
|
37
37
|
type: "switch",
|
38
38
|
label: "Legend",
|
39
|
-
default: !0
|
39
|
+
default: !0,
|
40
|
+
calculateValue: ({ options: e }) => {
|
41
|
+
var l, a;
|
42
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1 || ((a = e == null ? void 0 : e.display) == null ? void 0 : a.categoryLabels) === !0;
|
43
|
+
},
|
44
|
+
toOptions: ({ options: e, value: l }) => ({
|
45
|
+
...e,
|
46
|
+
display: {
|
47
|
+
...e.display,
|
48
|
+
legend: l,
|
49
|
+
categoryLabels: !1
|
50
|
+
}
|
51
|
+
})
|
40
52
|
}
|
41
|
-
/* ,
|
42
|
-
sideEffect: ({ options }) => {
|
43
|
-
console.log(options, 'OO');
|
44
|
-
// TODO legend should be false if categoryLabels is true
|
45
|
-
}*/
|
46
53
|
},
|
47
54
|
{
|
48
55
|
key: "display.categoryLabels",
|
@@ -51,26 +58,20 @@ const t = [
|
|
51
58
|
label: "Display legend as",
|
52
59
|
default: "labels",
|
53
60
|
enum: ["list", "labels"],
|
54
|
-
|
55
|
-
|
61
|
+
parseValue: (e) => e ? "labels" : "list",
|
62
|
+
toOptions: ({ options: e, value: l }) => ({
|
63
|
+
...e,
|
64
|
+
display: {
|
65
|
+
...e.display,
|
66
|
+
categoryLabels: l === "labels",
|
67
|
+
legend: l !== "labels"
|
68
|
+
}
|
69
|
+
})
|
56
70
|
},
|
57
71
|
visibleIf: ({ options: e }) => {
|
58
72
|
var l, a;
|
59
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1 || ((a = e == null ? void 0 : e.display) == null ? void 0 : a.categoryLabels) ===
|
73
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1 || ((a = e == null ? void 0 : e.display) == null ? void 0 : a.categoryLabels) === !0;
|
60
74
|
}
|
61
|
-
/* ,
|
62
|
-
sideEffect: ({ options }: any) => {
|
63
|
-
if (options?.display?.categoryLabels === 'labels') {
|
64
|
-
options = {
|
65
|
-
...options,
|
66
|
-
display: {
|
67
|
-
...options.display,
|
68
|
-
legend: false
|
69
|
-
}
|
70
|
-
};
|
71
|
-
}
|
72
|
-
return options;
|
73
|
-
}*/
|
74
75
|
},
|
75
76
|
{
|
76
77
|
key: "display.values",
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2025 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{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,calculateValue:({options:e})=>{var l,a;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((a=e==null?void 0:e.display)==null?void 0:a.categoryLabels)===!0},toOptions:({options:e,value:l})=>({...e,display:{...e.display,legend:l,categoryLabels:!1}})}},{key:"display.categoryLabels",control:{type:"radio-button-group",label:"Display legend as",default:"labels",enum:["list","labels"],parseValue:e=>e?"labels":"list",toOptions:({options:e,value:l})=>({...e,display:{...e.display,categoryLabels:l==="labels",legend:l!=="labels"}})},visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((a=e==null?void 0:e.display)==null?void 0:a.categoryLabels)===!0}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}},{key:"funnel.absValue",control:{type:"switch",label:"Show absolute values",default:!0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.values)===!0}},{key:"funnel.perc",control:{type:"picker",label:"Percentage",default:"hide",enum:["hide","ofMax","ofTotal"]},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.values)===!0}}]},{key:"funnel",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",label:"Mode",default:"dynamicWidth",enum:["dynamicWidth","dynamicHeight","regular"]}},{key:"funnel.rectangle",control:{type:"switch",label:"Rectangular",default:!1}},{key:"sort.by",control:{type:"picker",label:"Order",default:"measure",enum:["measure","category"]}},{key:"sort.direction",control:{type:"picker",label:"Direction",default:"desc",enum:["asc","desc"]}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"right",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.display)==null?void 0:l.legend)===!0&&((a=e.display)==null?void 0:a.categoryLabels)==="false"}}];exports.default=t;
|
package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js}
RENAMED
@@ -18,7 +18,7 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { m as t } from "./index-t45_zv93.js";
|
21
|
-
const
|
21
|
+
const o = [
|
22
22
|
{
|
23
23
|
key: "general",
|
24
24
|
type: "group",
|
@@ -79,8 +79,8 @@ const l = [
|
|
79
79
|
"Voyager",
|
80
80
|
"No Tiles"
|
81
81
|
],
|
82
|
-
|
83
|
-
|
82
|
+
parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
|
83
|
+
toValue: (e) => t[e] ?? {}
|
84
84
|
}
|
85
85
|
}
|
86
86
|
]
|
@@ -154,5 +154,5 @@ const l = [
|
|
154
154
|
}
|
155
155
|
];
|
156
156
|
export {
|
157
|
-
|
157
|
+
o as default
|
158
158
|
};
|
package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.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 t=require("./index-DhDgy1sp.cjs"),
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DhDgy1sp.cjs"),l=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>t.mapVectorTileProviders[e]??{}}}]},{key:"heat",type:"group",open:!0,children:[{key:"enabled.adaptOnZoom",control:{type:"switch",label:"Adapt on zoom",tooltip:"If turned off, density is calculated based on map surface",default:!0}},{key:"heatRadius",control:{type:"slider",label:"Radius",default:20,min:1,max:50,step:1}},{key:"intensity",control:{type:"slider",label:"Intensity",tooltip:"Multiplier for the density, multiplies by 1 on minimum (default)",default:1,min:1,max:100,step:1}}]},{key:"heatColors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}}]}];exports.default=l;
|
package/components/{heat-table-options.config-C0L9ZJHP.js → heat-table-options.config-DSu_18VG.js}
RENAMED
@@ -135,8 +135,8 @@ const s = [
|
|
135
135
|
label: "Number of classes",
|
136
136
|
default: "7",
|
137
137
|
enum: ["3", "4", "5", "6", "7", "8", "9"],
|
138
|
-
|
139
|
-
|
138
|
+
parseValue: (e) => (e == null ? void 0 : e.toString()) ?? "7",
|
139
|
+
toValue: (e) => Number.parseInt(e, 10) ?? 7
|
140
140
|
}
|
141
141
|
}
|
142
142
|
]
|
package/components/{heat-table-options.config-QMSy8dYT.cjs → heat-table-options.config-DqPL2hIY.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 i=require("./helpers-DXQwEH1P.cjs"),r=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}}]},{key:"heatTable",type:"group",label:"Heat table",open:!0,children:[{key:"heattable.opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"heattable.rounding",control:{type:"slider",label:"Rounding",default:({theme:e})=>{var l;return(l=e==null?void 0:e.itemSpecific)==null?void 0:l.rounding},min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var a,t;if(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.rounding)=="number")return typeof((t=e==null?void 0:e.heattable)==null?void 0:t.rounding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var a,t;return!(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.rounding)!="number"||typeof((t=e==null?void 0:e.heattable)==null?void 0:t.rounding)!="number")},extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,rounding:void 0}};return delete l.heattable.rounding,{value:null,options:l}}}},{key:"heattable.spacing",control:{type:"slider",label:"Spacing",default:({theme:e})=>{var l;return(l=e==null?void 0:e.itemSpecific)==null?void 0:l.padding},min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var a,t;if(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.padding)=="number")return typeof((t=e==null?void 0:e.heattable)==null?void 0:t.spacing)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var a,t;return!(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.padding)!="number"||typeof((t=e==null?void 0:e.heattable)==null?void 0:t.spacing)!="number")},extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,spacing:void 0}};return delete l.heattable.spacing,{value:null,options:l}}}},{key:"classification",control:{type:"picker",label:"Method",default:"quantile",enum:["interval","quantile","continuous"]}},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"7",enum:["3","4","5","6","7","8","9"],
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./helpers-DXQwEH1P.cjs"),r=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}}]},{key:"heatTable",type:"group",label:"Heat table",open:!0,children:[{key:"heattable.opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"heattable.rounding",control:{type:"slider",label:"Rounding",default:({theme:e})=>{var l;return(l=e==null?void 0:e.itemSpecific)==null?void 0:l.rounding},min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var a,t;if(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.rounding)=="number")return typeof((t=e==null?void 0:e.heattable)==null?void 0:t.rounding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var a,t;return!(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.rounding)!="number"||typeof((t=e==null?void 0:e.heattable)==null?void 0:t.rounding)!="number")},extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,rounding:void 0}};return delete l.heattable.rounding,{value:null,options:l}}}},{key:"heattable.spacing",control:{type:"slider",label:"Spacing",default:({theme:e})=>{var l;return(l=e==null?void 0:e.itemSpecific)==null?void 0:l.padding},min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var a,t;if(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.padding)=="number")return typeof((t=e==null?void 0:e.heattable)==null?void 0:t.spacing)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var a,t;return!(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.padding)!="number"||typeof((t=e==null?void 0:e.heattable)==null?void 0:t.spacing)!="number")},extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,spacing:void 0}};return delete l.heattable.spacing,{value:null,options:l}}}},{key:"classification",control:{type:"picker",label:"Method",default:"quantile",enum:["interval","quantile","continuous"]}},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"7",enum:["3","4","5","6","7","8","9"],parseValue:e=>(e==null?void 0:e.toString())??"7",toValue:e=>Number.parseInt(e,10)??7}}]},{key:"axes",type:"group",open:!1,children:[{key:"sort.x.order",control:{type:"picker",label:"X-axis order",default:"asc",enum:["asc","desc"]}},{key:"axis.x.color",control:{type:"color-picker",label:"X-axis color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>i.getThemeMainColorResetLabel(e,l,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelHasClickAction(e,l,"axis.x.color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelClickAction(e,l,"axis.x.color")}},{key:"xAxisLabels",type:"group",label:"X-axis label",collapsible:!0,open:!1,children:[{key:"axislabels.x.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.x.position",control:{type:"picker",label:"Position",default:"center",enum:["left","center","right"]},visibleIf:({options:e})=>{var l,a;return((a=(l=e==null?void 0:e.axislabels)==null?void 0:l.x)==null?void 0:a.enabled)===!0}}]},{key:"xAxisTicks",type:"group",label:"X-axis ticks",collapsible:!0,open:!1,children:[{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]},{type:"divider"},{key:"sort.y.order",control:{type:"picker",label:"Y-axis order",default:"asc",enum:["asc","desc"]}},{key:"axis.y.color",control:{type:"color-picker",label:"Y-axis color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>i.getThemeMainColorResetLabel(e,l,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelHasClickAction(e,l,"axis.y.color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelClickAction(e,l,"axis.y.color")}},{key:"yAxisLabels",type:"group",label:"Y-axis label",collapsible:!0,open:!1,children:[{key:"axislabels.y.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.y.position",control:{type:"picker",label:"Position",default:"top",enum:["top","middle","bottom"]},visibleIf:({options:e})=>{var l,a;return((a=(l=e==null?void 0:e.axislabels)==null?void 0:l.y)==null?void 0:a.enabled)===!0}}]},{key:"yAxisTicks",type:"group",label:"Y-axis ticks",collapsible:!0,open:!1,children:[{key:"axis.y.ticks",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]}]}];exports.default=r;
|
package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.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 l=require("./index-DhDgy1sp.cjs"),a=[{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}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-DhDgy1sp.cjs"),a=[{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}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>l.mapVectorTileProviders[e]??{}}}]},{key:"classification",type:"group",open:!0,children:[{key:"radius",control:{type:"slider",label:"Radius",default:16,min:4,max:100,step:1}},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:5,enum:[3,4,5,6,7,8,9]}},{key:"aggregationType",control:{type:"picker",label:"Hexbin aggregation",default:"count",enum:["count","sum","mean","median","minimum","maximum"]}},{key:"classification",control:{type:"picker",label:"Color Method",default:"interval",enum:["interval","quantile"]}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.85,min:0,max:1,step:.01}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.type",control:{type:"picker",label:"Type",default:"bar",enum:["bar","list"]},visibleIf:({options:e})=>{var t;return((t=e==null?void 0:e.display)==null?void 0:t.legend)!==!1}},{key:"legend.size",control:{type:"action-button-group",label:"Size",default:["M"],values:{S:{buttonText:"S",label:"Small"},M:{buttonText:"M",label:"Medium"},L:{buttonText:"L",label:"Large"}},selects:"single"},visibleIf:({options:e})=>{var t;return((t=e==null?void 0:e.display)==null?void 0:t.legend)!==!1}},{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>{var t;return((t=e==null?void 0:e.display)==null?void 0:t.legend)!==!1}}]}];exports.default=a;
|
package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js}
RENAMED
@@ -87,8 +87,8 @@ const i = [
|
|
87
87
|
"Voyager",
|
88
88
|
"No Tiles"
|
89
89
|
],
|
90
|
-
|
91
|
-
|
90
|
+
parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
|
91
|
+
toValue: (e) => l[e] ?? {}
|
92
92
|
}
|
93
93
|
}
|
94
94
|
]
|