@feedmepos/mf-report 5.31.3 → 5.32.0-beta.0
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-o4z-EAO1.js +339 -0
- package/dist/{DateRangeSelect-kBTiWzl8.js → DateRangeSelect-DO3T_rQs.js} +18 -18
- package/dist/{Default.vue_vue_type_script_setup_true_lang-QJJFd-aD.js → Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js} +1 -1
- package/dist/DigestListView-DG-vojKl.js +637 -0
- package/dist/DigestReaderView-bRfEYtZA.js +507 -0
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-dhMaJAWF.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Bfmd5eMI.js} +173 -173
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Odt_cfjt.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vy0FZKv0.js} +154 -154
- package/dist/{InsightView-CoyqETUU.js → InsightView-sLKiFc_-.js} +16 -16
- package/dist/{Integration-nK20FSKv.js → Integration-CZn5gvF8.js} +3 -3
- package/dist/{Integrations-B2zhjy-7.js → Integrations-I0rHAfPo.js} +2 -2
- package/dist/{Layout-Dl7UP2Mh.js → Layout-DPEfiH3f.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DroCP4X4.js → LocationSelect.vue_vue_type_script_setup_true_lang-DFQ943gj.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Es9KEHbl.js → MenuTab.vue_vue_type_script_setup_true_lang-BjJcvN_z.js} +9 -9
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BohRRfew.js → NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js} +6 -6
- package/dist/{OverviewView-_5c2H2MT.js → OverviewView-CJS82eII.js} +5 -5
- package/dist/{Report-2w23PAp1.js → Report-DDYgnr3v.js} +30 -30
- package/dist/ReportCanvasView-m_qW7QgV.js +966 -0
- package/dist/{ReportEditor-Bd6WesQn.js → ReportEditor-CrMd2q2a.js} +7 -7
- package/dist/{ReportView-DlYt2nTi.js → ReportView-CKLzDw5j.js} +6 -6
- package/dist/{ReportViewRoute-37OLAHAq.js → ReportViewRoute-BrLi7iXr.js} +2 -2
- package/dist/{Setting-PmW3vgf2.js → Setting-BUmSYXCO.js} +3 -3
- package/dist/{Template-DkTDUZL3.js → Template-CljYVpCi.js} +18 -18
- package/dist/{TileEditor-B_X1Z1IF.js → TileEditor-3fV8xOVc.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Dj9ImYdH.js → TilePageStack.vue_vue_type_script_setup_true_lang-Biwl30EU.js} +2 -2
- package/dist/{TransitionFade-k7vzRKon.js → TransitionFade-BUSdiKFH.js} +5 -5
- package/dist/{app-DOyssexi.js → app-BXVd3ce-.js} +3354 -2967
- package/dist/app.js +4 -4
- package/dist/assets/{formatChartData.worker-R9EGYsk6.js → formatChartData.worker-BprlZnJs.js} +80 -58
- package/dist/assets/{processTableData.worker-CxpDa0tB.js → processTableData.worker-D5GSFMnH.js} +83 -61
- package/dist/{currency-Dzf-h7uE.js → currency-C6h0cwip.js} +1 -1
- package/dist/{index-uhMfapU4.js → index-BoeJLw2U.js} +1279 -1244
- package/dist/{report-D1hOlAxl.js → report-DG-20Pq8.js} +18 -18
- package/dist/report-canvas-libs/components-1.js +1126 -71
- package/dist/report-canvas-libs/geo-outlines-1.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useDigestFont-Gf1l5qYq.js +205 -0
- package/dist/{ReportCanvasView-C0WPmew5.js → useReportCanvasPanel-CquUHqIK.js} +2933 -3477
- package/dist/{useRestaurantPermission-DdscVgP6.js → useRestaurantPermission-BNu9cN13.js} +1 -1
- package/package.json +1 -1
- package/dist/App-CAzuIycx.js +0 -339
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as
|
|
2
|
-
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ln,
|
|
4
|
-
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-
|
|
5
|
-
import { c as Dn, w as Et } from "./currency-
|
|
6
|
-
import { d as Xn } from "./DateRangeSelect-
|
|
1
|
+
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as jt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as G, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as Go, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as jo, markRaw as So, toRaw as Ea, createTextVNode as Ga, onUnmounted as Yn, provide as ja, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
|
|
2
|
+
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vy0FZKv0.js";
|
|
3
|
+
import { u as Ln, ae as xn, a as _n, af as or } from "./app-BXVd3ce-.js";
|
|
4
|
+
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-DG-20Pq8.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-C6h0cwip.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-DO3T_rQs.js";
|
|
7
7
|
import { storeToRefs as At } from "pinia";
|
|
8
8
|
import { detectLocale as oo } from "@feedmepos/mf-common";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-BoeJLw2U.js";
|
|
10
10
|
import { C as En, t as ir } from "./chart-BywXiz4O.js";
|
|
11
11
|
import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
13
13
|
import { r as wt } from "./i18n-DbyciK4x.js";
|
|
14
14
|
import { _ as Wn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
15
|
-
var Yt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(qe || {}),
|
|
15
|
+
var Yt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Yt || {}), qe = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(qe || {}), Gn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Gn || {}), jn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(jn || {}), qn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(qn || {}), Jn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Jn || {}), Zn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Zn || {}), Be = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Be || {});
|
|
16
16
|
Z.Circular, Z.Table, Z.BarChart, Z.LineChart, Z.StackBarChart, Z.ClusteredStackBarChart, Z.StackLineChart, Z.Scorecard, Z.Spacer;
|
|
17
17
|
const cr = [
|
|
18
18
|
{
|
|
@@ -195,7 +195,7 @@ function Jt({
|
|
|
195
195
|
return n;
|
|
196
196
|
}
|
|
197
197
|
const pr = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
198
|
-
function
|
|
198
|
+
function Gt(e) {
|
|
199
199
|
if (!e)
|
|
200
200
|
return null;
|
|
201
201
|
const t = e.trim();
|
|
@@ -208,7 +208,7 @@ function jt(e) {
|
|
|
208
208
|
return t.toUpperCase();
|
|
209
209
|
}
|
|
210
210
|
function gr(e) {
|
|
211
|
-
const t =
|
|
211
|
+
const t = Gt(e) ?? "#000000";
|
|
212
212
|
return {
|
|
213
213
|
red: Number.parseInt(t.slice(1, 3), 16),
|
|
214
214
|
green: Number.parseInt(t.slice(3, 5), 16),
|
|
@@ -220,14 +220,14 @@ function ea(e) {
|
|
|
220
220
|
Ft.length,
|
|
221
221
|
Array.isArray(e) ? e.length : 0
|
|
222
222
|
), n = Zo(t);
|
|
223
|
-
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, r) =>
|
|
223
|
+
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, r) => Gt(e[r]) ?? o);
|
|
224
224
|
}
|
|
225
225
|
function ta(e, t) {
|
|
226
226
|
const { red: n, green: o, blue: r } = gr(e);
|
|
227
227
|
return `rgba(${n}, ${o}, ${r}, ${t})`;
|
|
228
228
|
}
|
|
229
229
|
function kn(e, t) {
|
|
230
|
-
const n =
|
|
230
|
+
const n = Gt(e) ?? "#000000", o = (r) => {
|
|
231
231
|
const i = Number.parseInt(n.slice(r, r + 2), 16);
|
|
232
232
|
return Math.round(i + (255 - i) * t).toString(16).padStart(2, "0").toUpperCase();
|
|
233
233
|
};
|
|
@@ -267,7 +267,7 @@ function zt({
|
|
|
267
267
|
colorMode: u,
|
|
268
268
|
customColors: m
|
|
269
269
|
}) {
|
|
270
|
-
const v = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, x = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, Y = a !== !1, H = e * v + x, d = u === "clustered" ? Zo(Math.max(Ft.length, e + 1)) : ea(m), b =
|
|
270
|
+
const v = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, x = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, Y = a !== !1, H = e * v + x, d = u === "clustered" ? Zo(Math.max(Ft.length, e + 1)) : ea(m), b = Gt(i == null ? void 0 : i[e * v]) ?? d[e % d.length], w = Y && x > 0 ? kn(b, To(x)) : Gt(i == null ? void 0 : i[H]) ?? (x > 0 ? kn(b, To(x)) : b), h = o ? oa(w) : w;
|
|
271
271
|
let I = typeof r == "number" ? r : 1;
|
|
272
272
|
return o && (I = I * na), ta(h, I);
|
|
273
273
|
}
|
|
@@ -643,11 +643,11 @@ function Er(e) {
|
|
|
643
643
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
644
644
|
return Number.isFinite(t) ? Math.max(Qn, Math.floor(t)) : Ir;
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Gr(e) {
|
|
647
647
|
return e <= 0 ? 320 : Rt.value.xs || Rt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : Rt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : Rt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
648
648
|
}
|
|
649
649
|
function lo(e, t) {
|
|
650
|
-
const n = window.innerHeight, o =
|
|
650
|
+
const n = window.innerHeight, o = Gr(n), r = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, i = Math.max(120, Math.min(o, r));
|
|
651
651
|
e.style.maxHeight = `${i}px`;
|
|
652
652
|
}
|
|
653
653
|
function _t() {
|
|
@@ -668,7 +668,7 @@ function fa(e) {
|
|
|
668
668
|
maxTooltipItems: Er(e == null ? void 0 : e.maxTooltipItems)
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function jr(e) {
|
|
672
672
|
e.__lastPhoneTapAt = void 0, e.__lastPhoneTapX = void 0, e.__lastPhoneTapY = void 0, e.__lastPhoneTapDatasetIndex = void 0, e.__lastPhoneTapDataIndex = void 0;
|
|
673
673
|
}
|
|
674
674
|
function qr(e, t, n, o, r, i) {
|
|
@@ -1073,7 +1073,7 @@ function Vo(e, t, n, o, r) {
|
|
|
1073
1073
|
})));
|
|
1074
1074
|
}
|
|
1075
1075
|
function ct(e, t, n = !1) {
|
|
1076
|
-
Nt(e) && !n || ($t(e), ha(e), da(e, !1),
|
|
1076
|
+
Nt(e) && !n || ($t(e), ha(e), da(e, !1), jr(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", wn(t));
|
|
1077
1077
|
}
|
|
1078
1078
|
function Tn(e, t, n = Br) {
|
|
1079
1079
|
e.__isTooltipHovered || ($t(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
@@ -1634,13 +1634,13 @@ const Cl = {
|
|
|
1634
1634
|
}
|
|
1635
1635
|
return Le([x, v], () => {
|
|
1636
1636
|
v.value && P();
|
|
1637
|
-
}),
|
|
1637
|
+
}), jt(() => {
|
|
1638
1638
|
a.value = D(a.value), P(), document.addEventListener("pointerdown", R, !0), document.addEventListener("keydown", A), window.addEventListener("resize", ue);
|
|
1639
1639
|
}), Eo(() => {
|
|
1640
1640
|
C(), document.removeEventListener("pointerdown", R, !0), document.removeEventListener("keydown", A), window.removeEventListener("resize", ue);
|
|
1641
1641
|
}), (T, q) => {
|
|
1642
1642
|
const U = be("FmButton");
|
|
1643
|
-
return
|
|
1643
|
+
return G(), ye(Ya, {
|
|
1644
1644
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1645
1645
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1646
1646
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1649,7 +1649,7 @@ const Cl = {
|
|
|
1649
1649
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1650
1650
|
}, {
|
|
1651
1651
|
default: Re(() => [
|
|
1652
|
-
v.value ? (
|
|
1652
|
+
v.value ? (G(), pe("div", Cl, [
|
|
1653
1653
|
Q("div", {
|
|
1654
1654
|
ref_key: "panelRef",
|
|
1655
1655
|
ref: i,
|
|
@@ -1679,12 +1679,12 @@ const Cl = {
|
|
|
1679
1679
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1680
1680
|
onMouseleave: h
|
|
1681
1681
|
}, [
|
|
1682
|
-
(
|
|
1682
|
+
(G(!0), pe(Ye, null, St(Y.value, (X, B) => (G(), pe("div", {
|
|
1683
1683
|
key: X.key,
|
|
1684
1684
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1685
1685
|
}, [
|
|
1686
|
-
X.title ? (
|
|
1687
|
-
(
|
|
1686
|
+
X.title ? (G(), pe("p", kl, Me(X.title), 1)) : we("", !0),
|
|
1687
|
+
(G(!0), pe(Ye, null, St(X.visibleValues, (K, oe) => (G(), pe("button", {
|
|
1688
1688
|
key: `${K.text}-${oe}`,
|
|
1689
1689
|
type: "button",
|
|
1690
1690
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
|
|
@@ -1705,7 +1705,7 @@ const Cl = {
|
|
|
1705
1705
|
]),
|
|
1706
1706
|
Q("span", Il, Me(d(K)), 1)
|
|
1707
1707
|
], 40, Tl))), 128)),
|
|
1708
|
-
X.hasMore ? (
|
|
1708
|
+
X.hasMore ? (G(), pe("div", Pl, [
|
|
1709
1709
|
Ce(U, {
|
|
1710
1710
|
class: "w-full",
|
|
1711
1711
|
variant: "tertiary",
|
|
@@ -1842,7 +1842,7 @@ const Cl = {
|
|
|
1842
1842
|
const p = s.clientY - W.value, y = Math.max(1, g.clientHeight - h.value), N = Math.min(y, Math.max(0, M.value + p)) / y, te = Math.max(0, g.scrollHeight - g.clientHeight);
|
|
1843
1843
|
g.scrollTop = N * te, B();
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function j() {
|
|
1846
1846
|
P.value && (P.value = !1);
|
|
1847
1847
|
}
|
|
1848
1848
|
function ne() {
|
|
@@ -2140,11 +2140,11 @@ const Cl = {
|
|
|
2140
2140
|
const ae = Number.parseFloat(V.rowGap || V.gap || "0") || 0, fe = rn();
|
|
2141
2141
|
let ke = 0, $e = 0;
|
|
2142
2142
|
for (let Ee = 0; Ee < s.length; Ee += 1) {
|
|
2143
|
-
const
|
|
2144
|
-
if (!
|
|
2143
|
+
const Ge = s[Ee];
|
|
2144
|
+
if (!Ge)
|
|
2145
2145
|
continue;
|
|
2146
|
-
const tt = ke + ($e > 0 ? ae : 0) +
|
|
2147
|
-
if (tt +
|
|
2146
|
+
const tt = ke + ($e > 0 ? ae : 0) + Ge.offsetHeight, je = s.length - (Ee + 1) > 0 ? ae + fe : 0;
|
|
2147
|
+
if (tt + je > y)
|
|
2148
2148
|
break;
|
|
2149
2149
|
ke = tt, $e += 1;
|
|
2150
2150
|
}
|
|
@@ -2189,9 +2189,9 @@ const Cl = {
|
|
|
2189
2189
|
if (ae > 0 && (x.value = ae), window.getComputedStyle(s).flexDirection.startsWith("column") && u.value < a.value.length) {
|
|
2190
2190
|
const $e = Math.max(0, x.value - Wo), Ee = s.scrollHeight;
|
|
2191
2191
|
if (Ee + 1 < $e) {
|
|
2192
|
-
const
|
|
2192
|
+
const Ge = g.map((Ue) => Ue.offsetHeight).filter((Ue) => Number.isFinite(Ue) && Ue > 0), tt = Ge.length > 0 ? Ge.reduce((Ue, je) => Ue + je, 0) / Ge.length : 0;
|
|
2193
2193
|
if (tt > 0) {
|
|
2194
|
-
const Ue = window.getComputedStyle(s),
|
|
2194
|
+
const Ue = window.getComputedStyle(s), je = Number.parseFloat(Ue.rowGap || Ue.gap || "0") || 0, Bn = Math.max(1, tt + je), An = $e - Ee, dn = Math.floor(An / Bn);
|
|
2195
2195
|
if (dn > 0) {
|
|
2196
2196
|
u.value = Math.min(
|
|
2197
2197
|
a.value.length,
|
|
@@ -2209,7 +2209,7 @@ const Cl = {
|
|
|
2209
2209
|
(V || u.value <= 0) && (u.value = Math.max(0, Se)), v.value = _e > N, U(), B();
|
|
2210
2210
|
}
|
|
2211
2211
|
function mt() {
|
|
2212
|
-
|
|
2212
|
+
Go(() => {
|
|
2213
2213
|
Ht(), window.requestAnimationFrame(() => {
|
|
2214
2214
|
Ht(), X(), B();
|
|
2215
2215
|
});
|
|
@@ -2383,8 +2383,8 @@ const Cl = {
|
|
|
2383
2383
|
function ut() {
|
|
2384
2384
|
m.value = !1, d.value && (d.value.scrollTop = 0), mt();
|
|
2385
2385
|
}
|
|
2386
|
-
return
|
|
2387
|
-
cn(), window.addEventListener("mousemove", ge), window.addEventListener("mouseup",
|
|
2386
|
+
return jt(() => {
|
|
2387
|
+
cn(), window.addEventListener("mousemove", ge), window.addEventListener("mouseup", j);
|
|
2388
2388
|
}), Le(
|
|
2389
2389
|
() => [
|
|
2390
2390
|
n.enabled,
|
|
@@ -2397,8 +2397,8 @@ const Cl = {
|
|
|
2397
2397
|
it();
|
|
2398
2398
|
}
|
|
2399
2399
|
), Eo(() => {
|
|
2400
|
-
P.value = !1, T(), A({ height: 0, width: 0 }), window.removeEventListener("mousemove", ge), window.removeEventListener("mouseup",
|
|
2401
|
-
}), (s, g) => S.value ? (
|
|
2400
|
+
P.value = !1, T(), A({ height: 0, width: 0 }), window.removeEventListener("mousemove", ge), window.removeEventListener("mouseup", j);
|
|
2401
|
+
}), (s, g) => S.value ? (G(), pe("div", {
|
|
2402
2402
|
key: 0,
|
|
2403
2403
|
ref_key: "legendPanelRef",
|
|
2404
2404
|
ref: Y,
|
|
@@ -2430,7 +2430,7 @@ const Cl = {
|
|
|
2430
2430
|
style: Ve(vt.value),
|
|
2431
2431
|
onScroll: K
|
|
2432
2432
|
}, [
|
|
2433
|
-
(
|
|
2433
|
+
(G(!0), pe(Ye, null, St(Wt.value, (p, y) => (G(), pe("li", {
|
|
2434
2434
|
key: et(p, y),
|
|
2435
2435
|
class: Fe(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2436
2436
|
"opacity-45": p.hidden
|
|
@@ -2443,11 +2443,11 @@ const Cl = {
|
|
|
2443
2443
|
"aria-pressed": p.hidden === !0 ? "false" : "true",
|
|
2444
2444
|
onClick: Cn((V) => Pn(p, y), ["stop"])
|
|
2445
2445
|
}, [
|
|
2446
|
-
n.usePointStyle !== !1 ? (
|
|
2446
|
+
n.usePointStyle !== !1 ? (G(), pe("span", {
|
|
2447
2447
|
key: 0,
|
|
2448
2448
|
class: "h-5 w-5 shrink-0 rounded-full",
|
|
2449
2449
|
style: Ve({ backgroundColor: de(p, y) })
|
|
2450
|
-
}, null, 4)) : (
|
|
2450
|
+
}, null, 4)) : (G(), pe("span", {
|
|
2451
2451
|
key: 1,
|
|
2452
2452
|
class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
|
|
2453
2453
|
style: Ve({
|
|
@@ -2465,7 +2465,7 @@ const Cl = {
|
|
|
2465
2465
|
}, Me(p.text), 11, Rl)
|
|
2466
2466
|
], 10, Al)
|
|
2467
2467
|
], 2))), 128)),
|
|
2468
|
-
v.value ? (
|
|
2468
|
+
v.value ? (G(), pe("li", Fl, [
|
|
2469
2469
|
Q("button", {
|
|
2470
2470
|
type: "button",
|
|
2471
2471
|
class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
|
|
@@ -2474,7 +2474,7 @@ const Cl = {
|
|
|
2474
2474
|
}, Me(m.value ? l(r)("report.widget.legend.viewLess") : l(r)("report.widget.legend.viewMore")), 1)
|
|
2475
2475
|
])) : we("", !0)
|
|
2476
2476
|
], 38),
|
|
2477
|
-
C.value ? (
|
|
2477
|
+
C.value ? (G(), pe("div", {
|
|
2478
2478
|
key: 0,
|
|
2479
2479
|
class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
|
|
2480
2480
|
onMousedown: oe
|
|
@@ -2679,7 +2679,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2679
2679
|
isCompare: !1,
|
|
2680
2680
|
metricCount: t.value.metricCount,
|
|
2681
2681
|
mode: t.value.chartColorBinding
|
|
2682
|
-
}),
|
|
2682
|
+
}), j = Oe({
|
|
2683
2683
|
datasetIndex: ce,
|
|
2684
2684
|
isCompare: !1,
|
|
2685
2685
|
metricCount: t.value.metricCount,
|
|
@@ -2708,7 +2708,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2708
2708
|
barPercentage: x.value ? Un : void 0,
|
|
2709
2709
|
backgroundColor: re ? zt({
|
|
2710
2710
|
breakdownIndex: he,
|
|
2711
|
-
metricIndex:
|
|
2711
|
+
metricIndex: j,
|
|
2712
2712
|
metricCount: t.value.metricCount,
|
|
2713
2713
|
isCompare: B.isCompare,
|
|
2714
2714
|
breakdownColors: t.value.chartBreakdownColors,
|
|
@@ -2766,9 +2766,9 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2766
2766
|
}
|
|
2767
2767
|
}));
|
|
2768
2768
|
return (B, K) => {
|
|
2769
|
-
var ce, ge,
|
|
2769
|
+
var ce, ge, j, ne, re, he;
|
|
2770
2770
|
const oe = be("FmBarChart");
|
|
2771
|
-
return
|
|
2771
|
+
return G(), pe(Ye, null, [
|
|
2772
2772
|
Q("div", Ol, [
|
|
2773
2773
|
gt(B.$slots, "menu"),
|
|
2774
2774
|
Q("div", {
|
|
@@ -2776,13 +2776,13 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2776
2776
|
"chart-layout--side": l(z) && (l(C).display ?? !1) && l(ue)
|
|
2777
2777
|
}])
|
|
2778
2778
|
}, [
|
|
2779
|
-
l(z) && (l(C).display ?? !1) && l(R) ? (
|
|
2779
|
+
l(z) && (l(C).display ?? !1) && l(R) ? (G(), ye(Xe, {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
"chart-ref": n.value,
|
|
2782
2782
|
enabled: l(C).display ?? !1,
|
|
2783
2783
|
position: l(O),
|
|
2784
2784
|
"text-color": (ce = l(C).labels) == null ? void 0 : ce.color,
|
|
2785
|
-
"font-size": (
|
|
2785
|
+
"font-size": (j = (ge = l(C).labels) == null ? void 0 : ge.font) == null ? void 0 : j.size,
|
|
2786
2786
|
"legend-update-key": l(q),
|
|
2787
2787
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
2788
2788
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -2808,7 +2808,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2808
2808
|
plugins: [l(Y)],
|
|
2809
2809
|
"maintain-aspect-ratio": !1
|
|
2810
2810
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
2811
|
-
l(z) && (l(C).display ?? !1) && !l(R) ? (
|
|
2811
|
+
l(z) && (l(C).display ?? !1) && !l(R) ? (G(), ye(Xe, {
|
|
2812
2812
|
key: 1,
|
|
2813
2813
|
"chart-ref": n.value,
|
|
2814
2814
|
enabled: l(C).display ?? !1,
|
|
@@ -2902,14 +2902,14 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2902
2902
|
}
|
|
2903
2903
|
return (S, D) => {
|
|
2904
2904
|
const $ = be("FmPieChart");
|
|
2905
|
-
return
|
|
2905
|
+
return G(), pe("div", Kl, [
|
|
2906
2906
|
gt(S.$slots, "menu"),
|
|
2907
2907
|
Q("div", {
|
|
2908
2908
|
class: Fe(["chart-layout", {
|
|
2909
2909
|
"chart-layout--side": H.value && b.value
|
|
2910
2910
|
}])
|
|
2911
2911
|
}, [
|
|
2912
|
-
H.value && w.value ? (
|
|
2912
|
+
H.value && w.value ? (G(), ye(Xe, {
|
|
2913
2913
|
key: 0,
|
|
2914
2914
|
"chart-ref": o.value,
|
|
2915
2915
|
enabled: Y.value,
|
|
@@ -2939,7 +2939,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2939
2939
|
datalabels: l(i),
|
|
2940
2940
|
"maintain-aspect-ratio": !1
|
|
2941
2941
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
2942
|
-
H.value && !w.value ? (
|
|
2942
|
+
H.value && !w.value ? (G(), ye(Xe, {
|
|
2943
2943
|
key: 1,
|
|
2944
2944
|
"chart-ref": o.value,
|
|
2945
2945
|
enabled: Y.value,
|
|
@@ -2960,7 +2960,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2960
2960
|
]);
|
|
2961
2961
|
};
|
|
2962
2962
|
}
|
|
2963
|
-
}), Xl = { class: "h-full flex flex-col gap-2 justify-end" }, El = { class: "flex flex-wrap gap-x-4 gap-y-2" },
|
|
2963
|
+
}), Xl = { class: "h-full flex flex-col gap-2 justify-end" }, El = { class: "flex flex-wrap gap-x-4 gap-y-2" }, Gl = { class: "flex items-center gap-1" }, jl = ["title"], ql = { class: "fm-typo-en-body-lg-600" }, Jl = {
|
|
2964
2964
|
class: "flex w-full h-3 shrink-0 rounded-full overflow-hidden",
|
|
2965
2965
|
style: { "background-color": "#f2f2f7" }
|
|
2966
2966
|
}, Zl = /* @__PURE__ */ ze({
|
|
@@ -2983,13 +2983,13 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2983
2983
|
};
|
|
2984
2984
|
});
|
|
2985
2985
|
});
|
|
2986
|
-
return (o, r) => (
|
|
2986
|
+
return (o, r) => (G(), pe("div", Xl, [
|
|
2987
2987
|
Q("div", El, [
|
|
2988
|
-
(
|
|
2988
|
+
(G(!0), pe(Ye, null, St(n.value, (i, a) => (G(), pe("div", {
|
|
2989
2989
|
key: a,
|
|
2990
2990
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2991
2991
|
}, [
|
|
2992
|
-
Q("div",
|
|
2992
|
+
Q("div", Gl, [
|
|
2993
2993
|
Q("span", {
|
|
2994
2994
|
class: "inline-block w-3 h-3 rounded-sm shrink-0",
|
|
2995
2995
|
style: Ve({ backgroundColor: i.color })
|
|
@@ -2997,13 +2997,13 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
2997
2997
|
Q("p", {
|
|
2998
2998
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
|
|
2999
2999
|
title: i.label
|
|
3000
|
-
}, Me(i.label), 9,
|
|
3000
|
+
}, Me(i.label), 9, jl)
|
|
3001
3001
|
]),
|
|
3002
3002
|
Q("p", ql, Me(i.display), 1)
|
|
3003
3003
|
]))), 128))
|
|
3004
3004
|
]),
|
|
3005
3005
|
Q("div", Jl, [
|
|
3006
|
-
(
|
|
3006
|
+
(G(!0), pe(Ye, null, St(n.value, (i, a) => (G(), pe("div", {
|
|
3007
3007
|
key: a,
|
|
3008
3008
|
style: Ve({ width: `${i.width}%`, backgroundColor: i.color })
|
|
3009
3009
|
}, null, 4))), 128))
|
|
@@ -3102,7 +3102,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3102
3102
|
return (R, A) => {
|
|
3103
3103
|
var K;
|
|
3104
3104
|
const T = be("FmIcon"), q = be("FmChip"), U = be("FmTooltip"), X = be("FmLineChart"), B = be("FmBarChart");
|
|
3105
|
-
return
|
|
3105
|
+
return G(), pe("div", Ql, [
|
|
3106
3106
|
gt(R.$slots, "menu"),
|
|
3107
3107
|
Q("p", es, Me(u.value), 1),
|
|
3108
3108
|
Q("div", ts, [
|
|
@@ -3119,7 +3119,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3119
3119
|
];
|
|
3120
3120
|
}),
|
|
3121
3121
|
default: Re(() => [
|
|
3122
|
-
W.value ? (
|
|
3122
|
+
W.value ? (G(), ye(q, {
|
|
3123
3123
|
key: 0,
|
|
3124
3124
|
icon: W.value.icon.name,
|
|
3125
3125
|
class: Fe(`bg-${W.value.icon.tailwind}`),
|
|
@@ -3137,7 +3137,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3137
3137
|
]),
|
|
3138
3138
|
_: 1
|
|
3139
3139
|
}, 8, ["icon", "class"])) : we("", !0),
|
|
3140
|
-
l(o).endDate != null && l(o).startDate != null && W.value === null ? (
|
|
3140
|
+
l(o).endDate != null && l(o).startDate != null && W.value === null ? (G(), ye(q, {
|
|
3141
3141
|
key: 1,
|
|
3142
3142
|
class: "invisible pointer-events-none",
|
|
3143
3143
|
"aria-hidden": "true",
|
|
@@ -3156,7 +3156,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3156
3156
|
_: 1
|
|
3157
3157
|
}, 8, ["disabled"])
|
|
3158
3158
|
]),
|
|
3159
|
-
m.value ? (
|
|
3159
|
+
m.value ? (G(), pe("div", os, [
|
|
3160
3160
|
Q("div", as, [
|
|
3161
3161
|
Q("span", {
|
|
3162
3162
|
class: Fe(H.value === null ? "" : "text-fm-color-primary-500")
|
|
@@ -3177,8 +3177,8 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3177
3177
|
}, null, 4)
|
|
3178
3178
|
], 8, ls),
|
|
3179
3179
|
Q("p", ss, Me(I.value), 1)
|
|
3180
|
-
])) : S.value ? (
|
|
3181
|
-
M(S.value.type) === "line" ? (
|
|
3180
|
+
])) : S.value ? (G(), pe("div", is, [
|
|
3181
|
+
M(S.value.type) === "line" ? (G(), ye(X, {
|
|
3182
3182
|
key: 0,
|
|
3183
3183
|
class: "sparkline sparkline-chart",
|
|
3184
3184
|
datasets: z.value,
|
|
@@ -3191,7 +3191,7 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3191
3191
|
"x-cfg": { display: !1 },
|
|
3192
3192
|
tooltip: O.value,
|
|
3193
3193
|
"maintain-aspect-ratio": !1
|
|
3194
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : M(S.value.type) === "bar" ? (
|
|
3194
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : M(S.value.type) === "bar" ? (G(), ye(B, {
|
|
3195
3195
|
key: 1,
|
|
3196
3196
|
class: "sparkline sparkline-chart",
|
|
3197
3197
|
datasets: C.value,
|
|
@@ -3204,13 +3204,13 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3204
3204
|
"x-cfg": { display: !1 },
|
|
3205
3205
|
tooltip: ue.value,
|
|
3206
3206
|
"maintain-aspect-ratio": !1
|
|
3207
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (
|
|
3207
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (G(), ye(Zl, {
|
|
3208
3208
|
key: 2,
|
|
3209
3209
|
dimensions: S.value.dimensions,
|
|
3210
3210
|
values: ((K = S.value.datasets[0]) == null ? void 0 : K.values) ?? [],
|
|
3211
3211
|
"percent-of-total": S.value.percentOfTotal === !0
|
|
3212
3212
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3213
|
-
])) : (
|
|
3213
|
+
])) : (G(), pe("div", us, A[1] || (A[1] = [
|
|
3214
3214
|
Q("div", { class: "sparkline" }, [
|
|
3215
3215
|
Q("div", { class: "flex flex-col gap-8" }, [
|
|
3216
3216
|
Q("div"),
|
|
@@ -3225,9 +3225,9 @@ const Ol = { class: "widget-content" }, Un = 1, Ko = "rgba(0, 0, 0, 0)", Ul = /*
|
|
|
3225
3225
|
}), ds = {};
|
|
3226
3226
|
function fs(e, t) {
|
|
3227
3227
|
const n = be("FmMenuDivider");
|
|
3228
|
-
return
|
|
3228
|
+
return G(), ye(n);
|
|
3229
3229
|
}
|
|
3230
|
-
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-
|
|
3230
|
+
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-D5GSFMnH.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
|
|
3231
3231
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3232
3232
|
style: { backgroundColor: "#f9f9f9" }
|
|
3233
3233
|
}, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({
|
|
@@ -3321,7 +3321,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3321
3321
|
difference: aa(_.main, _.comparison, l(r))
|
|
3322
3322
|
});
|
|
3323
3323
|
}
|
|
3324
|
-
|
|
3324
|
+
jt(() => {
|
|
3325
3325
|
i();
|
|
3326
3326
|
});
|
|
3327
3327
|
const R = k([]);
|
|
@@ -3437,7 +3437,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3437
3437
|
},
|
|
3438
3438
|
{ immediate: !0 }
|
|
3439
3439
|
);
|
|
3440
|
-
const ge = c(() => ce.value || 12),
|
|
3440
|
+
const ge = c(() => ce.value || 12), j = c(() => d.value ? ge.value : C.value), ne = c(
|
|
3441
3441
|
() => d.value ? Math.max(1, Math.ceil(d.value.pageableRows / ge.value)) : 0
|
|
3442
3442
|
);
|
|
3443
3443
|
async function re({
|
|
@@ -3516,7 +3516,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3516
3516
|
});
|
|
3517
3517
|
return (_, L) => {
|
|
3518
3518
|
const F = be("FmTable");
|
|
3519
|
-
return
|
|
3519
|
+
return G(), pe("div", gs, [
|
|
3520
3520
|
Q("div", hs, [
|
|
3521
3521
|
gt(_.$slots, "menu")
|
|
3522
3522
|
]),
|
|
@@ -3526,7 +3526,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3526
3526
|
"column-defs": he.value,
|
|
3527
3527
|
"row-data": R.value,
|
|
3528
3528
|
"search-value": W.value,
|
|
3529
|
-
"page-size":
|
|
3529
|
+
"page-size": j.value,
|
|
3530
3530
|
"page-count": d.value ? ne.value : void 0,
|
|
3531
3531
|
"shrink-at": !1,
|
|
3532
3532
|
"force-mobile-footer": !0,
|
|
@@ -3540,12 +3540,12 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3540
3540
|
$.value ? {
|
|
3541
3541
|
name: "pin-top",
|
|
3542
3542
|
fn: Re(() => [
|
|
3543
|
-
(
|
|
3543
|
+
(G(), ye(jo($.value === l(qe).bottom ? "tfoot" : "tbody"), null, {
|
|
3544
3544
|
default: Re(() => [
|
|
3545
3545
|
Q("tr", vs, [
|
|
3546
|
-
(
|
|
3546
|
+
(G(!0), pe(Ye, null, St(z.value, (le, de) => {
|
|
3547
3547
|
var ee, Ne;
|
|
3548
|
-
return
|
|
3548
|
+
return G(), pe("td", {
|
|
3549
3549
|
key: `${l(Kt)()}_${de}`,
|
|
3550
3550
|
class: "text-fm-color-typo-primary px-16",
|
|
3551
3551
|
style: Ve({
|
|
@@ -3617,8 +3617,8 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3617
3617
|
breakdownIndex: oe
|
|
3618
3618
|
}) {
|
|
3619
3619
|
var ne;
|
|
3620
|
-
const ce = t.value.chartColorBinding === Be.metric ? K : t.value.chartColorBinding === Be.breakdown ? oe : B, ge = (ne = t.value.chartColorLayers) == null ? void 0 : ne[ce],
|
|
3621
|
-
return Number.isInteger(
|
|
3620
|
+
const ce = t.value.chartColorBinding === Be.metric ? K : t.value.chartColorBinding === Be.breakdown ? oe : B, ge = (ne = t.value.chartColorLayers) == null ? void 0 : ne[ce], j = Number(ge);
|
|
3621
|
+
return Number.isInteger(j) && j > 0 ? j : ce + 1;
|
|
3622
3622
|
}
|
|
3623
3623
|
const w = c(() => {
|
|
3624
3624
|
if (i.value.length > 0) {
|
|
@@ -3626,7 +3626,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3626
3626
|
const ce = Jt({
|
|
3627
3627
|
datasets: u.value,
|
|
3628
3628
|
datasetIndex: oe
|
|
3629
|
-
}), ge = a.value ? on(u.value, ce) : ce,
|
|
3629
|
+
}), ge = a.value ? on(u.value, ce) : ce, j = Oe({
|
|
3630
3630
|
datasetIndex: ge,
|
|
3631
3631
|
isCompare: !1,
|
|
3632
3632
|
metricCount: t.value.metricCount,
|
|
@@ -3641,7 +3641,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3641
3641
|
metricCount: t.value.metricCount
|
|
3642
3642
|
}), he = b({
|
|
3643
3643
|
datasetIndex: ge,
|
|
3644
|
-
colorIndex:
|
|
3644
|
+
colorIndex: j,
|
|
3645
3645
|
breakdownIndex: re
|
|
3646
3646
|
});
|
|
3647
3647
|
let _ = K.values;
|
|
@@ -3667,7 +3667,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3667
3667
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
3668
3668
|
customColors: t.value.chartColors
|
|
3669
3669
|
}) : dt({
|
|
3670
|
-
index:
|
|
3670
|
+
index: j,
|
|
3671
3671
|
isCompare: K.isCompare,
|
|
3672
3672
|
customColors: t.value.chartColors
|
|
3673
3673
|
})
|
|
@@ -3702,9 +3702,9 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3702
3702
|
baseDatasets: w
|
|
3703
3703
|
});
|
|
3704
3704
|
return (B, K) => {
|
|
3705
|
-
var ce, ge,
|
|
3705
|
+
var ce, ge, j, ne, re, he;
|
|
3706
3706
|
const oe = be("FmBarChart");
|
|
3707
|
-
return
|
|
3707
|
+
return G(), pe(Ye, null, [
|
|
3708
3708
|
Q("div", xs, [
|
|
3709
3709
|
gt(B.$slots, "menu"),
|
|
3710
3710
|
Q("div", {
|
|
@@ -3712,13 +3712,13 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3712
3712
|
"chart-layout--side": l(ue) && (l(O).display ?? !1) && l(A)
|
|
3713
3713
|
}])
|
|
3714
3714
|
}, [
|
|
3715
|
-
l(ue) && (l(O).display ?? !1) && l(T) ? (
|
|
3715
|
+
l(ue) && (l(O).display ?? !1) && l(T) ? (G(), ye(Xe, {
|
|
3716
3716
|
key: 0,
|
|
3717
3717
|
"chart-ref": n.value,
|
|
3718
3718
|
enabled: l(O).display ?? !1,
|
|
3719
3719
|
position: l(R),
|
|
3720
3720
|
"text-color": (ce = l(O).labels) == null ? void 0 : ce.color,
|
|
3721
|
-
"font-size": (
|
|
3721
|
+
"font-size": (j = (ge = l(O).labels) == null ? void 0 : ge.font) == null ? void 0 : j.size,
|
|
3722
3722
|
"legend-update-key": l(X),
|
|
3723
3723
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3724
3724
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3745,7 +3745,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3745
3745
|
datalabels: l(D),
|
|
3746
3746
|
"maintain-aspect-ratio": !1
|
|
3747
3747
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3748
|
-
l(ue) && (l(O).display ?? !1) && !l(T) ? (
|
|
3748
|
+
l(ue) && (l(O).display ?? !1) && !l(T) ? (G(), ye(Xe, {
|
|
3749
3749
|
key: 1,
|
|
3750
3750
|
"chart-ref": n.value,
|
|
3751
3751
|
enabled: l(O).display ?? !1,
|
|
@@ -3785,59 +3785,59 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3785
3785
|
emits: ["update:modelValue"],
|
|
3786
3786
|
setup(e) {
|
|
3787
3787
|
const t = at(e, "modelValue"), n = k(null), o = c(() => {
|
|
3788
|
-
var
|
|
3789
|
-
return ((
|
|
3788
|
+
var j;
|
|
3789
|
+
return ((j = t.value.data) == null ? void 0 : j.xAxis) || [];
|
|
3790
3790
|
}), r = c(() => ({
|
|
3791
3791
|
categories: o.value
|
|
3792
3792
|
})), i = c(() => {
|
|
3793
|
-
var
|
|
3794
|
-
return ((
|
|
3793
|
+
var j;
|
|
3794
|
+
return ((j = t.value.data) == null ? void 0 : j.datasets) ?? [];
|
|
3795
3795
|
}), a = c(
|
|
3796
|
-
() => i.value.some((
|
|
3796
|
+
() => i.value.some((j) => j.xAxisIndex !== void 0)
|
|
3797
3797
|
), u = c(
|
|
3798
3798
|
() => an(i.value, o.value.length, {
|
|
3799
3799
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3800
3800
|
})
|
|
3801
|
-
), m = Qt("bar"), v = c(() => t.value.stackBarOverlap === !0), x = c(() => v.value === !1), Y = c(() => !a.value && o.value.length === 1 && i.value.some((
|
|
3801
|
+
), m = Qt("bar"), v = c(() => t.value.stackBarOverlap === !0), x = c(() => v.value === !1), Y = c(() => !a.value && o.value.length === 1 && i.value.some((j) => j.isCompare === !0)), H = c(() => ({
|
|
3802
3802
|
...O.value,
|
|
3803
3803
|
stacked: x.value
|
|
3804
3804
|
})), d = c(() => ({
|
|
3805
3805
|
...ue.value,
|
|
3806
3806
|
stacked: x.value
|
|
3807
3807
|
}));
|
|
3808
|
-
function b(
|
|
3809
|
-
const ne = " - ", re =
|
|
3808
|
+
function b(j) {
|
|
3809
|
+
const ne = " - ", re = j.lastIndexOf(ne);
|
|
3810
3810
|
return re < 0 ? {
|
|
3811
|
-
clusterKey:
|
|
3812
|
-
metricLabel:
|
|
3811
|
+
clusterKey: j,
|
|
3812
|
+
metricLabel: j
|
|
3813
3813
|
} : {
|
|
3814
|
-
clusterKey:
|
|
3815
|
-
metricLabel:
|
|
3814
|
+
clusterKey: j.slice(0, re),
|
|
3815
|
+
metricLabel: j.slice(re + ne.length)
|
|
3816
3816
|
};
|
|
3817
3817
|
}
|
|
3818
|
-
function w(
|
|
3819
|
-
if (typeof
|
|
3820
|
-
const re =
|
|
3818
|
+
function w(j, ne) {
|
|
3819
|
+
if (typeof j == "string") {
|
|
3820
|
+
const re = j.trim();
|
|
3821
3821
|
if (re.length > 0)
|
|
3822
3822
|
return re;
|
|
3823
3823
|
}
|
|
3824
3824
|
return `Series ${ne + 1}`;
|
|
3825
3825
|
}
|
|
3826
3826
|
function h({
|
|
3827
|
-
datasetIndex:
|
|
3827
|
+
datasetIndex: j,
|
|
3828
3828
|
colorIndex: ne
|
|
3829
3829
|
}) {
|
|
3830
3830
|
var L;
|
|
3831
|
-
const re = t.value.chartColorBinding === Be.metric ? ne :
|
|
3831
|
+
const re = t.value.chartColorBinding === Be.metric ? ne : j, he = (L = t.value.chartColorLayers) == null ? void 0 : L[re], _ = Number(he);
|
|
3832
3832
|
return Number.isInteger(_) && _ > 0 ? _ : re + 1;
|
|
3833
3833
|
}
|
|
3834
|
-
function I(
|
|
3834
|
+
function I(j) {
|
|
3835
3835
|
return {
|
|
3836
|
-
label: `__comparison_gap__${
|
|
3837
|
-
tooltipLabel: `__comparison_gap__${
|
|
3836
|
+
label: `__comparison_gap__${j}`,
|
|
3837
|
+
tooltipLabel: `__comparison_gap__${j}`,
|
|
3838
3838
|
data: [0],
|
|
3839
3839
|
grouped: !0,
|
|
3840
|
-
stack: `__comparison_gap__${
|
|
3840
|
+
stack: `__comparison_gap__${j}`,
|
|
3841
3841
|
backgroundColor: Yo,
|
|
3842
3842
|
borderColor: Yo,
|
|
3843
3843
|
minBarLength: 0,
|
|
@@ -3848,18 +3848,18 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3848
3848
|
const P = c(() => {
|
|
3849
3849
|
if (i.value.length === 0)
|
|
3850
3850
|
return [];
|
|
3851
|
-
const
|
|
3851
|
+
const j = u.value.map((F, le) => ({
|
|
3852
3852
|
source: F,
|
|
3853
3853
|
index: le,
|
|
3854
3854
|
name: w(F == null ? void 0 : F.name, le),
|
|
3855
3855
|
values: (F == null ? void 0 : F.values) ?? []
|
|
3856
3856
|
})), ne = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map();
|
|
3857
|
-
for (const F of
|
|
3857
|
+
for (const F of j) {
|
|
3858
3858
|
const { clusterKey: le, metricLabel: de } = b(F.name);
|
|
3859
3859
|
re.has(le) || re.set(le, re.size), ne.has(de) || ne.set(de, ne.size);
|
|
3860
3860
|
}
|
|
3861
3861
|
const he = Math.max(ne.size, 1), _ = t.value.chartColorBinding === Be.breakdown, L = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3862
|
-
return
|
|
3862
|
+
return j.map((F) => {
|
|
3863
3863
|
var ht;
|
|
3864
3864
|
const le = Jt({
|
|
3865
3865
|
datasets: u.value,
|
|
@@ -3872,7 +3872,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3872
3872
|
isCompare: !1,
|
|
3873
3873
|
metricCount: t.value.metricCount,
|
|
3874
3874
|
mode: t.value.chartColorBinding
|
|
3875
|
-
}), { clusterKey: Ie, metricLabel: Te } = b(F.name), Ze = ((ht =
|
|
3875
|
+
}), { clusterKey: Ie, metricLabel: Te } = b(F.name), Ze = ((ht = j[ee]) == null ? void 0 : ht.name) ?? F.name, { clusterKey: ft, metricLabel: rt } = b(Ze), lt = re.get(ft) ?? re.get(Ie) ?? 0, Qe = ne.get(rt) ?? 0, st = _ ? zt({
|
|
3876
3876
|
breakdownIndex: lt,
|
|
3877
3877
|
metricIndex: Qe,
|
|
3878
3878
|
metricCount: he,
|
|
@@ -3931,36 +3931,36 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3931
3931
|
}), ce = c(() => {
|
|
3932
3932
|
if (!Y.value)
|
|
3933
3933
|
return oe.value;
|
|
3934
|
-
const
|
|
3934
|
+
const j = [];
|
|
3935
3935
|
return oe.value.forEach((ne, re) => {
|
|
3936
|
-
|
|
3936
|
+
j.push({
|
|
3937
3937
|
...ne,
|
|
3938
3938
|
barPercentage: Kn
|
|
3939
3939
|
});
|
|
3940
3940
|
const he = oe.value[re + 1];
|
|
3941
|
-
ne.dash === !0 && he &&
|
|
3942
|
-
}),
|
|
3941
|
+
ne.dash === !0 && he && j.push(I(re));
|
|
3942
|
+
}), j;
|
|
3943
3943
|
}), ge = c(() => ({
|
|
3944
3944
|
display: !1,
|
|
3945
3945
|
labels: {
|
|
3946
|
-
filter: (
|
|
3946
|
+
filter: (j, ne) => {
|
|
3947
3947
|
var re, he;
|
|
3948
|
-
return !((he = (re = ne.datasets) == null ? void 0 : re[
|
|
3948
|
+
return !((he = (re = ne.datasets) == null ? void 0 : re[j.datasetIndex ?? -1]) != null && he.isSpacer);
|
|
3949
3949
|
}
|
|
3950
3950
|
}
|
|
3951
3951
|
}));
|
|
3952
|
-
return (
|
|
3952
|
+
return (j, ne) => {
|
|
3953
3953
|
var he, _, L, F, le, de;
|
|
3954
3954
|
const re = be("FmBarChart");
|
|
3955
|
-
return
|
|
3955
|
+
return G(), pe(Ye, null, [
|
|
3956
3956
|
Q("div", _s, [
|
|
3957
|
-
gt(
|
|
3957
|
+
gt(j.$slots, "menu"),
|
|
3958
3958
|
Q("div", {
|
|
3959
3959
|
class: Fe(["chart-layout", {
|
|
3960
3960
|
"chart-layout--side": l(T) && (l(A).display ?? !1) && l(U)
|
|
3961
3961
|
}])
|
|
3962
3962
|
}, [
|
|
3963
|
-
l(T) && (l(A).display ?? !1) && l(X) ? (
|
|
3963
|
+
l(T) && (l(A).display ?? !1) && l(X) ? (G(), ye(Xe, {
|
|
3964
3964
|
key: 0,
|
|
3965
3965
|
"chart-ref": n.value,
|
|
3966
3966
|
enabled: l(A).display ?? !1,
|
|
@@ -3993,7 +3993,7 @@ const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableD
|
|
|
3993
3993
|
datalabels: l(z),
|
|
3994
3994
|
"maintain-aspect-ratio": !1
|
|
3995
3995
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3996
|
-
l(T) && (l(A).display ?? !1) && !l(X) ? (
|
|
3996
|
+
l(T) && (l(A).display ?? !1) && !l(X) ? (G(), ye(Xe, {
|
|
3997
3997
|
key: 1,
|
|
3998
3998
|
"chart-ref": n.value,
|
|
3999
3999
|
enabled: l(A).display ?? !1,
|
|
@@ -4077,7 +4077,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4077
4077
|
isCompare: !1,
|
|
4078
4078
|
metricCount: t.value.metricCount,
|
|
4079
4079
|
mode: t.value.chartColorBinding
|
|
4080
|
-
}),
|
|
4080
|
+
}), j = Oe({
|
|
4081
4081
|
datasetIndex: K,
|
|
4082
4082
|
isCompare: !1,
|
|
4083
4083
|
metricCount: t.value.metricCount,
|
|
@@ -4092,7 +4092,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4092
4092
|
metricCount: t.value.metricCount
|
|
4093
4093
|
}), L = he ? zt({
|
|
4094
4094
|
breakdownIndex: _,
|
|
4095
|
-
metricIndex:
|
|
4095
|
+
metricIndex: j,
|
|
4096
4096
|
metricCount: t.value.metricCount,
|
|
4097
4097
|
isCompare: U.isCompare,
|
|
4098
4098
|
breakdownColors: t.value.chartBreakdownColors,
|
|
@@ -4143,9 +4143,9 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4143
4143
|
baseDatasets: d
|
|
4144
4144
|
});
|
|
4145
4145
|
return (U, X) => {
|
|
4146
|
-
var K, oe, ce, ge,
|
|
4146
|
+
var K, oe, ce, ge, j, ne;
|
|
4147
4147
|
const B = be("FmLineChart");
|
|
4148
|
-
return
|
|
4148
|
+
return G(), pe(Ye, null, [
|
|
4149
4149
|
Q("div", Ts, [
|
|
4150
4150
|
gt(U.$slots, "menu"),
|
|
4151
4151
|
Q("div", {
|
|
@@ -4153,7 +4153,7 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4153
4153
|
"chart-layout--side": l(z) && (l(C).display ?? !1) && l(ue)
|
|
4154
4154
|
}])
|
|
4155
4155
|
}, [
|
|
4156
|
-
l(z) && (l(C).display ?? !1) && l(R) ? (
|
|
4156
|
+
l(z) && (l(C).display ?? !1) && l(R) ? (G(), ye(Xe, {
|
|
4157
4157
|
key: 0,
|
|
4158
4158
|
"chart-ref": n.value,
|
|
4159
4159
|
enabled: l(C).display ?? !1,
|
|
@@ -4186,13 +4186,13 @@ const Ts = { class: "widget-content" }, Ls = /* @__PURE__ */ ze({
|
|
|
4186
4186
|
datalabels: l(M),
|
|
4187
4187
|
"maintain-aspect-ratio": !1
|
|
4188
4188
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "plugins", "datalabels"]),
|
|
4189
|
-
l(z) && (l(C).display ?? !1) && !l(R) ? (
|
|
4189
|
+
l(z) && (l(C).display ?? !1) && !l(R) ? (G(), ye(Xe, {
|
|
4190
4190
|
key: 1,
|
|
4191
4191
|
"chart-ref": n.value,
|
|
4192
4192
|
enabled: l(C).display ?? !1,
|
|
4193
4193
|
position: l(O),
|
|
4194
4194
|
"text-color": (ge = l(C).labels) == null ? void 0 : ge.color,
|
|
4195
|
-
"font-size": (ne = (
|
|
4195
|
+
"font-size": (ne = (j = l(C).labels) == null ? void 0 : j.font) == null ? void 0 : ne.size,
|
|
4196
4196
|
"legend-update-key": l(q),
|
|
4197
4197
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4198
4198
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -4255,13 +4255,13 @@ const Is = ["src"], Ps = /* @__PURE__ */ ze({
|
|
|
4255
4255
|
), r = c(() => o.value !== gn.Custom || !t.icon.trim() ? "" : Ca(t.icon) ? t.icon : Ds(t.icon));
|
|
4256
4256
|
return (i, a) => {
|
|
4257
4257
|
const u = be("FmIcon");
|
|
4258
|
-
return o.value === l(gn).Material && i.icon ? (
|
|
4258
|
+
return o.value === l(gn).Material && i.icon ? (G(), ye(u, {
|
|
4259
4259
|
key: 0,
|
|
4260
4260
|
name: i.icon,
|
|
4261
4261
|
size: i.size ?? "sm",
|
|
4262
4262
|
class: "shrink-0",
|
|
4263
4263
|
"aria-hidden": "true"
|
|
4264
|
-
}, null, 8, ["name", "size"])) : r.value ? (
|
|
4264
|
+
}, null, 8, ["name", "size"])) : r.value ? (G(), pe("img", {
|
|
4265
4265
|
key: 1,
|
|
4266
4266
|
src: r.value,
|
|
4267
4267
|
class: "title-icon shrink-0",
|
|
@@ -4347,7 +4347,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4347
4347
|
isCompare: !1,
|
|
4348
4348
|
metricCount: t.value.metricCount,
|
|
4349
4349
|
mode: Be.metric
|
|
4350
|
-
}),
|
|
4350
|
+
}), j = dt({
|
|
4351
4351
|
index: ce,
|
|
4352
4352
|
isCompare: X.isCompare,
|
|
4353
4353
|
customColors: t.value.chartColors
|
|
@@ -4362,7 +4362,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4362
4362
|
breakdownColors: t.value.chartBreakdownColors,
|
|
4363
4363
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
4364
4364
|
customColors: t.value.chartColors
|
|
4365
|
-
}) :
|
|
4365
|
+
}) : j;
|
|
4366
4366
|
let _ = X.values;
|
|
4367
4367
|
u.value ? _ = a.value.map(
|
|
4368
4368
|
(Ne, Ie) => Ie === B ? X.values[0] : NaN
|
|
@@ -4413,9 +4413,9 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4413
4413
|
baseDatasets: b
|
|
4414
4414
|
});
|
|
4415
4415
|
return (X, B) => {
|
|
4416
|
-
var oe, ce, ge,
|
|
4416
|
+
var oe, ce, ge, j, ne, re;
|
|
4417
4417
|
const K = be("FmLineChart");
|
|
4418
|
-
return
|
|
4418
|
+
return G(), pe(Ye, null, [
|
|
4419
4419
|
Q("div", Hs, [
|
|
4420
4420
|
gt(X.$slots, "menu"),
|
|
4421
4421
|
Q("div", {
|
|
@@ -4423,7 +4423,7 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4423
4423
|
"chart-layout--side": l(O) && (l(z).display ?? !1) && l(R)
|
|
4424
4424
|
}])
|
|
4425
4425
|
}, [
|
|
4426
|
-
l(O) && (l(z).display ?? !1) && l(A) ? (
|
|
4426
|
+
l(O) && (l(z).display ?? !1) && l(A) ? (G(), ye(Xe, {
|
|
4427
4427
|
key: 0,
|
|
4428
4428
|
"chart-ref": n.value,
|
|
4429
4429
|
enabled: l(z).display ?? !1,
|
|
@@ -4455,12 +4455,12 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4455
4455
|
plugins: [l(H), l(d)],
|
|
4456
4456
|
"maintain-aspect-ratio": !1
|
|
4457
4457
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
4458
|
-
l(O) && (l(z).display ?? !1) && !l(A) ? (
|
|
4458
|
+
l(O) && (l(z).display ?? !1) && !l(A) ? (G(), ye(Xe, {
|
|
4459
4459
|
key: 1,
|
|
4460
4460
|
"chart-ref": n.value,
|
|
4461
4461
|
enabled: l(z).display ?? !1,
|
|
4462
4462
|
position: l(ue),
|
|
4463
|
-
"text-color": (
|
|
4463
|
+
"text-color": (j = l(z).labels) == null ? void 0 : j.color,
|
|
4464
4464
|
"font-size": (re = (ne = l(z).labels) == null ? void 0 : ne.font) == null ? void 0 : re.size,
|
|
4465
4465
|
"legend-update-key": l(U),
|
|
4466
4466
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -4520,14 +4520,14 @@ const Hs = { class: "widget-content" }, Ws = /* @__PURE__ */ ze({
|
|
|
4520
4520
|
}
|
|
4521
4521
|
return (w, h) => {
|
|
4522
4522
|
const I = be("FmRadio"), P = be("FmRadioGroup"), W = be("FmButton"), M = be("FmDialog");
|
|
4523
|
-
return
|
|
4523
|
+
return G(), ye(M, {
|
|
4524
4524
|
modelValue: i.value,
|
|
4525
4525
|
"onUpdate:modelValue": h[2] || (h[2] = (S) => i.value = S),
|
|
4526
4526
|
overlay: !0,
|
|
4527
4527
|
"z-index": 10
|
|
4528
4528
|
}, {
|
|
4529
4529
|
"dialog-header": Re(() => h[3] || (h[3] = [
|
|
4530
|
-
|
|
4530
|
+
Ga("Select Orientation")
|
|
4531
4531
|
])),
|
|
4532
4532
|
default: Re(() => [
|
|
4533
4533
|
Ce(l(n), {
|
|
@@ -4729,7 +4729,7 @@ function Ys(e) {
|
|
|
4729
4729
|
i && (i.style.top = `${r.value}px`, h());
|
|
4730
4730
|
}), Le(n, () => {
|
|
4731
4731
|
n.value && o.value && setTimeout(d, 100);
|
|
4732
|
-
}),
|
|
4732
|
+
}), jt(() => {
|
|
4733
4733
|
o.value && setTimeout(d, 100);
|
|
4734
4734
|
}), Yn(() => {
|
|
4735
4735
|
M();
|
|
@@ -4737,7 +4737,7 @@ function Ys(e) {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
const xa = Symbol("report-page-nav");
|
|
4739
4739
|
function gi(e) {
|
|
4740
|
-
|
|
4740
|
+
ja(xa, e);
|
|
4741
4741
|
}
|
|
4742
4742
|
function Xs() {
|
|
4743
4743
|
return qa(xa, void 0);
|
|
@@ -4817,7 +4817,7 @@ function Xo(e) {
|
|
|
4817
4817
|
const t = [e.schemaName, e.name];
|
|
4818
4818
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
4819
4819
|
}
|
|
4820
|
-
function
|
|
4820
|
+
function Gs(e, t, n = []) {
|
|
4821
4821
|
var b, w, h, I, P, W;
|
|
4822
4822
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4823
4823
|
return [];
|
|
@@ -4858,7 +4858,7 @@ function js(e, t, n = []) {
|
|
|
4858
4858
|
return (S = M == null ? void 0 : M.cells) == null ? void 0 : S[d];
|
|
4859
4859
|
}).filter((M) => M != null);
|
|
4860
4860
|
}
|
|
4861
|
-
const
|
|
4861
|
+
const js = {
|
|
4862
4862
|
key: 0,
|
|
4863
4863
|
class: "h-full"
|
|
4864
4864
|
}, qs = {
|
|
@@ -4934,7 +4934,7 @@ const Gs = {
|
|
|
4934
4934
|
Array.isArray(a.chartBreakdownColors) ? [...a.chartBreakdownColors] : void 0
|
|
4935
4935
|
), A = k(a.chartUseSecondaryMetricShades ?? !0), T = k(a.chartColorBinding), q = k(
|
|
4936
4936
|
Array.isArray(a.lineStyles) ? [...a.lineStyles] : void 0
|
|
4937
|
-
), U = k(a.lineStyleBinding), X = k(a.showLabel ?? !1), B = k(a.labelAlign ??
|
|
4937
|
+
), U = k(a.lineStyleBinding), X = k(a.showLabel ?? !1), B = k(a.labelAlign ?? jn.center), K = k(a.labelAnchor ?? Gn.center), oe = k(a.labelRotation ?? 0), ce = k(a.labelOffset ?? 0), ge = k(a.labelFontSize ?? 12), j = Sn(), ne = c(
|
|
4938
4938
|
() => {
|
|
4939
4939
|
var f;
|
|
4940
4940
|
return ((f = ut.value) == null ? void 0 : f.showSearchBar) === !0 && (me.value.config.showSearchBar ?? !0);
|
|
@@ -4956,7 +4956,7 @@ const Gs = {
|
|
|
4956
4956
|
return S.value || ne.value || g.value || (((f = ut.value) == null ? void 0 : f.showLabel) ?? !1) || (((J = ut.value) == null ? void 0 : J.showDrillDimension) ?? !1) && pt.value.length > 0 || (((ie = ut.value) == null ? void 0 : ie.showRollup) ?? !1) && $n.value.length > 0;
|
|
4957
4957
|
}
|
|
4958
4958
|
), y = Xn(async () => {
|
|
4959
|
-
Lt.value = window.innerWidth, un.value = $a(), h.value = Kt(), await
|
|
4959
|
+
Lt.value = window.innerWidth, un.value = $a(), h.value = Kt(), await Go(), b();
|
|
4960
4960
|
}), V = c(() => {
|
|
4961
4961
|
if (o.value)
|
|
4962
4962
|
return Wn;
|
|
@@ -4992,7 +4992,7 @@ const Gs = {
|
|
|
4992
4992
|
var f;
|
|
4993
4993
|
return me.value.type === Z.Table ? ((f = N.value) == null ? void 0 : f.paging) ?? null : null;
|
|
4994
4994
|
}
|
|
4995
|
-
), Ee = c(() => $e.value != null || se.value),
|
|
4995
|
+
), Ee = c(() => $e.value != null || se.value), Ge = c(() => Se.value ? 1 : 0);
|
|
4996
4996
|
function tt() {
|
|
4997
4997
|
Se.value = null, ae.value = { startIndex: 0, count: ae.value.count }, fe = null;
|
|
4998
4998
|
}
|
|
@@ -5002,13 +5002,13 @@ const Gs = {
|
|
|
5002
5002
|
if (!ie) {
|
|
5003
5003
|
if (tt(), se.value && J) {
|
|
5004
5004
|
const De = J.rows;
|
|
5005
|
-
Se.value = (xe = De[0]) != null && xe.isRollup ? De[0] : null, ke.value = De.length, fe = { jobId: "whole", blocks: /* @__PURE__ */ new Map([[0, De]]) }, Ge
|
|
5005
|
+
Se.value = (xe = De[0]) != null && xe.isRollup ? De[0] : null, ke.value = De.length, fe = { jobId: "whole", blocks: /* @__PURE__ */ new Map([[0, De]]) }, je(Ge.value, ae.value.count || De.length);
|
|
5006
5006
|
}
|
|
5007
5007
|
return;
|
|
5008
5008
|
}
|
|
5009
|
-
se.value = !0, ke.value = ie.totalRows, Se.value = (Pe = J.rows[0]) != null && Pe.isRollup ? J.rows[0] : null, fe = { jobId: ie.jobId, blocks: /* @__PURE__ */ new Map([[0, J.rows]]) }, Ge
|
|
5009
|
+
se.value = !0, ke.value = ie.totalRows, Se.value = (Pe = J.rows[0]) != null && Pe.isRollup ? J.rows[0] : null, fe = { jobId: ie.jobId, blocks: /* @__PURE__ */ new Map([[0, J.rows]]) }, je(Ge.value, ae.value.count || Math.min(J.rows.length, 25));
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5011
|
+
function je(f, J) {
|
|
5012
5012
|
var De;
|
|
5013
5013
|
const ie = N.value;
|
|
5014
5014
|
if (!ie || !fe) return;
|
|
@@ -5028,14 +5028,14 @@ const Gs = {
|
|
|
5028
5028
|
var bt, mn, pn;
|
|
5029
5029
|
const ie = $e.value;
|
|
5030
5030
|
if (!ie) {
|
|
5031
|
-
|
|
5031
|
+
je(f, J);
|
|
5032
5032
|
return;
|
|
5033
5033
|
}
|
|
5034
5034
|
const xe = ie.pageSize, Pe = Math.floor(f / xe) * xe, De = Math.floor((f + J - 1) / xe) * xe, Ke = [];
|
|
5035
5035
|
for (let We = Pe; We <= De && We < ke.value; We += xe)
|
|
5036
5036
|
((fe == null ? void 0 : fe.jobId) !== ie.jobId || !fe.blocks.has(We)) && Ke.push(We);
|
|
5037
5037
|
if (Ke.length === 0) {
|
|
5038
|
-
|
|
5038
|
+
je(f, J);
|
|
5039
5039
|
return;
|
|
5040
5040
|
}
|
|
5041
5041
|
ve.value = !0;
|
|
@@ -5054,13 +5054,13 @@ const Gs = {
|
|
|
5054
5054
|
const It = (mn = xt.paging) == null ? void 0 : mn.jobId;
|
|
5055
5055
|
It && It !== He && (He = It, Bn(He, (pn = xt.paging) == null ? void 0 : pn.totalRows)), (fe == null ? void 0 : fe.jobId) !== He && (fe = { jobId: He, blocks: /* @__PURE__ */ new Map() }), fe.blocks.set(We, xt.rows);
|
|
5056
5056
|
}
|
|
5057
|
-
|
|
5057
|
+
je(f, J);
|
|
5058
5058
|
} catch (We) {
|
|
5059
5059
|
if (or(We) === 410) {
|
|
5060
5060
|
tt(), await Dt();
|
|
5061
5061
|
return;
|
|
5062
5062
|
}
|
|
5063
|
-
|
|
5063
|
+
j.open({ message: u("report.messages.errorLoading"), type: "error" }), console.error(We);
|
|
5064
5064
|
} finally {
|
|
5065
5065
|
ve.value = !1;
|
|
5066
5066
|
}
|
|
@@ -5191,8 +5191,8 @@ const Gs = {
|
|
|
5191
5191
|
return {
|
|
5192
5192
|
data: N.value,
|
|
5193
5193
|
paged: Ee.value ? {
|
|
5194
|
-
pageableRows: Math.max(0, ke.value -
|
|
5195
|
-
rowOffset:
|
|
5194
|
+
pageableRows: Math.max(0, ke.value - Ge.value),
|
|
5195
|
+
rowOffset: Ge.value,
|
|
5196
5196
|
windowStart: ae.value.startIndex,
|
|
5197
5197
|
windowSize: ae.value.count,
|
|
5198
5198
|
loading: ve.value,
|
|
@@ -5262,7 +5262,7 @@ const Gs = {
|
|
|
5262
5262
|
Le(
|
|
5263
5263
|
() => r.value.widget.config,
|
|
5264
5264
|
(f) => {
|
|
5265
|
-
w.value = f.rollup, S.value = f.showTitle ?? !0, D.value = f.titleFontSize ?? 14, $.value = f.titleBold ?? !1, C.value = f.titleItalic ?? !1, z.value = f.titleUnderline ?? !1, O.value = Array.isArray(f.chartColors) ? [...f.chartColors] : void 0, ue.value = Array.isArray(f.chartColorLayers) ? [...f.chartColorLayers] : void 0, R.value = Array.isArray(f.chartBreakdownColors) ? [...f.chartBreakdownColors] : void 0, A.value = f.chartUseSecondaryMetricShades ?? !0, T.value = f.chartColorBinding, q.value = Array.isArray(f.lineStyles) ? [...f.lineStyles] : void 0, U.value = f.lineStyleBinding, X.value = f.showLabel ?? !1, B.value = f.labelAlign ??
|
|
5265
|
+
w.value = f.rollup, S.value = f.showTitle ?? !0, D.value = f.titleFontSize ?? 14, $.value = f.titleBold ?? !1, C.value = f.titleItalic ?? !1, z.value = f.titleUnderline ?? !1, O.value = Array.isArray(f.chartColors) ? [...f.chartColors] : void 0, ue.value = Array.isArray(f.chartColorLayers) ? [...f.chartColorLayers] : void 0, R.value = Array.isArray(f.chartBreakdownColors) ? [...f.chartBreakdownColors] : void 0, A.value = f.chartUseSecondaryMetricShades ?? !0, T.value = f.chartColorBinding, q.value = Array.isArray(f.lineStyles) ? [...f.lineStyles] : void 0, U.value = f.lineStyleBinding, X.value = f.showLabel ?? !1, B.value = f.labelAlign ?? jn.center, K.value = f.labelAnchor ?? Gn.center, oe.value = f.labelRotation ?? 0, ce.value = f.labelOffset ?? 0, ge.value = f.labelFontSize ?? 12, re.value = f.showX ?? !0, he.value = f.xPosition ?? qn.bottom, _.value = f.showXGrid ?? !1, L.value = f.showXTick ?? !0, F.value = f.xTickFontSize ?? 12, le.value = f.showXTitle ?? !1, de.value = f.xTitle ?? "", ee.value = f.xTitleFontSize ?? 12, Ne.value = f.showY ?? !0, Ie.value = f.yPosition ?? Jn.left, Te.value = f.showYGrid ?? !1, Ze.value = f.showYTick ?? !0, ft.value = f.yTickFontSize ?? 12, rt.value = f.showYTitle ?? !1, lt.value = f.yTitle ?? "", Qe.value = f.yTitleFontSize ?? 12, st.value = f.showLegend ?? void 0, Tt.value = f.legendPosition ?? Zn.top, et.value = f.usePointStyle ?? !0, ht.value = f.legendFontSize, rn.value = f.legendColor ?? "#6b6b6b", ln.value = f.maxTooltipItems, Ht.value = f.stackBarOverlap ?? !1, mt.value = f.rowHeight ?? null, sn.value = f.colWidths ?? null, h.value = Kt();
|
|
5266
5266
|
},
|
|
5267
5267
|
{ deep: !0, immediate: !0 }
|
|
5268
5268
|
), Le(
|
|
@@ -5314,7 +5314,7 @@ const Gs = {
|
|
|
5314
5314
|
y();
|
|
5315
5315
|
},
|
|
5316
5316
|
{ deep: !0 }
|
|
5317
|
-
),
|
|
5317
|
+
), jt(() => {
|
|
5318
5318
|
y(), it.value.sm || it.value.md || it.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", y)) : addEventListener("resize", y), Dt();
|
|
5319
5319
|
}), Yn(() => {
|
|
5320
5320
|
it.value.sm || it.value.md || it.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", y)) : removeEventListener("resize", y);
|
|
@@ -5357,7 +5357,7 @@ const Gs = {
|
|
|
5357
5357
|
...(me.value.config.joinDatasources ?? []).flatMap((Pe) => Pe.dimensions ?? [])
|
|
5358
5358
|
];
|
|
5359
5359
|
zn.value.length > 0 && zn.value.forEach((Pe) => {
|
|
5360
|
-
const De =
|
|
5360
|
+
const De = Gs(ie, Pe, xe), Ke = Array.from(new Set(De));
|
|
5361
5361
|
Fa(lr(Pe, x.reportId), Ke);
|
|
5362
5362
|
}), h.value = Kt(), setTimeout(() => b(), 100);
|
|
5363
5363
|
}
|
|
@@ -5406,7 +5406,7 @@ const Gs = {
|
|
|
5406
5406
|
})), Oa = x.flat || me.value.type === Z.Spacer ? "flat" : "outlined", Ua = me.value.type === Z.Spacer ? "p-0" : "p-16", Ka = c(() => x.flat ? "w-full" : Mn.value);
|
|
5407
5407
|
return (f, J) => {
|
|
5408
5408
|
const ie = be("FmTooltip"), xe = be("FmSearch"), Pe = be("FmCheckbox"), De = be("FmButton"), Ke = be("FmSelect"), He = be("FmMenuItem"), bt = be("FmMenu"), mn = be("FmForm"), pn = be("FmCircularProgress"), We = be("FmCard");
|
|
5409
|
-
return
|
|
5409
|
+
return G(), ye(We, {
|
|
5410
5410
|
ref_key: "tileCard",
|
|
5411
5411
|
ref: Y,
|
|
5412
5412
|
class: Fe(`${Ka.value} ${l(Ua)}`),
|
|
@@ -5420,8 +5420,8 @@ const Gs = {
|
|
|
5420
5420
|
"file-type": xo.value,
|
|
5421
5421
|
index: wo.value
|
|
5422
5422
|
}, null, 8, ["modelValue", "file-type", "index"]),
|
|
5423
|
-
n.value ? (
|
|
5424
|
-
(
|
|
5423
|
+
n.value ? (G(), ye(pn, { key: 1 })) : (G(), pe("div", js, [
|
|
5424
|
+
(G(), ye(jo(V.value), {
|
|
5425
5425
|
key: h.value,
|
|
5426
5426
|
modelValue: yo.value,
|
|
5427
5427
|
"onUpdate:modelValue": J[5] || (J[5] = (Ct) => yo.value = Ct),
|
|
@@ -5430,7 +5430,7 @@ const Gs = {
|
|
|
5430
5430
|
"sub-title": o.value ? l(u)("report.messages.errorLoadingHint") : void 0
|
|
5431
5431
|
}, {
|
|
5432
5432
|
menu: Re(() => [
|
|
5433
|
-
p.value ? (
|
|
5433
|
+
p.value ? (G(), ye(mn, {
|
|
5434
5434
|
key: 0,
|
|
5435
5435
|
class: "flex items-center gap-2"
|
|
5436
5436
|
}, {
|
|
@@ -5446,8 +5446,8 @@ const Gs = {
|
|
|
5446
5446
|
"z-index": 99
|
|
5447
5447
|
}, {
|
|
5448
5448
|
default: Re(() => [
|
|
5449
|
-
S.value !== !1 ? (
|
|
5450
|
-
me.value.type === l(Z).Scorecard && me.value.config.titleIcon !== "" ? (
|
|
5449
|
+
S.value !== !1 ? (G(), pe("div", qs, [
|
|
5450
|
+
me.value.type === l(Z).Scorecard && me.value.config.titleIcon !== "" ? (G(), ye(Ps, {
|
|
5451
5451
|
key: 0,
|
|
5452
5452
|
icon: me.value.config.titleIcon || "",
|
|
5453
5453
|
type: me.value.config.titleIconType,
|
|
@@ -5471,12 +5471,12 @@ const Gs = {
|
|
|
5471
5471
|
]),
|
|
5472
5472
|
_: 1
|
|
5473
5473
|
}, 8, ["content", "disabled"]),
|
|
5474
|
-
ne.value ? (
|
|
5474
|
+
ne.value ? (G(), ye(xe, {
|
|
5475
5475
|
key: 0,
|
|
5476
5476
|
modelValue: vt.value,
|
|
5477
5477
|
"onUpdate:modelValue": J[1] || (J[1] = (nt) => vt.value = nt),
|
|
5478
5478
|
class: "grow"
|
|
5479
|
-
}, null, 8, ["modelValue"])) : (
|
|
5479
|
+
}, null, 8, ["modelValue"])) : (G(), pe("div", Js)),
|
|
5480
5480
|
Ja(Ce(Pe, {
|
|
5481
5481
|
modelValue: X.value,
|
|
5482
5482
|
"onUpdate:modelValue": J[2] || (J[2] = (nt) => X.value = nt),
|
|
@@ -5485,7 +5485,7 @@ const Gs = {
|
|
|
5485
5485
|
}, null, 8, ["modelValue"]), [
|
|
5486
5486
|
[Za, (Ct = ut.value) == null ? void 0 : Ct.showLabel]
|
|
5487
5487
|
]),
|
|
5488
|
-
(xt = ut.value) != null && xt.showDrillDimension && pt.value.length > 0 ? (
|
|
5488
|
+
(xt = ut.value) != null && xt.showDrillDimension && pt.value.length > 0 ? (G(), pe("div", Zs, [
|
|
5489
5489
|
Ce(De, {
|
|
5490
5490
|
icon: "arrow_upward",
|
|
5491
5491
|
variant: "tertiary",
|
|
@@ -5499,21 +5499,21 @@ const Gs = {
|
|
|
5499
5499
|
onClick: Ha
|
|
5500
5500
|
}, null, 8, ["disabled"])
|
|
5501
5501
|
])) : we("", !0),
|
|
5502
|
-
(It = ut.value) != null && It.showRollup && $n.value.length > 0 ? (
|
|
5502
|
+
(It = ut.value) != null && It.showRollup && $n.value.length > 0 ? (G(), ye(Ke, {
|
|
5503
5503
|
key: `rollup-${l(v)}`,
|
|
5504
5504
|
modelValue: w.value,
|
|
5505
5505
|
"onUpdate:modelValue": J[3] || (J[3] = (nt) => w.value = nt),
|
|
5506
5506
|
class: "w-[150px]",
|
|
5507
5507
|
items: $n.value
|
|
5508
5508
|
}, null, 8, ["modelValue", "items"])) : we("", !0),
|
|
5509
|
-
g.value ? (
|
|
5509
|
+
g.value ? (G(), ye(De, {
|
|
5510
5510
|
key: 4,
|
|
5511
5511
|
icon: "arrow_forward",
|
|
5512
5512
|
variant: "tertiary",
|
|
5513
5513
|
title: l(u)("report.common.openPage"),
|
|
5514
5514
|
onClick: J[4] || (J[4] = (nt) => l(s).openPage(r.value))
|
|
5515
5515
|
}, null, 8, ["title"])) : we("", !0),
|
|
5516
|
-
x.hideExport ? we("", !0) : (
|
|
5516
|
+
x.hideExport ? we("", !0) : (G(), ye(bt, {
|
|
5517
5517
|
key: 5,
|
|
5518
5518
|
shift: !0
|
|
5519
5519
|
}, {
|
|
@@ -5524,7 +5524,7 @@ const Gs = {
|
|
|
5524
5524
|
})
|
|
5525
5525
|
]),
|
|
5526
5526
|
default: Re(() => [
|
|
5527
|
-
(
|
|
5527
|
+
(G(!0), pe(Ye, null, St(l(Wa), (nt) => (G(), ye(He, {
|
|
5528
5528
|
key: nt.value,
|
|
5529
5529
|
label: nt.label,
|
|
5530
5530
|
onClick: nt.onClick
|
|
@@ -5547,12 +5547,12 @@ const Gs = {
|
|
|
5547
5547
|
}
|
|
5548
5548
|
});
|
|
5549
5549
|
export {
|
|
5550
|
-
|
|
5550
|
+
jn as L,
|
|
5551
5551
|
qe as R,
|
|
5552
5552
|
Be as S,
|
|
5553
5553
|
yi as _,
|
|
5554
5554
|
Es as a,
|
|
5555
|
-
|
|
5555
|
+
Gn as b,
|
|
5556
5556
|
Ft as c,
|
|
5557
5557
|
pi as d,
|
|
5558
5558
|
Ds as e,
|