dsp-semactic 0.6.11 → 0.6.13
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/README.md +5 -5
- package/dist/dsp-semactic.css +1 -1
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +364 -364
- package/package.json +48 -48
package/dist/index.es.js
CHANGED
|
@@ -9,7 +9,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9
9
|
}, Vs = ["onClick", "onMouseenter"], Ds = { class: "dss-legend-text" }, Rs = ["onClick", "onMouseenter"], Is = { class: "dss-legend-text" }, Ns = ["title"], Fs = ["src"], Ps = { class: "dss-chart-area-wrapper" }, Bs = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "dss-chart-z-axis-label"
|
|
12
|
-
}, Os = ["width", "height", "data-smooth", "data-animated"], zs = { id: "chart-clip" }, Ws = ["
|
|
12
|
+
}, Os = ["width", "height", "data-smooth", "data-animated"], zs = { id: "chart-clip" }, Ws = ["y", "width", "height"], Zs = ["id"], qs = ["d"], Us = ["id"], Xs = ["d"], Ys = { key: 0 }, js = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "dss-grid-lines",
|
|
15
15
|
"clip-path": "url(#chart-clip)"
|
|
@@ -129,7 +129,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
129
129
|
options: {
|
|
130
130
|
type: Object,
|
|
131
131
|
default: () => ({}),
|
|
132
|
-
validator: (
|
|
132
|
+
validator: (P) => typeof P == "object" && P !== null
|
|
133
133
|
},
|
|
134
134
|
innerSize: {
|
|
135
135
|
type: Number,
|
|
@@ -137,10 +137,10 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
emits: ["add-marker", "update-marker", "delete-marker"],
|
|
140
|
-
setup(
|
|
141
|
-
const { t: W, locale: U } = ns(), De =
|
|
140
|
+
setup(P, { emit: $e }) {
|
|
141
|
+
const { t: W, locale: U } = ns(), De = $e, x = H(null), Oe = H(null), fe = H(null), Qe = H(0), h = H(0);
|
|
142
142
|
let be = null, Ve = null;
|
|
143
|
-
const
|
|
143
|
+
const Ee = 20, le = y(() => {
|
|
144
144
|
if (!x.value || !Oe.value) return 0;
|
|
145
145
|
try {
|
|
146
146
|
const e = x.value.getBoundingClientRect();
|
|
@@ -148,7 +148,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
148
148
|
} catch {
|
|
149
149
|
return 0;
|
|
150
150
|
}
|
|
151
|
-
}), I =
|
|
151
|
+
}), I = P, ze = {
|
|
152
152
|
chart: {
|
|
153
153
|
type: "line",
|
|
154
154
|
width: 800,
|
|
@@ -330,7 +330,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
330
330
|
const u = I.series.filter((g, C) => !Vt.value.has(C)).length;
|
|
331
331
|
if (Ne.value === "top" || Ne.value === "bottom") {
|
|
332
332
|
if (nn.value === "horizontal") {
|
|
333
|
-
const C = Math.floor(
|
|
333
|
+
const C = Math.floor(He.value / 100);
|
|
334
334
|
o = Math.ceil(u / C) * 25 + 10;
|
|
335
335
|
} else
|
|
336
336
|
o = u * 25 + 10;
|
|
@@ -349,10 +349,10 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
349
349
|
}), Mt = y(() => {
|
|
350
350
|
const e = X.value;
|
|
351
351
|
return e && e.chart && e.chart.height === "auto";
|
|
352
|
-
}),
|
|
352
|
+
}), He = y(() => {
|
|
353
353
|
const e = X.value;
|
|
354
354
|
return kt.value ? Qe.value || 800 : e && e.chart && typeof e.chart.width == "number" ? e.chart.width : 800;
|
|
355
|
-
}), Kt = H(
|
|
355
|
+
}), Kt = H(Ee), Nt = y(() => {
|
|
356
356
|
if (Mt.value) {
|
|
357
357
|
const e = Nt.value;
|
|
358
358
|
return e ?? Math.max(0, (h.value || 400) - Kt.value * 5);
|
|
@@ -463,7 +463,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
463
463
|
}), ue = y(() => {
|
|
464
464
|
const e = X.value, o = e && e.colors && Array.isArray(e.colors) ? e.colors : [];
|
|
465
465
|
return o.length > 0 ? o : ["#3B82F6", "#EF4444", "#10B981", "#F59E0B", "#8B5CF6", "#F97316", "#06B6D4", "#84CC16"];
|
|
466
|
-
}),
|
|
466
|
+
}), Ae = y(() => {
|
|
467
467
|
const e = X.value;
|
|
468
468
|
return e && e.animations && e.animations.enabled !== !1;
|
|
469
469
|
}), ft = y(() => {
|
|
@@ -535,7 +535,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
535
535
|
}, sa = y(() => !q.value.isZooming);
|
|
536
536
|
y(() => Dt.value.map((e) => {
|
|
537
537
|
if (e.categoryIndex !== void 0 && (fn.value || Xt.value)) {
|
|
538
|
-
const o = en(e.categoryIndex), t = le.value +
|
|
538
|
+
const o = en(e.categoryIndex), t = le.value + B.value.bottom - Sn.value / 2;
|
|
539
539
|
return {
|
|
540
540
|
...e,
|
|
541
541
|
x: o,
|
|
@@ -554,11 +554,11 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
554
554
|
}
|
|
555
555
|
const F = y(() => {
|
|
556
556
|
const e = I.markers.map((t) => {
|
|
557
|
-
const u = La(t.marker_date, I.categories), g = en(u), C = le.value +
|
|
557
|
+
const u = La(t.marker_date, I.categories), g = en(u), C = le.value + B.value.bottom - Sn.value / 2;
|
|
558
558
|
return { ...t, x: g, y: C, categoryIndex: u, source: "props" };
|
|
559
559
|
}), o = Dt.value.map((t) => {
|
|
560
560
|
if (t.categoryIndex !== void 0 && (fn.value || Xt.value)) {
|
|
561
|
-
const u = en(t.categoryIndex), g = le.value +
|
|
561
|
+
const u = en(t.categoryIndex), g = le.value + B.value.bottom - Sn.value / 2;
|
|
562
562
|
return {
|
|
563
563
|
...t,
|
|
564
564
|
x: u,
|
|
@@ -583,10 +583,10 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
583
583
|
return e && e.watermark && e.watermark.position ? e.watermark.position : "bottom-right";
|
|
584
584
|
}), nt = y(() => {
|
|
585
585
|
const e = {
|
|
586
|
-
left:
|
|
587
|
-
top:
|
|
588
|
-
width:
|
|
589
|
-
height:
|
|
586
|
+
left: B.value.left,
|
|
587
|
+
top: B.value.top,
|
|
588
|
+
width: B.value.width,
|
|
589
|
+
height: B.value.height
|
|
590
590
|
};
|
|
591
591
|
let o, t;
|
|
592
592
|
const u = String(oe.value);
|
|
@@ -601,7 +601,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
601
601
|
}), ot = y(() => {
|
|
602
602
|
const { width: e, height: o } = nt.value, t = Le.value;
|
|
603
603
|
let u, g;
|
|
604
|
-
const C =
|
|
604
|
+
const C = B.value.left, _ = B.value.right, M = B.value.top, D = B.value.bottom, V = B.value.width, N = B.value.height;
|
|
605
605
|
switch (t) {
|
|
606
606
|
case "center":
|
|
607
607
|
u = C + (V - e) / 2, g = M + (N - o) / 2;
|
|
@@ -834,7 +834,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
834
834
|
Ue.value.show = !1;
|
|
835
835
|
return;
|
|
836
836
|
}
|
|
837
|
-
const t = e.currentTarget.getBoundingClientRect(), u = e.clientX - t.left, g = e.clientY - t.top, C = Xt.value ? u >=
|
|
837
|
+
const t = e.currentTarget.getBoundingClientRect(), u = e.clientX - t.left, g = e.clientY - t.top, C = Xt.value ? u >= B.value.left - 50 && u <= B.value.right + 50 && g >= B.value.top - 50 && g <= B.value.bottom + 100 : u >= B.value.left && u <= B.value.right && g >= B.value.top && g <= B.value.bottom;
|
|
838
838
|
if (Ka.value = C, Xt.value) {
|
|
839
839
|
if (!mt.value || !C || q.value.isDragging || q.value.isZooming) {
|
|
840
840
|
Ue.value.show = !1;
|
|
@@ -888,7 +888,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
888
888
|
Ue.value.show = !1;
|
|
889
889
|
const _e = e.clientX - q.value.lastMouseX, { minX: ne, maxX: ge } = Wt.value, Ce = ge - ne || 1, Ke = _e * 0.8;
|
|
890
890
|
q.value.offsetX += Ke;
|
|
891
|
-
const Me = Ce / q.value.scale, Se = Ce - Me, Pe = 0, Ie = -Se / Ce *
|
|
891
|
+
const Me = Ce / q.value.scale, Se = Ce - Me, Pe = 0, Ie = -Se / Ce * B.value.width, gt = Pe;
|
|
892
892
|
q.value.offsetX = Math.max(Ie, Math.min(gt, q.value.offsetX)), q.value.lastMouseX = e.clientX, q.value.lastMouseY = e.clientY;
|
|
893
893
|
return;
|
|
894
894
|
}
|
|
@@ -896,7 +896,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
896
896
|
Ue.value.show = !1;
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
const { minX: _, maxX: M } = Wt.value, D = M - _ || 1, V = D / q.value.scale, N = _ - q.value.offsetX /
|
|
899
|
+
const { minX: _, maxX: M } = Wt.value, D = M - _ || 1, V = D / q.value.scale, N = _ - q.value.offsetX / B.value.width * D, $ = (u - B.value.left) / B.value.width, Q = N + $ * V, de = Math.round(Q);
|
|
900
900
|
if (de >= 0 && de <= M) {
|
|
901
901
|
const _e = en(de), ne = Ia.value.map((ge, Ce) => {
|
|
902
902
|
const se = I.series.findIndex((Me) => Me === ge), Ke = ge.data[de];
|
|
@@ -927,10 +927,10 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
927
927
|
});
|
|
928
928
|
return;
|
|
929
929
|
}
|
|
930
|
-
const g = Math.max(0,
|
|
930
|
+
const g = Math.max(0, B.value.left - 20), C = B.value.right, _ = B.value.top, M = B.value.bottom + 80;
|
|
931
931
|
t >= g && t <= C && u >= _ && u <= M && (Ze.value.show = !1, ie(() => {
|
|
932
932
|
Ze.value.show = !0, Ze.value.x = e.clientX, Ze.value.y = e.clientY, Ze.value.categoryIndex = null;
|
|
933
|
-
const D = Math.max(
|
|
933
|
+
const D = Math.max(B.value.left, Math.min(t, B.value.right)) - B.value.left, N = B.value.width / Hl.value.length, $ = Math.floor(D / N);
|
|
934
934
|
$ >= 0 && $ < Hl.value.length && (Ze.value.categoryIndex = $);
|
|
935
935
|
}));
|
|
936
936
|
}, je = (e) => {
|
|
@@ -963,7 +963,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
963
963
|
return e.cssClass && o.push(e.cssClass), o;
|
|
964
964
|
}, Rt = (e) => e.style || {}, Gn = (e) => e.type && Mn.value[e.type] ? Mn.value[e.type] : e.customIcon ? e.customIcon : Xn.value, ol = (e) => e == null ? "" : I.categories && I.categories[e] ? I.categories[e] : "", Rl = (e) => Dt.value.length ? Dt.value.filter((o) => o.categoryIndex === e) : [], Il = (e) => {
|
|
965
965
|
if (!fn.value && !Xt.value) return { x: 0, y: 0 };
|
|
966
|
-
const o = en(e), t = le.value +
|
|
966
|
+
const o = en(e), t = le.value + B.value.bottom - Sn.value / 2;
|
|
967
967
|
return { x: o, y: t };
|
|
968
968
|
}, Tn = () => {
|
|
969
969
|
Dt.value.forEach((e) => {
|
|
@@ -989,7 +989,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
989
989
|
const { maxX: _ } = Wt.value;
|
|
990
990
|
o = Math.max(0, Math.min(o, Math.floor(_)));
|
|
991
991
|
} else fn.value && (o = Math.max(0, Math.min(o, Wt.value.maxX)));
|
|
992
|
-
const t = en(o), u = le.value +
|
|
992
|
+
const t = en(o), u = le.value + B.value.bottom - Sn.value / 2, g = Array.isArray(I.categories) ? I.categories[o] : null, C = {
|
|
993
993
|
id: e,
|
|
994
994
|
title: "",
|
|
995
995
|
description: xe.value.description || "",
|
|
@@ -1078,7 +1078,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1078
1078
|
console.error("Chart SVG element not found"), In(e);
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
|
-
const t = qe(), u =
|
|
1081
|
+
const t = qe(), u = He.value, g = ht.value + t.height, C = o.cloneNode(!0);
|
|
1082
1082
|
C.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text").forEach((se) => se.remove());
|
|
1083
1083
|
const M = C.querySelectorAll("image"), D = Array.from(M).map(async (se) => {
|
|
1084
1084
|
const Ke = se.getAttribute("xlink:href") || se.getAttribute("href");
|
|
@@ -1120,7 +1120,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1120
1120
|
let de = "";
|
|
1121
1121
|
if (Y.value)
|
|
1122
1122
|
try {
|
|
1123
|
-
const { width: se, height: Ke } = nt.value, Me = Le.value, Se =
|
|
1123
|
+
const { width: se, height: Ke } = nt.value, Me = Le.value, Se = B.value.left, Pe = B.value.right, Ie = B.value.top, gt = B.value.bottom, yt = B.value.width, Fn = B.value.height;
|
|
1124
1124
|
let on, Ea;
|
|
1125
1125
|
switch (Me) {
|
|
1126
1126
|
case "center":
|
|
@@ -1191,7 +1191,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1191
1191
|
try {
|
|
1192
1192
|
const e = bn();
|
|
1193
1193
|
document.querySelector(".dss-custom-chart-container").offsetHeight, await new Promise((se) => setTimeout(se, 300));
|
|
1194
|
-
const o = qe(), t =
|
|
1194
|
+
const o = qe(), t = He.value, u = ht.value + o.height, g = document.createElement("canvas"), C = g.getContext("2d"), _ = 2;
|
|
1195
1195
|
g.width = t * _, g.height = u * _, g.style.width = t + "px", g.style.height = u + "px", C.scale(_, _), C.fillStyle = "#fafafa", C.fillRect(0, 0, t, u);
|
|
1196
1196
|
let M = 30;
|
|
1197
1197
|
if (bt.value && (C.fillStyle = "#333", C.font = "bold 18px Arial, sans-serif", C.fillText(bt.value, 24, M), M += 30), dt.value && (C.fillStyle = "#666", C.font = "14px Arial, sans-serif", C.fillText(dt.value, 24, M), M += 25), at.value && I.series.length > 0) {
|
|
@@ -1222,7 +1222,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1222
1222
|
C.save(), C.beginPath(), C.arc(Se, Pe, Ie - 1, 0, 2 * Math.PI), C.fillStyle = gt, C.fill(), C.strokeStyle = "#fafafa", C.lineWidth = 2, C.stroke(), C.restore();
|
|
1223
1223
|
}), Y.value) {
|
|
1224
1224
|
const Me = new Image(), Se = () => {
|
|
1225
|
-
const { width: Ie, height: gt } = nt.value, yt = Le.value, Fn =
|
|
1225
|
+
const { width: Ie, height: gt } = nt.value, yt = Le.value, Fn = B.value.left, on = B.value.right, Ea = B.value.top, cs = B.value.bottom, ks = B.value.width, Ms = B.value.height;
|
|
1226
1226
|
let pl, hl;
|
|
1227
1227
|
switch (yt) {
|
|
1228
1228
|
case "center":
|
|
@@ -1322,7 +1322,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1322
1322
|
if (!fn.value || !Gt.value) return;
|
|
1323
1323
|
e.preventDefault(), e.stopPropagation(), q.value.isZooming = !0, Ue.value.show = !1, q.value.zoomTimeout && clearTimeout(q.value.zoomTimeout);
|
|
1324
1324
|
const t = e.currentTarget.getBoundingClientRect(), u = e.clientX - t.left, g = e.clientY - t.top;
|
|
1325
|
-
if (u <
|
|
1325
|
+
if (u < B.value.left - 50 || u > B.value.right + 50 || g < B.value.top - 50 || g > B.value.bottom + 100) {
|
|
1326
1326
|
q.value.isZooming = !1;
|
|
1327
1327
|
return;
|
|
1328
1328
|
}
|
|
@@ -1331,10 +1331,10 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1331
1331
|
Math.min(q.value.maxScale, q.value.scale * C)
|
|
1332
1332
|
);
|
|
1333
1333
|
if (_ !== q.value.scale) {
|
|
1334
|
-
const { minX: M, maxX: D } = Wt.value, V = D - M || 1, N = V / q.value.scale, $ = M - q.value.offsetX /
|
|
1334
|
+
const { minX: M, maxX: D } = Wt.value, V = D - M || 1, N = V / q.value.scale, $ = M - q.value.offsetX / B.value.width * V, Q = (u - B.value.left) / B.value.width, de = $ + Q * N;
|
|
1335
1335
|
q.value.scale = _;
|
|
1336
1336
|
const _e = V / q.value.scale, ne = de - Q * _e;
|
|
1337
|
-
q.value.offsetX = -(ne - M) / V *
|
|
1337
|
+
q.value.offsetX = -(ne - M) / V * B.value.width, q.value.scale <= 1.01 && (q.value.scale = 1, q.value.offsetX = 0);
|
|
1338
1338
|
}
|
|
1339
1339
|
q.value.zoomTimeout = setTimeout(() => {
|
|
1340
1340
|
q.value.isZooming = !1, q.value.zoomTimeout = null;
|
|
@@ -1387,25 +1387,25 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1387
1387
|
at.value && Ne.value === "left" ? D += M.legendWidth || 150 : at.value && Ne.value === "right" && (V += M.legendWidth || 150), at.value && Ne.value === "bottom" && (C += M.legendHeight || 0);
|
|
1388
1388
|
const N = { left: D, top: g + _, right: V, bottom: C };
|
|
1389
1389
|
return t != null ? { left: t, top: t, right: t, bottom: t } : u ? { left: u.left ?? N.left, top: u.top ?? N.top, right: u.right ?? N.right, bottom: u.bottom ?? N.bottom } : N;
|
|
1390
|
-
}),
|
|
1390
|
+
}), B = y(() => ({
|
|
1391
1391
|
left: Nn.value.left,
|
|
1392
1392
|
top: Nn.value.top,
|
|
1393
|
-
right:
|
|
1393
|
+
right: He.value - Nn.value.right,
|
|
1394
1394
|
bottom: ht.value - Nn.value.bottom,
|
|
1395
|
-
width:
|
|
1395
|
+
width: He.value - (Nn.value.left + Nn.value.right),
|
|
1396
1396
|
height: ht.value - (Nn.value.top + Nn.value.bottom)
|
|
1397
1397
|
})), fn = y(() => ["line", "area", "bar"].includes(ve.value) || Hn.value), Zn = y(() => Hn.value), En = y(() => ["radial", "semi-radial"].includes(ve.value)), fa = y(() => ve.value === "spider"), Xt = y(() => ve.value === "bubble"), dn = y(() => X.value?.chart?.orientation === "horizontal" && (ve.value === "bar" || Zn.value)), pa = (e) => {
|
|
1398
1398
|
const { minY: o, maxY: t } = Wt.value, u = t - o || 1;
|
|
1399
|
-
return
|
|
1399
|
+
return B.value.left + (e - o) / u * B.value.width;
|
|
1400
1400
|
}, Va = (e) => {
|
|
1401
|
-
const { maxX: o } = Wt.value, t = o + 1, g =
|
|
1402
|
-
return
|
|
1403
|
-
}, $t = y(() => En.value ? Nn.value.left + (
|
|
1401
|
+
const { maxX: o } = Wt.value, t = o + 1, g = B.value.height / t;
|
|
1402
|
+
return B.value.top + (e + 0.5) * g;
|
|
1403
|
+
}, $t = y(() => En.value ? Nn.value.left + (He.value - Nn.value.left - Nn.value.right) / 2 : He.value / 2), Et = y(() => fa.value ? ht.value / 2 - 40 : En.value ? Nn.value.top + (ht.value - Nn.value.top - Nn.value.bottom) / 2 : ht.value / 2), vt = y(() => {
|
|
1404
1404
|
if (fa.value) {
|
|
1405
|
-
const e =
|
|
1405
|
+
const e = B.value.width - 80, o = B.value.height - 80;
|
|
1406
1406
|
return Math.min(e, o) / 2;
|
|
1407
1407
|
}
|
|
1408
|
-
return Math.min(
|
|
1408
|
+
return Math.min(B.value.width, B.value.height) / 2;
|
|
1409
1409
|
}), It = y(() => {
|
|
1410
1410
|
const e = X.value, o = e?.plotOptions?.radialBar?.innerRadiusRatio ?? e?.radialBar?.innerRadiusRatio, t = typeof o == "number" && o >= 0 && o <= 1 ? o : 0.45;
|
|
1411
1411
|
return vt.value * t;
|
|
@@ -1418,9 +1418,9 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1418
1418
|
const o = $t.value, t = Et.value;
|
|
1419
1419
|
return `translate(${o}, ${t}) scale(${e}) translate(${-o}, ${-t})`;
|
|
1420
1420
|
}), Qa = H(0), Ml = y(() => `semi-radial-fill-clip-${I.chartId}`), _a = y(() => ve.value === "semi-radial"), ia = y(
|
|
1421
|
-
() => _a.value &&
|
|
1421
|
+
() => _a.value && Ae.value && !qn.value
|
|
1422
1422
|
), Qn = y(
|
|
1423
|
-
() => _a.value &&
|
|
1423
|
+
() => _a.value && Ae.value && !qn.value && ft.value === "fill"
|
|
1424
1424
|
), Da = y(() => {
|
|
1425
1425
|
const e = ia.value ? Qa.value : 1, o = $t.value, t = Et.value, u = It.value, g = vt.value, C = Math.PI, _ = Math.PI + e * Math.PI;
|
|
1426
1426
|
if (e <= 0) return `M ${o} ${t} L ${o} ${t} Z`;
|
|
@@ -1433,7 +1433,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1433
1433
|
if (!(!Qn.value || e !== 0))
|
|
1434
1434
|
return `url(#${Ml.value})`;
|
|
1435
1435
|
}, $a = H(0), Sl = y(() => `radial-reveal-clip-${I.chartId}`), Vn = y(() => ve.value === "radial"), Ra = y(() => {
|
|
1436
|
-
const e = Vn.value ? $a.value : 1, o = $t.value, t = Et.value, u = Math.max(vt.value * 1.5,
|
|
1436
|
+
const e = Vn.value ? $a.value : 1, o = $t.value, t = Et.value, u = Math.max(vt.value * 1.5, He.value, ht.value);
|
|
1437
1437
|
if (e <= 0) return `M ${o} ${t} L ${o} ${t} Z`;
|
|
1438
1438
|
if (e >= 1) {
|
|
1439
1439
|
const $ = o - u, Q = o + u;
|
|
@@ -1532,16 +1532,16 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1532
1532
|
}, en = (e) => {
|
|
1533
1533
|
if (Xt.value) {
|
|
1534
1534
|
const { minX: M, maxX: D } = Wt.value, V = D - M || 1;
|
|
1535
|
-
return
|
|
1535
|
+
return B.value.left + (e - M) / V * B.value.width;
|
|
1536
1536
|
}
|
|
1537
1537
|
const { minX: o, maxX: t } = Wt.value, u = t - o;
|
|
1538
1538
|
if (t === 0 || u === 0)
|
|
1539
|
-
return
|
|
1540
|
-
const g = u / q.value.scale, C = o - q.value.offsetX /
|
|
1541
|
-
return
|
|
1539
|
+
return B.value.left + B.value.width / 2;
|
|
1540
|
+
const g = u / q.value.scale, C = o - q.value.offsetX / B.value.width * u, _ = (e - C) / g;
|
|
1541
|
+
return B.value.left + _ * B.value.width;
|
|
1542
1542
|
}, pn = (e) => {
|
|
1543
1543
|
const { minY: o, maxY: t } = Wt.value, u = t - o || 1;
|
|
1544
|
-
return
|
|
1544
|
+
return B.value.bottom - (e - o) / u * B.value.height;
|
|
1545
1545
|
}, El = (e) => {
|
|
1546
1546
|
if (!Xt.value) return pt.value || 4;
|
|
1547
1547
|
const { maxSize: o } = Wt.value, t = Math.max(1, o), u = Math.min(1, Math.max(0, e / t));
|
|
@@ -1558,45 +1558,45 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1558
1558
|
const Fn = Se + gt * (yt / Ie), on = pa(Fn);
|
|
1559
1559
|
Me.push({
|
|
1560
1560
|
x: on,
|
|
1561
|
-
y:
|
|
1561
|
+
y: B.value.bottom + 20,
|
|
1562
1562
|
text: _n(Math.round(Fn))
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
1565
|
return Me;
|
|
1566
1566
|
}
|
|
1567
|
-
const _e = [], { maxX: ne } = Wt.value, ge = ne + 1, Ce = 5, Ke = (
|
|
1567
|
+
const _e = [], { maxX: ne } = Wt.value, ge = ne + 1, Ce = 5, Ke = (B.value.width - Ce * 2) / ge;
|
|
1568
1568
|
for (let Me = 0; Me <= ne; Me++) {
|
|
1569
|
-
const Se =
|
|
1569
|
+
const Se = B.value.left + Ce + (Me + 0.5) * Ke;
|
|
1570
1570
|
_e.push({
|
|
1571
1571
|
x: Se,
|
|
1572
|
-
y:
|
|
1572
|
+
y: B.value.bottom + 20,
|
|
1573
1573
|
text: I.categories[Me] || W("chart.fallback.item", { number: Me + 1 })
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
return _e;
|
|
1577
1577
|
}
|
|
1578
|
-
const e = [], { minX: o, maxX: t } = Wt.value, u = t - o || 1, g = u / q.value.scale, C = o - q.value.offsetX /
|
|
1578
|
+
const e = [], { minX: o, maxX: t } = Wt.value, u = t - o || 1, g = u / q.value.scale, C = o - q.value.offsetX / B.value.width * u, _ = C + g, M = Math.max(0, Math.floor(C - 2)), D = Math.min(t, Math.ceil(_ + 2)), V = D - M, N = B.value.width, Q = Math.floor(N / 60);
|
|
1579
1579
|
let de = 1;
|
|
1580
1580
|
V > Q && (de = Math.ceil(V / Q));
|
|
1581
1581
|
for (let _e = M; _e <= D; _e += de)
|
|
1582
1582
|
if (_e >= 0 && _e <= t) {
|
|
1583
1583
|
const ne = en(_e);
|
|
1584
|
-
ne >=
|
|
1584
|
+
ne >= B.value.left - 100 && ne <= B.value.right + 100 && e.push({
|
|
1585
1585
|
x: ne,
|
|
1586
|
-
y:
|
|
1586
|
+
y: B.value.bottom + 20,
|
|
1587
1587
|
text: I.categories[_e] || `Item ${_e + 1}`
|
|
1588
1588
|
});
|
|
1589
1589
|
}
|
|
1590
1590
|
return e;
|
|
1591
1591
|
}), Xl = () => {
|
|
1592
|
-
const e = [], { minX: o, maxX: t } = Wt.value, u = t - o || 1, g = Math.min(8, Math.max(4, Math.floor(
|
|
1592
|
+
const e = [], { minX: o, maxX: t } = Wt.value, u = t - o || 1, g = Math.min(8, Math.max(4, Math.floor(B.value.width / 80)));
|
|
1593
1593
|
for (let C = 0; C <= g; C++) {
|
|
1594
1594
|
const _ = o + u * C / g, M = en(_);
|
|
1595
|
-
if (M >=
|
|
1595
|
+
if (M >= B.value.left - 10 && M <= B.value.right + 10) {
|
|
1596
1596
|
const D = Math.round(_), V = I.categories?.[D];
|
|
1597
1597
|
e.push({
|
|
1598
1598
|
x: M,
|
|
1599
|
-
y:
|
|
1599
|
+
y: B.value.bottom + 20,
|
|
1600
1600
|
text: V || (Number.isInteger(_) ? _.toString() : _.toFixed(1))
|
|
1601
1601
|
});
|
|
1602
1602
|
}
|
|
@@ -1607,7 +1607,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1607
1607
|
const g = [], { maxX: C } = Wt.value;
|
|
1608
1608
|
for (let _ = 0; _ <= C; _++)
|
|
1609
1609
|
g.push({
|
|
1610
|
-
x:
|
|
1610
|
+
x: B.value.left - 10,
|
|
1611
1611
|
y: Va(_),
|
|
1612
1612
|
text: I.categories[_] || `Item ${_ + 1}`
|
|
1613
1613
|
});
|
|
@@ -1617,7 +1617,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1617
1617
|
for (let g = 0; g <= u; g++) {
|
|
1618
1618
|
const C = o + (t - o) * (g / u), _ = Math.round(C);
|
|
1619
1619
|
e.push({
|
|
1620
|
-
x:
|
|
1620
|
+
x: B.value.left - 10,
|
|
1621
1621
|
y: pn(C),
|
|
1622
1622
|
text: _n(_)
|
|
1623
1623
|
});
|
|
@@ -1753,7 +1753,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
}), o;
|
|
1756
|
-
}), ss = y(() => ve.value === "line" || Zn.value ? !
|
|
1756
|
+
}), ss = y(() => ve.value === "line" || Zn.value ? !Ae.value || qn.value || wt.value.hasAnimated ? [] : (Zn.value ? I.series.filter((o) => (o.type || ve.value) === "line") : ha.value).map((o, t) => {
|
|
1757
1757
|
const u = I.series.findIndex((D) => D === o);
|
|
1758
1758
|
let g = "", C = null;
|
|
1759
1759
|
o.data.forEach((D, V) => {
|
|
@@ -1881,7 +1881,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1881
1881
|
color: Yt(o),
|
|
1882
1882
|
isHidden: Vt.value.has(o)
|
|
1883
1883
|
};
|
|
1884
|
-
const g =
|
|
1884
|
+
const g = B.value.bottom + 1;
|
|
1885
1885
|
let C = "", _ = "";
|
|
1886
1886
|
t.forEach(($, Q) => {
|
|
1887
1887
|
if ($.length === 0) return;
|
|
@@ -1915,13 +1915,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1915
1915
|
if (!(["bar"].includes(ve.value) || Zn.value)) return [];
|
|
1916
1916
|
const e = [], { maxX: o } = Wt.value, t = Zn.value ? I.series.filter((g) => (g.type || ve.value) === "bar") : ha.value, u = t.length;
|
|
1917
1917
|
if (dn.value) {
|
|
1918
|
-
const g = o + 1, _ =
|
|
1918
|
+
const g = o + 1, _ = B.value.height / g, M = _ * (2 / 3), D = Math.min(4, M / u * 0.15), V = M - (u - 1) * D, N = Math.max(4, V / u);
|
|
1919
1919
|
t.forEach(($, Q) => {
|
|
1920
1920
|
const de = I.series.findIndex((Ce) => Ce === $), _e = we.value === de, ne = we.value !== null && we.value !== de, ge = Vt.value.has(de);
|
|
1921
1921
|
$.data.forEach((Ce, se) => {
|
|
1922
1922
|
if (Ce == null || typeof Ce != "number" || !isFinite(Ce))
|
|
1923
1923
|
return;
|
|
1924
|
-
const Se =
|
|
1924
|
+
const Se = B.value.top + (se + 0.5) * _ - M / 2 + Q * (N + D), Pe = B.value.left, Ie = Math.abs(pa(Ce) - B.value.left);
|
|
1925
1925
|
let gt = "";
|
|
1926
1926
|
if (j.value && Ie > 0) {
|
|
1927
1927
|
const yt = Math.min(te.value, N / 2, Ie / 2);
|
|
@@ -1954,13 +1954,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
1954
1954
|
});
|
|
1955
1955
|
});
|
|
1956
1956
|
} else {
|
|
1957
|
-
const g = o + 1, _ =
|
|
1957
|
+
const g = o + 1, _ = B.value.width / g, M = _ * 0.8, D = M / u, V = D * 0.05, N = D - V;
|
|
1958
1958
|
t.forEach(($, Q) => {
|
|
1959
1959
|
const de = I.series.findIndex((Ce) => Ce === $), _e = we.value === de, ne = we.value !== null && we.value !== de, ge = Vt.value.has(de);
|
|
1960
1960
|
$.data.forEach((Ce, se) => {
|
|
1961
1961
|
if (Ce == null || typeof Ce != "number" || !isFinite(Ce))
|
|
1962
1962
|
return;
|
|
1963
|
-
const Se =
|
|
1963
|
+
const Se = B.value.left + (se + 0.5) * _ - M / 2 + Q * D + V / 2, Pe = pn(Math.max(0, Ce)), Ie = Math.abs(pn(0) - pn(Ce));
|
|
1964
1964
|
let gt = "";
|
|
1965
1965
|
if (j.value && Ie > 0) {
|
|
1966
1966
|
const yt = Math.min(te.value, N / 2, Ie / 2);
|
|
@@ -2157,7 +2157,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2157
2157
|
const u = t.getBoundingClientRect();
|
|
2158
2158
|
let g = o.clientX - u.left + 10, C = o.clientY - u.top - 10;
|
|
2159
2159
|
const _ = 200, M = 120;
|
|
2160
|
-
g + _ >
|
|
2160
|
+
g + _ > He.value && (g = o.clientX - u.left - _ - 10), C + M > u.height && (C = o.clientY - u.top - M - 10), g < 0 && (g = 10), C < 0 && (C = 10);
|
|
2161
2161
|
const D = Kn.value, V = Ta.value, N = D.map(($) => {
|
|
2162
2162
|
const Q = V[$] || $, de = f($, e);
|
|
2163
2163
|
return de ? { seriesName: e.seriesName, label: e.label, value: `${Q}: ${de}`, color: e.color } : null;
|
|
@@ -2219,7 +2219,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2219
2219
|
const u = t.getBoundingClientRect(), g = ol(e.categoryIndex), C = e.description || e.comment || "";
|
|
2220
2220
|
let _ = o.clientX - u.left + 15, M = o.clientY - u.top - 10;
|
|
2221
2221
|
const D = 200, V = C ? 80 : 50;
|
|
2222
|
-
_ + D >
|
|
2222
|
+
_ + D > He.value && (_ = o.clientX - u.left - D - 15), M + V > ht.value && (M = o.clientY - u.top - V - 10), _ < 0 && (_ = 10), M < 0 && (M = 10), cn.value = {
|
|
2223
2223
|
show: !0,
|
|
2224
2224
|
x: _,
|
|
2225
2225
|
y: M,
|
|
@@ -2308,7 +2308,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2308
2308
|
_.length, we.value = _[0].seriesIndex;
|
|
2309
2309
|
const M = e.clientX - t.left + 10, D = e.clientY - t.top - 10, V = 200, N = 50 + _.length * 25;
|
|
2310
2310
|
let $ = M, Q = D;
|
|
2311
|
-
$ + V >
|
|
2311
|
+
$ + V > He.value && ($ = e.clientX - t.left - V - 10), Q + N > ht.value && (Q = e.clientY - t.top - N - 10), $ < 0 && ($ = 10), Q < 0 && (Q = 10);
|
|
2312
2312
|
const de = _.map((_e) => {
|
|
2313
2313
|
let ne = _e.dataPoints[0], ge = 1 / 0;
|
|
2314
2314
|
return _e.dataPoints.forEach((Ce) => {
|
|
@@ -2387,9 +2387,9 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2387
2387
|
return { display: "none" };
|
|
2388
2388
|
let e, o;
|
|
2389
2389
|
if (mt.value && Ue.value.show && !q.value.isZooming) {
|
|
2390
|
-
e = Ue.value.x + 15, o =
|
|
2390
|
+
e = Ue.value.x + 15, o = B.value.top;
|
|
2391
2391
|
const t = Xt.value ? 200 : 150;
|
|
2392
|
-
e + t >
|
|
2392
|
+
e + t > He.value && (e = Ue.value.x - t - 15), e < 0 && (e = 10), o < 10 && (o = 10);
|
|
2393
2393
|
} else
|
|
2394
2394
|
e = Je.value.x, o = Je.value.y;
|
|
2395
2395
|
return {
|
|
@@ -2401,7 +2401,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2401
2401
|
return;
|
|
2402
2402
|
const u = o.target.closest(".dss-custom-chart-container").getBoundingClientRect();
|
|
2403
2403
|
let g = o.clientX - u.left + 10, C = o.clientY - u.top - 10;
|
|
2404
|
-
const _ = 200, M = 120, D =
|
|
2404
|
+
const _ = 200, M = 120, D = He.value, V = ht.value;
|
|
2405
2405
|
g + _ > D && (g = o.clientX - u.left - _ - 10), C + M > V && (C = o.clientY - u.top - M - 10), g < 0 && (g = 10), C < 0 && (C = 10);
|
|
2406
2406
|
let N;
|
|
2407
2407
|
typeof e.categoryIndex == "number" ? N = e.categoryIndex : typeof e.dataIndex == "number" ? N = e.dataIndex : e.label && I.categories.includes(e.label) && (N = I.categories.indexOf(e.label));
|
|
@@ -2422,7 +2422,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2422
2422
|
const u = o.target.closest(".dss-custom-chart-container").getBoundingClientRect();
|
|
2423
2423
|
let g = o.clientX - u.left + 15, C = o.clientY - u.top - 10;
|
|
2424
2424
|
const _ = 250;
|
|
2425
|
-
g + _ >
|
|
2425
|
+
g + _ > He.value && (g = o.clientX - u.left - _ - 15), g < 0 && (g = 10), C < 0 && (C = 10), ba.value = {
|
|
2426
2426
|
show: !0,
|
|
2427
2427
|
x: g,
|
|
2428
2428
|
y: C,
|
|
@@ -2453,7 +2453,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2453
2453
|
return o;
|
|
2454
2454
|
}
|
|
2455
2455
|
}, qn = y(() => Ut.value ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1), Ll = () => {
|
|
2456
|
-
if (!
|
|
2456
|
+
if (!Ae.value || qn.value) {
|
|
2457
2457
|
wt.value.hasAnimated = !0, Vn.value && ($a.value = 1);
|
|
2458
2458
|
return;
|
|
2459
2459
|
}
|
|
@@ -2477,7 +2477,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2477
2477
|
})) : Ql.value = !1;
|
|
2478
2478
|
}, { immediate: !0 });
|
|
2479
2479
|
const Cs = y(() => {
|
|
2480
|
-
if (!
|
|
2480
|
+
if (!Ae.value || qn.value || wt.value.hasAnimated)
|
|
2481
2481
|
return {};
|
|
2482
2482
|
const e = {};
|
|
2483
2483
|
return e["--dss-animation-duration"] = `${Fe.value}ms`, e["--dss-animation-easing"] = bs(St.value), e["--dss-stagger-delay"] = `${Ft.value}ms`, e;
|
|
@@ -2488,7 +2488,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2488
2488
|
"ease-out": "ease-out",
|
|
2489
2489
|
"ease-in-out": "ease-in-out"
|
|
2490
2490
|
})[e] || "ease-out", ws = () => {
|
|
2491
|
-
if (!
|
|
2491
|
+
if (!Ae.value || qn.value) return "";
|
|
2492
2492
|
const e = ["dss-chart-animated"];
|
|
2493
2493
|
return wt.value.hasAnimated || e.push(`dss-animate-${ft.value}`), wt.value.hasAnimated || (En.value && ve.value !== "semi-radial" ? e.push("dss-animate-fill") : En.value || e.push(`dss-animate-${ft.value}`)), wt.value.isAnimating && e.push("dss-is-animating"), e.join(" ");
|
|
2494
2494
|
};
|
|
@@ -2511,14 +2511,14 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2511
2511
|
document.addEventListener("click", bl);
|
|
2512
2512
|
}) : document.removeEventListener("click", bl);
|
|
2513
2513
|
}), is(() => {
|
|
2514
|
-
we.value = null, Vn.value && (!
|
|
2514
|
+
we.value = null, Vn.value && (!Ae.value || qn.value) && ($a.value = 1), Ol(), x.value && typeof ResizeObserver < "u" && (be = new ResizeObserver((e) => {
|
|
2515
2515
|
const o = e[0];
|
|
2516
2516
|
!o || !o.contentRect || (Ve && cancelAnimationFrame(Ve), Ve = requestAnimationFrame(() => {
|
|
2517
2517
|
Ve = null;
|
|
2518
2518
|
const { width: t, height: u } = o.contentRect;
|
|
2519
|
-
Qe.value = Math.round(t), h.value = Math.round(u), fe.value && (Kt.value = fe.value.offsetHeight ||
|
|
2519
|
+
Qe.value = Math.round(t), h.value = Math.round(u), fe.value && (Kt.value = fe.value.offsetHeight || Ee);
|
|
2520
2520
|
}));
|
|
2521
|
-
}), be.observe(x.value)),
|
|
2521
|
+
}), be.observe(x.value)), Ae.value && !qn.value ? ve.value === "semi-radial" ? setTimeout(() => qa(), tt.value) : setTimeout(() => Ll(), tt.value) : (wt.value.hasAnimated = !0, ve.value === "semi-radial" && (Qa.value = 1)), document.addEventListener("mousemove", rs), document.addEventListener("mouseup", us), document.addEventListener("click", za);
|
|
2522
2522
|
}), es(() => {
|
|
2523
2523
|
Ve && cancelAnimationFrame(Ve), be && x.value && (be.unobserve(x.value), be.disconnect(), be = null), wt.value.animationId && cancelAnimationFrame(wt.value.animationId), Jn && (cancelAnimationFrame(Jn), Jn = null), q.value.zoomTimeout && clearTimeout(q.value.zoomTimeout), document.removeEventListener("mousemove", rs), document.removeEventListener("mouseup", us), document.removeEventListener("click", za), document.removeEventListener("click", bl);
|
|
2524
2524
|
});
|
|
@@ -2527,7 +2527,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2527
2527
|
Ue.value.show = !1;
|
|
2528
2528
|
const o = e.clientX - q.value.lastMouseX, { minX: t, maxX: u } = Wt.value, g = u - t || 1, _ = o * 0.8;
|
|
2529
2529
|
q.value.offsetX += _;
|
|
2530
|
-
const M = g / q.value.scale, D = g - M, V = 0, N = -D / g *
|
|
2530
|
+
const M = g / q.value.scale, D = g - M, V = 0, N = -D / g * B.value.width, $ = V;
|
|
2531
2531
|
q.value.offsetX = Math.max(N, Math.min($, q.value.offsetX)), q.value.lastMouseX = e.clientX, q.value.lastMouseY = e.clientY;
|
|
2532
2532
|
}
|
|
2533
2533
|
}, us = () => {
|
|
@@ -2567,7 +2567,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2567
2567
|
{ "dss-chart-fill-width": kt.value, "dss-chart-fill-height": Mt.value, "dss-chart-compact": En.value && !at.value }
|
|
2568
2568
|
]]),
|
|
2569
2569
|
style: re({
|
|
2570
|
-
width: kt.value ? "100%" :
|
|
2570
|
+
width: kt.value ? "100%" : He.value + "px",
|
|
2571
2571
|
height: Be.value,
|
|
2572
2572
|
...kt.value || Mt.value ? { overflow: "hidden", maxWidth: "100%", maxHeight: "100%" } : {},
|
|
2573
2573
|
...Cs.value,
|
|
@@ -2654,7 +2654,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2654
2654
|
], 46, Rs))), 128))
|
|
2655
2655
|
], 2)) : R("", !0)
|
|
2656
2656
|
], 512),
|
|
2657
|
-
|
|
2657
|
+
P.showAddMarkerButton && zt.value.addMarker && (fn.value || Xt.value) ? (c(), d("div", {
|
|
2658
2658
|
key: 0,
|
|
2659
2659
|
class: "dss-add-marker-button",
|
|
2660
2660
|
onClick: Cl,
|
|
@@ -2684,21 +2684,21 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2684
2684
|
l("div", Ps, [
|
|
2685
2685
|
Xt.value && kn.value ? (c(), d("div", Bs, "Bubble size: " + L(kn.value), 1)) : R("", !0),
|
|
2686
2686
|
(c(), d("svg", {
|
|
2687
|
-
width:
|
|
2687
|
+
width: He.value,
|
|
2688
2688
|
height: ht.value,
|
|
2689
2689
|
class: "dss-chart-svg",
|
|
2690
2690
|
"data-smooth": j.value,
|
|
2691
|
-
"data-animated":
|
|
2691
|
+
"data-animated": Ae.value,
|
|
2692
2692
|
ref_key: "svgEl",
|
|
2693
2693
|
ref: Oe
|
|
2694
2694
|
}, [
|
|
2695
2695
|
l("defs", null, [
|
|
2696
2696
|
l("clipPath", zs, [
|
|
2697
2697
|
l("rect", {
|
|
2698
|
-
x:
|
|
2699
|
-
y:
|
|
2700
|
-
width:
|
|
2701
|
-
height:
|
|
2698
|
+
x: 0,
|
|
2699
|
+
y: B.value.top,
|
|
2700
|
+
width: He.value,
|
|
2701
|
+
height: B.value.height * 4
|
|
2702
2702
|
}, null, 8, Ws)
|
|
2703
2703
|
]),
|
|
2704
2704
|
_a.value ? (c(), d("clipPath", {
|
|
@@ -2718,8 +2718,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2718
2718
|
xt.value ? (c(), d("g", js, [
|
|
2719
2719
|
(c(!0), d(ee, null, me(Ul.value, (t, u) => (c(), d("line", {
|
|
2720
2720
|
key: `h-grid-${u}`,
|
|
2721
|
-
x1:
|
|
2722
|
-
x2:
|
|
2721
|
+
x1: B.value.left,
|
|
2722
|
+
x2: B.value.right,
|
|
2723
2723
|
y1: t.y,
|
|
2724
2724
|
y2: t.y,
|
|
2725
2725
|
stroke: "#e0e0e0",
|
|
@@ -2732,18 +2732,18 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2732
2732
|
])) : R("", !0),
|
|
2733
2733
|
l("g", Gs, [
|
|
2734
2734
|
l("line", {
|
|
2735
|
-
x1:
|
|
2736
|
-
x2:
|
|
2737
|
-
y1:
|
|
2738
|
-
y2:
|
|
2735
|
+
x1: B.value.left,
|
|
2736
|
+
x2: B.value.right,
|
|
2737
|
+
y1: B.value.bottom,
|
|
2738
|
+
y2: B.value.bottom,
|
|
2739
2739
|
stroke: "#ccc",
|
|
2740
2740
|
"stroke-width": "1"
|
|
2741
2741
|
}, null, 8, Qs),
|
|
2742
2742
|
l("line", {
|
|
2743
|
-
x1:
|
|
2744
|
-
x2:
|
|
2745
|
-
y1:
|
|
2746
|
-
y2:
|
|
2743
|
+
x1: B.value.left,
|
|
2744
|
+
x2: B.value.left,
|
|
2745
|
+
y1: B.value.top,
|
|
2746
|
+
y2: B.value.bottom,
|
|
2747
2747
|
stroke: "#ccc",
|
|
2748
2748
|
"stroke-width": "1"
|
|
2749
2749
|
}, null, 8, Js)
|
|
@@ -2774,8 +2774,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2774
2774
|
}, L(t.text), 13, no))), 128)),
|
|
2775
2775
|
rn.value ? (c(), d("text", {
|
|
2776
2776
|
key: 0,
|
|
2777
|
-
x:
|
|
2778
|
-
y:
|
|
2777
|
+
x: B.value.left + B.value.width / 2,
|
|
2778
|
+
y: B.value.bottom + 45,
|
|
2779
2779
|
"text-anchor": "middle",
|
|
2780
2780
|
"font-size": "14",
|
|
2781
2781
|
"font-weight": "bold",
|
|
@@ -2784,12 +2784,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2784
2784
|
ye.value ? (c(), d("text", {
|
|
2785
2785
|
key: 1,
|
|
2786
2786
|
x: 15,
|
|
2787
|
-
y:
|
|
2787
|
+
y: B.value.top + 12 + B.value.height / 2,
|
|
2788
2788
|
"text-anchor": "middle",
|
|
2789
2789
|
"font-size": "14",
|
|
2790
2790
|
"font-weight": "bold",
|
|
2791
2791
|
fill: "#333",
|
|
2792
|
-
transform: `rotate(-90, 15, ${
|
|
2792
|
+
transform: `rotate(-90, 15, ${B.value.top + B.value.height / 2})`
|
|
2793
2793
|
}, L(ye.value), 9, lo)) : R("", !0)
|
|
2794
2794
|
]),
|
|
2795
2795
|
sl.value.length > 0 ? (c(), d("g", so, [
|
|
@@ -2801,8 +2801,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2801
2801
|
key: 0,
|
|
2802
2802
|
x1: t.x,
|
|
2803
2803
|
x2: t.x,
|
|
2804
|
-
y1:
|
|
2805
|
-
y2:
|
|
2804
|
+
y1: B.value.bottom,
|
|
2805
|
+
y2: B.value.top,
|
|
2806
2806
|
stroke: "#047395",
|
|
2807
2807
|
"stroke-width": "2",
|
|
2808
2808
|
"stroke-dasharray": "8",
|
|
@@ -2815,8 +2815,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2815
2815
|
key: 1,
|
|
2816
2816
|
x1: t.x,
|
|
2817
2817
|
x2: t.x,
|
|
2818
|
-
y1:
|
|
2819
|
-
y2:
|
|
2818
|
+
y1: B.value.bottom,
|
|
2819
|
+
y2: B.value.top,
|
|
2820
2820
|
stroke: "#0dbf89",
|
|
2821
2821
|
"stroke-width": "2",
|
|
2822
2822
|
"stroke-dasharray": "8",
|
|
@@ -2829,8 +2829,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2829
2829
|
key: 2,
|
|
2830
2830
|
x1: t.x,
|
|
2831
2831
|
x2: t.x,
|
|
2832
|
-
y1:
|
|
2833
|
-
y2:
|
|
2832
|
+
y1: B.value.bottom,
|
|
2833
|
+
y2: B.value.top,
|
|
2834
2834
|
stroke: "#047395",
|
|
2835
2835
|
"stroke-width": "2",
|
|
2836
2836
|
"stroke-dasharray": "8",
|
|
@@ -2843,7 +2843,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2843
2843
|
t.hasManual && t.hasAuto ? (c(), d("circle", {
|
|
2844
2844
|
key: 0,
|
|
2845
2845
|
cx: t.x + 8,
|
|
2846
|
-
cy: Math.max(15,
|
|
2846
|
+
cy: Math.max(15, B.value.top - 10),
|
|
2847
2847
|
r: "14",
|
|
2848
2848
|
fill: "#0dbf89",
|
|
2849
2849
|
stroke: "#fafafa",
|
|
@@ -2854,7 +2854,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2854
2854
|
}, null, 40, co)) : R("", !0),
|
|
2855
2855
|
l("circle", {
|
|
2856
2856
|
cx: t.x,
|
|
2857
|
-
cy: Math.max(15,
|
|
2857
|
+
cy: Math.max(15, B.value.top - 10),
|
|
2858
2858
|
r: "14",
|
|
2859
2859
|
fill: t.hasManual && t.hasAuto || t.hasManual ? "#047395" : "#0dbf89",
|
|
2860
2860
|
stroke: "#fafafa",
|
|
@@ -2865,7 +2865,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
2865
2865
|
}, null, 40, vo),
|
|
2866
2866
|
l("text", {
|
|
2867
2867
|
x: t.x,
|
|
2868
|
-
y: Math.max(15,
|
|
2868
|
+
y: Math.max(15, B.value.top - 5),
|
|
2869
2869
|
"text-anchor": "middle",
|
|
2870
2870
|
"font-size": "12",
|
|
2871
2871
|
"font-weight": "bold",
|
|
@@ -3055,17 +3055,17 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3055
3055
|
l("defs", null, [
|
|
3056
3056
|
(c(!0), d(ee, null, me(ma.value, (t, u) => (c(), d("mask", {
|
|
3057
3057
|
key: `mask-${u}`,
|
|
3058
|
-
id: `area-mask-${u}-${
|
|
3058
|
+
id: `area-mask-${u}-${P.chartId}`
|
|
3059
3059
|
}, [
|
|
3060
3060
|
l("rect", {
|
|
3061
|
-
x:
|
|
3062
|
-
y:
|
|
3063
|
-
width:
|
|
3064
|
-
height:
|
|
3061
|
+
x: B.value.left - 10,
|
|
3062
|
+
y: B.value.top - 10,
|
|
3063
|
+
width: B.value.width + 20,
|
|
3064
|
+
height: B.value.height + 20,
|
|
3065
3065
|
fill: "#fafafa",
|
|
3066
3066
|
class: "dss-area-mask-rect",
|
|
3067
3067
|
style: re({
|
|
3068
|
-
"--dss-mask-width": `${
|
|
3068
|
+
"--dss-mask-width": `${B.value.width + 20}px`
|
|
3069
3069
|
})
|
|
3070
3070
|
}, null, 12, Ho)
|
|
3071
3071
|
], 8, Eo))), 128))
|
|
@@ -3075,7 +3075,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3075
3075
|
d: t.areaPath,
|
|
3076
3076
|
fill: t.color,
|
|
3077
3077
|
"fill-opacity": t.isHighlighted ? st.value + 0.2 : st.value,
|
|
3078
|
-
mask: `url(#area-mask-${u}-${
|
|
3078
|
+
mask: `url(#area-mask-${u}-${P.chartId})`,
|
|
3079
3079
|
class: ae({
|
|
3080
3080
|
"dss-area-fill-smooth": !0,
|
|
3081
3081
|
"dss-series-highlighted": t.isHighlighted,
|
|
@@ -3153,8 +3153,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3153
3153
|
l("line", {
|
|
3154
3154
|
x1: Ue.value.x,
|
|
3155
3155
|
x2: Ue.value.x,
|
|
3156
|
-
y1:
|
|
3157
|
-
y2:
|
|
3156
|
+
y1: B.value.top,
|
|
3157
|
+
y2: B.value.bottom,
|
|
3158
3158
|
stroke: gn.value,
|
|
3159
3159
|
"stroke-width": "1",
|
|
3160
3160
|
"stroke-dasharray": "4,4",
|
|
@@ -3477,7 +3477,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3477
3477
|
position: "absolute",
|
|
3478
3478
|
top: "0px",
|
|
3479
3479
|
left: "0px",
|
|
3480
|
-
width:
|
|
3480
|
+
width: He.value + "px",
|
|
3481
3481
|
height: ht.value + "px",
|
|
3482
3482
|
backgroundImage: `url('${Yn.value}')`,
|
|
3483
3483
|
backgroundRepeat: "no-repeat",
|
|
@@ -3601,7 +3601,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3601
3601
|
], 64)) : R("", !0)
|
|
3602
3602
|
], 64)) : (c(), d(ee, { key: 1 }, [
|
|
3603
3603
|
l("div", Ri, [
|
|
3604
|
-
l("div", Ii, L(Xt.value ? v() :
|
|
3604
|
+
l("div", Ii, L(Xt.value ? v() : P.categories[Ue.value.categoryIndex] || `Category ${Ue.value.categoryIndex + 1}`), 1),
|
|
3605
3605
|
Xt.value ? (c(), d("div", Ni, [
|
|
3606
3606
|
(c(!0), d(ee, null, me(Ue.value.data, (t, u) => (c(), d("div", {
|
|
3607
3607
|
key: `crosshair-tooltip-${u}`,
|
|
@@ -3844,8 +3844,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3844
3844
|
}
|
|
3845
3845
|
},
|
|
3846
3846
|
emits: ["close-modal"],
|
|
3847
|
-
setup(
|
|
3848
|
-
const W =
|
|
3847
|
+
setup(P, { emit: $e }) {
|
|
3848
|
+
const W = P, U = $e, De = H(null), x = H(null), Oe = y(() => {
|
|
3849
3849
|
const I = {
|
|
3850
3850
|
"max-width": W.width
|
|
3851
3851
|
};
|
|
@@ -3865,7 +3865,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3865
3865
|
De.value = null;
|
|
3866
3866
|
}, 300);
|
|
3867
3867
|
}
|
|
3868
|
-
function
|
|
3868
|
+
function Ee() {
|
|
3869
3869
|
const I = document.body, ze = document.documentElement;
|
|
3870
3870
|
x.value = {
|
|
3871
3871
|
bodyOverflow: I.style.overflow,
|
|
@@ -3885,7 +3885,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3885
3885
|
() => W.showModal,
|
|
3886
3886
|
(I) => {
|
|
3887
3887
|
if (I)
|
|
3888
|
-
|
|
3888
|
+
Ee(), document.body.classList.add("dss-modal-open"), setTimeout(() => {
|
|
3889
3889
|
const ze = document.getElementById("dss-modal-backdrop");
|
|
3890
3890
|
ze && (ze.addEventListener("focusin", be), ze.addEventListener("focusout", Ve));
|
|
3891
3891
|
}, 100);
|
|
@@ -3899,7 +3899,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3899
3899
|
), es(() => {
|
|
3900
3900
|
W.showModal && le();
|
|
3901
3901
|
}), (I, ze) => (c(), al(ll, { to: "body" }, [
|
|
3902
|
-
|
|
3902
|
+
P.showModal ? (c(), d("div", {
|
|
3903
3903
|
key: 0,
|
|
3904
3904
|
class: "dss-modal-backdrop",
|
|
3905
3905
|
onClick: h
|
|
@@ -3916,7 +3916,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3916
3916
|
}, [
|
|
3917
3917
|
l("div", {
|
|
3918
3918
|
class: "dss-modal-header",
|
|
3919
|
-
style: re({ "justify-content":
|
|
3919
|
+
style: re({ "justify-content": P.headerType, "font-size": P.titleSize })
|
|
3920
3920
|
}, [
|
|
3921
3921
|
l("h1", wr, [
|
|
3922
3922
|
mn(I.$slots, "title", {}, () => [
|
|
@@ -3924,7 +3924,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3924
3924
|
])
|
|
3925
3925
|
]),
|
|
3926
3926
|
mn(I.$slots, "title-data"),
|
|
3927
|
-
|
|
3927
|
+
P.showCloseBtn ? (c(), d("span", {
|
|
3928
3928
|
key: 0,
|
|
3929
3929
|
class: "dss-modal-close",
|
|
3930
3930
|
onClick: Qe,
|
|
@@ -3944,7 +3944,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
3944
3944
|
])
|
|
3945
3945
|
])
|
|
3946
3946
|
], 4), [
|
|
3947
|
-
[ml,
|
|
3947
|
+
[ml, P.showModal]
|
|
3948
3948
|
])
|
|
3949
3949
|
])) : R("", !0)
|
|
3950
3950
|
]));
|
|
@@ -4029,7 +4029,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4029
4029
|
options: {
|
|
4030
4030
|
type: Object,
|
|
4031
4031
|
default: () => ({}),
|
|
4032
|
-
validator: (
|
|
4032
|
+
validator: (P) => typeof P == "object" && P !== null
|
|
4033
4033
|
}
|
|
4034
4034
|
},
|
|
4035
4035
|
emits: [
|
|
@@ -4046,8 +4046,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4046
4046
|
"download-excel",
|
|
4047
4047
|
"search"
|
|
4048
4048
|
],
|
|
4049
|
-
setup(
|
|
4050
|
-
const { t: W, locale: U } = ns(), De =
|
|
4049
|
+
setup(P, { emit: $e }) {
|
|
4050
|
+
const { t: W, locale: U } = ns(), De = P, x = $e, Oe = {
|
|
4051
4051
|
table: {
|
|
4052
4052
|
width: "auto",
|
|
4053
4053
|
height: null,
|
|
@@ -4107,9 +4107,9 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4107
4107
|
const h = y(() => fe(Oe, De.options)), be = y(() => {
|
|
4108
4108
|
const k = h.value.table.width;
|
|
4109
4109
|
return k === "auto" ? null : typeof k == "number" ? k : null;
|
|
4110
|
-
}), Ve = y(() => h.value.table.height),
|
|
4110
|
+
}), Ve = y(() => h.value.table.height), Ee = y(() => h.value.table.rowHeight ?? "auto"), le = y(() => ({ height: Ee.value })), I = y(() => h.value.table.expandable === !0), ze = y(() => h.value.table.truncated === !0), et = y(() => h.value.table.striped), qe = y(() => h.value.table.bordered), ut = y(() => h.value.table.hoverable), X = y(() => h.value.table.size), kt = y(() => h.value.table.align || "left");
|
|
4111
4111
|
y(() => h.value.title.text), y(() => h.value.subtitle.text);
|
|
4112
|
-
const Mt = y(() => h.value.selection.enabled),
|
|
4112
|
+
const Mt = y(() => h.value.selection.enabled), He = y(() => h.value.selection.mode), Kt = y(() => h.value.sorting.enabled), Nt = y(() => h.value.sorting.mode), ht = y(() => h.value.pagination.enabled), Be = y(() => h.value.pagination.rows), ve = y(() => h.value.pagination.rowsPerPageOptions), Hn = y(() => h.value.scrollable), bt = y(() => h.value.emptyMessage), dt = y(() => h.value.toolbar?.downloads?.pdf !== !1), kn = y(() => h.value.toolbar?.downloads?.excel !== !1), rn = y(() => h.value.toolbar?.search !== !1), ye = y(() => dt.value || kn.value || rn.value || Re.value), Re = y(() => h.value.toolbar?.columnVisibility !== !1), ce = H(""), pe = H(!1), it = H(null);
|
|
4113
4113
|
let xt = null;
|
|
4114
4114
|
function at() {
|
|
4115
4115
|
pe.value ? (xt && (clearTimeout(xt), xt = null), pe.value = !1, ce.value = "", x("search", ""), it.value?.blur()) : (pe.value = !0, xt = setTimeout(() => {
|
|
@@ -4149,7 +4149,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4149
4149
|
function We(k) {
|
|
4150
4150
|
pt.value && !pt.value.contains(k.target) && (Tt.value = !1);
|
|
4151
4151
|
}
|
|
4152
|
-
const st = y(() => Lt.value.length + (Mt.value ? 1 : 0) + (I.value ? 1 : 0)), j = (k, w) => k?.id ?? k?.key ?? w, G = H(/* @__PURE__ */ new Set()), te = H(null), ue = (k, w) => G.value.has(j(k, w)),
|
|
4152
|
+
const st = y(() => Lt.value.length + (Mt.value ? 1 : 0) + (I.value ? 1 : 0)), j = (k, w) => k?.id ?? k?.key ?? w, G = H(/* @__PURE__ */ new Set()), te = H(null), ue = (k, w) => G.value.has(j(k, w)), Ae = (k, w, E) => {
|
|
4153
4153
|
E && E.stopPropagation();
|
|
4154
4154
|
const Z = j(k, w), ke = new Set(G.value);
|
|
4155
4155
|
ke.has(Z) ? (ke.delete(Z), x("row-collapse", { data: k, index: w })) : (ke.add(Z), x("row-expand", { data: k, index: w })), G.value = ke;
|
|
@@ -4363,7 +4363,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4363
4363
|
}
|
|
4364
4364
|
}, Je = (k, w) => {
|
|
4365
4365
|
const E = j(k, w), Z = new Set(Kn.value), ke = Z.has(E);
|
|
4366
|
-
|
|
4366
|
+
He.value === "single" ? ke ? (Z.delete(E), x("row-unselect", k)) : (Z.clear(), Z.add(E), x("row-select", k)) : ke ? (Z.delete(E), x("row-unselect", k)) : (Z.add(E), x("row-select", k)), Kn.value = Z;
|
|
4367
4367
|
}, cn = y(() => {
|
|
4368
4368
|
const k = Dn.value, w = $n.value + 1, E = 2, Z = [], ke = [];
|
|
4369
4369
|
let lt;
|
|
@@ -4462,7 +4462,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4462
4462
|
gl(Jl, { name: "dss-dropdown" }, {
|
|
4463
4463
|
default: Aa(() => [
|
|
4464
4464
|
xn(l("ul", _r, [
|
|
4465
|
-
(c(!0), d(ee, null, me(
|
|
4465
|
+
(c(!0), d(ee, null, me(P.columns, (E, Z) => (c(), d("li", {
|
|
4466
4466
|
key: mt(E, Z),
|
|
4467
4467
|
role: "option",
|
|
4468
4468
|
class: "dss-table-column-visibility-option",
|
|
@@ -4571,7 +4571,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4571
4571
|
l("thead", Ir, [
|
|
4572
4572
|
l("tr", null, [
|
|
4573
4573
|
Mt.value ? (c(), d("th", Nr, [
|
|
4574
|
-
|
|
4574
|
+
He.value === "multiple" ? (c(), d("span", Fr, [
|
|
4575
4575
|
l("input", {
|
|
4576
4576
|
type: "checkbox",
|
|
4577
4577
|
checked: ja.value,
|
|
@@ -4704,16 +4704,16 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4704
4704
|
}, [
|
|
4705
4705
|
l("span", Qr, [
|
|
4706
4706
|
l("input", {
|
|
4707
|
-
type:
|
|
4708
|
-
name: `dss-table-select-${
|
|
4707
|
+
type: He.value === "multiple" ? "checkbox" : "radio",
|
|
4708
|
+
name: `dss-table-select-${P.tableId}`,
|
|
4709
4709
|
checked: we(E, Ln.value + Z),
|
|
4710
4710
|
onChange: (ke) => Je(E, Ln.value + Z),
|
|
4711
4711
|
class: ae([
|
|
4712
4712
|
"dss-table-checkbox",
|
|
4713
|
-
|
|
4713
|
+
He.value === "multiple" ? "dss-table-checkbox--checkbox" : "dss-table-checkbox--radio"
|
|
4714
4714
|
])
|
|
4715
4715
|
}, null, 42, Jr),
|
|
4716
|
-
|
|
4716
|
+
He.value === "multiple" && we(E, Ln.value + Z) ? (c(), d("span", eu, [...w[32] || (w[32] = [
|
|
4717
4717
|
l("svg", {
|
|
4718
4718
|
viewBox: "0 0 12 12",
|
|
4719
4719
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -4727,13 +4727,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
4727
4727
|
fill: "currentColor"
|
|
4728
4728
|
})
|
|
4729
4729
|
], -1)
|
|
4730
|
-
])])) :
|
|
4730
|
+
])])) : He.value === "single" && we(E, Ln.value + Z) ? (c(), d("span", tu)) : R("", !0)
|
|
4731
4731
|
])
|
|
4732
4732
|
])) : R("", !0),
|
|
4733
4733
|
I.value ? (c(), d("td", {
|
|
4734
4734
|
key: 1,
|
|
4735
4735
|
class: "dss-table-td dss-table-expansion-cell",
|
|
4736
|
-
onClick: Xe((ke) =>
|
|
4736
|
+
onClick: Xe((ke) => Ae(E, Ln.value + Z, ke), ["stop"])
|
|
4737
4737
|
}, [
|
|
4738
4738
|
l("button", {
|
|
4739
4739
|
type: "button",
|
|
@@ -5267,7 +5267,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5267
5267
|
options: {
|
|
5268
5268
|
type: Object,
|
|
5269
5269
|
default: () => ({}),
|
|
5270
|
-
validator: (
|
|
5270
|
+
validator: (P) => typeof P == "object" && P !== null
|
|
5271
5271
|
},
|
|
5272
5272
|
floatingToolbar: {
|
|
5273
5273
|
type: Boolean,
|
|
@@ -5288,7 +5288,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5288
5288
|
customToolbarFloatingMap: {
|
|
5289
5289
|
type: Object,
|
|
5290
5290
|
default: () => ({}),
|
|
5291
|
-
validator: (
|
|
5291
|
+
validator: (P) => typeof P == "object" && P !== null
|
|
5292
5292
|
},
|
|
5293
5293
|
locale: {
|
|
5294
5294
|
type: String,
|
|
@@ -5312,10 +5312,10 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5312
5312
|
"comment-marker-clicked",
|
|
5313
5313
|
"comment-deleted"
|
|
5314
5314
|
],
|
|
5315
|
-
setup(
|
|
5316
|
-
const { t: U, locale: De } = ns(), x =
|
|
5315
|
+
setup(P, { expose: $e, emit: W }) {
|
|
5316
|
+
const { t: U, locale: De } = ns(), x = P, Oe = W, fe = $s(), Qe = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5317
5317
|
<path d="M10 0C4.5 0 0 4.5 0 10C0 15.5 4.5 20 10 20C15.5 20 20 15.5 20 10C20 4.5 15.5 0 10 0ZM2 10C2 5.6 5.6 2 10 2C11.8 2 13.5 2.6 14.9 3.7L3.7 14.9C2.6 13.5 2 11.8 2 10ZM10 18C8.2 18 6.5 17.4 5.1 16.3L16.3 5.1C17.4 6.5 18 8.2 18 10C18 14.4 14.4 18 10 18Z" fill="#c13340"/>
|
|
5318
|
-
</svg>`, h = H(null), be = H(null), Ve = H(!1),
|
|
5318
|
+
</svg>`, h = H(null), be = H(null), Ve = H(!1), Ee = H(!1), le = H(!1), I = H(""), ze = H({}), et = H(!1), qe = H(!1), ut = H(""), X = H(""), kt = H(null), Mt = H(null), He = H(null), Kt = H(null), Nt = H(""), ht = H(!1), Be = H({}), ve = H(!1), Hn = H({}), bt = H(null), dt = H(null), kn = H(!1), rn = H(""), ye = H(null), Re = H(""), ce = H(""), pe = H(""), it = H(null), xt = H(null), at = H(null), Ne = H(null), nn = H(null), Zt = H(!1), mt = H(""), gn = H({}), Gt = H(!1), Lt = H("upload"), qt = H(""), Ct = H(null), yn = H(null), pt = H([]), Tt = H([]), We = H(null), st = H(!1), j = H(""), G = H(""), te = H(""), ue = H(""), Ae = H(""), ft = H(""), Fe = H(null), tt = H(null), St = H(null), Ft = H(!1), Ot = H(null), Ut = H(!1), Ye = H(!1), Qt = H(null), Ht = H("p"), zn = H(!1), an = H([]), Pt = H(null), zt = H(null), Un = H(null), Xn = H(!1), Mn = H(0), Sn = 100, un = H(null), _n = y(() => ({
|
|
5319
5319
|
"dss-text-editor-no-border": !x.border,
|
|
5320
5320
|
"dss-text-editor-rounded": x.rounded,
|
|
5321
5321
|
"dss-text-editor-full-height": x.fullHeight,
|
|
@@ -5422,7 +5422,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5422
5422
|
a.value = n, a.offsetHeight, a.style.setProperty("height", `${s}px`, "important"), a.style.setProperty("overflow-y", "hidden", "important"), a.style.setProperty("overflow-x", "hidden", "important"), a.style.setProperty("text-overflow", "ellipsis", "important"), a.style.setProperty("white-space", "nowrap", "important");
|
|
5423
5423
|
}, Kn = (a) => {
|
|
5424
5424
|
const s = a.target.value;
|
|
5425
|
-
Ut.value && Dn(), Oe("update:title", s), Oe("title-change", s), St.value = "title", x.richText && (st.value || (G.value = j.value,
|
|
5425
|
+
Ut.value && Dn(), Oe("update:title", s), Oe("title-change", s), St.value = "title", x.richText && (st.value || (G.value = j.value, Ae.value = te.value, ft.value = ue.value), We.value && clearTimeout(We.value), st.value = !0, We.value = setTimeout(() => {
|
|
5426
5426
|
st.value = !1, Ze();
|
|
5427
5427
|
}, 500));
|
|
5428
5428
|
}, Ta = () => {
|
|
@@ -5452,7 +5452,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5452
5452
|
a.value = n, a.offsetHeight, a.style.setProperty("height", `${s}px`, "important"), a.style.setProperty("overflow-y", "hidden", "important"), a.style.setProperty("overflow-x", "hidden", "important"), a.style.setProperty("text-overflow", "ellipsis", "important"), a.style.setProperty("white-space", "nowrap", "important");
|
|
5453
5453
|
}, Ka = (a) => {
|
|
5454
5454
|
const s = a.target.value;
|
|
5455
|
-
Ye.value && Ta(), Oe("update:description", s), Oe("description-change", s), St.value = "description", x.richText && (st.value || (G.value = j.value,
|
|
5455
|
+
Ye.value && Ta(), Oe("update:description", s), Oe("description-change", s), St.value = "description", x.richText && (st.value || (G.value = j.value, Ae.value = te.value, ft.value = ue.value), We.value && clearTimeout(We.value), st.value = !0, We.value = setTimeout(() => {
|
|
5456
5456
|
st.value = !1, Ze();
|
|
5457
5457
|
}, 500));
|
|
5458
5458
|
}, Je = () => {
|
|
@@ -5526,20 +5526,20 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5526
5526
|
return;
|
|
5527
5527
|
const r = {
|
|
5528
5528
|
content: G.value || j.value,
|
|
5529
|
-
title:
|
|
5529
|
+
title: Ae.value !== void 0 ? Ae.value : te.value,
|
|
5530
5530
|
description: ft.value !== void 0 ? ft.value : ue.value
|
|
5531
5531
|
}, f = pt.value.length > 0 ? pt.value[pt.value.length - 1] : null;
|
|
5532
5532
|
let v = !0;
|
|
5533
|
-
f && (typeof f == "string" ? v = r.content !== f : v = r.content !== f.content || r.title !== f.title || r.description !== f.description), v && (pt.value.push(r), pt.value.length > 50 && pt.value.shift(), Tt.value = []), j.value = n, te.value = s, ue.value = i, G.value = n,
|
|
5533
|
+
f && (typeof f == "string" ? v = r.content !== f : v = r.content !== f.content || r.title !== f.title || r.description !== f.description), v && (pt.value.push(r), pt.value.length > 50 && pt.value.shift(), Tt.value = []), j.value = n, te.value = s, ue.value = i, G.value = n, Ae.value = s, ft.value = i;
|
|
5534
5534
|
}, q = (a) => {
|
|
5535
5535
|
if (!h.value) return;
|
|
5536
5536
|
Dt(), h.value && Fa(h.value);
|
|
5537
5537
|
let n = null;
|
|
5538
5538
|
h.value && (h.value.querySelector("p") || (n = Je(), xe()));
|
|
5539
5539
|
const s = a && a.inputType && (a.inputType === "insertText" || a.inputType === "insertCompositionText" || a.inputType === "deleteContentBackward" || a.inputType === "deleteContentForward");
|
|
5540
|
-
s && Qt.value && (Qt.value = null),
|
|
5540
|
+
s && Qt.value && (Qt.value = null), Ee.value = !0;
|
|
5541
5541
|
const i = h.value.innerHTML.replace(/<!--[\s\S]*?-->/g, "").replace(/ |\u00A0/g, " "), r = An(i);
|
|
5542
|
-
Oe("update:modelValue", r), Oe("change", r), St.value = "editor", st.value || (G.value = j.value,
|
|
5542
|
+
Oe("update:modelValue", r), Oe("change", r), St.value = "editor", st.value || (G.value = j.value, Ae.value = te.value, ft.value = ue.value), We.value && clearTimeout(We.value), st.value = !0, We.value = setTimeout(() => {
|
|
5543
5543
|
st.value = !1, Ze(), $l(), pn();
|
|
5544
5544
|
}, 500), ie(() => {
|
|
5545
5545
|
n && cn(n), Dt();
|
|
@@ -5584,7 +5584,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5584
5584
|
$l();
|
|
5585
5585
|
}, 100);
|
|
5586
5586
|
}
|
|
5587
|
-
|
|
5587
|
+
Ee.value = !1;
|
|
5588
5588
|
});
|
|
5589
5589
|
}, Dt = () => {
|
|
5590
5590
|
if (!h.value) return;
|
|
@@ -5705,12 +5705,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5705
5705
|
Tt.value.push(i);
|
|
5706
5706
|
const r = pt.value.pop();
|
|
5707
5707
|
if (r !== void 0) {
|
|
5708
|
-
|
|
5708
|
+
Ee.value = !0;
|
|
5709
5709
|
const f = typeof r == "string" ? r : r.content, v = typeof r == "object" && r.title || "", p = typeof r == "object" && r.description || "";
|
|
5710
|
-
h.value.innerHTML = f, j.value = f, te.value = v, ue.value = p, G.value = f,
|
|
5710
|
+
h.value.innerHTML = f, j.value = f, te.value = v, ue.value = p, G.value = f, Ae.value = v, ft.value = p, ie(() => {
|
|
5711
5711
|
Rn(), Tn(), Qn(), Jt();
|
|
5712
5712
|
const m = An(f);
|
|
5713
|
-
Oe("update:modelValue", m), Oe("update:title", v), Oe("update:description", p), Oe("change", m), Oe("title-change", v), Oe("description-change", p),
|
|
5713
|
+
Oe("update:modelValue", m), Oe("update:title", v), Oe("update:description", p), Oe("change", m), Oe("title-change", v), Oe("description-change", p), Ee.value = !1, ie(() => {
|
|
5714
5714
|
setTimeout(() => {
|
|
5715
5715
|
if (a) {
|
|
5716
5716
|
if (Fe.value) {
|
|
@@ -5755,12 +5755,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
5755
5755
|
pt.value.push(i);
|
|
5756
5756
|
const r = Tt.value.pop();
|
|
5757
5757
|
if (r !== void 0) {
|
|
5758
|
-
|
|
5758
|
+
Ee.value = !0;
|
|
5759
5759
|
const f = typeof r == "string" ? r : r.content, v = typeof r == "object" && r.title || "", p = typeof r == "object" && r.description || "";
|
|
5760
|
-
h.value.innerHTML = f, j.value = f, te.value = v, ue.value = p, G.value = f,
|
|
5760
|
+
h.value.innerHTML = f, j.value = f, te.value = v, ue.value = p, G.value = f, Ae.value = v, ft.value = p, ie(() => {
|
|
5761
5761
|
Rn(), Tn(), Qn(), Jt();
|
|
5762
5762
|
const m = An(f);
|
|
5763
|
-
Oe("update:modelValue", m), Oe("update:title", v), Oe("update:description", p), Oe("change", m), Oe("title-change", v), Oe("description-change", p),
|
|
5763
|
+
Oe("update:modelValue", m), Oe("update:title", v), Oe("update:description", p), Oe("change", m), Oe("title-change", v), Oe("description-change", p), Ee.value = !1, ie(() => {
|
|
5764
5764
|
setTimeout(() => {
|
|
5765
5765
|
if (a) {
|
|
5766
5766
|
if (Fe.value) {
|
|
@@ -6400,7 +6400,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
6400
6400
|
a && a.rangeCount > 0 && a.getRangeAt(0), Kt.value = Je();
|
|
6401
6401
|
const n = window.getSelection();
|
|
6402
6402
|
let s = "";
|
|
6403
|
-
n.rangeCount > 0 && (s = n.getRangeAt(0).toString()), ut.value = "", X.value = s, Nt.value = "",
|
|
6403
|
+
n.rangeCount > 0 && (s = n.getRangeAt(0).toString()), ut.value = "", X.value = s, Nt.value = "", He.value = null, qe.value = !0, Rt(), ie(() => {
|
|
6404
6404
|
kt.value && kt.value.focus();
|
|
6405
6405
|
});
|
|
6406
6406
|
}, ka = () => {
|
|
@@ -6412,7 +6412,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
6412
6412
|
const i = a.getRangeAt(0).commonAncestorContainer;
|
|
6413
6413
|
n = i.nodeType === 1 ? i.closest("a") : i.parentElement?.closest("a");
|
|
6414
6414
|
}
|
|
6415
|
-
if (!n &&
|
|
6415
|
+
if (!n && He.value && (n = He.value), n && n.parentNode) {
|
|
6416
6416
|
const s = document.createDocumentFragment();
|
|
6417
6417
|
for (; n.firstChild; )
|
|
6418
6418
|
s.appendChild(n.firstChild);
|
|
@@ -6420,7 +6420,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
6420
6420
|
const i = document.createRange();
|
|
6421
6421
|
i.setStartBefore(s.firstChild), i.setEndAfter(s.lastChild || s.firstChild), a.removeAllRanges(), a.addRange(i), document.execCommand("removeFormat", !1), i.collapse(!1), a.removeAllRanges(), a.addRange(i);
|
|
6422
6422
|
}
|
|
6423
|
-
|
|
6423
|
+
He.value = null;
|
|
6424
6424
|
} else
|
|
6425
6425
|
je("unlink");
|
|
6426
6426
|
Ve.value = !1, Rt(), ie(() => {
|
|
@@ -6702,7 +6702,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
6702
6702
|
n.push(p);
|
|
6703
6703
|
}
|
|
6704
6704
|
Cl.value = !0, Oe("update:comments", n);
|
|
6705
|
-
},
|
|
6705
|
+
}, B = (a, n = []) => {
|
|
6706
6706
|
if (x.disabled || !x.richText || !h.value) return;
|
|
6707
6707
|
const s = h.value;
|
|
6708
6708
|
let i = null;
|
|
@@ -7295,7 +7295,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7295
7295
|
}
|
|
7296
7296
|
ie(() => {
|
|
7297
7297
|
const p = h.value.innerHTML || "", m = x.title || "", b = x.description || "";
|
|
7298
|
-
j.value = p, te.value = m, ue.value = b,
|
|
7298
|
+
j.value = p, te.value = m, ue.value = b, Ae.value = m, ft.value = b, Rn(), Wn(), Z(), ia(), Kl(), tl();
|
|
7299
7299
|
}), Tn(), Qn(), h.value._mutationObserver = v;
|
|
7300
7300
|
}
|
|
7301
7301
|
}), es(() => {
|
|
@@ -7490,7 +7490,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7490
7490
|
if (Ra && (clearTimeout(Ra), Ra = null), Jn && (clearTimeout(Jn), Jn = null), s && s !== Za) {
|
|
7491
7491
|
Ja(), Za = s;
|
|
7492
7492
|
let r = s.getAttribute("href") || "";
|
|
7493
|
-
(!r || r === "#" || r === "") && (r = s.textContent || ""),
|
|
7493
|
+
(!r || r === "#" || r === "") && (r = s.textContent || ""), He.value = s, I.value = r, le.value = !0, et.value = !0, _l(s);
|
|
7494
7494
|
} else !s && Za ? (Za = null, Ra = setTimeout(() => {
|
|
7495
7495
|
et.value || Ua();
|
|
7496
7496
|
}, 150)) : s && s === Za && _l(s);
|
|
@@ -7508,7 +7508,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7508
7508
|
(!n || !n.closest(".dss-text-editor-content") && !n.closest(".dss-link-popup")) && (Za = null, qa = null, Ra && (clearTimeout(Ra), Ra = null), Jn && (clearTimeout(Jn), Jn = null), Ua(), Ja());
|
|
7509
7509
|
}, Ua = () => {
|
|
7510
7510
|
et.value = !1, setTimeout(() => {
|
|
7511
|
-
et.value || (le.value = !1, I.value = "", qe.value || (
|
|
7511
|
+
et.value || (le.value = !1, I.value = "", qe.value || (He.value = null));
|
|
7512
7512
|
}, 100);
|
|
7513
7513
|
}, _l = (a) => {
|
|
7514
7514
|
if (!a || !h.value) return;
|
|
@@ -7535,42 +7535,42 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7535
7535
|
zIndex: 10002
|
|
7536
7536
|
};
|
|
7537
7537
|
}, ha = () => {
|
|
7538
|
-
if (!I.value || !
|
|
7539
|
-
let n =
|
|
7538
|
+
if (!I.value || !He.value) return;
|
|
7539
|
+
let n = He.value.getAttribute("href") || I.value;
|
|
7540
7540
|
!n.startsWith("http://") && !n.startsWith("https://") && !n.startsWith("mailto:") && (n = "https://" + n), window.open(n, "_blank", "noopener,noreferrer");
|
|
7541
7541
|
}, Ia = () => {
|
|
7542
|
-
if (
|
|
7543
|
-
const a =
|
|
7544
|
-
ut.value = n, X.value = a, Nt.value = a, et.value = !1, le.value = !1, I.value = "",
|
|
7542
|
+
if (He.value) {
|
|
7543
|
+
const a = He.value.textContent || "", n = He.value.getAttribute("href") || "", s = He.value;
|
|
7544
|
+
ut.value = n, X.value = a, Nt.value = a, et.value = !1, le.value = !1, I.value = "", He.value = s, qe.value = !0;
|
|
7545
7545
|
} else if (Ve.value) {
|
|
7546
7546
|
const a = window.getSelection();
|
|
7547
7547
|
if (a.rangeCount > 0) {
|
|
7548
7548
|
const s = a.getRangeAt(0).commonAncestorContainer, i = s.nodeType === 1 ? s.closest("a") : s.parentElement?.closest("a");
|
|
7549
7549
|
if (i) {
|
|
7550
7550
|
const r = i.textContent || "", f = i.getAttribute("href") || "";
|
|
7551
|
-
ut.value = f, X.value = r, Nt.value = r,
|
|
7551
|
+
ut.value = f, X.value = r, Nt.value = r, He.value = i, qe.value = !0;
|
|
7552
7552
|
}
|
|
7553
7553
|
}
|
|
7554
7554
|
} else {
|
|
7555
7555
|
Kt.value = Je();
|
|
7556
7556
|
const a = window.getSelection();
|
|
7557
7557
|
let n = "";
|
|
7558
|
-
a.rangeCount > 0 && (n = a.getRangeAt(0).toString()), ut.value = "", X.value = n, Nt.value = "",
|
|
7558
|
+
a.rangeCount > 0 && (n = a.getRangeAt(0).toString()), ut.value = "", X.value = n, Nt.value = "", He.value = null, qe.value = !0;
|
|
7559
7559
|
}
|
|
7560
7560
|
ie(() => {
|
|
7561
7561
|
kt.value && (kt.value.focus(), kt.value.select());
|
|
7562
7562
|
});
|
|
7563
7563
|
}, ea = () => {
|
|
7564
|
-
qe.value = !1, ut.value = "", X.value = "", Nt.value = "",
|
|
7564
|
+
qe.value = !1, ut.value = "", X.value = "", Nt.value = "", He.value = null, Kt.value = null;
|
|
7565
7565
|
}, Wt = () => {
|
|
7566
7566
|
if (!ut.value.trim()) {
|
|
7567
7567
|
ea();
|
|
7568
7568
|
return;
|
|
7569
7569
|
}
|
|
7570
|
-
if (st.value ? (We.value && (clearTimeout(We.value), We.value = null), Ze(), st.value = !1) : Ze(), X.value.trim() || (X.value = ut.value.trim()),
|
|
7570
|
+
if (st.value ? (We.value && (clearTimeout(We.value), We.value = null), Ze(), st.value = !1) : Ze(), X.value.trim() || (X.value = ut.value.trim()), He.value && h.value && h.value.contains(He.value)) {
|
|
7571
7571
|
const a = window.getSelection();
|
|
7572
7572
|
a.rangeCount > 0 && a.removeAllRanges();
|
|
7573
|
-
const n =
|
|
7573
|
+
const n = He.value;
|
|
7574
7574
|
if (n.setAttribute("href", ut.value.trim()), X.value.trim() !== Nt.value.trim()) {
|
|
7575
7575
|
for (; n.firstChild; )
|
|
7576
7576
|
n.removeChild(n.firstChild);
|
|
@@ -7639,7 +7639,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7639
7639
|
Tn(), ea();
|
|
7640
7640
|
});
|
|
7641
7641
|
}, $l = () => {
|
|
7642
|
-
if (!h.value ||
|
|
7642
|
+
if (!h.value || Ee.value) return;
|
|
7643
7643
|
const a = window.getSelection();
|
|
7644
7644
|
let n = null;
|
|
7645
7645
|
a && a.rangeCount > 0 && (n = Je());
|
|
@@ -7721,7 +7721,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7721
7721
|
}), m < v.length && b.appendChild(document.createTextNode(v.substring(m))), f.parentNode && b.childNodes.length > 0 && f.parentNode.replaceChild(b, f);
|
|
7722
7722
|
}
|
|
7723
7723
|
}, pn = (a) => {
|
|
7724
|
-
if (!h.value ||
|
|
7724
|
+
if (!h.value || Ee.value) return;
|
|
7725
7725
|
if (!a) {
|
|
7726
7726
|
en();
|
|
7727
7727
|
return;
|
|
@@ -7905,14 +7905,14 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
7905
7905
|
});
|
|
7906
7906
|
};
|
|
7907
7907
|
At(() => x.modelValue, (a) => {
|
|
7908
|
-
if (x.richText && h.value &&
|
|
7908
|
+
if (x.richText && h.value && !Ee.value) {
|
|
7909
7909
|
const n = oa(a || ""), i = h.value.innerHTML.replace(/ |\u00A0/g, " "), r = n.replace(/ |\u00A0/g, " ");
|
|
7910
7910
|
if (i !== r) {
|
|
7911
7911
|
const f = Je();
|
|
7912
7912
|
h.value.innerHTML = n, ie(() => {
|
|
7913
7913
|
xe();
|
|
7914
7914
|
const v = h.value.innerHTML || "", p = x.title || "", m = x.description || "";
|
|
7915
|
-
j.value = v, te.value = p, ue.value = m, G.value = v,
|
|
7915
|
+
j.value = v, te.value = p, ue.value = m, G.value = v, Ae.value = p, ft.value = m, pt.value = [], Tt.value = [], We.value && (clearTimeout(We.value), We.value = null), st.value = !1, f && cn(f), Rn(), Wn(), Z(), Tn(), Jt(), ia(), ta("watch-modelValue");
|
|
7916
7916
|
});
|
|
7917
7917
|
}
|
|
7918
7918
|
}
|
|
@@ -8275,15 +8275,15 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
8275
8275
|
}));
|
|
8276
8276
|
}), At(() => x.locale, (a) => {
|
|
8277
8277
|
a && a !== De.value && (De.value = a);
|
|
8278
|
-
}, { immediate: !0 }),
|
|
8279
|
-
openCommentOverlayForSelector:
|
|
8278
|
+
}, { immediate: !0 }), $e({
|
|
8279
|
+
openCommentOverlayForSelector: B,
|
|
8280
8280
|
updateCommentMarkers: ta,
|
|
8281
8281
|
restoreCommentsFromModel: tl
|
|
8282
8282
|
}), (a, n) => (c(), d("div", {
|
|
8283
8283
|
class: ae(["dss-text-editor-container editor-with-comments", _n.value]),
|
|
8284
8284
|
style: re(sa.value)
|
|
8285
8285
|
}, [
|
|
8286
|
-
|
|
8286
|
+
P.richText ? (c(), d("div", {
|
|
8287
8287
|
key: 0,
|
|
8288
8288
|
class: "dss-text-editor-toolbar",
|
|
8289
8289
|
onMousedown: n[14] || (n[14] = Xe(() => {
|
|
@@ -8732,8 +8732,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
8732
8732
|
})
|
|
8733
8733
|
], -1)
|
|
8734
8734
|
])], 8, sc)) : R("", !0),
|
|
8735
|
-
|
|
8736
|
-
|
|
8735
|
+
P.askAi ? (c(), d("div", oc)) : R("", !0),
|
|
8736
|
+
P.askAi ? (c(), d("div", ic, [
|
|
8737
8737
|
l("div", {
|
|
8738
8738
|
class: "dss-toolbar-ai-button dss-toolbar-dropdown-toggle",
|
|
8739
8739
|
onClick: n[12] || (n[12] = (s) => xa("askAi")),
|
|
@@ -8768,15 +8768,15 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
8768
8768
|
])) : R("", !0)
|
|
8769
8769
|
]),
|
|
8770
8770
|
l("div", cc, [
|
|
8771
|
-
(c(!0), d(ee, null, me(
|
|
8771
|
+
(c(!0), d(ee, null, me(P.customToolbarSlots, (s, i) => (c(), d(ee, { key: i }, [
|
|
8772
8772
|
Bt(s) ? (c(), d("div", dc, [
|
|
8773
8773
|
mn(a.$slots, s)
|
|
8774
8774
|
])) : R("", !0),
|
|
8775
|
-
Bt(s) && i <
|
|
8775
|
+
Bt(s) && i < P.customToolbarSlots.length - 1 && Yn(i) ? (c(), d("div", vc)) : R("", !0)
|
|
8776
8776
|
], 64))), 128))
|
|
8777
8777
|
])
|
|
8778
8778
|
], 32)) : R("", !0),
|
|
8779
|
-
(be.value === "paragraph" || be.value === "askAi") &&
|
|
8779
|
+
(be.value === "paragraph" || be.value === "askAi") && P.richText ? (c(), d("div", {
|
|
8780
8780
|
key: 1,
|
|
8781
8781
|
class: "dss-toolbar-dropdown-overlay",
|
|
8782
8782
|
onClick: Rt
|
|
@@ -9028,19 +9028,19 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9028
9028
|
l("p", null, L(z(U)("textEditor.labels.title")), 1),
|
|
9029
9029
|
l("div", jc, [
|
|
9030
9030
|
Ut.value ? R("", !0) : (c(), d("div", Kc, [
|
|
9031
|
-
|
|
9031
|
+
P.title ? (c(), d("span", Gc, L(P.title), 1)) : (c(), d("span", Qc, L(ot.value), 1))
|
|
9032
9032
|
])),
|
|
9033
9033
|
l("textarea", {
|
|
9034
9034
|
ref_key: "titleInputRef",
|
|
9035
9035
|
ref: Fe,
|
|
9036
|
-
value:
|
|
9036
|
+
value: P.title,
|
|
9037
9037
|
onInput: Kn,
|
|
9038
9038
|
onFocus: Ln,
|
|
9039
9039
|
onBlur: sl,
|
|
9040
9040
|
spellcheck: "false",
|
|
9041
9041
|
class: ae(["dss-text-editor-title-input", { "dss-text-editor-title-input-blurred": !Ut.value }]),
|
|
9042
9042
|
placeholder: ot.value,
|
|
9043
|
-
disabled:
|
|
9043
|
+
disabled: P.disabled,
|
|
9044
9044
|
rows: "1"
|
|
9045
9045
|
}, null, 42, Jc)
|
|
9046
9046
|
])
|
|
@@ -9054,19 +9054,19 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9054
9054
|
l("p", null, L(z(U)("textEditor.labels.description")), 1),
|
|
9055
9055
|
l("div", td, [
|
|
9056
9056
|
Ye.value ? R("", !0) : (c(), d("div", nd, [
|
|
9057
|
-
|
|
9057
|
+
P.description ? (c(), d("span", ad, L(P.description), 1)) : (c(), d("span", ld, L(Ge.value), 1))
|
|
9058
9058
|
])),
|
|
9059
9059
|
l("textarea", {
|
|
9060
9060
|
ref_key: "descriptionInputRef",
|
|
9061
9061
|
ref: tt,
|
|
9062
|
-
value:
|
|
9062
|
+
value: P.description,
|
|
9063
9063
|
onInput: Ka,
|
|
9064
9064
|
onFocus: ja,
|
|
9065
9065
|
onBlur: Vt,
|
|
9066
9066
|
spellcheck: "false",
|
|
9067
9067
|
class: ae(["dss-text-editor-description-input", { "dss-text-editor-description-input-blurred": !Ye.value }]),
|
|
9068
9068
|
placeholder: Ge.value,
|
|
9069
|
-
disabled:
|
|
9069
|
+
disabled: P.disabled,
|
|
9070
9070
|
rows: "1"
|
|
9071
9071
|
}, null, 42, sd)
|
|
9072
9072
|
])
|
|
@@ -9117,15 +9117,15 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9117
9117
|
l("span", hd, "+" + L(s.additionalCount), 1)
|
|
9118
9118
|
], 12, pd)) : R("", !0)
|
|
9119
9119
|
], 46, id))), 128)),
|
|
9120
|
-
|
|
9120
|
+
P.richText ? (c(), d("div", xd, [
|
|
9121
9121
|
l("div", {
|
|
9122
9122
|
ref_key: "editorRef",
|
|
9123
9123
|
ref: h,
|
|
9124
9124
|
contenteditable: "true",
|
|
9125
9125
|
spellcheck: "false",
|
|
9126
9126
|
class: ae(["dss-text-editor-content", {
|
|
9127
|
-
"dss-text-editor-content-disabled":
|
|
9128
|
-
"dss-text-editor-fixed-height":
|
|
9127
|
+
"dss-text-editor-content-disabled": P.disabled,
|
|
9128
|
+
"dss-text-editor-fixed-height": P.fixedHeight
|
|
9129
9129
|
}]),
|
|
9130
9130
|
style: re(F.value),
|
|
9131
9131
|
onInput: q,
|
|
@@ -9251,13 +9251,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9251
9251
|
])
|
|
9252
9252
|
])) : (c(), d("div", md, [
|
|
9253
9253
|
l("textarea", {
|
|
9254
|
-
value:
|
|
9254
|
+
value: P.modelValue,
|
|
9255
9255
|
onInput: Ba,
|
|
9256
9256
|
spellcheck: "false",
|
|
9257
|
-
class: ae(["dss-text-editor-textarea", { "dss-text-editor-fixed-height":
|
|
9257
|
+
class: ae(["dss-text-editor-textarea", { "dss-text-editor-fixed-height": P.fixedHeight }]),
|
|
9258
9258
|
placeholder: rt.value,
|
|
9259
|
-
rows:
|
|
9260
|
-
disabled:
|
|
9259
|
+
rows: P.rows,
|
|
9260
|
+
disabled: P.disabled,
|
|
9261
9261
|
style: re(La.value)
|
|
9262
9262
|
}, null, 46, gd),
|
|
9263
9263
|
l("div", yd, [
|
|
@@ -9350,7 +9350,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9350
9350
|
], 36)) : R("", !0)
|
|
9351
9351
|
])),
|
|
9352
9352
|
(c(), al(ll, { to: "body" }, [
|
|
9353
|
-
|
|
9353
|
+
P.floatingToolbar && P.richText && ve.value ? (c(), d("div", {
|
|
9354
9354
|
key: 0,
|
|
9355
9355
|
ref_key: "floatingToolbarRef",
|
|
9356
9356
|
ref: bt,
|
|
@@ -9694,8 +9694,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9694
9694
|
})
|
|
9695
9695
|
], -1)
|
|
9696
9696
|
])], 8, g1),
|
|
9697
|
-
|
|
9698
|
-
|
|
9697
|
+
P.askAi ? (c(), d("div", y1)) : R("", !0),
|
|
9698
|
+
P.askAi ? (c(), d("div", C1, [
|
|
9699
9699
|
l("div", {
|
|
9700
9700
|
class: "dss-toolbar-ai-button dss-toolbar-ai-float dss-toolbar-dropdown-toggle",
|
|
9701
9701
|
onClick: n[42] || (n[42] = Xe((s) => $a("askAi"), ["stop"])),
|
|
@@ -9730,12 +9730,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9730
9730
|
])) : R("", !0)
|
|
9731
9731
|
]),
|
|
9732
9732
|
Ca.value ? (c(), d("div", x1, [
|
|
9733
|
-
|
|
9734
|
-
(c(!0), d(ee, null, me(
|
|
9733
|
+
P.askAi && Ca.value ? (c(), d("div", k1)) : R("", !0),
|
|
9734
|
+
(c(!0), d(ee, null, me(P.customToolbarSlots, (s, i) => (c(), d(ee, { key: i }, [
|
|
9735
9735
|
Bt(s) && Cn(s) ? (c(), d("div", M1, [
|
|
9736
9736
|
mn(a.$slots, s)
|
|
9737
9737
|
])) : R("", !0),
|
|
9738
|
-
Bt(s) && Cn(s) && i <
|
|
9738
|
+
Bt(s) && Cn(s) && i < P.customToolbarSlots.length - 1 && Pn(i) ? (c(), d("div", S1)) : R("", !0)
|
|
9739
9739
|
], 64))), 128))
|
|
9740
9740
|
])) : R("", !0)
|
|
9741
9741
|
], 36)) : R("", !0)
|
|
@@ -9768,7 +9768,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9768
9768
|
mode: {
|
|
9769
9769
|
type: String,
|
|
9770
9770
|
default: "single",
|
|
9771
|
-
validator: (
|
|
9771
|
+
validator: (P) => ["single", "range", "singleFromAvailable", "rangeFromAvailable", "readonly"].includes(P)
|
|
9772
9772
|
},
|
|
9773
9773
|
// For single: Date | null. For range: { start: Date | null, end: Date | null }
|
|
9774
9774
|
modelValue: {
|
|
@@ -9807,13 +9807,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9807
9807
|
}
|
|
9808
9808
|
},
|
|
9809
9809
|
emits: ["update:modelValue"],
|
|
9810
|
-
setup(
|
|
9811
|
-
const W =
|
|
9810
|
+
setup(P, { emit: $e }) {
|
|
9811
|
+
const W = P, U = $e, { t: De, locale: x } = ns(), Oe = H(!1), fe = H("days"), Qe = H((/* @__PURE__ */ new Date()).getMonth()), h = H((/* @__PURE__ */ new Date()).getFullYear()), be = H((/* @__PURE__ */ new Date()).getMonth()), Ve = H((/* @__PURE__ */ new Date()).getFullYear()), Ee = H((/* @__PURE__ */ new Date()).getMonth()), le = H((/* @__PURE__ */ new Date()).getFullYear()), I = H("start"), ze = H(null), et = H(null), qe = /* @__PURE__ */ new Date();
|
|
9812
9812
|
function ut() {
|
|
9813
9813
|
const F = qe.getMonth(), Y = qe.getFullYear(), O = F === 11 ? 0 : F + 1, oe = F === 11 ? Y + 1 : Y;
|
|
9814
9814
|
return { left: { month: F, year: Y }, right: { month: O, year: oe } };
|
|
9815
9815
|
}
|
|
9816
|
-
const X = H(null), kt = H(null), Mt = H(null),
|
|
9816
|
+
const X = H(null), kt = H(null), Mt = H(null), He = H(null), Kt = H(null), Nt = H(null), ht = (/* @__PURE__ */ new Date()).getFullYear(), Be = y(
|
|
9817
9817
|
() => ["single", "singleFromAvailable"].includes(W.mode)
|
|
9818
9818
|
), ve = y(
|
|
9819
9819
|
() => ["range", "rangeFromAvailable"].includes(W.mode)
|
|
@@ -9856,7 +9856,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9856
9856
|
return new Intl.DateTimeFormat(x.value, { month: "long", year: "numeric" }).format(F);
|
|
9857
9857
|
});
|
|
9858
9858
|
const Re = y(
|
|
9859
|
-
() => et.value === "left" ? be.value : et.value === "right" ?
|
|
9859
|
+
() => et.value === "left" ? be.value : et.value === "right" ? Ee.value : Qe.value
|
|
9860
9860
|
), ce = y(
|
|
9861
9861
|
() => et.value === "left" ? Ve.value : et.value === "right" ? le.value : h.value
|
|
9862
9862
|
), pe = y(() => {
|
|
@@ -9896,20 +9896,20 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9896
9896
|
), gn = y(
|
|
9897
9897
|
() => Zt(Ve.value, be.value)
|
|
9898
9898
|
), Gt = y(
|
|
9899
|
-
() => Zt(le.value,
|
|
9899
|
+
() => Zt(le.value, Ee.value)
|
|
9900
9900
|
);
|
|
9901
9901
|
y(() => {
|
|
9902
9902
|
const F = new Date(Ve.value, be.value, 1);
|
|
9903
9903
|
return new Intl.DateTimeFormat(x.value, { month: "long", year: "numeric" }).format(F);
|
|
9904
9904
|
}), y(() => {
|
|
9905
|
-
const F = new Date(le.value,
|
|
9905
|
+
const F = new Date(le.value, Ee.value, 1);
|
|
9906
9906
|
return new Intl.DateTimeFormat(x.value, { month: "long", year: "numeric" }).format(F);
|
|
9907
9907
|
});
|
|
9908
9908
|
const Lt = y(() => {
|
|
9909
9909
|
const F = new Date(Ve.value, be.value, 1);
|
|
9910
9910
|
return new Intl.DateTimeFormat(x.value, { month: "long" }).format(F);
|
|
9911
9911
|
}), qt = y(() => {
|
|
9912
|
-
const F = new Date(le.value,
|
|
9912
|
+
const F = new Date(le.value, Ee.value, 1);
|
|
9913
9913
|
return new Intl.DateTimeFormat(x.value, { month: "long" }).format(F);
|
|
9914
9914
|
}), Ct = y(
|
|
9915
9915
|
() => W.availableDates && W.availableDates.length > 0
|
|
@@ -9931,8 +9931,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9931
9931
|
{ id: "lastYear", labelKey: "datepicker.quickSelect.lastYear" }
|
|
9932
9932
|
]), pt = H({ top: 0, left: 0 });
|
|
9933
9933
|
function Tt() {
|
|
9934
|
-
if (!
|
|
9935
|
-
const F =
|
|
9934
|
+
if (!He.value || !Oe.value) return;
|
|
9935
|
+
const F = He.value.getBoundingClientRect(), Y = window.innerWidth || document.documentElement.clientWidth, O = window.innerHeight || document.documentElement.clientHeight;
|
|
9936
9936
|
let oe = F.left, Le = F.bottom + 4;
|
|
9937
9937
|
const nt = Kt.value;
|
|
9938
9938
|
if (nt) {
|
|
@@ -9944,7 +9944,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9944
9944
|
}
|
|
9945
9945
|
pt.value = { top: Le, left: oe };
|
|
9946
9946
|
}
|
|
9947
|
-
const We = y(() => !
|
|
9947
|
+
const We = y(() => !He.value || !Oe.value ? {} : {
|
|
9948
9948
|
position: "fixed",
|
|
9949
9949
|
left: `${pt.value.left}px`,
|
|
9950
9950
|
top: `${pt.value.top}px`,
|
|
@@ -9966,7 +9966,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9966
9966
|
function ue(F) {
|
|
9967
9967
|
return !W.exceptDates || !W.exceptDates.length ? !1 : W.exceptDates.some((Y) => Y instanceof Date && st(Y, F));
|
|
9968
9968
|
}
|
|
9969
|
-
function
|
|
9969
|
+
function Ae(F) {
|
|
9970
9970
|
return ue(F) ? !1 : ["singleFromAvailable", "rangeFromAvailable"].includes(W.mode) ? G(F) : te(F);
|
|
9971
9971
|
}
|
|
9972
9972
|
function ft(F) {
|
|
@@ -9983,7 +9983,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9983
9983
|
"dss-datepicker__day--range-single": Ge,
|
|
9984
9984
|
"dss-datepicker__day--in-range": Le && !nt && !ot,
|
|
9985
9985
|
"dss-datepicker__day--in-range-preview": Bt && !nt && !ot && !Le,
|
|
9986
|
-
"dss-datepicker__day--disabled": !
|
|
9986
|
+
"dss-datepicker__day--disabled": !Ae(F)
|
|
9987
9987
|
};
|
|
9988
9988
|
}
|
|
9989
9989
|
function Fe(F) {
|
|
@@ -9993,7 +9993,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
9993
9993
|
ze.value = null;
|
|
9994
9994
|
return;
|
|
9995
9995
|
}
|
|
9996
|
-
if (!
|
|
9996
|
+
if (!Ae(F)) {
|
|
9997
9997
|
ze.value = null;
|
|
9998
9998
|
return;
|
|
9999
9999
|
}
|
|
@@ -10008,24 +10008,24 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10008
10008
|
if (Y && O) {
|
|
10009
10009
|
const nt = Y <= O ? Y : O, ot = Y <= O ? O : Y, Ge = nt.getMonth(), rt = nt.getFullYear(), Bt = ot.getMonth(), Yn = ot.getFullYear();
|
|
10010
10010
|
if (Ge !== Bt || rt !== Yn) {
|
|
10011
|
-
const Pn = be.value === Ge && Ve.value === rt, Cn =
|
|
10011
|
+
const Pn = be.value === Ge && Ve.value === rt, Cn = Ee.value === Bt && le.value === Yn;
|
|
10012
10012
|
if (Pn && Cn) return;
|
|
10013
|
-
be.value = Ge, Ve.value = rt,
|
|
10013
|
+
be.value = Ge, Ve.value = rt, Ee.value = Bt, le.value = Yn;
|
|
10014
10014
|
} else {
|
|
10015
10015
|
const Pn = Ge === 0 ? 11 : Ge - 1, Cn = Ge === 0 ? rt - 1 : rt;
|
|
10016
|
-
be.value === Pn && Ve.value === Cn &&
|
|
10016
|
+
be.value === Pn && Ve.value === Cn && Ee.value === Ge && le.value === rt || (be.value = Ge, Ve.value = rt, Ge === 11 ? (Ee.value = 0, le.value = rt + 1) : (Ee.value = Ge + 1, le.value = rt));
|
|
10017
10017
|
}
|
|
10018
10018
|
return;
|
|
10019
10019
|
}
|
|
10020
10020
|
const oe = Y || O;
|
|
10021
10021
|
if (oe) {
|
|
10022
|
-
const nt = oe.getMonth(), ot = oe.getFullYear(), Ge = be.value === nt && Ve.value === ot, rt =
|
|
10022
|
+
const nt = oe.getMonth(), ot = oe.getFullYear(), Ge = be.value === nt && Ve.value === ot, rt = Ee.value === nt && le.value === ot;
|
|
10023
10023
|
if (Ge || rt) return;
|
|
10024
|
-
be.value = nt, Ve.value = ot, nt === 11 ? (
|
|
10024
|
+
be.value = nt, Ve.value = ot, nt === 11 ? (Ee.value = 0, le.value = ot + 1) : (Ee.value = nt + 1, le.value = ot);
|
|
10025
10025
|
return;
|
|
10026
10026
|
}
|
|
10027
10027
|
const Le = ut();
|
|
10028
|
-
be.value = Le.left.month, Ve.value = Le.left.year,
|
|
10028
|
+
be.value = Le.left.month, Ve.value = Le.left.year, Ee.value = Le.right.month, le.value = Le.right.year;
|
|
10029
10029
|
}
|
|
10030
10030
|
function Ft(F = "start") {
|
|
10031
10031
|
if (W.mode === "readonly") return;
|
|
@@ -10040,7 +10040,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10040
10040
|
const oe = F === "start" && O.start ? O.start : O.end || O.start;
|
|
10041
10041
|
oe && (Qe.value = oe.getMonth(), h.value = oe.getFullYear());
|
|
10042
10042
|
}
|
|
10043
|
-
|
|
10043
|
+
He.value = Be.value ? X.value?.closest(".dss-datepicker__input-wrap") : kt.value, fe.value = "days", et.value = null, Oe.value = !0, ie(() => {
|
|
10044
10044
|
Tt();
|
|
10045
10045
|
});
|
|
10046
10046
|
}
|
|
@@ -10104,7 +10104,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10104
10104
|
U("update:modelValue", { start: nt, end: ot }), St();
|
|
10105
10105
|
}
|
|
10106
10106
|
function Ht(F) {
|
|
10107
|
-
et.value === "left" ? be.value = F : et.value === "right" ?
|
|
10107
|
+
et.value === "left" ? be.value = F : et.value === "right" ? Ee.value = F : Qe.value = F, Ye();
|
|
10108
10108
|
}
|
|
10109
10109
|
function zn(F) {
|
|
10110
10110
|
et.value === "left" ? Ve.value = F : et.value === "right" ? le.value = F : h.value = F, Ye();
|
|
@@ -10122,13 +10122,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10122
10122
|
be.value === 11 ? (be.value = 0, Ve.value++) : be.value++;
|
|
10123
10123
|
}
|
|
10124
10124
|
function Xn() {
|
|
10125
|
-
|
|
10125
|
+
Ee.value === 0 ? (Ee.value = 11, le.value--) : Ee.value--;
|
|
10126
10126
|
}
|
|
10127
10127
|
function Mn() {
|
|
10128
|
-
|
|
10128
|
+
Ee.value === 11 ? (Ee.value = 0, le.value++) : Ee.value++;
|
|
10129
10129
|
}
|
|
10130
10130
|
function Sn(F) {
|
|
10131
|
-
if (!
|
|
10131
|
+
if (!Ae(F)) return;
|
|
10132
10132
|
const Y = new Date(F.getFullYear(), F.getMonth(), F.getDate());
|
|
10133
10133
|
if (Be.value) {
|
|
10134
10134
|
U("update:modelValue", Y), Ot();
|
|
@@ -10169,9 +10169,9 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10169
10169
|
}), ts(() => {
|
|
10170
10170
|
La();
|
|
10171
10171
|
}), (F, Y) => (c(), d("div", {
|
|
10172
|
-
class: ae(["dss-datepicker", { "dss-datepicker--readonly":
|
|
10172
|
+
class: ae(["dss-datepicker", { "dss-datepicker--readonly": P.mode === "readonly" }])
|
|
10173
10173
|
}, [
|
|
10174
|
-
|
|
10174
|
+
P.mode === "readonly" ? (c(), d("div", $1, [
|
|
10175
10175
|
Y[9] || (Y[9] = l("span", {
|
|
10176
10176
|
class: "dss-datepicker__icon",
|
|
10177
10177
|
"aria-hidden": "true"
|
|
@@ -10225,7 +10225,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10225
10225
|
placeholder: z(De)("datepicker.selectDate"),
|
|
10226
10226
|
value: kn.value,
|
|
10227
10227
|
readonly: "",
|
|
10228
|
-
disabled:
|
|
10228
|
+
disabled: P.mode === "readonly"
|
|
10229
10229
|
}, null, 8, H1)
|
|
10230
10230
|
])) : ve.value ? (c(), d("div", {
|
|
10231
10231
|
key: 2,
|
|
@@ -10270,13 +10270,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10270
10270
|
ref_key: "dropdownRef",
|
|
10271
10271
|
ref: Kt,
|
|
10272
10272
|
class: ae(["dss-datepicker__dropdown", {
|
|
10273
|
-
"dss-datepicker__dropdown--double":
|
|
10274
|
-
"dss-datepicker__dropdown--quick-select":
|
|
10273
|
+
"dss-datepicker__dropdown--double": P.doubleCalendar && ve.value && fe.value === "days",
|
|
10274
|
+
"dss-datepicker__dropdown--quick-select": P.doubleCalendar && ve.value && fe.value === "days" && P.quickSelect
|
|
10275
10275
|
}]),
|
|
10276
10276
|
style: re(We.value)
|
|
10277
10277
|
}, [
|
|
10278
|
-
fe.value === "days" &&
|
|
10279
|
-
|
|
10278
|
+
fe.value === "days" && P.doubleCalendar && ve.value ? (c(), d("div", L1, [
|
|
10279
|
+
P.quickSelect ? (c(), d("nav", T1, [
|
|
10280
10280
|
(c(!0), d(ee, null, me(yn.value, (O) => (c(), d("button", {
|
|
10281
10281
|
key: O.id,
|
|
10282
10282
|
type: "button",
|
|
@@ -10326,7 +10326,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10326
10326
|
key: 0,
|
|
10327
10327
|
type: "button",
|
|
10328
10328
|
class: ae(["dss-datepicker__day", ft(O)]),
|
|
10329
|
-
disabled: !
|
|
10329
|
+
disabled: !Ae(O),
|
|
10330
10330
|
onClick: (Le) => Sn(O),
|
|
10331
10331
|
onMouseenter: (Le) => Fe(O),
|
|
10332
10332
|
onMouseleave: tt
|
|
@@ -10375,7 +10375,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10375
10375
|
key: 0,
|
|
10376
10376
|
type: "button",
|
|
10377
10377
|
class: ae(["dss-datepicker__day", ft(O)]),
|
|
10378
|
-
disabled: !
|
|
10378
|
+
disabled: !Ae(O),
|
|
10379
10379
|
onClick: (Le) => Sn(O),
|
|
10380
10380
|
onMouseenter: (Le) => Fe(O),
|
|
10381
10381
|
onMouseleave: tt
|
|
@@ -10423,7 +10423,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10423
10423
|
key: 0,
|
|
10424
10424
|
type: "button",
|
|
10425
10425
|
class: ae(["dss-datepicker__day", ft(O)]),
|
|
10426
|
-
disabled: !
|
|
10426
|
+
disabled: !Ae(O),
|
|
10427
10427
|
onClick: (Le) => Sn(O),
|
|
10428
10428
|
onMouseenter: (Le) => Fe(O),
|
|
10429
10429
|
onMouseleave: tt
|
|
@@ -10531,23 +10531,23 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10531
10531
|
}
|
|
10532
10532
|
},
|
|
10533
10533
|
emits: ["update:modelValue", "update:presetColors"],
|
|
10534
|
-
setup(
|
|
10534
|
+
setup(P, { emit: $e }) {
|
|
10535
10535
|
function W(j) {
|
|
10536
10536
|
const G = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(j);
|
|
10537
10537
|
if (!G) return { h: 0, s: 0, l: 50 };
|
|
10538
|
-
const te = parseInt(G[1], 16) / 255, ue = parseInt(G[2], 16) / 255,
|
|
10538
|
+
const te = parseInt(G[1], 16) / 255, ue = parseInt(G[2], 16) / 255, Ae = parseInt(G[3], 16) / 255, ft = Math.max(te, ue, Ae), Fe = Math.min(te, ue, Ae);
|
|
10539
10539
|
let tt = 0, St = 0;
|
|
10540
10540
|
const Ft = (ft + Fe) / 2;
|
|
10541
10541
|
if (ft !== Fe) {
|
|
10542
10542
|
const Ot = ft - Fe;
|
|
10543
10543
|
switch (St = Ft > 0.5 ? Ot / (2 - ft - Fe) : Ot / (ft + Fe), ft) {
|
|
10544
10544
|
case te:
|
|
10545
|
-
tt = ((ue -
|
|
10545
|
+
tt = ((ue - Ae) / Ot + (ue < Ae ? 6 : 0)) / 6;
|
|
10546
10546
|
break;
|
|
10547
10547
|
case ue:
|
|
10548
|
-
tt = ((
|
|
10548
|
+
tt = ((Ae - te) / Ot + 2) / 6;
|
|
10549
10549
|
break;
|
|
10550
|
-
case
|
|
10550
|
+
case Ae:
|
|
10551
10551
|
tt = ((te - ue) / Ot + 4) / 6;
|
|
10552
10552
|
break;
|
|
10553
10553
|
}
|
|
@@ -10556,11 +10556,11 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10556
10556
|
}
|
|
10557
10557
|
function U(j, G, te) {
|
|
10558
10558
|
G /= 100, te /= 100;
|
|
10559
|
-
const ue = G * Math.min(te, 1 - te),
|
|
10559
|
+
const ue = G * Math.min(te, 1 - te), Ae = (ft) => {
|
|
10560
10560
|
const Fe = (ft + j / 30) % 12, tt = te - ue * Math.max(Math.min(Fe - 3, 9 - Fe, 1), -1);
|
|
10561
10561
|
return Math.round(255 * tt).toString(16).padStart(2, "0");
|
|
10562
10562
|
};
|
|
10563
|
-
return `#${
|
|
10563
|
+
return `#${Ae(0)}${Ae(8)}${Ae(4)}`;
|
|
10564
10564
|
}
|
|
10565
10565
|
function De(j) {
|
|
10566
10566
|
const G = j.replace(/^#/, "").match(/^([a-f\d]{6}|[a-f\d]{3})$/i);
|
|
@@ -10570,20 +10570,20 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10570
10570
|
}
|
|
10571
10571
|
function x(j, G, te) {
|
|
10572
10572
|
G /= 100, te /= 100;
|
|
10573
|
-
const ue = te + G * Math.min(te, 1 - te),
|
|
10574
|
-
return { h: j, s:
|
|
10573
|
+
const ue = te + G * Math.min(te, 1 - te), Ae = ue === 0 ? 0 : 2 - 2 * te / ue;
|
|
10574
|
+
return { h: j, s: Ae * 100, v: ue * 100 };
|
|
10575
10575
|
}
|
|
10576
10576
|
function Oe(j, G, te) {
|
|
10577
10577
|
G /= 100, te /= 100;
|
|
10578
|
-
const ue = te * (1 - G / 2),
|
|
10579
|
-
return { h: j, s:
|
|
10578
|
+
const ue = te * (1 - G / 2), Ae = ue === 0 || ue === 1 ? 0 : (te - ue) / Math.min(ue, 1 - ue);
|
|
10579
|
+
return { h: j, s: Ae * 100, l: ue * 100 };
|
|
10580
10580
|
}
|
|
10581
|
-
const fe =
|
|
10581
|
+
const fe = P, Qe = $e, h = H(!1), be = H(!1), Ve = H(!1), Ee = H(-1), le = H(-1), I = H(null), ze = H(null), et = H(null), qe = H(null), ut = H({ top: 0, left: 0 }), X = H(W(fe.modelValue || "#b8a5de")), kt = y(
|
|
10582
10582
|
() => Array.isArray(fe.presetGroups) && fe.presetGroups.length > 0
|
|
10583
|
-
), Mt = y(() => kt.value ? 0 : fe.initialPresetCount != null ? fe.initialPresetCount : le.value < 0 ? null : le.value),
|
|
10583
|
+
), Mt = y(() => kt.value ? 0 : fe.initialPresetCount != null ? fe.initialPresetCount : le.value < 0 ? null : le.value), He = y(() => {
|
|
10584
10584
|
const j = Mt.value;
|
|
10585
10585
|
return j == null ? !0 : Math.max(0, fe.presetColors.length - j) < fe.max;
|
|
10586
|
-
}), Kt = y(() => !!(be.value ||
|
|
10586
|
+
}), Kt = y(() => !!(be.value || Ee.value >= 0 || !Nt.value && fe.presetColors.length === 0));
|
|
10587
10587
|
y(() => {
|
|
10588
10588
|
const j = Mt.value;
|
|
10589
10589
|
return j != null && fe.presetColors.length > j;
|
|
@@ -10606,38 +10606,38 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10606
10606
|
return G != null && j >= G;
|
|
10607
10607
|
}
|
|
10608
10608
|
function bt(j) {
|
|
10609
|
-
Hn(j) && (
|
|
10609
|
+
Hn(j) && (Ee.value = j, X.value = W(fe.presetColors[j]), be.value = !0, ie(() => qe.value?.focus()));
|
|
10610
10610
|
}
|
|
10611
10611
|
function dt(j) {
|
|
10612
10612
|
if (!Hn(j)) return;
|
|
10613
|
-
const G = fe.presetColors.filter((
|
|
10613
|
+
const G = fe.presetColors.filter((Ae, ft) => ft !== j);
|
|
10614
10614
|
Qe("update:presetColors", G);
|
|
10615
10615
|
const te = De(fe.modelValue), ue = De(fe.presetColors[j]);
|
|
10616
10616
|
if (te && ue && te.toLowerCase() === ue.toLowerCase()) {
|
|
10617
|
-
const
|
|
10618
|
-
|
|
10617
|
+
const Ae = G[Math.max(0, j - 1)] || G[0];
|
|
10618
|
+
Ae && Qe("update:modelValue", Ae);
|
|
10619
10619
|
}
|
|
10620
10620
|
}
|
|
10621
10621
|
function kn() {
|
|
10622
|
-
Ve.value = !Ve.value, Ve.value || (
|
|
10622
|
+
Ve.value = !Ve.value, Ve.value || (Ee.value = -1, be.value = !1);
|
|
10623
10623
|
}
|
|
10624
10624
|
function rn() {
|
|
10625
|
-
if (
|
|
10625
|
+
if (Ee.value < 0) return;
|
|
10626
10626
|
const j = pe.value, G = De(j);
|
|
10627
10627
|
if (G) {
|
|
10628
10628
|
const te = [...fe.presetColors];
|
|
10629
|
-
te[
|
|
10629
|
+
te[Ee.value] = G, Qe("update:presetColors", te), Qe("update:modelValue", G), Ee.value = -1, be.value = !1;
|
|
10630
10630
|
}
|
|
10631
10631
|
}
|
|
10632
10632
|
function ye() {
|
|
10633
|
-
fe.disabled || (
|
|
10633
|
+
fe.disabled || (Ee.value = -1, be.value = !be.value, be.value && (mt(), ie(() => qe.value?.focus())));
|
|
10634
10634
|
}
|
|
10635
10635
|
function Re(j) {
|
|
10636
10636
|
const G = De(j), te = De(fe.modelValue);
|
|
10637
10637
|
return G && te && G.toLowerCase() === te.toLowerCase();
|
|
10638
10638
|
}
|
|
10639
10639
|
function ce() {
|
|
10640
|
-
if (fe.disabled || !
|
|
10640
|
+
if (fe.disabled || !He.value) return;
|
|
10641
10641
|
const j = pe.value, G = De(j);
|
|
10642
10642
|
if (G) {
|
|
10643
10643
|
const te = [...fe.presetColors, G];
|
|
@@ -10689,22 +10689,22 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10689
10689
|
function Lt() {
|
|
10690
10690
|
const j = pe.value, G = De(j);
|
|
10691
10691
|
if (G) {
|
|
10692
|
-
if (
|
|
10692
|
+
if (Ee.value >= 0) {
|
|
10693
10693
|
const te = [...fe.presetColors];
|
|
10694
|
-
te[
|
|
10695
|
-
} else if ((fe.presetColors.length > 0 || kt.value) && be.value &&
|
|
10694
|
+
te[Ee.value] = G, Qe("update:presetColors", te), Qe("update:modelValue", G);
|
|
10695
|
+
} else if ((fe.presetColors.length > 0 || kt.value) && be.value && He.value && !fe.presetColors.some(
|
|
10696
10696
|
(ue) => De(ue)?.toLowerCase() === G.toLowerCase()
|
|
10697
10697
|
)) {
|
|
10698
10698
|
const ue = [...fe.presetColors, G];
|
|
10699
10699
|
Qe("update:presetColors", ue), Qe("update:modelValue", G);
|
|
10700
10700
|
}
|
|
10701
10701
|
}
|
|
10702
|
-
h.value = !1, be.value = !1, Ve.value = !1,
|
|
10702
|
+
h.value = !1, be.value = !1, Ve.value = !1, Ee.value = -1;
|
|
10703
10703
|
}
|
|
10704
10704
|
function qt(j) {
|
|
10705
10705
|
if (!et.value) return;
|
|
10706
10706
|
const G = et.value.getBoundingClientRect(), te = (ue) => {
|
|
10707
|
-
const
|
|
10707
|
+
const Ae = Math.max(0, Math.min(1, (ue.clientX - G.left) / G.width)), ft = Math.max(0, Math.min(1, 1 - (ue.clientY - G.top) / G.height)), Fe = { h: X.value.h, s: Ae * 100, v: ft * 100 };
|
|
10708
10708
|
X.value = Oe(Fe.h, Fe.s, Fe.v);
|
|
10709
10709
|
};
|
|
10710
10710
|
te(j), document.addEventListener("mousemove", te), document.addEventListener("mouseup", () => {
|
|
@@ -10713,8 +10713,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10713
10713
|
}
|
|
10714
10714
|
function Ct(j) {
|
|
10715
10715
|
if (!j.currentTarget) return;
|
|
10716
|
-
const te = j.currentTarget.getBoundingClientRect(), ue = (
|
|
10717
|
-
const ft = Math.max(0, Math.min(1, (
|
|
10716
|
+
const te = j.currentTarget.getBoundingClientRect(), ue = (Ae) => {
|
|
10717
|
+
const ft = Math.max(0, Math.min(1, (Ae.clientX - te.left) / te.width));
|
|
10718
10718
|
X.value = { ...X.value, h: ft * 360 };
|
|
10719
10719
|
};
|
|
10720
10720
|
ue(j), document.addEventListener("mousemove", ue), document.addEventListener("mouseup", () => {
|
|
@@ -10747,9 +10747,9 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10747
10747
|
}), At(() => fe.modelValue, () => {
|
|
10748
10748
|
h.value && mt();
|
|
10749
10749
|
}, { immediate: !1 }), At(Be, (j) => {
|
|
10750
|
-
j.length === 0 && (Ve.value = !1,
|
|
10750
|
+
j.length === 0 && (Ve.value = !1, Ee.value = -1, be.value = !1);
|
|
10751
10751
|
}), ts(st), (j, G) => (c(), d("div", {
|
|
10752
|
-
class: ae(["dss-color-picker", { "dss-color-picker--disabled":
|
|
10752
|
+
class: ae(["dss-color-picker", { "dss-color-picker--disabled": P.disabled }])
|
|
10753
10753
|
}, [
|
|
10754
10754
|
l("div", {
|
|
10755
10755
|
ref_key: "triggerRef",
|
|
@@ -10790,19 +10790,19 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10790
10790
|
style: re(nn.value)
|
|
10791
10791
|
}, [
|
|
10792
10792
|
Nt.value ? (c(), d(ee, { key: 0 }, [
|
|
10793
|
-
kt.value ? (c(!0), d(ee, { key: 0 }, me(
|
|
10793
|
+
kt.value ? (c(!0), d(ee, { key: 0 }, me(P.presetGroups, (te, ue) => (c(), d("div", {
|
|
10794
10794
|
key: "g-" + ue,
|
|
10795
10795
|
class: "dss-color-picker__section"
|
|
10796
10796
|
}, [
|
|
10797
10797
|
l("span", m2, L(te.title), 1),
|
|
10798
10798
|
l("div", g2, [
|
|
10799
|
-
(c(!0), d(ee, null, me(te.colors, (
|
|
10799
|
+
(c(!0), d(ee, null, me(te.colors, (Ae, ft) => (c(), d("button", {
|
|
10800
10800
|
key: "g-" + ue + "-" + ft,
|
|
10801
10801
|
type: "button",
|
|
10802
|
-
class: ae(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": Re(
|
|
10803
|
-
style: re({ backgroundColor:
|
|
10804
|
-
title:
|
|
10805
|
-
onClick: Xe((Fe) => pt(
|
|
10802
|
+
class: ae(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": Re(Ae) }]),
|
|
10803
|
+
style: re({ backgroundColor: Ae }),
|
|
10804
|
+
title: Ae,
|
|
10805
|
+
onClick: Xe((Fe) => pt(Ae), ["stop"])
|
|
10806
10806
|
}, null, 14, y2))), 128))
|
|
10807
10807
|
])
|
|
10808
10808
|
]))), 128)) : ht.value.length ? (c(), d("div", C2, [
|
|
@@ -10814,7 +10814,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10814
10814
|
class: ae(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": Re(te) }]),
|
|
10815
10815
|
style: re({ backgroundColor: te }),
|
|
10816
10816
|
title: te,
|
|
10817
|
-
onClick: Xe((
|
|
10817
|
+
onClick: Xe((Ae) => pt(te), ["stop"])
|
|
10818
10818
|
}, null, 14, w2))), 128))
|
|
10819
10819
|
])
|
|
10820
10820
|
])) : R("", !0),
|
|
@@ -10849,18 +10849,18 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10849
10849
|
type: "button",
|
|
10850
10850
|
class: ae(["dss-color-picker__preset-bubble", {
|
|
10851
10851
|
"dss-color-picker__preset-bubble--selected": !Ve.value && Re(te),
|
|
10852
|
-
"dss-color-picker__preset-bubble--editing": Ve.value &&
|
|
10852
|
+
"dss-color-picker__preset-bubble--editing": Ve.value && Ee.value === ve(ue)
|
|
10853
10853
|
}]),
|
|
10854
|
-
style: re({ backgroundColor:
|
|
10855
|
-
title:
|
|
10856
|
-
onClick: Xe((
|
|
10854
|
+
style: re({ backgroundColor: Ee.value === ve(ue) ? pe.value : te }),
|
|
10855
|
+
title: Ee.value === ve(ue) ? pe.value : te,
|
|
10856
|
+
onClick: Xe((Ae) => Ve.value ? bt(ve(ue)) : pt(te), ["stop"])
|
|
10857
10857
|
}, null, 14, S2),
|
|
10858
10858
|
Ve.value ? (c(), d("button", {
|
|
10859
10859
|
key: 0,
|
|
10860
10860
|
type: "button",
|
|
10861
10861
|
class: "dss-color-picker__preset-action dss-color-picker__preset-action--delete",
|
|
10862
10862
|
title: "Delete",
|
|
10863
|
-
onClick: Xe((
|
|
10863
|
+
onClick: Xe((Ae) => dt(ve(ue)), ["stop"])
|
|
10864
10864
|
}, [...G[4] || (G[4] = [
|
|
10865
10865
|
l("svg", {
|
|
10866
10866
|
viewBox: "0 0 12 12",
|
|
@@ -10876,7 +10876,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10876
10876
|
], -1)
|
|
10877
10877
|
])], 8, _2)) : R("", !0)
|
|
10878
10878
|
], 2))), 128)),
|
|
10879
|
-
|
|
10879
|
+
He.value ? (c(), d("button", {
|
|
10880
10880
|
key: 0,
|
|
10881
10881
|
type: "button",
|
|
10882
10882
|
class: ae(["dss-color-picker__add-bubble", { "dss-color-picker__add-bubble--active": be.value }]),
|
|
@@ -10884,16 +10884,16 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10884
10884
|
}, " + ", 2)) : R("", !0)
|
|
10885
10885
|
])
|
|
10886
10886
|
])
|
|
10887
|
-
], 64)) :
|
|
10888
|
-
(c(!0), d(ee, null, me(
|
|
10887
|
+
], 64)) : P.presetColors.length ? (c(), d("div", $2, [
|
|
10888
|
+
(c(!0), d(ee, null, me(P.presetColors, (te, ue) => (c(), d("button", {
|
|
10889
10889
|
key: ue,
|
|
10890
10890
|
type: "button",
|
|
10891
10891
|
class: ae(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": Re(te) }]),
|
|
10892
10892
|
style: re({ backgroundColor: te }),
|
|
10893
10893
|
title: te,
|
|
10894
|
-
onClick: Xe((
|
|
10894
|
+
onClick: Xe((Ae) => pt(te), ["stop"])
|
|
10895
10895
|
}, null, 14, E2))), 128)),
|
|
10896
|
-
|
|
10896
|
+
He.value ? (c(), d("button", {
|
|
10897
10897
|
key: 0,
|
|
10898
10898
|
type: "button",
|
|
10899
10899
|
class: ae(["dss-color-picker__add-bubble", { "dss-color-picker__add-bubble--active": be.value }]),
|
|
@@ -10936,13 +10936,13 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
10936
10936
|
onInput: yn
|
|
10937
10937
|
}, null, 40, A2)
|
|
10938
10938
|
]),
|
|
10939
|
-
Nt.value && (
|
|
10939
|
+
Nt.value && (P.presetColors.length || kt.value) && He.value && Ee.value < 0 ? (c(), d("button", {
|
|
10940
10940
|
key: 0,
|
|
10941
10941
|
type: "button",
|
|
10942
10942
|
class: "dss-color-picker__add-btn",
|
|
10943
10943
|
onClick: ce
|
|
10944
10944
|
}, " Save color ")) : R("", !0),
|
|
10945
|
-
Nt.value &&
|
|
10945
|
+
Nt.value && Ee.value >= 0 ? (c(), d("button", {
|
|
10946
10946
|
key: 1,
|
|
10947
10947
|
type: "button",
|
|
10948
10948
|
class: "dss-color-picker__add-btn",
|
|
@@ -11011,19 +11011,19 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11011
11011
|
// 'small' | 'medium' | 'large' | CSS size (px, rem, %, etc.) | number (px)
|
|
11012
11012
|
}
|
|
11013
11013
|
},
|
|
11014
|
-
setup(
|
|
11015
|
-
const
|
|
11014
|
+
setup(P) {
|
|
11015
|
+
const $e = P, W = y(() => $e.size === "small" ? "dss-loaders--size-small" : $e.size === "large" ? "dss-loaders--size-large" : $e.size === "medium" || $e.size == null ? "dss-loaders--size-medium" : null), U = y(() => $e.size === "small" || $e.size === "medium" || $e.size === "large" || $e.size == null ? {} : { "--dss-loader-size": typeof $e.size == "number" ? `${$e.size}px` : String($e.size) });
|
|
11016
11016
|
return (De, x) => (c(), d("div", {
|
|
11017
11017
|
class: ae(["dss-loaders", W.value]),
|
|
11018
11018
|
style: re(U.value)
|
|
11019
11019
|
}, [
|
|
11020
|
-
|
|
11020
|
+
P.type === "spinner" ? (c(), d("div", L2, [
|
|
11021
11021
|
x[0] || (x[0] = l("span", {
|
|
11022
11022
|
class: "dss-loader-spinner",
|
|
11023
11023
|
"aria-hidden": "true"
|
|
11024
11024
|
}, null, -1)),
|
|
11025
|
-
|
|
11026
|
-
])) :
|
|
11025
|
+
P.label ? (c(), d("span", T2, L(P.label), 1)) : R("", !0)
|
|
11026
|
+
])) : P.type === "dots" ? (c(), d("div", V2, [
|
|
11027
11027
|
x[1] || (x[1] = l("span", {
|
|
11028
11028
|
class: "dss-loader-dots",
|
|
11029
11029
|
"aria-hidden": "true"
|
|
@@ -11032,14 +11032,14 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11032
11032
|
l("span", { class: "dss-loader-dot" }),
|
|
11033
11033
|
l("span", { class: "dss-loader-dot" })
|
|
11034
11034
|
], -1)),
|
|
11035
|
-
|
|
11036
|
-
])) :
|
|
11035
|
+
P.label ? (c(), d("span", D2, L(P.label), 1)) : R("", !0)
|
|
11036
|
+
])) : P.type === "battery" ? (c(), d("div", R2, [
|
|
11037
11037
|
x[2] || (x[2] = l("div", {
|
|
11038
11038
|
class: "battery",
|
|
11039
11039
|
"aria-hidden": "true"
|
|
11040
11040
|
}, null, -1)),
|
|
11041
|
-
|
|
11042
|
-
])) :
|
|
11041
|
+
P.label ? (c(), d("span", I2, L(P.label), 1)) : R("", !0)
|
|
11042
|
+
])) : P.type === "double-circle" ? (c(), d("div", N2, [
|
|
11043
11043
|
x[3] || (x[3] = l("span", {
|
|
11044
11044
|
class: "dss-loader-double-circle",
|
|
11045
11045
|
"aria-hidden": "true"
|
|
@@ -11047,8 +11047,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11047
11047
|
l("span", { class: "dss-loader-double-circle-outer" }),
|
|
11048
11048
|
l("span", { class: "dss-loader-double-circle-inner" })
|
|
11049
11049
|
], -1)),
|
|
11050
|
-
|
|
11051
|
-
])) :
|
|
11050
|
+
P.label ? (c(), d("span", F2, L(P.label), 1)) : R("", !0)
|
|
11051
|
+
])) : P.type === "bars" ? (c(), d("div", P2, [
|
|
11052
11052
|
x[4] || (x[4] = l("span", {
|
|
11053
11053
|
class: "dss-loader-bars",
|
|
11054
11054
|
"aria-hidden": "true"
|
|
@@ -11057,15 +11057,15 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11057
11057
|
l("span", { class: "dss-loader-bar" }),
|
|
11058
11058
|
l("span", { class: "dss-loader-bar" })
|
|
11059
11059
|
], -1)),
|
|
11060
|
-
|
|
11061
|
-
])) :
|
|
11060
|
+
P.label ? (c(), d("span", B2, L(P.label), 1)) : R("", !0)
|
|
11061
|
+
])) : P.type === "inline" ? (c(), d("div", O2, [
|
|
11062
11062
|
x[5] || (x[5] = l("span", {
|
|
11063
11063
|
class: "dss-loader-inline-spinner",
|
|
11064
11064
|
"aria-hidden": "true"
|
|
11065
11065
|
}, null, -1)),
|
|
11066
11066
|
l("span", z2, [
|
|
11067
11067
|
mn(De.$slots, "default", {}, () => [
|
|
11068
|
-
la(L(
|
|
11068
|
+
la(L(P.label), 1)
|
|
11069
11069
|
])
|
|
11070
11070
|
])
|
|
11071
11071
|
])) : R("", !0)
|
|
@@ -11078,41 +11078,41 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11078
11078
|
darkMode: { type: Boolean, default: !1 },
|
|
11079
11079
|
borderRadius: { type: String, default: "16px" },
|
|
11080
11080
|
shimmer: { type: Boolean, default: !0 },
|
|
11081
|
-
mode: { type: String, default: "single", validator: (
|
|
11081
|
+
mode: { type: String, default: "single", validator: (P) => ["single", "multiple"].includes(P) },
|
|
11082
11082
|
targetClass: { type: String, default: ps },
|
|
11083
11083
|
bgColor: { type: String, default: null },
|
|
11084
11084
|
shimmerColor: { type: String, default: null },
|
|
11085
11085
|
bgDark: { type: String, default: null },
|
|
11086
11086
|
shimmerDark: { type: String, default: null }
|
|
11087
11087
|
},
|
|
11088
|
-
setup(
|
|
11089
|
-
const
|
|
11088
|
+
setup(P) {
|
|
11089
|
+
const $e = P, W = y(() => {
|
|
11090
11090
|
const x = {
|
|
11091
|
-
"dss-skeleton--loading":
|
|
11092
|
-
"dss-skeleton--static":
|
|
11093
|
-
"dss-skeleton--multiple":
|
|
11094
|
-
"dss-skeleton--dark":
|
|
11091
|
+
"dss-skeleton--loading": $e.loading,
|
|
11092
|
+
"dss-skeleton--static": !$e.shimmer,
|
|
11093
|
+
"dss-skeleton--multiple": $e.mode === "multiple",
|
|
11094
|
+
"dss-skeleton--dark": $e.darkMode
|
|
11095
11095
|
};
|
|
11096
|
-
return
|
|
11096
|
+
return $e.mode === "multiple" && $e.targetClass !== ps && (x[`dss-skeleton--target-${$e.targetClass}`] = !0), x;
|
|
11097
11097
|
}), U = y(() => {
|
|
11098
11098
|
const x = {};
|
|
11099
|
-
return
|
|
11099
|
+
return $e.borderRadius && (x.borderRadius = $e.borderRadius), x;
|
|
11100
11100
|
}), De = y(() => {
|
|
11101
11101
|
const x = {};
|
|
11102
|
-
return
|
|
11102
|
+
return $e.borderRadius && (x["--dss-skeleton-border-radius"] = $e.borderRadius), $e.darkMode ? (x["--dss-skeleton-bg"] = $e.bgDark || "#322c3f", x["--dss-skeleton-shimmer"] = $e.shimmerDark || "#3e3f41", x) : ($e.bgColor && (x["--dss-skeleton-bg"] = $e.bgColor), $e.shimmerColor && (x["--dss-skeleton-shimmer"] = $e.shimmerColor), x);
|
|
11103
11103
|
});
|
|
11104
11104
|
return (x, Oe) => (c(), d("div", {
|
|
11105
11105
|
class: ae(["dss-skeleton", W.value]),
|
|
11106
11106
|
style: re(De.value)
|
|
11107
11107
|
}, [
|
|
11108
|
-
|
|
11108
|
+
P.loading && P.mode === "single" ? (c(), d("div", {
|
|
11109
11109
|
key: 0,
|
|
11110
11110
|
class: "dss-skeleton-overlay",
|
|
11111
11111
|
style: re(U.value),
|
|
11112
11112
|
"aria-hidden": "true"
|
|
11113
11113
|
}, null, 4)) : R("", !0),
|
|
11114
11114
|
l("div", {
|
|
11115
|
-
class: ae(["dss-skeleton-content", { "dss-skeleton-content--hidden":
|
|
11115
|
+
class: ae(["dss-skeleton-content", { "dss-skeleton-content--hidden": P.loading && P.mode === "single" }])
|
|
11116
11116
|
}, [
|
|
11117
11117
|
mn(x.$slots, "default")
|
|
11118
11118
|
], 2)
|
|
@@ -11139,8 +11139,8 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11139
11139
|
options: { type: Object, default: () => ({}) }
|
|
11140
11140
|
},
|
|
11141
11141
|
emits: ["move"],
|
|
11142
|
-
setup(
|
|
11143
|
-
const W =
|
|
11142
|
+
setup(P, { emit: $e }) {
|
|
11143
|
+
const W = P, U = $e, De = {
|
|
11144
11144
|
columnMinWidth: "280px",
|
|
11145
11145
|
columnMaxWidth: "none",
|
|
11146
11146
|
columnGap: "12px",
|
|
@@ -11159,7 +11159,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11159
11159
|
"--dss-dnd-indicator-color": x.value.indicatorColor,
|
|
11160
11160
|
"--dss-dnd-body-max-h": x.value.columnBodyMaxHeight
|
|
11161
11161
|
})), fe = H(null), Qe = H(null), h = H(-1), be = H(null);
|
|
11162
|
-
let Ve = null,
|
|
11162
|
+
let Ve = null, Ee = null, le = null, I = null, ze = 0, et = 0;
|
|
11163
11163
|
const qe = y(() => {
|
|
11164
11164
|
const ye = {};
|
|
11165
11165
|
for (const Re of W.columns)
|
|
@@ -11220,7 +11220,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11220
11220
|
function Mt(ye, Re) {
|
|
11221
11221
|
le && (le.style.left = `${ye - ze}px`, le.style.top = `${Re - et}px`);
|
|
11222
11222
|
}
|
|
11223
|
-
function
|
|
11223
|
+
function He(ye) {
|
|
11224
11224
|
ye.classList.add("dss-dnd-item--dragging"), ye.style.background = x.value.dragSourceBackground, ye.style.borderColor = x.value.dragSourceBorder, ye.style.transform = "scale(0.97)";
|
|
11225
11225
|
}
|
|
11226
11226
|
function Kt(ye) {
|
|
@@ -11265,7 +11265,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11265
11265
|
to: it,
|
|
11266
11266
|
position: nn,
|
|
11267
11267
|
index: Ne
|
|
11268
|
-
}),
|
|
11268
|
+
}), Ee && clearTimeout(Ee), be.value = { id: Zt, from: pe, to: it }, Ee = setTimeout(() => {
|
|
11269
11269
|
be.value = null;
|
|
11270
11270
|
}, 3500);
|
|
11271
11271
|
}
|
|
@@ -11276,7 +11276,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11276
11276
|
const ce = ye.target.closest(".dss-dnd-item");
|
|
11277
11277
|
if (!ce) return;
|
|
11278
11278
|
const pe = ce.getBoundingClientRect();
|
|
11279
|
-
ze = ye.clientX - pe.left, et = ye.clientY - pe.top, fe.value = Re, I = ce, kt(ce, ye.clientX, ye.clientY), requestAnimationFrame(() =>
|
|
11279
|
+
ze = ye.clientX - pe.left, et = ye.clientY - pe.top, fe.value = Re, I = ce, kt(ce, ye.clientX, ye.clientY), requestAnimationFrame(() => He(ce)), ce.setPointerCapture?.(ye.pointerId), window.addEventListener("pointermove", Be), window.addEventListener("pointerup", ve, { once: !0 }), window.addEventListener("pointercancel", ve, { once: !0 });
|
|
11280
11280
|
}
|
|
11281
11281
|
function bt(ye, Re) {
|
|
11282
11282
|
x.value.useHandle || Hn(ye, Re);
|
|
@@ -11291,12 +11291,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11291
11291
|
kn(), fe.value = null, Qe.value = null, h.value = -1;
|
|
11292
11292
|
}
|
|
11293
11293
|
return ts(() => {
|
|
11294
|
-
kn(),
|
|
11294
|
+
kn(), Ee && clearTimeout(Ee), le && (le.remove(), le = null);
|
|
11295
11295
|
}), (ye, Re) => (c(), d("div", {
|
|
11296
11296
|
class: ae(["dss-dnd", { "dss-dnd--unstyled": x.value.unstyled }]),
|
|
11297
11297
|
style: re(Oe.value)
|
|
11298
11298
|
}, [
|
|
11299
|
-
(c(!0), d(ee, null, me(
|
|
11299
|
+
(c(!0), d(ee, null, me(P.columns, (ce) => (c(), d("div", {
|
|
11300
11300
|
key: ce.value,
|
|
11301
11301
|
class: ae(["dss-dnd-column", [
|
|
11302
11302
|
{ "dss-dnd-column--drag-over": Qe.value === ce.value },
|
|
@@ -11340,11 +11340,11 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11340
11340
|
mn(ye.$slots, "item", {
|
|
11341
11341
|
item: pe.item,
|
|
11342
11342
|
column: ce,
|
|
11343
|
-
justDropped: be.value?.id === pe.item[
|
|
11344
|
-
droppedFrom: be.value?.id === pe.item[
|
|
11345
|
-
droppedTo: be.value?.id === pe.item[
|
|
11343
|
+
justDropped: be.value?.id === pe.item[P.itemKey],
|
|
11344
|
+
droppedFrom: be.value?.id === pe.item[P.itemKey] ? be.value.from : null,
|
|
11345
|
+
droppedTo: be.value?.id === pe.item[P.itemKey] ? be.value.to : null
|
|
11346
11346
|
}, () => [
|
|
11347
|
-
l("div", G2, L(pe.item[
|
|
11347
|
+
l("div", G2, L(pe.item[P.itemKey]), 1)
|
|
11348
11348
|
])
|
|
11349
11349
|
])
|
|
11350
11350
|
], 42, Y2))
|
|
@@ -11372,12 +11372,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11372
11372
|
},
|
|
11373
11373
|
delay: { type: Number, default: 300 }
|
|
11374
11374
|
},
|
|
11375
|
-
setup(
|
|
11376
|
-
const
|
|
11375
|
+
setup(P) {
|
|
11376
|
+
const $e = P, W = H(null), U = H(!1);
|
|
11377
11377
|
let De = [], x = null, Oe = null;
|
|
11378
11378
|
function fe(le, I) {
|
|
11379
11379
|
const ze = [];
|
|
11380
|
-
for (let et = 0; et <
|
|
11380
|
+
for (let et = 0; et < $e.count; et++)
|
|
11381
11381
|
ze.push(Qe(le));
|
|
11382
11382
|
return ze;
|
|
11383
11383
|
}
|
|
@@ -11387,7 +11387,7 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11387
11387
|
y: -Math.random() * 150 - 20,
|
|
11388
11388
|
r: Math.random() * 8 + 3,
|
|
11389
11389
|
d: Math.random() * 50,
|
|
11390
|
-
color:
|
|
11390
|
+
color: $e.colors[Math.floor(Math.random() * $e.colors.length)],
|
|
11391
11391
|
tilt: Math.floor(Math.random() * 10) - 10,
|
|
11392
11392
|
tiltInc: Math.random() * 0.08 + 0.04,
|
|
11393
11393
|
tiltAngle: 0,
|
|
@@ -11415,24 +11415,24 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11415
11415
|
if (!ze) return;
|
|
11416
11416
|
const et = ze.getBoundingClientRect();
|
|
11417
11417
|
le.width = et.width, le.height = et.height, De = fe(le.width, le.height);
|
|
11418
|
-
const qe = Date.now(), ut = qe +
|
|
11418
|
+
const qe = Date.now(), ut = qe + $e.duration, X = () => {
|
|
11419
11419
|
const kt = Date.now(), Mt = kt - qe;
|
|
11420
11420
|
if (kt < ut) {
|
|
11421
|
-
let
|
|
11422
|
-
Mt >
|
|
11421
|
+
let He = 1;
|
|
11422
|
+
Mt > $e.fadeStart && (He = 1 - (Mt - $e.fadeStart) / ($e.duration - $e.fadeStart)), h(I, le.width, le.height, He), be(le.width, le.height, He), x = requestAnimationFrame(X);
|
|
11423
11423
|
} else
|
|
11424
|
-
|
|
11424
|
+
Ee();
|
|
11425
11425
|
};
|
|
11426
11426
|
X();
|
|
11427
11427
|
});
|
|
11428
11428
|
}
|
|
11429
|
-
function
|
|
11429
|
+
function Ee() {
|
|
11430
11430
|
x && (cancelAnimationFrame(x), x = null), De = [], U.value = !1;
|
|
11431
11431
|
}
|
|
11432
|
-
return At(() =>
|
|
11433
|
-
le && (Oe && clearTimeout(Oe), Oe = setTimeout(Ve,
|
|
11432
|
+
return At(() => $e.trigger, (le) => {
|
|
11433
|
+
le && (Oe && clearTimeout(Oe), Oe = setTimeout(Ve, $e.delay));
|
|
11434
11434
|
}, { immediate: !0 }), ts(() => {
|
|
11435
|
-
|
|
11435
|
+
Ee(), Oe && clearTimeout(Oe);
|
|
11436
11436
|
}), (le, I) => U.value ? (c(), d("canvas", {
|
|
11437
11437
|
key: 0,
|
|
11438
11438
|
ref_key: "canvasRef",
|
|
@@ -11456,12 +11456,12 @@ const Hs = ["data-chart-type"], As = { class: "dss-chart-header-titles" }, Ls =
|
|
|
11456
11456
|
datepicker: d0,
|
|
11457
11457
|
textEditor: v0
|
|
11458
11458
|
}, hs = { en: Tl, fr: Vl, nl: Dl };
|
|
11459
|
-
function S0(
|
|
11460
|
-
if (!
|
|
11459
|
+
function S0(P) {
|
|
11460
|
+
if (!P || !P.global)
|
|
11461
11461
|
return;
|
|
11462
|
-
const
|
|
11462
|
+
const $e = P.global.availableLocales || [];
|
|
11463
11463
|
Object.keys(hs).forEach((W) => {
|
|
11464
|
-
|
|
11464
|
+
$e.includes(W) && P.global.mergeLocaleMessage(W, hs[W]);
|
|
11465
11465
|
});
|
|
11466
11466
|
}
|
|
11467
11467
|
const ms = {
|
|
@@ -11469,12 +11469,12 @@ const ms = {
|
|
|
11469
11469
|
fr: { textEditor: Vl.textEditor },
|
|
11470
11470
|
nl: { textEditor: Dl.textEditor }
|
|
11471
11471
|
};
|
|
11472
|
-
function _0(
|
|
11473
|
-
if (!
|
|
11472
|
+
function _0(P) {
|
|
11473
|
+
if (!P || !P.global)
|
|
11474
11474
|
return;
|
|
11475
|
-
const
|
|
11475
|
+
const $e = P.global.availableLocales || [];
|
|
11476
11476
|
Object.keys(ms).forEach((W) => {
|
|
11477
|
-
|
|
11477
|
+
$e.includes(W) && P.global.mergeLocaleMessage(W, ms[W]);
|
|
11478
11478
|
});
|
|
11479
11479
|
}
|
|
11480
11480
|
const gs = {
|
|
@@ -11482,12 +11482,12 @@ const gs = {
|
|
|
11482
11482
|
fr: { table: Vl.table },
|
|
11483
11483
|
nl: { table: Dl.table }
|
|
11484
11484
|
};
|
|
11485
|
-
function $0(
|
|
11486
|
-
if (!
|
|
11485
|
+
function $0(P) {
|
|
11486
|
+
if (!P || !P.global)
|
|
11487
11487
|
return;
|
|
11488
|
-
const
|
|
11488
|
+
const $e = P.global.availableLocales || [];
|
|
11489
11489
|
Object.keys(gs).forEach((W) => {
|
|
11490
|
-
|
|
11490
|
+
$e.includes(W) && P.global.mergeLocaleMessage(W, gs[W]);
|
|
11491
11491
|
});
|
|
11492
11492
|
}
|
|
11493
11493
|
const ys = {
|
|
@@ -11495,12 +11495,12 @@ const ys = {
|
|
|
11495
11495
|
fr: { datepicker: Vl.datepicker },
|
|
11496
11496
|
nl: { datepicker: Dl.datepicker }
|
|
11497
11497
|
};
|
|
11498
|
-
function E0(
|
|
11499
|
-
if (!
|
|
11498
|
+
function E0(P) {
|
|
11499
|
+
if (!P || !P.global)
|
|
11500
11500
|
return;
|
|
11501
|
-
const
|
|
11501
|
+
const $e = P.global.availableLocales || [];
|
|
11502
11502
|
Object.keys(ys).forEach((W) => {
|
|
11503
|
-
|
|
11503
|
+
$e.includes(W) && P.global.mergeLocaleMessage(W, ys[W]);
|
|
11504
11504
|
});
|
|
11505
11505
|
}
|
|
11506
11506
|
const f0 = {
|