@feedmepos/mf-report 5.21.10 → 5.21.11
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-CzCTAMSn.js → App-BjnjWC9R.js} +3 -3
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-fm9R4WoC.js → BaseDialog.vue_vue_type_script_setup_true_lang-DK8QxbFV.js} +1 -1
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D9jFJLmv.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Dht2xcQD.js} +9 -8
- package/dist/{Default.vue_vue_type_script_setup_true_lang-hesFE4PP.js → Default.vue_vue_type_script_setup_true_lang-DUkeEMzb.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DbIw1F5R.js → FilterSelector.vue_vue_type_script_setup_true_lang-B8N4LGwe.js} +2 -2
- package/dist/{InsightView-CP4vw27X.js → InsightView-B8Q3KBoZ.js} +3 -3
- package/dist/{Integration-Dzazd6Xf.js → Integration-gGT048XV.js} +1 -1
- package/dist/{Layout-D3IMSCt8.js → Layout-B37xb5vq.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-C76DKKvg.js → MenuTab.vue_vue_type_script_setup_true_lang-BorRNEUL.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Dmvreq5n.js → NavigationTab.vue_vue_type_script_setup_true_lang-Dcx_pxIc.js} +2 -2
- package/dist/{OverviewView-BPU4Xikn.js → OverviewView-DIe_tk2f.js} +4 -4
- package/dist/{Report-Bjpncufm.js → Report-B2hD36aA.js} +2 -2
- package/dist/{ReportEditor-BM0hKuJs.js → ReportEditor-C0Zs5JqL.js} +3 -3
- package/dist/{ReportView-BTkMfNhE.js → ReportView-DwGsnIDO.js} +5 -5
- package/dist/{Setting-CqEdW72t.js → Setting-C2ixmTo3.js} +2 -2
- package/dist/{TileEditor-BtTc1aYz.js → TileEditor-D5-ORE21.js} +271 -270
- package/dist/{TransitionFade-BDiHejC1.js → TransitionFade-Drd53L_U.js} +3 -3
- package/dist/app.js +14 -10
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as X, mergeModels as G, useModel as le, computed as S, ref as W, resolveComponent as C, createElementBlock as I, openBlock as h, createVNode as
|
|
1
|
+
import { defineComponent as X, mergeModels as G, useModel as le, computed as S, ref as W, resolveComponent as C, createElementBlock as I, openBlock as h, createVNode as d, createElementVNode as F, unref as e, withCtx as N, toDisplayString as j, Fragment as ee, renderList as de, withModifiers as te, createTextVNode as pe, watch as se, createCommentVNode as U, createBlock as D, onUnmounted as Xe, renderSlot as Ne, onMounted as Ce, onBeforeUnmount as qe, resolveDynamicComponent as Oe, normalizeClass as Ie, withDirectives as ae, vShow as ne, normalizeStyle as We, isRef as He } from "vue";
|
|
2
2
|
import { useRoute as Ee, useRouter as Ye } from "vue-router";
|
|
3
|
-
import { h as Je, d as
|
|
4
|
-
import { W as L, b as Be, d as
|
|
3
|
+
import { h as Je, d as ke, S as we, _ as Ge, W as Ke, b as Qe, T as Ze, a as el } from "./TransitionFade-Drd53L_U.js";
|
|
4
|
+
import { W as L, b as Be, d as ce, D as ll, S as Se, C as ol, P as Te, a as tl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DK8QxbFV.js";
|
|
5
5
|
import { storeToRefs as ue } from "pinia";
|
|
6
6
|
import { u as Le } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { u as E, h as je, p as al, b as ze, d as
|
|
8
|
-
import { useSnackbar as nl, useBreakpoints as Re, FmButtonColorThemeVariant as
|
|
7
|
+
import { u as E, h as je, p as al, b as ze, d as ve } from "./vue-i18n-CMOl_N2v.js";
|
|
8
|
+
import { useSnackbar as nl, useBreakpoints as Re, FmButtonColorThemeVariant as De } from "@feedmepos/ui-library";
|
|
9
9
|
import { _ as Q } from "./SelectComponent.vue_vue_type_script_setup_true_lang-eyldXQxi.js";
|
|
10
10
|
import { r as Z } from "./i18n-DQxDgiLO.js";
|
|
11
|
-
import { g as
|
|
12
|
-
import { d as
|
|
11
|
+
import { g as me, u as fe, L as ie, b as he, _ as Me, a as il } from "./FilterSelector.vue_vue_type_script_setup_true_lang-B8N4LGwe.js";
|
|
12
|
+
import { d as ge } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Dht2xcQD.js";
|
|
13
13
|
import { _ as Pe } from "./NoData.vue_vue_type_script_setup_true_lang-Cp2mQEY3.js";
|
|
14
|
-
const
|
|
14
|
+
const ye = [
|
|
15
15
|
{
|
|
16
16
|
type: L.Circular,
|
|
17
17
|
maxDimension: null,
|
|
@@ -148,7 +148,7 @@ const he = [
|
|
|
148
148
|
canSearch: !1,
|
|
149
149
|
periodType: null
|
|
150
150
|
}
|
|
151
|
-
], sl = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body-lg-600" },
|
|
151
|
+
], sl = { class: "flex flex-col my-2 gap-8" }, ul = { class: "fm-typo-en-body-lg-600" }, dl = { class: "text-sm text-fm-color-neutral-gray-400" }, rl = ["onClick"], ml = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, pl = /* @__PURE__ */ X({
|
|
152
152
|
__name: "SchemaSection",
|
|
153
153
|
props: /* @__PURE__ */ G({
|
|
154
154
|
options: {
|
|
@@ -197,7 +197,7 @@ const he = [
|
|
|
197
197
|
return (v, b) => {
|
|
198
198
|
const u = C("FmForm"), c = C("FmIcon"), a = C("FmField");
|
|
199
199
|
return h(), I("div", sl, [
|
|
200
|
-
|
|
200
|
+
d(ce, {
|
|
201
201
|
modelValue: m.value,
|
|
202
202
|
"onUpdate:modelValue": b[1] || (b[1] = (l) => m.value = l),
|
|
203
203
|
title: n.label,
|
|
@@ -206,9 +206,9 @@ const he = [
|
|
|
206
206
|
onConfirm: $
|
|
207
207
|
}, {
|
|
208
208
|
content: N(() => [
|
|
209
|
-
|
|
209
|
+
d(u, { ref: "form" }, {
|
|
210
210
|
default: N(() => [
|
|
211
|
-
|
|
211
|
+
d(Q, {
|
|
212
212
|
modelValue: t.value,
|
|
213
213
|
"onUpdate:modelValue": b[0] || (b[0] = (l) => t.value = l),
|
|
214
214
|
label: e(p)("report.section.schema.title"),
|
|
@@ -228,37 +228,37 @@ const he = [
|
|
|
228
228
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
229
229
|
F("div", null, [
|
|
230
230
|
F("p", ul, j(e(p)("report.section.schema.title")), 1),
|
|
231
|
-
F("p",
|
|
231
|
+
F("p", dl, j(e(p)("report.section.schema.description")), 1)
|
|
232
232
|
]),
|
|
233
|
-
(h(!0), I(ee, null,
|
|
234
|
-
key:
|
|
233
|
+
(h(!0), I(ee, null, de(s.value.schemaNames, (l, r) => (h(), I("div", {
|
|
234
|
+
key: r,
|
|
235
235
|
class: "flex flex-col gap-2 w-full"
|
|
236
236
|
}, [
|
|
237
237
|
F("div", {
|
|
238
238
|
class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
|
|
239
|
-
onClick: (k) => _(
|
|
239
|
+
onClick: (k) => _(r)
|
|
240
240
|
}, [
|
|
241
241
|
F("p", ml, j(T(l)), 1),
|
|
242
242
|
b[3] || (b[3] = F("div", { class: "grow" }, null, -1)),
|
|
243
|
-
|
|
243
|
+
d(c, {
|
|
244
244
|
name: "close",
|
|
245
245
|
onClick: te(
|
|
246
246
|
() => {
|
|
247
|
-
s.value.schemaNames = e(Je)(s.value.schemaNames,
|
|
247
|
+
s.value.schemaNames = e(Je)(s.value.schemaNames, r);
|
|
248
248
|
},
|
|
249
249
|
["stop"]
|
|
250
250
|
)
|
|
251
251
|
}, null, 8, ["onClick"])
|
|
252
|
-
], 8,
|
|
252
|
+
], 8, rl)
|
|
253
253
|
]))), 128)),
|
|
254
|
-
|
|
254
|
+
d(a, {
|
|
255
255
|
class: "text-fm-color-typo-tertiary",
|
|
256
256
|
onClick: b[2] || (b[2] = () => {
|
|
257
257
|
_();
|
|
258
258
|
})
|
|
259
259
|
}, {
|
|
260
260
|
default: N(() => [
|
|
261
|
-
|
|
261
|
+
pe(j(e(p)("report.section.schema.add")), 1)
|
|
262
262
|
]),
|
|
263
263
|
_: 1
|
|
264
264
|
})
|
|
@@ -268,7 +268,7 @@ const he = [
|
|
|
268
268
|
}), cl = {
|
|
269
269
|
key: 0,
|
|
270
270
|
class: "flex flex-col my-2 gap-8"
|
|
271
|
-
}, vl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, fl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, gl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" },
|
|
271
|
+
}, vl = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, fl = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, gl = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Ve = /* @__PURE__ */ X({
|
|
272
272
|
__name: "DimensionSection",
|
|
273
273
|
props: /* @__PURE__ */ G({
|
|
274
274
|
options: {
|
|
@@ -309,24 +309,25 @@ const he = [
|
|
|
309
309
|
}))
|
|
310
310
|
), f = W(s.value.length > 0 ? 0 : void 0);
|
|
311
311
|
function m(a) {
|
|
312
|
-
var l,
|
|
312
|
+
var l, r, k, y;
|
|
313
313
|
g.value = !0, t.value = a != null && a.value ? JSON.parse(
|
|
314
314
|
JSON.stringify({
|
|
315
315
|
...a.value,
|
|
316
|
-
label: Z(p, o, (l = a.value) == null ? void 0 : l.label, "other")
|
|
316
|
+
label: Z(p, o, (l = a.value) == null ? void 0 : l.label, "other"),
|
|
317
|
+
moveToColumn: (((r = n.config) == null ? void 0 : r.columnIds) || []).includes(me(a.value))
|
|
317
318
|
})
|
|
318
|
-
) : void 0, f.value = a == null ? void 0 : a.index, i.value = !!((
|
|
319
|
-
(
|
|
320
|
-
var
|
|
321
|
-
return
|
|
319
|
+
) : void 0, f.value = a == null ? void 0 : a.index, i.value = !!((k = t.value) != null && k.dataFormula || (y = t.value) != null && y.displayFormula), t.value && t.value.formatter === void 0 && (n.options.find(
|
|
320
|
+
(z) => {
|
|
321
|
+
var R, A;
|
|
322
|
+
return z.schemaName === ((R = t.value) == null ? void 0 : R.schemaName) && z.name === ((A = t.value) == null ? void 0 : A.name);
|
|
322
323
|
}
|
|
323
324
|
), a != null && a.value.timeFormatter && t.value.formatter === void 0 && (t.value.formatter = a == null ? void 0 : a.value.timeFormatter, t.value.timeFormatter = void 0));
|
|
324
325
|
}
|
|
325
326
|
const t = W(void 0), i = W(!1), w = S(
|
|
326
327
|
() => n.options.find(
|
|
327
328
|
(a) => {
|
|
328
|
-
var l,
|
|
329
|
-
return a.schemaName === ((l = t.value) == null ? void 0 : l.schemaName) && a.name === ((
|
|
329
|
+
var l, r;
|
|
330
|
+
return a.schemaName === ((l = t.value) == null ? void 0 : l.schemaName) && a.name === ((r = t.value) == null ? void 0 : r.name);
|
|
330
331
|
}
|
|
331
332
|
) ?? {}
|
|
332
333
|
);
|
|
@@ -341,13 +342,13 @@ const he = [
|
|
|
341
342
|
);
|
|
342
343
|
const T = S(
|
|
343
344
|
() => {
|
|
344
|
-
var a, l,
|
|
345
|
-
return (
|
|
345
|
+
var a, l, r;
|
|
346
|
+
return (r = (a = w.value) == null ? void 0 : a.fillGapDimensionOptions) == null ? void 0 : r.includes(((l = t.value) == null ? void 0 : l.option) || "");
|
|
346
347
|
}
|
|
347
348
|
);
|
|
348
349
|
function _(a) {
|
|
349
|
-
var l,
|
|
350
|
-
(a.schemaName !== ((l = t.value) == null ? void 0 : l.schemaName) || a.name !== ((
|
|
350
|
+
var l, r;
|
|
351
|
+
(a.schemaName !== ((l = t.value) == null ? void 0 : l.schemaName) || a.name !== ((r = t.value) == null ? void 0 : r.name)) && (t.value = {
|
|
351
352
|
schemaName: a.schemaName,
|
|
352
353
|
name: a.name,
|
|
353
354
|
option: a.dimensionOptions[0],
|
|
@@ -365,8 +366,8 @@ const he = [
|
|
|
365
366
|
i.value || (t.value.dataFormula = void 0), f.value !== void 0 ? a[f.value] = t.value : a.push(t.value), s.value = a, g.value = !1;
|
|
366
367
|
}
|
|
367
368
|
function v(a) {
|
|
368
|
-
const
|
|
369
|
-
s.value =
|
|
369
|
+
const r = [...V.value.map((k) => k.value)].filter((k, y) => y !== a);
|
|
370
|
+
s.value = r;
|
|
370
371
|
}
|
|
371
372
|
function b(a) {
|
|
372
373
|
t.value && (t.value.decimal = Number(a));
|
|
@@ -380,9 +381,9 @@ const he = [
|
|
|
380
381
|
() => n.label ? n.label : p(`report.section.dimension.${n.label}`)
|
|
381
382
|
);
|
|
382
383
|
return (a, l) => {
|
|
383
|
-
const
|
|
384
|
+
const r = C("FmTextField"), k = C("FmStepperField"), y = C("FmCheckbox"), z = C("FmTextarea"), R = C("FmForm"), A = C("FmIcon"), H = C("FmButton"), Y = C("FmListItem"), oe = C("FmList"), O = C("FmField");
|
|
384
385
|
return x.max !== 0 ? (h(), I("div", cl, [
|
|
385
|
-
|
|
386
|
+
d(ce, {
|
|
386
387
|
modelValue: g.value,
|
|
387
388
|
"onUpdate:modelValue": l[12] || (l[12] = (B) => g.value = B),
|
|
388
389
|
title: c.value,
|
|
@@ -391,14 +392,14 @@ const he = [
|
|
|
391
392
|
onConfirm: $
|
|
392
393
|
}, {
|
|
393
394
|
content: N(() => [
|
|
394
|
-
|
|
395
|
+
d(R, {
|
|
395
396
|
ref: "form",
|
|
396
397
|
class: "flex flex-col gap-2 w-[490px]"
|
|
397
398
|
}, {
|
|
398
399
|
default: N(() => {
|
|
399
|
-
var B, q, K, J,
|
|
400
|
+
var B, q, K, J, re, P, _e;
|
|
400
401
|
return [
|
|
401
|
-
|
|
402
|
+
d(Q, {
|
|
402
403
|
"model-value": w.value,
|
|
403
404
|
items: u.value,
|
|
404
405
|
placeholder: c.value,
|
|
@@ -406,7 +407,7 @@ const he = [
|
|
|
406
407
|
"onUpdate:modelValue": l[0] || (l[0] = (M) => _(M))
|
|
407
408
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
408
409
|
t.value ? (h(), I(ee, { key: 0 }, [
|
|
409
|
-
r
|
|
410
|
+
d(r, {
|
|
410
411
|
modelValue: t.value.label,
|
|
411
412
|
"onUpdate:modelValue": l[1] || (l[1] = (M) => t.value.label = M),
|
|
412
413
|
label: e(p)("report.section.dimension.label")
|
|
@@ -428,7 +429,7 @@ const he = [
|
|
|
428
429
|
b(M);
|
|
429
430
|
})
|
|
430
431
|
}, null, 8, ["label", "model-value"])) : U("", !0),
|
|
431
|
-
(
|
|
432
|
+
(re = w.value) != null && re.isNumericType ? (h(), D(Q, {
|
|
432
433
|
key: 2,
|
|
433
434
|
modelValue: t.value.formatter,
|
|
434
435
|
"onUpdate:modelValue": l[4] || (l[4] = (M) => t.value.formatter = M),
|
|
@@ -452,7 +453,7 @@ const he = [
|
|
|
452
453
|
t.value && (t.value.fillGap = M);
|
|
453
454
|
})
|
|
454
455
|
}, null, 8, ["model-value", "label"])) : U("", !0),
|
|
455
|
-
((
|
|
456
|
+
((_e = w.value) == null ? void 0 : _e.type) === e(ll).Timestamp ? (h(), D(y, {
|
|
456
457
|
key: 4,
|
|
457
458
|
"model-value": t.value.dateComparison ?? !1,
|
|
458
459
|
label: e(p)("report.section.dimension.dateComparison"),
|
|
@@ -461,7 +462,7 @@ const he = [
|
|
|
461
462
|
t.value && (t.value.dateComparison = M);
|
|
462
463
|
})
|
|
463
464
|
}, null, 8, ["model-value", "label"])) : U("", !0),
|
|
464
|
-
|
|
465
|
+
d(y, {
|
|
465
466
|
modelValue: t.value.hide,
|
|
466
467
|
"onUpdate:modelValue": l[7] || (l[7] = (M) => t.value.hide = M),
|
|
467
468
|
label: e(p)("report.section.dimension.hide"),
|
|
@@ -474,7 +475,7 @@ const he = [
|
|
|
474
475
|
label: e(p)("report.section.dimension.moveToColumn"),
|
|
475
476
|
value: ""
|
|
476
477
|
}, null, 8, ["modelValue", "label"])) : U("", !0),
|
|
477
|
-
|
|
478
|
+
d(y, {
|
|
478
479
|
modelValue: i.value,
|
|
479
480
|
"onUpdate:modelValue": l[9] || (l[9] = (M) => i.value = M),
|
|
480
481
|
label: e(p)("report.section.dimension.advance"),
|
|
@@ -504,23 +505,23 @@ const he = [
|
|
|
504
505
|
F("p", vl, j(c.value), 1),
|
|
505
506
|
F("p", fl, j(e(p)("report.section.dimension.description")), 1)
|
|
506
507
|
]),
|
|
507
|
-
|
|
508
|
+
d(oe, null, {
|
|
508
509
|
default: N(() => [
|
|
509
|
-
|
|
510
|
+
d(e(ke), {
|
|
510
511
|
list: s.value,
|
|
511
512
|
"item-key": "id",
|
|
512
513
|
class: "flex flex-col gap-2"
|
|
513
514
|
}, {
|
|
514
515
|
item: N(({ element: B, index: q }) => [
|
|
515
|
-
|
|
516
|
+
d(Y, {
|
|
516
517
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
517
518
|
onClick: te((K) => m(V.value[q]), ["stop"])
|
|
518
519
|
}, {
|
|
519
520
|
default: N(() => [
|
|
520
|
-
|
|
521
|
+
d(A, { name: "drag_handle" }),
|
|
521
522
|
F("p", gl, j(e(Z)(e(p), e(o), B.label, "other")), 1),
|
|
522
523
|
l[14] || (l[14] = F("div", { class: "grow" }, null, -1)),
|
|
523
|
-
|
|
524
|
+
d(H, {
|
|
524
525
|
icon: "close",
|
|
525
526
|
size: "md",
|
|
526
527
|
variant: "tertiary",
|
|
@@ -535,21 +536,21 @@ const he = [
|
|
|
535
536
|
]),
|
|
536
537
|
_: 1
|
|
537
538
|
}),
|
|
538
|
-
|
|
539
|
+
d(O, {
|
|
539
540
|
class: "text-fm-color-typo-tertiary",
|
|
540
541
|
onClick: l[13] || (l[13] = () => {
|
|
541
542
|
m();
|
|
542
543
|
})
|
|
543
544
|
}, {
|
|
544
545
|
default: N(() => [
|
|
545
|
-
|
|
546
|
+
pe(j(e(p)("report.section.dimension.add")), 1)
|
|
546
547
|
]),
|
|
547
548
|
_: 1
|
|
548
549
|
})
|
|
549
550
|
])) : U("", !0);
|
|
550
551
|
};
|
|
551
552
|
}
|
|
552
|
-
}),
|
|
553
|
+
}), Fe = {
|
|
553
554
|
value: "_metric_name"
|
|
554
555
|
};
|
|
555
556
|
function bl(x, p, o) {
|
|
@@ -566,7 +567,7 @@ function bl(x, p, o) {
|
|
|
566
567
|
}
|
|
567
568
|
function yl(x) {
|
|
568
569
|
var s;
|
|
569
|
-
const { rowIds: p, columnIds: o } =
|
|
570
|
+
const { rowIds: p, columnIds: o } = be(x.widget.config);
|
|
570
571
|
return {
|
|
571
572
|
...x,
|
|
572
573
|
widget: {
|
|
@@ -581,7 +582,7 @@ function yl(x) {
|
|
|
581
582
|
x.widget.config.isDrillable
|
|
582
583
|
),
|
|
583
584
|
joinDatasources: (s = x.widget.config.joinDatasources) == null ? void 0 : s.map((n) => {
|
|
584
|
-
const { rowIds: g, columnIds: V } =
|
|
585
|
+
const { rowIds: g, columnIds: V } = be(n);
|
|
585
586
|
return {
|
|
586
587
|
...n,
|
|
587
588
|
rowIds: g,
|
|
@@ -592,9 +593,9 @@ function yl(x) {
|
|
|
592
593
|
}
|
|
593
594
|
};
|
|
594
595
|
}
|
|
595
|
-
function
|
|
596
|
-
const p = x.dimensions.filter((V) => V.hide !== !0 && !V.moveToColumn).map((V) =>
|
|
597
|
-
s && x.metrics.find((V) => V.moveToRow == !0) ? p.push(
|
|
596
|
+
function be(x) {
|
|
597
|
+
const p = x.dimensions.filter((V) => V.hide !== !0 && !V.moveToColumn).map((V) => me(V)), o = x.dimensions.filter((V) => V.hide !== !0 && V.moveToColumn == !0).map((V) => me(V)), s = x.metrics.length > 0;
|
|
598
|
+
s && x.metrics.find((V) => V.moveToRow == !0) ? p.push(Fe.value) : s && o.push(Fe.value);
|
|
598
599
|
const n = [], g = [];
|
|
599
600
|
for (const V of p)
|
|
600
601
|
n.push(V);
|
|
@@ -638,37 +639,37 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
638
639
|
const { t: o, te: s } = E(), n = le(x, "modelValue"), g = x;
|
|
639
640
|
S(() => !!g.max && n.value.length === g.max);
|
|
640
641
|
const V = W(!1), f = S(
|
|
641
|
-
() => n.value.map((l,
|
|
642
|
-
index:
|
|
642
|
+
() => n.value.map((l, r) => ({
|
|
643
|
+
index: r,
|
|
643
644
|
labels: [l.label || l.name],
|
|
644
645
|
value: l
|
|
645
646
|
}))
|
|
646
647
|
), m = W(n.value.length > 0 ? 0 : void 0);
|
|
647
648
|
function t(l) {
|
|
648
|
-
var
|
|
649
|
+
var r, k, y;
|
|
649
650
|
V.value = !0, i.value = l != null && l.value ? JSON.parse(
|
|
650
651
|
JSON.stringify({
|
|
651
652
|
...l.value,
|
|
652
653
|
label: Z(o, s, l.value.label, "other")
|
|
653
654
|
})
|
|
654
|
-
) : void 0, m.value = l == null ? void 0 : l.index, w.value = !!((
|
|
655
|
+
) : void 0, m.value = l == null ? void 0 : l.index, w.value = !!((r = i.value) != null && r.dataFormula || (k = i.value) != null && k.displayFormula), i.value && i.value.formatter === void 0 && (g.options.find(
|
|
655
656
|
(z) => {
|
|
656
657
|
var R, A;
|
|
657
658
|
return z.schemaName === ((R = i.value) == null ? void 0 : R.schemaName) && z.name === ((A = i.value) == null ? void 0 : A.name);
|
|
658
659
|
}
|
|
659
|
-
), l != null && l.value.timeFormatter && i.value.formatter === void 0 && (i.value.formatter = l == null ? void 0 : l.value.timeFormatter, i.value.timeFormatter = void 0)), ((y = g.config.rowIds) == null ? void 0 : y.findIndex((z) => z ===
|
|
660
|
+
), l != null && l.value.timeFormatter && i.value.formatter === void 0 && (i.value.formatter = l == null ? void 0 : l.value.timeFormatter, i.value.timeFormatter = void 0)), ((y = g.config.rowIds) == null ? void 0 : y.findIndex((z) => z === Fe.value)) !== -1 && i.value && (i.value.moveToRow = !0);
|
|
660
661
|
}
|
|
661
662
|
const i = W(void 0), w = W(!1), T = S(
|
|
662
663
|
() => g.options.find(
|
|
663
664
|
(l) => {
|
|
664
|
-
var
|
|
665
|
-
return l.schemaName === ((
|
|
665
|
+
var r, k;
|
|
666
|
+
return l.schemaName === ((r = i.value) == null ? void 0 : r.schemaName) && l.name === ((k = i.value) == null ? void 0 : k.name);
|
|
666
667
|
}
|
|
667
668
|
) ?? {}
|
|
668
669
|
);
|
|
669
|
-
function _(l,
|
|
670
|
+
function _(l, r) {
|
|
670
671
|
var k;
|
|
671
|
-
return (l == null ? void 0 : l.isNumericType) || ((k = l == null ? void 0 : l.isNumericAggregations) == null ? void 0 : k.includes(
|
|
672
|
+
return (l == null ? void 0 : l.isNumericType) || ((k = l == null ? void 0 : l.isNumericAggregations) == null ? void 0 : k.includes(r || ""));
|
|
672
673
|
}
|
|
673
674
|
const $ = S(
|
|
674
675
|
() => {
|
|
@@ -680,8 +681,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
680
681
|
i.value && (l ? i.value.decimal = typeof i.value.decimal != "number" ? 2 : i.value.decimal : i.value.decimal = void 0);
|
|
681
682
|
});
|
|
682
683
|
function v(l) {
|
|
683
|
-
var
|
|
684
|
-
(l.schemaName !== ((
|
|
684
|
+
var r, k;
|
|
685
|
+
(l.schemaName !== ((r = i.value) == null ? void 0 : r.schemaName) || l.name !== ((k = i.value) == null ? void 0 : k.name)) && (i.value = {
|
|
685
686
|
schemaName: l.schemaName,
|
|
686
687
|
name: l.name,
|
|
687
688
|
aggregation: l.aggregations[0],
|
|
@@ -692,12 +693,12 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
692
693
|
}, w.value = !1);
|
|
693
694
|
}
|
|
694
695
|
function b() {
|
|
695
|
-
const l = [...f.value.map((
|
|
696
|
+
const l = [...f.value.map((r) => r.value)];
|
|
696
697
|
i.value && (w.value || (i.value.dataFormula = void 0), m.value !== void 0 ? l[m.value] = i.value : l.push(i.value)), n.value = l, V.value = !1;
|
|
697
698
|
}
|
|
698
699
|
function u(l) {
|
|
699
|
-
const
|
|
700
|
-
|
|
700
|
+
const r = [...f.value.map((k) => k.value)];
|
|
701
|
+
r.splice(l, 1), n.value = r;
|
|
701
702
|
}
|
|
702
703
|
const c = S(
|
|
703
704
|
() => g.options.map((l) => ({
|
|
@@ -707,40 +708,40 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
707
708
|
), a = S(
|
|
708
709
|
() => g.label ? g.label : o(`report.section.metric.${g.label}`)
|
|
709
710
|
);
|
|
710
|
-
return (l,
|
|
711
|
+
return (l, r) => {
|
|
711
712
|
const k = C("FmTextField"), y = C("FmStepperField"), z = C("FmCheckbox"), R = C("FmTextarea"), A = C("FmForm"), H = C("FmIcon"), Y = C("FmButton"), oe = C("FmListItem"), O = C("FmList"), B = C("FmField");
|
|
712
713
|
return h(), I("div", hl, [
|
|
713
|
-
|
|
714
|
+
d(ce, {
|
|
714
715
|
modelValue: V.value,
|
|
715
|
-
"onUpdate:modelValue":
|
|
716
|
+
"onUpdate:modelValue": r[10] || (r[10] = (q) => V.value = q),
|
|
716
717
|
title: a.value,
|
|
717
718
|
onConfirm: b
|
|
718
719
|
}, {
|
|
719
720
|
content: N(() => [
|
|
720
|
-
|
|
721
|
+
d(A, {
|
|
721
722
|
ref: "form",
|
|
722
723
|
class: "flex flex-col gap-2 w-[490px]"
|
|
723
724
|
}, {
|
|
724
725
|
default: N(() => {
|
|
725
|
-
var q, K, J,
|
|
726
|
+
var q, K, J, re;
|
|
726
727
|
return [
|
|
727
|
-
|
|
728
|
+
d(Q, {
|
|
728
729
|
"model-value": T.value,
|
|
729
730
|
items: c.value,
|
|
730
731
|
placeholder: a.value,
|
|
731
732
|
label: a.value,
|
|
732
|
-
"onUpdate:modelValue":
|
|
733
|
+
"onUpdate:modelValue": r[0] || (r[0] = (P) => v(P))
|
|
733
734
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
734
735
|
i.value ? (h(), I(ee, { key: 0 }, [
|
|
735
|
-
|
|
736
|
+
d(k, {
|
|
736
737
|
modelValue: i.value.label,
|
|
737
|
-
"onUpdate:modelValue":
|
|
738
|
+
"onUpdate:modelValue": r[1] || (r[1] = (P) => i.value.label = P),
|
|
738
739
|
label: e(o)("report.section.metric.label")
|
|
739
740
|
}, null, 8, ["modelValue", "label"]),
|
|
740
741
|
(((q = T.value) == null ? void 0 : q.aggregations) || []).length > 0 ? (h(), D(Q, {
|
|
741
742
|
key: 0,
|
|
742
743
|
modelValue: i.value.aggregation,
|
|
743
|
-
"onUpdate:modelValue":
|
|
744
|
+
"onUpdate:modelValue": r[2] || (r[2] = (P) => i.value.aggregation = P),
|
|
744
745
|
label: e(o)("report.section.metric.aggregation"),
|
|
745
746
|
items: ((K = T.value) == null ? void 0 : K.aggregations.map((P) => ({
|
|
746
747
|
label: e(Z)(e(o), e(s), P, "field"),
|
|
@@ -751,53 +752,53 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
751
752
|
key: 1,
|
|
752
753
|
label: e(o)("report.common.decimal"),
|
|
753
754
|
"model-value": ((J = i.value) == null ? void 0 : J.decimal) ?? 2,
|
|
754
|
-
"onUpdate:modelValue":
|
|
755
|
+
"onUpdate:modelValue": r[3] || (r[3] = (P) => {
|
|
755
756
|
i.value && (i.value.decimal = P);
|
|
756
757
|
})
|
|
757
758
|
}, null, 8, ["label", "model-value"])) : U("", !0),
|
|
758
759
|
$.value ? (h(), D(Q, {
|
|
759
760
|
key: 2,
|
|
760
761
|
modelValue: i.value.formatter,
|
|
761
|
-
"onUpdate:modelValue":
|
|
762
|
+
"onUpdate:modelValue": r[4] || (r[4] = (P) => i.value.formatter = P),
|
|
762
763
|
placeholder: e(o)("report.section.metric.formatter"),
|
|
763
764
|
label: e(o)("report.section.metric.formatter"),
|
|
764
765
|
items: [
|
|
765
766
|
{ label: "NONE", value: null },
|
|
766
|
-
...(((
|
|
767
|
+
...(((re = T.value) == null ? void 0 : re.formatters) || []).map((P) => ({
|
|
767
768
|
label: P,
|
|
768
769
|
value: P
|
|
769
770
|
}))
|
|
770
771
|
]
|
|
771
772
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : U("", !0),
|
|
772
|
-
|
|
773
|
+
d(z, {
|
|
773
774
|
modelValue: i.value.hide,
|
|
774
|
-
"onUpdate:modelValue":
|
|
775
|
+
"onUpdate:modelValue": r[5] || (r[5] = (P) => i.value.hide = P),
|
|
775
776
|
label: e(o)("report.section.metric.hide"),
|
|
776
777
|
value: ""
|
|
777
778
|
}, null, 8, ["modelValue", "label"]),
|
|
778
779
|
g.hasRowColumn ? (h(), D(z, {
|
|
779
780
|
key: 3,
|
|
780
781
|
modelValue: i.value.moveToRow,
|
|
781
|
-
"onUpdate:modelValue":
|
|
782
|
+
"onUpdate:modelValue": r[6] || (r[6] = (P) => i.value.moveToRow = P),
|
|
782
783
|
label: e(o)("report.section.metric.moveToRow"),
|
|
783
784
|
value: ""
|
|
784
785
|
}, null, 8, ["modelValue", "label"])) : U("", !0),
|
|
785
|
-
|
|
786
|
+
d(z, {
|
|
786
787
|
modelValue: w.value,
|
|
787
|
-
"onUpdate:modelValue":
|
|
788
|
+
"onUpdate:modelValue": r[7] || (r[7] = (P) => w.value = P),
|
|
788
789
|
label: e(o)("report.section.metric.advance"),
|
|
789
790
|
value: !0
|
|
790
791
|
}, null, 8, ["modelValue", "label"]),
|
|
791
792
|
w.value ? (h(), D(R, {
|
|
792
793
|
key: 4,
|
|
793
794
|
modelValue: i.value.dataFormula,
|
|
794
|
-
"onUpdate:modelValue":
|
|
795
|
+
"onUpdate:modelValue": r[8] || (r[8] = (P) => i.value.dataFormula = P),
|
|
795
796
|
placeholder: e(o)("report.section.metric.dataFormula")
|
|
796
797
|
}, null, 8, ["modelValue", "placeholder"])) : U("", !0),
|
|
797
798
|
w.value ? (h(), D(R, {
|
|
798
799
|
key: 5,
|
|
799
800
|
modelValue: i.value.displayFormula,
|
|
800
|
-
"onUpdate:modelValue":
|
|
801
|
+
"onUpdate:modelValue": r[9] || (r[9] = (P) => i.value.displayFormula = P),
|
|
801
802
|
placeholder: e(o)("report.section.metric.displayFormula")
|
|
802
803
|
}, null, 8, ["modelValue", "placeholder"])) : U("", !0)
|
|
803
804
|
], 64)) : U("", !0)
|
|
@@ -812,23 +813,23 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
812
813
|
F("p", Vl, j(a.value), 1),
|
|
813
814
|
F("p", wl, j(e(o)("report.section.metric.description")), 1)
|
|
814
815
|
]),
|
|
815
|
-
|
|
816
|
+
d(O, null, {
|
|
816
817
|
default: N(() => [
|
|
817
|
-
|
|
818
|
+
d(e(ke), {
|
|
818
819
|
list: n.value,
|
|
819
820
|
"item-key": "id",
|
|
820
821
|
class: "flex flex-col gap-2 w-full"
|
|
821
822
|
}, {
|
|
822
823
|
item: N(({ element: q, index: K }) => [
|
|
823
|
-
|
|
824
|
+
d(oe, {
|
|
824
825
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
825
826
|
onClick: te((J) => t(f.value[K]), ["stop"])
|
|
826
827
|
}, {
|
|
827
828
|
default: N(() => [
|
|
828
|
-
|
|
829
|
+
d(H, { name: "drag_handle" }),
|
|
829
830
|
F("p", Fl, j(e(Z)(e(o), e(s), q.label, "other")), 1),
|
|
830
|
-
|
|
831
|
-
|
|
831
|
+
r[12] || (r[12] = F("div", { class: "grow" }, null, -1)),
|
|
832
|
+
d(Y, {
|
|
832
833
|
icon: "close",
|
|
833
834
|
size: "md",
|
|
834
835
|
variant: "tertiary",
|
|
@@ -843,14 +844,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
843
844
|
]),
|
|
844
845
|
_: 1
|
|
845
846
|
}),
|
|
846
|
-
|
|
847
|
+
d(B, {
|
|
847
848
|
class: "text-fm-color-typo-tertiary",
|
|
848
|
-
onClick:
|
|
849
|
+
onClick: r[11] || (r[11] = () => {
|
|
849
850
|
t();
|
|
850
851
|
})
|
|
851
852
|
}, {
|
|
852
853
|
default: N(() => [
|
|
853
|
-
|
|
854
|
+
pe(j(e(o)("report.section.metric.add")), 1)
|
|
854
855
|
]),
|
|
855
856
|
_: 1
|
|
856
857
|
})
|
|
@@ -907,7 +908,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
907
908
|
name: b.name,
|
|
908
909
|
dimensionOption: b.dimensionOptions[0],
|
|
909
910
|
aggregation: null,
|
|
910
|
-
type:
|
|
911
|
+
type: Se.Asc
|
|
911
912
|
});
|
|
912
913
|
}
|
|
913
914
|
function _() {
|
|
@@ -929,23 +930,23 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
929
930
|
}))
|
|
930
931
|
);
|
|
931
932
|
return (b, u) => {
|
|
932
|
-
const c = C("FmCheckbox"), a = C("FmTextarea"), l = C("FmForm"),
|
|
933
|
+
const c = C("FmCheckbox"), a = C("FmTextarea"), l = C("FmForm"), r = C("FmIcon"), k = C("FmButton"), y = C("FmListItem"), z = C("FmList"), R = C("FmField");
|
|
933
934
|
return h(), I("div", Cl, [
|
|
934
|
-
|
|
935
|
+
d(ce, {
|
|
935
936
|
modelValue: g.value,
|
|
936
937
|
"onUpdate:modelValue": u[6] || (u[6] = (A) => g.value = A),
|
|
937
938
|
title: n.value,
|
|
938
939
|
onConfirm: _
|
|
939
940
|
}, {
|
|
940
941
|
content: N(() => [
|
|
941
|
-
|
|
942
|
+
d(l, {
|
|
942
943
|
ref: "form",
|
|
943
944
|
class: "flex flex-col gap-2 w-[490px]"
|
|
944
945
|
}, {
|
|
945
946
|
default: N(() => {
|
|
946
947
|
var A, H, Y, oe;
|
|
947
948
|
return [
|
|
948
|
-
|
|
949
|
+
d(Q, {
|
|
949
950
|
"model-value": w.value,
|
|
950
951
|
items: v.value,
|
|
951
952
|
placeholder: n.value,
|
|
@@ -969,14 +970,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
969
970
|
label: e(p)("report.section.sort.aggregation"),
|
|
970
971
|
placeholder: e(p)("report.section.sort.aggregation")
|
|
971
972
|
}, null, 8, ["modelValue", "items", "label", "placeholder"])) : U("", !0),
|
|
972
|
-
|
|
973
|
+
d(Q, {
|
|
973
974
|
modelValue: t.value.type,
|
|
974
975
|
"onUpdate:modelValue": u[3] || (u[3] = (O) => t.value.type = O),
|
|
975
|
-
items: Object.values(e(
|
|
976
|
+
items: Object.values(e(Se)).map((O) => ({ label: O, value: O })),
|
|
976
977
|
placeholder: e(p)("report.section.sort.order"),
|
|
977
978
|
label: e(p)("report.section.sort.order")
|
|
978
979
|
}, null, 8, ["modelValue", "items", "placeholder", "label"]),
|
|
979
|
-
|
|
980
|
+
d(c, {
|
|
980
981
|
modelValue: i.value,
|
|
981
982
|
"onUpdate:modelValue": u[4] || (u[4] = (O) => i.value = O),
|
|
982
983
|
label: e(p)("report.section.sort.advance"),
|
|
@@ -1000,23 +1001,23 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1000
1001
|
F("p", kl, j(n.value), 1),
|
|
1001
1002
|
F("p", _l, j(e(p)("report.section.sort.description")), 1)
|
|
1002
1003
|
]),
|
|
1003
|
-
|
|
1004
|
+
d(z, null, {
|
|
1004
1005
|
default: N(() => [
|
|
1005
|
-
|
|
1006
|
+
d(e(ke), {
|
|
1006
1007
|
list: o.value,
|
|
1007
1008
|
"item-key": "id",
|
|
1008
1009
|
class: "flex flex-col gap-2 w-full"
|
|
1009
1010
|
}, {
|
|
1010
1011
|
item: N(({ element: A, index: H }) => [
|
|
1011
|
-
|
|
1012
|
+
d(y, {
|
|
1012
1013
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1013
1014
|
onClick: te((Y) => m(V.value[H]), ["stop"])
|
|
1014
1015
|
}, {
|
|
1015
1016
|
default: N(() => [
|
|
1016
|
-
r
|
|
1017
|
+
d(r, { name: "drag_handle" }),
|
|
1017
1018
|
F("p", Sl, j(e(je)(A.name)), 1),
|
|
1018
1019
|
u[8] || (u[8] = F("div", { class: "grow" }, null, -1)),
|
|
1019
|
-
|
|
1020
|
+
d(k, {
|
|
1020
1021
|
icon: "close",
|
|
1021
1022
|
size: "md",
|
|
1022
1023
|
variant: "tertiary",
|
|
@@ -1031,14 +1032,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1031
1032
|
]),
|
|
1032
1033
|
_: 1
|
|
1033
1034
|
}),
|
|
1034
|
-
|
|
1035
|
+
d(R, {
|
|
1035
1036
|
class: "text-fm-color-typo-tertiary",
|
|
1036
1037
|
onClick: u[7] || (u[7] = () => {
|
|
1037
1038
|
m();
|
|
1038
1039
|
})
|
|
1039
1040
|
}, {
|
|
1040
1041
|
default: N(() => [
|
|
1041
|
-
|
|
1042
|
+
pe(j(e(p)("report.section.sort.add")), 1)
|
|
1042
1043
|
]),
|
|
1043
1044
|
_: 1
|
|
1044
1045
|
})
|
|
@@ -1053,7 +1054,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1053
1054
|
},
|
|
1054
1055
|
emits: ["update:modelValue"],
|
|
1055
1056
|
setup(x) {
|
|
1056
|
-
const { t: p } = E(), o = le(x, "modelValue"), s =
|
|
1057
|
+
const { t: p } = E(), o = le(x, "modelValue"), s = ge((n) => {
|
|
1057
1058
|
n !== "" ? o.value = n : o.value = null;
|
|
1058
1059
|
}, 1e3);
|
|
1059
1060
|
return (n, g) => {
|
|
@@ -1063,7 +1064,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1063
1064
|
F("p", Dl, j(e(p)("report.section.limit.title")), 1),
|
|
1064
1065
|
F("p", Ul, j(e(p)("report.section.limit.description")), 1)
|
|
1065
1066
|
]),
|
|
1066
|
-
|
|
1067
|
+
d(V, {
|
|
1067
1068
|
"model-value": o.value,
|
|
1068
1069
|
inputmode: "numeric",
|
|
1069
1070
|
placeholder: e(p)("report.section.limit.placeholder"),
|
|
@@ -1126,8 +1127,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1126
1127
|
() => s.joinFieldOptions.map((u) => ({ label: u.labels.join(" "), value: u }))
|
|
1127
1128
|
);
|
|
1128
1129
|
function T(u) {
|
|
1129
|
-
var c, a, l,
|
|
1130
|
-
m.value && (m.value && u.schemaName !== ((a = (c = m.value) == null ? void 0 : c.joinDimension) == null ? void 0 : a.schemaName) || u.name !== ((
|
|
1130
|
+
var c, a, l, r;
|
|
1131
|
+
m.value && (m.value && u.schemaName !== ((a = (c = m.value) == null ? void 0 : c.joinDimension) == null ? void 0 : a.schemaName) || u.name !== ((r = (l = m.value) == null ? void 0 : l.joinDimension) == null ? void 0 : r.name)) && (m.value = {
|
|
1131
1132
|
...m.value,
|
|
1132
1133
|
joinDimension: {
|
|
1133
1134
|
schemaName: u.schemaName,
|
|
@@ -1139,8 +1140,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1139
1140
|
}, u.joinConditionOperators.includes(m.value.operator) || $(u.joinConditionOperators[0]));
|
|
1140
1141
|
}
|
|
1141
1142
|
function _(u, c) {
|
|
1142
|
-
var a, l,
|
|
1143
|
-
if (m.value && c >= 0 && (m.value && u.schemaName !== ((l = (a = m.value) == null ? void 0 : a.mainDimensions[c]) == null ? void 0 : l.schemaName) || u.name !== ((k = (
|
|
1143
|
+
var a, l, r, k;
|
|
1144
|
+
if (m.value && c >= 0 && (m.value && u.schemaName !== ((l = (a = m.value) == null ? void 0 : a.mainDimensions[c]) == null ? void 0 : l.schemaName) || u.name !== ((k = (r = m.value) == null ? void 0 : r.mainDimensions[c]) == null ? void 0 : k.name))) {
|
|
1144
1145
|
const y = [...m.value.mainDimensions];
|
|
1145
1146
|
y[c] = {
|
|
1146
1147
|
schemaName: u.schemaName,
|
|
@@ -1184,30 +1185,30 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1184
1185
|
c.splice(u, 1), o.value = c;
|
|
1185
1186
|
}
|
|
1186
1187
|
return (u, c) => {
|
|
1187
|
-
const a = C("FmMenuDivider"), l = C("FmForm"),
|
|
1188
|
+
const a = C("FmMenuDivider"), l = C("FmForm"), r = C("FmButton"), k = C("FmListItem"), y = C("FmList"), z = C("FmField");
|
|
1188
1189
|
return h(), I("div", Nl, [
|
|
1189
|
-
|
|
1190
|
+
d(ce, {
|
|
1190
1191
|
modelValue: n.value,
|
|
1191
1192
|
"onUpdate:modelValue": c[2] || (c[2] = (R) => n.value = R),
|
|
1192
1193
|
title: e(p)("report.section.condition.condition"),
|
|
1193
1194
|
onConfirm: v
|
|
1194
1195
|
}, {
|
|
1195
1196
|
content: N(() => [
|
|
1196
|
-
|
|
1197
|
+
d(l, {
|
|
1197
1198
|
ref: "form",
|
|
1198
1199
|
class: "flex flex-col gap-2 w-[490px]"
|
|
1199
1200
|
}, {
|
|
1200
1201
|
default: N(() => {
|
|
1201
1202
|
var R, A, H, Y, oe;
|
|
1202
1203
|
return [
|
|
1203
|
-
|
|
1204
|
+
d(Q, {
|
|
1204
1205
|
label: e(p)("report.section.condition.joinDatasource"),
|
|
1205
1206
|
"model-value": t.value,
|
|
1206
1207
|
items: w.value,
|
|
1207
1208
|
placeholder: e(p)("report.section.condition.joinDimension"),
|
|
1208
1209
|
"onUpdate:modelValue": c[0] || (c[0] = (O) => T(O))
|
|
1209
1210
|
}, null, 8, ["label", "model-value", "items", "placeholder"]),
|
|
1210
|
-
|
|
1211
|
+
d(a),
|
|
1211
1212
|
(R = m.value) != null && R.joinDimension && (((A = t.value) == null ? void 0 : A.dimensionOptions) || []).length > 0 ? (h(), D(Q, {
|
|
1212
1213
|
key: 0,
|
|
1213
1214
|
modelValue: m.value.joinDimension.option,
|
|
@@ -1228,13 +1229,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1228
1229
|
})) ?? [],
|
|
1229
1230
|
"onUpdate:modelValue": $
|
|
1230
1231
|
}, null, 8, ["model-value", "label", "items"])) : U("", !0),
|
|
1231
|
-
(h(!0), I(ee, null,
|
|
1232
|
+
(h(!0), I(ee, null, de(((oe = m.value) == null ? void 0 : oe.mainDimensions) || [], (O, B) => {
|
|
1232
1233
|
var q, K;
|
|
1233
1234
|
return h(), I("div", {
|
|
1234
1235
|
key: B,
|
|
1235
1236
|
class: "flex flex-col gap-2"
|
|
1236
1237
|
}, [
|
|
1237
|
-
|
|
1238
|
+
d(Q, {
|
|
1238
1239
|
"model-value": i.value[B],
|
|
1239
1240
|
label: e(p)("report.section.condition.mainDatasource", { index: B + 1 }),
|
|
1240
1241
|
items: s.mainFieldOptions.map((J) => ({
|
|
@@ -1252,7 +1253,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1252
1253
|
value: J
|
|
1253
1254
|
}))
|
|
1254
1255
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : U("", !0),
|
|
1255
|
-
|
|
1256
|
+
d(a)
|
|
1256
1257
|
]);
|
|
1257
1258
|
}), 128))
|
|
1258
1259
|
];
|
|
@@ -1266,9 +1267,9 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1266
1267
|
F("p", Ol, j(e(p)("report.section.condition.condition")), 1),
|
|
1267
1268
|
F("p", Il, j(e(p)("report.section.condition.description")), 1)
|
|
1268
1269
|
]),
|
|
1269
|
-
|
|
1270
|
+
d(y, { class: "flex flex-col gap-2" }, {
|
|
1270
1271
|
default: N(() => [
|
|
1271
|
-
(h(!0), I(ee, null,
|
|
1272
|
+
(h(!0), I(ee, null, de(o.value, (R, A) => (h(), D(k, {
|
|
1272
1273
|
key: A,
|
|
1273
1274
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1274
1275
|
onClick: (H) => f(g.value[A])
|
|
@@ -1278,7 +1279,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1278
1279
|
return [
|
|
1279
1280
|
F("p", Bl, j(e(al)(((H = R.joinDimension) == null ? void 0 : H.schemaName) ?? "")) + " " + j((Y = R.joinDimension) == null ? void 0 : Y.label), 1),
|
|
1280
1281
|
c[4] || (c[4] = F("div", { class: "grow" }, null, -1)),
|
|
1281
|
-
r
|
|
1282
|
+
d(r, {
|
|
1282
1283
|
icon: "close",
|
|
1283
1284
|
size: "md",
|
|
1284
1285
|
variant: "tertiary",
|
|
@@ -1291,12 +1292,12 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1291
1292
|
]),
|
|
1292
1293
|
_: 1
|
|
1293
1294
|
}),
|
|
1294
|
-
|
|
1295
|
+
d(z, {
|
|
1295
1296
|
class: "text-fm-color-typo-tertiary cursor-pointer",
|
|
1296
1297
|
onClick: c[3] || (c[3] = (R) => f())
|
|
1297
1298
|
}, {
|
|
1298
1299
|
default: N(() => [
|
|
1299
|
-
|
|
1300
|
+
pe(j(e(p)("report.section.condition.add")), 1)
|
|
1300
1301
|
]),
|
|
1301
1302
|
_: 1
|
|
1302
1303
|
})
|
|
@@ -1334,11 +1335,11 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1334
1335
|
}),
|
|
1335
1336
|
emits: /* @__PURE__ */ G(["click-close"], ["update:modelValue"]),
|
|
1336
1337
|
setup(x, { emit: p }) {
|
|
1337
|
-
const { disableEditMode: o, resetStore: s } =
|
|
1338
|
+
const { disableEditMode: o, resetStore: s } = fe(), n = le(x, "modelValue");
|
|
1338
1339
|
se(
|
|
1339
1340
|
[() => n.value.dimensions, () => n.value.metrics],
|
|
1340
1341
|
() => {
|
|
1341
|
-
const { rowIds: c, columnIds: a } =
|
|
1342
|
+
const { rowIds: c, columnIds: a } = be(n.value);
|
|
1342
1343
|
n.value.rowIds = c, n.value.columnIds = a;
|
|
1343
1344
|
},
|
|
1344
1345
|
{ deep: !0 }
|
|
@@ -1352,20 +1353,20 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1352
1353
|
), T = S(() => {
|
|
1353
1354
|
const c = [...n.value.dimensions].filter((a) => !a.hide);
|
|
1354
1355
|
return c.sort(
|
|
1355
|
-
(a, l) => (n.value.rowIds || []).indexOf(
|
|
1356
|
+
(a, l) => (n.value.rowIds || []).indexOf(me(a)) - (n.value.rowIds || []).indexOf(me(l))
|
|
1356
1357
|
), c;
|
|
1357
1358
|
}), _ = S(() => g.config.type === L.Scorecard), $ = S(
|
|
1358
1359
|
() => {
|
|
1359
1360
|
var c;
|
|
1360
1361
|
return (((c = g.mainDatasourceConfig) == null ? void 0 : c.schemaNames) || []).reduce(
|
|
1361
1362
|
(a, l) => {
|
|
1362
|
-
const
|
|
1363
|
-
return
|
|
1363
|
+
const r = f.value.find((k) => k.name === l);
|
|
1364
|
+
return r && (a = [
|
|
1364
1365
|
...a,
|
|
1365
|
-
...
|
|
1366
|
+
...r.fields.map((k) => ({
|
|
1366
1367
|
...k,
|
|
1367
1368
|
labels: [
|
|
1368
|
-
Z(m, t,
|
|
1369
|
+
Z(m, t, r.label, "schema"),
|
|
1369
1370
|
Z(m, t, k.label || k.name, "other")
|
|
1370
1371
|
]
|
|
1371
1372
|
}))
|
|
@@ -1376,14 +1377,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1376
1377
|
}
|
|
1377
1378
|
), v = S(
|
|
1378
1379
|
() => n.value.schemaNames.reduce((c, a) => {
|
|
1379
|
-
const l = f.value.find((
|
|
1380
|
+
const l = f.value.find((r) => r.name === a);
|
|
1380
1381
|
return l && (c = [
|
|
1381
1382
|
...c,
|
|
1382
|
-
...l.fields.map((
|
|
1383
|
-
...
|
|
1383
|
+
...l.fields.map((r) => ({
|
|
1384
|
+
...r,
|
|
1384
1385
|
labels: [
|
|
1385
1386
|
Z(m, t, l.label, "schema"),
|
|
1386
|
-
Z(m, t,
|
|
1387
|
+
Z(m, t, r.label || r.name, "other")
|
|
1387
1388
|
]
|
|
1388
1389
|
}))
|
|
1389
1390
|
]), c;
|
|
@@ -1400,14 +1401,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1400
1401
|
label: "None",
|
|
1401
1402
|
value: null
|
|
1402
1403
|
},
|
|
1403
|
-
...Object.keys(
|
|
1404
|
+
...Object.keys(Te).map((c) => ({
|
|
1404
1405
|
label: c,
|
|
1405
|
-
value:
|
|
1406
|
+
value: Te[c]
|
|
1406
1407
|
}))
|
|
1407
1408
|
];
|
|
1408
1409
|
return (c, a) => {
|
|
1409
|
-
const l = C("FmButton"),
|
|
1410
|
-
return h(), D(
|
|
1410
|
+
const l = C("FmButton"), r = C("FmSwitch"), k = C("FmSelect");
|
|
1411
|
+
return h(), D(we, null, {
|
|
1411
1412
|
header: N(() => [
|
|
1412
1413
|
F("p", null, j(g.label), 1),
|
|
1413
1414
|
a[19] || (a[19] = F("div", { class: "grow" }, null, -1)),
|
|
@@ -1420,12 +1421,12 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1420
1421
|
})) : U("", !0)
|
|
1421
1422
|
]),
|
|
1422
1423
|
content: N(() => [
|
|
1423
|
-
|
|
1424
|
+
d(pl, {
|
|
1424
1425
|
modelValue: n.value,
|
|
1425
1426
|
"onUpdate:modelValue": a[1] || (a[1] = (y) => n.value = y),
|
|
1426
1427
|
label: e(m)("report.section.schema.title")
|
|
1427
1428
|
}, null, 8, ["modelValue", "label"]),
|
|
1428
|
-
|
|
1429
|
+
d(Ve, {
|
|
1429
1430
|
modelValue: n.value.dimensions,
|
|
1430
1431
|
"onUpdate:modelValue": a[2] || (a[2] = (y) => n.value.dimensions = y),
|
|
1431
1432
|
options: v.value,
|
|
@@ -1436,7 +1437,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1436
1437
|
n.value = y;
|
|
1437
1438
|
})
|
|
1438
1439
|
}, null, 8, ["modelValue", "options", "config", "max"]),
|
|
1439
|
-
r
|
|
1440
|
+
d(r, {
|
|
1440
1441
|
"label-placement": "right",
|
|
1441
1442
|
label: e(m)("report.section.datasource.comparable"),
|
|
1442
1443
|
"model-value": n.value.isComparable ?? !1,
|
|
@@ -1444,7 +1445,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1444
1445
|
n.value.isComparable = y;
|
|
1445
1446
|
})
|
|
1446
1447
|
}, null, 8, ["label", "model-value"]),
|
|
1447
|
-
w.value ? (h(), D(
|
|
1448
|
+
w.value ? (h(), D(r, {
|
|
1448
1449
|
key: 0,
|
|
1449
1450
|
"label-placement": "right",
|
|
1450
1451
|
label: e(m)("report.section.datasource.cumulative"),
|
|
@@ -1453,7 +1454,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1453
1454
|
n.value.isCumulative = y;
|
|
1454
1455
|
})
|
|
1455
1456
|
}, null, 8, ["label", "model-value"])) : U("", !0),
|
|
1456
|
-
g.config.isDrillConfigurable && i.value ? (h(), D(
|
|
1457
|
+
g.config.isDrillConfigurable && i.value ? (h(), D(r, {
|
|
1457
1458
|
key: 1,
|
|
1458
1459
|
label: e(m)("report.section.datasource.drill"),
|
|
1459
1460
|
"label-placement": "right",
|
|
@@ -1462,7 +1463,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1462
1463
|
n.value.isDrillable = y;
|
|
1463
1464
|
})
|
|
1464
1465
|
}, null, 8, ["label", "model-value"])) : U("", !0),
|
|
1465
|
-
i.value ? (h(), D(
|
|
1466
|
+
i.value ? (h(), D(r, {
|
|
1466
1467
|
key: 2,
|
|
1467
1468
|
modelValue: n.value.isBlend,
|
|
1468
1469
|
"onUpdate:modelValue": a[7] || (a[7] = (y) => n.value.isBlend = y),
|
|
@@ -1483,14 +1484,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1483
1484
|
label: e(m)("report.section.datasource.periodType"),
|
|
1484
1485
|
items: u
|
|
1485
1486
|
}, null, 8, ["modelValue", "label"])),
|
|
1486
|
-
g.config.canTranspose && i.value ? (h(), D(
|
|
1487
|
+
g.config.canTranspose && i.value ? (h(), D(r, {
|
|
1487
1488
|
key: 5,
|
|
1488
1489
|
modelValue: n.value.isTransposed,
|
|
1489
1490
|
"onUpdate:modelValue": a[10] || (a[10] = (y) => n.value.isTransposed = y),
|
|
1490
1491
|
label: e(m)("report.section.datasource.transpose"),
|
|
1491
1492
|
"label-placement": "right"
|
|
1492
1493
|
}, null, 8, ["modelValue", "label"])) : U("", !0),
|
|
1493
|
-
g.config.hasBreakdownDimension ? (h(), D(
|
|
1494
|
+
g.config.hasBreakdownDimension ? (h(), D(Ve, {
|
|
1494
1495
|
key: 6,
|
|
1495
1496
|
"model-value": n.value.breakdownDimension ? [n.value.breakdownDimension] : [],
|
|
1496
1497
|
label: e(m)("report.section.dimension.breakdownDimension"),
|
|
@@ -1500,7 +1501,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1500
1501
|
n.value.breakdownDimension = y[0];
|
|
1501
1502
|
})
|
|
1502
1503
|
}, null, 8, ["model-value", "label", "options"])) : U("", !0),
|
|
1503
|
-
_.value ? (h(), D(
|
|
1504
|
+
_.value ? (h(), D(Ve, {
|
|
1504
1505
|
key: 7,
|
|
1505
1506
|
"model-value": n.value.sparklineDimension ? [n.value.sparklineDimension] : [],
|
|
1506
1507
|
label: e(m)("report.section.dimension.sparklineDimension"),
|
|
@@ -1510,7 +1511,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1510
1511
|
n.value.sparklineDimension = y[0];
|
|
1511
1512
|
})
|
|
1512
1513
|
}, null, 8, ["model-value", "label", "options"])) : U("", !0),
|
|
1513
|
-
|
|
1514
|
+
d(xl, {
|
|
1514
1515
|
modelValue: n.value.metrics,
|
|
1515
1516
|
"onUpdate:modelValue": a[13] || (a[13] = (y) => n.value.metrics = y),
|
|
1516
1517
|
options: v.value,
|
|
@@ -1521,17 +1522,17 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1521
1522
|
n.value = y;
|
|
1522
1523
|
})
|
|
1523
1524
|
}, null, 8, ["modelValue", "options", "max", "config", "has-row-column"]),
|
|
1524
|
-
|
|
1525
|
+
d(Ge, {
|
|
1525
1526
|
modelValue: n.value.filters,
|
|
1526
1527
|
"onUpdate:modelValue": a[15] || (a[15] = (y) => n.value.filters = y),
|
|
1527
1528
|
options: v.value
|
|
1528
1529
|
}, null, 8, ["modelValue", "options"]),
|
|
1529
|
-
|
|
1530
|
+
d(Tl, {
|
|
1530
1531
|
modelValue: n.value.sorts,
|
|
1531
1532
|
"onUpdate:modelValue": a[16] || (a[16] = (y) => n.value.sorts = y),
|
|
1532
1533
|
options: v.value
|
|
1533
1534
|
}, null, 8, ["modelValue", "options"]),
|
|
1534
|
-
|
|
1535
|
+
d($l, {
|
|
1535
1536
|
modelValue: n.value.limit,
|
|
1536
1537
|
"onUpdate:modelValue": a[17] || (a[17] = (y) => n.value.limit = y)
|
|
1537
1538
|
}, null, 8, ["modelValue"]),
|
|
@@ -1547,7 +1548,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1547
1548
|
});
|
|
1548
1549
|
};
|
|
1549
1550
|
}
|
|
1550
|
-
}), jl = { class: "fm-typo-en-title-sm-600" },
|
|
1551
|
+
}), jl = { class: "fm-typo-en-title-sm-600" }, xe = /* @__PURE__ */ X({
|
|
1551
1552
|
__name: "TileEditorTabHeader",
|
|
1552
1553
|
props: /* @__PURE__ */ G({
|
|
1553
1554
|
icon: {
|
|
@@ -1569,7 +1570,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1569
1570
|
}, [
|
|
1570
1571
|
F("p", jl, j(e(p)("report.tile.setting")), 1),
|
|
1571
1572
|
g[1] || (g[1] = F("div", { class: "grow" }, null, -1)),
|
|
1572
|
-
|
|
1573
|
+
d(V, {
|
|
1573
1574
|
name: s.icon
|
|
1574
1575
|
}, null, 8, ["name"])
|
|
1575
1576
|
]);
|
|
@@ -1585,7 +1586,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1585
1586
|
setup(x) {
|
|
1586
1587
|
const p = le(x, "modelValue");
|
|
1587
1588
|
return (o, s) => (h(), I(ee, null, [
|
|
1588
|
-
|
|
1589
|
+
d(xe, {
|
|
1589
1590
|
modelValue: p.value,
|
|
1590
1591
|
"onUpdate:modelValue": s[0] || (s[0] = (n) => p.value = n),
|
|
1591
1592
|
icon: "keyboard_double_arrow_left"
|
|
@@ -1605,18 +1606,18 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1605
1606
|
return (o, s) => {
|
|
1606
1607
|
const n = C("FmTopSheet");
|
|
1607
1608
|
return h(), I("div", Rl, [
|
|
1608
|
-
|
|
1609
|
+
d(xe, {
|
|
1609
1610
|
modelValue: p.value,
|
|
1610
1611
|
"onUpdate:modelValue": s[0] || (s[0] = (g) => p.value = g),
|
|
1611
1612
|
icon: "keyboard_double_arrow_up"
|
|
1612
1613
|
}, null, 8, ["modelValue"]),
|
|
1613
|
-
|
|
1614
|
+
d(n, {
|
|
1614
1615
|
modelValue: p.value,
|
|
1615
1616
|
"onUpdate:modelValue": s[2] || (s[2] = (g) => p.value = g),
|
|
1616
1617
|
"fullscreen-size": "sm"
|
|
1617
1618
|
}, {
|
|
1618
1619
|
default: N(() => [
|
|
1619
|
-
|
|
1620
|
+
d(xe, {
|
|
1620
1621
|
modelValue: p.value,
|
|
1621
1622
|
"onUpdate:modelValue": s[1] || (s[1] = (g) => p.value = g),
|
|
1622
1623
|
icon: "keyboard_double_arrow_down"
|
|
@@ -1658,7 +1659,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1658
1659
|
F("div", Pl, [
|
|
1659
1660
|
F("div", Al, [
|
|
1660
1661
|
F("p", Xl, j(e(n)("report.section.datasource.title.titleFontSize")), 1),
|
|
1661
|
-
|
|
1662
|
+
d(T, {
|
|
1662
1663
|
modelValue: V.value,
|
|
1663
1664
|
"onUpdate:modelValue": w[0] || (w[0] = (v) => V.value = v),
|
|
1664
1665
|
max: 24,
|
|
@@ -1669,7 +1670,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1669
1670
|
F("div", ql, [
|
|
1670
1671
|
w[5] || (w[5] = F("p", { class: "fm-typo-en-body-lg-600" }, "Text style and format", -1)),
|
|
1671
1672
|
F("div", Wl, [
|
|
1672
|
-
|
|
1673
|
+
d(_, {
|
|
1673
1674
|
"append-icon": "format_bold",
|
|
1674
1675
|
"model-value": i.model.titleBold ?? !1,
|
|
1675
1676
|
variant: "tertiary",
|
|
@@ -1678,7 +1679,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1678
1679
|
class: "rounded-sm",
|
|
1679
1680
|
onClick: w[1] || (w[1] = (v) => f.value = !f.value)
|
|
1680
1681
|
}, null, 8, ["model-value", "icon-color", "bg-color"]),
|
|
1681
|
-
|
|
1682
|
+
d(_, {
|
|
1682
1683
|
"append-icon": "format_italic",
|
|
1683
1684
|
"model-value": i.model.titleItalic ?? !1,
|
|
1684
1685
|
"icon-color": i.model.titleItalic ? "neutral-gray-400" : "neutral-gray-300",
|
|
@@ -1686,7 +1687,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1686
1687
|
class: "rounded-sm",
|
|
1687
1688
|
onClick: w[2] || (w[2] = (v) => m.value = !m.value)
|
|
1688
1689
|
}, null, 8, ["model-value", "icon-color", "bg-color"]),
|
|
1689
|
-
|
|
1690
|
+
d(_, {
|
|
1690
1691
|
"append-icon": "format_underlined",
|
|
1691
1692
|
"model-value": i.model.titleUnderline ?? !1,
|
|
1692
1693
|
"icon-color": i.model.titleUnderline ? "neutral-gray-400" : "neutral-gray-300",
|
|
@@ -1698,7 +1699,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1698
1699
|
])
|
|
1699
1700
|
])
|
|
1700
1701
|
]),
|
|
1701
|
-
|
|
1702
|
+
d($, {
|
|
1702
1703
|
modelValue: g.value,
|
|
1703
1704
|
"onUpdate:modelValue": w[4] || (w[4] = (v) => g.value = v),
|
|
1704
1705
|
label: e(n)("report.section.datasource.title.showTitle"),
|
|
@@ -1717,7 +1718,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1717
1718
|
},
|
|
1718
1719
|
emits: ["update:layout"],
|
|
1719
1720
|
setup(x, { emit: p }) {
|
|
1720
|
-
const { t: o } = E(), s = x, n = p, { isEditing: g, colWidths: V, rowHeight: f } = ue(
|
|
1721
|
+
const { t: o } = E(), s = x, n = p, { isEditing: g, colWidths: V, rowHeight: f } = ue(fe()), { enableCellResizing: m, cancelResizingChanges: t, resetStore: i, disableEditMode: w } = fe();
|
|
1721
1722
|
S(
|
|
1722
1723
|
() => {
|
|
1723
1724
|
var _, $, v;
|
|
@@ -1743,13 +1744,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1743
1744
|
});
|
|
1744
1745
|
}
|
|
1745
1746
|
}
|
|
1746
|
-
return
|
|
1747
|
+
return Ce(() => {
|
|
1747
1748
|
var _, $;
|
|
1748
1749
|
((_ = s.layout) == null ? void 0 : _.rowHeight) !== void 0 && (f.value = s.layout.rowHeight), ($ = s.layout) != null && $.colWidths && (V.value = [...s.layout.colWidths]);
|
|
1749
1750
|
}), (_, $) => {
|
|
1750
1751
|
const v = C("FmButton");
|
|
1751
1752
|
return h(), I("div", El, [
|
|
1752
|
-
F("p", Yl, j(e(o)("report.section.datasource.
|
|
1753
|
+
F("p", Yl, j(e(o)("report.section.datasource.tableLayout")), 1),
|
|
1753
1754
|
F("div", Jl, [
|
|
1754
1755
|
e(g) ? U("", !0) : (h(), D(v, {
|
|
1755
1756
|
key: 0,
|
|
@@ -1763,13 +1764,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1763
1764
|
e(g) ? (h(), D(v, {
|
|
1764
1765
|
key: 1,
|
|
1765
1766
|
label: e(o)("report.common.cancel"),
|
|
1766
|
-
variant: "
|
|
1767
|
+
variant: "primary",
|
|
1767
1768
|
icon: "close",
|
|
1768
1769
|
"icon-position": "prepend",
|
|
1769
1770
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1770
1771
|
onClick: e(t)
|
|
1771
1772
|
}, null, 8, ["label", "onClick"])) : U("", !0),
|
|
1772
|
-
|
|
1773
|
+
d(v, {
|
|
1773
1774
|
label: e(o)("report.section.datasource.resetSize"),
|
|
1774
1775
|
variant: "secondary",
|
|
1775
1776
|
icon: "restart_alt",
|
|
@@ -1797,21 +1798,21 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1797
1798
|
}),
|
|
1798
1799
|
emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
|
|
1799
1800
|
setup(x, { emit: p }) {
|
|
1800
|
-
var l,
|
|
1801
|
+
var l, r;
|
|
1801
1802
|
const o = ze(), { dateRange: s, timezone: n } = ue(o), g = {
|
|
1802
1803
|
startDate: s.value.startDate,
|
|
1803
1804
|
endDate: s.value.endDate
|
|
1804
1805
|
}, V = W({
|
|
1805
|
-
startDate: (l =
|
|
1806
|
-
endDate: (
|
|
1806
|
+
startDate: (l = ve(s.value.startDate)) == null ? void 0 : l.tz(n.value).format($e),
|
|
1807
|
+
endDate: (r = ve(s.value.endDate)) == null ? void 0 : r.tz(n.value).format($e)
|
|
1807
1808
|
});
|
|
1808
1809
|
se(
|
|
1809
1810
|
V,
|
|
1810
1811
|
() => {
|
|
1811
1812
|
V.value.endDate || (V.value.endDate = V.value.startDate);
|
|
1812
1813
|
const k = {
|
|
1813
|
-
startDate:
|
|
1814
|
-
endDate:
|
|
1814
|
+
startDate: ve.tz(V.value.startDate, n.value).startOf("day").utc().toISOString(),
|
|
1815
|
+
endDate: ve.tz(V.value.endDate, n.value).endOf("day").utc().toISOString()
|
|
1815
1816
|
};
|
|
1816
1817
|
s.value = k;
|
|
1817
1818
|
},
|
|
@@ -1887,8 +1888,8 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1887
1888
|
}
|
|
1888
1889
|
};
|
|
1889
1890
|
}, u = S(
|
|
1890
|
-
() =>
|
|
1891
|
-
), c = S(() => f.value.widget.config.joinDatasources), a =
|
|
1891
|
+
() => ye.find((k) => k.type === f.value.widget.type)
|
|
1892
|
+
), c = S(() => f.value.widget.config.joinDatasources), a = ge((k) => {
|
|
1892
1893
|
f.value.widget.title = k;
|
|
1893
1894
|
}, 500);
|
|
1894
1895
|
return se(
|
|
@@ -1915,24 +1916,24 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1915
1916
|
}, {
|
|
1916
1917
|
default: N(() => [
|
|
1917
1918
|
F("div", Ql, [
|
|
1918
|
-
|
|
1919
|
+
d(R, {
|
|
1919
1920
|
modelValue: V.value,
|
|
1920
1921
|
"onUpdate:modelValue": y[0] || (y[0] = (B) => V.value = B)
|
|
1921
1922
|
}, null, 8, ["modelValue"])
|
|
1922
1923
|
]),
|
|
1923
|
-
|
|
1924
|
+
d(we, null, {
|
|
1924
1925
|
header: N(() => [
|
|
1925
1926
|
F("p", Zl, j(e(T)("report.tile.widget.details")), 1),
|
|
1926
1927
|
y[10] || (y[10] = F("div", { class: "grow" }, null, -1))
|
|
1927
1928
|
]),
|
|
1928
1929
|
content: N(() => [
|
|
1929
|
-
|
|
1930
|
+
d(A, {
|
|
1930
1931
|
"model-value": f.value.widget.title,
|
|
1931
1932
|
label: e(T)("report.tile.widget.title"),
|
|
1932
1933
|
placeholder: e(T)("report.tile.widget.titlePlaceholder"),
|
|
1933
1934
|
"onUpdate:modelValue": e(a)
|
|
1934
1935
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
1935
|
-
|
|
1936
|
+
d(H, {
|
|
1936
1937
|
modelValue: f.value.widget.description,
|
|
1937
1938
|
"onUpdate:modelValue": y[1] || (y[1] = (B) => f.value.widget.description = B),
|
|
1938
1939
|
disabled: f.value.widget.title === "",
|
|
@@ -1945,21 +1946,21 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1945
1946
|
]),
|
|
1946
1947
|
_: 1
|
|
1947
1948
|
}, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
|
|
1948
|
-
|
|
1949
|
+
d(Hl, {
|
|
1949
1950
|
model: f.value.widget.config,
|
|
1950
1951
|
"onUpdate:model": y[2] || (y[2] = (B) => f.value.widget.config = B)
|
|
1951
1952
|
}, null, 8, ["model"]),
|
|
1952
1953
|
F("div", {
|
|
1953
1954
|
class: Ie(["flex flex-row", `${e(m).sm || e(m).xs ? "gap-16" : "gap-2"}`])
|
|
1954
1955
|
}, [
|
|
1955
|
-
|
|
1956
|
+
d(Y, {
|
|
1956
1957
|
modelValue: f.value.size.width,
|
|
1957
1958
|
"onUpdate:modelValue": y[3] || (y[3] = (B) => f.value.size.width = B),
|
|
1958
1959
|
label: e(T)("report.tile.widget.width"),
|
|
1959
1960
|
min: 1,
|
|
1960
1961
|
max: 12
|
|
1961
1962
|
}, null, 8, ["modelValue", "label"]),
|
|
1962
|
-
|
|
1963
|
+
d(Y, {
|
|
1963
1964
|
modelValue: f.value.size.height,
|
|
1964
1965
|
"onUpdate:modelValue": y[4] || (y[4] = (B) => f.value.size.height = B),
|
|
1965
1966
|
label: e(T)("report.tile.widget.height"),
|
|
@@ -1976,13 +1977,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1976
1977
|
]),
|
|
1977
1978
|
_: 1
|
|
1978
1979
|
}),
|
|
1979
|
-
|
|
1980
|
+
d(we, null, {
|
|
1980
1981
|
header: N(() => [
|
|
1981
1982
|
F("p", null, j(e(T)("report.tile.widget.type")), 1),
|
|
1982
1983
|
y[11] || (y[11] = F("div", { class: "grow" }, null, -1))
|
|
1983
1984
|
]),
|
|
1984
1985
|
content: N(() => [
|
|
1985
|
-
|
|
1986
|
+
d(Ke, {
|
|
1986
1987
|
"is-list": !0,
|
|
1987
1988
|
"model-value": f.value.widget.type,
|
|
1988
1989
|
class: "grid grid-cols-1 gap-2",
|
|
@@ -1993,14 +1994,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
1993
1994
|
]),
|
|
1994
1995
|
_: 1
|
|
1995
1996
|
}),
|
|
1996
|
-
|
|
1997
|
+
d(Ue, {
|
|
1997
1998
|
modelValue: f.value.widget.config,
|
|
1998
1999
|
"onUpdate:modelValue": y[7] || (y[7] = (B) => f.value.widget.config = B),
|
|
1999
2000
|
label: e(T)("report.tile.datasource.main"),
|
|
2000
2001
|
config: u.value
|
|
2001
2002
|
}, null, 8, ["modelValue", "label", "config"]),
|
|
2002
|
-
c.value ? (h(!0), I(ee, { key: 0 },
|
|
2003
|
-
|
|
2003
|
+
c.value ? (h(!0), I(ee, { key: 0 }, de(c.value, (B, q) => (h(), I("div", { key: q }, [
|
|
2004
|
+
d(Ue, {
|
|
2004
2005
|
modelValue: c.value[q],
|
|
2005
2006
|
"onUpdate:modelValue": (K) => c.value[q] = K,
|
|
2006
2007
|
label: e(T)("report.tile.datasource.join", { index: q + 1 }),
|
|
@@ -2011,16 +2012,16 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2011
2012
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
|
|
2012
2013
|
]))), 128)) : U("", !0),
|
|
2013
2014
|
F("div", oo, [
|
|
2014
|
-
|
|
2015
|
+
d(oe, {
|
|
2015
2016
|
label: e(T)("report.tile.datasource.joinButton"),
|
|
2016
2017
|
variant: "secondary",
|
|
2017
2018
|
icon: "add",
|
|
2018
2019
|
"icon-position": "prepend",
|
|
2019
|
-
"border-color":
|
|
2020
|
-
"text-color":
|
|
2020
|
+
"border-color": "primary",
|
|
2021
|
+
"text-color": "primary",
|
|
2021
2022
|
class: "w-full",
|
|
2022
2023
|
onClick: y[8] || (y[8] = (B) => $())
|
|
2023
|
-
}, null, 8, ["label"
|
|
2024
|
+
}, null, 8, ["label"])
|
|
2024
2025
|
])
|
|
2025
2026
|
]),
|
|
2026
2027
|
_: 1
|
|
@@ -2070,14 +2071,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2070
2071
|
{ icon: "align_flex_start", value: ie.top, tooltip: "alignTop" },
|
|
2071
2072
|
{ icon: "align_flex_end", value: ie.bottom, tooltip: "alignBottom" }
|
|
2072
2073
|
], T = [
|
|
2073
|
-
{ icon: "format_align_left", value:
|
|
2074
|
-
{ icon: "format_align_center", value:
|
|
2075
|
-
{ icon: "format_align_right", value:
|
|
2074
|
+
{ icon: "format_align_left", value: he.start, tooltip: "anchorStart" },
|
|
2075
|
+
{ icon: "format_align_center", value: he.center, tooltip: "anchorCenter" },
|
|
2076
|
+
{ icon: "format_align_right", value: he.end, tooltip: "anchorEnd" }
|
|
2076
2077
|
];
|
|
2077
2078
|
return (_, $) => {
|
|
2078
2079
|
const v = C("FmCheckbox"), b = C("FmButton"), u = C("FmTooltip"), c = C("FmTextField"), a = C("FmStepperField");
|
|
2079
2080
|
return h(), I("div", to, [
|
|
2080
|
-
|
|
2081
|
+
d(v, {
|
|
2081
2082
|
modelValue: g.value,
|
|
2082
2083
|
"onUpdate:modelValue": $[0] || ($[0] = (l) => g.value = l),
|
|
2083
2084
|
value: !1,
|
|
@@ -2088,21 +2089,21 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2088
2089
|
ae(F("div", ao, [
|
|
2089
2090
|
F("p", no, j(e(n)("report.section.datasource.alignment.textAlignment")), 1),
|
|
2090
2091
|
F("div", io, [
|
|
2091
|
-
(h(), I(ee, null,
|
|
2092
|
-
key:
|
|
2092
|
+
(h(), I(ee, null, de(w, ({ icon: l, value: r, tooltip: k }) => d(u, {
|
|
2093
|
+
key: r,
|
|
2093
2094
|
variant: "plain",
|
|
2094
2095
|
placement: "top",
|
|
2095
2096
|
content: e(n)(`report.section.datasource.alignment.alignOptions.${k}`),
|
|
2096
2097
|
"z-index": 50
|
|
2097
2098
|
}, {
|
|
2098
2099
|
default: N(() => [
|
|
2099
|
-
|
|
2100
|
+
d(b, {
|
|
2100
2101
|
"append-icon": l,
|
|
2101
2102
|
variant: "tertiary",
|
|
2102
|
-
"icon-color": _.model.labelAlign ===
|
|
2103
|
-
"bg-color": _.model.labelAlign ===
|
|
2103
|
+
"icon-color": _.model.labelAlign === r ? "neutral-gray-400" : "neutral-gray-300",
|
|
2104
|
+
"bg-color": _.model.labelAlign === r ? "neutral-gray-100" : "neutral-white",
|
|
2104
2105
|
class: "rounded-sm",
|
|
2105
|
-
onClick: (y) => t(
|
|
2106
|
+
onClick: (y) => t(r)
|
|
2106
2107
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2107
2108
|
]),
|
|
2108
2109
|
_: 2
|
|
@@ -2110,27 +2111,27 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2110
2111
|
]),
|
|
2111
2112
|
F("p", so, j(e(n)("report.section.datasource.alignment.anchor")), 1),
|
|
2112
2113
|
F("div", uo, [
|
|
2113
|
-
(h(), I(ee, null,
|
|
2114
|
-
key:
|
|
2114
|
+
(h(), I(ee, null, de(T, ({ icon: l, value: r, tooltip: k }) => d(u, {
|
|
2115
|
+
key: r,
|
|
2115
2116
|
variant: "plain",
|
|
2116
2117
|
placement: "top",
|
|
2117
2118
|
content: e(n)(`report.section.datasource.alignment.anchorOptions.${k}`),
|
|
2118
2119
|
"z-index": 50
|
|
2119
2120
|
}, {
|
|
2120
2121
|
default: N(() => [
|
|
2121
|
-
|
|
2122
|
+
d(b, {
|
|
2122
2123
|
"append-icon": l,
|
|
2123
2124
|
variant: "tertiary",
|
|
2124
|
-
"icon-color": _.model.labelAnchor ===
|
|
2125
|
-
"bg-color": _.model.labelAnchor ===
|
|
2125
|
+
"icon-color": _.model.labelAnchor === r ? "neutral-gray-400" : "neutral-gray-300",
|
|
2126
|
+
"bg-color": _.model.labelAnchor === r ? "neutral-gray-100" : "neutral-white",
|
|
2126
2127
|
class: "rounded-sm",
|
|
2127
|
-
onClick: (y) => i(
|
|
2128
|
+
onClick: (y) => i(r)
|
|
2128
2129
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2129
2130
|
]),
|
|
2130
2131
|
_: 2
|
|
2131
2132
|
}, 1032, ["content"])), 64))
|
|
2132
2133
|
]),
|
|
2133
|
-
|
|
2134
|
+
d(c, {
|
|
2134
2135
|
modelValue: V.value,
|
|
2135
2136
|
"onUpdate:modelValue": $[1] || ($[1] = (l) => V.value = l),
|
|
2136
2137
|
label: e(n)("report.section.datasource.alignment.rotation"),
|
|
@@ -2139,13 +2140,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2139
2140
|
max: 180,
|
|
2140
2141
|
step: 1
|
|
2141
2142
|
}, null, 8, ["modelValue", "label"]),
|
|
2142
|
-
|
|
2143
|
+
d(c, {
|
|
2143
2144
|
modelValue: f.value,
|
|
2144
2145
|
"onUpdate:modelValue": $[2] || ($[2] = (l) => f.value = l),
|
|
2145
2146
|
label: e(n)("report.section.datasource.alignment.offset"),
|
|
2146
2147
|
type: "number"
|
|
2147
2148
|
}, null, 8, ["modelValue", "label"]),
|
|
2148
|
-
|
|
2149
|
+
d(a, {
|
|
2149
2150
|
modelValue: m.value,
|
|
2150
2151
|
"onUpdate:modelValue": $[3] || ($[3] = (l) => m.value = l),
|
|
2151
2152
|
label: e(n)("report.section.datasource.fontSize"),
|
|
@@ -2205,18 +2206,18 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2205
2206
|
set: (v) => {
|
|
2206
2207
|
s("update:model", { ...o.model, showYTitle: v });
|
|
2207
2208
|
}
|
|
2208
|
-
}), _ =
|
|
2209
|
+
}), _ = ge((v) => {
|
|
2209
2210
|
s("update:model", { ...o.model, xTitle: v });
|
|
2210
|
-
}, 500), $ =
|
|
2211
|
+
}, 500), $ = ge((v) => {
|
|
2211
2212
|
s("update:model", { ...o.model, yTitle: v });
|
|
2212
2213
|
}, 500);
|
|
2213
|
-
return
|
|
2214
|
+
return Ce(() => {
|
|
2214
2215
|
var v, b, u, c;
|
|
2215
2216
|
!o.model.xTitle && ((b = (v = o.model.metrics) == null ? void 0 : v[0]) != null && b.label) && _(o.model.metrics[0].label), !o.model.yTitle && ((c = (u = o.model.dimensions) == null ? void 0 : u[0]) != null && c.label) && $(o.model.dimensions[0].label);
|
|
2216
2217
|
}), (v, b) => {
|
|
2217
2218
|
const u = C("FmCheckbox"), c = C("FmStepperField"), a = C("FmTextField");
|
|
2218
2219
|
return h(), I("div", mo, [
|
|
2219
|
-
|
|
2220
|
+
d(u, {
|
|
2220
2221
|
modelValue: g.value,
|
|
2221
2222
|
"onUpdate:modelValue": b[0] || (b[0] = (l) => g.value = l),
|
|
2222
2223
|
label: e(n)("report.section.datasource.axis.showX"),
|
|
@@ -2224,14 +2225,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2224
2225
|
value: !0
|
|
2225
2226
|
}, null, 8, ["modelValue", "label"]),
|
|
2226
2227
|
ae(F("div", po, [
|
|
2227
|
-
|
|
2228
|
+
d(u, {
|
|
2228
2229
|
modelValue: V.value,
|
|
2229
2230
|
"onUpdate:modelValue": b[1] || (b[1] = (l) => V.value = l),
|
|
2230
2231
|
label: e(n)("report.section.datasource.axis.showGrid"),
|
|
2231
2232
|
"label-placement": "right",
|
|
2232
2233
|
value: !1
|
|
2233
2234
|
}, null, 8, ["modelValue", "label"]),
|
|
2234
|
-
|
|
2235
|
+
d(u, {
|
|
2235
2236
|
modelValue: f.value,
|
|
2236
2237
|
"onUpdate:modelValue": b[2] || (b[2] = (l) => f.value = l),
|
|
2237
2238
|
label: e(n)("report.section.datasource.axis.showTick"),
|
|
@@ -2239,7 +2240,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2239
2240
|
value: !0
|
|
2240
2241
|
}, null, 8, ["modelValue", "label"]),
|
|
2241
2242
|
ae(F("div", co, [
|
|
2242
|
-
|
|
2243
|
+
d(c, {
|
|
2243
2244
|
label: e(n)("report.section.datasource.fontSize"),
|
|
2244
2245
|
type: "number",
|
|
2245
2246
|
"model-value": v.model.xTickFontSize ?? 12,
|
|
@@ -2251,7 +2252,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2251
2252
|
], 512), [
|
|
2252
2253
|
[ne, v.model.showXTick ?? !0]
|
|
2253
2254
|
]),
|
|
2254
|
-
|
|
2255
|
+
d(u, {
|
|
2255
2256
|
modelValue: w.value,
|
|
2256
2257
|
"onUpdate:modelValue": b[4] || (b[4] = (l) => w.value = l),
|
|
2257
2258
|
label: e(n)("report.section.datasource.axis.showTitle"),
|
|
@@ -2259,13 +2260,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2259
2260
|
value: !0
|
|
2260
2261
|
}, null, 8, ["modelValue", "label"]),
|
|
2261
2262
|
ae(F("div", vo, [
|
|
2262
|
-
|
|
2263
|
+
d(a, {
|
|
2263
2264
|
"model-value": v.model.xTitle,
|
|
2264
2265
|
label: e(n)("report.common.title"),
|
|
2265
2266
|
placeholder: e(n)("report.tile.widget.titlePlaceholder"),
|
|
2266
2267
|
"onUpdate:modelValue": e(_)
|
|
2267
2268
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2268
|
-
|
|
2269
|
+
d(c, {
|
|
2269
2270
|
label: e(n)("report.section.datasource.fontSize"),
|
|
2270
2271
|
type: "number",
|
|
2271
2272
|
"model-value": v.model.xTitleFontSize ?? 12,
|
|
@@ -2280,7 +2281,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2280
2281
|
], 512), [
|
|
2281
2282
|
[ne, v.model.showX ?? !0]
|
|
2282
2283
|
]),
|
|
2283
|
-
|
|
2284
|
+
d(u, {
|
|
2284
2285
|
modelValue: m.value,
|
|
2285
2286
|
"onUpdate:modelValue": b[6] || (b[6] = (l) => m.value = l),
|
|
2286
2287
|
label: e(n)("report.section.datasource.axis.showY"),
|
|
@@ -2288,14 +2289,14 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2288
2289
|
value: !0
|
|
2289
2290
|
}, null, 8, ["modelValue", "label"]),
|
|
2290
2291
|
ae(F("div", fo, [
|
|
2291
|
-
|
|
2292
|
+
d(u, {
|
|
2292
2293
|
modelValue: t.value,
|
|
2293
2294
|
"onUpdate:modelValue": b[7] || (b[7] = (l) => t.value = l),
|
|
2294
2295
|
label: e(n)("report.section.datasource.axis.showGrid"),
|
|
2295
2296
|
"label-placement": "right",
|
|
2296
2297
|
value: !1
|
|
2297
2298
|
}, null, 8, ["modelValue", "label"]),
|
|
2298
|
-
|
|
2299
|
+
d(u, {
|
|
2299
2300
|
modelValue: i.value,
|
|
2300
2301
|
"onUpdate:modelValue": b[8] || (b[8] = (l) => i.value = l),
|
|
2301
2302
|
label: e(n)("report.section.datasource.axis.showTick"),
|
|
@@ -2303,7 +2304,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2303
2304
|
value: !0
|
|
2304
2305
|
}, null, 8, ["modelValue", "label"]),
|
|
2305
2306
|
ae(F("div", go, [
|
|
2306
|
-
|
|
2307
|
+
d(c, {
|
|
2307
2308
|
label: e(n)("report.section.datasource.fontSize"),
|
|
2308
2309
|
type: "number",
|
|
2309
2310
|
"model-value": v.model.yTickFontSize ?? 12,
|
|
@@ -2315,7 +2316,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2315
2316
|
], 512), [
|
|
2316
2317
|
[ne, v.model.showYTick ?? !0]
|
|
2317
2318
|
]),
|
|
2318
|
-
|
|
2319
|
+
d(u, {
|
|
2319
2320
|
modelValue: T.value,
|
|
2320
2321
|
"onUpdate:modelValue": b[10] || (b[10] = (l) => T.value = l),
|
|
2321
2322
|
label: e(n)("report.section.datasource.axis.showTitle"),
|
|
@@ -2323,13 +2324,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2323
2324
|
value: !0
|
|
2324
2325
|
}, null, 8, ["modelValue", "label"]),
|
|
2325
2326
|
ae(F("div", bo, [
|
|
2326
|
-
|
|
2327
|
+
d(a, {
|
|
2327
2328
|
"model-value": v.model.yTitle,
|
|
2328
2329
|
label: e(n)("report.common.title"),
|
|
2329
2330
|
placeholder: e(n)("report.tile.widget.titlePlaceholder"),
|
|
2330
2331
|
"onUpdate:modelValue": e($)
|
|
2331
2332
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2332
|
-
|
|
2333
|
+
d(c, {
|
|
2333
2334
|
label: e(n)("report.section.datasource.fontSize"),
|
|
2334
2335
|
type: "number",
|
|
2335
2336
|
"model-value": v.model.yTitleFontSize ?? 12,
|
|
@@ -2384,7 +2385,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2384
2385
|
return (i, w) => {
|
|
2385
2386
|
const T = C("FmCheckbox"), _ = C("FmSelect"), $ = C("FmStepperField");
|
|
2386
2387
|
return h(), I("div", ho, [
|
|
2387
|
-
|
|
2388
|
+
d(T, {
|
|
2388
2389
|
modelValue: V.value,
|
|
2389
2390
|
"onUpdate:modelValue": w[0] || (w[0] = (v) => V.value = v),
|
|
2390
2391
|
class: "fm-typo-en-body-lg-400",
|
|
@@ -2392,13 +2393,13 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2392
2393
|
label: e(n)("report.section.datasource.legend.showLegend")
|
|
2393
2394
|
}, null, 8, ["modelValue", "label"]),
|
|
2394
2395
|
ae(F("div", Vo, [
|
|
2395
|
-
|
|
2396
|
+
d(_, {
|
|
2396
2397
|
label: e(n)("report.section.datasource.position.showPosition"),
|
|
2397
2398
|
items: g,
|
|
2398
2399
|
"model-value": i.model.legendPosition ?? "top",
|
|
2399
2400
|
"onUpdate:modelValue": w[1] || (w[1] = (v) => s("update:model", { ...i.model, legendPosition: v }))
|
|
2400
2401
|
}, null, 8, ["label", "model-value"]),
|
|
2401
|
-
|
|
2402
|
+
d(T, {
|
|
2402
2403
|
modelValue: f.value,
|
|
2403
2404
|
"onUpdate:modelValue": w[2] || (w[2] = (v) => f.value = v),
|
|
2404
2405
|
label: e(n)("report.section.datasource.legend.usePointStyle"),
|
|
@@ -2443,7 +2444,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2443
2444
|
return (f, m) => {
|
|
2444
2445
|
const t = C("FmStepperField");
|
|
2445
2446
|
return h(), I("div", Fo, [
|
|
2446
|
-
|
|
2447
|
+
d(t, {
|
|
2447
2448
|
modelValue: g.value,
|
|
2448
2449
|
"onUpdate:modelValue": m[0] || (m[0] = (i) => g.value = i),
|
|
2449
2450
|
type: "number",
|
|
@@ -2452,7 +2453,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2452
2453
|
min: 1,
|
|
2453
2454
|
placeholder: "Auto"
|
|
2454
2455
|
}, null, 8, ["modelValue", "label"]),
|
|
2455
|
-
|
|
2456
|
+
d(t, {
|
|
2456
2457
|
modelValue: V.value,
|
|
2457
2458
|
"onUpdate:modelValue": m[1] || (m[1] = (i) => V.value = i),
|
|
2458
2459
|
type: "number",
|
|
@@ -2499,7 +2500,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2499
2500
|
se(
|
|
2500
2501
|
[() => o.value.dimensions, () => o.value.metrics],
|
|
2501
2502
|
() => {
|
|
2502
|
-
const { rowIds: m, columnIds: t } =
|
|
2503
|
+
const { rowIds: m, columnIds: t } = be(o.value);
|
|
2503
2504
|
o.value.rowIds = m, o.value.columnIds = t;
|
|
2504
2505
|
},
|
|
2505
2506
|
{ deep: !0 }
|
|
@@ -2558,7 +2559,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2558
2559
|
emits: ["update:modelValue"],
|
|
2559
2560
|
setup(x) {
|
|
2560
2561
|
const { t: p } = E(), o = le(x, "modelValue"), s = S(
|
|
2561
|
-
() =>
|
|
2562
|
+
() => ye.find((g) => g.type === o.value.widget.type)
|
|
2562
2563
|
), n = W(!1);
|
|
2563
2564
|
return (g, V) => {
|
|
2564
2565
|
const f = C("FmCircularProgress"), m = C("FmButton"), t = C("FmSideSheet");
|
|
@@ -2571,7 +2572,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2571
2572
|
}, {
|
|
2572
2573
|
"side-sheet-button": N(() => [
|
|
2573
2574
|
F("div", To, [
|
|
2574
|
-
|
|
2575
|
+
d(m, {
|
|
2575
2576
|
label: "Style setting",
|
|
2576
2577
|
icon: "edit",
|
|
2577
2578
|
variant: "secondary",
|
|
@@ -2581,7 +2582,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2581
2582
|
]),
|
|
2582
2583
|
"side-sheet-header": N(() => [
|
|
2583
2584
|
F("div", Do, [
|
|
2584
|
-
|
|
2585
|
+
d(m, {
|
|
2585
2586
|
"prepend-icon": "arrow_back",
|
|
2586
2587
|
variant: "tertiary",
|
|
2587
2588
|
class: "fm-icon--rounded fm-icon--md text-fm-color-black",
|
|
@@ -2592,7 +2593,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2592
2593
|
]),
|
|
2593
2594
|
default: N(() => [
|
|
2594
2595
|
o.value ? U("", !0) : (h(), D(f, { key: 0 })),
|
|
2595
|
-
|
|
2596
|
+
d(So, {
|
|
2596
2597
|
modelValue: o.value.widget.config,
|
|
2597
2598
|
"onUpdate:modelValue": V[1] || (V[1] = (i) => o.value.widget.config = i),
|
|
2598
2599
|
config: s.value
|
|
@@ -2619,7 +2620,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2619
2620
|
emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
|
|
2620
2621
|
setup(x, { emit: p }) {
|
|
2621
2622
|
const o = le(x, "modelValue"), s = x, n = S(
|
|
2622
|
-
() =>
|
|
2623
|
+
() => ye.find((m) => {
|
|
2623
2624
|
var t;
|
|
2624
2625
|
return m.type === ((t = o.value) == null ? void 0 : t.widget.type);
|
|
2625
2626
|
})
|
|
@@ -2634,12 +2635,12 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2634
2635
|
const i = C("FmCircularProgress"), w = C("FmButton");
|
|
2635
2636
|
return h(), I("div", null, [
|
|
2636
2637
|
o.value ? (h(), I(ee, { key: 1 }, [
|
|
2637
|
-
|
|
2638
|
+
d(Ze, {
|
|
2638
2639
|
"model-value": !x.hideConfiguration
|
|
2639
2640
|
}, {
|
|
2640
2641
|
right: N(() => [
|
|
2641
2642
|
F("div", $o, [
|
|
2642
|
-
|
|
2643
|
+
d(Ae, {
|
|
2643
2644
|
modelValue: o.value,
|
|
2644
2645
|
"onUpdate:modelValue": t[0] || (t[0] = (T) => o.value = T),
|
|
2645
2646
|
config: n.value,
|
|
@@ -2652,11 +2653,11 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2652
2653
|
]),
|
|
2653
2654
|
left: N(() => [
|
|
2654
2655
|
F("div", No, [
|
|
2655
|
-
|
|
2656
|
+
d(w, {
|
|
2656
2657
|
variant: "secondary",
|
|
2657
2658
|
icon: "keyboard_double_arrow_right",
|
|
2658
|
-
"border-color": e(
|
|
2659
|
-
"text-color": e(
|
|
2659
|
+
"border-color": e(De).ColorPrimary,
|
|
2660
|
+
"text-color": e(De).ColorPrimary,
|
|
2660
2661
|
class: "m-24 my-16",
|
|
2661
2662
|
size: "md",
|
|
2662
2663
|
onClick: t[2] || (t[2] = (T) => g("hideConfiguration", !s.hideConfiguration))
|
|
@@ -2705,7 +2706,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2705
2706
|
emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
|
|
2706
2707
|
setup(x, { emit: p }) {
|
|
2707
2708
|
const o = le(x, "modelValue"), s = x, n = S(
|
|
2708
|
-
() =>
|
|
2709
|
+
() => ye.find((V) => {
|
|
2709
2710
|
var f;
|
|
2710
2711
|
return V.type === ((f = o.value) == null ? void 0 : f.widget.type);
|
|
2711
2712
|
})
|
|
@@ -2722,7 +2723,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2722
2723
|
"hide-export": !0
|
|
2723
2724
|
}, null, 8, ["model-value", "index"])) : (h(), D(Pe, { key: 1 }))
|
|
2724
2725
|
]),
|
|
2725
|
-
|
|
2726
|
+
d(Ae, {
|
|
2726
2727
|
modelValue: o.value,
|
|
2727
2728
|
"onUpdate:modelValue": f[0] || (f[0] = (t) => o.value = t),
|
|
2728
2729
|
config: n.value,
|
|
@@ -2732,7 +2733,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2732
2733
|
})
|
|
2733
2734
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
2734
2735
|
], 64)) : (h(), I("div", Lo, [
|
|
2735
|
-
|
|
2736
|
+
d(m)
|
|
2736
2737
|
]))
|
|
2737
2738
|
]);
|
|
2738
2739
|
};
|
|
@@ -2746,7 +2747,7 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2746
2747
|
}, et = /* @__PURE__ */ X({
|
|
2747
2748
|
__name: "TileEditor",
|
|
2748
2749
|
setup(x) {
|
|
2749
|
-
const { rowHeight: p, colWidths: o } = ue(
|
|
2750
|
+
const { rowHeight: p, colWidths: o } = ue(fe()), s = Ee(), n = Ye(), g = tl(), { globalFilters: V } = ue(ze()), { currentSelectWidgetType: f, editingReport: m, editingTile: t, editingTileIndex: i } = ue(g), { breakpoints: w } = Re(), { promptMessage: T } = Le(), { t: _ } = E(), $ = W(!1);
|
|
2750
2751
|
function v() {
|
|
2751
2752
|
f.value = void 0, t.value = void 0, i.value = -1, n.back();
|
|
2752
2753
|
}
|
|
@@ -2770,44 +2771,44 @@ const hl = { class: "flex flex-col my-2 gap-8" }, Vl = { class: "fm-typo-en-body
|
|
|
2770
2771
|
message: _("report.tile.cancel.confirm", { title: (a = t.value) == null ? void 0 : a.widget.title })
|
|
2771
2772
|
}) && v();
|
|
2772
2773
|
}
|
|
2773
|
-
return
|
|
2774
|
+
return Ce(() => {
|
|
2774
2775
|
m.value || n.push({ name: "reports" });
|
|
2775
2776
|
}), (c, a) => {
|
|
2776
2777
|
const l = C("FmPageHead");
|
|
2777
2778
|
return h(), D(el, null, {
|
|
2778
2779
|
default: N(() => [
|
|
2779
|
-
|
|
2780
|
+
d(l, {
|
|
2780
2781
|
actions: [
|
|
2781
2782
|
{ label: "Cancel", value: "cancel", isPrimary: !1 },
|
|
2782
2783
|
{ label: "Save", value: "save", isPrimary: !0 }
|
|
2783
2784
|
],
|
|
2784
|
-
"onClick:action": a[0] || (a[0] = (
|
|
2785
|
-
|
|
2785
|
+
"onClick:action": a[0] || (a[0] = (r) => {
|
|
2786
|
+
r === "cancel" && u(), r === "save" && b();
|
|
2786
2787
|
})
|
|
2787
2788
|
}, {
|
|
2788
2789
|
title: N(() => {
|
|
2789
|
-
var
|
|
2790
|
+
var r;
|
|
2790
2791
|
return [
|
|
2791
|
-
e(w).lg || e(w).md ? (h(), I("p", Ro, j(e(je)(((
|
|
2792
|
+
e(w).lg || e(w).md ? (h(), I("p", Ro, j(e(je)(((r = e(t)) == null ? void 0 : r.widget.type) ?? "New report")), 1)) : U("", !0)
|
|
2792
2793
|
];
|
|
2793
2794
|
}),
|
|
2794
2795
|
_: 1
|
|
2795
2796
|
}),
|
|
2796
|
-
e(t) && (e(V) || []).some((
|
|
2797
|
-
const k =
|
|
2797
|
+
e(t) && (e(V) || []).some((r) => {
|
|
2798
|
+
const k = r.tileIds, y = e(t) && e(t).id;
|
|
2798
2799
|
return Array.isArray(k) && typeof y == "string" && k.includes(y);
|
|
2799
2800
|
}) ? (h(), I("div", Mo, [
|
|
2800
|
-
|
|
2801
|
+
d(il)
|
|
2801
2802
|
])) : U("", !0),
|
|
2802
2803
|
e(t) ? (h(), D(Oe(e(w).lg || e(w).md ? Bo : zo), {
|
|
2803
2804
|
key: 1,
|
|
2804
2805
|
modelValue: e(t),
|
|
2805
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
2806
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => He(t) ? t.value = r : null),
|
|
2806
2807
|
class: Ie(`${e(w).lg || e(w).md ? "flex" : ""} w-full`),
|
|
2807
2808
|
style: We({ height: `calc( 100% - ${e(w).lg || e(w).md ? 72 : 64}px)` }),
|
|
2808
2809
|
"hide-configuration": $.value,
|
|
2809
2810
|
index: Number(e(s).params.tileIndex),
|
|
2810
|
-
onHideConfiguration: a[2] || (a[2] = (
|
|
2811
|
+
onHideConfiguration: a[2] || (a[2] = (r) => $.value = r)
|
|
2811
2812
|
}, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : U("", !0)
|
|
2812
2813
|
]),
|
|
2813
2814
|
_: 1
|