@feedmepos/mf-report 5.22.25 → 5.22.26
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-3HFmWp7u.js +298 -0
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js → BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js} +1128 -1292
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js} +5 -5
- package/dist/{Default.vue_vue_type_script_setup_true_lang-C55xh4bx.js → Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js → FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js} +19 -19
- package/dist/InsightView-B8Wrd2SX.js +664 -0
- package/dist/{Integration-CAsNSCR4.js → Integration-D_jZxPMn.js} +40 -40
- package/dist/{Integrations-CIeyn0dF.js → Integrations-B1igzxZG.js} +14 -13
- package/dist/Layout-Dt6yE5XC.js +19 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CBY5Meyc.js → MenuTab.vue_vue_type_script_setup_true_lang-Dtv5xe0O.js} +13 -13
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js → NavigationTab.vue_vue_type_script_setup_true_lang-lfncwvdP.js} +24 -24
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
- package/dist/OverviewView-hz2kZmm7.js +62 -0
- package/dist/{Report-CMYhrVbI.js → Report-nrJWlkN-.js} +15 -14
- package/dist/{ReportEditor-BU6Hq9yx.js → ReportEditor-YV-2UXDU.js} +24 -23
- package/dist/{ReportView-8F14F_jz.js → ReportView-CM1PfMk6.js} +18 -17
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
- package/dist/Setting-B1Xrl09c.js +326 -0
- package/dist/{TileEditor-BRHXTLEK.js → TileEditor-CF0aNTKV.js} +131 -131
- package/dist/{TransitionFade-DbsPAg2T.js → TransitionFade-D2bsz2iV.js} +12 -12
- package/dist/app-C2vt2B-i.js +11540 -0
- package/dist/app.js +1 -1
- package/dist/useRestaurantPermission-DRvKGVtO.js +65 -0
- package/dist/vue-i18n-DVWuTfed.js +2727 -0
- package/package.json +1 -1
- package/dist/App-C5_KJN8G.js +0 -294
- package/dist/InsightView-BCZKzqRM.js +0 -670
- package/dist/Layout-BFvrEBq5.js +0 -29
- package/dist/NoPermission.vue_vue_type_script_setup_true_lang-obph7BUZ.js +0 -25
- package/dist/OverviewView-gvsp6532.js +0 -63
- package/dist/Setting-BtWmZpk0.js +0 -328
- package/dist/app-WBPZfxon.js +0 -6658
- package/dist/useRestaurantPermission-BtPLwoC9.js +0 -64
- package/dist/vue-i18n-CvU0g5WR.js +0 -7253
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as se, mergeModels as ve, useModel as ge, computed as S, ref as ee, resolveComponent as D, createElementBlock as P, openBlock as v, createVNode as d, createElementVNode as b, unref as l, withCtx as Y, toDisplayString as J, Fragment as de, renderList as xe, withModifiers as ye, createTextVNode as Ue, watch as he, createCommentVNode as N, createBlock as O, onUnmounted as Bl, renderSlot as rl, onMounted as Ye, onBeforeUnmount as ul, resolveDynamicComponent as dl, normalizeClass as ke, withDirectives as we, vShow as Ce, withKeys as el, vModelText as Ll, normalizeStyle as Ee, isRef as Al } from "vue";
|
|
2
2
|
import { useRoute as Ml, useRouter as Nl } from "vue-router";
|
|
3
|
-
import { h as Ol, d as Re, S as We, a as
|
|
4
|
-
import { W as G,
|
|
3
|
+
import { h as Ol, d as Re, S as We, a as jl, W as zl, c as Rl, T as Il, b as Pl } from "./TransitionFade-D2bsz2iV.js";
|
|
4
|
+
import { W as G, a as ml, c as De, D as Xl, S as ll, C as El, P as ol, u as Wl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
|
|
5
5
|
import { storeToRefs as Se } from "pinia";
|
|
6
6
|
import { u as cl } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as ql, useBreakpoints as pl, FmButtonColorThemeVariant as tl } from "@feedmepos/ui-library";
|
|
8
|
-
import { a as fe, _ as vl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as ce
|
|
8
|
+
import { a as fe, _ as vl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
|
|
9
|
+
import { u as ce } from "./vue-i18n-DVWuTfed.js";
|
|
10
10
|
import { r as me } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { b as Te, u as Oe, R as al, L as Fe, c as Ne, S as le, d as ie, e as nl, f as Hl, Y as Yl, X as Gl, _ as
|
|
12
|
-
import { d as
|
|
13
|
-
import { d as
|
|
14
|
-
import { _ as yl } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { b as Te, u as Oe, R as al, L as Fe, c as Ne, S as le, d as ie, e as nl, f as Hl, Y as Yl, X as Gl, _ as fl, a as Jl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js";
|
|
12
|
+
import { j as $e, a as gl, d as Me } from "./app-C2vt2B-i.js";
|
|
13
|
+
import { d as je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js";
|
|
14
|
+
import { _ as yl } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
|
|
15
15
|
const Ie = [
|
|
16
16
|
{
|
|
17
17
|
type: G.Circular,
|
|
@@ -193,8 +193,8 @@ const Ie = [
|
|
|
193
193
|
if (i.value.schemaNames.length === 0 || t.value === 0)
|
|
194
194
|
return x.value.filter((g) => !g.raw.isJoinOnly);
|
|
195
195
|
{
|
|
196
|
-
const g = i.value.schemaNames[0], C = h.value.find(($) => $.name === g),
|
|
197
|
-
return x.value.filter(($) =>
|
|
196
|
+
const g = i.value.schemaNames[0], C = h.value.find(($) => $.name === g), z = ((C == null ? void 0 : C.joins) || []).map(($) => $);
|
|
197
|
+
return x.value.filter(($) => z.includes($.raw.name));
|
|
198
198
|
}
|
|
199
199
|
}), k = ee(!1), T = ee(""), t = ee(), s = ql();
|
|
200
200
|
function f(g) {
|
|
@@ -202,7 +202,7 @@ const Ie = [
|
|
|
202
202
|
return me(
|
|
203
203
|
c,
|
|
204
204
|
e,
|
|
205
|
-
(C = h.value.find((
|
|
205
|
+
(C = h.value.find((z) => z.name === g)) == null ? void 0 : C.label,
|
|
206
206
|
"schema"
|
|
207
207
|
);
|
|
208
208
|
}
|
|
@@ -213,7 +213,7 @@ const Ie = [
|
|
|
213
213
|
T.value !== "" ? (t.value !== void 0 ? i.value.schemaNames[t.value] = T.value : i.value.schemaNames.push(T.value), k.value = !1) : s.open({ message: c("report.section.schema.nothingSelected"), type: "error" });
|
|
214
214
|
}
|
|
215
215
|
return (g, C) => {
|
|
216
|
-
const
|
|
216
|
+
const z = D("FmForm"), $ = D("FmIcon"), m = D("FmField");
|
|
217
217
|
return v(), P("div", Kl, [
|
|
218
218
|
d(De, {
|
|
219
219
|
modelValue: k.value,
|
|
@@ -224,7 +224,7 @@ const Ie = [
|
|
|
224
224
|
onConfirm: A
|
|
225
225
|
}, {
|
|
226
226
|
content: Y(() => [
|
|
227
|
-
d(
|
|
227
|
+
d(z, { ref: "form" }, {
|
|
228
228
|
default: Y(() => [
|
|
229
229
|
d(fe, {
|
|
230
230
|
modelValue: T.value,
|
|
@@ -327,14 +327,14 @@ const Ie = [
|
|
|
327
327
|
}))
|
|
328
328
|
), k = ee(i.value.length > 0 ? 0 : void 0);
|
|
329
329
|
function T(n) {
|
|
330
|
-
var y, u, V,
|
|
330
|
+
var y, u, V, j;
|
|
331
331
|
x.value = !0, t.value = n != null && n.value ? JSON.parse(
|
|
332
332
|
JSON.stringify({
|
|
333
333
|
...n.value,
|
|
334
334
|
label: me(c, e, (y = n.value) == null ? void 0 : y.label, "other"),
|
|
335
335
|
moveToColumn: (((u = o.config) == null ? void 0 : u.columnIds) || []).includes(Te(n.value))
|
|
336
336
|
})
|
|
337
|
-
) : void 0, k.value = n == null ? void 0 : n.index, s.value = !!((V = t.value) != null && V.dataFormula || (
|
|
337
|
+
) : void 0, k.value = n == null ? void 0 : n.index, s.value = !!((V = t.value) != null && V.dataFormula || (j = t.value) != null && j.displayFormula), t.value && t.value.formatter === void 0 && (o.options.find(
|
|
338
338
|
(B) => {
|
|
339
339
|
var oe, Q;
|
|
340
340
|
return B.schemaName === ((oe = t.value) == null ? void 0 : oe.schemaName) && B.name === ((Q = t.value) == null ? void 0 : Q.name);
|
|
@@ -384,10 +384,10 @@ const Ie = [
|
|
|
384
384
|
s.value || (t.value.dataFormula = void 0, t.value.displayFormula = void 0), k.value !== void 0 ? n[k.value] = t.value : n.push(t.value), i.value = n, x.value = !1;
|
|
385
385
|
}
|
|
386
386
|
function C(n) {
|
|
387
|
-
const u = [...p.value.map((V) => V.value)].filter((V,
|
|
387
|
+
const u = [...p.value.map((V) => V.value)].filter((V, j) => j !== n);
|
|
388
388
|
i.value = u;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function z(n) {
|
|
391
391
|
t.value && (t.value.decimal = Number(n));
|
|
392
392
|
}
|
|
393
393
|
function $(n) {
|
|
@@ -408,7 +408,7 @@ const Ie = [
|
|
|
408
408
|
}))
|
|
409
409
|
);
|
|
410
410
|
return (n, y) => {
|
|
411
|
-
const u = D("FmTextField"), V = D("FmStepperField"),
|
|
411
|
+
const u = D("FmTextField"), V = D("FmStepperField"), j = D("FmCheckbox"), B = D("FmTextarea"), oe = D("FmForm"), Q = D("FmIcon"), re = D("FmButton"), ne = D("FmListItem"), I = D("FmList"), M = D("FmField");
|
|
412
412
|
return L.max !== 0 ? (v(), P("div", to, [
|
|
413
413
|
d(De, {
|
|
414
414
|
modelValue: x.value,
|
|
@@ -453,7 +453,7 @@ const Ie = [
|
|
|
453
453
|
label: l(c)("report.common.decimal"),
|
|
454
454
|
"model-value": ((pe = t.value) == null ? void 0 : pe.decimal) ?? 2,
|
|
455
455
|
"onUpdate:modelValue": y[3] || (y[3] = (Z) => {
|
|
456
|
-
|
|
456
|
+
z(Z);
|
|
457
457
|
})
|
|
458
458
|
}, null, 8, ["label", "model-value"])) : N("", !0),
|
|
459
459
|
(be = f.value) != null && be.isNumericType ? (v(), O(fe, {
|
|
@@ -470,7 +470,7 @@ const Ie = [
|
|
|
470
470
|
}))
|
|
471
471
|
]
|
|
472
472
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : N("", !0),
|
|
473
|
-
w.value ? (v(), O(
|
|
473
|
+
w.value ? (v(), O(j, {
|
|
474
474
|
key: 3,
|
|
475
475
|
"model-value": t.value.fillGap ?? !1,
|
|
476
476
|
label: l(c)("report.section.dimension.fillGap"),
|
|
@@ -480,7 +480,7 @@ const Ie = [
|
|
|
480
480
|
t.value && (t.value.fillGap = a(Z));
|
|
481
481
|
})
|
|
482
482
|
}, null, 8, ["model-value", "label"])) : N("", !0),
|
|
483
|
-
((Le = f.value) == null ? void 0 : Le.type) === l(Xl).Timestamp ? (v(), O(
|
|
483
|
+
((Le = f.value) == null ? void 0 : Le.type) === l(Xl).Timestamp ? (v(), O(j, {
|
|
484
484
|
key: 4,
|
|
485
485
|
"model-value": t.value.dateComparison ?? !1,
|
|
486
486
|
label: l(c)("report.section.dimension.dateComparison"),
|
|
@@ -489,13 +489,13 @@ const Ie = [
|
|
|
489
489
|
t.value && (t.value.dateComparison = a(Z));
|
|
490
490
|
})
|
|
491
491
|
}, null, 8, ["model-value", "label"])) : N("", !0),
|
|
492
|
-
d(
|
|
492
|
+
d(j, {
|
|
493
493
|
modelValue: t.value.hide,
|
|
494
494
|
"onUpdate:modelValue": y[7] || (y[7] = (Z) => t.value.hide = Z),
|
|
495
495
|
label: l(c)("report.section.dimension.hide"),
|
|
496
496
|
value: ""
|
|
497
497
|
}, null, 8, ["modelValue", "label"]),
|
|
498
|
-
o.hasRowColumn ? (v(), O(
|
|
498
|
+
o.hasRowColumn ? (v(), O(j, {
|
|
499
499
|
key: 5,
|
|
500
500
|
"model-value": t.value.moveToColumn ?? !1,
|
|
501
501
|
label: l(c)("report.section.dimension.moveToColumn"),
|
|
@@ -504,7 +504,7 @@ const Ie = [
|
|
|
504
504
|
t.value && (t.value.moveToColumn = a(Z));
|
|
505
505
|
})
|
|
506
506
|
}, null, 8, ["model-value", "label"])) : N("", !0),
|
|
507
|
-
d(
|
|
507
|
+
d(j, {
|
|
508
508
|
modelValue: s.value,
|
|
509
509
|
"onUpdate:modelValue": y[9] || (y[9] = (Z) => s.value = Z),
|
|
510
510
|
label: l(c)("report.section.dimension.advance"),
|
|
@@ -597,7 +597,7 @@ function so(L, c, e) {
|
|
|
597
597
|
}
|
|
598
598
|
function ro(L) {
|
|
599
599
|
var i;
|
|
600
|
-
const { rowIds: c, columnIds: e } =
|
|
600
|
+
const { rowIds: c, columnIds: e } = ze(L.widget.config);
|
|
601
601
|
return {
|
|
602
602
|
...L,
|
|
603
603
|
widget: {
|
|
@@ -612,7 +612,7 @@ function ro(L) {
|
|
|
612
612
|
L.widget.config.isDrillable
|
|
613
613
|
),
|
|
614
614
|
joinDatasources: (i = L.widget.config.joinDatasources) == null ? void 0 : i.map((o) => {
|
|
615
|
-
const { rowIds: h, columnIds: x } =
|
|
615
|
+
const { rowIds: h, columnIds: x } = ze(o);
|
|
616
616
|
return {
|
|
617
617
|
...o,
|
|
618
618
|
rowIds: h,
|
|
@@ -623,7 +623,7 @@ function ro(L) {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function ze(L) {
|
|
627
627
|
const c = L.dimensions.filter((x) => x.hide !== !0 && !x.moveToColumn).map((x) => Te(x)), e = L.dimensions.filter((x) => x.hide !== !0 && x.moveToColumn == !0).map((x) => Te(x)), i = L.metrics.length > 0;
|
|
628
628
|
i && L.metrics.find((x) => x.moveToRow == !0) ? c.push(qe.value) : i && e.push(qe.value);
|
|
629
629
|
const o = [], h = [];
|
|
@@ -688,8 +688,8 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
688
688
|
})
|
|
689
689
|
) : void 0, T.value = a == null ? void 0 : a.index, f.value = !!((r = s.value) != null && r.dataFormula || (n = s.value) != null && n.displayFormula), s.value && s.value.formatter === void 0 && (h.options.find(
|
|
690
690
|
(u) => {
|
|
691
|
-
var V,
|
|
692
|
-
return u.schemaName === ((V = s.value) == null ? void 0 : V.schemaName) && u.name === ((
|
|
691
|
+
var V, j;
|
|
692
|
+
return u.schemaName === ((V = s.value) == null ? void 0 : V.schemaName) && u.name === ((j = s.value) == null ? void 0 : j.name);
|
|
693
693
|
}
|
|
694
694
|
), a != null && a.value.timeFormatter && s.value.formatter === void 0 && (s.value.formatter = a == null ? void 0 : a.value.timeFormatter, s.value.timeFormatter = void 0)), ((y = h.config.rowIds) == null ? void 0 : y.findIndex((u) => u === qe.value)) !== -1 && s.value && (s.value.moveToRow = !0), s.value && (!h.hasXy || s.value.nullable === void 0) && (s.value.nullable = !1);
|
|
695
695
|
}
|
|
@@ -727,7 +727,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
727
727
|
hide: !1
|
|
728
728
|
}, f.value = !1);
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function z() {
|
|
731
731
|
const a = [...k.value.map((r) => r.value)];
|
|
732
732
|
s.value && (f.value || (s.value.dataFormula = void 0, s.value.displayFormula = void 0), h.hasXy || (s.value.nullable = !1), T.value !== void 0 ? a[T.value] = s.value : a.push(s.value)), o.value = a, p.value = !1;
|
|
733
733
|
}
|
|
@@ -742,16 +742,16 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
742
742
|
}))
|
|
743
743
|
);
|
|
744
744
|
return (a, r) => {
|
|
745
|
-
const n = D("FmTextField"), y = D("FmStepperField"), u = D("FmCheckbox"), V = D("FmTextarea"),
|
|
745
|
+
const n = D("FmTextField"), y = D("FmStepperField"), u = D("FmCheckbox"), V = D("FmTextarea"), j = D("FmForm"), B = D("FmIcon"), oe = D("FmButton"), Q = D("FmListItem"), re = D("FmList"), ne = D("FmField");
|
|
746
746
|
return v(), P("div", uo, [
|
|
747
747
|
d(De, {
|
|
748
748
|
modelValue: p.value,
|
|
749
749
|
"onUpdate:modelValue": r[11] || (r[11] = (I) => p.value = I),
|
|
750
750
|
title: x.value,
|
|
751
|
-
onConfirm:
|
|
751
|
+
onConfirm: z
|
|
752
752
|
}, {
|
|
753
753
|
content: Y(() => [
|
|
754
|
-
d(
|
|
754
|
+
d(j, {
|
|
755
755
|
ref: "form",
|
|
756
756
|
class: "flex flex-col gap-2 w-[490px]"
|
|
757
757
|
}, {
|
|
@@ -967,14 +967,14 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
967
967
|
const m = `report.section.filter.${$e($)}`;
|
|
968
968
|
return e(m) ? c(m) : me(c, e, $, "field");
|
|
969
969
|
}
|
|
970
|
-
const
|
|
970
|
+
const z = S(
|
|
971
971
|
() => o.options.map(($) => ({
|
|
972
972
|
label: $.labels.join(" "),
|
|
973
973
|
value: $
|
|
974
974
|
}))
|
|
975
975
|
);
|
|
976
976
|
return ($, m) => {
|
|
977
|
-
const a = D("FmCheckbox"), r = D("FmTextarea"), n = D("FmForm"), y = D("FmIcon"), u = D("FmButton"), V = D("FmListItem"),
|
|
977
|
+
const a = D("FmCheckbox"), r = D("FmTextarea"), n = D("FmForm"), y = D("FmIcon"), u = D("FmButton"), V = D("FmListItem"), j = D("FmList"), B = D("FmField");
|
|
978
978
|
return v(), P("div", fo, [
|
|
979
979
|
d(De, {
|
|
980
980
|
modelValue: x.value,
|
|
@@ -992,7 +992,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
992
992
|
return [
|
|
993
993
|
d(fe, {
|
|
994
994
|
"model-value": f.value,
|
|
995
|
-
items:
|
|
995
|
+
items: z.value,
|
|
996
996
|
placeholder: h.value,
|
|
997
997
|
label: h.value,
|
|
998
998
|
"onUpdate:modelValue": m[0] || (m[0] = (I) => w(I))
|
|
@@ -1054,7 +1054,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1054
1054
|
b("p", go, J(h.value), 1),
|
|
1055
1055
|
b("p", yo, J(l(c)("report.section.sort.description")), 1)
|
|
1056
1056
|
]),
|
|
1057
|
-
d(
|
|
1057
|
+
d(j, null, {
|
|
1058
1058
|
default: Y(() => [
|
|
1059
1059
|
d(l(Re), {
|
|
1060
1060
|
list: i.value,
|
|
@@ -1107,7 +1107,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1107
1107
|
},
|
|
1108
1108
|
emits: ["update:modelValue"],
|
|
1109
1109
|
setup(L) {
|
|
1110
|
-
const { t: c } = ce(), e = ge(L, "modelValue"), i =
|
|
1110
|
+
const { t: c } = ce(), e = ge(L, "modelValue"), i = je((o) => {
|
|
1111
1111
|
o !== "" ? e.value = o : e.value = null;
|
|
1112
1112
|
}, 1e3);
|
|
1113
1113
|
return (o, h) => {
|
|
@@ -1152,8 +1152,8 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1152
1152
|
var y, u;
|
|
1153
1153
|
const r = o.joinFieldOptions.find(
|
|
1154
1154
|
(V) => {
|
|
1155
|
-
var
|
|
1156
|
-
return V.schemaName === ((
|
|
1155
|
+
var j, B;
|
|
1156
|
+
return V.schemaName === ((j = m.joinDimension) == null ? void 0 : j.schemaName) && V.name === ((B = m.joinDimension) == null ? void 0 : B.name);
|
|
1157
1157
|
}
|
|
1158
1158
|
), n = (r == null ? void 0 : r.labels) || [
|
|
1159
1159
|
(y = m.joinDimension) == null ? void 0 : y.schemaName,
|
|
@@ -1240,7 +1240,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function z() {
|
|
1244
1244
|
const m = [...p.value.map((a) => a.value)];
|
|
1245
1245
|
t.value && (t.value.mainDimensions = t.value.mainDimensions.filter(
|
|
1246
1246
|
(a) => a !== "" && a != null
|
|
@@ -1251,13 +1251,13 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1251
1251
|
a.splice(m, 1), i.value = a;
|
|
1252
1252
|
}
|
|
1253
1253
|
return (m, a) => {
|
|
1254
|
-
const r = D("FmMenuDivider"), n = D("FmForm"), y = D("FmIcon"), u = D("FmButton"), V = D("FmListItem"),
|
|
1254
|
+
const r = D("FmMenuDivider"), n = D("FmForm"), y = D("FmIcon"), u = D("FmButton"), V = D("FmListItem"), j = D("FmList"), B = D("FmField");
|
|
1255
1255
|
return v(), P("div", Vo, [
|
|
1256
1256
|
d(De, {
|
|
1257
1257
|
modelValue: x.value,
|
|
1258
1258
|
"onUpdate:modelValue": a[2] || (a[2] = (oe) => x.value = oe),
|
|
1259
1259
|
title: h.value,
|
|
1260
|
-
onConfirm:
|
|
1260
|
+
onConfirm: z
|
|
1261
1261
|
}, {
|
|
1262
1262
|
content: Y(() => [
|
|
1263
1263
|
d(n, {
|
|
@@ -1333,7 +1333,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1333
1333
|
b("p", Fo, J(h.value), 1),
|
|
1334
1334
|
b("p", ko, J(l(c)("report.section.condition.description")), 1)
|
|
1335
1335
|
]),
|
|
1336
|
-
d(
|
|
1336
|
+
d(j, { class: "flex flex-col gap-2" }, {
|
|
1337
1337
|
default: Y(() => [
|
|
1338
1338
|
d(l(Re), {
|
|
1339
1339
|
list: i.value,
|
|
@@ -1414,7 +1414,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1414
1414
|
he(
|
|
1415
1415
|
[() => o.value.dimensions, () => o.value.metrics],
|
|
1416
1416
|
() => {
|
|
1417
|
-
const { rowIds: r, columnIds: n } =
|
|
1417
|
+
const { rowIds: r, columnIds: n } = ze(o.value);
|
|
1418
1418
|
o.value.rowIds = r, o.value.columnIds = n;
|
|
1419
1419
|
},
|
|
1420
1420
|
{ deep: !0 }
|
|
@@ -1464,7 +1464,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1464
1464
|
}))
|
|
1465
1465
|
]), r;
|
|
1466
1466
|
}, [])
|
|
1467
|
-
),
|
|
1467
|
+
), z = S(() => [
|
|
1468
1468
|
{ label: k("report.section.datasource.none"), value: null },
|
|
1469
1469
|
{ label: k("report.section.datasource.grandTotal"), value: 0 },
|
|
1470
1470
|
...[...w.value].slice(0, w.value.length - 1).map((r, n) => ({
|
|
@@ -1493,7 +1493,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1493
1493
|
}))
|
|
1494
1494
|
]);
|
|
1495
1495
|
return (r, n) => {
|
|
1496
|
-
const y = D("FmButton"), u = D("FmSwitch"), V = D("FmSelect"),
|
|
1496
|
+
const y = D("FmButton"), u = D("FmSwitch"), V = D("FmSelect"), j = D("FmTextField");
|
|
1497
1497
|
return v(), O(We, null, {
|
|
1498
1498
|
header: Y(() => [
|
|
1499
1499
|
b("p", null, J(h.label), 1),
|
|
@@ -1561,7 +1561,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1561
1561
|
modelValue: o.value.rollup,
|
|
1562
1562
|
"onUpdate:modelValue": n[8] || (n[8] = (B) => o.value.rollup = B),
|
|
1563
1563
|
label: l(k)("report.section.datasource.subTotal"),
|
|
1564
|
-
items:
|
|
1564
|
+
items: z.value
|
|
1565
1565
|
}, null, 8, ["modelValue", "label", "items"])) : N("", !0),
|
|
1566
1566
|
h.config.showRollupPosition && s.value ? (v(), O(V, {
|
|
1567
1567
|
key: `rollup-position-${l(t)}`,
|
|
@@ -1570,7 +1570,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1570
1570
|
label: l(k)("report.section.datasource.position.showPosition"),
|
|
1571
1571
|
items: $.value
|
|
1572
1572
|
}, null, 8, ["modelValue", "label", "items"])) : N("", !0),
|
|
1573
|
-
h.config.type === l(G).Table && s.value ? (v(), O(
|
|
1573
|
+
h.config.type === l(G).Table && s.value ? (v(), O(j, {
|
|
1574
1574
|
key: 5,
|
|
1575
1575
|
modelValue: o.value.grandTotalLabel,
|
|
1576
1576
|
"onUpdate:modelValue": n[10] || (n[10] = (B) => o.value.grandTotalLabel = B),
|
|
@@ -1623,7 +1623,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1623
1623
|
o.value = B;
|
|
1624
1624
|
})
|
|
1625
1625
|
}, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-xy"]),
|
|
1626
|
-
d(
|
|
1626
|
+
d(jl, {
|
|
1627
1627
|
modelValue: o.value.filters,
|
|
1628
1628
|
"onUpdate:modelValue": n[17] || (n[17] = (B) => o.value.filters = B),
|
|
1629
1629
|
options: C.value
|
|
@@ -1730,7 +1730,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1730
1730
|
]);
|
|
1731
1731
|
};
|
|
1732
1732
|
}
|
|
1733
|
-
}), Bo = { class: "flex gap-16" }, Lo = { class: "flex flex-col gap-8 max-w-[120px]" }, Ao = { class: "fm-typo-en-body-lg-600" }, Mo = { class: "flex flex-col gap-16" }, No = { class: "fm-typo-en-body-lg-600" }, Oo = { class: "flex flex-row gap-8" },
|
|
1733
|
+
}), Bo = { class: "flex gap-16" }, Lo = { class: "flex flex-col gap-8 max-w-[120px]" }, Ao = { class: "fm-typo-en-body-lg-600" }, Mo = { class: "flex flex-col gap-16" }, No = { class: "fm-typo-en-body-lg-600" }, Oo = { class: "flex flex-row gap-8" }, jo = /* @__PURE__ */ se({
|
|
1734
1734
|
__name: "TitleSection",
|
|
1735
1735
|
props: {
|
|
1736
1736
|
model: {}
|
|
@@ -1809,7 +1809,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1809
1809
|
], 64);
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
|
-
}),
|
|
1812
|
+
}), zo = { class: "flex flex-col gap-8" }, Ro = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Io = { class: "flex flex-row gap-2" }, Po = {
|
|
1813
1813
|
key: 0,
|
|
1814
1814
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
1815
1815
|
}, Xo = /* @__PURE__ */ se({
|
|
@@ -1836,12 +1836,12 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1836
1836
|
if (w) {
|
|
1837
1837
|
w.classList.remove("table-fixed"), w.classList.add("table-auto"), w.style.width = "";
|
|
1838
1838
|
const A = w.querySelectorAll("th"), g = w.querySelectorAll("td"), C = w.querySelectorAll("tr");
|
|
1839
|
-
A.forEach((
|
|
1840
|
-
|
|
1841
|
-
}), g.forEach((
|
|
1842
|
-
|
|
1843
|
-
}), C.forEach((
|
|
1844
|
-
|
|
1839
|
+
A.forEach((z) => {
|
|
1840
|
+
z.style.width = "";
|
|
1841
|
+
}), g.forEach((z) => {
|
|
1842
|
+
z.style.width = "";
|
|
1843
|
+
}), C.forEach((z) => {
|
|
1844
|
+
z.style.height = "";
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
@@ -1850,7 +1850,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1850
1850
|
((w = i.layout) == null ? void 0 : w.rowHeight) !== void 0 && (p.value = i.layout.rowHeight), (A = i.layout) != null && A.colWidths && (x.value = [...i.layout.colWidths]);
|
|
1851
1851
|
}), (w, A) => {
|
|
1852
1852
|
const g = D("FmButton");
|
|
1853
|
-
return v(), P("div",
|
|
1853
|
+
return v(), P("div", zo, [
|
|
1854
1854
|
b("p", Ro, J(l(e)("report.section.datasource.tableLayout")), 1),
|
|
1855
1855
|
b("div", Io, [
|
|
1856
1856
|
l(h) ? N("", !0) : (v(), O(g, {
|
|
@@ -1900,7 +1900,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1900
1900
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
|
|
1901
1901
|
setup(L, { emit: c }) {
|
|
1902
1902
|
var n, y;
|
|
1903
|
-
const e =
|
|
1903
|
+
const e = gl(), { dateRange: i, timezone: o } = Se(e), h = {
|
|
1904
1904
|
startDate: i.value.startDate,
|
|
1905
1905
|
endDate: i.value.endDate
|
|
1906
1906
|
}, x = ee({
|
|
@@ -1943,45 +1943,45 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1943
1943
|
title: f("report.tile.datasource.remove"),
|
|
1944
1944
|
message: f("report.tile.datasource.confirmRemove", { index: u + 1 })
|
|
1945
1945
|
})) return;
|
|
1946
|
-
const
|
|
1947
|
-
|
|
1946
|
+
const j = [...p.value.widget.config.joinDatasources || []];
|
|
1947
|
+
j.splice(u, 1), A({
|
|
1948
1948
|
...p.value,
|
|
1949
1949
|
widget: {
|
|
1950
1950
|
...p.value.widget,
|
|
1951
1951
|
config: {
|
|
1952
1952
|
...p.value.widget.config,
|
|
1953
|
-
joinDatasources:
|
|
1953
|
+
joinDatasources: j
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
let
|
|
1958
|
+
const z = (u, V) => {
|
|
1959
|
+
let j = 1, B = 1;
|
|
1960
1960
|
switch (u) {
|
|
1961
1961
|
case G.Scorecard:
|
|
1962
|
-
|
|
1962
|
+
j = 1, B = 2;
|
|
1963
1963
|
break;
|
|
1964
1964
|
case G.BarChart:
|
|
1965
1965
|
case G.StackBarChart:
|
|
1966
1966
|
case G.ClusteredStackBarChart:
|
|
1967
1967
|
case G.LineChart:
|
|
1968
1968
|
case G.StackLineChart:
|
|
1969
|
-
|
|
1969
|
+
j = 4, B = 6;
|
|
1970
1970
|
break;
|
|
1971
1971
|
case G.Table:
|
|
1972
|
-
|
|
1972
|
+
j = 4, B = 12;
|
|
1973
1973
|
break;
|
|
1974
1974
|
case G.Circular:
|
|
1975
|
-
|
|
1975
|
+
j = 4, B = 4;
|
|
1976
1976
|
break;
|
|
1977
1977
|
case G.Spacer:
|
|
1978
|
-
|
|
1978
|
+
j = 0, B = 12;
|
|
1979
1979
|
break;
|
|
1980
1980
|
}
|
|
1981
1981
|
return {
|
|
1982
1982
|
id: V.id,
|
|
1983
1983
|
size: {
|
|
1984
|
-
height:
|
|
1984
|
+
height: j,
|
|
1985
1985
|
width: B
|
|
1986
1986
|
},
|
|
1987
1987
|
widget: {
|
|
@@ -1991,7 +1991,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
1991
1991
|
};
|
|
1992
1992
|
}, $ = S(
|
|
1993
1993
|
() => Ie.find((u) => u.type === p.value.widget.type)
|
|
1994
|
-
), m = S(() => p.value.widget.config.joinDatasources), a =
|
|
1994
|
+
), m = S(() => p.value.widget.config.joinDatasources), a = je((u) => {
|
|
1995
1995
|
p.value.widget.title = u;
|
|
1996
1996
|
}, 500), r = S({
|
|
1997
1997
|
get: () => ({
|
|
@@ -2013,7 +2013,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2013
2013
|
u < 1 && (p.value.size.width = 1), u > 12 && (p.value.size.width = 12);
|
|
2014
2014
|
}
|
|
2015
2015
|
), (u, V) => {
|
|
2016
|
-
const
|
|
2016
|
+
const j = D("FmCircularProgress"), B = D("FmSimpleDateRangePicker"), oe = D("FmTextField"), Q = D("FmTextarea"), re = D("FmStepperField"), ne = D("FmButton"), I = D("FmForm");
|
|
2017
2017
|
return v(), O(dl(l(k).lg || l(k).md ? $o : Do), {
|
|
2018
2018
|
"model-value": T.hideConfiguration,
|
|
2019
2019
|
"onUpdate:modelValue": V[9] || (V[9] = (M) => s("hideConfiguration", M))
|
|
@@ -2057,7 +2057,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2057
2057
|
]),
|
|
2058
2058
|
_: 1
|
|
2059
2059
|
}, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
|
|
2060
|
-
d(
|
|
2060
|
+
d(jo, {
|
|
2061
2061
|
model: p.value.widget.config,
|
|
2062
2062
|
"onUpdate:model": V[2] || (V[2] = (M) => p.value.widget.config = M)
|
|
2063
2063
|
}, null, 8, ["model"]),
|
|
@@ -2094,13 +2094,13 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2094
2094
|
V[11] || (V[11] = b("div", { class: "grow" }, null, -1))
|
|
2095
2095
|
]),
|
|
2096
2096
|
content: Y(() => [
|
|
2097
|
-
d(
|
|
2097
|
+
d(zl, {
|
|
2098
2098
|
"is-list": !0,
|
|
2099
2099
|
"model-value": p.value.widget.type,
|
|
2100
2100
|
class: "grid grid-cols-1 gap-2",
|
|
2101
2101
|
"child-class": "flex flex-row p-[8px] gap-2",
|
|
2102
2102
|
"exclude-widge-type": [l(G).Spacer],
|
|
2103
|
-
"onUpdate:modelValue": V[6] || (V[6] = (M) => p.value =
|
|
2103
|
+
"onUpdate:modelValue": V[6] || (V[6] = (M) => p.value = z(M, p.value))
|
|
2104
2104
|
}, null, 8, ["model-value", "exclude-widge-type"])
|
|
2105
2105
|
]),
|
|
2106
2106
|
_: 1
|
|
@@ -2136,7 +2136,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2136
2136
|
])
|
|
2137
2137
|
]),
|
|
2138
2138
|
_: 1
|
|
2139
|
-
}, 512)) : (v(), O(
|
|
2139
|
+
}, 512)) : (v(), O(j, { key: 0 }))
|
|
2140
2140
|
]),
|
|
2141
2141
|
_: 1
|
|
2142
2142
|
}, 8, ["model-value"]);
|
|
@@ -2187,7 +2187,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2187
2187
|
{ icon: "format_align_right", value: Ne.end, tooltip: "anchorEnd" }
|
|
2188
2188
|
];
|
|
2189
2189
|
return (w, A) => {
|
|
2190
|
-
const g = D("FmCheckbox"), C = D("FmButton"),
|
|
2190
|
+
const g = D("FmCheckbox"), C = D("FmButton"), z = D("FmTooltip"), $ = D("FmTextField"), m = D("FmStepperField");
|
|
2191
2191
|
return v(), P("div", Go, [
|
|
2192
2192
|
d(g, {
|
|
2193
2193
|
modelValue: h.value,
|
|
@@ -2200,7 +2200,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2200
2200
|
we(b("div", Jo, [
|
|
2201
2201
|
b("p", Ko, J(l(o)("report.section.datasource.alignment.textAlignment")), 1),
|
|
2202
2202
|
b("div", Qo, [
|
|
2203
|
-
(v(), P(de, null, xe(s, ({ icon: a, value: r, tooltip: n }) => d(
|
|
2203
|
+
(v(), P(de, null, xe(s, ({ icon: a, value: r, tooltip: n }) => d(z, {
|
|
2204
2204
|
key: r,
|
|
2205
2205
|
variant: "plain",
|
|
2206
2206
|
placement: "top",
|
|
@@ -2222,7 +2222,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2222
2222
|
]),
|
|
2223
2223
|
b("p", Zo, J(l(o)("report.section.datasource.alignment.anchor")), 1),
|
|
2224
2224
|
b("div", et, [
|
|
2225
|
-
(v(), P(de, null, xe(f, ({ icon: a, value: r, tooltip: n }) => d(
|
|
2225
|
+
(v(), P(de, null, xe(f, ({ icon: a, value: r, tooltip: n }) => d(z, {
|
|
2226
2226
|
key: r,
|
|
2227
2227
|
variant: "plain",
|
|
2228
2228
|
placement: "top",
|
|
@@ -2317,18 +2317,18 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2317
2317
|
set: (g) => {
|
|
2318
2318
|
i("update:model", { ...e.model, showYTitle: g });
|
|
2319
2319
|
}
|
|
2320
|
-
}), w =
|
|
2320
|
+
}), w = je((g) => {
|
|
2321
2321
|
i("update:model", { ...e.model, xTitle: g });
|
|
2322
|
-
}, 500), A =
|
|
2322
|
+
}, 500), A = je((g) => {
|
|
2323
2323
|
i("update:model", { ...e.model, yTitle: g });
|
|
2324
2324
|
}, 500);
|
|
2325
2325
|
return Ye(() => {
|
|
2326
|
-
var g, C,
|
|
2327
|
-
!e.model.xTitle && ((C = (g = e.model.metrics) == null ? void 0 : g[0]) != null && C.label) && w(e.model.metrics[0].label), !e.model.yTitle && (($ = (
|
|
2326
|
+
var g, C, z, $;
|
|
2327
|
+
!e.model.xTitle && ((C = (g = e.model.metrics) == null ? void 0 : g[0]) != null && C.label) && w(e.model.metrics[0].label), !e.model.yTitle && (($ = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && $.label) && A(e.model.dimensions[0].label);
|
|
2328
2328
|
}), (g, C) => {
|
|
2329
|
-
const
|
|
2329
|
+
const z = D("FmCheckbox"), $ = D("FmStepperField"), m = D("FmTextField");
|
|
2330
2330
|
return v(), P("div", ot, [
|
|
2331
|
-
d(
|
|
2331
|
+
d(z, {
|
|
2332
2332
|
modelValue: h.value,
|
|
2333
2333
|
"onUpdate:modelValue": C[0] || (C[0] = (a) => h.value = a),
|
|
2334
2334
|
label: l(o)("report.section.datasource.axis.showX"),
|
|
@@ -2336,14 +2336,14 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2336
2336
|
value: !0
|
|
2337
2337
|
}, null, 8, ["modelValue", "label"]),
|
|
2338
2338
|
we(b("div", tt, [
|
|
2339
|
-
d(
|
|
2339
|
+
d(z, {
|
|
2340
2340
|
modelValue: x.value,
|
|
2341
2341
|
"onUpdate:modelValue": C[1] || (C[1] = (a) => x.value = a),
|
|
2342
2342
|
label: l(o)("report.section.datasource.axis.showGrid"),
|
|
2343
2343
|
"label-placement": "right",
|
|
2344
2344
|
value: !1
|
|
2345
2345
|
}, null, 8, ["modelValue", "label"]),
|
|
2346
|
-
d(
|
|
2346
|
+
d(z, {
|
|
2347
2347
|
modelValue: p.value,
|
|
2348
2348
|
"onUpdate:modelValue": C[2] || (C[2] = (a) => p.value = a),
|
|
2349
2349
|
label: l(o)("report.section.datasource.axis.showTick"),
|
|
@@ -2363,7 +2363,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2363
2363
|
], 512), [
|
|
2364
2364
|
[Ce, g.model.showXTick ?? !0]
|
|
2365
2365
|
]),
|
|
2366
|
-
d(
|
|
2366
|
+
d(z, {
|
|
2367
2367
|
modelValue: s.value,
|
|
2368
2368
|
"onUpdate:modelValue": C[4] || (C[4] = (a) => s.value = a),
|
|
2369
2369
|
label: l(o)("report.section.datasource.axis.showTitle"),
|
|
@@ -2392,7 +2392,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2392
2392
|
], 512), [
|
|
2393
2393
|
[Ce, g.model.showX ?? !0]
|
|
2394
2394
|
]),
|
|
2395
|
-
d(
|
|
2395
|
+
d(z, {
|
|
2396
2396
|
modelValue: k.value,
|
|
2397
2397
|
"onUpdate:modelValue": C[6] || (C[6] = (a) => k.value = a),
|
|
2398
2398
|
label: l(o)("report.section.datasource.axis.showY"),
|
|
@@ -2400,14 +2400,14 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2400
2400
|
value: !0
|
|
2401
2401
|
}, null, 8, ["modelValue", "label"]),
|
|
2402
2402
|
we(b("div", it, [
|
|
2403
|
-
d(
|
|
2403
|
+
d(z, {
|
|
2404
2404
|
modelValue: T.value,
|
|
2405
2405
|
"onUpdate:modelValue": C[7] || (C[7] = (a) => T.value = a),
|
|
2406
2406
|
label: l(o)("report.section.datasource.axis.showGrid"),
|
|
2407
2407
|
"label-placement": "right",
|
|
2408
2408
|
value: !1
|
|
2409
2409
|
}, null, 8, ["modelValue", "label"]),
|
|
2410
|
-
d(
|
|
2410
|
+
d(z, {
|
|
2411
2411
|
modelValue: t.value,
|
|
2412
2412
|
"onUpdate:modelValue": C[8] || (C[8] = (a) => t.value = a),
|
|
2413
2413
|
label: l(o)("report.section.datasource.axis.showTick"),
|
|
@@ -2427,7 +2427,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2427
2427
|
], 512), [
|
|
2428
2428
|
[Ce, g.model.showYTick ?? !0]
|
|
2429
2429
|
]),
|
|
2430
|
-
d(
|
|
2430
|
+
d(z, {
|
|
2431
2431
|
modelValue: f.value,
|
|
2432
2432
|
"onUpdate:modelValue": C[10] || (C[10] = (a) => f.value = a),
|
|
2433
2433
|
label: l(o)("report.section.datasource.axis.showTitle"),
|
|
@@ -2506,7 +2506,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2506
2506
|
(A = s.value) == null || A.click();
|
|
2507
2507
|
}
|
|
2508
2508
|
return (A, g) => {
|
|
2509
|
-
const C = D("FmCheckbox"),
|
|
2509
|
+
const C = D("FmCheckbox"), z = D("FmSelect"), $ = D("FmStepperField"), m = D("FmButton");
|
|
2510
2510
|
return v(), P("div", dt, [
|
|
2511
2511
|
d(C, {
|
|
2512
2512
|
modelValue: x.value,
|
|
@@ -2522,7 +2522,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2522
2522
|
label: l(o)("report.section.datasource.legend.usePointStyle"),
|
|
2523
2523
|
value: !1
|
|
2524
2524
|
}, null, 8, ["modelValue", "label"]),
|
|
2525
|
-
d(
|
|
2525
|
+
d(z, {
|
|
2526
2526
|
label: l(o)("report.section.datasource.position.showPosition"),
|
|
2527
2527
|
items: h,
|
|
2528
2528
|
"model-value": A.model.legendPosition ?? "top",
|
|
@@ -2713,7 +2713,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2713
2713
|
(_, U) => `${o("report.section.datasource.styleTarget.breakdown")} ${U + 1}`
|
|
2714
2714
|
);
|
|
2715
2715
|
});
|
|
2716
|
-
function
|
|
2716
|
+
function z(F, _) {
|
|
2717
2717
|
const U = n(F) ?? "#000000", R = (E) => {
|
|
2718
2718
|
const W = Number.parseInt(U.slice(E, E + 2), 16);
|
|
2719
2719
|
return Math.round(W + (255 - W) * _).toString(16).padStart(2, "0").toUpperCase();
|
|
@@ -2731,7 +2731,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2731
2731
|
return F.length === 0 || E <= 0 ? [] : F.flatMap((W, X) => {
|
|
2732
2732
|
const ae = ie[X % ie.length], K = U == null ? void 0 : U[m(X, 0, E)], ue = n(K) ?? ae;
|
|
2733
2733
|
return _.map((Ae, _e) => {
|
|
2734
|
-
const Pe = m(X, _e, E), Ze = _e === 0 ? ue :
|
|
2734
|
+
const Pe = m(X, _e, E), Ze = _e === 0 ? ue : z(ue, $(_e));
|
|
2735
2735
|
return R && _e > 0 ? Ze : n(U == null ? void 0 : U[Pe]) ?? Ze;
|
|
2736
2736
|
});
|
|
2737
2737
|
});
|
|
@@ -2776,7 +2776,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2776
2776
|
}
|
|
2777
2777
|
const V = S(
|
|
2778
2778
|
() => x(e.model.chartColorBinding)
|
|
2779
|
-
),
|
|
2779
|
+
), j = S(
|
|
2780
2780
|
() => s(e.model.chartColors, e.model.chartColorLayers)
|
|
2781
2781
|
), B = S(() => te.value === le.series ? t(w.value) : T(te.value)), oe = S(
|
|
2782
2782
|
() => Array.from({ length: B.value.length }).map((F, _) => ({
|
|
@@ -2787,12 +2787,12 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2787
2787
|
S(
|
|
2788
2788
|
() => y(
|
|
2789
2789
|
e.model.chartColors,
|
|
2790
|
-
V.value === le.series ?
|
|
2790
|
+
V.value === le.series ? j.value : T(V.value).length
|
|
2791
2791
|
)
|
|
2792
2792
|
), S(
|
|
2793
2793
|
() => u(
|
|
2794
2794
|
e.model.chartColorLayers,
|
|
2795
|
-
V.value === le.series ?
|
|
2795
|
+
V.value === le.series ? j.value : T(V.value).length
|
|
2796
2796
|
)
|
|
2797
2797
|
);
|
|
2798
2798
|
const re = S(
|
|
@@ -2966,7 +2966,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2966
2966
|
if (ae[X] = E, q.value && _ === 0)
|
|
2967
2967
|
for (let K = 1; K < W; K++) {
|
|
2968
2968
|
const ue = m(F, K, W);
|
|
2969
|
-
ae[ue] =
|
|
2969
|
+
ae[ue] = z(E, $(K));
|
|
2970
2970
|
}
|
|
2971
2971
|
M.value = ae;
|
|
2972
2972
|
}
|
|
@@ -2988,7 +2988,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
2988
2988
|
if (ae[X] = E, q.value && _ === 0)
|
|
2989
2989
|
for (let K = 1; K < W; K++) {
|
|
2990
2990
|
const ue = m(F, K, W);
|
|
2991
|
-
ae[ue] =
|
|
2991
|
+
ae[ue] = z(E, $(K));
|
|
2992
2992
|
}
|
|
2993
2993
|
M.value = ae, be.value = !1, Z();
|
|
2994
2994
|
}
|
|
@@ -3179,7 +3179,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3179
3179
|
]);
|
|
3180
3180
|
};
|
|
3181
3181
|
}
|
|
3182
|
-
}),
|
|
3182
|
+
}), jt = { class: "flex flex-col gap-8" }, zt = { class: "flex items-center justify-between" }, Rt = { class: "fm-typo-en-body-lg-600" }, It = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Pt = { class: "grid grid-cols-2 gap-8" }, Xt = { class: "flex items-center gap-8" }, Et = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wt = /* @__PURE__ */ se({
|
|
3183
3183
|
__name: "ChartLineStyleSection",
|
|
3184
3184
|
props: {
|
|
3185
3185
|
model: {}
|
|
@@ -3208,7 +3208,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3208
3208
|
if (!e.model.isBlend)
|
|
3209
3209
|
return u;
|
|
3210
3210
|
const V = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
3211
|
-
(
|
|
3211
|
+
(j) => Array.isArray(j == null ? void 0 : j.metrics) ? j.metrics : []
|
|
3212
3212
|
) : [];
|
|
3213
3213
|
return [...u, ...V];
|
|
3214
3214
|
}
|
|
@@ -3216,10 +3216,10 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3216
3216
|
if (u === le.metric) {
|
|
3217
3217
|
const V = k();
|
|
3218
3218
|
if (V.length > 0)
|
|
3219
|
-
return V.map((
|
|
3219
|
+
return V.map((j, B) => p(j, B));
|
|
3220
3220
|
}
|
|
3221
3221
|
return ie.map(
|
|
3222
|
-
(V,
|
|
3222
|
+
(V, j) => `${o("report.section.datasource.lineStyle.series")} ${j + 1}`
|
|
3223
3223
|
);
|
|
3224
3224
|
}
|
|
3225
3225
|
const t = S(() => [
|
|
@@ -3244,16 +3244,16 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3244
3244
|
}
|
|
3245
3245
|
function w(u, V) {
|
|
3246
3246
|
return !Array.isArray(u) || u.length === 0 ? Array.from({ length: V }).map(
|
|
3247
|
-
(
|
|
3247
|
+
(j, B) => nl[B] ?? "solid"
|
|
3248
3248
|
) : Array.from({ length: V }).map(
|
|
3249
|
-
(
|
|
3249
|
+
(j, B) => s(u[B])
|
|
3250
3250
|
);
|
|
3251
3251
|
}
|
|
3252
3252
|
const A = S(
|
|
3253
3253
|
() => x(e.model.lineStyleBinding)
|
|
3254
3254
|
), g = S(() => T($.value)), C = S(
|
|
3255
3255
|
() => w(e.model.lineStyles, T(A.value).length)
|
|
3256
|
-
),
|
|
3256
|
+
), z = ee([]), $ = ee(le.series);
|
|
3257
3257
|
he(
|
|
3258
3258
|
[
|
|
3259
3259
|
() => e.model.lineStyles,
|
|
@@ -3263,43 +3263,43 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3263
3263
|
() => e.model.joinDatasources
|
|
3264
3264
|
],
|
|
3265
3265
|
([u, V]) => {
|
|
3266
|
-
$.value = x(V),
|
|
3266
|
+
$.value = x(V), z.value = w(
|
|
3267
3267
|
u,
|
|
3268
3268
|
T($.value).length
|
|
3269
3269
|
);
|
|
3270
3270
|
},
|
|
3271
3271
|
{ immediate: !0, deep: !0 }
|
|
3272
3272
|
);
|
|
3273
|
-
const m = S(() => $.value !== A.value ||
|
|
3273
|
+
const m = S(() => $.value !== A.value || z.value.length !== C.value.length ? !0 : z.value.some((u, V) => u !== C.value[V]));
|
|
3274
3274
|
function a(u, V) {
|
|
3275
|
-
const
|
|
3276
|
-
|
|
3275
|
+
const j = [...z.value];
|
|
3276
|
+
j[u] = s(V), z.value = j;
|
|
3277
3277
|
}
|
|
3278
3278
|
function r(u) {
|
|
3279
3279
|
const V = x(u);
|
|
3280
3280
|
if (V === $.value)
|
|
3281
3281
|
return;
|
|
3282
|
-
const
|
|
3283
|
-
$.value = V,
|
|
3282
|
+
const j = T(V).length;
|
|
3283
|
+
$.value = V, z.value = w(z.value, j);
|
|
3284
3284
|
}
|
|
3285
3285
|
function n() {
|
|
3286
|
-
$.value = le.series,
|
|
3286
|
+
$.value = le.series, z.value = [...nl];
|
|
3287
3287
|
}
|
|
3288
3288
|
function y() {
|
|
3289
|
-
const u = $.value === le.series, V =
|
|
3289
|
+
const u = $.value === le.series, V = z.value.every((j) => j === "solid");
|
|
3290
3290
|
i("update:model", {
|
|
3291
3291
|
...e.model,
|
|
3292
3292
|
lineStyleBinding: u ? void 0 : $.value,
|
|
3293
|
-
lineStyles: V ? void 0 : [...
|
|
3293
|
+
lineStyles: V ? void 0 : [...z.value]
|
|
3294
3294
|
});
|
|
3295
3295
|
}
|
|
3296
3296
|
return (u, V) => {
|
|
3297
|
-
const
|
|
3298
|
-
return v(), P("div",
|
|
3299
|
-
b("div",
|
|
3297
|
+
const j = D("FmButton"), B = D("FmSelect");
|
|
3298
|
+
return v(), P("div", jt, [
|
|
3299
|
+
b("div", zt, [
|
|
3300
3300
|
b("p", Rt, J(l(o)("report.section.datasource.lineStyle.title")), 1),
|
|
3301
3301
|
b("div", It, [
|
|
3302
|
-
d(
|
|
3302
|
+
d(j, {
|
|
3303
3303
|
variant: "tertiary",
|
|
3304
3304
|
"text-color": "text-fm-color-system-info-300",
|
|
3305
3305
|
size: "md",
|
|
@@ -3315,7 +3315,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3315
3315
|
"onUpdate:modelValue": r
|
|
3316
3316
|
}, null, 8, ["model-value", "items", "label"]),
|
|
3317
3317
|
b("div", Pt, [
|
|
3318
|
-
(v(!0), P(de, null, xe(
|
|
3318
|
+
(v(!0), P(de, null, xe(z.value, (oe, Q) => (v(), P("div", {
|
|
3319
3319
|
key: Q,
|
|
3320
3320
|
class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
|
|
3321
3321
|
}, [
|
|
@@ -3334,7 +3334,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3334
3334
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])
|
|
3335
3335
|
]))), 128))
|
|
3336
3336
|
]),
|
|
3337
|
-
d(
|
|
3337
|
+
d(j, {
|
|
3338
3338
|
size: "md",
|
|
3339
3339
|
label: l(o)("report.common.apply"),
|
|
3340
3340
|
disabled: !m.value,
|
|
@@ -3381,7 +3381,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3381
3381
|
he(
|
|
3382
3382
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
3383
3383
|
() => {
|
|
3384
|
-
const { rowIds: s, columnIds: f } =
|
|
3384
|
+
const { rowIds: s, columnIds: f } = ze(e.value);
|
|
3385
3385
|
e.value.rowIds = s, e.value.columnIds = f;
|
|
3386
3386
|
},
|
|
3387
3387
|
{ deep: !0 }
|
|
@@ -3660,7 +3660,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3660
3660
|
}, 8, ["model-value"]),
|
|
3661
3661
|
b("div", ia, [
|
|
3662
3662
|
b("div", sa, [
|
|
3663
|
-
e.value ? (v(), O(
|
|
3663
|
+
e.value ? (v(), O(fl, {
|
|
3664
3664
|
key: 0,
|
|
3665
3665
|
"model-value": e.value,
|
|
3666
3666
|
index: i.index,
|
|
@@ -3711,7 +3711,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3711
3711
|
return v(), P("div", null, [
|
|
3712
3712
|
e.value ? (v(), P(de, { key: 1 }, [
|
|
3713
3713
|
b("div", da, [
|
|
3714
|
-
e.value ? (v(), O(
|
|
3714
|
+
e.value ? (v(), O(fl, {
|
|
3715
3715
|
key: 0,
|
|
3716
3716
|
"model-value": e.value,
|
|
3717
3717
|
index: i.index,
|
|
@@ -3742,7 +3742,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3742
3742
|
}, Ta = /* @__PURE__ */ se({
|
|
3743
3743
|
__name: "TileEditor",
|
|
3744
3744
|
setup(L) {
|
|
3745
|
-
const { rowHeight: c, colWidths: e } = Se(Oe()), i = Ml(), o = Nl(), h = Wl(), { globalFilters: x } = Se(
|
|
3745
|
+
const { rowHeight: c, colWidths: e } = Se(Oe()), i = Ml(), o = Nl(), h = Wl(), { globalFilters: x } = Se(gl()), { currentSelectWidgetType: p, editingReport: k, editingTile: T, editingTileIndex: t } = Se(h), { breakpoints: s } = pl(), { promptMessage: f } = cl(), { t: w, te: A } = ce(), g = S(() => {
|
|
3746
3746
|
var n;
|
|
3747
3747
|
const a = (n = T.value) == null ? void 0 : n.widget.type;
|
|
3748
3748
|
if (!a)
|
|
@@ -3750,7 +3750,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3750
3750
|
const r = `report.widget.types.${a.toLowerCase()}`;
|
|
3751
3751
|
return A(r) ? w(r) : a;
|
|
3752
3752
|
}), C = ee(!1);
|
|
3753
|
-
function
|
|
3753
|
+
function z() {
|
|
3754
3754
|
p.value = void 0, T.value = void 0, t.value = -1, o.back();
|
|
3755
3755
|
}
|
|
3756
3756
|
async function $() {
|
|
@@ -3763,7 +3763,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3763
3763
|
...T.value.widget.config,
|
|
3764
3764
|
rowHeight: c.value,
|
|
3765
3765
|
colWidths: [...e.value]
|
|
3766
|
-
}, t.value === -1 ? k.value.tiles.push(T.value) : k.value.tiles[t.value] = T.value,
|
|
3766
|
+
}, t.value === -1 ? k.value.tiles.push(T.value) : k.value.tiles[t.value] = T.value, z());
|
|
3767
3767
|
}
|
|
3768
3768
|
async function m() {
|
|
3769
3769
|
var r;
|
|
@@ -3771,7 +3771,7 @@ const uo = { class: "flex flex-col my-2 gap-8" }, mo = { class: "fm-typo-en-body
|
|
|
3771
3771
|
await f({
|
|
3772
3772
|
title: w("report.tile.cancel.title"),
|
|
3773
3773
|
message: w("report.tile.cancel.confirm", { title: (r = T.value) == null ? void 0 : r.widget.title })
|
|
3774
|
-
}) &&
|
|
3774
|
+
}) && z();
|
|
3775
3775
|
}
|
|
3776
3776
|
return Ye(() => {
|
|
3777
3777
|
k.value || o.push({ name: "reports" });
|