@feedmepos/mf-report 5.22.13-beta.1 → 5.22.14-beta.2
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 +294 -0
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CzbeFyTt.js → BaseDialog.vue_vue_type_script_setup_true_lang-CcKWqqNP.js} +471 -464
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-B06jDFgJ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CryPHoYr.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BTCBYTaC.js → Default.vue_vue_type_script_setup_true_lang-DU3zkEF1.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-Ccr5PmzE.js → FilterSelector.vue_vue_type_script_setup_true_lang-CyW-5xr4.js} +7 -7
- package/dist/{InsightView-C0TwLCJv.js → InsightView-DAnaBH3D.js} +6 -6
- package/dist/{Integration-BFEaM0Wz.js → Integration-DiNs52W5.js} +5 -5
- package/dist/{Integrations-CG-ygqKI.js → Integrations-BvgLRF5N.js} +5 -5
- package/dist/{Layout-D6kcGEx6.js → Layout-BAYV4nCo.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D3EZc4Vp.js → MenuTab.vue_vue_type_script_setup_true_lang-BZphMQGv.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CpMCe0cN.js → NavigationTab.vue_vue_type_script_setup_true_lang-DSTG-gQ3.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DdX25Qgn.js → NoData.vue_vue_type_script_setup_true_lang-zS79GrjC.js} +1 -1
- package/dist/{OverviewView-ATC5S46N.js → OverviewView-CvRMdLbB.js} +5 -5
- package/dist/{Report-CVNA4oKn.js → Report-C6445626.js} +164 -154
- package/dist/{ReportEditor-ZXjzIVWj.js → ReportEditor-Cy8f2WFu.js} +6 -6
- package/dist/{ReportView-C0vzCbYY.js → ReportView-D-T3b10U.js} +9 -9
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BHVPbR3l.js → SelectComponent.vue_vue_type_script_setup_true_lang-CYDZzbCU.js} +1 -1
- package/dist/{Setting-BfR6T0tE.js → Setting-DBzyuCx-.js} +5 -5
- package/dist/{TileEditor-BQDzUwav.js → TileEditor-CWYE5X71.js} +275 -268
- package/dist/{TransitionFade-DlAa1-mg.js → TransitionFade-DwQjFIYA.js} +101 -99
- package/dist/{access-Dw5cDt65-DpLiFTpm.js → access-Dw5cDt65-C2c0R9q4.js} +1 -1
- package/dist/{app-tS9-0m0b.js → app-BRv3iLF1.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-CtCG_oop.js → formatChartData.worker-Df5ziPQ2.js} +7 -7
- package/dist/assets/{processTableData.worker-BN2TZ-50.js → processTableData.worker-qpA30azs.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/{useReportPermission-DEI1PTJT.js → useReportPermission-CDWkdi6R.js} +2 -2
- package/dist/{useRestaurantPermission-DTzkzgml.js → useRestaurantPermission-CjG_t7dK.js} +2 -2
- package/dist/{vue-i18n-BxRs360O.js → vue-i18n-ComGWqEb.js} +1 -1
- package/package.json +1 -1
- package/dist/App-pXGWlg3l.js +0 -264
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as se, mergeModels as ve, useModel as ge, computed as T, ref as
|
|
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-
|
|
5
|
-
import { storeToRefs as
|
|
3
|
+
import { h as Nl, d as Ie, S as We, _ as Ol, W as jl, b as zl, T as Il, a as Rl } from "./TransitionFade-DwQjFIYA.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-CcKWqqNP.js";
|
|
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, j as
|
|
8
|
+
import { a as fe, _ as pl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CYDZzbCU.js";
|
|
9
|
+
import { u as ce, j as $e, b as vl } from "./vue-i18n-ComGWqEb.js";
|
|
10
10
|
import { r as me } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { g as
|
|
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-CyW-5xr4.js";
|
|
12
|
+
import { d as je } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CryPHoYr.js";
|
|
13
|
+
import { d as Me } from "./app-BRv3iLF1.js";
|
|
14
|
+
import { _ as gl } from "./NoData.vue_vue_type_script_setup_true_lang-zS79GrjC.js";
|
|
15
15
|
const Re = [
|
|
16
16
|
{
|
|
17
17
|
type: H.Circular,
|
|
@@ -183,7 +183,7 @@ const Re = [
|
|
|
183
183
|
}),
|
|
184
184
|
emits: ["update:modelValue"],
|
|
185
185
|
setup(B) {
|
|
186
|
-
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, { schemas: w } =
|
|
186
|
+
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, { schemas: w } = Se(dl()), V = T(
|
|
187
187
|
() => w.value.map((b) => ({
|
|
188
188
|
label: b.label,
|
|
189
189
|
value: b.name,
|
|
@@ -196,7 +196,7 @@ const Re = [
|
|
|
196
196
|
const b = i.value.schemaNames[0], x = w.value.find(($) => $.name === b), O = ((x == null ? void 0 : x.joins) || []).map(($) => $);
|
|
197
197
|
return V.value.filter(($) => O.includes($.raw.name));
|
|
198
198
|
}
|
|
199
|
-
}), _ =
|
|
199
|
+
}), _ = Z(!1), S = Z(""), o = Z(), r = Wl();
|
|
200
200
|
function f(b) {
|
|
201
201
|
var x;
|
|
202
202
|
return me(
|
|
@@ -319,29 +319,29 @@ const Re = [
|
|
|
319
319
|
}),
|
|
320
320
|
emits: ["update:modelValue"],
|
|
321
321
|
setup(B) {
|
|
322
|
-
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, w = T(() => p(`report.section.dimension.${a.label}`)), V =
|
|
322
|
+
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, w = T(() => p(`report.section.dimension.${a.label}`)), V = Z(!1), v = T(
|
|
323
323
|
() => i.value.map((m, s) => ({
|
|
324
324
|
index: s,
|
|
325
325
|
labels: [m.label || m.name],
|
|
326
326
|
value: m
|
|
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, z;
|
|
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
|
-
moveToColumn: (((d = a.config) == null ? void 0 : d.columnIds) || []).includes(
|
|
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 || (z = o.value) != null && z.displayFormula), o.value && o.value.formatter === void 0 && (a.options.find(
|
|
338
338
|
(le) => {
|
|
339
|
-
var te,
|
|
340
|
-
return le.schemaName === ((te = o.value) == null ? void 0 : te.schemaName) && le.name === ((
|
|
339
|
+
var te, K;
|
|
340
|
+
return le.schemaName === ((te = o.value) == null ? void 0 : te.schemaName) && le.name === ((K = o.value) == null ? void 0 : K.name);
|
|
341
341
|
}
|
|
342
342
|
), m != null && m.value.timeFormatter && o.value.formatter === void 0 && (o.value.formatter = m == null ? void 0 : m.value.timeFormatter, o.value.timeFormatter = void 0));
|
|
343
343
|
}
|
|
344
|
-
const o =
|
|
344
|
+
const o = Z(void 0), r = Z(!1), f = T(
|
|
345
345
|
() => a.options.find(
|
|
346
346
|
(m) => {
|
|
347
347
|
var s, d;
|
|
@@ -384,14 +384,14 @@ 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, z) => z !== m);
|
|
388
388
|
i.value = d;
|
|
389
389
|
}
|
|
390
390
|
function O(m) {
|
|
391
391
|
o.value && (o.value.decimal = Number(m));
|
|
392
392
|
}
|
|
393
393
|
function $(m) {
|
|
394
|
-
const s = `report.section.filter.${
|
|
394
|
+
const s = `report.section.filter.${$e(m)}`;
|
|
395
395
|
return e(s) ? p(s) : me(p, e, m, "field");
|
|
396
396
|
}
|
|
397
397
|
function c(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"), z = 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,
|
|
@@ -431,95 +431,95 @@ const Re = [
|
|
|
431
431
|
items: n.value,
|
|
432
432
|
placeholder: w.value,
|
|
433
433
|
label: w.value,
|
|
434
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
434
|
+
"onUpdate:modelValue": s[0] || (s[0] = (Q) => A(Q))
|
|
435
435
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
436
436
|
o.value ? (g(), R(de, { key: 0 }, [
|
|
437
437
|
u(d, {
|
|
438
438
|
modelValue: o.value.label,
|
|
439
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
439
|
+
"onUpdate:modelValue": s[1] || (s[1] = (Q) => o.value.label = Q),
|
|
440
440
|
label: l(p)("report.section.dimension.label")
|
|
441
441
|
}, null, 8, ["modelValue", "label"]),
|
|
442
442
|
(((G = f.value) == null ? void 0 : G.dimensionOptions) || []).length > 0 ? (g(), N(fe, {
|
|
443
443
|
key: 0,
|
|
444
444
|
modelValue: o.value.option,
|
|
445
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
446
|
-
items: ((ae = f.value) == null ? void 0 : ae.dimensionOptions.map((
|
|
447
|
-
label: $(
|
|
448
|
-
value:
|
|
445
|
+
"onUpdate:modelValue": s[2] || (s[2] = (Q) => o.value.option = Q),
|
|
446
|
+
items: ((ae = f.value) == null ? void 0 : ae.dimensionOptions.map((Q) => ({
|
|
447
|
+
label: $(Q),
|
|
448
|
+
value: Q
|
|
449
449
|
}))) ?? []
|
|
450
450
|
}, null, 8, ["modelValue", "items"])) : M("", !0),
|
|
451
451
|
(W = f.value) != null && W.isNumericType ? (g(), N(y, {
|
|
452
452
|
key: 1,
|
|
453
453
|
label: l(p)("report.common.decimal"),
|
|
454
454
|
"model-value": ((pe = o.value) == null ? void 0 : pe.decimal) ?? 2,
|
|
455
|
-
"onUpdate:modelValue": s[3] || (s[3] = (
|
|
456
|
-
O(
|
|
455
|
+
"onUpdate:modelValue": s[3] || (s[3] = (Q) => {
|
|
456
|
+
O(Q);
|
|
457
457
|
})
|
|
458
458
|
}, null, 8, ["label", "model-value"])) : M("", !0),
|
|
459
459
|
(be = f.value) != null && be.isNumericType ? (g(), N(fe, {
|
|
460
460
|
key: 2,
|
|
461
461
|
modelValue: o.value.formatter,
|
|
462
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
462
|
+
"onUpdate:modelValue": s[4] || (s[4] = (Q) => o.value.formatter = Q),
|
|
463
463
|
placeholder: l(p)("report.section.dimension.formatter"),
|
|
464
464
|
label: l(p)("report.section.dimension.formatter"),
|
|
465
465
|
items: [
|
|
466
466
|
{ label: l(p)("report.section.metric.formatterType.NONE"), value: null },
|
|
467
|
-
...(((Be = f.value) == null ? void 0 : Be.formatters) || []).map((
|
|
468
|
-
label: c(
|
|
469
|
-
value:
|
|
467
|
+
...(((Be = f.value) == null ? void 0 : Be.formatters) || []).map((Q) => ({
|
|
468
|
+
label: c(Q),
|
|
469
|
+
value: Q
|
|
470
470
|
}))
|
|
471
471
|
]
|
|
472
472
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : M("", !0),
|
|
473
|
-
C.value ? (g(), N(
|
|
473
|
+
C.value ? (g(), N(z, {
|
|
474
474
|
key: 3,
|
|
475
475
|
"model-value": o.value.fillGap ?? !1,
|
|
476
476
|
label: l(p)("report.section.dimension.fillGap"),
|
|
477
477
|
value: "",
|
|
478
478
|
placeholder: "Fill gap",
|
|
479
|
-
"onUpdate:modelValue": s[5] || (s[5] = (
|
|
480
|
-
o.value && (o.value.fillGap = t(
|
|
479
|
+
"onUpdate:modelValue": s[5] || (s[5] = (Q) => {
|
|
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(z, {
|
|
484
484
|
key: 4,
|
|
485
485
|
"model-value": o.value.dateComparison ?? !1,
|
|
486
486
|
label: l(p)("report.section.dimension.dateComparison"),
|
|
487
487
|
value: "",
|
|
488
|
-
"onUpdate:modelValue": s[6] || (s[6] = (
|
|
489
|
-
o.value && (o.value.dateComparison = t(
|
|
488
|
+
"onUpdate:modelValue": s[6] || (s[6] = (Q) => {
|
|
489
|
+
o.value && (o.value.dateComparison = t(Q));
|
|
490
490
|
})
|
|
491
491
|
}, null, 8, ["model-value", "label"])) : M("", !0),
|
|
492
|
-
u(
|
|
492
|
+
u(z, {
|
|
493
493
|
modelValue: o.value.hide,
|
|
494
|
-
"onUpdate:modelValue": s[7] || (s[7] = (
|
|
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(z, {
|
|
499
499
|
key: 5,
|
|
500
500
|
"model-value": o.value.moveToColumn ?? !1,
|
|
501
501
|
label: l(p)("report.section.dimension.moveToColumn"),
|
|
502
502
|
value: "",
|
|
503
|
-
"onUpdate:modelValue": s[8] || (s[8] = (
|
|
504
|
-
o.value && (o.value.moveToColumn = t(
|
|
503
|
+
"onUpdate:modelValue": s[8] || (s[8] = (Q) => {
|
|
504
|
+
o.value && (o.value.moveToColumn = t(Q));
|
|
505
505
|
})
|
|
506
506
|
}, null, 8, ["model-value", "label"])) : M("", !0),
|
|
507
|
-
u(
|
|
507
|
+
u(z, {
|
|
508
508
|
modelValue: r.value,
|
|
509
|
-
"onUpdate:modelValue": s[9] || (s[9] = (
|
|
509
|
+
"onUpdate:modelValue": s[9] || (s[9] = (Q) => r.value = Q),
|
|
510
510
|
label: l(p)("report.section.dimension.advance"),
|
|
511
511
|
value: !0
|
|
512
512
|
}, null, 8, ["modelValue", "label"]),
|
|
513
513
|
r.value ? (g(), N(le, {
|
|
514
514
|
key: 6,
|
|
515
515
|
modelValue: o.value.dataFormula,
|
|
516
|
-
"onUpdate:modelValue": s[10] || (s[10] = (
|
|
516
|
+
"onUpdate:modelValue": s[10] || (s[10] = (Q) => o.value.dataFormula = Q),
|
|
517
517
|
placeholder: l(p)("report.section.dimension.dataFormula")
|
|
518
518
|
}, null, 8, ["modelValue", "placeholder"])) : M("", !0),
|
|
519
519
|
r.value ? (g(), N(le, {
|
|
520
520
|
key: 7,
|
|
521
521
|
modelValue: o.value.displayFormula,
|
|
522
|
-
"onUpdate:modelValue": s[11] || (s[11] = (
|
|
522
|
+
"onUpdate:modelValue": s[11] || (s[11] = (Q) => o.value.displayFormula = Q),
|
|
523
523
|
placeholder: l(p)("report.section.dimension.displayFormula")
|
|
524
524
|
}, null, 8, ["modelValue", "placeholder"])) : M("", !0)
|
|
525
525
|
], 64)) : M("", !0)
|
|
@@ -538,7 +538,7 @@ const Re = [
|
|
|
538
538
|
default: q(() => [
|
|
539
539
|
u(l(Ie), {
|
|
540
540
|
list: i.value,
|
|
541
|
-
"item-key": (G) => l(
|
|
541
|
+
"item-key": (G) => l(Te)(G),
|
|
542
542
|
class: "flex flex-col gap-2"
|
|
543
543
|
}, {
|
|
544
544
|
item: q(({ element: G, index: ae }) => [
|
|
@@ -547,7 +547,7 @@ const Re = [
|
|
|
547
547
|
onClick: ye((W) => S(v.value[ae]), ["stop"])
|
|
548
548
|
}, {
|
|
549
549
|
default: q(() => [
|
|
550
|
-
u(
|
|
550
|
+
u(K, { name: "drag_handle" }),
|
|
551
551
|
h("p", nt, Y(l(me)(l(p), l(e), G.label, "other")), 1),
|
|
552
552
|
s[14] || (s[14] = h("div", { class: "grow" }, null, -1)),
|
|
553
553
|
u(re, {
|
|
@@ -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 } = ze(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 } = ze(a);
|
|
616
616
|
return {
|
|
617
617
|
...a,
|
|
618
618
|
rowIds: w,
|
|
@@ -623,8 +623,8 @@ function st(B) {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
const p = B.dimensions.filter((V) => V.hide !== !0 && !V.moveToColumn).map((V) =>
|
|
626
|
+
function ze(B) {
|
|
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 = [];
|
|
630
630
|
for (const V of p)
|
|
@@ -672,13 +672,13 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
672
672
|
setup(B, { emit: p }) {
|
|
673
673
|
const { t: e, te: i } = ce(), a = ge(B, "modelValue"), w = B;
|
|
674
674
|
T(() => !!w.max && a.value.length === w.max);
|
|
675
|
-
const V = T(() => e(`report.section.metric.${w.label}`)), v =
|
|
675
|
+
const V = T(() => e(`report.section.metric.${w.label}`)), v = Z(!1), _ = T(
|
|
676
676
|
() => a.value.map((t, n) => ({
|
|
677
677
|
index: n,
|
|
678
678
|
labels: [t.label || t.name],
|
|
679
679
|
value: t
|
|
680
680
|
}))
|
|
681
|
-
), S =
|
|
681
|
+
), S = Z(a.value.length > 0 ? 0 : void 0);
|
|
682
682
|
function o(t) {
|
|
683
683
|
var n, m, s;
|
|
684
684
|
v.value = !0, r.value = t != null && t.value ? JSON.parse(
|
|
@@ -688,12 +688,12 @@ 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, z;
|
|
692
|
+
return d.schemaName === ((y = r.value) == null ? void 0 : y.schemaName) && d.name === ((z = r.value) == null ? void 0 : z.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
|
}
|
|
696
|
-
const r =
|
|
696
|
+
const r = Z(void 0), f = Z(!1), C = T(
|
|
697
697
|
() => w.options.find(
|
|
698
698
|
(t) => {
|
|
699
699
|
var n, m;
|
|
@@ -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"), z = 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(z, {
|
|
755
755
|
ref: "form",
|
|
756
756
|
class: "flex flex-col gap-2 w-[490px]"
|
|
757
757
|
}, {
|
|
@@ -863,7 +863,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
863
863
|
class: "flex flex-col gap-2 w-full"
|
|
864
864
|
}, {
|
|
865
865
|
item: q(({ element: L, index: I }) => [
|
|
866
|
-
u(
|
|
866
|
+
u(K, {
|
|
867
867
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
868
868
|
onClick: ye((G) => o(_.value[I]), ["stop"])
|
|
869
869
|
}, {
|
|
@@ -917,7 +917,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
917
917
|
}),
|
|
918
918
|
emits: ["update:modelValue"],
|
|
919
919
|
setup(B) {
|
|
920
|
-
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, w = T(() => p(`report.section.sort.${a.label}`)), V =
|
|
920
|
+
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, w = T(() => p(`report.section.sort.${a.label}`)), V = Z(!1), v = T(
|
|
921
921
|
() => i.value.map(($, c) => {
|
|
922
922
|
const t = a.options.find(
|
|
923
923
|
(m) => m.schemaName === $.schemaName && m.name === $.name
|
|
@@ -928,12 +928,12 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
928
928
|
value: $
|
|
929
929
|
};
|
|
930
930
|
})
|
|
931
|
-
), _ =
|
|
931
|
+
), _ = Z(i.value.length > 0 ? 0 : void 0);
|
|
932
932
|
function S($) {
|
|
933
933
|
var c;
|
|
934
934
|
V.value = !0, o.value = $ != null && $.value ? JSON.parse(JSON.stringify($.value)) : void 0, _.value = $ == null ? void 0 : $.index, r.value = !!((c = o.value) != null && c.dataFormula);
|
|
935
935
|
}
|
|
936
|
-
const o =
|
|
936
|
+
const o = Z(void 0), r = Z(!1), f = T(
|
|
937
937
|
() => a.options.find(
|
|
938
938
|
($) => {
|
|
939
939
|
var c, t;
|
|
@@ -964,7 +964,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
964
964
|
c.splice($, 1), i.value = c, V.value = !1;
|
|
965
965
|
}
|
|
966
966
|
function x($) {
|
|
967
|
-
const c = `report.section.filter.${
|
|
967
|
+
const c = `report.section.filter.${$e($)}`;
|
|
968
968
|
return e(c) ? p(c) : me(p, e, $, "field");
|
|
969
969
|
}
|
|
970
970
|
const O = T(
|
|
@@ -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"), z = D("FmList"), le = D("FmField");
|
|
978
978
|
return g(), R("div", pt, [
|
|
979
979
|
u(De, {
|
|
980
980
|
modelValue: V.value,
|
|
@@ -988,7 +988,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
988
988
|
class: "flex flex-col gap-2 w-[490px]"
|
|
989
989
|
}, {
|
|
990
990
|
default: q(() => {
|
|
991
|
-
var te,
|
|
991
|
+
var te, K, re, ne;
|
|
992
992
|
return [
|
|
993
993
|
u(fe, {
|
|
994
994
|
"model-value": f.value,
|
|
@@ -1002,7 +1002,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
modelValue: o.value.dimensionOption,
|
|
1004
1004
|
"onUpdate:modelValue": c[1] || (c[1] = (L) => o.value.dimensionOption = L),
|
|
1005
|
-
items: ((
|
|
1005
|
+
items: ((K = f.value) == null ? void 0 : K.dimensionOptions.map((L) => ({
|
|
1006
1006
|
label: x(L),
|
|
1007
1007
|
value: L
|
|
1008
1008
|
}))) ?? [],
|
|
@@ -1054,27 +1054,27 @@ 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(z, null, {
|
|
1058
1058
|
default: q(() => [
|
|
1059
1059
|
u(l(Ie), {
|
|
1060
1060
|
list: i.value,
|
|
1061
1061
|
"item-key": "id",
|
|
1062
1062
|
class: "flex flex-col gap-2 w-full"
|
|
1063
1063
|
}, {
|
|
1064
|
-
item: q(({ element: te, index:
|
|
1064
|
+
item: q(({ element: te, index: K }) => [
|
|
1065
1065
|
u(y, {
|
|
1066
1066
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1067
|
-
onClick: ye((re) => S(v.value[
|
|
1067
|
+
onClick: ye((re) => S(v.value[K]), ["stop"])
|
|
1068
1068
|
}, {
|
|
1069
1069
|
default: q(() => [
|
|
1070
1070
|
u(s, { name: "drag_handle" }),
|
|
1071
|
-
h("p", gt, Y(v.value[
|
|
1071
|
+
h("p", gt, Y(v.value[K].label), 1),
|
|
1072
1072
|
c[8] || (c[8] = h("div", { class: "grow" }, null, -1)),
|
|
1073
1073
|
u(d, {
|
|
1074
1074
|
icon: "close",
|
|
1075
1075
|
size: "md",
|
|
1076
1076
|
variant: "tertiary",
|
|
1077
|
-
onClick: ye((re) => b(
|
|
1077
|
+
onClick: ye((re) => b(K), ["stop"])
|
|
1078
1078
|
}, null, 8, ["onClick"])
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 2
|
|
@@ -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 = je((a) => {
|
|
1111
1111
|
a !== "" ? e.value = a : e.value = null;
|
|
1112
1112
|
}, 1e3);
|
|
1113
1113
|
return (a, w) => {
|
|
@@ -1147,13 +1147,13 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1147
1147
|
}),
|
|
1148
1148
|
emits: ["update:modelValue"],
|
|
1149
1149
|
setup(B) {
|
|
1150
|
-
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, w = T(() => p(`report.section.condition.${a.label}`)), V =
|
|
1150
|
+
const { t: p, te: e } = ce(), i = ge(B, "modelValue"), a = B, w = T(() => p(`report.section.condition.${a.label}`)), V = Z(!1), v = T(
|
|
1151
1151
|
() => i.value.map((c, t) => {
|
|
1152
1152
|
var s, d;
|
|
1153
1153
|
const n = a.joinFieldOptions.find(
|
|
1154
1154
|
(y) => {
|
|
1155
|
-
var
|
|
1156
|
-
return y.schemaName === ((
|
|
1155
|
+
var z, le;
|
|
1156
|
+
return y.schemaName === ((z = c.joinDimension) == null ? void 0 : z.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,
|
|
@@ -1165,7 +1165,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1165
1165
|
value: c
|
|
1166
1166
|
};
|
|
1167
1167
|
})
|
|
1168
|
-
), _ =
|
|
1168
|
+
), _ = Z(i.value.length > 0 ? 0 : void 0);
|
|
1169
1169
|
function S(c) {
|
|
1170
1170
|
c ? (o.value = c != null && c.value ? JSON.parse(JSON.stringify(c.value)) : void 0, _.value = c == null ? void 0 : c.index) : (o.value = {
|
|
1171
1171
|
joinDimension: null,
|
|
@@ -1173,7 +1173,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1173
1173
|
mainDimensions: []
|
|
1174
1174
|
}, _.value = void 0), V.value = !0;
|
|
1175
1175
|
}
|
|
1176
|
-
const o =
|
|
1176
|
+
const o = Z(void 0), r = T(
|
|
1177
1177
|
() => a.joinFieldOptions.find(
|
|
1178
1178
|
(c) => {
|
|
1179
1179
|
var t, n;
|
|
@@ -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"), z = D("FmList"), le = D("FmField");
|
|
1255
1255
|
return g(), R("div", wt, [
|
|
1256
1256
|
u(De, {
|
|
1257
1257
|
modelValue: V.value,
|
|
@@ -1265,7 +1265,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1265
1265
|
class: "flex flex-col gap-2 w-[490px]"
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: q(() => {
|
|
1268
|
-
var te,
|
|
1268
|
+
var te, K, re, ne, L;
|
|
1269
1269
|
return [
|
|
1270
1270
|
u(fe, {
|
|
1271
1271
|
label: l(p)("report.section.condition.joinDatasource"),
|
|
@@ -1275,13 +1275,13 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1275
1275
|
"onUpdate:modelValue": t[0] || (t[0] = (I) => A(I))
|
|
1276
1276
|
}, null, 8, ["label", "model-value", "items", "placeholder"]),
|
|
1277
1277
|
u(n),
|
|
1278
|
-
(te = o.value) != null && te.joinDimension && (((
|
|
1278
|
+
(te = o.value) != null && te.joinDimension && (((K = r.value) == null ? void 0 : K.dimensionOptions) || []).length > 0 ? (g(), N(fe, {
|
|
1279
1279
|
key: 0,
|
|
1280
1280
|
modelValue: o.value.joinDimension.option,
|
|
1281
1281
|
"onUpdate:modelValue": t[1] || (t[1] = (I) => o.value.joinDimension.option = I),
|
|
1282
1282
|
label: l(p)("report.section.condition.format"),
|
|
1283
1283
|
items: ((re = r.value) == null ? void 0 : re.dimensionOptions.map((I) => ({
|
|
1284
|
-
label: l(e)(`report.section.filter.${l(
|
|
1284
|
+
label: l(e)(`report.section.filter.${l($e)(I)}`) ? l(p)(`report.section.filter.${l($e)(I)}`) : I,
|
|
1285
1285
|
value: I
|
|
1286
1286
|
}))) ?? []
|
|
1287
1287
|
}, null, 8, ["modelValue", "label", "items"])) : M("", !0),
|
|
@@ -1315,7 +1315,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1315
1315
|
modelValue: I.option,
|
|
1316
1316
|
"onUpdate:modelValue": (pe) => I.option = pe,
|
|
1317
1317
|
items: (W = f.value[G]) == null ? void 0 : W.dimensionOptions.map((pe) => ({
|
|
1318
|
-
label: l(e)(`report.section.filter.${l(
|
|
1318
|
+
label: l(e)(`report.section.filter.${l($e)(pe)}`) ? l(p)(`report.section.filter.${l($e)(pe)}`) : pe,
|
|
1319
1319
|
value: pe
|
|
1320
1320
|
}))
|
|
1321
1321
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : M("", !0),
|
|
@@ -1333,30 +1333,30 @@ 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(z, { class: "flex flex-col gap-2" }, {
|
|
1337
1337
|
default: q(() => [
|
|
1338
1338
|
u(l(Ie), {
|
|
1339
1339
|
list: i.value,
|
|
1340
1340
|
"item-key": (te) => {
|
|
1341
|
-
var
|
|
1342
|
-
return `${(
|
|
1341
|
+
var K, re;
|
|
1342
|
+
return `${(K = te.joinDimension) == null ? void 0 : K.schemaName}:${(re = te.joinDimension) == null ? void 0 : re.name}`;
|
|
1343
1343
|
},
|
|
1344
1344
|
class: "flex flex-col gap-2 w-full"
|
|
1345
1345
|
}, {
|
|
1346
|
-
item: q(({ element: te, index:
|
|
1346
|
+
item: q(({ element: te, index: K }) => [
|
|
1347
1347
|
u(y, {
|
|
1348
1348
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1349
|
-
onClick: ye((re) => S(v.value[
|
|
1349
|
+
onClick: ye((re) => S(v.value[K]), ["stop"])
|
|
1350
1350
|
}, {
|
|
1351
1351
|
default: q(() => [
|
|
1352
1352
|
u(s, { name: "drag_handle" }),
|
|
1353
|
-
h("p", Ft, Y(v.value[
|
|
1353
|
+
h("p", Ft, Y(v.value[K].label), 1),
|
|
1354
1354
|
t[4] || (t[4] = h("div", { class: "grow" }, null, -1)),
|
|
1355
1355
|
u(d, {
|
|
1356
1356
|
icon: "close",
|
|
1357
1357
|
size: "md",
|
|
1358
1358
|
variant: "tertiary",
|
|
1359
|
-
onClick: ye((re) => $(
|
|
1359
|
+
onClick: ye((re) => $(K), ["stop"])
|
|
1360
1360
|
}, null, 8, ["onClick"])
|
|
1361
1361
|
]),
|
|
1362
1362
|
_: 2
|
|
@@ -1414,12 +1414,12 @@ 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 } = ze(a.value);
|
|
1418
1418
|
a.value.rowIds = t, a.value.columnIds = n;
|
|
1419
1419
|
},
|
|
1420
1420
|
{ deep: !0 }
|
|
1421
1421
|
);
|
|
1422
|
-
const w = B, V = p, { schemas: v } =
|
|
1422
|
+
const w = B, V = p, { schemas: v } = Se(dl());
|
|
1423
1423
|
Dl(() => {
|
|
1424
1424
|
e(), i();
|
|
1425
1425
|
});
|
|
@@ -1428,7 +1428,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1428
1428
|
), C = T(() => {
|
|
1429
1429
|
const t = [...a.value.dimensions].filter((n) => !n.hide);
|
|
1430
1430
|
return t.sort(
|
|
1431
|
-
(n, m) => (a.value.rowIds || []).indexOf(
|
|
1431
|
+
(n, m) => (a.value.rowIds || []).indexOf(Te(n)) - (a.value.rowIds || []).indexOf(Te(m))
|
|
1432
1432
|
), t;
|
|
1433
1433
|
}), A = T(() => w.config.type === H.Scorecard), b = T(
|
|
1434
1434
|
() => {
|
|
@@ -1472,7 +1472,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1472
1472
|
value: n + 1
|
|
1473
1473
|
}))
|
|
1474
1474
|
]), $ = T(
|
|
1475
|
-
() => `rollup-${o.value}-${C.value.map((t) =>
|
|
1475
|
+
() => `rollup-${o.value}-${C.value.map((t) => Te(t)).join("|")}`
|
|
1476
1476
|
), c = T(() => [
|
|
1477
1477
|
{
|
|
1478
1478
|
label: _("report.section.datasource.none"),
|
|
@@ -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" }, jt = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, zt = { 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({
|
|
@@ -1796,7 +1796,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1796
1796
|
},
|
|
1797
1797
|
emits: ["update:layout"],
|
|
1798
1798
|
setup(B, { emit: p }) {
|
|
1799
|
-
const { t: e } = ce(), i = B, a = p, { isEditing: w, colWidths: V, rowHeight: v } =
|
|
1799
|
+
const { t: e } = ce(), i = B, a = p, { isEditing: w, colWidths: V, rowHeight: v } = Se(Oe()), { enableCellResizing: _, cancelResizingChanges: S, resetStore: o, disableEditMode: r } = Oe();
|
|
1800
1800
|
T(
|
|
1801
1801
|
() => {
|
|
1802
1802
|
var C, A, b;
|
|
@@ -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", jt, Y(l(e)("report.section.datasource.tableLayout")), 1),
|
|
1832
|
+
h("div", zt, [
|
|
1833
1833
|
l(w) ? M("", !0) : (g(), N(b, {
|
|
1834
1834
|
key: 0,
|
|
1835
1835
|
label: l(e)("report.section.datasource.resizeTable"),
|
|
@@ -1877,10 +1877,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
1877
1877
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
|
|
1878
1878
|
setup(B, { emit: p }) {
|
|
1879
1879
|
var n, m;
|
|
1880
|
-
const e = vl(), { dateRange: i, timezone: a } =
|
|
1880
|
+
const e = vl(), { dateRange: i, timezone: a } = Se(e), w = {
|
|
1881
1881
|
startDate: i.value.startDate,
|
|
1882
1882
|
endDate: i.value.endDate
|
|
1883
|
-
}, V =
|
|
1883
|
+
}, V = Z({
|
|
1884
1884
|
startDate: (n = Me(i.value.startDate)) == null ? void 0 : n.tz(a.value).format(il),
|
|
1885
1885
|
endDate: (m = Me(i.value.endDate)) == null ? void 0 : m.tz(a.value).format(il)
|
|
1886
1886
|
});
|
|
@@ -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({ ...zl(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, z = 1;
|
|
1937
1937
|
switch (s) {
|
|
1938
1938
|
case H.Scorecard:
|
|
1939
|
-
y = 1,
|
|
1939
|
+
y = 1, z = 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, z = 6;
|
|
1947
1947
|
break;
|
|
1948
1948
|
case H.Table:
|
|
1949
|
-
y = 4,
|
|
1949
|
+
y = 4, z = 12;
|
|
1950
1950
|
break;
|
|
1951
1951
|
case H.Circular:
|
|
1952
|
-
y = 4,
|
|
1952
|
+
y = 4, z = 4;
|
|
1953
1953
|
break;
|
|
1954
1954
|
case H.Spacer:
|
|
1955
|
-
y = 0,
|
|
1955
|
+
y = 0, z = 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: z
|
|
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 = je((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"), z = 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(z, {
|
|
1999
1999
|
key: `date-picker-${l(C)}`,
|
|
2000
2000
|
modelValue: V.value,
|
|
2001
2001
|
"onUpdate:modelValue": d[0] || (d[0] = (L) => V.value = L)
|
|
@@ -2031,16 +2031,16 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2031
2031
|
"onUpdate:model": d[2] || (d[2] = (L) => v.value.widget.config = L)
|
|
2032
2032
|
}, null, 8, ["model"]),
|
|
2033
2033
|
h("div", {
|
|
2034
|
-
class:
|
|
2034
|
+
class: ke(["flex flex-row", `${l(_).sm || l(_).xs ? "gap-16" : "gap-2"}`])
|
|
2035
2035
|
}, [
|
|
2036
|
-
u(
|
|
2036
|
+
u(K, {
|
|
2037
2037
|
modelValue: v.value.size.width,
|
|
2038
2038
|
"onUpdate:modelValue": d[3] || (d[3] = (L) => v.value.size.width = L),
|
|
2039
2039
|
label: l(f)("report.tile.widget.width"),
|
|
2040
2040
|
min: 1,
|
|
2041
2041
|
max: 12
|
|
2042
2042
|
}, null, 8, ["modelValue", "label"]),
|
|
2043
|
-
u(
|
|
2043
|
+
u(K, {
|
|
2044
2044
|
modelValue: v.value.size.height,
|
|
2045
2045
|
"onUpdate:modelValue": d[4] || (d[4] = (L) => v.value.size.height = L),
|
|
2046
2046
|
label: l(f)("report.tile.widget.height"),
|
|
@@ -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(jl, {
|
|
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 = je((b) => {
|
|
2290
2290
|
i("update:model", { ...e.model, xTitle: b });
|
|
2291
|
-
}, 500), A =
|
|
2291
|
+
}, 500), A = je((b) => {
|
|
2292
2292
|
i("update:model", { ...e.model, yTitle: b });
|
|
2293
2293
|
}, 500);
|
|
2294
2294
|
return He(() => {
|
|
@@ -2460,7 +2460,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2460
2460
|
}
|
|
2461
2461
|
i("update:model", { ...e.model, legendFontSize: Math.min(Number(A), 24) });
|
|
2462
2462
|
}
|
|
2463
|
-
}), S = T(() => e.model.legendColor ?? "#6b6b6b"), o =
|
|
2463
|
+
}), S = T(() => e.model.legendColor ?? "#6b6b6b"), o = Z(S.value), r = Z(null);
|
|
2464
2464
|
he(
|
|
2465
2465
|
() => e.model.legendColor,
|
|
2466
2466
|
(A) => {
|
|
@@ -2594,16 +2594,16 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2594
2594
|
}, Co = { class: "flex flex-col gap-8" }, wo = {
|
|
2595
2595
|
key: 1,
|
|
2596
2596
|
class: "grid grid-cols-1 gap-8 sm:grid-cols-2"
|
|
2597
|
-
}, xo =
|
|
2597
|
+
}, xo = ["title"], Vo = ["aria-label"], Fo = { class: "text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, ko = ["value", "onInput", "onChange"], _o = {
|
|
2598
2598
|
key: 0,
|
|
2599
2599
|
class: "flex items-center gap-8"
|
|
2600
|
-
},
|
|
2600
|
+
}, So = {
|
|
2601
2601
|
key: 2,
|
|
2602
2602
|
class: "flex flex-col gap-8"
|
|
2603
|
-
},
|
|
2603
|
+
}, To = { class: "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-10" }, $o = { class: "mb-8 flex min-w-0 items-center gap-[8px] pb-8" }, Uo = ["title"], Do = ["title"], Bo = ["aria-label"], Ao = { class: "text-[12px] uppercase leading-none tracking-[0.02em]" }, Lo = ["value", "disabled", "onInput", "onChange"], Mo = {
|
|
2604
2604
|
key: 0,
|
|
2605
2605
|
class: "flex items-center gap-8"
|
|
2606
|
-
}, Ve = 10,
|
|
2606
|
+
}, Ve = 10, No = /* @__PURE__ */ se({
|
|
2607
2607
|
__name: "ChartColorSection",
|
|
2608
2608
|
props: {
|
|
2609
2609
|
model: {},
|
|
@@ -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 j, X;
|
|
2648
|
+
return F ? ((j = F.label) == null ? void 0 : j.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, j) => _(U, j));
|
|
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, j = Array.isArray(k) ? k.length : 0;
|
|
2669
|
+
return Math.max(ie.length, U, j, 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
|
-
}), C =
|
|
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), j = Array.isArray(F) ? F.length : 0, X = j > 0 ? Math.ceil(j / 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", j = (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 `#${j(1)}${j(3)}${j(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, j) {
|
|
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
|
-
return k.map((Le,
|
|
2703
|
-
const Pe = c(P,
|
|
2704
|
-
return
|
|
2702
|
+
return k.map((Le, _e) => {
|
|
2703
|
+
const Pe = c(P, _e, X), Ze = _e === 0 ? ue : O(ue, $(_e));
|
|
2704
|
+
return j && _e > 0 ? Ze : m(U == null ? void 0 : U[Pe]) ?? Ze;
|
|
2705
2705
|
});
|
|
2706
2706
|
});
|
|
2707
2707
|
}
|
|
@@ -2713,55 +2713,55 @@ 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), j = k.charAt(2), X = k.charAt(3);
|
|
2717
|
+
return `#${U}${U}${j}${j}${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, j) => ie[j % ie.length]
|
|
2724
|
+
) : Array.from({ length: k }).map((U, j) => {
|
|
2725
|
+
const X = ie[j % ie.length];
|
|
2726
|
+
return m(F[j]) ?? 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), j = /* @__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 && !j.has(P) && (U[E] = P, j.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 (; j.has(X) && X <= k; )
|
|
2741
2741
|
X++;
|
|
2742
|
-
U[E] = Math.min(X, k),
|
|
2742
|
+
U[E] = Math.min(X, k), j.add(U[E]);
|
|
2743
2743
|
}
|
|
2744
2744
|
return U;
|
|
2745
2745
|
}
|
|
2746
2746
|
const y = T(
|
|
2747
2747
|
() => V(e.model.chartColorBinding)
|
|
2748
|
-
),
|
|
2748
|
+
), z = 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) => ({
|
|
2752
2752
|
label: `L${k + 1}`,
|
|
2753
2753
|
value: k + 1
|
|
2754
2754
|
}))
|
|
2755
|
-
),
|
|
2755
|
+
), K = T(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap);
|
|
2756
2756
|
T(
|
|
2757
2757
|
() => s(
|
|
2758
2758
|
e.model.chartColors,
|
|
2759
|
-
y.value === ee.series ?
|
|
2759
|
+
y.value === ee.series ? z.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 ? z.value : S(y.value).length
|
|
2765
2765
|
)
|
|
2766
2766
|
);
|
|
2767
2767
|
const re = T(
|
|
@@ -2775,7 +2775,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2775
2775
|
re.value
|
|
2776
2776
|
)
|
|
2777
2777
|
);
|
|
2778
|
-
const ne =
|
|
2778
|
+
const ne = Z([]), L = Z([]), I = Z([]), G = Z(!0), ae = Z(ee.series), W = Z(!0), pe = Z(!1), be = Z(!1);
|
|
2779
2779
|
he(
|
|
2780
2780
|
[
|
|
2781
2781
|
() => e.model.chartColors,
|
|
@@ -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), j = d(void 0, k), X = ne.value.length === U.length && ne.value.every((J, ue) => J === U[ue]), E = L.value.length === j.length && L.value.every((J, ue) => J === j[ue]), P = t(
|
|
2809
2809
|
Array.from({ length: ie.length }, (J, ue) => `breakdown-${ue + 1}`),
|
|
2810
2810
|
f.value,
|
|
2811
2811
|
void 0,
|
|
@@ -2824,7 +2824,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2824
2824
|
const F = Be();
|
|
2825
2825
|
Sl(F) || i("update:model", F);
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function Q() {
|
|
2828
2828
|
pe.value || be.value || Ae();
|
|
2829
2829
|
}
|
|
2830
2830
|
he(
|
|
@@ -2838,13 +2838,13 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2838
2838
|
A
|
|
2839
2839
|
],
|
|
2840
2840
|
() => {
|
|
2841
|
-
|
|
2841
|
+
Q();
|
|
2842
2842
|
},
|
|
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], j = ie[F % ie.length];
|
|
2847
|
+
U[F] = m(k) ?? j, ne.value = U;
|
|
2848
2848
|
}
|
|
2849
2849
|
function bl(F) {
|
|
2850
2850
|
if (e.limitToSeriesMode)
|
|
@@ -2880,7 +2880,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2880
2880
|
if (U === k) {
|
|
2881
2881
|
const Le = k + Ve;
|
|
2882
2882
|
A.value = Le, I.value = t(
|
|
2883
|
-
Array.from({ length: Le }, (
|
|
2883
|
+
Array.from({ length: Le }, (_e, Pe) => `breakdown-${Pe + 1}`),
|
|
2884
2884
|
f.value,
|
|
2885
2885
|
I.value,
|
|
2886
2886
|
G.value
|
|
@@ -2891,7 +2891,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2891
2891
|
return;
|
|
2892
2892
|
const X = Math.max(1, f.value.length), P = U * X, oe = Ve * X, J = Math.max(ie.length, k - Ve), ue = [...I.value];
|
|
2893
2893
|
ue.splice(P, oe), A.value = J, I.value = t(
|
|
2894
|
-
Array.from({ length: J }, (Le,
|
|
2894
|
+
Array.from({ length: J }, (Le, _e) => `breakdown-${_e + 1}`),
|
|
2895
2895
|
f.value,
|
|
2896
2896
|
ue,
|
|
2897
2897
|
G.value
|
|
@@ -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 j = Number(k);
|
|
2905
|
+
if (!Number.isInteger(j) || j < 1 || j > U)
|
|
2906
2906
|
return;
|
|
2907
2907
|
const X = [...L.value], E = X[F];
|
|
2908
|
-
if (E ===
|
|
2908
|
+
if (E === j)
|
|
2909
2909
|
return;
|
|
2910
2910
|
const P = X.findIndex(
|
|
2911
|
-
(oe, J) => J !== F && oe ===
|
|
2911
|
+
(oe, J) => J !== F && oe === j
|
|
2912
2912
|
);
|
|
2913
|
-
P >= 0 && (X[P] = E), X[F] =
|
|
2913
|
+
P >= 0 && (X[P] = E), X[F] = j, L.value = X;
|
|
2914
2914
|
}
|
|
2915
2915
|
function xl(F, k) {
|
|
2916
2916
|
const U = k.target;
|
|
@@ -2918,14 +2918,14 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2918
2918
|
}
|
|
2919
2919
|
function Vl(F, k) {
|
|
2920
2920
|
const U = k.target;
|
|
2921
|
-
U && (Ge(F, U.value), be.value = !1,
|
|
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 j = U.target;
|
|
2925
|
+
if (!j)
|
|
2926
2926
|
return;
|
|
2927
2927
|
be.value = !0;
|
|
2928
|
-
const X = m(
|
|
2928
|
+
const X = m(j.value);
|
|
2929
2929
|
if (!X)
|
|
2930
2930
|
return;
|
|
2931
2931
|
const E = f.value.length;
|
|
@@ -2940,17 +2940,17 @@ 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 j = U.target;
|
|
2944
|
+
if (!j)
|
|
2945
2945
|
return;
|
|
2946
|
-
const X = m(
|
|
2946
|
+
const X = m(j.value);
|
|
2947
2947
|
if (!X) {
|
|
2948
|
-
be.value = !1,
|
|
2948
|
+
be.value = !1, Q();
|
|
2949
2949
|
return;
|
|
2950
2950
|
}
|
|
2951
2951
|
const E = f.value.length;
|
|
2952
2952
|
if (E <= 0) {
|
|
2953
|
-
be.value = !1,
|
|
2953
|
+
be.value = !1, Q();
|
|
2954
2954
|
return;
|
|
2955
2955
|
}
|
|
2956
2956
|
const P = c(F, k, E), oe = [...I.value];
|
|
@@ -2959,15 +2959,15 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
2959
2959
|
const ue = c(F, J, E);
|
|
2960
2960
|
oe[ue] = O(X, $(J));
|
|
2961
2961
|
}
|
|
2962
|
-
I.value = oe, be.value = !1,
|
|
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 : [], j = Array.isArray(k) ? k : [];
|
|
2966
|
+
return U.length !== j.length ? !1 : U.every((X, E) => X === j[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 : [], j = Array.isArray(k) ? k : [];
|
|
2970
|
+
return U.length !== j.length ? !1 : U.every((X, E) => Number(X) === Number(j[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"), j = 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(j, {
|
|
3024
3024
|
"model-value": ae.value,
|
|
3025
3025
|
items: w.value,
|
|
3026
3026
|
"onUpdate:modelValue": bl
|
|
@@ -3037,13 +3037,20 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3037
3037
|
(g(!0), R(de, null, xe(ne.value, (E, P) => (g(), R(de, {
|
|
3038
3038
|
key: `series-color-${P}`
|
|
3039
3039
|
}, [
|
|
3040
|
-
h("div",
|
|
3040
|
+
h("div", {
|
|
3041
|
+
class: ke([
|
|
3042
|
+
"fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 p-10",
|
|
3043
|
+
K.value ? "flex flex-col gap-8" : "flex items-center justify-between gap-12"
|
|
3044
|
+
])
|
|
3045
|
+
}, [
|
|
3041
3046
|
h("span", {
|
|
3042
|
-
class: "fm-typo-en-body-lg-600 line-clamp-2 break-words",
|
|
3047
|
+
class: ke(["fm-typo-en-body-lg-600 min-w-0", K.value ? "line-clamp-2 break-words" : "flex-1"]),
|
|
3043
3048
|
title: le.value[P] || `${l(a)("report.section.datasource.chartColor.color")} ${P + 1}`
|
|
3044
|
-
}, Y(le.value[P] || `${l(a)("report.section.datasource.chartColor.color")} ${P + 1}`),
|
|
3045
|
-
h("div",
|
|
3046
|
-
|
|
3049
|
+
}, Y(le.value[P] || `${l(a)("report.section.datasource.chartColor.color")} ${P + 1}`), 11, xo),
|
|
3050
|
+
h("div", {
|
|
3051
|
+
class: ke(["flex items-center gap-8", K.value ? "justify-between" : "shrink-0"])
|
|
3052
|
+
}, [
|
|
3053
|
+
K.value ? (g(), N(j, {
|
|
3047
3054
|
key: 0,
|
|
3048
3055
|
class: "min-w-[92px]",
|
|
3049
3056
|
"model-value": L.value[P],
|
|
@@ -3058,18 +3065,18 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3058
3065
|
class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
|
|
3059
3066
|
style: Ee({ backgroundColor: E })
|
|
3060
3067
|
}, null, 4),
|
|
3061
|
-
h("span",
|
|
3068
|
+
h("span", Fo, Y(E), 1),
|
|
3062
3069
|
h("input", {
|
|
3063
3070
|
type: "color",
|
|
3064
3071
|
value: E,
|
|
3065
3072
|
class: "absolute inset-0 cursor-pointer opacity-0",
|
|
3066
3073
|
onInput: (oe) => xl(P, oe),
|
|
3067
3074
|
onChange: (oe) => Vl(P, oe)
|
|
3068
|
-
}, null, 40,
|
|
3069
|
-
], 8,
|
|
3070
|
-
])
|
|
3071
|
-
]),
|
|
3072
|
-
Qe(P) ? (g(), R("div",
|
|
3075
|
+
}, null, 40, ko)
|
|
3076
|
+
], 8, Vo)
|
|
3077
|
+
], 2)
|
|
3078
|
+
], 2),
|
|
3079
|
+
Qe(P) ? (g(), R("div", _o, [
|
|
3073
3080
|
u(U, {
|
|
3074
3081
|
class: "w-full",
|
|
3075
3082
|
size: "md",
|
|
@@ -3078,16 +3085,16 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3078
3085
|
}, null, 8, ["icon", "onClick"])
|
|
3079
3086
|
])) : M("", !0)
|
|
3080
3087
|
], 64))), 128))
|
|
3081
|
-
])) : (g(), R("div",
|
|
3088
|
+
])) : (g(), R("div", So, [
|
|
3082
3089
|
(g(!0), R(de, null, xe(x.value, (E, P) => (g(), R(de, {
|
|
3083
3090
|
key: `breakdown-group-${P}`
|
|
3084
3091
|
}, [
|
|
3085
|
-
h("div",
|
|
3086
|
-
h("div",
|
|
3092
|
+
h("div", To, [
|
|
3093
|
+
h("div", $o, [
|
|
3087
3094
|
h("span", {
|
|
3088
3095
|
class: "fm-typo-en-body-lg-600 min-w-0 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
3089
3096
|
title: E
|
|
3090
|
-
}, Y(E), 9,
|
|
3097
|
+
}, Y(E), 9, Uo)
|
|
3091
3098
|
]),
|
|
3092
3099
|
(g(!0), R(de, null, xe(f.value, (oe, J) => (g(), R("div", {
|
|
3093
3100
|
key: `${E}-${oe}-${J}`,
|
|
@@ -3096,9 +3103,9 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3096
3103
|
h("span", {
|
|
3097
3104
|
class: "fm-typo-en-body-md-400 min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
3098
3105
|
title: oe
|
|
3099
|
-
}, Y(oe), 9,
|
|
3106
|
+
}, Y(oe), 9, Do),
|
|
3100
3107
|
h("label", {
|
|
3101
|
-
class:
|
|
3108
|
+
class: ke(["relative inline-flex min-h-[34px] w-full max-w-[126px] items-center gap-[8px] rounded-[8px] border border-[#d8d8d8] bg-white py-[4px] pl-[4px] pr-[8px]", {
|
|
3102
3109
|
"cursor-not-allowed opacity-[0.55]": G.value && J > 0,
|
|
3103
3110
|
"cursor-pointer": !(G.value && J > 0)
|
|
3104
3111
|
}]),
|
|
@@ -3110,22 +3117,22 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3110
3117
|
backgroundColor: I.value[c(P, J, f.value.length)]
|
|
3111
3118
|
})
|
|
3112
3119
|
}, null, 4),
|
|
3113
|
-
h("span",
|
|
3120
|
+
h("span", Ao, Y(I.value[c(P, J, f.value.length)]), 1),
|
|
3114
3121
|
h("input", {
|
|
3115
3122
|
type: "color",
|
|
3116
3123
|
value: I.value[c(P, J, f.value.length)],
|
|
3117
|
-
class:
|
|
3124
|
+
class: ke(["absolute inset-0 opacity-0", {
|
|
3118
3125
|
"cursor-not-allowed": G.value && J > 0,
|
|
3119
3126
|
"cursor-pointer": !(G.value && J > 0)
|
|
3120
3127
|
}]),
|
|
3121
3128
|
disabled: G.value && J > 0,
|
|
3122
3129
|
onInput: (ue) => Fl(P, J, ue),
|
|
3123
3130
|
onChange: (ue) => kl(P, J, ue)
|
|
3124
|
-
}, null, 42,
|
|
3125
|
-
], 10,
|
|
3131
|
+
}, null, 42, Lo)
|
|
3132
|
+
], 10, Bo)
|
|
3126
3133
|
]))), 128))
|
|
3127
3134
|
]),
|
|
3128
|
-
Qe(P) ? (g(), R("div",
|
|
3135
|
+
Qe(P) ? (g(), R("div", Mo, [
|
|
3129
3136
|
u(U, {
|
|
3130
3137
|
class: "w-full",
|
|
3131
3138
|
size: "md",
|
|
@@ -3141,7 +3148,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3141
3148
|
]);
|
|
3142
3149
|
};
|
|
3143
3150
|
}
|
|
3144
|
-
}),
|
|
3151
|
+
}), Oo = { class: "flex flex-col gap-8" }, jo = { class: "flex items-center justify-between" }, zo = { 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({
|
|
3145
3152
|
__name: "ChartLineStyleSection",
|
|
3146
3153
|
props: {
|
|
3147
3154
|
model: {}
|
|
@@ -3170,7 +3177,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3170
3177
|
if (!e.model.isBlend)
|
|
3171
3178
|
return d;
|
|
3172
3179
|
const y = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
3173
|
-
(
|
|
3180
|
+
(z) => Array.isArray(z == null ? void 0 : z.metrics) ? z.metrics : []
|
|
3174
3181
|
) : [];
|
|
3175
3182
|
return [...d, ...y];
|
|
3176
3183
|
}
|
|
@@ -3178,10 +3185,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3178
3185
|
if (d === ee.metric) {
|
|
3179
3186
|
const y = _();
|
|
3180
3187
|
if (y.length > 0)
|
|
3181
|
-
return y.map((
|
|
3188
|
+
return y.map((z, le) => v(z, le));
|
|
3182
3189
|
}
|
|
3183
3190
|
return ie.map(
|
|
3184
|
-
(y,
|
|
3191
|
+
(y, z) => `${a("report.section.datasource.lineStyle.series")} ${z + 1}`
|
|
3185
3192
|
);
|
|
3186
3193
|
}
|
|
3187
3194
|
const o = T(() => [
|
|
@@ -3206,16 +3213,16 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3206
3213
|
}
|
|
3207
3214
|
function C(d, y) {
|
|
3208
3215
|
return !Array.isArray(d) || d.length === 0 ? Array.from({ length: y }).map(
|
|
3209
|
-
(
|
|
3216
|
+
(z, le) => al[le] ?? "solid"
|
|
3210
3217
|
) : Array.from({ length: y }).map(
|
|
3211
|
-
(
|
|
3218
|
+
(z, le) => r(d[le])
|
|
3212
3219
|
);
|
|
3213
3220
|
}
|
|
3214
3221
|
const A = T(
|
|
3215
3222
|
() => V(e.model.lineStyleBinding)
|
|
3216
3223
|
), b = T(() => S($.value)), x = T(
|
|
3217
3224
|
() => C(e.model.lineStyles, S(A.value).length)
|
|
3218
|
-
), O =
|
|
3225
|
+
), O = Z([]), $ = Z(ee.series);
|
|
3219
3226
|
he(
|
|
3220
3227
|
[
|
|
3221
3228
|
() => e.model.lineStyles,
|
|
@@ -3234,21 +3241,21 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3234
3241
|
);
|
|
3235
3242
|
const c = T(() => $.value !== A.value || O.value.length !== x.value.length ? !0 : O.value.some((d, y) => d !== x.value[y]));
|
|
3236
3243
|
function t(d, y) {
|
|
3237
|
-
const
|
|
3238
|
-
|
|
3244
|
+
const z = [...O.value];
|
|
3245
|
+
z[d] = r(y), O.value = z;
|
|
3239
3246
|
}
|
|
3240
3247
|
function n(d) {
|
|
3241
3248
|
const y = V(d);
|
|
3242
3249
|
if (y === $.value)
|
|
3243
3250
|
return;
|
|
3244
|
-
const
|
|
3245
|
-
$.value = y, O.value = C(O.value,
|
|
3251
|
+
const z = S(y).length;
|
|
3252
|
+
$.value = y, O.value = C(O.value, z);
|
|
3246
3253
|
}
|
|
3247
3254
|
function m() {
|
|
3248
3255
|
$.value = ee.series, O.value = [...al];
|
|
3249
3256
|
}
|
|
3250
3257
|
function s() {
|
|
3251
|
-
const d = $.value === ee.series, y = O.value.every((
|
|
3258
|
+
const d = $.value === ee.series, y = O.value.every((z) => z === "solid");
|
|
3252
3259
|
i("update:model", {
|
|
3253
3260
|
...e.model,
|
|
3254
3261
|
lineStyleBinding: d ? void 0 : $.value,
|
|
@@ -3256,12 +3263,12 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3256
3263
|
});
|
|
3257
3264
|
}
|
|
3258
3265
|
return (d, y) => {
|
|
3259
|
-
const
|
|
3260
|
-
return g(), R("div",
|
|
3261
|
-
h("div",
|
|
3262
|
-
h("p",
|
|
3263
|
-
h("div",
|
|
3264
|
-
u(
|
|
3266
|
+
const z = D("FmButton"), le = D("FmSelect");
|
|
3267
|
+
return g(), R("div", Oo, [
|
|
3268
|
+
h("div", jo, [
|
|
3269
|
+
h("p", zo, Y(l(a)("report.section.datasource.lineStyle.title")), 1),
|
|
3270
|
+
h("div", Io, [
|
|
3271
|
+
u(z, {
|
|
3265
3272
|
variant: "tertiary",
|
|
3266
3273
|
"text-color": "text-fm-color-system-info-300",
|
|
3267
3274
|
size: "md",
|
|
@@ -3276,27 +3283,27 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3276
3283
|
label: l(a)("report.section.datasource.styleTarget.title"),
|
|
3277
3284
|
"onUpdate:modelValue": n
|
|
3278
3285
|
}, null, 8, ["model-value", "items", "label"]),
|
|
3279
|
-
h("div",
|
|
3280
|
-
(g(!0), R(de, null, xe(O.value, (te,
|
|
3281
|
-
key:
|
|
3286
|
+
h("div", Ro, [
|
|
3287
|
+
(g(!0), R(de, null, xe(O.value, (te, K) => (g(), R("div", {
|
|
3288
|
+
key: K,
|
|
3282
3289
|
class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
|
|
3283
3290
|
}, [
|
|
3284
|
-
h("div",
|
|
3291
|
+
h("div", Po, [
|
|
3285
3292
|
h("span", {
|
|
3286
|
-
class:
|
|
3293
|
+
class: ke(["line-style-icon", f(te)]),
|
|
3287
3294
|
"aria-hidden": "true"
|
|
3288
3295
|
}, null, 2),
|
|
3289
|
-
h("span",
|
|
3296
|
+
h("span", Xo, Y(b.value[K] || `${l(a)("report.section.datasource.lineStyle.line")} ${K + 1}`), 1)
|
|
3290
3297
|
]),
|
|
3291
3298
|
u(le, {
|
|
3292
3299
|
"model-value": te,
|
|
3293
3300
|
items: o.value,
|
|
3294
3301
|
class: "w-[130px]",
|
|
3295
|
-
"onUpdate:modelValue": (re) => t(
|
|
3302
|
+
"onUpdate:modelValue": (re) => t(K, re)
|
|
3296
3303
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])
|
|
3297
3304
|
]))), 128))
|
|
3298
3305
|
]),
|
|
3299
|
-
u(
|
|
3306
|
+
u(z, {
|
|
3300
3307
|
size: "md",
|
|
3301
3308
|
label: l(a)("report.common.apply"),
|
|
3302
3309
|
disabled: !c.value,
|
|
@@ -3305,10 +3312,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3305
3312
|
]);
|
|
3306
3313
|
};
|
|
3307
3314
|
}
|
|
3308
|
-
}),
|
|
3315
|
+
}), Wo = /* @__PURE__ */ pl(Eo, [["__scopeId", "data-v-f1c35513"]]), qo = { class: "flex flex-col gap-16" }, Yo = {
|
|
3309
3316
|
key: 2,
|
|
3310
3317
|
class: "h-px w-full bg-fm-color-neutral-gray-100"
|
|
3311
|
-
},
|
|
3318
|
+
}, Ho = { class: "flex flex-col gap-8" }, Go = { class: "fm-typo-en-body-lg-600" }, Jo = { class: "flex flex-col gap-8" }, Ko = /* @__PURE__ */ se({
|
|
3312
3319
|
__name: "StyleDatasource",
|
|
3313
3320
|
props: /* @__PURE__ */ ve({
|
|
3314
3321
|
label: {
|
|
@@ -3343,7 +3350,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3343
3350
|
he(
|
|
3344
3351
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
3345
3352
|
() => {
|
|
3346
|
-
const { rowIds: r, columnIds: f } =
|
|
3353
|
+
const { rowIds: r, columnIds: f } = ze(e.value);
|
|
3347
3354
|
e.value.rowIds = r, e.value.columnIds = f;
|
|
3348
3355
|
},
|
|
3349
3356
|
{ deep: !0 }
|
|
@@ -3378,29 +3385,29 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3378
3385
|
size: "md",
|
|
3379
3386
|
onClick: f[0] || (f[0] = ye((x) => a("click-close"), ["stop"]))
|
|
3380
3387
|
})) : M("", !0),
|
|
3381
|
-
h("div",
|
|
3388
|
+
h("div", qo, [
|
|
3382
3389
|
i.config.hasChart ? (g(), N(go, {
|
|
3383
3390
|
key: 0,
|
|
3384
3391
|
model: e.value,
|
|
3385
3392
|
"onUpdate:model": f[1] || (f[1] = (x) => e.value = x)
|
|
3386
3393
|
}, null, 8, ["model"])) : M("", !0),
|
|
3387
|
-
i.config.hasChart ? (g(), N(
|
|
3394
|
+
i.config.hasChart ? (g(), N(No, {
|
|
3388
3395
|
key: 1,
|
|
3389
3396
|
model: e.value,
|
|
3390
3397
|
"show-layer-control": v.value && o.value,
|
|
3391
3398
|
"limit-to-series-mode": V.value,
|
|
3392
3399
|
"onUpdate:model": f[2] || (f[2] = (x) => e.value = x)
|
|
3393
3400
|
}, null, 8, ["model", "show-layer-control", "limit-to-series-mode"])) : M("", !0),
|
|
3394
|
-
i.config.hasChart && _.value ? (g(), R("div",
|
|
3395
|
-
i.config.hasChart && _.value ? (g(), N(
|
|
3401
|
+
i.config.hasChart && _.value ? (g(), R("div", Yo)) : M("", !0),
|
|
3402
|
+
i.config.hasChart && _.value ? (g(), N(Wo, {
|
|
3396
3403
|
key: 3,
|
|
3397
3404
|
model: e.value,
|
|
3398
3405
|
"onUpdate:model": f[3] || (f[3] = (x) => e.value = x)
|
|
3399
3406
|
}, null, 8, ["model"])) : M("", !0),
|
|
3400
3407
|
f[9] || (f[9] = h("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3401
|
-
h("div",
|
|
3402
|
-
h("p",
|
|
3403
|
-
h("div",
|
|
3408
|
+
h("div", Ho, [
|
|
3409
|
+
h("p", Go, Y(l(w)("report.section.style.configuration")), 1),
|
|
3410
|
+
h("div", Jo, [
|
|
3404
3411
|
v.value ? (g(), N(A, {
|
|
3405
3412
|
key: 0,
|
|
3406
3413
|
modelValue: o.value,
|
|
@@ -3440,7 +3447,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3440
3447
|
], 64);
|
|
3441
3448
|
};
|
|
3442
3449
|
}
|
|
3443
|
-
}),
|
|
3450
|
+
}), Qo = { class: "fixed bottom-6 right-6" }, Zo = { class: "flex w-full items-center gap-8" }, ea = { class: "fm-typo-en-title-sm-600" }, la = { class: "ml-auto text-fm-color-system-info-300" }, ta = /* @__PURE__ */ se({
|
|
3444
3451
|
__name: "StyleEditorTab",
|
|
3445
3452
|
props: {
|
|
3446
3453
|
modelValue: {
|
|
@@ -3515,7 +3522,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3515
3522
|
"max-width": 500
|
|
3516
3523
|
}, {
|
|
3517
3524
|
"side-sheet-button": q(() => [
|
|
3518
|
-
h("div",
|
|
3525
|
+
h("div", Qo, [
|
|
3519
3526
|
u(o, {
|
|
3520
3527
|
label: l(p)("report.section.style.button"),
|
|
3521
3528
|
icon: "edit",
|
|
@@ -3525,15 +3532,15 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3525
3532
|
])
|
|
3526
3533
|
]),
|
|
3527
3534
|
"side-sheet-header": q(() => [
|
|
3528
|
-
h("div",
|
|
3535
|
+
h("div", Zo, [
|
|
3529
3536
|
u(o, {
|
|
3530
3537
|
"prepend-icon": "arrow_back",
|
|
3531
3538
|
variant: "tertiary",
|
|
3532
3539
|
class: "fm-icon--rounded fm-icon--md text-fm-color-black",
|
|
3533
3540
|
onClick: _[0] || (_[0] = (f) => a.value = !1)
|
|
3534
3541
|
}),
|
|
3535
|
-
h("p",
|
|
3536
|
-
h("div",
|
|
3542
|
+
h("p", ea, Y(l(p)("report.section.style.title")), 1),
|
|
3543
|
+
h("div", la, [
|
|
3537
3544
|
u(o, {
|
|
3538
3545
|
label: l(p)("report.section.style.reset"),
|
|
3539
3546
|
variant: "tertiary",
|
|
@@ -3546,7 +3553,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3546
3553
|
]),
|
|
3547
3554
|
default: q(() => [
|
|
3548
3555
|
e.value ? M("", !0) : (g(), N(S, { key: 0 })),
|
|
3549
|
-
u(
|
|
3556
|
+
u(Ko, {
|
|
3550
3557
|
modelValue: e.value.widget.config,
|
|
3551
3558
|
"onUpdate:modelValue": _[1] || (_[1] = (f) => e.value.widget.config = f),
|
|
3552
3559
|
config: i.value
|
|
@@ -3556,10 +3563,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3556
3563
|
}, 8, ["modelValue"]);
|
|
3557
3564
|
};
|
|
3558
3565
|
}
|
|
3559
|
-
}),
|
|
3566
|
+
}), oa = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, aa = { class: "flex bg-fm-color-neutral-white w-[88px]" }, na = { class: "w-full overflow-y-auto" }, ia = {
|
|
3560
3567
|
class: "grid grid-cols-12 w-full p-24",
|
|
3561
3568
|
style: { backgroundColor: "#F6F8FC" }
|
|
3562
|
-
},
|
|
3569
|
+
}, sa = /* @__PURE__ */ se({
|
|
3563
3570
|
__name: "TileEditorDesktop",
|
|
3564
3571
|
props: /* @__PURE__ */ ve({
|
|
3565
3572
|
hideConfiguration: { type: Boolean, required: !0, default: !1 },
|
|
@@ -3584,7 +3591,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3584
3591
|
H.LineChart,
|
|
3585
3592
|
H.StackLineChart,
|
|
3586
3593
|
H.Circular
|
|
3587
|
-
], v = T(() => V.includes(e.value.widget.type)), _ =
|
|
3594
|
+
], v = T(() => V.includes(e.value.widget.type)), _ = Z(!1);
|
|
3588
3595
|
return (S, o) => {
|
|
3589
3596
|
const r = D("FmCircularProgress"), f = D("FmButton");
|
|
3590
3597
|
return g(), R("div", null, [
|
|
@@ -3593,7 +3600,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3593
3600
|
"model-value": !B.hideConfiguration
|
|
3594
3601
|
}, {
|
|
3595
3602
|
right: q(() => [
|
|
3596
|
-
h("div",
|
|
3603
|
+
h("div", oa, [
|
|
3597
3604
|
u(yl, {
|
|
3598
3605
|
modelValue: e.value,
|
|
3599
3606
|
"onUpdate:modelValue": o[0] || (o[0] = (C) => e.value = C),
|
|
@@ -3606,7 +3613,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3606
3613
|
])
|
|
3607
3614
|
]),
|
|
3608
3615
|
left: q(() => [
|
|
3609
|
-
h("div",
|
|
3616
|
+
h("div", aa, [
|
|
3610
3617
|
u(f, {
|
|
3611
3618
|
variant: "secondary",
|
|
3612
3619
|
icon: "keyboard_double_arrow_right",
|
|
@@ -3620,8 +3627,8 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3620
3627
|
]),
|
|
3621
3628
|
_: 1
|
|
3622
3629
|
}, 8, ["model-value"]),
|
|
3623
|
-
h("div",
|
|
3624
|
-
h("div",
|
|
3630
|
+
h("div", na, [
|
|
3631
|
+
h("div", ia, [
|
|
3625
3632
|
e.value ? (g(), N(fl, {
|
|
3626
3633
|
key: 0,
|
|
3627
3634
|
"model-value": e.value,
|
|
@@ -3631,7 +3638,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3631
3638
|
}, null, 8, ["model-value", "index", "is-style-editing"])) : (g(), N(gl, { key: 1 }))
|
|
3632
3639
|
])
|
|
3633
3640
|
]),
|
|
3634
|
-
v.value ? (g(), N(
|
|
3641
|
+
v.value ? (g(), N(ta, {
|
|
3635
3642
|
key: 0,
|
|
3636
3643
|
modelValue: e.value,
|
|
3637
3644
|
"onUpdate:modelValue": o[3] || (o[3] = (C) => e.value = C),
|
|
@@ -3646,10 +3653,10 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3646
3653
|
]);
|
|
3647
3654
|
};
|
|
3648
3655
|
}
|
|
3649
|
-
}),
|
|
3656
|
+
}), ra = {
|
|
3650
3657
|
key: 0,
|
|
3651
3658
|
class: "flex w-full justify-center items-center"
|
|
3652
|
-
},
|
|
3659
|
+
}, ua = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, da = /* @__PURE__ */ se({
|
|
3653
3660
|
__name: "TileEditorMobile",
|
|
3654
3661
|
props: /* @__PURE__ */ ve({
|
|
3655
3662
|
hideConfiguration: { type: Boolean, required: !0, default: !1 },
|
|
@@ -3672,7 +3679,7 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3672
3679
|
const _ = D("FmCircularProgress");
|
|
3673
3680
|
return g(), R("div", null, [
|
|
3674
3681
|
e.value ? (g(), R(de, { key: 1 }, [
|
|
3675
|
-
h("div",
|
|
3682
|
+
h("div", ua, [
|
|
3676
3683
|
e.value ? (g(), N(fl, {
|
|
3677
3684
|
key: 0,
|
|
3678
3685
|
"model-value": e.value,
|
|
@@ -3689,29 +3696,29 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3689
3696
|
w("hideConfiguration", S);
|
|
3690
3697
|
})
|
|
3691
3698
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
3692
|
-
], 64)) : (g(), R("div",
|
|
3699
|
+
], 64)) : (g(), R("div", ra, [
|
|
3693
3700
|
u(_)
|
|
3694
3701
|
]))
|
|
3695
3702
|
]);
|
|
3696
3703
|
};
|
|
3697
3704
|
}
|
|
3698
|
-
}),
|
|
3705
|
+
}), ma = {
|
|
3699
3706
|
key: 0,
|
|
3700
3707
|
class: "fm-typo-en-title-md-600"
|
|
3701
|
-
},
|
|
3708
|
+
}, ca = {
|
|
3702
3709
|
key: 0,
|
|
3703
3710
|
class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
|
|
3704
|
-
},
|
|
3711
|
+
}, Sa = /* @__PURE__ */ se({
|
|
3705
3712
|
__name: "TileEditor",
|
|
3706
3713
|
setup(B) {
|
|
3707
|
-
const { rowHeight: p, colWidths: e } =
|
|
3714
|
+
const { rowHeight: p, colWidths: e } = Se(Oe()), i = Ll(), a = Ml(), w = El(), { globalFilters: V } = Se(vl()), { currentSelectWidgetType: v, editingReport: _, editingTile: S, editingTileIndex: o } = Se(w), { breakpoints: r } = cl(), { promptMessage: f } = ml(), { t: C, te: A } = ce(), b = T(() => {
|
|
3708
3715
|
var m;
|
|
3709
3716
|
const t = (m = S.value) == null ? void 0 : m.widget.type;
|
|
3710
3717
|
if (!t)
|
|
3711
3718
|
return C("report.editor.newReport");
|
|
3712
3719
|
const n = `report.widget.types.${t.toLowerCase()}`;
|
|
3713
3720
|
return A(n) ? C(n) : t;
|
|
3714
|
-
}), x =
|
|
3721
|
+
}), x = Z(!1);
|
|
3715
3722
|
function O() {
|
|
3716
3723
|
v.value = void 0, S.value = void 0, o.value = -1, a.back();
|
|
3717
3724
|
}
|
|
@@ -3751,21 +3758,21 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3751
3758
|
})
|
|
3752
3759
|
}, {
|
|
3753
3760
|
title: q(() => [
|
|
3754
|
-
l(r).lg || l(r).md ? (g(), R("p",
|
|
3761
|
+
l(r).lg || l(r).md ? (g(), R("p", ma, Y(b.value), 1)) : M("", !0)
|
|
3755
3762
|
]),
|
|
3756
3763
|
_: 1
|
|
3757
3764
|
}, 8, ["actions"]),
|
|
3758
3765
|
l(S) && (l(V) || []).some((s) => {
|
|
3759
3766
|
const d = s.tileIds, y = l(S) && l(S).id;
|
|
3760
3767
|
return Array.isArray(d) && typeof y == "string" && d.includes(y);
|
|
3761
|
-
}) ? (g(), R("div",
|
|
3768
|
+
}) ? (g(), R("div", ca, [
|
|
3762
3769
|
u(Gl)
|
|
3763
3770
|
])) : M("", !0),
|
|
3764
|
-
l(S) ? (g(), N(ul(l(r).lg || l(r).md ?
|
|
3771
|
+
l(S) ? (g(), N(ul(l(r).lg || l(r).md ? sa : da), {
|
|
3765
3772
|
key: 1,
|
|
3766
3773
|
modelValue: l(S),
|
|
3767
3774
|
"onUpdate:modelValue": n[1] || (n[1] = (s) => Al(S) ? S.value = s : null),
|
|
3768
|
-
class:
|
|
3775
|
+
class: ke(`${l(r).lg || l(r).md ? "flex" : ""} w-full`),
|
|
3769
3776
|
style: Ee({ height: `calc( 100% - ${l(r).lg || l(r).md ? 72 : 64}px)` }),
|
|
3770
3777
|
"hide-configuration": x.value,
|
|
3771
3778
|
index: Number(l(i).params.tileIndex),
|
|
@@ -3778,5 +3785,5 @@ const rt = { class: "flex flex-col my-2 gap-8" }, ut = { class: "fm-typo-en-body
|
|
|
3778
3785
|
}
|
|
3779
3786
|
});
|
|
3780
3787
|
export {
|
|
3781
|
-
|
|
3788
|
+
Sa as default
|
|
3782
3789
|
};
|