@feedmepos/mf-report 5.21.21 → 5.21.22
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/dist/{App-B7fFqqwq.js → App-DZ3HhJKH.js} +3 -3
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-C83DEzrp.js → BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D92YVuhu.js → Default.vue_vue_type_script_setup_true_lang-CNeKCjDW.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-MZ4U7iLX.js → FilterSelector.vue_vue_type_script_setup_true_lang-BMx7tOtZ.js} +121 -121
- package/dist/{InsightView-BOQTMg97.js → InsightView-D1CpIEsq.js} +2 -2
- package/dist/{Layout-wF45_J-D.js → Layout-C6UYMnHF.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BihZAGGq.js → MenuTab.vue_vue_type_script_setup_true_lang-CwqcSiyi.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Dl1yJJzh.js → NavigationTab.vue_vue_type_script_setup_true_lang-Df-6pRpd.js} +1 -1
- package/dist/{OverviewView-CJtDx82s.js → OverviewView-BZNGKxWW.js} +4 -4
- package/dist/{Report-B-FPQEWW.js → Report-CQQqMJGY.js} +2 -2
- package/dist/{ReportEditor-DTZolrEZ.js → ReportEditor-BhdJ6wyM.js} +3 -3
- package/dist/{ReportView-LcQ1cADg.js → ReportView-8k_9MNip.js} +5 -5
- package/dist/{Setting-DIQOPxWh.js → Setting-dC3iUZYd.js} +2 -2
- package/dist/{TileEditor-CeZfIiHu.js → TileEditor-CS65HkRc.js} +739 -727
- package/dist/{TransitionFade-CrOThVuD.js → TransitionFade-5WYqlTMU.js} +2 -2
- package/dist/app.js +9 -9
- package/dist/assets/{formatChartData.worker-B07P_JTj.js → formatChartData.worker-BxpediKG.js} +1 -1
- package/dist/assets/{processTableData.worker-D4nIiACG.js → processTableData.worker-93fLL2HJ.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as T, defineComponent as Te, mergeModels as We, useModel as ze, ref as v, onMounted as Ie, nextTick as Se, watch as me, resolveComponent as B, createElementBlock as ne, openBlock as M, Fragment as xe, renderSlot as Ne, createVNode as q, normalizeStyle as Ee, unref as s, createElementVNode as X, toDisplayString as De, withCtx as ie, createBlock as de, createCommentVNode as ke, normalizeClass as Ze, h as rt, renderList as ut, toRaw as xl, markRaw as Sl, createTextVNode as yt, onUnmounted as Ut, resolveDynamicComponent as Cl, withDirectives as kl, vShow as Tl, withModifiers as ht } from "vue";
|
|
2
|
-
import { W as A, e as lt, f as _l, S as qe, v as it, g as Fl, h as ft, i as Yt, q as Gt, R as
|
|
3
|
-
import { u as at, b as tt, a as Ft, d as
|
|
2
|
+
import { W as A, e as lt, f as _l, S as qe, v as it, g as Fl, h as ft, i as Yt, q as Gt, R as Je, j as Ll, D as Re, c as ge, C as Ce, a as Rl, b as Dl, _ as Vl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CnCFX1Cy.js";
|
|
3
|
+
import { u as at, b as tt, a as Ft, d as Ke, i as $l } from "./vue-i18n-D1iec8Wy.js";
|
|
4
4
|
import { d as bt, _ as El, a as zl, b as Al, c as Ml } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js";
|
|
5
5
|
import { storeToRefs as Ve, defineStore as Xt } from "pinia";
|
|
6
6
|
import { useBreakpoints as jt, useSnackbar as Lt, components as Wl } from "@feedmepos/ui-library";
|
|
@@ -76,7 +76,7 @@ function vt(e) {
|
|
|
76
76
|
const a = [e.schemaName, e.name];
|
|
77
77
|
return "option" in e && e.option && a.push(e.option), "aggregation" in e && e.aggregation && a.push(e.aggregation), a.push(e.label.replace(/[^a-zA-Z0-9]/g, "")), a.join("_").toLowerCase();
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Hl(e, a) {
|
|
80
80
|
switch (e) {
|
|
81
81
|
case A.BarChart:
|
|
82
82
|
case A.LineChart:
|
|
@@ -93,7 +93,7 @@ function Ol(e, a) {
|
|
|
93
93
|
return !0;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const Ot = [
|
|
97
97
|
"54, 162, 235",
|
|
98
98
|
//8CE6D7
|
|
99
99
|
"0, 123, 167",
|
|
@@ -121,9 +121,9 @@ function $e({
|
|
|
121
121
|
opacity: o
|
|
122
122
|
}) {
|
|
123
123
|
let l = typeof o == "number" ? o : 1;
|
|
124
|
-
return a && (l = l * 0.6), `rgba(${
|
|
124
|
+
return a && (l = l * 0.6), `rgba(${Ot[e % Ot.length]}, ${l})`;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Jt(e, a, o) {
|
|
127
127
|
if (e === "" || a === "")
|
|
128
128
|
return null;
|
|
129
129
|
let l = (R) => R == null ? void 0 : R.replace(/,/g, "");
|
|
@@ -133,13 +133,13 @@ function Kt(e, a, o) {
|
|
|
133
133
|
return null;
|
|
134
134
|
let _ = 0;
|
|
135
135
|
g === 0 ? c === 0 ? _ = 0 : _ = 1 : _ = (c - g) / g;
|
|
136
|
-
const F =
|
|
136
|
+
const F = Ol(_);
|
|
137
137
|
return {
|
|
138
138
|
value: isNaN(_) ? "" : `${(_ * 100).toFixed(0)}%`,
|
|
139
139
|
icon: F
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Ol(e) {
|
|
143
143
|
return e > 0 ? {
|
|
144
144
|
name: "moving",
|
|
145
145
|
color: "#1F7735",
|
|
@@ -441,7 +441,7 @@ const Pl = /* @__PURE__ */ Te({
|
|
|
441
441
|
return ((h = a.value.data) == null ? void 0 : h.value) || "";
|
|
442
442
|
}), F = T(() => {
|
|
443
443
|
const { data: h } = a.value;
|
|
444
|
-
return h != null && h.comparison ?
|
|
444
|
+
return h != null && h.comparison ? Jt(_.value, h.comparison, g) : null;
|
|
445
445
|
});
|
|
446
446
|
function R(h) {
|
|
447
447
|
switch (h) {
|
|
@@ -537,12 +537,12 @@ const Pl = /* @__PURE__ */ Te({
|
|
|
537
537
|
]);
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
}),
|
|
541
|
-
function
|
|
540
|
+
}), Jl = {};
|
|
541
|
+
function Kl(e, a) {
|
|
542
542
|
const o = B("FmMenuDivider");
|
|
543
543
|
return M(), de(o);
|
|
544
544
|
}
|
|
545
|
-
const Zl = /* @__PURE__ */ Il(
|
|
545
|
+
const Zl = /* @__PURE__ */ Il(Jl, [["render", Kl]]), Ql = "mf-reporttable-dimension", Pt = Xt(Ql, () => {
|
|
546
546
|
const e = v(0), a = v([]), o = v(!1), l = (w, r) => {
|
|
547
547
|
e.value = w, g(w, r);
|
|
548
548
|
}, c = (w, r, L, n) => {
|
|
@@ -603,25 +603,25 @@ const Zl = /* @__PURE__ */ Il(Kl, [["render", Jl]]), Ql = "mf-reporttable-dimens
|
|
|
603
603
|
const f = W.textContent || "", D = window.getComputedStyle(W), Y = `${D.fontWeight} ${D.fontSize} ${D.fontFamily}`, I = document.createElement("canvas").getContext("2d");
|
|
604
604
|
if (I) {
|
|
605
605
|
I.font = Y;
|
|
606
|
-
const
|
|
607
|
-
j =
|
|
606
|
+
const H = I.measureText(f), he = window.getComputedStyle(d), _e = parseFloat(he.paddingLeft || "0"), Ae = parseFloat(he.paddingRight || "0");
|
|
607
|
+
j = H.width + _e + Ae;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
y(r, !1);
|
|
611
|
-
let ue = null,
|
|
611
|
+
let ue = null, J = null;
|
|
612
612
|
const oe = () => {
|
|
613
|
-
if (
|
|
613
|
+
if (J === null) return;
|
|
614
614
|
const f = d;
|
|
615
|
-
f.style.width = `${
|
|
615
|
+
f.style.width = `${J}px`;
|
|
616
616
|
let D = 0;
|
|
617
|
-
n.querySelectorAll("th").forEach((
|
|
618
|
-
D += I === r ?
|
|
617
|
+
n.querySelectorAll("th").forEach((O, I) => {
|
|
618
|
+
D += I === r ? J : O.getBoundingClientRect().width;
|
|
619
619
|
}), n.classList.remove("w-full"), n.style.width = `${D}px`, ue = null;
|
|
620
620
|
}, ye = (f) => {
|
|
621
621
|
const D = f.clientX - L;
|
|
622
|
-
|
|
622
|
+
J = Math.max(j, $ + D), ue === null && (ue = requestAnimationFrame(oe));
|
|
623
623
|
}, pe = () => {
|
|
624
|
-
ue !== null && cancelAnimationFrame(ue),
|
|
624
|
+
ue !== null && cancelAnimationFrame(ue), J !== null && (d.style.width = `${J}px`);
|
|
625
625
|
const f = n.querySelectorAll("th"), D = [];
|
|
626
626
|
f.forEach((Y) => {
|
|
627
627
|
D.push(Y.getBoundingClientRect().width);
|
|
@@ -670,8 +670,8 @@ const Zl = /* @__PURE__ */ Il(Kl, [["render", Jl]]), Ql = "mf-reporttable-dimens
|
|
|
670
670
|
n.forEach(($) => {
|
|
671
671
|
const E = $.closest("thead") !== null;
|
|
672
672
|
$.querySelectorAll(E ? "th" : "td").forEach((j, ue) => {
|
|
673
|
-
const
|
|
674
|
-
j.appendChild(
|
|
673
|
+
const J = d("col", ue), oe = d("row", ue);
|
|
674
|
+
j.appendChild(J), j.appendChild(oe);
|
|
675
675
|
});
|
|
676
676
|
}), F();
|
|
677
677
|
},
|
|
@@ -688,7 +688,7 @@ function gt(e) {
|
|
|
688
688
|
const [l, c] = a.split("."), g = new Intl.NumberFormat("en-US").format(Number(l));
|
|
689
689
|
return c !== void 0 ? `${g}.${c}` : g;
|
|
690
690
|
}
|
|
691
|
-
const ea = "/assets/processTableData.worker-
|
|
691
|
+
const ea = "/assets/processTableData.worker-93fLL2HJ.js", ta = { class: "my-4" }, la = {
|
|
692
692
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
693
693
|
style: { backgroundColor: "#f9f9f9" }
|
|
694
694
|
}, aa = { class: "font-bold" }, na = { class: "text-fm-color-neutral-gray-300" }, oa = /* @__PURE__ */ Te({
|
|
@@ -716,28 +716,28 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
716
716
|
return Be.bottom;
|
|
717
717
|
}
|
|
718
718
|
}), n = T(() => {
|
|
719
|
-
const
|
|
720
|
-
return Math.floor((I - 34.5 - 32) / 48) -
|
|
719
|
+
const O = L.value !== void 0 ? 1 : 0, I = (b.value ? b.value.$el.offsetHeight : 0) - 48;
|
|
720
|
+
return Math.floor((I - 34.5 - 32) / 48) - O;
|
|
721
721
|
}), d = T(() => {
|
|
722
722
|
var D, Y;
|
|
723
723
|
let f = [];
|
|
724
724
|
switch (L.value) {
|
|
725
725
|
case Be.top:
|
|
726
|
-
f = [...((D = w.value[0]) == null ? void 0 : D.cells) || []].map((
|
|
727
|
-
var
|
|
726
|
+
f = [...((D = w.value[0]) == null ? void 0 : D.cells) || []].map((O, I) => {
|
|
727
|
+
var H;
|
|
728
728
|
return {
|
|
729
|
-
main:
|
|
730
|
-
comparison: (
|
|
729
|
+
main: O,
|
|
730
|
+
comparison: (H = w.value[0]) == null ? void 0 : H.comparisonCells[I],
|
|
731
731
|
rowType: U.value[I].type
|
|
732
732
|
};
|
|
733
733
|
});
|
|
734
734
|
break;
|
|
735
735
|
case Be.bottom:
|
|
736
|
-
f = [...((Y = w.value[w.value.length - 1]) == null ? void 0 : Y.cells) || []].map((
|
|
737
|
-
var
|
|
736
|
+
f = [...((Y = w.value[w.value.length - 1]) == null ? void 0 : Y.cells) || []].map((O, I) => {
|
|
737
|
+
var H;
|
|
738
738
|
return {
|
|
739
|
-
main:
|
|
740
|
-
comparison: (
|
|
739
|
+
main: O,
|
|
740
|
+
comparison: (H = w.value[0]) == null ? void 0 : H.comparisonCells[I],
|
|
741
741
|
rowType: U.value[I].type
|
|
742
742
|
};
|
|
743
743
|
});
|
|
@@ -752,7 +752,7 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
752
752
|
} : (D.includes("#") && !D.startsWith("#") && (D = D.split("#")[0]), {
|
|
753
753
|
main: D,
|
|
754
754
|
comparison: f == null ? void 0 : f.comparison,
|
|
755
|
-
difference:
|
|
755
|
+
difference: Jt(f.main, f.comparison, c)
|
|
756
756
|
});
|
|
757
757
|
}
|
|
758
758
|
Ie(() => {
|
|
@@ -766,27 +766,27 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
766
766
|
E.value = [];
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
const f = ++W, D = (l.value.data.rows || []).map((
|
|
770
|
-
isRollup:
|
|
771
|
-
cells: Array.isArray(
|
|
772
|
-
comparisonCells: Array.isArray(
|
|
773
|
-
})), Y = (l.value.data.columns || []).map((
|
|
774
|
-
key:
|
|
775
|
-
type:
|
|
776
|
-
label:
|
|
777
|
-
})),
|
|
769
|
+
const f = ++W, D = (l.value.data.rows || []).map((H) => ({
|
|
770
|
+
isRollup: H.isRollup,
|
|
771
|
+
cells: Array.isArray(H.cells) ? [...H.cells] : [],
|
|
772
|
+
comparisonCells: Array.isArray(H.comparisonCells) ? [...H.comparisonCells] : []
|
|
773
|
+
})), Y = (l.value.data.columns || []).map((H) => ({
|
|
774
|
+
key: H.key,
|
|
775
|
+
type: H.type,
|
|
776
|
+
label: H.label
|
|
777
|
+
})), O = {
|
|
778
778
|
rows: D,
|
|
779
779
|
columns: Y,
|
|
780
780
|
filter: r.value ?? "",
|
|
781
|
-
globalSorts: xl(m.value).map((
|
|
782
|
-
key:
|
|
783
|
-
type:
|
|
781
|
+
globalSorts: xl(m.value).map((H) => ({
|
|
782
|
+
key: H.key,
|
|
783
|
+
type: H.type
|
|
784
784
|
})),
|
|
785
785
|
grandTotalPosition: L.value,
|
|
786
786
|
pageSize: n.value
|
|
787
787
|
};
|
|
788
|
-
Fl(ea,
|
|
789
|
-
f === W && (
|
|
788
|
+
Fl(ea, O).then((H) => {
|
|
789
|
+
f === W && (H != null && H.error ? (F.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(H.error), E.value = []) : E.value = Sl(H.data || []));
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
792
|
me(
|
|
@@ -796,9 +796,9 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
796
796
|
},
|
|
797
797
|
{ immediate: !0, deep: !0 }
|
|
798
798
|
);
|
|
799
|
-
const
|
|
800
|
-
var Y,
|
|
801
|
-
const f = ((Y = l.value.data) == null ? void 0 : Y.rows) || [], D = ((
|
|
799
|
+
const J = T(() => {
|
|
800
|
+
var Y, O;
|
|
801
|
+
const f = ((Y = l.value.data) == null ? void 0 : Y.rows) || [], D = ((O = l.value.data) == null ? void 0 : O.columns) || [];
|
|
802
802
|
return JSON.stringify({
|
|
803
803
|
rowsLength: f.length,
|
|
804
804
|
columns: D.map((I) => ({ key: I.key, type: I.type, label: I.label })),
|
|
@@ -809,7 +809,7 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
809
809
|
});
|
|
810
810
|
});
|
|
811
811
|
me(
|
|
812
|
-
() =>
|
|
812
|
+
() => J.value,
|
|
813
813
|
() => {
|
|
814
814
|
clearTimeout(j), j = setTimeout(ue, 200);
|
|
815
815
|
},
|
|
@@ -831,7 +831,7 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
831
831
|
), pe = T(() => {
|
|
832
832
|
var f;
|
|
833
833
|
return (f = l.value.data) != null && f.columns ? l.value.data.columns.map((D) => {
|
|
834
|
-
const Y = Ue(a, o, D.label, "other"),
|
|
834
|
+
const Y = Ue(a, o, D.label, "other"), O = m.value.find((he) => he.key === D.key), I = !!O, H = I ? O.type === qe.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
835
835
|
return {
|
|
836
836
|
accessorKey: D.key,
|
|
837
837
|
header: () => {
|
|
@@ -850,18 +850,18 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
850
850
|
Y
|
|
851
851
|
),
|
|
852
852
|
rt(he, {
|
|
853
|
-
name:
|
|
853
|
+
name: H,
|
|
854
854
|
color: I ? "primary" : "neutral-gray-400",
|
|
855
855
|
size: "sm",
|
|
856
856
|
class: "transition-transform",
|
|
857
|
-
style:
|
|
857
|
+
style: H === "arrow_upward" ? "transform: translateY(-1px);" : ""
|
|
858
858
|
})
|
|
859
859
|
]
|
|
860
860
|
);
|
|
861
861
|
},
|
|
862
862
|
cell: (he) => {
|
|
863
|
-
var
|
|
864
|
-
const _e = $(he.getValue()), Ae = (Me = (
|
|
863
|
+
var He, Me;
|
|
864
|
+
const _e = $(he.getValue()), Ae = (Me = (He = he == null ? void 0 : he.row) == null ? void 0 : He.original) == null ? void 0 : Me.isRollup;
|
|
865
865
|
return rt(
|
|
866
866
|
"div",
|
|
867
867
|
{
|
|
@@ -893,9 +893,9 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
893
893
|
const D = f.querySelector("table");
|
|
894
894
|
if (!D) return;
|
|
895
895
|
D.classList.add(ye.value ? "table-fixed" : "table-auto");
|
|
896
|
-
let Y,
|
|
897
|
-
y.value ? (S(), Y = h.value,
|
|
898
|
-
p(he,
|
|
896
|
+
let Y, O;
|
|
897
|
+
y.value ? (S(), Y = h.value, O = u.value) : (O = l.value.rowHeight, Y = l.value.colWidths), typeof O == "number" && x(O, f), Y == null || Y.forEach((H, he) => {
|
|
898
|
+
p(he, H, f);
|
|
899
899
|
});
|
|
900
900
|
},
|
|
901
901
|
{ immediate: !0 }
|
|
@@ -920,19 +920,19 @@ const ea = "/assets/processTableData.worker-D4nIiACG.js", ta = { class: "my-4" }
|
|
|
920
920
|
"pin-top": ie(() => [
|
|
921
921
|
X("tbody", null, [
|
|
922
922
|
X("tr", la, [
|
|
923
|
-
(M(!0), ne(xe, null, ut(d.value, (
|
|
923
|
+
(M(!0), ne(xe, null, ut(d.value, (O, I) => (M(), ne("td", {
|
|
924
924
|
key: `${s(it)()}_${I}`,
|
|
925
925
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
926
926
|
}, [
|
|
927
927
|
X("span", {
|
|
928
928
|
class: Ze([
|
|
929
929
|
"items-center text-fm-color-typo-secondary gap-2",
|
|
930
|
-
|
|
930
|
+
O.rowType === "NUMERIC" ? "text-right" : "",
|
|
931
931
|
ye.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
932
932
|
])
|
|
933
933
|
}, [
|
|
934
|
-
X("p", aa, De(
|
|
935
|
-
X("p", na, De(
|
|
934
|
+
X("p", aa, De(O.rowType === "NUMERIC" ? s(gt)(O.main) : O.main), 1),
|
|
935
|
+
X("p", na, De(O.comparison ? O.rowType === "NUMERIC" ? `(${s(gt)(O.comparison)})` : `(${O.comparison})` : ""), 1)
|
|
936
936
|
], 2)
|
|
937
937
|
]))), 128))
|
|
938
938
|
])
|
|
@@ -1342,12 +1342,12 @@ function fa(e) {
|
|
|
1342
1342
|
$.forEach((W, j) => {
|
|
1343
1343
|
const ue = E[j];
|
|
1344
1344
|
if (!ue) return;
|
|
1345
|
-
const
|
|
1345
|
+
const J = W, oe = window.getComputedStyle(J);
|
|
1346
1346
|
Object.assign(ue.style, {
|
|
1347
|
-
width: `${
|
|
1348
|
-
minWidth: `${
|
|
1349
|
-
maxWidth: `${
|
|
1350
|
-
height: `${
|
|
1347
|
+
width: `${J.offsetWidth}px`,
|
|
1348
|
+
minWidth: `${J.offsetWidth}px`,
|
|
1349
|
+
maxWidth: `${J.offsetWidth}px`,
|
|
1350
|
+
height: `${J.offsetHeight}px`,
|
|
1351
1351
|
padding: oe.padding,
|
|
1352
1352
|
backgroundColor: oe.backgroundColor,
|
|
1353
1353
|
borderBottom: oe.borderBottom,
|
|
@@ -1360,10 +1360,10 @@ function fa(e) {
|
|
|
1360
1360
|
pointerEvents: "auto"
|
|
1361
1361
|
}), ue.onclick = (ye) => {
|
|
1362
1362
|
ye.preventDefault(), ye.stopPropagation();
|
|
1363
|
-
const pe =
|
|
1363
|
+
const pe = J.querySelector(
|
|
1364
1364
|
"button, a, [role='button']"
|
|
1365
1365
|
);
|
|
1366
|
-
pe ? pe.click() :
|
|
1366
|
+
pe ? pe.click() : J.click();
|
|
1367
1367
|
};
|
|
1368
1368
|
});
|
|
1369
1369
|
}
|
|
@@ -1375,7 +1375,7 @@ function fa(e) {
|
|
|
1375
1375
|
return;
|
|
1376
1376
|
}
|
|
1377
1377
|
c.style.visibility = "visible", c.style.top = `${j}px`;
|
|
1378
|
-
const
|
|
1378
|
+
const J = W ?? n, oe = Math.max(n.left, J.left), pe = Math.min(n.right, J.right) - oe;
|
|
1379
1379
|
c.style.left = `${oe}px`, c.style.width = `${pe}px`;
|
|
1380
1380
|
const f = c.querySelector("table");
|
|
1381
1381
|
f && (f.style.width = `${g.offsetWidth}px`, f.style.marginLeft = `${$.left - oe}px`);
|
|
@@ -1499,22 +1499,22 @@ const va = {
|
|
|
1499
1499
|
return -1;
|
|
1500
1500
|
}), U = T(() => b.value !== 0), w = T(
|
|
1501
1501
|
() => b.value != Pe.value.length - 1
|
|
1502
|
-
), r = v(l.showTitle ?? !0), L = v(l.titleFontSize ?? 14), n = v(l.titleBold ?? !1), d = v(l.titleItalic ?? !1), $ = v(l.titleUnderline ?? !1), E = v(l.chartWidth ?? void 0), W = v(l.chartHeight ?? void 0), j = v(l.showLabel ?? !1), ue = v(l.labelAlign ?? Ct.center),
|
|
1502
|
+
), r = v(l.showTitle ?? !0), L = v(l.titleFontSize ?? 14), n = v(l.titleBold ?? !1), d = v(l.titleItalic ?? !1), $ = v(l.titleUnderline ?? !1), E = v(l.chartWidth ?? void 0), W = v(l.chartHeight ?? void 0), j = v(l.showLabel ?? !1), ue = v(l.labelAlign ?? Ct.center), J = v(l.labelAnchor ?? St.center), oe = v(l.labelRotation ?? 0), ye = v(l.labelOffset ?? 0), pe = v(l.labelFontSize ?? 12), f = T(() => l.showSearchBar), D = v(l.showX ?? !0), Y = v(l.xPosition ?? kt.bottom), O = v(l.showXGrid ?? !1), I = v(l.showXTick ?? !0), H = v(l.xTickFontSize ?? 12), he = v(l.showXTitle ?? !1), _e = v(l.xTitle ?? ""), Ae = v(l.xTitleFontSize ?? 12), He = v(l.showY ?? !0), Me = v(l.yPosition ?? Tt.left), t = v(l.showYGrid ?? !1), k = v(l.showYTick ?? !0), z = v(l.yTickFontSize ?? 12), V = v(l.showYTitle ?? !1), G = v(l.yTitle ?? ""), re = v(l.yTitleFontSize ?? 12), be = v(l.showLegend ?? void 0), ve = v(l.legendPosition ?? _t.top), le = v(l.usePointStyle ?? !0), N = v(l.legendMaxHeight), P = v(l.legendMaxWidth), C = v(l.rowHeight ?? 0), ae = v(l.colWidths ?? []), K = v(!1), ce = v(""), { breakpoints: ee, getBreakpointsBoundary: Z } = jt(), we = v(), Q = T(
|
|
1503
1503
|
() => F.customScreenWidth === void 0 ? window.innerWidth : F.customScreenWidth
|
|
1504
|
-
),
|
|
1504
|
+
), Oe = T(
|
|
1505
1505
|
() => (Q == null ? void 0 : Q.value) > Z("xs")[1] && (Q == null ? void 0 : Q.value) <= Z("sm")[1]
|
|
1506
1506
|
), ct = T(
|
|
1507
1507
|
() => (Q == null ? void 0 : Q.value) > Z("sm")[1] && (Q == null ? void 0 : Q.value) <= Z("md")[1]
|
|
1508
1508
|
), se = T(() => (Q == null ? void 0 : Q.value) > Z("md")[1]), Zt = T(() => {
|
|
1509
1509
|
const i = o.value.size.width;
|
|
1510
|
-
return se.value || ct.value ? ia(i) :
|
|
1510
|
+
return se.value || ct.value ? ia(i) : Oe.value ? ua(i) : ca(i);
|
|
1511
1511
|
}), ot = T(
|
|
1512
1512
|
() => Nl.find((i) => i.type === o.value.widget.type)
|
|
1513
1513
|
), Ge = bt(() => {
|
|
1514
1514
|
var i;
|
|
1515
1515
|
we.value = il((i = R.value) == null ? void 0 : i.$el.offsetWidth), x.value = it();
|
|
1516
1516
|
}), Qt = T(() => {
|
|
1517
|
-
if (
|
|
1517
|
+
if (Hl(fe.value.type, Xe.value))
|
|
1518
1518
|
switch (o.value.widget.type) {
|
|
1519
1519
|
case A.BarChart:
|
|
1520
1520
|
return Pl;
|
|
@@ -1569,20 +1569,20 @@ const va = {
|
|
|
1569
1569
|
chartHeight: W.value,
|
|
1570
1570
|
chartWidth: E.value,
|
|
1571
1571
|
showLabel: j.value,
|
|
1572
|
-
labelAnchor:
|
|
1572
|
+
labelAnchor: J.value,
|
|
1573
1573
|
labelAlign: ue.value,
|
|
1574
1574
|
labelRotation: oe.value,
|
|
1575
1575
|
labelOffset: ye.value,
|
|
1576
1576
|
labelFontSize: pe.value,
|
|
1577
1577
|
showX: D.value,
|
|
1578
1578
|
xPosition: Y.value,
|
|
1579
|
-
showXGrid:
|
|
1579
|
+
showXGrid: O.value,
|
|
1580
1580
|
showXTick: I.value,
|
|
1581
|
-
xTickFontSize:
|
|
1581
|
+
xTickFontSize: H.value,
|
|
1582
1582
|
showXTitle: he.value,
|
|
1583
1583
|
xTitle: _e.value,
|
|
1584
1584
|
xTitleFontSize: Ae.value,
|
|
1585
|
-
showY:
|
|
1585
|
+
showY: He.value,
|
|
1586
1586
|
yPosition: Me.value,
|
|
1587
1587
|
showYGrid: t.value,
|
|
1588
1588
|
showYTick: k.value,
|
|
@@ -1651,7 +1651,7 @@ const va = {
|
|
|
1651
1651
|
me(
|
|
1652
1652
|
() => o.value.widget.config,
|
|
1653
1653
|
(i) => {
|
|
1654
|
-
p.value = i.rollup, r.value = i.showTitle ?? !0, L.value = i.titleFontSize ?? 14, n.value = i.titleBold ?? !1, d.value = i.titleItalic ?? !1, $.value = i.titleUnderline ?? !1, W.value = i.chartHeight ?? void 0, E.value = i.chartWidth ?? void 0, j.value = i.showLabel ?? !1, ue.value = i.labelAlign ?? Ct.center,
|
|
1654
|
+
p.value = i.rollup, r.value = i.showTitle ?? !0, L.value = i.titleFontSize ?? 14, n.value = i.titleBold ?? !1, d.value = i.titleItalic ?? !1, $.value = i.titleUnderline ?? !1, W.value = i.chartHeight ?? void 0, E.value = i.chartWidth ?? void 0, j.value = i.showLabel ?? !1, ue.value = i.labelAlign ?? Ct.center, J.value = i.labelAnchor ?? St.center, oe.value = i.labelRotation ?? 0, ye.value = i.labelOffset ?? 0, pe.value = i.labelFontSize ?? 12, D.value = i.showX ?? !0, Y.value = i.xPosition ?? kt.bottom, O.value = i.showXGrid ?? !1, I.value = i.showXTick ?? !0, H.value = i.xTickFontSize ?? 12, he.value = i.showXTitle ?? !1, _e.value = i.xTitle ?? "", Ae.value = i.xTitleFontSize ?? 12, He.value = i.showY ?? !0, Me.value = i.yPosition ?? Tt.left, t.value = i.showYGrid ?? !1, k.value = i.showYTick ?? !0, z.value = i.yTickFontSize ?? 12, V.value = i.showYTitle ?? !1, G.value = i.yTitle ?? "", re.value = i.yTitleFontSize ?? 12, be.value = i.showLegend ?? void 0, ve.value = i.legendPosition ?? _t.top, le.value = i.usePointStyle ?? !0, N.value = i.legendMaxHeight, P.value = i.legendMaxWidth, C.value = i.rowHeight ?? 0, ae.value = i.colWidths ?? [];
|
|
1655
1655
|
},
|
|
1656
1656
|
{ deep: !0 }
|
|
1657
1657
|
), me([() => p.value], () => {
|
|
@@ -1718,18 +1718,18 @@ const va = {
|
|
|
1718
1718
|
const i = b.value + 1;
|
|
1719
1719
|
i >= 0 && i < Pe.value.length && (S.value = Pe.value[i].value);
|
|
1720
1720
|
}
|
|
1721
|
-
const Mt = v(
|
|
1721
|
+
const Mt = v(Je.EXCEL), Wt = v(), dl = Object.values(Je).map((i) => ({
|
|
1722
1722
|
label: Ll(i),
|
|
1723
1723
|
value: i,
|
|
1724
1724
|
onClick: async () => {
|
|
1725
|
-
i ===
|
|
1725
|
+
i === Je.EXCEL || i === Je.PDFFULLSIZE || i === Je.PDFRECEIPT ? await Yt({
|
|
1726
1726
|
reportType: i,
|
|
1727
1727
|
index: F.index,
|
|
1728
1728
|
isCombinedLocationLayout: nl.value,
|
|
1729
1729
|
timeRange: Dt.value,
|
|
1730
1730
|
dateRange: Rt.value,
|
|
1731
1731
|
locationIds: dt.value
|
|
1732
|
-
}) : i ===
|
|
1732
|
+
}) : i === Je.PDF && (Mt.value = i, Wt.value = F.index, K.value = !0);
|
|
1733
1733
|
}
|
|
1734
1734
|
})), ml = fe.value.type === A.Spacer ? "flat" : "outlined", pl = fe.value.type === A.Spacer ? "p-0" : "p-16";
|
|
1735
1735
|
return (i, te) => {
|
|
@@ -1742,8 +1742,8 @@ const va = {
|
|
|
1742
1742
|
}, {
|
|
1743
1743
|
default: ie(() => [
|
|
1744
1744
|
q(ha, {
|
|
1745
|
-
modelValue:
|
|
1746
|
-
"onUpdate:modelValue": te[0] || (te[0] = (je) =>
|
|
1745
|
+
modelValue: K.value,
|
|
1746
|
+
"onUpdate:modelValue": te[0] || (te[0] = (je) => K.value = je),
|
|
1747
1747
|
"report-type": Mt.value,
|
|
1748
1748
|
index: Wt.value
|
|
1749
1749
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
@@ -1760,7 +1760,7 @@ const va = {
|
|
|
1760
1760
|
menu: ie(() => [
|
|
1761
1761
|
q(yl, { class: "flex items-center gap-2" }, {
|
|
1762
1762
|
default: ie(() => {
|
|
1763
|
-
var je, It, Nt,
|
|
1763
|
+
var je, It, Nt, Ht;
|
|
1764
1764
|
return [
|
|
1765
1765
|
q(Fe, {
|
|
1766
1766
|
variant: "plain",
|
|
@@ -1815,7 +1815,7 @@ const va = {
|
|
|
1815
1815
|
onClick: cl
|
|
1816
1816
|
}, null, 8, ["disabled"])
|
|
1817
1817
|
])) : ke("", !0),
|
|
1818
|
-
(
|
|
1818
|
+
(Ht = ot.value) != null && Ht.showRollup && Et.value.length > 0 ? (M(), de(fl, {
|
|
1819
1819
|
key: `rollup-${s(_)}`,
|
|
1820
1820
|
modelValue: p.value,
|
|
1821
1821
|
"onUpdate:modelValue": te[3] || (te[3] = (Le) => p.value = Le),
|
|
@@ -1916,7 +1916,7 @@ function Ua({
|
|
|
1916
1916
|
default: !0
|
|
1917
1917
|
};
|
|
1918
1918
|
case Re.Timestamp:
|
|
1919
|
-
return
|
|
1919
|
+
return Kt({
|
|
1920
1920
|
dimensionOption: a,
|
|
1921
1921
|
fixed: c,
|
|
1922
1922
|
count: g,
|
|
@@ -1951,7 +1951,7 @@ function Ga(e) {
|
|
|
1951
1951
|
return;
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function Kt({
|
|
1955
1955
|
dimensionOption: e,
|
|
1956
1956
|
fixed: a,
|
|
1957
1957
|
count: o,
|
|
@@ -2030,7 +2030,7 @@ function Bt({
|
|
|
2030
2030
|
dimensionOption: e,
|
|
2031
2031
|
t: a
|
|
2032
2032
|
}) {
|
|
2033
|
-
const o =
|
|
2033
|
+
const o = Kt({
|
|
2034
2034
|
dimensionOption: e,
|
|
2035
2035
|
fixed: !1,
|
|
2036
2036
|
count: 1,
|
|
@@ -2163,8 +2163,8 @@ const wa = Xt(ba, () => {
|
|
|
2163
2163
|
var ve;
|
|
2164
2164
|
if (!l.value && !c.value) return [];
|
|
2165
2165
|
const k = c.value ? [c.value] : [...((ve = l.value) == null ? void 0 : ve.tiles) ?? []], { name: z = "", schemaName: V = "" } = t, G = k.filter((le) => {
|
|
2166
|
-
var
|
|
2167
|
-
const N = (
|
|
2166
|
+
var K, ce;
|
|
2167
|
+
const N = (K = le == null ? void 0 : le.widget) == null ? void 0 : K.config;
|
|
2168
2168
|
if (!N || (ce = t.tileIds) != null && ce.length && !t.tileIds.includes(le.id)) return !1;
|
|
2169
2169
|
const P = (N.dimensions ?? []).some(
|
|
2170
2170
|
(ee) => ee.schemaName === V && ee.name === z
|
|
@@ -2176,8 +2176,8 @@ const wa = Xt(ba, () => {
|
|
|
2176
2176
|
if (!G.length) return [];
|
|
2177
2177
|
const re = (le, N) => {
|
|
2178
2178
|
const P = /* @__PURE__ */ new Map(), C = (ae) => {
|
|
2179
|
-
const
|
|
2180
|
-
ce ? [Ce.Like, Ce.NotLike].includes(ae.operator) ? ce.values = Array.from(/* @__PURE__ */ new Set([...ce.values ?? [], ...ae.values ?? []])) : P.set(
|
|
2179
|
+
const K = `${ae.schemaName}:${ae.name}:${ae.operator}`, ce = P.get(K);
|
|
2180
|
+
ce ? [Ce.Like, Ce.NotLike].includes(ae.operator) ? ce.values = Array.from(/* @__PURE__ */ new Set([...ce.values ?? [], ...ae.values ?? []])) : P.set(K, { ...ae }) : P.set(K, { ...ae });
|
|
2181
2181
|
};
|
|
2182
2182
|
return le.forEach(C), N.forEach(C), Array.from(P.values());
|
|
2183
2183
|
}, be = (le) => {
|
|
@@ -2204,13 +2204,13 @@ const wa = Xt(ba, () => {
|
|
|
2204
2204
|
var Q;
|
|
2205
2205
|
return (Q = N.schemaNames) == null ? void 0 : Q.includes(we.schemaName);
|
|
2206
2206
|
})
|
|
2207
|
-
),
|
|
2207
|
+
), K = (Z = N.joinDatasources) == null ? void 0 : Z.find(
|
|
2208
2208
|
(we) => (we.schemaNames ?? []).includes(V) || (we.dimensions ?? []).some((Q) => Q.schemaName === V)
|
|
2209
2209
|
), ce = re(
|
|
2210
|
-
(
|
|
2210
|
+
(K == null ? void 0 : K.filters) ?? [],
|
|
2211
2211
|
(t.filters ?? []).filter((we) => {
|
|
2212
2212
|
var Q;
|
|
2213
|
-
return (Q =
|
|
2213
|
+
return (Q = K == null ? void 0 : K.schemaNames) == null ? void 0 : Q.includes(we.schemaName);
|
|
2214
2214
|
})
|
|
2215
2215
|
);
|
|
2216
2216
|
return {
|
|
@@ -2222,9 +2222,9 @@ const wa = Xt(ba, () => {
|
|
|
2222
2222
|
dimensions: C ? [P] : [],
|
|
2223
2223
|
filters: ae,
|
|
2224
2224
|
sorts: C ? [{ name: z, schemaName: V, type: qe.Asc, aggregation: null, dimensionOption: null }] : [],
|
|
2225
|
-
joinDatasources: !C &&
|
|
2225
|
+
joinDatasources: !C && K ? [
|
|
2226
2226
|
{
|
|
2227
|
-
...
|
|
2227
|
+
...K,
|
|
2228
2228
|
dimensions: [P],
|
|
2229
2229
|
sorts: [
|
|
2230
2230
|
{
|
|
@@ -2262,7 +2262,7 @@ const wa = Xt(ba, () => {
|
|
|
2262
2262
|
function ue(t) {
|
|
2263
2263
|
j(t) ? t.selectedValues = ["(EMPTY)"] : t.selectedValues = t.options.map((k) => k.value);
|
|
2264
2264
|
}
|
|
2265
|
-
const
|
|
2265
|
+
const J = T(
|
|
2266
2266
|
() => d.value.map((t) => {
|
|
2267
2267
|
const k = t.options, z = t.search.toLowerCase() ?? "";
|
|
2268
2268
|
return k.filter(
|
|
@@ -2348,7 +2348,7 @@ const wa = Xt(ba, () => {
|
|
|
2348
2348
|
if (k === null)
|
|
2349
2349
|
t.values = [];
|
|
2350
2350
|
else {
|
|
2351
|
-
const V =
|
|
2351
|
+
const V = Ke(k.startDate).startOf("day").utc().toISOString(), G = Ke(k.endDate).endOf("day").utc().toISOString();
|
|
2352
2352
|
t.values = [V, G];
|
|
2353
2353
|
}
|
|
2354
2354
|
const z = d.value.find((V) => V.id === S(t, n.value));
|
|
@@ -2358,7 +2358,7 @@ const wa = Xt(ba, () => {
|
|
|
2358
2358
|
const k = (t.selectedValues || []).filter((z) => z !== "(EMPTY)");
|
|
2359
2359
|
return `${a("report.section.filter.selectAll")} (${k.length}/${t.options.length})`;
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function O(t) {
|
|
2362
2362
|
const k = t.options.length, z = a("report.section.filter.search"), V = a("report.common.results", { count: k });
|
|
2363
2363
|
return `${z} (${V})`;
|
|
2364
2364
|
}
|
|
@@ -2374,10 +2374,10 @@ const wa = Xt(ba, () => {
|
|
|
2374
2374
|
locale: o.value
|
|
2375
2375
|
})}` : k, suffix: "" };
|
|
2376
2376
|
if (t.filter.option === ge.TimeOfDay) {
|
|
2377
|
-
const C = (le = t.filter.values) != null && le[0] ?
|
|
2377
|
+
const C = (le = t.filter.values) != null && le[0] ? Ke(t.filter.values[0]) : null, ae = (N = t.filter.values) != null && N[1] ? Ke(t.filter.values[1]) : null, K = (ee) => ee && ee.isValid() ? { hour: ee.hour(), minute: ee.minute() } : null;
|
|
2378
2378
|
return { preview: P ? `${k} is between ${Ml({
|
|
2379
|
-
startTime:
|
|
2380
|
-
endTime:
|
|
2379
|
+
startTime: K(C),
|
|
2380
|
+
endTime: K(ae),
|
|
2381
2381
|
locale: o.value
|
|
2382
2382
|
})}` : k, suffix: "" };
|
|
2383
2383
|
}
|
|
@@ -2398,7 +2398,7 @@ const wa = Xt(ba, () => {
|
|
|
2398
2398
|
suffix: `(${V.length} selected)`
|
|
2399
2399
|
} : { preview: G, suffix: `${k}` };
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function H(t) {
|
|
2402
2402
|
t.filter.values = [...t.selectedValues || []], p(t.filter, n.value, "selectedValues", t.selectedValues), document.body.click();
|
|
2403
2403
|
}
|
|
2404
2404
|
function he(t) {
|
|
@@ -2410,7 +2410,7 @@ const wa = Xt(ba, () => {
|
|
|
2410
2410
|
function Ae(t) {
|
|
2411
2411
|
t.keepSelection = !t.keepSelection, x(t.keepSelection), p(t.filter, n.value, "keepSelection", t.keepSelection), t.options = [], pe(!0);
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function He(t, k) {
|
|
2414
2414
|
return t ? t.length > k ? `${t.slice(0, k)}…` : t : "";
|
|
2415
2415
|
}
|
|
2416
2416
|
function Me(t, k) {
|
|
@@ -2418,7 +2418,7 @@ const wa = Xt(ba, () => {
|
|
|
2418
2418
|
if (k === null)
|
|
2419
2419
|
t.values = [];
|
|
2420
2420
|
else {
|
|
2421
|
-
const ve =
|
|
2421
|
+
const ve = Ke().set("hour", Number((V = k.start) == null ? void 0 : V.hour)).set("minute", Number((G = k.start) == null ? void 0 : G.minute)).toISOString(), le = Ke().set("hour", Number((re = k.end) == null ? void 0 : re.hour)).set("minute", Number((be = k.end) == null ? void 0 : be.minute)).toISOString();
|
|
2422
2422
|
t.values = [ve, le];
|
|
2423
2423
|
}
|
|
2424
2424
|
const z = d.value.find((ve) => ve.id === S(t, n.value));
|
|
@@ -2428,17 +2428,17 @@ const wa = Xt(ba, () => {
|
|
|
2428
2428
|
const z = B("FmCircularProgress"), V = B("FmTextField"), G = B("FmMenuItem"), re = B("FmTooltip"), be = B("FmIcon"), ve = B("FmMenuDivider"), le = B("FmSwitch"), N = B("FmButton"), P = B("FmMenu");
|
|
2429
2429
|
return M(), ne("div", xa, [
|
|
2430
2430
|
(M(!0), ne(xe, null, ut(d.value, (C, ae) => {
|
|
2431
|
-
var
|
|
2431
|
+
var K, ce, ee, Z, we, Q;
|
|
2432
2432
|
return M(), ne("div", {
|
|
2433
2433
|
key: `${C.id}`
|
|
2434
2434
|
}, [
|
|
2435
2435
|
C.filter.option === s(ge).DateTime ? (M(), de(El, {
|
|
2436
2436
|
key: 0,
|
|
2437
|
-
"model-value": { startDate: (
|
|
2437
|
+
"model-value": { startDate: (K = C.filter.values) == null ? void 0 : K[0], endDate: (ce = C.filter.values) == null ? void 0 : ce[1] },
|
|
2438
2438
|
class: "w-full",
|
|
2439
2439
|
label: I(C).preview,
|
|
2440
2440
|
removable: ((ee = C.filter.values) == null ? void 0 : ee.length) === 2,
|
|
2441
|
-
onUpdate: (
|
|
2441
|
+
onUpdate: (Oe) => D(C.filter, Oe),
|
|
2442
2442
|
onChipClosed: () => D(C.filter, null)
|
|
2443
2443
|
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : C.filter.option === s(ge).TimeOfDay ? (M(), de(Vl, {
|
|
2444
2444
|
key: 1,
|
|
@@ -2446,7 +2446,7 @@ const wa = Xt(ba, () => {
|
|
|
2446
2446
|
class: "w-full",
|
|
2447
2447
|
label: I(C).preview,
|
|
2448
2448
|
removable: ((Q = C.filter.values) == null ? void 0 : Q.length) === 2,
|
|
2449
|
-
onUpdate: (
|
|
2449
|
+
onUpdate: (Oe) => Me(C.filter, Oe),
|
|
2450
2450
|
onChipClosed: () => Me(C.filter, null)
|
|
2451
2451
|
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (M(), de(P, {
|
|
2452
2452
|
key: 2,
|
|
@@ -2469,10 +2469,10 @@ const wa = Xt(ba, () => {
|
|
|
2469
2469
|
}, 1032, ["label"])
|
|
2470
2470
|
])
|
|
2471
2471
|
]),
|
|
2472
|
-
"menu-wrapper": ie(({ maxHeight:
|
|
2472
|
+
"menu-wrapper": ie(({ maxHeight: Oe, width: ct }) => [
|
|
2473
2473
|
X("div", {
|
|
2474
2474
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
2475
|
-
style: Ee({ maxHeight: `${
|
|
2475
|
+
style: Ee({ maxHeight: `${Oe}px`, width: ct })
|
|
2476
2476
|
}, [
|
|
2477
2477
|
L.value ? (M(), ne("div", Ca, [
|
|
2478
2478
|
q(z)
|
|
@@ -2486,7 +2486,7 @@ const wa = Xt(ba, () => {
|
|
|
2486
2486
|
],
|
|
2487
2487
|
type: "text",
|
|
2488
2488
|
"prepend-icon": "search",
|
|
2489
|
-
placeholder:
|
|
2489
|
+
placeholder: O(C),
|
|
2490
2490
|
class: "border px-2 pb-8 text-sm mb-1 rounded"
|
|
2491
2491
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
2492
2492
|
]),
|
|
@@ -2499,7 +2499,7 @@ const wa = Xt(ba, () => {
|
|
|
2499
2499
|
indeterminate: !0,
|
|
2500
2500
|
onClick: (se) => ue(C)
|
|
2501
2501
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
2502
|
-
(M(!0), ne(xe, null, ut(
|
|
2502
|
+
(M(!0), ne(xe, null, ut(J.value[ae], (se) => (M(), ne(xe, {
|
|
2503
2503
|
key: se.value
|
|
2504
2504
|
}, [
|
|
2505
2505
|
se.label && se.label.length > 110 ? (M(), de(re, {
|
|
@@ -2514,7 +2514,7 @@ const wa = Xt(ba, () => {
|
|
|
2514
2514
|
default: ie(() => [
|
|
2515
2515
|
X("div", Fa, [
|
|
2516
2516
|
q(G, {
|
|
2517
|
-
label:
|
|
2517
|
+
label: He(se.label, 110),
|
|
2518
2518
|
"has-checkbox": !0,
|
|
2519
2519
|
"model-value": C.selectedValues.includes(se.value),
|
|
2520
2520
|
class: Ze([
|
|
@@ -2535,7 +2535,7 @@ const wa = Xt(ba, () => {
|
|
|
2535
2535
|
onClick: () => f(C, se.value)
|
|
2536
2536
|
}, null, 8, ["label", "model-value", "class", "onClick"]))
|
|
2537
2537
|
], 64))), 128)),
|
|
2538
|
-
|
|
2538
|
+
J.value[ae].length < C.options.length && !C.search ? (M(), de(G, {
|
|
2539
2539
|
key: 0,
|
|
2540
2540
|
class: "fm-typo-en-body-md-400 -ml-2",
|
|
2541
2541
|
label: s(a)("report.section.filter.loadMore"),
|
|
@@ -2592,7 +2592,7 @@ const wa = Xt(ba, () => {
|
|
|
2592
2592
|
}, null, 8, ["label", "onClick"]),
|
|
2593
2593
|
q(N, {
|
|
2594
2594
|
color: "primary",
|
|
2595
|
-
onClick: ht((se) =>
|
|
2595
|
+
onClick: ht((se) => H(C), ["stop"]),
|
|
2596
2596
|
label: s(a)("report.common.apply")
|
|
2597
2597
|
}, null, 8, ["onClick", "label"])
|
|
2598
2598
|
])
|