@feedmepos/mf-report 5.22.14-beta.2 → 5.22.15-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-Cwppqefm.js → App-BQhR0gXI.js} +5 -5
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CcKWqqNP.js → BaseDialog.vue_vue_type_script_setup_true_lang-CoJrINGt.js} +1890 -1838
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CryPHoYr.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-HVO_Z_aB.js} +7 -7
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DU3zkEF1.js → Default.vue_vue_type_script_setup_true_lang-B0td3xNS.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CyW-5xr4.js → FilterSelector.vue_vue_type_script_setup_true_lang-DB7d9t3_.js} +6 -6
- package/dist/{InsightView-DAnaBH3D.js → InsightView-CitbD8mF.js} +6 -6
- package/dist/{Integration-DiNs52W5.js → Integration-DjnNmveS.js} +6 -7
- package/dist/{Integrations-BvgLRF5N.js → Integrations-BKYeENnK.js} +6 -7
- package/dist/{Layout-BAYV4nCo.js → Layout-5TdGrp8j.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BZphMQGv.js → MenuTab.vue_vue_type_script_setup_true_lang-DkiUvM56.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DSTG-gQ3.js → NavigationTab.vue_vue_type_script_setup_true_lang-CifNNsqR.js} +3120 -3095
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-zS79GrjC.js → NoData.vue_vue_type_script_setup_true_lang-Uei_Jstp.js} +1 -1
- package/dist/{OverviewView-CvRMdLbB.js → OverviewView-DZoL2KUz.js} +5 -5
- package/dist/{Report-C6445626.js → Report-D_9Db2Pa.js} +216 -187
- package/dist/{ReportEditor-Cy8f2WFu.js → ReportEditor-VGOkYidh.js} +65 -65
- package/dist/{ReportView-D-T3b10U.js → ReportView-B9PQlaFs.js} +22 -22
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CYDZzbCU.js → SelectComponent.vue_vue_type_script_setup_true_lang-UhEjUKRz.js} +1 -1
- package/dist/{Setting-DBzyuCx-.js → Setting-BpStivU1.js} +5 -5
- package/dist/{TileEditor-CWYE5X71.js → TileEditor-CYwZNqhl.js} +110 -110
- package/dist/{TransitionFade-DwQjFIYA.js → TransitionFade-Cmxee7D0.js} +6 -6
- package/dist/{app-BRv3iLF1.js → app-BXEgzj0c.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useReportPermission-B_CqU5GP.js +63 -0
- package/dist/useRestaurantPermission-DIlTzfKA.js +64 -0
- package/dist/{vue-i18n-ComGWqEb.js → vue-i18n-mTXrqqL9.js} +4477 -3241
- package/package.json +2 -2
- package/dist/access-Dw5cDt65-C2c0R9q4.js +0 -1238
- package/dist/useReportPermission-CDWkdi6R.js +0 -60
- package/dist/useRestaurantPermission-CjG_t7dK.js +0 -65
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as se, mergeModels as ve, useModel as ge, computed as T, ref as Z, resolveComponent as D, createElementBlock as R, openBlock as g, createVNode as u, createElementVNode as h, unref as l, withCtx as q, toDisplayString as Y, Fragment as de, renderList as xe, withModifiers as ye, createTextVNode as Ue, watch as he, createCommentVNode as M, createBlock as N, onUnmounted as Dl, renderSlot as sl, onMounted as He, onBeforeUnmount as rl, resolveDynamicComponent as ul, normalizeClass as ke, withDirectives as Ce, vShow as we, withKeys as el, vModelText as Bl, normalizeStyle as Ee, isRef as Al } from "vue";
|
|
2
2
|
import { useRoute as Ll, useRouter as Ml } from "vue-router";
|
|
3
|
-
import { h as Nl, d as Ie, S as We, _ as Ol, W as
|
|
4
|
-
import { W as H, b as dl, d as De, D as Pl, S as ll, C as Xl, P as tl, a as El } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { h as Nl, d as Ie, S as We, _ as Ol, W as zl, b as jl, T as Il, a as Rl } from "./TransitionFade-Cmxee7D0.js";
|
|
4
|
+
import { W as H, b as dl, d as De, D as Pl, S as ll, C as Xl, P as tl, a as El } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CoJrINGt.js";
|
|
5
5
|
import { storeToRefs as Se } from "pinia";
|
|
6
6
|
import { u as ml } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as Wl, useBreakpoints as cl, FmButtonColorThemeVariant as ol } from "@feedmepos/ui-library";
|
|
8
|
-
import { a as fe, _ as pl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as ce,
|
|
8
|
+
import { a as fe, _ as pl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-UhEjUKRz.js";
|
|
9
|
+
import { u as ce, k as $e, b as vl } from "./vue-i18n-mTXrqqL9.js";
|
|
10
10
|
import { r as me } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { g as Te, u as Oe, L as Fe, b as Ne, S as ee, d as ie, c as al, e as ql, Y as Yl, X as Hl, _ as fl, a as Gl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { d as
|
|
13
|
-
import { d as Me } from "./app-
|
|
14
|
-
import { _ as gl } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { g as Te, u as Oe, L as Fe, b as Ne, S as ee, d as ie, c as al, e as ql, Y as Yl, X as Hl, _ as fl, a as Gl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DB7d9t3_.js";
|
|
12
|
+
import { d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-HVO_Z_aB.js";
|
|
13
|
+
import { d as Me } from "./app-BXEgzj0c.js";
|
|
14
|
+
import { _ as gl } from "./NoData.vue_vue_type_script_setup_true_lang-Uei_Jstp.js";
|
|
15
15
|
const Re = [
|
|
16
16
|
{
|
|
17
17
|
type: H.Circular,
|
|
@@ -327,14 +327,14 @@ const Re = [
|
|
|
327
327
|
}))
|
|
328
328
|
), _ = Z(i.value.length > 0 ? 0 : void 0);
|
|
329
329
|
function S(m) {
|
|
330
|
-
var s, d, y,
|
|
330
|
+
var s, d, y, j;
|
|
331
331
|
V.value = !0, o.value = m != null && m.value ? JSON.parse(
|
|
332
332
|
JSON.stringify({
|
|
333
333
|
...m.value,
|
|
334
334
|
label: me(p, e, (s = m.value) == null ? void 0 : s.label, "other"),
|
|
335
335
|
moveToColumn: (((d = a.config) == null ? void 0 : d.columnIds) || []).includes(Te(m.value))
|
|
336
336
|
})
|
|
337
|
-
) : void 0, _.value = m == null ? void 0 : m.index, r.value = !!((y = o.value) != null && y.dataFormula || (
|
|
337
|
+
) : void 0, _.value = m == null ? void 0 : m.index, r.value = !!((y = o.value) != null && y.dataFormula || (j = o.value) != null && j.displayFormula), o.value && o.value.formatter === void 0 && (a.options.find(
|
|
338
338
|
(le) => {
|
|
339
339
|
var te, K;
|
|
340
340
|
return le.schemaName === ((te = o.value) == null ? void 0 : te.schemaName) && le.name === ((K = o.value) == null ? void 0 : K.name);
|
|
@@ -384,7 +384,7 @@ const Re = [
|
|
|
384
384
|
r.value || (o.value.dataFormula = void 0), _.value !== void 0 ? m[_.value] = o.value : m.push(o.value), i.value = m, V.value = !1;
|
|
385
385
|
}
|
|
386
386
|
function x(m) {
|
|
387
|
-
const d = [...v.value.map((y) => y.value)].filter((y,
|
|
387
|
+
const d = [...v.value.map((y) => y.value)].filter((y, j) => j !== m);
|
|
388
388
|
i.value = d;
|
|
389
389
|
}
|
|
390
390
|
function O(m) {
|
|
@@ -408,7 +408,7 @@ const Re = [
|
|
|
408
408
|
}))
|
|
409
409
|
);
|
|
410
410
|
return (m, s) => {
|
|
411
|
-
const d = D("FmTextField"), y = D("FmStepperField"),
|
|
411
|
+
const d = D("FmTextField"), y = D("FmStepperField"), j = D("FmCheckbox"), le = D("FmTextarea"), te = D("FmForm"), K = D("FmIcon"), re = D("FmButton"), ne = D("FmListItem"), L = D("FmList"), I = D("FmField");
|
|
412
412
|
return B.max !== 0 ? (g(), R("div", tt, [
|
|
413
413
|
u(De, {
|
|
414
414
|
modelValue: V.value,
|
|
@@ -470,7 +470,7 @@ const Re = [
|
|
|
470
470
|
}))
|
|
471
471
|
]
|
|
472
472
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : M("", !0),
|
|
473
|
-
C.value ? (g(), N(
|
|
473
|
+
C.value ? (g(), N(j, {
|
|
474
474
|
key: 3,
|
|
475
475
|
"model-value": o.value.fillGap ?? !1,
|
|
476
476
|
label: l(p)("report.section.dimension.fillGap"),
|
|
@@ -480,7 +480,7 @@ const Re = [
|
|
|
480
480
|
o.value && (o.value.fillGap = t(Q));
|
|
481
481
|
})
|
|
482
482
|
}, null, 8, ["model-value", "label"])) : M("", !0),
|
|
483
|
-
((Ae = f.value) == null ? void 0 : Ae.type) === l(Pl).Timestamp ? (g(), N(
|
|
483
|
+
((Ae = f.value) == null ? void 0 : Ae.type) === l(Pl).Timestamp ? (g(), N(j, {
|
|
484
484
|
key: 4,
|
|
485
485
|
"model-value": o.value.dateComparison ?? !1,
|
|
486
486
|
label: l(p)("report.section.dimension.dateComparison"),
|
|
@@ -489,13 +489,13 @@ const Re = [
|
|
|
489
489
|
o.value && (o.value.dateComparison = t(Q));
|
|
490
490
|
})
|
|
491
491
|
}, null, 8, ["model-value", "label"])) : M("", !0),
|
|
492
|
-
u(
|
|
492
|
+
u(j, {
|
|
493
493
|
modelValue: o.value.hide,
|
|
494
494
|
"onUpdate:modelValue": s[7] || (s[7] = (Q) => o.value.hide = Q),
|
|
495
495
|
label: l(p)("report.section.dimension.hide"),
|
|
496
496
|
value: ""
|
|
497
497
|
}, null, 8, ["modelValue", "label"]),
|
|
498
|
-
a.hasRowColumn ? (g(), N(
|
|
498
|
+
a.hasRowColumn ? (g(), N(j, {
|
|
499
499
|
key: 5,
|
|
500
500
|
"model-value": o.value.moveToColumn ?? !1,
|
|
501
501
|
label: l(p)("report.section.dimension.moveToColumn"),
|
|
@@ -504,7 +504,7 @@ const Re = [
|
|
|
504
504
|
o.value && (o.value.moveToColumn = t(Q));
|
|
505
505
|
})
|
|
506
506
|
}, null, 8, ["model-value", "label"])) : M("", !0),
|
|
507
|
-
u(
|
|
507
|
+
u(j, {
|
|
508
508
|
modelValue: r.value,
|
|
509
509
|
"onUpdate:modelValue": s[9] || (s[9] = (Q) => r.value = Q),
|
|
510
510
|
label: l(p)("report.section.dimension.advance"),
|
|
@@ -597,7 +597,7 @@ function it(B, p, e) {
|
|
|
597
597
|
}
|
|
598
598
|
function st(B) {
|
|
599
599
|
var i;
|
|
600
|
-
const { rowIds: p, columnIds: e } =
|
|
600
|
+
const { rowIds: p, columnIds: e } = je(B.widget.config);
|
|
601
601
|
return {
|
|
602
602
|
...B,
|
|
603
603
|
widget: {
|
|
@@ -612,7 +612,7 @@ function st(B) {
|
|
|
612
612
|
B.widget.config.isDrillable
|
|
613
613
|
),
|
|
614
614
|
joinDatasources: (i = B.widget.config.joinDatasources) == null ? void 0 : i.map((a) => {
|
|
615
|
-
const { rowIds: w, columnIds: V } =
|
|
615
|
+
const { rowIds: w, columnIds: V } = je(a);
|
|
616
616
|
return {
|
|
617
617
|
...a,
|
|
618
618
|
rowIds: w,
|
|
@@ -623,7 +623,7 @@ function st(B) {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function je(B) {
|
|
627
627
|
const p = B.dimensions.filter((V) => V.hide !== !0 && !V.moveToColumn).map((V) => Te(V)), e = B.dimensions.filter((V) => V.hide !== !0 && V.moveToColumn == !0).map((V) => Te(V)), i = B.metrics.length > 0;
|
|
628
628
|
i && B.metrics.find((V) => V.moveToRow == !0) ? p.push(qe.value) : i && e.push(qe.value);
|
|
629
629
|
const a = [], w = [];
|
|
@@ -688,8 +688,8 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
688
688
|
})
|
|
689
689
|
) : void 0, S.value = t == null ? void 0 : t.index, f.value = !!((n = r.value) != null && n.dataFormula || (m = r.value) != null && m.displayFormula), r.value && r.value.formatter === void 0 && (w.options.find(
|
|
690
690
|
(d) => {
|
|
691
|
-
var y,
|
|
692
|
-
return d.schemaName === ((y = r.value) == null ? void 0 : y.schemaName) && d.name === ((
|
|
691
|
+
var y, j;
|
|
692
|
+
return d.schemaName === ((y = r.value) == null ? void 0 : y.schemaName) && d.name === ((j = r.value) == null ? void 0 : j.name);
|
|
693
693
|
}
|
|
694
694
|
), t != null && t.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = t == null ? void 0 : t.value.timeFormatter, r.value.timeFormatter = void 0)), ((s = w.config.rowIds) == null ? void 0 : s.findIndex((d) => d === qe.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!w.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
|
|
695
695
|
}
|
|
@@ -742,7 +742,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
742
742
|
}))
|
|
743
743
|
);
|
|
744
744
|
return (t, n) => {
|
|
745
|
-
const m = D("FmTextField"), s = D("FmStepperField"), d = D("FmCheckbox"), y = D("FmTextarea"),
|
|
745
|
+
const m = D("FmTextField"), s = D("FmStepperField"), d = D("FmCheckbox"), y = D("FmTextarea"), j = D("FmForm"), le = D("FmIcon"), te = D("FmButton"), K = D("FmListItem"), re = D("FmList"), ne = D("FmField");
|
|
746
746
|
return g(), R("div", rt, [
|
|
747
747
|
u(De, {
|
|
748
748
|
modelValue: v.value,
|
|
@@ -751,7 +751,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
751
751
|
onConfirm: O
|
|
752
752
|
}, {
|
|
753
753
|
content: q(() => [
|
|
754
|
-
u(
|
|
754
|
+
u(j, {
|
|
755
755
|
ref: "form",
|
|
756
756
|
class: "flex flex-col gap-2 w-[490px]"
|
|
757
757
|
}, {
|
|
@@ -974,7 +974,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
974
974
|
}))
|
|
975
975
|
);
|
|
976
976
|
return ($, c) => {
|
|
977
|
-
const t = D("FmCheckbox"), n = D("FmTextarea"), m = D("FmForm"), s = D("FmIcon"), d = D("FmButton"), y = D("FmListItem"),
|
|
977
|
+
const t = D("FmCheckbox"), n = D("FmTextarea"), m = D("FmForm"), s = D("FmIcon"), d = D("FmButton"), y = D("FmListItem"), j = D("FmList"), le = D("FmField");
|
|
978
978
|
return g(), R("div", pt, [
|
|
979
979
|
u(De, {
|
|
980
980
|
modelValue: V.value,
|
|
@@ -1054,7 +1054,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1054
1054
|
h("p", vt, Y(w.value), 1),
|
|
1055
1055
|
h("p", ft, Y(l(p)("report.section.sort.description")), 1)
|
|
1056
1056
|
]),
|
|
1057
|
-
u(
|
|
1057
|
+
u(j, null, {
|
|
1058
1058
|
default: q(() => [
|
|
1059
1059
|
u(l(Ie), {
|
|
1060
1060
|
list: i.value,
|
|
@@ -1107,7 +1107,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1107
1107
|
},
|
|
1108
1108
|
emits: ["update:modelValue"],
|
|
1109
1109
|
setup(B) {
|
|
1110
|
-
const { t: p } = ce(), e = ge(B, "modelValue"), i =
|
|
1110
|
+
const { t: p } = ce(), e = ge(B, "modelValue"), i = ze((a) => {
|
|
1111
1111
|
a !== "" ? e.value = a : e.value = null;
|
|
1112
1112
|
}, 1e3);
|
|
1113
1113
|
return (a, w) => {
|
|
@@ -1152,8 +1152,8 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1152
1152
|
var s, d;
|
|
1153
1153
|
const n = a.joinFieldOptions.find(
|
|
1154
1154
|
(y) => {
|
|
1155
|
-
var
|
|
1156
|
-
return y.schemaName === ((
|
|
1155
|
+
var j, le;
|
|
1156
|
+
return y.schemaName === ((j = c.joinDimension) == null ? void 0 : j.schemaName) && y.name === ((le = c.joinDimension) == null ? void 0 : le.name);
|
|
1157
1157
|
}
|
|
1158
1158
|
), m = (n == null ? void 0 : n.labels) || [
|
|
1159
1159
|
(s = c.joinDimension) == null ? void 0 : s.schemaName,
|
|
@@ -1251,7 +1251,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1251
1251
|
t.splice(c, 1), i.value = t;
|
|
1252
1252
|
}
|
|
1253
1253
|
return (c, t) => {
|
|
1254
|
-
const n = D("FmMenuDivider"), m = D("FmForm"), s = D("FmIcon"), d = D("FmButton"), y = D("FmListItem"),
|
|
1254
|
+
const n = D("FmMenuDivider"), m = D("FmForm"), s = D("FmIcon"), d = D("FmButton"), y = D("FmListItem"), j = D("FmList"), le = D("FmField");
|
|
1255
1255
|
return g(), R("div", wt, [
|
|
1256
1256
|
u(De, {
|
|
1257
1257
|
modelValue: V.value,
|
|
@@ -1333,7 +1333,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1333
1333
|
h("p", xt, Y(w.value), 1),
|
|
1334
1334
|
h("p", Vt, Y(l(p)("report.section.condition.description")), 1)
|
|
1335
1335
|
]),
|
|
1336
|
-
u(
|
|
1336
|
+
u(j, { class: "flex flex-col gap-2" }, {
|
|
1337
1337
|
default: q(() => [
|
|
1338
1338
|
u(l(Ie), {
|
|
1339
1339
|
list: i.value,
|
|
@@ -1414,7 +1414,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1414
1414
|
he(
|
|
1415
1415
|
[() => a.value.dimensions, () => a.value.metrics],
|
|
1416
1416
|
() => {
|
|
1417
|
-
const { rowIds: t, columnIds: n } =
|
|
1417
|
+
const { rowIds: t, columnIds: n } = je(a.value);
|
|
1418
1418
|
a.value.rowIds = t, a.value.columnIds = n;
|
|
1419
1419
|
},
|
|
1420
1420
|
{ deep: !0 }
|
|
@@ -1786,7 +1786,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1786
1786
|
], 64);
|
|
1787
1787
|
};
|
|
1788
1788
|
}
|
|
1789
|
-
}), Ot = { class: "flex flex-col gap-8" },
|
|
1789
|
+
}), Ot = { class: "flex flex-col gap-8" }, zt = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, jt = { class: "flex flex-row gap-2" }, It = {
|
|
1790
1790
|
key: 0,
|
|
1791
1791
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
1792
1792
|
}, Rt = /* @__PURE__ */ se({
|
|
@@ -1828,8 +1828,8 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1828
1828
|
}), (C, A) => {
|
|
1829
1829
|
const b = D("FmButton");
|
|
1830
1830
|
return g(), R("div", Ot, [
|
|
1831
|
-
h("p",
|
|
1832
|
-
h("div",
|
|
1831
|
+
h("p", zt, Y(l(e)("report.section.datasource.tableLayout")), 1),
|
|
1832
|
+
h("div", jt, [
|
|
1833
1833
|
l(w) ? M("", !0) : (g(), N(b, {
|
|
1834
1834
|
key: 0,
|
|
1835
1835
|
label: l(e)("report.section.datasource.resizeTable"),
|
|
@@ -1904,7 +1904,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1904
1904
|
}
|
|
1905
1905
|
function b() {
|
|
1906
1906
|
const s = [...v.value.widget.config.joinDatasources || []];
|
|
1907
|
-
s.push({ ...
|
|
1907
|
+
s.push({ ...jl(v.value.widget.type), conditions: [] }), A({
|
|
1908
1908
|
...v.value,
|
|
1909
1909
|
widget: {
|
|
1910
1910
|
...v.value.widget,
|
|
@@ -1933,33 +1933,33 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
const O = (s, d) => {
|
|
1936
|
-
let y = 1,
|
|
1936
|
+
let y = 1, j = 1;
|
|
1937
1937
|
switch (s) {
|
|
1938
1938
|
case H.Scorecard:
|
|
1939
|
-
y = 1,
|
|
1939
|
+
y = 1, j = 2;
|
|
1940
1940
|
break;
|
|
1941
1941
|
case H.BarChart:
|
|
1942
1942
|
case H.StackBarChart:
|
|
1943
1943
|
case H.ClusteredStackBarChart:
|
|
1944
1944
|
case H.LineChart:
|
|
1945
1945
|
case H.StackLineChart:
|
|
1946
|
-
y = 4,
|
|
1946
|
+
y = 4, j = 6;
|
|
1947
1947
|
break;
|
|
1948
1948
|
case H.Table:
|
|
1949
|
-
y = 4,
|
|
1949
|
+
y = 4, j = 12;
|
|
1950
1950
|
break;
|
|
1951
1951
|
case H.Circular:
|
|
1952
|
-
y = 4,
|
|
1952
|
+
y = 4, j = 4;
|
|
1953
1953
|
break;
|
|
1954
1954
|
case H.Spacer:
|
|
1955
|
-
y = 0,
|
|
1955
|
+
y = 0, j = 12;
|
|
1956
1956
|
break;
|
|
1957
1957
|
}
|
|
1958
1958
|
return {
|
|
1959
1959
|
id: d.id,
|
|
1960
1960
|
size: {
|
|
1961
1961
|
height: y,
|
|
1962
|
-
width:
|
|
1962
|
+
width: j
|
|
1963
1963
|
},
|
|
1964
1964
|
widget: {
|
|
1965
1965
|
...d.widget,
|
|
@@ -1968,7 +1968,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1968
1968
|
};
|
|
1969
1969
|
}, $ = T(
|
|
1970
1970
|
() => Re.find((s) => s.type === v.value.widget.type)
|
|
1971
|
-
), c = T(() => v.value.widget.config.joinDatasources), t =
|
|
1971
|
+
), c = T(() => v.value.widget.config.joinDatasources), t = ze((s) => {
|
|
1972
1972
|
v.value.widget.title = s;
|
|
1973
1973
|
}, 500);
|
|
1974
1974
|
return he(
|
|
@@ -1982,7 +1982,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1982
1982
|
s < 1 && (v.value.size.width = 1), s > 12 && (v.value.size.width = 12);
|
|
1983
1983
|
}
|
|
1984
1984
|
), (s, d) => {
|
|
1985
|
-
const y = D("FmCircularProgress"),
|
|
1985
|
+
const y = D("FmCircularProgress"), j = D("FmSimpleDateRangePicker"), le = D("FmTextField"), te = D("FmTextarea"), K = D("FmStepperField"), re = D("FmButton"), ne = D("FmForm");
|
|
1986
1986
|
return g(), N(ul(l(_).lg || l(_).md ? St : $t), {
|
|
1987
1987
|
"model-value": S.hideConfiguration,
|
|
1988
1988
|
"onUpdate:modelValue": d[9] || (d[9] = (L) => r("hideConfiguration", L))
|
|
@@ -1995,7 +1995,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1995
1995
|
}, {
|
|
1996
1996
|
default: q(() => [
|
|
1997
1997
|
h("div", Pt, [
|
|
1998
|
-
(g(), N(
|
|
1998
|
+
(g(), N(j, {
|
|
1999
1999
|
key: `date-picker-${l(C)}`,
|
|
2000
2000
|
modelValue: V.value,
|
|
2001
2001
|
"onUpdate:modelValue": d[0] || (d[0] = (L) => V.value = L)
|
|
@@ -2063,7 +2063,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2063
2063
|
d[11] || (d[11] = h("div", { class: "grow" }, null, -1))
|
|
2064
2064
|
]),
|
|
2065
2065
|
content: q(() => [
|
|
2066
|
-
u(
|
|
2066
|
+
u(zl, {
|
|
2067
2067
|
"is-list": !0,
|
|
2068
2068
|
"model-value": v.value.widget.type,
|
|
2069
2069
|
class: "grid grid-cols-1 gap-2",
|
|
@@ -2286,9 +2286,9 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2286
2286
|
set: (b) => {
|
|
2287
2287
|
i("update:model", { ...e.model, showYTitle: b });
|
|
2288
2288
|
}
|
|
2289
|
-
}), C =
|
|
2289
|
+
}), C = ze((b) => {
|
|
2290
2290
|
i("update:model", { ...e.model, xTitle: b });
|
|
2291
|
-
}, 500), A =
|
|
2291
|
+
}, 500), A = ze((b) => {
|
|
2292
2292
|
i("update:model", { ...e.model, yTitle: b });
|
|
2293
2293
|
}, 500);
|
|
2294
2294
|
return He(() => {
|
|
@@ -2644,8 +2644,8 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2644
2644
|
return [...F, ...k];
|
|
2645
2645
|
}
|
|
2646
2646
|
function _(F, k) {
|
|
2647
|
-
var
|
|
2648
|
-
return F ? ((
|
|
2647
|
+
var z, X;
|
|
2648
|
+
return F ? ((z = F.label) == null ? void 0 : z.trim()) || ((X = F.name) == null ? void 0 : X.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${k + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${k + 1}`;
|
|
2649
2649
|
}
|
|
2650
2650
|
function S(F) {
|
|
2651
2651
|
if (F === ee.breakdown)
|
|
@@ -2653,7 +2653,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2653
2653
|
if (F === ee.metric) {
|
|
2654
2654
|
const k = v();
|
|
2655
2655
|
if (k.length > 0)
|
|
2656
|
-
return k.map((U,
|
|
2656
|
+
return k.map((U, z) => _(U, z));
|
|
2657
2657
|
}
|
|
2658
2658
|
return ie.map(
|
|
2659
2659
|
(k, U) => `${a("report.section.datasource.chartColor.series")} ${U + 1}`
|
|
@@ -2665,15 +2665,15 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2665
2665
|
);
|
|
2666
2666
|
}
|
|
2667
2667
|
function r(F, k) {
|
|
2668
|
-
const U = Array.isArray(F) ? F.length : 0,
|
|
2669
|
-
return Math.max(ie.length, U,
|
|
2668
|
+
const U = Array.isArray(F) ? F.length : 0, z = Array.isArray(k) ? k.length : 0;
|
|
2669
|
+
return Math.max(ie.length, U, z, 1);
|
|
2670
2670
|
}
|
|
2671
2671
|
const f = T(() => {
|
|
2672
2672
|
const F = v();
|
|
2673
2673
|
return F.length === 0 ? [a("report.section.datasource.styleTarget.metric")] : F.map((k, U) => _(k, U));
|
|
2674
2674
|
}), C = Z(ie.length), A = Z(ie.length);
|
|
2675
2675
|
function b(F, k) {
|
|
2676
|
-
const U = Math.max(1, k),
|
|
2676
|
+
const U = Math.max(1, k), z = Array.isArray(F) ? F.length : 0, X = z > 0 ? Math.ceil(z / U) : 0;
|
|
2677
2677
|
return Math.max(ie.length, X, 1);
|
|
2678
2678
|
}
|
|
2679
2679
|
const x = T(() => {
|
|
@@ -2683,11 +2683,11 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2683
2683
|
);
|
|
2684
2684
|
});
|
|
2685
2685
|
function O(F, k) {
|
|
2686
|
-
const U = m(F) ?? "#000000",
|
|
2686
|
+
const U = m(F) ?? "#000000", z = (X) => {
|
|
2687
2687
|
const E = Number.parseInt(U.slice(X, X + 2), 16);
|
|
2688
2688
|
return Math.round(E + (255 - E) * k).toString(16).padStart(2, "0").toUpperCase();
|
|
2689
2689
|
};
|
|
2690
|
-
return `#${
|
|
2690
|
+
return `#${z(1)}${z(3)}${z(5)}`;
|
|
2691
2691
|
}
|
|
2692
2692
|
function $(F) {
|
|
2693
2693
|
return Math.min(0.55 + (F - 1) * 0.18, 0.95);
|
|
@@ -2695,13 +2695,13 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2695
2695
|
function c(F, k, U) {
|
|
2696
2696
|
return F * U + k;
|
|
2697
2697
|
}
|
|
2698
|
-
function t(F, k, U,
|
|
2698
|
+
function t(F, k, U, z) {
|
|
2699
2699
|
const X = k.length;
|
|
2700
2700
|
return F.length === 0 || X <= 0 ? [] : F.flatMap((E, P) => {
|
|
2701
2701
|
const oe = ie[P % ie.length], J = U == null ? void 0 : U[c(P, 0, X)], ue = m(J) ?? oe;
|
|
2702
2702
|
return k.map((Le, _e) => {
|
|
2703
2703
|
const Pe = c(P, _e, X), Ze = _e === 0 ? ue : O(ue, $(_e));
|
|
2704
|
-
return
|
|
2704
|
+
return z && _e > 0 ? Ze : m(U == null ? void 0 : U[Pe]) ?? Ze;
|
|
2705
2705
|
});
|
|
2706
2706
|
});
|
|
2707
2707
|
}
|
|
@@ -2713,39 +2713,39 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2713
2713
|
if (!n.test(k))
|
|
2714
2714
|
return null;
|
|
2715
2715
|
if (k.length === 4) {
|
|
2716
|
-
const U = k.charAt(1),
|
|
2717
|
-
return `#${U}${U}${
|
|
2716
|
+
const U = k.charAt(1), z = k.charAt(2), X = k.charAt(3);
|
|
2717
|
+
return `#${U}${U}${z}${z}${X}${X}`.toUpperCase();
|
|
2718
2718
|
}
|
|
2719
2719
|
return k.toUpperCase();
|
|
2720
2720
|
}
|
|
2721
2721
|
function s(F, k) {
|
|
2722
2722
|
return !Array.isArray(F) || F.length === 0 ? Array.from({ length: k }).map(
|
|
2723
|
-
(U,
|
|
2724
|
-
) : Array.from({ length: k }).map((U,
|
|
2725
|
-
const X = ie[
|
|
2726
|
-
return m(F[
|
|
2723
|
+
(U, z) => ie[z % ie.length]
|
|
2724
|
+
) : Array.from({ length: k }).map((U, z) => {
|
|
2725
|
+
const X = ie[z % ie.length];
|
|
2726
|
+
return m(F[z]) ?? X;
|
|
2727
2727
|
});
|
|
2728
2728
|
}
|
|
2729
2729
|
function d(F, k) {
|
|
2730
2730
|
if (k <= 0)
|
|
2731
2731
|
return [];
|
|
2732
|
-
const U = Array.from({ length: k }, () => 0),
|
|
2732
|
+
const U = Array.from({ length: k }, () => 0), z = /* @__PURE__ */ new Set();
|
|
2733
2733
|
for (let E = 0; E < k; E++) {
|
|
2734
2734
|
const P = Number(F == null ? void 0 : F[E]);
|
|
2735
|
-
Number.isInteger(P) && P >= 1 && P <= k && !
|
|
2735
|
+
Number.isInteger(P) && P >= 1 && P <= k && !z.has(P) && (U[E] = P, z.add(P));
|
|
2736
2736
|
}
|
|
2737
2737
|
let X = 1;
|
|
2738
2738
|
for (let E = 0; E < k; E++)
|
|
2739
2739
|
if (U[E] === 0) {
|
|
2740
|
-
for (;
|
|
2740
|
+
for (; z.has(X) && X <= k; )
|
|
2741
2741
|
X++;
|
|
2742
|
-
U[E] = Math.min(X, k),
|
|
2742
|
+
U[E] = Math.min(X, k), z.add(U[E]);
|
|
2743
2743
|
}
|
|
2744
2744
|
return U;
|
|
2745
2745
|
}
|
|
2746
2746
|
const y = T(
|
|
2747
2747
|
() => V(e.model.chartColorBinding)
|
|
2748
|
-
),
|
|
2748
|
+
), j = T(
|
|
2749
2749
|
() => r(e.model.chartColors, e.model.chartColorLayers)
|
|
2750
2750
|
), le = T(() => ae.value === ee.series ? o(C.value) : S(ae.value)), te = T(
|
|
2751
2751
|
() => Array.from({ length: le.value.length }).map((F, k) => ({
|
|
@@ -2756,12 +2756,12 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2756
2756
|
T(
|
|
2757
2757
|
() => s(
|
|
2758
2758
|
e.model.chartColors,
|
|
2759
|
-
y.value === ee.series ?
|
|
2759
|
+
y.value === ee.series ? j.value : S(y.value).length
|
|
2760
2760
|
)
|
|
2761
2761
|
), T(
|
|
2762
2762
|
() => d(
|
|
2763
2763
|
e.model.chartColorLayers,
|
|
2764
|
-
y.value === ee.series ?
|
|
2764
|
+
y.value === ee.series ? j.value : S(y.value).length
|
|
2765
2765
|
)
|
|
2766
2766
|
);
|
|
2767
2767
|
const re = T(
|
|
@@ -2805,7 +2805,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2805
2805
|
{ immediate: !0, deep: !0 }
|
|
2806
2806
|
);
|
|
2807
2807
|
function Be() {
|
|
2808
|
-
const F = ae.value === ee.series, k = ae.value === ee.series ? ie.length : S(ae.value).length, U = s(void 0, k),
|
|
2808
|
+
const F = ae.value === ee.series, k = ae.value === ee.series ? ie.length : S(ae.value).length, U = s(void 0, k), z = d(void 0, k), X = ne.value.length === U.length && ne.value.every((J, ue) => J === U[ue]), E = L.value.length === z.length && L.value.every((J, ue) => J === z[ue]), P = t(
|
|
2809
2809
|
Array.from({ length: ie.length }, (J, ue) => `breakdown-${ue + 1}`),
|
|
2810
2810
|
f.value,
|
|
2811
2811
|
void 0,
|
|
@@ -2843,8 +2843,8 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2843
2843
|
{ deep: !0 }
|
|
2844
2844
|
);
|
|
2845
2845
|
function Ge(F, k) {
|
|
2846
|
-
const U = [...ne.value],
|
|
2847
|
-
U[F] = m(k) ??
|
|
2846
|
+
const U = [...ne.value], z = ie[F % ie.length];
|
|
2847
|
+
U[F] = m(k) ?? z, ne.value = U;
|
|
2848
2848
|
}
|
|
2849
2849
|
function bl(F) {
|
|
2850
2850
|
if (e.limitToSeriesMode)
|
|
@@ -2901,16 +2901,16 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2901
2901
|
const U = L.value.length;
|
|
2902
2902
|
if (U <= 0)
|
|
2903
2903
|
return;
|
|
2904
|
-
const
|
|
2905
|
-
if (!Number.isInteger(
|
|
2904
|
+
const z = Number(k);
|
|
2905
|
+
if (!Number.isInteger(z) || z < 1 || z > U)
|
|
2906
2906
|
return;
|
|
2907
2907
|
const X = [...L.value], E = X[F];
|
|
2908
|
-
if (E ===
|
|
2908
|
+
if (E === z)
|
|
2909
2909
|
return;
|
|
2910
2910
|
const P = X.findIndex(
|
|
2911
|
-
(oe, J) => J !== F && oe ===
|
|
2911
|
+
(oe, J) => J !== F && oe === z
|
|
2912
2912
|
);
|
|
2913
|
-
P >= 0 && (X[P] = E), X[F] =
|
|
2913
|
+
P >= 0 && (X[P] = E), X[F] = z, L.value = X;
|
|
2914
2914
|
}
|
|
2915
2915
|
function xl(F, k) {
|
|
2916
2916
|
const U = k.target;
|
|
@@ -2921,11 +2921,11 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2921
2921
|
U && (Ge(F, U.value), be.value = !1, Q());
|
|
2922
2922
|
}
|
|
2923
2923
|
function Fl(F, k, U) {
|
|
2924
|
-
const
|
|
2925
|
-
if (!
|
|
2924
|
+
const z = U.target;
|
|
2925
|
+
if (!z)
|
|
2926
2926
|
return;
|
|
2927
2927
|
be.value = !0;
|
|
2928
|
-
const X = m(
|
|
2928
|
+
const X = m(z.value);
|
|
2929
2929
|
if (!X)
|
|
2930
2930
|
return;
|
|
2931
2931
|
const E = f.value.length;
|
|
@@ -2940,10 +2940,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2940
2940
|
I.value = oe;
|
|
2941
2941
|
}
|
|
2942
2942
|
function kl(F, k, U) {
|
|
2943
|
-
const
|
|
2944
|
-
if (!
|
|
2943
|
+
const z = U.target;
|
|
2944
|
+
if (!z)
|
|
2945
2945
|
return;
|
|
2946
|
-
const X = m(
|
|
2946
|
+
const X = m(z.value);
|
|
2947
2947
|
if (!X) {
|
|
2948
2948
|
be.value = !1, Q();
|
|
2949
2949
|
return;
|
|
@@ -2962,12 +2962,12 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2962
2962
|
I.value = oe, be.value = !1, Q();
|
|
2963
2963
|
}
|
|
2964
2964
|
function Ke(F, k) {
|
|
2965
|
-
const U = Array.isArray(F) ? F : [],
|
|
2966
|
-
return U.length !==
|
|
2965
|
+
const U = Array.isArray(F) ? F : [], z = Array.isArray(k) ? k : [];
|
|
2966
|
+
return U.length !== z.length ? !1 : U.every((X, E) => X === z[E]);
|
|
2967
2967
|
}
|
|
2968
2968
|
function _l(F, k) {
|
|
2969
|
-
const U = Array.isArray(F) ? F : [],
|
|
2970
|
-
return U.length !==
|
|
2969
|
+
const U = Array.isArray(F) ? F : [], z = Array.isArray(k) ? k : [];
|
|
2970
|
+
return U.length !== z.length ? !1 : U.every((X, E) => Number(X) === Number(z[E]));
|
|
2971
2971
|
}
|
|
2972
2972
|
function Sl(F) {
|
|
2973
2973
|
return F.chartColorBinding === e.model.chartColorBinding && F.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && Ke(F.chartColors, e.model.chartColors) && _l(F.chartColorLayers, e.model.chartColorLayers) && Ke(F.chartBreakdownColors, e.model.chartBreakdownColors);
|
|
@@ -2997,7 +2997,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2997
2997
|
return rl(() => {
|
|
2998
2998
|
be.value = !1;
|
|
2999
2999
|
}), (F, k) => {
|
|
3000
|
-
const U = D("FmButton"),
|
|
3000
|
+
const U = D("FmButton"), z = D("FmSelect"), X = D("FmCheckbox");
|
|
3001
3001
|
return g(), R("div", yo, [
|
|
3002
3002
|
h("div", bo, [
|
|
3003
3003
|
u(U, {
|
|
@@ -3020,7 +3020,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3020
3020
|
])) : M("", !0)
|
|
3021
3021
|
]),
|
|
3022
3022
|
Ce(h("div", Co, [
|
|
3023
|
-
u(
|
|
3023
|
+
u(z, {
|
|
3024
3024
|
"model-value": ae.value,
|
|
3025
3025
|
items: w.value,
|
|
3026
3026
|
"onUpdate:modelValue": bl
|
|
@@ -3050,7 +3050,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3050
3050
|
h("div", {
|
|
3051
3051
|
class: ke(["flex items-center gap-8", K.value ? "justify-between" : "shrink-0"])
|
|
3052
3052
|
}, [
|
|
3053
|
-
K.value ? (g(), N(
|
|
3053
|
+
K.value ? (g(), N(z, {
|
|
3054
3054
|
key: 0,
|
|
3055
3055
|
class: "min-w-[92px]",
|
|
3056
3056
|
"model-value": L.value[P],
|
|
@@ -3148,7 +3148,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3148
3148
|
]);
|
|
3149
3149
|
};
|
|
3150
3150
|
}
|
|
3151
|
-
}), Oo = { class: "flex flex-col gap-8" },
|
|
3151
|
+
}), Oo = { class: "flex flex-col gap-8" }, zo = { class: "flex items-center justify-between" }, jo = { class: "fm-typo-en-body-lg-600" }, Io = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Ro = { class: "grid grid-cols-2 gap-8" }, Po = { class: "flex items-center gap-8" }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = /* @__PURE__ */ se({
|
|
3152
3152
|
__name: "ChartLineStyleSection",
|
|
3153
3153
|
props: {
|
|
3154
3154
|
model: {}
|
|
@@ -3177,7 +3177,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3177
3177
|
if (!e.model.isBlend)
|
|
3178
3178
|
return d;
|
|
3179
3179
|
const y = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
3180
|
-
(
|
|
3180
|
+
(j) => Array.isArray(j == null ? void 0 : j.metrics) ? j.metrics : []
|
|
3181
3181
|
) : [];
|
|
3182
3182
|
return [...d, ...y];
|
|
3183
3183
|
}
|
|
@@ -3185,10 +3185,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3185
3185
|
if (d === ee.metric) {
|
|
3186
3186
|
const y = _();
|
|
3187
3187
|
if (y.length > 0)
|
|
3188
|
-
return y.map((
|
|
3188
|
+
return y.map((j, le) => v(j, le));
|
|
3189
3189
|
}
|
|
3190
3190
|
return ie.map(
|
|
3191
|
-
(y,
|
|
3191
|
+
(y, j) => `${a("report.section.datasource.lineStyle.series")} ${j + 1}`
|
|
3192
3192
|
);
|
|
3193
3193
|
}
|
|
3194
3194
|
const o = T(() => [
|
|
@@ -3213,9 +3213,9 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3213
3213
|
}
|
|
3214
3214
|
function C(d, y) {
|
|
3215
3215
|
return !Array.isArray(d) || d.length === 0 ? Array.from({ length: y }).map(
|
|
3216
|
-
(
|
|
3216
|
+
(j, le) => al[le] ?? "solid"
|
|
3217
3217
|
) : Array.from({ length: y }).map(
|
|
3218
|
-
(
|
|
3218
|
+
(j, le) => r(d[le])
|
|
3219
3219
|
);
|
|
3220
3220
|
}
|
|
3221
3221
|
const A = T(
|
|
@@ -3241,21 +3241,21 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3241
3241
|
);
|
|
3242
3242
|
const c = T(() => $.value !== A.value || O.value.length !== x.value.length ? !0 : O.value.some((d, y) => d !== x.value[y]));
|
|
3243
3243
|
function t(d, y) {
|
|
3244
|
-
const
|
|
3245
|
-
|
|
3244
|
+
const j = [...O.value];
|
|
3245
|
+
j[d] = r(y), O.value = j;
|
|
3246
3246
|
}
|
|
3247
3247
|
function n(d) {
|
|
3248
3248
|
const y = V(d);
|
|
3249
3249
|
if (y === $.value)
|
|
3250
3250
|
return;
|
|
3251
|
-
const
|
|
3252
|
-
$.value = y, O.value = C(O.value,
|
|
3251
|
+
const j = S(y).length;
|
|
3252
|
+
$.value = y, O.value = C(O.value, j);
|
|
3253
3253
|
}
|
|
3254
3254
|
function m() {
|
|
3255
3255
|
$.value = ee.series, O.value = [...al];
|
|
3256
3256
|
}
|
|
3257
3257
|
function s() {
|
|
3258
|
-
const d = $.value === ee.series, y = O.value.every((
|
|
3258
|
+
const d = $.value === ee.series, y = O.value.every((j) => j === "solid");
|
|
3259
3259
|
i("update:model", {
|
|
3260
3260
|
...e.model,
|
|
3261
3261
|
lineStyleBinding: d ? void 0 : $.value,
|
|
@@ -3263,12 +3263,12 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3263
3263
|
});
|
|
3264
3264
|
}
|
|
3265
3265
|
return (d, y) => {
|
|
3266
|
-
const
|
|
3266
|
+
const j = D("FmButton"), le = D("FmSelect");
|
|
3267
3267
|
return g(), R("div", Oo, [
|
|
3268
|
-
h("div",
|
|
3269
|
-
h("p",
|
|
3268
|
+
h("div", zo, [
|
|
3269
|
+
h("p", jo, Y(l(a)("report.section.datasource.lineStyle.title")), 1),
|
|
3270
3270
|
h("div", Io, [
|
|
3271
|
-
u(
|
|
3271
|
+
u(j, {
|
|
3272
3272
|
variant: "tertiary",
|
|
3273
3273
|
"text-color": "text-fm-color-system-info-300",
|
|
3274
3274
|
size: "md",
|
|
@@ -3303,7 +3303,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3303
3303
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])
|
|
3304
3304
|
]))), 128))
|
|
3305
3305
|
]),
|
|
3306
|
-
u(
|
|
3306
|
+
u(j, {
|
|
3307
3307
|
size: "md",
|
|
3308
3308
|
label: l(a)("report.common.apply"),
|
|
3309
3309
|
disabled: !c.value,
|
|
@@ -3350,7 +3350,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3350
3350
|
he(
|
|
3351
3351
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
3352
3352
|
() => {
|
|
3353
|
-
const { rowIds: r, columnIds: f } =
|
|
3353
|
+
const { rowIds: r, columnIds: f } = je(e.value);
|
|
3354
3354
|
e.value.rowIds = r, e.value.columnIds = f;
|
|
3355
3355
|
},
|
|
3356
3356
|
{ deep: !0 }
|