@feedmepos/mf-report 5.27.40 → 5.27.41
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-gwDfjs0u.js → App-DVKd3Prh.js} +5 -5
- package/dist/{DateRangeSelect-UoFskU18.js → DateRangeSelect-B0RstQlf.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js → Default.vue_vue_type_script_setup_true_lang-Bw-lZnut.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CyW3l1Ls.js} +1323 -1308
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js} +1191 -1174
- package/dist/{InsightView-BOM8sS76.js → InsightView-9LhtFI5Y.js} +6 -6
- package/dist/{Integration-Balw3Mat.js → Integration-h1j7EWhc.js} +4 -4
- package/dist/{Integrations-mur9Phe_.js → Integrations-DnSBl3IV.js} +4 -4
- package/dist/{Layout-ChpQW6k2.js → Layout-CIKtCA7v.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js → MenuTab.vue_vue_type_script_setup_true_lang-C-E8CeK1.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bv1EAAAh.js} +5 -5
- package/dist/OverviewView-DD_WScpo.js +61 -0
- package/dist/{Report-D0ybaqZN.js → Report-E0EA45ZK.js} +5 -5
- package/dist/ReportEditor-BLn7-0ar.js +2073 -0
- package/dist/{ReportView-BaHqhBsX.js → ReportView-Cr9VjHN8.js} +80 -83
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js → SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js} +1 -1
- package/dist/{Setting-IDAzH_zb.js → Setting-DOFXTePL.js} +30 -30
- package/dist/{Template-C1Ei0GcR.js → Template-BpsdPAlm.js} +5 -5
- package/dist/{TileEditor-D5lXwoDY.js → TileEditor-CCpH1icn.js} +110 -105
- package/dist/TilePageStack.vue_vue_type_script_setup_true_lang-BUr5dctn.js +332 -0
- package/dist/{TransitionFade-CtE41B0o.js → TransitionFade-CAuLrgf6.js} +6 -6
- package/dist/{_plugin-vue_export-helper-onplcgja.js → _plugin-vue_export-helper-kkiiQoKl.js} +215 -216
- package/dist/{app-FVupSSYM.js → app-B7Ecopk1.js} +916 -888
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-DivfYXir.js → useRestaurantPermission-BMSTU9GV.js} +2 -2
- package/package.json +2 -2
- package/dist/OverviewView-Cf3MrDd_.js +0 -64
- package/dist/ReportEditor-BAOUNxIf.js +0 -2032
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js +0 -257
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as de, mergeModels as ve, useModel as ge, computed as C, ref as oe, resolveComponent as A, createElementBlock as W, openBlock as m, createVNode as u, createElementVNode as y, unref as l, withCtx as Z, toDisplayString as K, Fragment as me, renderList as $e, withModifiers as he, createTextVNode as We, watch as xe, createCommentVNode as P, createBlock as z, renderSlot as kl, onBeforeUnmount as ul, resolveDynamicComponent as Fl, normalizeClass as Fe, withDirectives as ke, vShow as Te, onMounted as Vl, withKeys as fl, vModelText as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { u as dl, f as ml, h as Ee, F as Ne, d as Xe, S as
|
|
4
|
-
import { W as J, a as Sl,
|
|
1
|
+
import { defineComponent as de, mergeModels as ve, useModel as ge, computed as C, ref as oe, resolveComponent as A, createElementBlock as W, openBlock as m, createVNode as u, createElementVNode as y, unref as l, withCtx as Z, toDisplayString as K, Fragment as me, renderList as $e, withModifiers as he, createTextVNode as We, watch as xe, createCommentVNode as P, createBlock as z, renderSlot as kl, onBeforeUnmount as ul, resolveDynamicComponent as Fl, normalizeClass as Fe, withDirectives as ke, vShow as Te, onMounted as Vl, withKeys as fl, vModelText as Wl, normalizeStyle as sl, isRef as Xl } from "vue";
|
|
2
|
+
import { useRoute as Hl, useRouter as ql } from "vue-router";
|
|
3
|
+
import { u as dl, f as ml, h as Ee, F as Ne, d as Xe, S as rl, a as Gl, W as Yl, T as Jl, c as Kl, b as gl } from "./TransitionFade-CAuLrgf6.js";
|
|
4
|
+
import { W as J, a as Sl, y as He, D as Je, S as yl, C as Ql, u as _l, P as bl, F as Pe, e as Le, b as Zl, c as et, p as lt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DcH9kMCg.js";
|
|
5
5
|
import { storeToRefs as Re } from "pinia";
|
|
6
6
|
import { u as Tl } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { useSnackbar as
|
|
8
|
-
import { h as
|
|
9
|
-
import { a as be, _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as pe, _ as Bl } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { useSnackbar as tt, useBreakpoints as $l, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
|
|
8
|
+
import { h as ot, g as Ve, R as hl, d as at, e as nt, j as it, L as Ae, k as al, S as re, l as fe, m as nl, n as wl, a as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CyW3l1Ls.js";
|
|
9
|
+
import { a as be, _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js";
|
|
10
|
+
import { u as pe, _ as Bl } from "./_plugin-vue_export-helper-kkiiQoKl.js";
|
|
11
11
|
import { r as ue } from "./i18n-CI_sQ5d_.js";
|
|
12
|
-
import { a as je, d as Ke } from "./DateRangeSelect-
|
|
13
|
-
import { a as
|
|
14
|
-
const
|
|
12
|
+
import { a as je, d as Ke } from "./DateRangeSelect-B0RstQlf.js";
|
|
13
|
+
import { a as st, d as Ye } from "./app-B7Ecopk1.js";
|
|
14
|
+
const tl = [
|
|
15
15
|
{
|
|
16
16
|
type: J.Circular,
|
|
17
17
|
maxDimension: null,
|
|
@@ -165,7 +165,7 @@ const ll = [
|
|
|
165
165
|
canSearch: !1,
|
|
166
166
|
periodType: null
|
|
167
167
|
}
|
|
168
|
-
],
|
|
168
|
+
], rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body-lg-600" }, dt = { class: "text-sm text-fm-color-neutral-gray-400" }, mt = ["onClick"], ct = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, pt = /* @__PURE__ */ de({
|
|
169
169
|
__name: "SchemaSection",
|
|
170
170
|
props: /* @__PURE__ */ ve({
|
|
171
171
|
options: {
|
|
@@ -195,7 +195,7 @@ const ll = [
|
|
|
195
195
|
const r = a.value.schemaNames[0], h = S.value.find((L) => L.name === r), R = ((h == null ? void 0 : h.joins) || []).map((L) => L);
|
|
196
196
|
return p.value.filter((L) => R.includes(L.raw.name));
|
|
197
197
|
}
|
|
198
|
-
}), T = oe(!1), N = oe(""), n = oe(), i =
|
|
198
|
+
}), T = oe(!1), N = oe(""), n = oe(), i = tt();
|
|
199
199
|
function g(r) {
|
|
200
200
|
var h;
|
|
201
201
|
return ue(
|
|
@@ -213,7 +213,7 @@ const ll = [
|
|
|
213
213
|
}
|
|
214
214
|
return (r, h) => {
|
|
215
215
|
const R = A("FmForm"), L = A("FmIcon"), b = A("FmField");
|
|
216
|
-
return m(), W("div",
|
|
216
|
+
return m(), W("div", rt, [
|
|
217
217
|
u(He, {
|
|
218
218
|
modelValue: T.value,
|
|
219
219
|
"onUpdate:modelValue": h[1] || (h[1] = (s) => T.value = s),
|
|
@@ -244,8 +244,8 @@ const ll = [
|
|
|
244
244
|
_: 1
|
|
245
245
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
246
246
|
y("div", null, [
|
|
247
|
-
y("p",
|
|
248
|
-
y("p",
|
|
247
|
+
y("p", ut, K(l(c)("report.section.schema.title")), 1),
|
|
248
|
+
y("p", dt, K(l(c)("report.section.schema.description")), 1)
|
|
249
249
|
]),
|
|
250
250
|
(m(!0), W(me, null, $e(a.value.schemaNames, (s, F) => (m(), W("div", {
|
|
251
251
|
key: F,
|
|
@@ -255,18 +255,18 @@ const ll = [
|
|
|
255
255
|
class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
|
|
256
256
|
onClick: (I) => k(F)
|
|
257
257
|
}, [
|
|
258
|
-
y("p",
|
|
258
|
+
y("p", ct, K(g(s)), 1),
|
|
259
259
|
h[3] || (h[3] = y("div", { class: "grow" }, null, -1)),
|
|
260
260
|
u(L, {
|
|
261
261
|
name: "close",
|
|
262
262
|
onClick: he(
|
|
263
263
|
() => {
|
|
264
|
-
a.value.schemaNames = l(
|
|
264
|
+
a.value.schemaNames = l(ot)(a.value.schemaNames, F);
|
|
265
265
|
},
|
|
266
266
|
["stop"]
|
|
267
267
|
)
|
|
268
268
|
}, null, 8, ["onClick"])
|
|
269
|
-
], 8,
|
|
269
|
+
], 8, mt)
|
|
270
270
|
]))), 128)),
|
|
271
271
|
u(b, {
|
|
272
272
|
class: "text-fm-color-typo-tertiary",
|
|
@@ -282,10 +282,10 @@ const ll = [
|
|
|
282
282
|
]);
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), vt = {
|
|
286
286
|
key: 0,
|
|
287
287
|
class: "flex flex-col my-2 gap-8"
|
|
288
|
-
},
|
|
288
|
+
}, ft = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, gt = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, yt = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, il = /* @__PURE__ */ de({
|
|
289
289
|
__name: "DimensionSection",
|
|
290
290
|
props: /* @__PURE__ */ ve({
|
|
291
291
|
options: {
|
|
@@ -439,7 +439,7 @@ const ll = [
|
|
|
439
439
|
});
|
|
440
440
|
return (t, w) => {
|
|
441
441
|
const ee = A("FmTextField"), ie = A("FmStepperField"), H = A("FmCheckbox"), Se = A("FmForm"), _e = A("FmIcon"), Be = A("FmButton"), Ie = A("FmListItem"), ze = A("FmList"), Ce = A("FmField");
|
|
442
|
-
return U.max !== 0 ? (m(), W("div",
|
|
442
|
+
return U.max !== 0 ? (m(), W("div", vt, [
|
|
443
443
|
u(He, {
|
|
444
444
|
modelValue: p.value,
|
|
445
445
|
"onUpdate:modelValue": w[12] || (w[12] = (ye) => p.value = ye),
|
|
@@ -571,8 +571,8 @@ const ll = [
|
|
|
571
571
|
_: 1
|
|
572
572
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
573
573
|
y("div", null, [
|
|
574
|
-
y("p",
|
|
575
|
-
y("p",
|
|
574
|
+
y("p", ft, K(S.value), 1),
|
|
575
|
+
y("p", gt, K(l(c)("report.section.dimension.description")), 1)
|
|
576
576
|
]),
|
|
577
577
|
u(ze, null, {
|
|
578
578
|
default: Z(() => [
|
|
@@ -588,7 +588,7 @@ const ll = [
|
|
|
588
588
|
}, {
|
|
589
589
|
default: Z(() => [
|
|
590
590
|
u(_e, { name: "drag_handle" }),
|
|
591
|
-
y("p",
|
|
591
|
+
y("p", yt, K(l(ue)(l(c), l(e), ye.label, "other")), 1),
|
|
592
592
|
w[14] || (w[14] = y("div", { class: "grow" }, null, -1)),
|
|
593
593
|
u(Be, {
|
|
594
594
|
icon: "close",
|
|
@@ -622,7 +622,7 @@ const ll = [
|
|
|
622
622
|
}), Qe = {
|
|
623
623
|
value: "_metric_name"
|
|
624
624
|
};
|
|
625
|
-
function
|
|
625
|
+
function Ll(U, c, e) {
|
|
626
626
|
switch (U) {
|
|
627
627
|
case J.BarChart:
|
|
628
628
|
case J.StackBarChart:
|
|
@@ -635,27 +635,27 @@ function yt(U, c, e) {
|
|
|
635
635
|
return e;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ze(U) {
|
|
639
639
|
var a;
|
|
640
640
|
if (!U.widget)
|
|
641
|
-
return U.tiles ? { ...U, tiles: U.tiles.map(
|
|
642
|
-
const { rowIds: c, columnIds: e } =
|
|
641
|
+
return U.tiles ? { ...U, tiles: U.tiles.map(Ze) } : U;
|
|
642
|
+
const { rowIds: c, columnIds: e } = el(U.widget.config);
|
|
643
643
|
return {
|
|
644
644
|
...U,
|
|
645
|
-
...U.tiles ? { tiles: U.tiles.map(
|
|
645
|
+
...U.tiles ? { tiles: U.tiles.map(Ze) } : {},
|
|
646
646
|
widget: {
|
|
647
647
|
...U.widget,
|
|
648
648
|
config: {
|
|
649
649
|
...U.widget.config,
|
|
650
650
|
rowIds: c,
|
|
651
651
|
columnIds: e,
|
|
652
|
-
isDrillable:
|
|
652
|
+
isDrillable: Ll(
|
|
653
653
|
U.widget.type,
|
|
654
654
|
U.widget.config.dimensions,
|
|
655
655
|
U.widget.config.isDrillable
|
|
656
656
|
),
|
|
657
657
|
joinDatasources: (a = U.widget.config.joinDatasources) == null ? void 0 : a.map((o) => {
|
|
658
|
-
const { rowIds: S, columnIds: p } =
|
|
658
|
+
const { rowIds: S, columnIds: p } = el(o);
|
|
659
659
|
return {
|
|
660
660
|
...o,
|
|
661
661
|
rowIds: S,
|
|
@@ -666,7 +666,7 @@ function rl(U) {
|
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function el(U) {
|
|
670
670
|
const c = U.dimensions.filter((p) => p.hide !== !0 && !p.moveToColumn).map((p) => Ve(p)), e = U.dimensions.filter((p) => p.hide !== !0 && p.moveToColumn == !0).map((p) => Ve(p)), a = U.metrics.length > 0;
|
|
671
671
|
a && U.metrics.find((p) => p.moveToRow == !0) ? c.push(Qe.value) : a && e.push(Qe.value);
|
|
672
672
|
const o = [], S = [];
|
|
@@ -1376,7 +1376,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1376
1376
|
function h(b) {
|
|
1377
1377
|
if (n.value)
|
|
1378
1378
|
switch (b) {
|
|
1379
|
-
case
|
|
1379
|
+
case Ql.Between:
|
|
1380
1380
|
n.value = {
|
|
1381
1381
|
...n.value,
|
|
1382
1382
|
operator: b,
|
|
@@ -1565,16 +1565,21 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1565
1565
|
}),
|
|
1566
1566
|
emits: /* @__PURE__ */ ve(["click-close"], ["update:modelValue"]),
|
|
1567
1567
|
setup(U, { emit: c }) {
|
|
1568
|
-
const e = ge(U, "modelValue");
|
|
1568
|
+
const e = ge(U, "modelValue"), a = U, o = c;
|
|
1569
1569
|
xe(
|
|
1570
1570
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
1571
1571
|
() => {
|
|
1572
|
-
const { rowIds: $, columnIds: d } =
|
|
1573
|
-
e.value.rowIds = $, e.value.columnIds = d
|
|
1572
|
+
const { rowIds: $, columnIds: d } = el(e.value);
|
|
1573
|
+
e.value.rowIds = $, e.value.columnIds = d, !a.mainDatasourceConfig && a.config && (e.value.isDrillable = Ll(
|
|
1574
|
+
a.config.type,
|
|
1575
|
+
e.value.dimensions,
|
|
1576
|
+
e.value.isDrillable ?? !1
|
|
1577
|
+
));
|
|
1574
1578
|
},
|
|
1575
|
-
|
|
1579
|
+
// immediate: heals widgets saved before isDrillable was auto-populated
|
|
1580
|
+
{ deep: !0, immediate: !0 }
|
|
1576
1581
|
);
|
|
1577
|
-
const
|
|
1582
|
+
const { schemas: S } = Re(Sl()), { editingReport: p } = Re(_l()), v = C(() => {
|
|
1578
1583
|
var $;
|
|
1579
1584
|
return (($ = p.value) == null ? void 0 : $.queryVersion) === "v2";
|
|
1580
1585
|
}), { t: T, te: N, locale: n } = pe(), i = C(() => !a.mainDatasourceConfig), g = C(
|
|
@@ -1656,7 +1661,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1656
1661
|
]);
|
|
1657
1662
|
return ($, d) => {
|
|
1658
1663
|
const j = A("FmIcon"), G = A("FmButton"), O = A("FmSwitch"), te = A("FmSelect"), ae = A("FmTextField"), f = A("FmStepperField");
|
|
1659
|
-
return m(), z(
|
|
1664
|
+
return m(), z(rl, null, {
|
|
1660
1665
|
header: Z(() => [
|
|
1661
1666
|
i.value ? P("", !0) : (m(), W("span", {
|
|
1662
1667
|
key: 0,
|
|
@@ -1677,12 +1682,12 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1677
1682
|
})) : P("", !0)
|
|
1678
1683
|
]),
|
|
1679
1684
|
content: Z(() => [
|
|
1680
|
-
u(
|
|
1685
|
+
u(pt, {
|
|
1681
1686
|
modelValue: e.value,
|
|
1682
1687
|
"onUpdate:modelValue": d[2] || (d[2] = (t) => e.value = t),
|
|
1683
1688
|
label: l(T)("report.section.schema.title")
|
|
1684
1689
|
}, null, 8, ["modelValue", "label"]),
|
|
1685
|
-
u(
|
|
1690
|
+
u(il, {
|
|
1686
1691
|
modelValue: e.value.dimensions,
|
|
1687
1692
|
"onUpdate:modelValue": d[3] || (d[3] = (t) => e.value.dimensions = t),
|
|
1688
1693
|
options: L.value,
|
|
@@ -1761,7 +1766,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1761
1766
|
label: l(T)("report.section.datasource.transpose"),
|
|
1762
1767
|
"label-placement": "right"
|
|
1763
1768
|
}, null, 8, ["modelValue", "label"])) : P("", !0),
|
|
1764
|
-
a.config.hasBreakdownDimension ? (m(), z(
|
|
1769
|
+
a.config.hasBreakdownDimension ? (m(), z(il, {
|
|
1765
1770
|
key: 8,
|
|
1766
1771
|
"model-value": e.value.breakdownDimension ? [e.value.breakdownDimension] : [],
|
|
1767
1772
|
label: "breakdownDimension",
|
|
@@ -1772,7 +1777,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1772
1777
|
e.value.breakdownDimension = t[0];
|
|
1773
1778
|
})
|
|
1774
1779
|
}, null, 8, ["model-value", "options", "config"])) : P("", !0),
|
|
1775
|
-
B.value && !r.value ? (m(), z(
|
|
1780
|
+
B.value && !r.value ? (m(), z(il, {
|
|
1776
1781
|
key: 9,
|
|
1777
1782
|
"model-value": e.value.sparklineDimension ? [e.value.sparklineDimension] : [],
|
|
1778
1783
|
label: "sparklineDimension",
|
|
@@ -1822,7 +1827,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1822
1827
|
e.value = t;
|
|
1823
1828
|
})
|
|
1824
1829
|
}, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-percent-of-total", "has-xy"]),
|
|
1825
|
-
u(
|
|
1830
|
+
u(Gl, {
|
|
1826
1831
|
modelValue: e.value.filters,
|
|
1827
1832
|
"onUpdate:modelValue": d[21] || (d[21] = (t) => e.value.filters = t),
|
|
1828
1833
|
options: L.value,
|
|
@@ -1863,7 +1868,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1863
1868
|
});
|
|
1864
1869
|
};
|
|
1865
1870
|
}
|
|
1866
|
-
}), Ot = { class: "fm-typo-en-title-sm-600" },
|
|
1871
|
+
}), Ot = { class: "fm-typo-en-title-sm-600" }, ll = /* @__PURE__ */ de({
|
|
1867
1872
|
__name: "TileEditorTabHeader",
|
|
1868
1873
|
props: /* @__PURE__ */ ve({
|
|
1869
1874
|
icon: {
|
|
@@ -1905,7 +1910,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1905
1910
|
setup(U) {
|
|
1906
1911
|
const c = ge(U, "modelValue"), { t: e } = pe();
|
|
1907
1912
|
return (a, o) => (m(), W(me, null, [
|
|
1908
|
-
u(
|
|
1913
|
+
u(ll, {
|
|
1909
1914
|
modelValue: c.value,
|
|
1910
1915
|
"onUpdate:modelValue": o[0] || (o[0] = (S) => c.value = S),
|
|
1911
1916
|
icon: "keyboard_double_arrow_left",
|
|
@@ -1926,7 +1931,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1926
1931
|
return (e, a) => {
|
|
1927
1932
|
const o = A("FmTopSheet");
|
|
1928
1933
|
return m(), W("div", Nt, [
|
|
1929
|
-
u(
|
|
1934
|
+
u(ll, {
|
|
1930
1935
|
modelValue: c.value,
|
|
1931
1936
|
"onUpdate:modelValue": a[0] || (a[0] = (S) => c.value = S),
|
|
1932
1937
|
icon: "keyboard_double_arrow_up"
|
|
@@ -1937,7 +1942,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1937
1942
|
"fullscreen-size": "sm"
|
|
1938
1943
|
}, {
|
|
1939
1944
|
default: Z(() => [
|
|
1940
|
-
u(
|
|
1945
|
+
u(ll, {
|
|
1941
1946
|
modelValue: c.value,
|
|
1942
1947
|
"onUpdate:modelValue": a[1] || (a[1] = (S) => c.value = S),
|
|
1943
1948
|
icon: "keyboard_double_arrow_down"
|
|
@@ -1950,7 +1955,7 @@ const bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body
|
|
|
1950
1955
|
};
|
|
1951
1956
|
}
|
|
1952
1957
|
});
|
|
1953
|
-
function
|
|
1958
|
+
function Al(U, c = 600) {
|
|
1954
1959
|
const e = oe(null);
|
|
1955
1960
|
function a() {
|
|
1956
1961
|
U.value = !0, e.value && clearTimeout(e.value), e.value = setTimeout(() => {
|
|
@@ -1984,7 +1989,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
1984
1989
|
}),
|
|
1985
1990
|
emits: /* @__PURE__ */ ve(["update:model", "update:title", "update:description"], ["update:isEditingStyle"]),
|
|
1986
1991
|
setup(U, { emit: c }) {
|
|
1987
|
-
const e = ge(U, "isEditingStyle"), { markStyleEditing: a } =
|
|
1992
|
+
const e = ge(U, "isEditingStyle"), { markStyleEditing: a } = Al(e), o = U, S = c, { t: p } = pe(), v = [
|
|
1988
1993
|
{ label: p("report.tile.widget.icon.small"), value: Pe.Small },
|
|
1989
1994
|
{ label: p("report.tile.widget.icon.medium"), value: Pe.Medium },
|
|
1990
1995
|
{ label: p("report.tile.widget.icon.large"), value: Pe.Large },
|
|
@@ -2015,10 +2020,10 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2015
2020
|
a(), S("update:model", { ...o.model, showSearchBar: F });
|
|
2016
2021
|
}
|
|
2017
2022
|
}), B = C({
|
|
2018
|
-
get: () => o.model.titleIconType === Le.Custom ?
|
|
2023
|
+
get: () => o.model.titleIconType === Le.Custom ? at(o.model.titleIcon ?? "") : o.model.titleIcon ?? "",
|
|
2019
2024
|
set: (F) => {
|
|
2020
2025
|
a();
|
|
2021
|
-
const I = r.value === Le.Custom ?
|
|
2026
|
+
const I = r.value === Le.Custom ? nt(F) : F.trim();
|
|
2022
2027
|
S("update:model", { ...o.model, titleIcon: I });
|
|
2023
2028
|
}
|
|
2024
2029
|
}), r = C({
|
|
@@ -2165,7 +2170,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2165
2170
|
], 64);
|
|
2166
2171
|
};
|
|
2167
2172
|
}
|
|
2168
|
-
}), Kt = { class: "flex gap-16 justify-center items-center" }, Qt = { class: "fm-typo-en-title-sm-600" }, Zt = { class: "h-[40x]" }, xl = "YYYY-MM-DD",
|
|
2173
|
+
}), Kt = { class: "flex gap-16 justify-center items-center" }, Qt = { class: "fm-typo-en-title-sm-600" }, Zt = { class: "h-[40x]" }, xl = "YYYY-MM-DD", Ml = /* @__PURE__ */ de({
|
|
2169
2174
|
__name: "TileEditorTab",
|
|
2170
2175
|
props: /* @__PURE__ */ ve({
|
|
2171
2176
|
hideConfiguration: {
|
|
@@ -2183,7 +2188,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2183
2188
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue", "update:isEditingStyle"]),
|
|
2184
2189
|
setup(U, { emit: c }) {
|
|
2185
2190
|
var V, $;
|
|
2186
|
-
const e =
|
|
2191
|
+
const e = st(), { dateRange: a, timezone: o } = Re(e), S = {
|
|
2187
2192
|
startDate: a.value.startDate,
|
|
2188
2193
|
endDate: a.value.endDate
|
|
2189
2194
|
}, p = oe({
|
|
@@ -2206,11 +2211,11 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2206
2211
|
});
|
|
2207
2212
|
const v = ge(U, "modelValue"), T = ge(U, "isEditingStyle"), { breakpoints: N } = $l(), n = U, { promptMessage: i } = Tl(), g = c, { t: k, locale: B } = pe();
|
|
2208
2213
|
function r(d) {
|
|
2209
|
-
v.value =
|
|
2214
|
+
v.value = Ze(d);
|
|
2210
2215
|
}
|
|
2211
2216
|
function h() {
|
|
2212
2217
|
const d = [...v.value.widget.config.joinDatasources || []];
|
|
2213
|
-
d.push({ ...
|
|
2218
|
+
d.push({ ...it(v.value.widget.type), conditions: [] }), r({
|
|
2214
2219
|
...v.value,
|
|
2215
2220
|
widget: {
|
|
2216
2221
|
...v.value.widget,
|
|
@@ -2273,7 +2278,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2273
2278
|
}
|
|
2274
2279
|
};
|
|
2275
2280
|
}, b = C(
|
|
2276
|
-
() =>
|
|
2281
|
+
() => tl.find((d) => d.type === v.value.widget.type)
|
|
2277
2282
|
), s = C(() => v.value.widget.config.joinDatasources), F = /* @__PURE__ */ new WeakMap();
|
|
2278
2283
|
let I = 0;
|
|
2279
2284
|
function M(d) {
|
|
@@ -2310,7 +2315,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2310
2315
|
"onUpdate:modelValue": j[0] || (j[0] = (t) => p.value = t)
|
|
2311
2316
|
}, null, 8, ["modelValue"]))
|
|
2312
2317
|
]),
|
|
2313
|
-
u(
|
|
2318
|
+
u(rl, null, {
|
|
2314
2319
|
header: Z(() => [
|
|
2315
2320
|
y("p", Qt, K(l(k)("report.tile.widget.details")), 1),
|
|
2316
2321
|
j[11] || (j[11] = y("div", { class: "grow" }, null, -1))
|
|
@@ -2349,19 +2354,19 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2349
2354
|
]),
|
|
2350
2355
|
_: 1
|
|
2351
2356
|
}),
|
|
2352
|
-
u(
|
|
2357
|
+
u(rl, null, {
|
|
2353
2358
|
header: Z(() => [
|
|
2354
2359
|
y("p", null, K(l(k)("report.tile.widget.type")), 1),
|
|
2355
2360
|
j[12] || (j[12] = y("div", { class: "grow" }, null, -1))
|
|
2356
2361
|
]),
|
|
2357
2362
|
content: Z(() => [
|
|
2358
|
-
u(
|
|
2363
|
+
u(Yl, {
|
|
2359
2364
|
"is-list": !0,
|
|
2360
2365
|
"model-value": v.value.widget.type,
|
|
2361
2366
|
class: "grid grid-cols-1 gap-2",
|
|
2362
2367
|
"child-class": "flex flex-row p-[8px] gap-2",
|
|
2363
2368
|
"exclude-widge-type": [l(J).Spacer],
|
|
2364
|
-
"onUpdate:modelValue": j[7] || (j[7] = (t) => v.value = L(t, v.value))
|
|
2369
|
+
"onUpdate:modelValue": j[7] || (j[7] = (t) => v.value = l(Ze)(L(t, v.value)))
|
|
2365
2370
|
}, null, 8, ["model-value", "exclude-widge-type"])
|
|
2366
2371
|
]),
|
|
2367
2372
|
_: 1
|
|
@@ -2455,9 +2460,9 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2455
2460
|
{ icon: "align_flex_start", value: Ae.top, tooltip: "alignTop" },
|
|
2456
2461
|
{ icon: "align_flex_end", value: Ae.bottom, tooltip: "alignBottom" }
|
|
2457
2462
|
], g = [
|
|
2458
|
-
{ icon: "format_align_left", value:
|
|
2459
|
-
{ icon: "format_align_center", value:
|
|
2460
|
-
{ icon: "format_align_right", value:
|
|
2463
|
+
{ icon: "format_align_left", value: al.start, tooltip: "anchorStart" },
|
|
2464
|
+
{ icon: "format_align_center", value: al.center, tooltip: "anchorCenter" },
|
|
2465
|
+
{ icon: "format_align_right", value: al.end, tooltip: "anchorEnd" }
|
|
2461
2466
|
];
|
|
2462
2467
|
return (k, B) => {
|
|
2463
2468
|
const r = A("FmCheckbox"), h = A("FmButton"), R = A("FmTooltip"), L = A("FmTextField"), b = A("FmStepperField");
|
|
@@ -2828,7 +2833,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2828
2833
|
type: "color",
|
|
2829
2834
|
class: "legend-color-input cursor-pointer"
|
|
2830
2835
|
}, null, 512), [
|
|
2831
|
-
[
|
|
2836
|
+
[Wl, n.value]
|
|
2832
2837
|
])
|
|
2833
2838
|
], 40, ho),
|
|
2834
2839
|
u(b, {
|
|
@@ -2951,12 +2956,12 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2951
2956
|
const Y = _.length;
|
|
2952
2957
|
if (x.length === 0 || Y <= 0)
|
|
2953
2958
|
return [];
|
|
2954
|
-
const X =
|
|
2959
|
+
const X = nl(x.length);
|
|
2955
2960
|
return x.flatMap((q, ne) => {
|
|
2956
2961
|
const le = X[ne], ce = D == null ? void 0 : D[b(ne, 0, Y)], Me = I(ce) ?? le;
|
|
2957
|
-
return _.map((
|
|
2958
|
-
const
|
|
2959
|
-
return E && Oe > 0 ? vl : I(D == null ? void 0 : D[
|
|
2962
|
+
return _.map((ol, Oe) => {
|
|
2963
|
+
const El = b(ne, Oe, Y), vl = Oe === 0 ? Me : R(Me, L(Oe));
|
|
2964
|
+
return E && Oe > 0 ? vl : I(D == null ? void 0 : D[El]) ?? vl;
|
|
2960
2965
|
});
|
|
2961
2966
|
});
|
|
2962
2967
|
}
|
|
@@ -2978,7 +2983,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
2978
2983
|
return `#${x()}${x()}${x()}`;
|
|
2979
2984
|
}
|
|
2980
2985
|
function V(x, _) {
|
|
2981
|
-
const D =
|
|
2986
|
+
const D = nl(_);
|
|
2982
2987
|
return !Array.isArray(x) || x.length === 0 ? D : Array.from({ length: _ }).map((E, Y) => {
|
|
2983
2988
|
const X = D[Y];
|
|
2984
2989
|
return I(x[Y]) ?? X;
|
|
@@ -3053,7 +3058,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3053
3058
|
}
|
|
3054
3059
|
function Se() {
|
|
3055
3060
|
const x = H();
|
|
3056
|
-
|
|
3061
|
+
Rl(x) || a("update:model", x);
|
|
3057
3062
|
}
|
|
3058
3063
|
function _e() {
|
|
3059
3064
|
ee.value || ie.value || Se();
|
|
@@ -3074,7 +3079,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3074
3079
|
{ deep: !0 }
|
|
3075
3080
|
);
|
|
3076
3081
|
function Be(x, _) {
|
|
3077
|
-
const D = [...O.value], E =
|
|
3082
|
+
const D = [...O.value], E = nl(Math.max(D.length, x + 1))[x];
|
|
3078
3083
|
D[x] = I(_) ?? E, O.value = D;
|
|
3079
3084
|
}
|
|
3080
3085
|
function Ie(x) {
|
|
@@ -3114,7 +3119,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3114
3119
|
if (D === _) {
|
|
3115
3120
|
const Me = _ + De;
|
|
3116
3121
|
B.value = Me, ae.value = s(
|
|
3117
|
-
Array.from({ length: Me }, (
|
|
3122
|
+
Array.from({ length: Me }, (ol, Oe) => `breakdown-${Oe + 1}`),
|
|
3118
3123
|
g.value,
|
|
3119
3124
|
ae.value,
|
|
3120
3125
|
f.value
|
|
@@ -3125,7 +3130,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3125
3130
|
return;
|
|
3126
3131
|
const Y = Math.max(1, g.value.length), q = D * Y, ne = De * Y, le = Math.max(fe.length, _ - De), ce = [...ae.value];
|
|
3127
3132
|
ce.splice(q, ne), B.value = le, ae.value = s(
|
|
3128
|
-
Array.from({ length: le }, (Me,
|
|
3133
|
+
Array.from({ length: le }, (Me, ol) => `breakdown-${ol + 1}`),
|
|
3129
3134
|
g.value,
|
|
3130
3135
|
ce,
|
|
3131
3136
|
f.value
|
|
@@ -3173,7 +3178,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3173
3178
|
}
|
|
3174
3179
|
ae.value = ne;
|
|
3175
3180
|
}
|
|
3176
|
-
function
|
|
3181
|
+
function Ol(x, _, D) {
|
|
3177
3182
|
const E = D.target;
|
|
3178
3183
|
if (!E)
|
|
3179
3184
|
return;
|
|
@@ -3195,7 +3200,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3195
3200
|
}
|
|
3196
3201
|
ae.value = ne, ie.value = !1, _e();
|
|
3197
3202
|
}
|
|
3198
|
-
function
|
|
3203
|
+
function jl(x, _) {
|
|
3199
3204
|
const D = M(), E = g.value.length;
|
|
3200
3205
|
if (E <= 0)
|
|
3201
3206
|
return;
|
|
@@ -3211,14 +3216,14 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3211
3216
|
const D = Array.isArray(x) ? x : [], E = Array.isArray(_) ? _ : [];
|
|
3212
3217
|
return D.length !== E.length ? !1 : D.every((Y, X) => Y === E[X]);
|
|
3213
3218
|
}
|
|
3214
|
-
function
|
|
3219
|
+
function Nl(x, _) {
|
|
3215
3220
|
const D = Array.isArray(x) ? x : [], E = Array.isArray(_) ? _ : [];
|
|
3216
3221
|
return D.length !== E.length ? !1 : D.every((Y, X) => Number(Y) === Number(E[X]));
|
|
3217
3222
|
}
|
|
3218
|
-
function Nl(x) {
|
|
3219
|
-
return x.chartColorBinding === e.model.chartColorBinding && x.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && cl(x.chartColors, e.model.chartColors) && jl(x.chartColorLayers, e.model.chartColorLayers) && cl(x.chartBreakdownColors, e.model.chartBreakdownColors);
|
|
3220
|
-
}
|
|
3221
3223
|
function Rl(x) {
|
|
3224
|
+
return x.chartColorBinding === e.model.chartColorBinding && x.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && cl(x.chartColors, e.model.chartColors) && Nl(x.chartColorLayers, e.model.chartColorLayers) && cl(x.chartBreakdownColors, e.model.chartBreakdownColors);
|
|
3225
|
+
}
|
|
3226
|
+
function Il(x) {
|
|
3222
3227
|
f.value = x, ae.value = s(
|
|
3223
3228
|
Array.from({ length: B.value }, (_, D) => `breakdown-${D + 1}`),
|
|
3224
3229
|
g.value,
|
|
@@ -3226,7 +3231,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3226
3231
|
f.value
|
|
3227
3232
|
);
|
|
3228
3233
|
}
|
|
3229
|
-
function
|
|
3234
|
+
function zl() {
|
|
3230
3235
|
t.value = re.series, k.value = fe.length, B.value = fe.length, O.value = V(void 0, fe.length), te.value = $(void 0, fe.length), f.value = !0, ae.value = s(
|
|
3231
3236
|
Array.from({ length: fe.length }, (x, _) => `breakdown-${_ + 1}`),
|
|
3232
3237
|
g.value,
|
|
@@ -3234,7 +3239,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3234
3239
|
!0
|
|
3235
3240
|
);
|
|
3236
3241
|
}
|
|
3237
|
-
function
|
|
3242
|
+
function Pl() {
|
|
3238
3243
|
w.value = !w.value;
|
|
3239
3244
|
}
|
|
3240
3245
|
function pl(x) {
|
|
@@ -3253,7 +3258,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3253
3258
|
label: l(o)("report.section.datasource.chartColor.title"),
|
|
3254
3259
|
"prepend-icon": w.value ? "expand_less" : "expand_more",
|
|
3255
3260
|
"aria-expanded": w.value ? "true" : "false",
|
|
3256
|
-
onClick:
|
|
3261
|
+
onClick: Pl
|
|
3257
3262
|
}, null, 8, ["label", "prepend-icon", "aria-expanded"])
|
|
3258
3263
|
]),
|
|
3259
3264
|
ke(y("div", Fo, [
|
|
@@ -3269,7 +3274,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3269
3274
|
size: "md",
|
|
3270
3275
|
class: "w-full",
|
|
3271
3276
|
label: l(o)("report.section.datasource.chartColor.reset"),
|
|
3272
|
-
onClick:
|
|
3277
|
+
onClick: zl
|
|
3273
3278
|
}, null, 8, ["label"])
|
|
3274
3279
|
]),
|
|
3275
3280
|
t.value === l(re).breakdown ? (m(), z(Y, {
|
|
@@ -3277,7 +3282,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3277
3282
|
"model-value": f.value,
|
|
3278
3283
|
value: !1,
|
|
3279
3284
|
label: l(o)("report.section.datasource.chartColor.secondaryMetricAutoShade"),
|
|
3280
|
-
"onUpdate:modelValue": _[0] || (_[0] = (X) =>
|
|
3285
|
+
"onUpdate:modelValue": _[0] || (_[0] = (X) => Il(!!X)),
|
|
3281
3286
|
class: "p-4"
|
|
3282
3287
|
}, null, 8, ["model-value", "label"])) : P("", !0),
|
|
3283
3288
|
t.value !== l(re).breakdown ? (m(), W("div", So, [
|
|
@@ -3316,7 +3321,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3316
3321
|
}, [
|
|
3317
3322
|
y("span", {
|
|
3318
3323
|
class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
|
|
3319
|
-
style:
|
|
3324
|
+
style: sl({ backgroundColor: X })
|
|
3320
3325
|
}, null, 4),
|
|
3321
3326
|
y("span", $o, K(X), 1),
|
|
3322
3327
|
y("input", {
|
|
@@ -3373,7 +3378,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3373
3378
|
}, [
|
|
3374
3379
|
y("span", {
|
|
3375
3380
|
class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
|
|
3376
|
-
style:
|
|
3381
|
+
style: sl({
|
|
3377
3382
|
backgroundColor: ae.value[b(q, le, g.value.length)]
|
|
3378
3383
|
})
|
|
3379
3384
|
}, null, 4),
|
|
@@ -3387,7 +3392,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3387
3392
|
}]),
|
|
3388
3393
|
disabled: f.value && le > 0,
|
|
3389
3394
|
onInput: (ce) => se(q, le, ce),
|
|
3390
|
-
onChange: (ce) =>
|
|
3395
|
+
onChange: (ce) => Ol(q, le, ce)
|
|
3391
3396
|
}, null, 42, Io)
|
|
3392
3397
|
], 10, No),
|
|
3393
3398
|
u(D, {
|
|
@@ -3396,7 +3401,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3396
3401
|
icon: "casino",
|
|
3397
3402
|
class: "shrink-0",
|
|
3398
3403
|
disabled: f.value && le > 0,
|
|
3399
|
-
onClick: (ce) =>
|
|
3404
|
+
onClick: (ce) => jl(q, le)
|
|
3400
3405
|
}, null, 8, ["disabled", "onClick"])
|
|
3401
3406
|
])
|
|
3402
3407
|
]))), 128))
|
|
@@ -3619,7 +3624,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3619
3624
|
xe(
|
|
3620
3625
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
3621
3626
|
() => {
|
|
3622
|
-
const { rowIds: i, columnIds: g } =
|
|
3627
|
+
const { rowIds: i, columnIds: g } = el(e.value);
|
|
3623
3628
|
e.value.rowIds = i, e.value.columnIds = g;
|
|
3624
3629
|
},
|
|
3625
3630
|
{ deep: !0 }
|
|
@@ -3837,8 +3842,8 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3837
3842
|
emits: ["update:modelValue", "update:isEditingStyle"],
|
|
3838
3843
|
setup(U) {
|
|
3839
3844
|
const { t: c, locale: e } = pe(), a = ge(U, "modelValue"), o = C(
|
|
3840
|
-
() =>
|
|
3841
|
-
), S = ge(U, "isEditingStyle"), p = oe(!1), { markStyleEditing: v, resetStyleEditing: T } =
|
|
3845
|
+
() => tl.find((b) => b.type === a.value.widget.type)
|
|
3846
|
+
), S = ge(U, "isEditingStyle"), p = oe(!1), { markStyleEditing: v, resetStyleEditing: T } = Al(S), N = U, n = [
|
|
3842
3847
|
J.BarChart,
|
|
3843
3848
|
J.StackBarChart,
|
|
3844
3849
|
J.ClusteredStackBarChart,
|
|
@@ -3874,7 +3879,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3874
3879
|
return (b, s) => {
|
|
3875
3880
|
const F = A("FmCircularProgress"), I = A("FmButton");
|
|
3876
3881
|
return p.value ? (m(), W("div", ya, [
|
|
3877
|
-
u(
|
|
3882
|
+
u(ll, {
|
|
3878
3883
|
"model-value": p.value,
|
|
3879
3884
|
icon: "keyboard_double_arrow_right",
|
|
3880
3885
|
title: l(c)("report.section.style.title"),
|
|
@@ -3950,7 +3955,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3950
3955
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
|
|
3951
3956
|
setup(U, { emit: c }) {
|
|
3952
3957
|
const { locale: e, t: a } = pe(), o = ge(U, "modelValue"), S = U, p = C(
|
|
3953
|
-
() =>
|
|
3958
|
+
() => tl.find((B) => {
|
|
3954
3959
|
var r, h;
|
|
3955
3960
|
return B.type === ((h = (r = o.value) == null ? void 0 : r.widget) == null ? void 0 : h.type);
|
|
3956
3961
|
})
|
|
@@ -3966,12 +3971,12 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
3966
3971
|
const h = A("FmCircularProgress"), R = A("FmButton");
|
|
3967
3972
|
return m(), W("div", null, [
|
|
3968
3973
|
o.value ? (m(), W(me, { key: 1 }, [
|
|
3969
|
-
u(
|
|
3974
|
+
u(Jl, {
|
|
3970
3975
|
"model-value": !U.hideConfiguration
|
|
3971
3976
|
}, {
|
|
3972
3977
|
right: Z(() => [
|
|
3973
3978
|
y("div", Ca, [
|
|
3974
|
-
u(
|
|
3979
|
+
u(Ml, {
|
|
3975
3980
|
modelValue: o.value,
|
|
3976
3981
|
"onUpdate:modelValue": r[0] || (r[0] = (L) => o.value = L),
|
|
3977
3982
|
"is-editing-style": i.value,
|
|
@@ -4066,7 +4071,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
4066
4071
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
|
|
4067
4072
|
setup(U, { emit: c }) {
|
|
4068
4073
|
const e = ge(U, "modelValue"), a = U, o = C(
|
|
4069
|
-
() =>
|
|
4074
|
+
() => tl.find((p) => {
|
|
4070
4075
|
var v, T;
|
|
4071
4076
|
return p.type === ((T = (v = e.value) == null ? void 0 : v.widget) == null ? void 0 : T.type);
|
|
4072
4077
|
})
|
|
@@ -4084,7 +4089,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
4084
4089
|
"hide-export": !0
|
|
4085
4090
|
}, null, 8, ["model-value", "index"])) : (m(), z(Ul, { key: 1 }))
|
|
4086
4091
|
]),
|
|
4087
|
-
u(
|
|
4092
|
+
u(Ml, {
|
|
4088
4093
|
modelValue: e.value,
|
|
4089
4094
|
"onUpdate:modelValue": v[0] || (v[0] = (N) => e.value = N),
|
|
4090
4095
|
config: o.value,
|
|
@@ -4108,7 +4113,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
4108
4113
|
}, Wa = /* @__PURE__ */ de({
|
|
4109
4114
|
__name: "TileEditor",
|
|
4110
4115
|
setup(U) {
|
|
4111
|
-
const c =
|
|
4116
|
+
const c = Hl(), e = ql(), a = _l(), { globalFilters: o } = Re(Zl()), { currentSelectWidgetType: S, editingReport: p, editingTile: v, editingTileIndex: T } = Re(a), { breakpoints: N } = $l(), { promptMessage: n } = Tl(), { t: i, te: g } = pe(), k = C(() => {
|
|
4112
4117
|
var s, F;
|
|
4113
4118
|
const L = (F = (s = v.value) == null ? void 0 : s.widget) == null ? void 0 : F.type;
|
|
4114
4119
|
if (!L)
|
|
@@ -4126,7 +4131,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
4126
4131
|
title: i("report.tile.save.title"),
|
|
4127
4132
|
message: i("report.tile.save.confirm", { title: ((s = (b = v.value) == null ? void 0 : b.widget) == null ? void 0 : s.title) ?? "" })
|
|
4128
4133
|
}) && v.value) {
|
|
4129
|
-
const F =
|
|
4134
|
+
const F = lt(p.value.tiles, gl.value);
|
|
4130
4135
|
T.value === -1 ? F.push(v.value) : F[T.value] = v.value, r();
|
|
4131
4136
|
}
|
|
4132
4137
|
}
|
|
@@ -4142,7 +4147,7 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
4142
4147
|
p.value || e.push({ name: "reports" });
|
|
4143
4148
|
}), (L, b) => {
|
|
4144
4149
|
const s = A("FmPageHead");
|
|
4145
|
-
return m(), z(
|
|
4150
|
+
return m(), z(Kl, null, {
|
|
4146
4151
|
default: Z(() => [
|
|
4147
4152
|
u(s, {
|
|
4148
4153
|
actions: [
|
|
@@ -4162,14 +4167,14 @@ const It = { class: "flex flex-col gap-5" }, zt = { class: "fm-typo-en-body-lg-6
|
|
|
4162
4167
|
const I = F.tileIds, M = l(v) && l(v).id;
|
|
4163
4168
|
return Array.isArray(I) && typeof M == "string" && I.includes(M);
|
|
4164
4169
|
}) ? (m(), W("div", Da, [
|
|
4165
|
-
u(
|
|
4170
|
+
u(et)
|
|
4166
4171
|
])) : P("", !0),
|
|
4167
4172
|
l(v) ? (m(), z(Fl(l(N).lg || l(N).md ? Va : Ta), {
|
|
4168
4173
|
key: 1,
|
|
4169
4174
|
modelValue: l(v),
|
|
4170
|
-
"onUpdate:modelValue": b[1] || (b[1] = (F) =>
|
|
4175
|
+
"onUpdate:modelValue": b[1] || (b[1] = (F) => Xl(v) ? v.value = F : null),
|
|
4171
4176
|
class: Fe(`${l(N).lg || l(N).md ? "flex" : ""} w-full`),
|
|
4172
|
-
style:
|
|
4177
|
+
style: sl({ height: `calc( 100% - ${l(N).lg || l(N).md ? 72 : 64}px)` }),
|
|
4173
4178
|
"hide-configuration": B.value,
|
|
4174
4179
|
index: Number(l(c).params.tileIndex),
|
|
4175
4180
|
onHideConfiguration: b[2] || (b[2] = (F) => B.value = F)
|