@feedmepos/mf-report 5.19.15-beta.0 → 5.19.15
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-DaWS5CoM.js → App-CgBepc4W.js} +31 -31
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-lOdt7NC7.js → BaseDialog.vue_vue_type_script_setup_true_lang-D3dOLhm1.js} +7 -7
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BVi8DNni.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-Chyv0-HU.js → Default.vue_vue_type_script_setup_true_lang-Ces7bvD0.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D7I6fnJ3.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DFRkSQUK.js} +209 -209
- package/dist/{InsightView-B28BJ1MA.js → InsightView-DsW5vrmr.js} +5 -5
- package/dist/{Integration-B58qXrEi.js → Integration-D2rqevDl.js} +2 -2
- package/dist/{Integrations-D4ju0l38.js → Integrations-BGNXoeWI.js} +3 -3
- package/dist/{Layout-lJXJCHED.js → Layout-r5jtimyJ.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CGD_v4oS.js → MenuTab.vue_vue_type_script_setup_true_lang-CVsSWc-R.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BuWxAL_6.js → NavigationTab.vue_vue_type_script_setup_true_lang-BAwOPmLH.js} +3769 -3771
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DX1We5Q0.js → NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js} +1 -1
- package/dist/{OverviewView-BKQm4JJJ.js → OverviewView-4q3iT_ZG.js} +5 -5
- package/dist/{Report-DL0olJk2.js → Report-CX_wFGlL.js} +4 -4
- package/dist/{ReportEditor-BFDiTB14.js → ReportEditor-CFX2Sy_p.js} +6 -6
- package/dist/{ReportView-BrIUqNUG.js → ReportView-B_EfFR1x.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DYOjRnAy.js → SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js} +1 -1
- package/dist/{Setting-T8R9CvmF.js → Setting-CwNJQn0a.js} +4 -4
- package/dist/{TileEditor-CfJ_AkZJ.js → TileEditor-C7q-tvNh.js} +7 -7
- package/dist/{TransitionFade-CikcE2a-.js → TransitionFade-BS7SdKMr.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/assets/{formatChartData.worker-BzZtU5fj.js → formatChartData.worker-reYyZ0mM.js} +1 -1
- package/dist/assets/{processTableData.worker-D-lgWpiT.js → processTableData.worker-LuS08Ujn.js} +1 -1
- package/dist/{helper-CLGnwM-X.js → helper-B2iB0Dbh.js} +1 -1
- package/dist/{vue-i18n-DsnU36hZ.js → vue-i18n-D33f1SSo.js} +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { computed as f, defineComponent as se, mergeModels as me, useModel as re, ref as u, onMounted as we, nextTick as J, watch as G, resolveComponent as H, createElementBlock as O, openBlock as
|
|
2
|
-
import { W as _, d as Ve, e as ca, S as
|
|
3
|
-
import { u as qe, b as Ne, a as nt } from "./vue-i18n-
|
|
4
|
-
import { a as St } from "./helper-
|
|
1
|
+
import { computed as f, defineComponent as se, mergeModels as me, useModel as re, ref as u, onMounted as we, nextTick as J, watch as G, resolveComponent as H, createElementBlock as O, openBlock as W, Fragment as de, renderSlot as xe, createVNode as I, normalizeStyle as he, unref as l, createElementVNode as M, toDisplayString as Ee, withCtx as Y, createBlock as j, createCommentVNode as be, normalizeClass as Me, h as Be, renderList as Ft, toRaw as aa, markRaw as oa, createTextVNode as la, onUnmounted as na, resolveDynamicComponent as sa, withDirectives as ra, vShow as ia } from "vue";
|
|
2
|
+
import { W as _, d as Ve, e as ca, S as We, v as Ie, f as ua, g as Je, h as Rt, q as da, R as Fe, i as ha } from "./BaseDialog.vue_vue_type_script_setup_true_lang-D3dOLhm1.js";
|
|
3
|
+
import { u as qe, b as Ne, a as nt } from "./vue-i18n-D33f1SSo.js";
|
|
4
|
+
import { a as St } from "./helper-B2iB0Dbh.js";
|
|
5
5
|
import { storeToRefs as Le, defineStore as ma } from "pinia";
|
|
6
6
|
import { useBreakpoints as Lt, useSnackbar as st, components as pa } from "@feedmepos/ui-library";
|
|
7
|
-
import { a as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as fa } from "./SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js";
|
|
8
8
|
import { r as Re } from "./i18n-Cif1I9J2.js";
|
|
9
|
-
import { _ as kt } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
var Qe = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Qe || {}), ye = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(ye || {}), et = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(tt || {}), at = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(at || {}),
|
|
9
|
+
import { _ as kt } from "./NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js";
|
|
10
|
+
var Qe = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Qe || {}), ye = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(ye || {}), et = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(tt || {}), at = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(at || {}), ot = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(ot || {}), lt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(lt || {});
|
|
11
11
|
_.Circular, _.Table, _.BarChart, _.LineChart, _.StackBarChart, _.StackLineChart, _.Scorecard, _.Spacer;
|
|
12
12
|
const va = [
|
|
13
13
|
{
|
|
@@ -335,7 +335,7 @@ const ba = /* @__PURE__ */ se({
|
|
|
335
335
|
J(() => v());
|
|
336
336
|
}), (h, z) => {
|
|
337
337
|
const d = H("FmBarChart");
|
|
338
|
-
return
|
|
338
|
+
return W(), O(de, null, [
|
|
339
339
|
xe(h.$slots, "menu"),
|
|
340
340
|
I(d, {
|
|
341
341
|
ref_key: "chartRef",
|
|
@@ -343,21 +343,21 @@ const ba = /* @__PURE__ */ se({
|
|
|
343
343
|
class: "bar-chart",
|
|
344
344
|
datasets: x.value,
|
|
345
345
|
"x-axis": { categories: w.value },
|
|
346
|
-
"x-cfg":
|
|
347
|
-
"y-cfg":
|
|
348
|
-
transpose:
|
|
346
|
+
"x-cfg": l(S),
|
|
347
|
+
"y-cfg": l(F),
|
|
348
|
+
transpose: l(s),
|
|
349
349
|
legend: {
|
|
350
|
-
display:
|
|
351
|
-
position:
|
|
352
|
-
maxHeight:
|
|
353
|
-
maxWidth:
|
|
354
|
-
labels:
|
|
350
|
+
display: l(c).display ?? !1,
|
|
351
|
+
position: l(c).position,
|
|
352
|
+
maxHeight: l(c).maxHeight,
|
|
353
|
+
maxWidth: l(c).maxWidth,
|
|
354
|
+
labels: l(c).labels
|
|
355
355
|
},
|
|
356
|
-
datalabels:
|
|
356
|
+
datalabels: l(C),
|
|
357
357
|
"maintain-aspect-ratio": !1,
|
|
358
358
|
style: he({
|
|
359
|
-
"--chart-width":
|
|
360
|
-
"--chart-height":
|
|
359
|
+
"--chart-width": l(i) !== void 0 ? l(i) + "px" : "100%",
|
|
360
|
+
"--chart-height": l(r) !== void 0 ? l(r) + "px" : "calc(100% - 36px)"
|
|
361
361
|
})
|
|
362
362
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
363
363
|
], 64);
|
|
@@ -396,7 +396,7 @@ const ba = /* @__PURE__ */ se({
|
|
|
396
396
|
const r = f(() => t.value.lg ? 12 : 8);
|
|
397
397
|
return (x, b) => {
|
|
398
398
|
const v = H("FmPieChart");
|
|
399
|
-
return
|
|
399
|
+
return W(), O(de, null, [
|
|
400
400
|
xe(x.$slots, "menu"),
|
|
401
401
|
I(v, {
|
|
402
402
|
ref_key: "chartRef",
|
|
@@ -407,22 +407,22 @@ const ba = /* @__PURE__ */ se({
|
|
|
407
407
|
metrics: m.value.data.datasets.map((h) => h.name),
|
|
408
408
|
variant: "doughnut",
|
|
409
409
|
legend: {
|
|
410
|
-
display:
|
|
411
|
-
position:
|
|
412
|
-
maxHeight:
|
|
413
|
-
maxWidth:
|
|
410
|
+
display: l(C).display ?? !0,
|
|
411
|
+
position: l(C).position ?? "top",
|
|
412
|
+
maxHeight: l(C).maxHeight,
|
|
413
|
+
maxWidth: l(C).maxWidth,
|
|
414
414
|
labels: {
|
|
415
|
-
...
|
|
415
|
+
...l(C).labels,
|
|
416
416
|
font: {
|
|
417
417
|
size: r.value
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
|
-
datalabels:
|
|
421
|
+
datalabels: l(R),
|
|
422
422
|
"maintain-aspect-ratio": !1,
|
|
423
423
|
style: he({
|
|
424
|
-
"--chart-width":
|
|
425
|
-
"--chart-height":
|
|
424
|
+
"--chart-width": l(S) !== void 0 ? l(S) + "px" : "100%",
|
|
425
|
+
"--chart-height": l(F) !== void 0 ? l(F) + "px" : "calc(100% - 36px)"
|
|
426
426
|
})
|
|
427
427
|
}, null, 8, ["datasets", "metrics", "legend", "datalabels", "style"])
|
|
428
428
|
], 64);
|
|
@@ -465,18 +465,18 @@ const ba = /* @__PURE__ */ se({
|
|
|
465
465
|
return (i, r) => {
|
|
466
466
|
var z;
|
|
467
467
|
const x = H("FmIcon"), b = H("FmChip"), v = H("FmTooltip"), h = H("FmLineChart");
|
|
468
|
-
return
|
|
468
|
+
return W(), O("div", xa, [
|
|
469
469
|
xe(i.$slots, "menu"),
|
|
470
470
|
M("p", Ca, Ee(C.value), 1),
|
|
471
471
|
M("div", Sa, [
|
|
472
472
|
I(v, {
|
|
473
|
-
content: `vs. ${(z =
|
|
473
|
+
content: `vs. ${(z = l(w).defaultCompareType) == null ? void 0 : z.split("_").join(" ")}`,
|
|
474
474
|
placement: "right",
|
|
475
475
|
"hide-arrow": "",
|
|
476
476
|
variant: "plain"
|
|
477
477
|
}, {
|
|
478
478
|
default: Y(() => [
|
|
479
|
-
S.value ? (
|
|
479
|
+
S.value ? (W(), j(b, {
|
|
480
480
|
key: 0,
|
|
481
481
|
icon: S.value.icon.name,
|
|
482
482
|
class: Me(`bg-${S.value.icon.tailwind}`),
|
|
@@ -494,7 +494,7 @@ const ba = /* @__PURE__ */ se({
|
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}, 8, ["icon", "class"])) : be("", !0),
|
|
497
|
-
|
|
497
|
+
l(t).endDate !== null && l(t).startDate !== null && S.value === null ? (W(), j(b, {
|
|
498
498
|
key: 1,
|
|
499
499
|
compact: ""
|
|
500
500
|
}, {
|
|
@@ -511,8 +511,8 @@ const ba = /* @__PURE__ */ se({
|
|
|
511
511
|
_: 1
|
|
512
512
|
}, 8, ["content"])
|
|
513
513
|
]),
|
|
514
|
-
s.value ? (
|
|
515
|
-
F(s.value.type) === "line" ? (
|
|
514
|
+
s.value ? (W(), O("div", ka, [
|
|
515
|
+
F(s.value.type) === "line" ? (W(), j(h, {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "sparkline",
|
|
518
518
|
datasets: c.value,
|
|
@@ -525,7 +525,7 @@ const ba = /* @__PURE__ */ se({
|
|
|
525
525
|
"x-cfg": { display: !1 },
|
|
526
526
|
"maintain-aspect-ratio": !1
|
|
527
527
|
}, null, 8, ["datasets", "x-axis"])) : be("", !0)
|
|
528
|
-
])) : (
|
|
528
|
+
])) : (W(), O("div", Ta, r[1] || (r[1] = [
|
|
529
529
|
M("div", { class: "sparkline" }, [
|
|
530
530
|
M("div", { class: "flex flex-col gap-8" }, [
|
|
531
531
|
M("div"),
|
|
@@ -540,38 +540,38 @@ const ba = /* @__PURE__ */ se({
|
|
|
540
540
|
}), Fa = {};
|
|
541
541
|
function Ra(e, n) {
|
|
542
542
|
const m = H("FmMenuDivider");
|
|
543
|
-
return
|
|
543
|
+
return W(), j(m);
|
|
544
544
|
}
|
|
545
545
|
const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimension", _t = ma(za, () => {
|
|
546
|
-
const e = u(0), n = u([]), m = u(!1), t = (d,
|
|
547
|
-
e.value = d, R(d,
|
|
548
|
-
}, w = (d,
|
|
549
|
-
n[d] =
|
|
550
|
-
}, R = (d,
|
|
551
|
-
const y = (
|
|
546
|
+
const e = u(0), n = u([]), m = u(!1), t = (d, o) => {
|
|
547
|
+
e.value = d, R(d, o);
|
|
548
|
+
}, w = (d, o, y, g) => {
|
|
549
|
+
n[d] = o, n.value = [...n.value], C(d, o, y, g);
|
|
550
|
+
}, R = (d, o) => {
|
|
551
|
+
const y = (o == null ? void 0 : o.querySelectorAll("thead tr")) ?? [], g = (o == null ? void 0 : o.querySelectorAll("tbody tr")) ?? [];
|
|
552
552
|
[...y, ...g].forEach((V) => {
|
|
553
553
|
const $ = V;
|
|
554
554
|
$ && ($.style.height = `${d}px`);
|
|
555
555
|
});
|
|
556
|
-
}, C = (d,
|
|
556
|
+
}, C = (d, o, y, g = !1) => {
|
|
557
557
|
const k = (y == null ? void 0 : y.querySelectorAll("th")) ?? [];
|
|
558
558
|
if (d === void 0) return;
|
|
559
|
-
const V = k[d], $ = g ? n[d] :
|
|
559
|
+
const V = k[d], $ = g ? n[d] : o;
|
|
560
560
|
if (!V || $ === void 0) return;
|
|
561
561
|
const P = () => {
|
|
562
562
|
V.style.width = `${$}px`;
|
|
563
563
|
};
|
|
564
564
|
g ? requestAnimationFrame(P) : P();
|
|
565
565
|
}, S = () => {
|
|
566
|
-
const d = document.querySelectorAll("th"),
|
|
567
|
-
y == null || y.classList.add("table-fixed"), d.forEach((g) => g.classList.add("toggleEditResize")),
|
|
566
|
+
const d = document.querySelectorAll("th"), o = document.querySelectorAll("td"), y = document.querySelector("table");
|
|
567
|
+
y == null || y.classList.add("table-fixed"), d.forEach((g) => g.classList.add("toggleEditResize")), o.forEach((g) => g.classList.add("toggleEditResize")), m.value = !0;
|
|
568
568
|
}, F = () => {
|
|
569
|
-
const d = document.querySelectorAll("th"),
|
|
570
|
-
d.forEach((k) => k.classList.remove("toggleEditResize")),
|
|
569
|
+
const d = document.querySelectorAll("th"), o = document.querySelectorAll("td"), y = document.querySelectorAll(".col-resize-handle"), g = document.querySelectorAll(".row-resize-handle");
|
|
570
|
+
d.forEach((k) => k.classList.remove("toggleEditResize")), o.forEach((k) => k.classList.remove("toggleEditResize")), y.forEach((k) => k.remove()), g.forEach((k) => k.remove()), m.value = !1;
|
|
571
571
|
}, s = () => {
|
|
572
572
|
e.value = 0, n.value = [];
|
|
573
|
-
}, c = (d,
|
|
574
|
-
if (
|
|
573
|
+
}, c = (d, o) => {
|
|
574
|
+
if (o) {
|
|
575
575
|
const y = document.querySelectorAll(`thead th:nth-child(${d + 1})`), g = document.querySelectorAll(`tbody td:nth-child(${d + 1})`);
|
|
576
576
|
[...y, ...g].forEach((k) => {
|
|
577
577
|
k.classList.add("highlight-hover-col");
|
|
@@ -581,32 +581,32 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
|
|
|
581
581
|
`thead th:nth-child(${d + 1}), tbody td:nth-child(${d + 1})`
|
|
582
582
|
).forEach((y) => y.classList.add("highlight-col"));
|
|
583
583
|
}, i = (d) => {
|
|
584
|
-
const
|
|
584
|
+
const o = document.querySelectorAll("thead tr"), y = document.querySelectorAll("tbody tr"), g = [...o, ...y];
|
|
585
585
|
for (const k of g)
|
|
586
586
|
d ? k.classList.add("highlight-hover-row") : k.classList.add("highlight-row");
|
|
587
587
|
}, r = (d) => {
|
|
588
|
-
const
|
|
588
|
+
const o = d ? ".highlight-hover-row" : ".highlight-row", y = document.querySelectorAll(o);
|
|
589
589
|
for (const g of y)
|
|
590
|
-
g.classList.remove(
|
|
590
|
+
g.classList.remove(o.slice(1));
|
|
591
591
|
}, x = (d) => {
|
|
592
|
-
d ? document.querySelectorAll(".highlight-hover-col").forEach((
|
|
593
|
-
|
|
594
|
-
}) : document.querySelectorAll(".highlight-col").forEach((
|
|
595
|
-
}, b = (d,
|
|
596
|
-
const y = /* @__PURE__ */ new Map(), g = d.clientX, k = d.target.closest("table"), V = k == null ? void 0 : k.querySelectorAll("th")[
|
|
592
|
+
d ? document.querySelectorAll(".highlight-hover-col").forEach((o) => {
|
|
593
|
+
o.classList.remove("highlight-hover-col");
|
|
594
|
+
}) : document.querySelectorAll(".highlight-col").forEach((o) => o.classList.remove("highlight-col"));
|
|
595
|
+
}, b = (d, o) => {
|
|
596
|
+
const y = /* @__PURE__ */ new Map(), g = d.clientX, k = d.target.closest("table"), V = k == null ? void 0 : k.querySelectorAll("th")[o], $ = V == null ? void 0 : V.getBoundingClientRect().width, P = y.get(o) ? n[o.toString()] || 60 : (y.set(o, !0), $ || n[o.toString()] || 60), N = V == null ? void 0 : V.querySelector("p");
|
|
597
597
|
if (!N) return;
|
|
598
598
|
const ie = N.textContent || "", Z = window.getComputedStyle(N), ce = `${Z.fontWeight} ${Z.fontSize} ${Z.fontFamily}`, ee = document.createElement("canvas").getContext("2d");
|
|
599
599
|
if (!ee) return;
|
|
600
600
|
ee.font = ce;
|
|
601
|
-
const p = ee.measureText(ie), T = window.getComputedStyle(V), E = parseFloat(T.paddingLeft || "0"), D = parseFloat(T.paddingRight || "0"),
|
|
602
|
-
c(
|
|
601
|
+
const p = ee.measureText(ie), T = window.getComputedStyle(V), E = parseFloat(T.paddingLeft || "0"), D = parseFloat(T.paddingRight || "0"), A = p.width + E + D;
|
|
602
|
+
c(o, !1);
|
|
603
603
|
const L = (te) => {
|
|
604
|
-
const ae = te.clientX - g, Q = Math.max(
|
|
604
|
+
const ae = te.clientX - g, Q = Math.max(A, P + ae);
|
|
605
605
|
if (k) {
|
|
606
|
-
w(
|
|
606
|
+
w(o, Q, k, !0);
|
|
607
607
|
let K = 0;
|
|
608
608
|
k.querySelectorAll("th").forEach((fe, ve) => {
|
|
609
|
-
K += ve ===
|
|
609
|
+
K += ve === o ? Q : n[ve] || fe.getBoundingClientRect().width;
|
|
610
610
|
}), k.classList.remove("w-full"), k.style.width = `${K}px`;
|
|
611
611
|
const ue = k == null ? void 0 : k.parentElement;
|
|
612
612
|
if (ue) {
|
|
@@ -623,10 +623,10 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
|
|
|
623
623
|
};
|
|
624
624
|
document.addEventListener("mousemove", L), document.addEventListener("mouseup", U);
|
|
625
625
|
}, v = (d) => {
|
|
626
|
-
const
|
|
626
|
+
const o = d.clientY, y = d.target.closest("table"), g = e.value || 48;
|
|
627
627
|
i(!1);
|
|
628
628
|
const k = ($) => {
|
|
629
|
-
const P = Math.max(30, g + ($.clientY -
|
|
629
|
+
const P = Math.max(30, g + ($.clientY - o));
|
|
630
630
|
y && t(P, y);
|
|
631
631
|
}, V = () => {
|
|
632
632
|
r(!1), document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", V);
|
|
@@ -651,7 +651,7 @@ const La = /* @__PURE__ */ fa(Fa, [["render", Ra]]), za = "mf-reporttable-dimens
|
|
|
651
651
|
resizeCol: b,
|
|
652
652
|
resizeRow: v,
|
|
653
653
|
enableCellResizing: () => {
|
|
654
|
-
const d = document.querySelector("thead"),
|
|
654
|
+
const d = document.querySelector("thead"), o = document.querySelectorAll("thead tr"), y = document.querySelectorAll("tbody tr"), g = [...o, ...y];
|
|
655
655
|
d && d.classList.remove("sticky");
|
|
656
656
|
const k = (V, $) => {
|
|
657
657
|
const P = document.createElement("div");
|
|
@@ -682,7 +682,7 @@ function Ze(e) {
|
|
|
682
682
|
const [t, w] = n.split("."), R = new Intl.NumberFormat("en-US").format(Number(t));
|
|
683
683
|
return w !== void 0 ? `${R}.${w}` : R;
|
|
684
684
|
}
|
|
685
|
-
const Da = "/assets/processTableData.worker-
|
|
685
|
+
const Da = "/assets/processTableData.worker-LuS08Ujn.js", Aa = { class: "my-4" }, Wa = {
|
|
686
686
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
687
687
|
style: { backgroundColor: "#f9f9f9" }
|
|
688
688
|
}, Ea = { class: "font-bold" }, Va = { class: "text-fm-color-neutral-gray-300" }, Ha = /* @__PURE__ */ se({
|
|
@@ -701,38 +701,38 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
701
701
|
}), d = f(() => {
|
|
702
702
|
var p;
|
|
703
703
|
return ((p = t.value.data) == null ? void 0 : p.rows) || [];
|
|
704
|
-
}),
|
|
704
|
+
}), o = f(() => t.value.filterText), y = f(() => {
|
|
705
705
|
var p, T;
|
|
706
|
-
if (!(
|
|
706
|
+
if (!(o.value && o.value.trim().length > 0 || !((p = d.value[0]) != null && p.isRollup) && !((T = d.value[d.value.length - 1]) != null && T.isRollup))) {
|
|
707
707
|
if (t.value.rollupPosition === ye.top || t.value.rollupPosition === void 0)
|
|
708
708
|
return ye.top;
|
|
709
709
|
if (t.value.rollupPosition === ye.bottom)
|
|
710
710
|
return ye.bottom;
|
|
711
711
|
}
|
|
712
712
|
}), g = f(() => {
|
|
713
|
-
const D = y.value !== void 0 ? 1 : 0,
|
|
714
|
-
return Math.floor((
|
|
713
|
+
const D = y.value !== void 0 ? 1 : 0, A = (h.value ? h.value.$el.offsetHeight : 0) - 48;
|
|
714
|
+
return Math.floor((A - 34.5 - 32) / 48) - D;
|
|
715
715
|
}), k = f(() => {
|
|
716
716
|
var T, E;
|
|
717
717
|
let p = [];
|
|
718
718
|
switch (y.value) {
|
|
719
719
|
case ye.top:
|
|
720
|
-
p = [...((T = d.value[0]) == null ? void 0 : T.cells) || []].map((D,
|
|
720
|
+
p = [...((T = d.value[0]) == null ? void 0 : T.cells) || []].map((D, A) => {
|
|
721
721
|
var L;
|
|
722
722
|
return {
|
|
723
723
|
main: D,
|
|
724
|
-
comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[
|
|
725
|
-
rowType: z.value[
|
|
724
|
+
comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[A],
|
|
725
|
+
rowType: z.value[A].type
|
|
726
726
|
};
|
|
727
727
|
});
|
|
728
728
|
break;
|
|
729
729
|
case ye.bottom:
|
|
730
|
-
p = [...((E = d.value[d.value.length - 1]) == null ? void 0 : E.cells) || []].map((D,
|
|
730
|
+
p = [...((E = d.value[d.value.length - 1]) == null ? void 0 : E.cells) || []].map((D, A) => {
|
|
731
731
|
var L;
|
|
732
732
|
return {
|
|
733
733
|
main: D,
|
|
734
|
-
comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[
|
|
735
|
-
rowType: z.value[
|
|
734
|
+
comparison: (L = d.value[0]) == null ? void 0 : L.comparisonCells[A],
|
|
735
|
+
rowType: z.value[A].type
|
|
736
736
|
};
|
|
737
737
|
});
|
|
738
738
|
break;
|
|
@@ -755,8 +755,8 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
755
755
|
const $ = u([]);
|
|
756
756
|
let P = 0, N;
|
|
757
757
|
function ie() {
|
|
758
|
-
var
|
|
759
|
-
if (!((
|
|
758
|
+
var A;
|
|
759
|
+
if (!((A = t.value) != null && A.data)) {
|
|
760
760
|
$.value = [];
|
|
761
761
|
return;
|
|
762
762
|
}
|
|
@@ -771,7 +771,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
771
771
|
})), D = {
|
|
772
772
|
rows: T,
|
|
773
773
|
columns: E,
|
|
774
|
-
filter:
|
|
774
|
+
filter: o.value ?? "",
|
|
775
775
|
globalSorts: aa(s.value).map((L) => ({
|
|
776
776
|
key: L.key,
|
|
777
777
|
type: L.type
|
|
@@ -780,7 +780,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
780
780
|
pageSize: g.value
|
|
781
781
|
};
|
|
782
782
|
ua(Da, D).then((L) => {
|
|
783
|
-
p === P && (L != null && L.error ? (S.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(L.error), $.value = []) : $.value =
|
|
783
|
+
p === P && (L != null && L.error ? (S.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(L.error), $.value = []) : $.value = oa(L.data || []));
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
G(
|
|
@@ -795,9 +795,9 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
795
795
|
const p = ((E = t.value.data) == null ? void 0 : E.rows) || [], T = ((D = t.value.data) == null ? void 0 : D.columns) || [];
|
|
796
796
|
return JSON.stringify({
|
|
797
797
|
rowsLength: p.length,
|
|
798
|
-
columns: T.map((
|
|
799
|
-
filter:
|
|
800
|
-
globalSorts: s.value.map((
|
|
798
|
+
columns: T.map((A) => ({ key: A.key, type: A.type, label: A.label })),
|
|
799
|
+
filter: o.value ?? "",
|
|
800
|
+
globalSorts: s.value.map((A) => ({ key: A.key, type: A.type })),
|
|
801
801
|
grandTotalPosition: y.value,
|
|
802
802
|
pageSize: g.value
|
|
803
803
|
});
|
|
@@ -812,10 +812,10 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
812
812
|
function ce(p) {
|
|
813
813
|
const T = s.value.find((E) => E.key === p);
|
|
814
814
|
if (!T) {
|
|
815
|
-
s.value.push({ key: p, type:
|
|
815
|
+
s.value.push({ key: p, type: We.Asc });
|
|
816
816
|
return;
|
|
817
817
|
}
|
|
818
|
-
T.type ===
|
|
818
|
+
T.type === We.Asc ? T.type = We.Desc : T.type === We.Desc && (s.value = s.value.filter((E) => E.key !== p));
|
|
819
819
|
}
|
|
820
820
|
const pe = f(
|
|
821
821
|
() => {
|
|
@@ -825,7 +825,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
825
825
|
), ee = f(() => {
|
|
826
826
|
var p;
|
|
827
827
|
return (p = t.value.data) != null && p.columns ? t.value.data.columns.map((T) => {
|
|
828
|
-
const E = Re(n, m, T.label, "other"), D = s.value.find((U) => U.key === T.key),
|
|
828
|
+
const E = Re(n, m, T.label, "other"), D = s.value.find((U) => U.key === T.key), A = !!D, L = A ? D.type === We.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
829
829
|
return {
|
|
830
830
|
accessorKey: T.key,
|
|
831
831
|
header: () => {
|
|
@@ -834,7 +834,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
834
834
|
"button",
|
|
835
835
|
{
|
|
836
836
|
type: "button",
|
|
837
|
-
class: `w-full flex items-center gap-1 group/select-header select-none ${T.type === "NUMERIC" ? "justify-end" : "justify-start"} ${
|
|
837
|
+
class: `w-full flex items-center gap-1 group/select-header select-none ${T.type === "NUMERIC" ? "justify-end" : "justify-start"} ${A ? "text-fm-color-typo-primary" : "text-fm-color-neutral-gray-400"}`,
|
|
838
838
|
onClick: () => ce(T.key)
|
|
839
839
|
},
|
|
840
840
|
[
|
|
@@ -845,7 +845,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
845
845
|
),
|
|
846
846
|
Be(U, {
|
|
847
847
|
name: L,
|
|
848
|
-
color:
|
|
848
|
+
color: A ? "primary" : "neutral-gray-400",
|
|
849
849
|
size: "sm",
|
|
850
850
|
class: "transition-transform",
|
|
851
851
|
style: L === "arrow_upward" ? "transform: translateY(-1px);" : ""
|
|
@@ -880,9 +880,9 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
880
880
|
), G(
|
|
881
881
|
[() => ee.value],
|
|
882
882
|
async () => {
|
|
883
|
-
var
|
|
883
|
+
var A;
|
|
884
884
|
await J();
|
|
885
|
-
const p = (
|
|
885
|
+
const p = (A = h.value) == null ? void 0 : A.$el;
|
|
886
886
|
if (!p) return;
|
|
887
887
|
const T = p.querySelector("table");
|
|
888
888
|
if (!T) return;
|
|
@@ -895,8 +895,8 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
895
895
|
{ immediate: !0 }
|
|
896
896
|
), (p, T) => {
|
|
897
897
|
const E = H("FmTable");
|
|
898
|
-
return
|
|
899
|
-
M("div",
|
|
898
|
+
return W(), O(de, null, [
|
|
899
|
+
M("div", Aa, [
|
|
900
900
|
xe(p.$slots, "menu")
|
|
901
901
|
]),
|
|
902
902
|
I(E, {
|
|
@@ -904,7 +904,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
904
904
|
ref: h,
|
|
905
905
|
"column-defs": ee.value,
|
|
906
906
|
"row-data": $.value,
|
|
907
|
-
"search-value":
|
|
907
|
+
"search-value": o.value,
|
|
908
908
|
"page-size": g.value,
|
|
909
909
|
"shrink-at": !1,
|
|
910
910
|
"force-mobile-footer": !0,
|
|
@@ -912,9 +912,9 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
912
912
|
}, {
|
|
913
913
|
"pin-top": Y(() => [
|
|
914
914
|
M("tbody", null, [
|
|
915
|
-
M("tr",
|
|
916
|
-
(
|
|
917
|
-
key: `${
|
|
915
|
+
M("tr", Wa, [
|
|
916
|
+
(W(!0), O(de, null, Ft(k.value, (D, A) => (W(), O("td", {
|
|
917
|
+
key: `${l(Ie)()}_${A}`,
|
|
918
918
|
class: "h-[48px] text-fm-color-typo-primary px-16"
|
|
919
919
|
}, [
|
|
920
920
|
M("span", {
|
|
@@ -924,8 +924,8 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
924
924
|
pe.value ? "whitespace-normal break-words line-clamp-6" : "whitespace-nowrap"
|
|
925
925
|
])
|
|
926
926
|
}, [
|
|
927
|
-
M("p", Ea, Ee(D.rowType === "NUMERIC" ?
|
|
928
|
-
M("p", Va, Ee(D.comparison ? D.rowType === "NUMERIC" ? `(${
|
|
927
|
+
M("p", Ea, Ee(D.rowType === "NUMERIC" ? l(Ze)(D.main) : D.main), 1),
|
|
928
|
+
M("p", Va, Ee(D.comparison ? D.rowType === "NUMERIC" ? `(${l(Ze)(D.comparison)})` : `(${D.comparison})` : ""), 1)
|
|
929
929
|
], 2)
|
|
930
930
|
]))), 128))
|
|
931
931
|
])
|
|
@@ -976,7 +976,7 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
976
976
|
J(() => v());
|
|
977
977
|
}), (h, z) => {
|
|
978
978
|
const d = H("FmBarChart");
|
|
979
|
-
return
|
|
979
|
+
return W(), O(de, null, [
|
|
980
980
|
xe(h.$slots, "menu"),
|
|
981
981
|
I(d, {
|
|
982
982
|
ref_key: "chartRef",
|
|
@@ -984,22 +984,22 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
984
984
|
class: "bar-chart",
|
|
985
985
|
datasets: x.value,
|
|
986
986
|
"x-axis": { categories: w.value },
|
|
987
|
-
"x-cfg":
|
|
988
|
-
"y-cfg":
|
|
989
|
-
transpose:
|
|
987
|
+
"x-cfg": l(S),
|
|
988
|
+
"y-cfg": l(F),
|
|
989
|
+
transpose: l(s),
|
|
990
990
|
stacked: !0,
|
|
991
991
|
legend: {
|
|
992
|
-
display:
|
|
993
|
-
position:
|
|
994
|
-
maxHeight:
|
|
995
|
-
maxWidth:
|
|
996
|
-
labels:
|
|
992
|
+
display: l(c).display ?? !1,
|
|
993
|
+
position: l(c).position,
|
|
994
|
+
maxHeight: l(c).maxHeight,
|
|
995
|
+
maxWidth: l(c).maxWidth,
|
|
996
|
+
labels: l(c).labels
|
|
997
997
|
},
|
|
998
|
-
datalabels:
|
|
998
|
+
datalabels: l(C),
|
|
999
999
|
"maintain-aspect-ratio": !1,
|
|
1000
1000
|
style: he({
|
|
1001
|
-
"--chart-width":
|
|
1002
|
-
"--chart-height":
|
|
1001
|
+
"--chart-width": l(i) !== void 0 ? l(i) + "px" : "100%",
|
|
1002
|
+
"--chart-height": l(r) !== void 0 ? l(r) + "px" : "calc(100% - 36px)"
|
|
1003
1003
|
})
|
|
1004
1004
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
1005
1005
|
], 64);
|
|
@@ -1017,25 +1017,25 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
1017
1017
|
setup(e) {
|
|
1018
1018
|
var d;
|
|
1019
1019
|
const n = e, m = re(e, "modelValue"), t = ((d = m.value.data) == null ? void 0 : d.xAxis) ?? [], w = f(
|
|
1020
|
-
() => t.length === 1 && S.value.length > 0 && S.value.every((
|
|
1020
|
+
() => t.length === 1 && S.value.length > 0 && S.value.every((o) => o.values.length === 1)
|
|
1021
1021
|
), R = f(() => w.value ? ["", t[0], ""] : t), C = u(null), S = f(() => {
|
|
1022
|
-
var
|
|
1023
|
-
return ((
|
|
1022
|
+
var o;
|
|
1023
|
+
return ((o = m.value.data) == null ? void 0 : o.datasets) ?? [];
|
|
1024
1024
|
}), { datalabels: F, xCfg: s, yCfg: c, isTransposed: i, legend: r, chartWidth: x, chartHeight: b } = He(
|
|
1025
1025
|
m.value
|
|
1026
1026
|
), v = f(() => S.value.length > 0 ? [
|
|
1027
|
-
...S.value.map((
|
|
1028
|
-
let g =
|
|
1027
|
+
...S.value.map((o, y) => {
|
|
1028
|
+
let g = o.values;
|
|
1029
1029
|
return w.value && (g = [NaN, g[0], NaN]), {
|
|
1030
|
-
label:
|
|
1030
|
+
label: o.name,
|
|
1031
1031
|
data: g,
|
|
1032
|
-
dash:
|
|
1032
|
+
dash: o.isCompare,
|
|
1033
1033
|
fill: !1,
|
|
1034
|
-
color: ne({ index: y, isCompare:
|
|
1034
|
+
color: ne({ index: y, isCompare: o.isCompare }),
|
|
1035
1035
|
pointRadius: w.value ? 4 : void 0,
|
|
1036
1036
|
pointHoverRadius: w.value ? 6 : void 0,
|
|
1037
|
-
pointBackgroundColor: w.value ? ne({ index: y, isCompare:
|
|
1038
|
-
pointBorderColor: w.value ? ne({ index: y, isCompare:
|
|
1037
|
+
pointBackgroundColor: w.value ? ne({ index: y, isCompare: o.isCompare }) : void 0,
|
|
1038
|
+
pointBorderColor: w.value ? ne({ index: y, isCompare: o.isCompare }) : void 0,
|
|
1039
1039
|
pointBorderWidth: w.value ? 2 : void 0
|
|
1040
1040
|
};
|
|
1041
1041
|
})
|
|
@@ -1049,32 +1049,32 @@ const Da = "/assets/processTableData.worker-D-lgWpiT.js", Wa = { class: "my-4" }
|
|
|
1049
1049
|
});
|
|
1050
1050
|
}), G([v], () => {
|
|
1051
1051
|
J(() => z());
|
|
1052
|
-
}), (
|
|
1052
|
+
}), (o, y) => {
|
|
1053
1053
|
const g = H("FmLineChart");
|
|
1054
|
-
return
|
|
1055
|
-
xe(
|
|
1054
|
+
return W(), O(de, null, [
|
|
1055
|
+
xe(o.$slots, "menu"),
|
|
1056
1056
|
I(g, {
|
|
1057
1057
|
ref_key: "chartRef",
|
|
1058
1058
|
ref: C,
|
|
1059
1059
|
class: "line-chart",
|
|
1060
1060
|
datasets: v.value,
|
|
1061
1061
|
"x-axis": { categories: R.value },
|
|
1062
|
-
"x-cfg":
|
|
1063
|
-
"y-cfg":
|
|
1064
|
-
transpose:
|
|
1062
|
+
"x-cfg": l(s),
|
|
1063
|
+
"y-cfg": l(c),
|
|
1064
|
+
transpose: l(i),
|
|
1065
1065
|
legend: {
|
|
1066
|
-
display:
|
|
1067
|
-
position:
|
|
1068
|
-
maxHeight:
|
|
1069
|
-
maxWidth:
|
|
1070
|
-
labels:
|
|
1066
|
+
display: l(r).display ?? !1,
|
|
1067
|
+
position: l(r).position,
|
|
1068
|
+
maxHeight: l(r).maxHeight,
|
|
1069
|
+
maxWidth: l(r).maxWidth,
|
|
1070
|
+
labels: l(r).labels
|
|
1071
1071
|
},
|
|
1072
1072
|
stacked: !0,
|
|
1073
|
-
datalabels:
|
|
1073
|
+
datalabels: l(F),
|
|
1074
1074
|
"maintain-aspect-ratio": !1,
|
|
1075
1075
|
style: he({
|
|
1076
|
-
"--chart-width":
|
|
1077
|
-
"--chart-height":
|
|
1076
|
+
"--chart-width": l(x) !== void 0 ? l(x) + "px" : "100%",
|
|
1077
|
+
"--chart-height": l(b) !== void 0 ? l(b) + "px" : "calc(100% - 36px)"
|
|
1078
1078
|
})
|
|
1079
1079
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
1080
1080
|
], 64);
|
|
@@ -1115,25 +1115,25 @@ const Na = /* @__PURE__ */ se({
|
|
|
1115
1115
|
setup(e) {
|
|
1116
1116
|
var d;
|
|
1117
1117
|
const n = e, m = re(e, "modelValue"), t = ((d = m.value.data) == null ? void 0 : d.xAxis) ?? [], w = f(
|
|
1118
|
-
() => t.length === 1 && S.value.length > 0 && S.value.every((
|
|
1118
|
+
() => t.length === 1 && S.value.length > 0 && S.value.every((o) => o.values.length === 1)
|
|
1119
1119
|
), R = f(() => w.value ? ["", t[0], ""] : t), C = u(null), S = f(() => {
|
|
1120
|
-
var
|
|
1121
|
-
return ((
|
|
1120
|
+
var o;
|
|
1121
|
+
return ((o = m.value.data) == null ? void 0 : o.datasets) ?? [];
|
|
1122
1122
|
}), { datalabels: F, xCfg: s, yCfg: c, isTransposed: i, legend: r, chartWidth: x, chartHeight: b } = He(
|
|
1123
1123
|
m.value
|
|
1124
1124
|
), v = f(() => S.value.length > 0 ? [
|
|
1125
|
-
...S.value.map((
|
|
1126
|
-
let g =
|
|
1125
|
+
...S.value.map((o, y) => {
|
|
1126
|
+
let g = o.values;
|
|
1127
1127
|
return w.value && (g = [NaN, g[0], NaN]), {
|
|
1128
|
-
label:
|
|
1128
|
+
label: o.name,
|
|
1129
1129
|
data: g,
|
|
1130
|
-
dash: !!
|
|
1130
|
+
dash: !!o.isCompare,
|
|
1131
1131
|
fill: !1,
|
|
1132
|
-
color: ne({ index: y, isCompare:
|
|
1132
|
+
color: ne({ index: y, isCompare: o.isCompare }),
|
|
1133
1133
|
pointRadius: w.value ? 4 : void 0,
|
|
1134
1134
|
pointHoverRadius: w.value ? 6 : void 0,
|
|
1135
|
-
pointBackgroundColor: w.value ? ne({ index: y, isCompare:
|
|
1136
|
-
pointBorderColor: w.value ? ne({ index: y, isCompare:
|
|
1135
|
+
pointBackgroundColor: w.value ? ne({ index: y, isCompare: o.isCompare }) : void 0,
|
|
1136
|
+
pointBorderColor: w.value ? ne({ index: y, isCompare: o.isCompare }) : void 0,
|
|
1137
1137
|
pointBorderWidth: w.value ? 2 : void 0
|
|
1138
1138
|
};
|
|
1139
1139
|
})
|
|
@@ -1147,31 +1147,31 @@ const Na = /* @__PURE__ */ se({
|
|
|
1147
1147
|
});
|
|
1148
1148
|
}), G([v], () => {
|
|
1149
1149
|
J(() => z());
|
|
1150
|
-
}), (
|
|
1150
|
+
}), (o, y) => {
|
|
1151
1151
|
const g = H("FmLineChart");
|
|
1152
|
-
return
|
|
1153
|
-
xe(
|
|
1152
|
+
return W(), O(de, null, [
|
|
1153
|
+
xe(o.$slots, "menu"),
|
|
1154
1154
|
I(g, {
|
|
1155
1155
|
ref_key: "chartRef",
|
|
1156
1156
|
ref: C,
|
|
1157
1157
|
class: "line-chart",
|
|
1158
1158
|
datasets: v.value,
|
|
1159
1159
|
"x-axis": { categories: R.value },
|
|
1160
|
-
"x-cfg":
|
|
1161
|
-
"y-cfg":
|
|
1162
|
-
transpose:
|
|
1160
|
+
"x-cfg": l(s),
|
|
1161
|
+
"y-cfg": l(c),
|
|
1162
|
+
transpose: l(i),
|
|
1163
1163
|
legend: {
|
|
1164
|
-
display:
|
|
1165
|
-
position:
|
|
1166
|
-
maxHeight:
|
|
1167
|
-
maxWidth:
|
|
1168
|
-
labels:
|
|
1164
|
+
display: l(r).display ?? !1,
|
|
1165
|
+
position: l(r).position,
|
|
1166
|
+
maxHeight: l(r).maxHeight,
|
|
1167
|
+
maxWidth: l(r).maxWidth,
|
|
1168
|
+
labels: l(r).labels
|
|
1169
1169
|
},
|
|
1170
|
-
datalabels:
|
|
1170
|
+
datalabels: l(F),
|
|
1171
1171
|
"maintain-aspect-ratio": !1,
|
|
1172
1172
|
style: he({
|
|
1173
|
-
"--chart-width":
|
|
1174
|
-
"--chart-height":
|
|
1173
|
+
"--chart-width": l(x) !== void 0 ? l(x) + "px" : "100%",
|
|
1174
|
+
"--chart-height": l(b) !== void 0 ? l(b) + "px" : "calc(100% - 36px)"
|
|
1175
1175
|
})
|
|
1176
1176
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "datalabels", "style"])
|
|
1177
1177
|
], 64);
|
|
@@ -1212,18 +1212,18 @@ const Na = /* @__PURE__ */ se({
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
return (v, h) => {
|
|
1215
|
-
const z = H("FmRadio"), d = H("FmRadioGroup"),
|
|
1216
|
-
return
|
|
1215
|
+
const z = H("FmRadio"), d = H("FmRadioGroup"), o = H("FmButton"), y = H("FmDialog");
|
|
1216
|
+
return W(), j(y, {
|
|
1217
1217
|
modelValue: R.value,
|
|
1218
1218
|
"onUpdate:modelValue": h[2] || (h[2] = (g) => R.value = g),
|
|
1219
1219
|
overlay: !0,
|
|
1220
1220
|
"z-index": 10
|
|
1221
1221
|
}, {
|
|
1222
1222
|
"dialog-header": Y(() => h[3] || (h[3] = [
|
|
1223
|
-
|
|
1223
|
+
la("Select Orientation")
|
|
1224
1224
|
])),
|
|
1225
1225
|
default: Y(() => [
|
|
1226
|
-
I(
|
|
1226
|
+
I(l(m), {
|
|
1227
1227
|
ref_key: "form",
|
|
1228
1228
|
ref: w,
|
|
1229
1229
|
onValidationSuccess: b
|
|
@@ -1236,12 +1236,12 @@ const Na = /* @__PURE__ */ se({
|
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: Y(() => [
|
|
1238
1238
|
I(z, {
|
|
1239
|
-
value:
|
|
1240
|
-
label:
|
|
1239
|
+
value: l(Je).PORTRAIT,
|
|
1240
|
+
label: l(n)("report.common.portrait")
|
|
1241
1241
|
}, null, 8, ["value", "label"]),
|
|
1242
1242
|
I(z, {
|
|
1243
|
-
value:
|
|
1244
|
-
label:
|
|
1243
|
+
value: l(Je).LANDSCAPE,
|
|
1244
|
+
label: l(n)("report.common.landscape")
|
|
1245
1245
|
}, null, 8, ["value", "label"])
|
|
1246
1246
|
]),
|
|
1247
1247
|
_: 1
|
|
@@ -1249,14 +1249,14 @@ const Na = /* @__PURE__ */ se({
|
|
|
1249
1249
|
]),
|
|
1250
1250
|
M("div", Ua, [
|
|
1251
1251
|
h[4] || (h[4] = M("div", { class: "grow" }, null, -1)),
|
|
1252
|
-
I(
|
|
1253
|
-
label:
|
|
1252
|
+
I(o, {
|
|
1253
|
+
label: l(n)("report.common.cancel"),
|
|
1254
1254
|
variant: "tertiary",
|
|
1255
1255
|
onClick: h[1] || (h[1] = (g) => R.value = !1)
|
|
1256
1256
|
}, null, 8, ["label"]),
|
|
1257
1257
|
M("div", null, [
|
|
1258
|
-
I(
|
|
1259
|
-
label:
|
|
1258
|
+
I(o, {
|
|
1259
|
+
label: l(n)("report.common.download"),
|
|
1260
1260
|
loading: S.value,
|
|
1261
1261
|
onClick: x
|
|
1262
1262
|
}, null, 8, ["label", "loading"])
|
|
@@ -1276,7 +1276,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1276
1276
|
}, Ya = {
|
|
1277
1277
|
key: 2,
|
|
1278
1278
|
class: "flex"
|
|
1279
|
-
},
|
|
1279
|
+
}, oo = /* @__PURE__ */ se({
|
|
1280
1280
|
__name: "DynamicWidget",
|
|
1281
1281
|
props: /* @__PURE__ */ me({
|
|
1282
1282
|
index: {
|
|
@@ -1309,15 +1309,15 @@ const Na = /* @__PURE__ */ se({
|
|
|
1309
1309
|
return -1;
|
|
1310
1310
|
}), r = f(() => i.value !== 0), x = f(
|
|
1311
1311
|
() => i.value != ge.value.length - 1
|
|
1312
|
-
), b = u(t.showTitle ?? !0), v = u(t.titleFontSize ?? 14), h = u(t.titleBold ?? !1), z = u(t.titleItalic ?? !1), d = u(t.titleUnderline ?? !1),
|
|
1312
|
+
), b = u(t.showTitle ?? !0), v = u(t.titleFontSize ?? 14), h = u(t.titleBold ?? !1), z = u(t.titleItalic ?? !1), d = u(t.titleUnderline ?? !1), o = u(t.chartWidth ?? void 0), y = u(t.chartHeight ?? void 0), g = u(t.showLabel ?? !1), k = u(t.labelAlign ?? tt.center), V = u(t.labelAnchor ?? et.center), $ = u(t.labelRotation ?? 0), P = u(t.labelOffset ?? 0), N = u(t.labelFontSize ?? 12), ie = f(() => t.showSearchBar), Z = u(t.showX ?? !0), ce = u(t.xPosition ?? at.bottom), pe = u(t.showXGrid ?? !1), ee = u(t.showXTick ?? !0), p = u(t.xTickFontSize ?? 12), T = u(t.showXTitle ?? !1), E = u(t.xTitle ?? ""), D = u(t.xTitleFontSize ?? 12), A = u(t.showY ?? !0), L = u(t.yPosition ?? ot.left), U = u(t.showYGrid ?? !1), te = u(t.showYTick ?? !0), ae = u(t.yTickFontSize ?? 12), Q = u(t.showYTitle ?? !1), K = u(t.yTitle ?? ""), Ce = u(t.yTitleFontSize ?? 12), ue = u(t.showLegend ?? void 0), fe = u(t.legendPosition ?? lt.top), ve = u(t.usePointStyle ?? !0), Ue = u(t.legendMaxHeight), rt = u(t.legendMaxWidth), it = u(t.rowHeight ?? 0), ct = u(t.colWidths ?? []), Oe = u(!1), Xe = u(""), { breakpoints: Se, getBreakpointsBoundary: De } = Lt(), ut = u(), X = f(
|
|
1313
1313
|
() => C.customScreenWidth === void 0 ? window.innerWidth : C.customScreenWidth
|
|
1314
1314
|
), Dt = f(
|
|
1315
1315
|
() => (X == null ? void 0 : X.value) > De("xs")[1] && (X == null ? void 0 : X.value) <= De("sm")[1]
|
|
1316
|
-
),
|
|
1316
|
+
), At = f(
|
|
1317
1317
|
() => (X == null ? void 0 : X.value) > De("sm")[1] && (X == null ? void 0 : X.value) <= De("md")[1]
|
|
1318
|
-
),
|
|
1318
|
+
), Wt = f(() => (X == null ? void 0 : X.value) > De("md")[1]), Et = f(() => {
|
|
1319
1319
|
const a = m.value.size.width;
|
|
1320
|
-
return
|
|
1320
|
+
return Wt.value || At.value ? Ba(a) : Dt.value ? Ia(a) : Ma(a);
|
|
1321
1321
|
}), $e = f(
|
|
1322
1322
|
() => va.find((a) => a.type === m.value.widget.type)
|
|
1323
1323
|
), ke = St(() => {
|
|
@@ -1377,7 +1377,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1377
1377
|
titleItalic: z.value,
|
|
1378
1378
|
titleUnderline: d.value,
|
|
1379
1379
|
chartHeight: y.value,
|
|
1380
|
-
chartWidth:
|
|
1380
|
+
chartWidth: o.value,
|
|
1381
1381
|
showLabel: g.value,
|
|
1382
1382
|
labelAnchor: V.value,
|
|
1383
1383
|
labelAlign: k.value,
|
|
@@ -1392,7 +1392,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1392
1392
|
showXTitle: T.value,
|
|
1393
1393
|
xTitle: E.value,
|
|
1394
1394
|
xTitleFontSize: D.value,
|
|
1395
|
-
showY:
|
|
1395
|
+
showY: A.value,
|
|
1396
1396
|
yPosition: L.value,
|
|
1397
1397
|
showYGrid: U.value,
|
|
1398
1398
|
showYTick: te.value,
|
|
@@ -1433,15 +1433,15 @@ const Na = /* @__PURE__ */ se({
|
|
|
1433
1433
|
}), ft = f(() => {
|
|
1434
1434
|
const { config: a } = m.value.widget;
|
|
1435
1435
|
if (a.rollup != null) {
|
|
1436
|
-
const B = [...a.dimensions].filter((
|
|
1436
|
+
const B = [...a.dimensions].filter((oe) => !oe.hide);
|
|
1437
1437
|
return B.sort(
|
|
1438
|
-
(
|
|
1438
|
+
(oe, Ae) => (a.rowIds || []).indexOf(Ke(oe)) - (a.rowIds || []).indexOf(Ke(Ae))
|
|
1439
1439
|
), [
|
|
1440
1440
|
{ label: Re(w, R, "None", "other"), value: "none" },
|
|
1441
1441
|
{ label: Re(w, R, "Grand Total", "other"), value: 0 },
|
|
1442
|
-
...[...B].slice(0, B.length - 1).map((
|
|
1443
|
-
label: Re(w, R,
|
|
1444
|
-
value:
|
|
1442
|
+
...[...B].slice(0, B.length - 1).map((oe, Ae) => ({
|
|
1443
|
+
label: Re(w, R, oe.label, "other"),
|
|
1444
|
+
value: Ae + 1
|
|
1445
1445
|
}))
|
|
1446
1446
|
];
|
|
1447
1447
|
}
|
|
@@ -1456,7 +1456,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1456
1456
|
G(
|
|
1457
1457
|
() => m.value.widget.config,
|
|
1458
1458
|
(a) => {
|
|
1459
|
-
F.value = a.rollup, b.value = a.showTitle ?? !0, v.value = a.titleFontSize ?? 14, h.value = a.titleBold ?? !1, z.value = a.titleItalic ?? !1, d.value = a.titleUnderline ?? !1, y.value = a.chartHeight ?? void 0,
|
|
1459
|
+
F.value = a.rollup, b.value = a.showTitle ?? !0, v.value = a.titleFontSize ?? 14, h.value = a.titleBold ?? !1, z.value = a.titleItalic ?? !1, d.value = a.titleUnderline ?? !1, y.value = a.chartHeight ?? void 0, o.value = a.chartWidth ?? void 0, g.value = a.showLabel ?? !1, k.value = a.labelAlign ?? tt.center, V.value = a.labelAnchor ?? et.center, $.value = a.labelRotation ?? 0, P.value = a.labelOffset ?? 0, N.value = a.labelFontSize ?? 12, Z.value = a.showX ?? !0, ce.value = a.xPosition ?? at.bottom, pe.value = a.showXGrid ?? !1, ee.value = a.showXTick ?? !0, p.value = a.xTickFontSize ?? 12, T.value = a.showXTitle ?? !1, E.value = a.xTitle ?? "", D.value = a.xTitleFontSize ?? 12, A.value = a.showY ?? !0, L.value = a.yPosition ?? ot.left, U.value = a.showYGrid ?? !1, te.value = a.showYTick ?? !0, ae.value = a.yTickFontSize ?? 12, Q.value = a.showYTitle ?? !1, K.value = a.yTitle ?? "", Ce.value = a.yTitleFontSize ?? 12, ue.value = a.showLegend ?? void 0, fe.value = a.legendPosition ?? lt.top, ve.value = a.usePointStyle ?? !0, Ue.value = a.legendMaxHeight, rt.value = a.legendMaxWidth, it.value = a.rowHeight ?? 0, ct.value = a.colWidths ?? [];
|
|
1460
1460
|
},
|
|
1461
1461
|
{ deep: !0 }
|
|
1462
1462
|
), G([() => F.value], () => {
|
|
@@ -1498,8 +1498,8 @@ const Na = /* @__PURE__ */ se({
|
|
|
1498
1498
|
}
|
|
1499
1499
|
try {
|
|
1500
1500
|
n.value = !0, Pe && Pe.abort(), Pe = new AbortController();
|
|
1501
|
-
const a = Pe.signal, B = Ge.value,
|
|
1502
|
-
Ge.value === B && (Te.value =
|
|
1501
|
+
const a = Pe.signal, B = Ge.value, oe = await St(da, 500)(q.value, a, m.value.id);
|
|
1502
|
+
Ge.value === B && (Te.value = oe, s.value = Ie()), n.value = !1;
|
|
1503
1503
|
} catch (a) {
|
|
1504
1504
|
a.code !== "ERR_CANCELED" && (Te.value = null, vt.open({ message: `Invalid chart ${q.value.type}`, type: "error" }), console.log(a), n.value = !1);
|
|
1505
1505
|
}
|
|
@@ -1538,12 +1538,12 @@ const Na = /* @__PURE__ */ se({
|
|
|
1538
1538
|
}
|
|
1539
1539
|
})), Yt = q.value.type === _.Spacer ? "flat" : "outlined", Gt = q.value.type === _.Spacer ? "p-0" : "p-16";
|
|
1540
1540
|
return (a, B) => {
|
|
1541
|
-
const
|
|
1542
|
-
return
|
|
1541
|
+
const oe = H("FmTooltip"), Ae = H("FmSearch"), jt = H("FmCheckbox"), je = H("FmButton"), Jt = H("FmSelect"), Kt = H("FmMenuItem"), Zt = H("FmMenu"), Qt = H("FmForm"), ea = H("FmCircularProgress"), ta = H("FmCard");
|
|
1542
|
+
return W(), j(ta, {
|
|
1543
1543
|
ref_key: "tileCard",
|
|
1544
1544
|
ref: S,
|
|
1545
|
-
class: Me(`${Et.value} ${
|
|
1546
|
-
variant:
|
|
1545
|
+
class: Me(`${Et.value} ${l(Gt)}`),
|
|
1546
|
+
variant: l(Yt)
|
|
1547
1547
|
}, {
|
|
1548
1548
|
default: Y(() => [
|
|
1549
1549
|
I(Oa, {
|
|
@@ -1552,11 +1552,11 @@ const Na = /* @__PURE__ */ se({
|
|
|
1552
1552
|
"report-type": yt.value,
|
|
1553
1553
|
index: bt.value
|
|
1554
1554
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
1555
|
-
!n.value && !
|
|
1555
|
+
!n.value && !l(mt) ? (W(), O("div", {
|
|
1556
1556
|
key: 0,
|
|
1557
1557
|
style: he({ height: ut.value })
|
|
1558
1558
|
}, [
|
|
1559
|
-
(
|
|
1559
|
+
(W(), j(sa(Vt.value), {
|
|
1560
1560
|
key: s.value,
|
|
1561
1561
|
modelValue: pt.value,
|
|
1562
1562
|
"onUpdate:modelValue": B[4] || (B[4] = (_e) => pt.value = _e),
|
|
@@ -1567,7 +1567,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1567
1567
|
default: Y(() => {
|
|
1568
1568
|
var _e, wt, xt, Ct;
|
|
1569
1569
|
return [
|
|
1570
|
-
I(
|
|
1570
|
+
I(oe, {
|
|
1571
1571
|
variant: "plain",
|
|
1572
1572
|
placement: "right",
|
|
1573
1573
|
content: q.value.description,
|
|
@@ -1575,7 +1575,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1575
1575
|
disabled: !q.value.description
|
|
1576
1576
|
}, {
|
|
1577
1577
|
default: Y(() => [
|
|
1578
|
-
b.value !== !1 ? (
|
|
1578
|
+
b.value !== !1 ? (W(), O("p", {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
style: he({
|
|
1581
1581
|
fontSize: v.value + "px",
|
|
@@ -1587,25 +1587,25 @@ const Na = /* @__PURE__ */ se({
|
|
|
1587
1587
|
v.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
1588
1588
|
q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
1589
1589
|
]])
|
|
1590
|
-
}, Ee(
|
|
1590
|
+
}, Ee(l(Re)(l(w), l(R), q.value.title, "other")), 7)) : be("", !0)
|
|
1591
1591
|
]),
|
|
1592
1592
|
_: 1
|
|
1593
1593
|
}, 8, ["content", "disabled"]),
|
|
1594
|
-
(_e = $e.value) != null && _e.showSearchBar ? (
|
|
1594
|
+
(_e = $e.value) != null && _e.showSearchBar ? (W(), j(Ae, {
|
|
1595
1595
|
key: 0,
|
|
1596
1596
|
modelValue: Xe.value,
|
|
1597
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
1597
|
+
"onUpdate:modelValue": B[1] || (B[1] = (le) => Xe.value = le),
|
|
1598
1598
|
class: "grow"
|
|
1599
|
-
}, null, 8, ["modelValue"])) : (
|
|
1599
|
+
}, null, 8, ["modelValue"])) : (W(), O("div", Xa)),
|
|
1600
1600
|
ra(I(jt, {
|
|
1601
1601
|
modelValue: g.value,
|
|
1602
|
-
"onUpdate:modelValue": B[2] || (B[2] = (
|
|
1602
|
+
"onUpdate:modelValue": B[2] || (B[2] = (le) => g.value = le),
|
|
1603
1603
|
label: "Label",
|
|
1604
1604
|
value: !1
|
|
1605
1605
|
}, null, 8, ["modelValue"]), [
|
|
1606
1606
|
[ia, (wt = $e.value) == null ? void 0 : wt.showLabel]
|
|
1607
1607
|
]),
|
|
1608
|
-
(xt = $e.value) != null && xt.showDrillDimension && ge.value.length > 0 ? (
|
|
1608
|
+
(xt = $e.value) != null && xt.showDrillDimension && ge.value.length > 0 ? (W(), O("div", Ya, [
|
|
1609
1609
|
I(je, {
|
|
1610
1610
|
icon: "arrow_upward",
|
|
1611
1611
|
variant: "tertiary",
|
|
@@ -1619,14 +1619,14 @@ const Na = /* @__PURE__ */ se({
|
|
|
1619
1619
|
onClick: Ot
|
|
1620
1620
|
}, null, 8, ["disabled"])
|
|
1621
1621
|
])) : be("", !0),
|
|
1622
|
-
(Ct = $e.value) != null && Ct.showRollup && ft.value.length > 0 ? (
|
|
1622
|
+
(Ct = $e.value) != null && Ct.showRollup && ft.value.length > 0 ? (W(), j(Jt, {
|
|
1623
1623
|
key: 3,
|
|
1624
1624
|
modelValue: F.value,
|
|
1625
|
-
"onUpdate:modelValue": B[3] || (B[3] = (
|
|
1625
|
+
"onUpdate:modelValue": B[3] || (B[3] = (le) => F.value = le),
|
|
1626
1626
|
class: "w-[150px]",
|
|
1627
1627
|
items: ft.value
|
|
1628
1628
|
}, null, 8, ["modelValue", "items"])) : be("", !0),
|
|
1629
|
-
C.hideExport ? be("", !0) : (
|
|
1629
|
+
C.hideExport ? be("", !0) : (W(), j(Zt, {
|
|
1630
1630
|
key: 4,
|
|
1631
1631
|
shift: !0
|
|
1632
1632
|
}, {
|
|
@@ -1637,10 +1637,10 @@ const Na = /* @__PURE__ */ se({
|
|
|
1637
1637
|
})
|
|
1638
1638
|
]),
|
|
1639
1639
|
default: Y(() => [
|
|
1640
|
-
(
|
|
1641
|
-
key:
|
|
1642
|
-
label:
|
|
1643
|
-
onClick:
|
|
1640
|
+
(W(!0), O(de, null, Ft(l(Xt), (le) => (W(), j(Kt, {
|
|
1641
|
+
key: le.value,
|
|
1642
|
+
label: le.label,
|
|
1643
|
+
onClick: le.onClick
|
|
1644
1644
|
}, null, 8, ["label", "onClick"]))), 128))
|
|
1645
1645
|
]),
|
|
1646
1646
|
_: 1
|
|
@@ -1652,7 +1652,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1652
1652
|
]),
|
|
1653
1653
|
_: 1
|
|
1654
1654
|
}, 8, ["modelValue", "tile-index"]))
|
|
1655
|
-
], 4)) : (
|
|
1655
|
+
], 4)) : (W(), j(ea, { key: 1 }))
|
|
1656
1656
|
]),
|
|
1657
1657
|
_: 1
|
|
1658
1658
|
}, 8, ["class", "variant"]);
|
|
@@ -1662,7 +1662,7 @@ const Na = /* @__PURE__ */ se({
|
|
|
1662
1662
|
export {
|
|
1663
1663
|
tt as L,
|
|
1664
1664
|
ye as R,
|
|
1665
|
-
|
|
1665
|
+
oo as _,
|
|
1666
1666
|
et as a,
|
|
1667
1667
|
Ke as g,
|
|
1668
1668
|
_t as u
|