@feedmepos/mf-report 5.25.7-beta.0 → 5.25.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-gHghnXVv.js → App-Bf0aor2N.js} +105 -101
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DNA5N91t.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Pi8dxsZB.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D6Gy1vgv.js → Default.vue_vue_type_script_setup_true_lang-D3_780WC.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DJ6rvvHv.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DVUsMsQ_.js} +1549 -1563
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BgRqSRmF.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DtqKlOMY.js} +3263 -3161
- package/dist/{InsightView-BsdAAgRZ.js → InsightView-b87hirKo.js} +5 -5
- package/dist/{Integration-B8cFqUeq.js → Integration-1xVvqpR9.js} +3 -3
- package/dist/{Integrations-BjbzzNzo.js → Integrations-DRyBjbzQ.js} +3 -3
- package/dist/{Layout-ZaDAeDuB.js → Layout-BMzYemst.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-IFfHx1DE.js → MenuTab.vue_vue_type_script_setup_true_lang-Da1Gn2bZ.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BmX9xtKP.js → NavigationTab.vue_vue_type_script_setup_true_lang-B6eTZCAI.js} +4 -4
- package/dist/{OverviewView--bmm8Bpw.js → OverviewView-CkR-L3L_.js} +5 -5
- package/dist/{Report-DlVStJzk.js → Report-aWItqZEn.js} +4 -4
- package/dist/{ReportEditor-DKFh0x3n.js → ReportEditor-DENfrm0X.js} +4 -4
- package/dist/ReportView-2lVjNU0x.js +309 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js → SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js} +2 -2
- package/dist/{Setting-RVTiGH53.js → Setting-yKwX201x.js} +4 -4
- package/dist/Template-CQqtVjZo.js +482 -0
- package/dist/{TileEditor-BjfFS0tl.js → TileEditor-Bq7g2E1s.js} +274 -282
- package/dist/{TransitionFade-D2O_Adv6.js → TransitionFade-DaOt5oN7.js} +5 -5
- package/dist/{app-CuihnbMq.js → app-CMuJ9xn3.js} +2693 -2360
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-BzuADGYi.js → formatChartData.worker-BlVUDagT.js} +15 -11
- package/dist/assets/{processTableData.worker-DTnbVu-a.js → processTableData.worker-CQMw9rvu.js} +15 -11
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-DA_3RCjb.js → useRestaurantPermission-dPvQepPN.js} +1 -1
- package/package.json +1 -1
- package/dist/ReportView-Dioy3fJC.js +0 -264
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as pe, useModel as fe, computed as T, ref as oe, resolveComponent as $, createElementBlock as H, openBlock as f, createVNode as u, createElementVNode as C, unref as l, withCtx as G, toDisplayString as Q, Fragment as ue, renderList as xe, withModifiers as ye, createTextVNode as Le, watch as he, createCommentVNode as O, createBlock as N, onUnmounted as Nl, renderSlot as dl, onMounted as Ke, onBeforeUnmount as ml, resolveDynamicComponent as cl, normalizeClass as ke, withDirectives as Ce, vShow as we, withKeys as ol, vModelText as jl, normalizeStyle as He, isRef as zl } from "vue";
|
|
2
2
|
import { useRoute as Rl, useRouter as Il } from "vue-router";
|
|
3
|
-
import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-
|
|
4
|
-
import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { storeToRefs as
|
|
3
|
+
import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-DaOt5oN7.js";
|
|
4
|
+
import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DtqKlOMY.js";
|
|
5
|
+
import { storeToRefs as _e } from "pinia";
|
|
6
6
|
import { u as fl } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as Ql, useBreakpoints as gl, FmButtonColorThemeVariant as nl } from "@feedmepos/ui-library";
|
|
8
|
-
import {
|
|
8
|
+
import { a as ve, b as yl, _ as bl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
|
|
9
9
|
import { u as me } from "./vue-i18n-DVWuTfed.js";
|
|
10
10
|
import { r as de } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { g as
|
|
12
|
-
import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as oo, d as Oe } from "./app-
|
|
11
|
+
import { g as Se, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DVUsMsQ_.js";
|
|
12
|
+
import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Pi8dxsZB.js";
|
|
13
|
+
import { a as oo, d as Oe } from "./app-CMuJ9xn3.js";
|
|
14
14
|
const Pe = [
|
|
15
15
|
{
|
|
16
16
|
type: K.Circular,
|
|
@@ -182,7 +182,7 @@ const Pe = [
|
|
|
182
182
|
}),
|
|
183
183
|
emits: ["update:modelValue"],
|
|
184
184
|
setup(D) {
|
|
185
|
-
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, { schemas: w } =
|
|
185
|
+
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, { schemas: w } = _e(pl()), x = T(
|
|
186
186
|
() => w.value.map((h) => ({
|
|
187
187
|
label: h.label,
|
|
188
188
|
value: h.name,
|
|
@@ -192,8 +192,8 @@ const Pe = [
|
|
|
192
192
|
if (s.value.schemaNames.length === 0 || o.value === 0)
|
|
193
193
|
return x.value.filter((h) => !h.raw.isJoinOnly);
|
|
194
194
|
{
|
|
195
|
-
const h = s.value.schemaNames[0], F = w.value.find((
|
|
196
|
-
return x.value.filter((
|
|
195
|
+
const h = s.value.schemaNames[0], F = w.value.find((S) => S.name === h), z = ((F == null ? void 0 : F.joins) || []).map((S) => S);
|
|
196
|
+
return x.value.filter((S) => z.includes(S.raw.name));
|
|
197
197
|
}
|
|
198
198
|
}), B = oe(!1), U = oe(""), o = oe(), r = Ql();
|
|
199
199
|
function v(h) {
|
|
@@ -208,11 +208,11 @@ const Pe = [
|
|
|
208
208
|
function b(h) {
|
|
209
209
|
o.value = h, B.value = !0, h !== void 0 ? U.value = s.value.schemaNames[h] : U.value = "";
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function A() {
|
|
212
212
|
U.value !== "" ? (o.value !== void 0 ? s.value.schemaNames[o.value] = U.value : s.value.schemaNames.push(U.value), B.value = !1) : r.open({ message: m("report.section.schema.nothingSelected"), type: "error" });
|
|
213
213
|
}
|
|
214
214
|
return (h, F) => {
|
|
215
|
-
const z = $("FmForm"),
|
|
215
|
+
const z = $("FmForm"), S = $("FmIcon"), d = $("FmField");
|
|
216
216
|
return f(), H("div", to, [
|
|
217
217
|
u(Ae, {
|
|
218
218
|
modelValue: B.value,
|
|
@@ -220,7 +220,7 @@ const Pe = [
|
|
|
220
220
|
title: t.label,
|
|
221
221
|
"primary-button-label": l(m)("report.common.confirm"),
|
|
222
222
|
"secondary-button-label": l(m)("report.common.cancel"),
|
|
223
|
-
onConfirm:
|
|
223
|
+
onConfirm: A
|
|
224
224
|
}, {
|
|
225
225
|
content: G(() => [
|
|
226
226
|
u(z, { ref: "form" }, {
|
|
@@ -257,7 +257,7 @@ const Pe = [
|
|
|
257
257
|
}, [
|
|
258
258
|
C("p", so, Q(v(a)), 1),
|
|
259
259
|
F[3] || (F[3] = C("div", { class: "grow" }, null, -1)),
|
|
260
|
-
u(
|
|
260
|
+
u(S, {
|
|
261
261
|
name: "close",
|
|
262
262
|
onClick: ye(
|
|
263
263
|
() => {
|
|
@@ -319,21 +319,21 @@ const Pe = [
|
|
|
319
319
|
emits: ["update:modelValue"],
|
|
320
320
|
setup(D) {
|
|
321
321
|
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.dimension.${t.label}`)), x = oe(!1), p = T(
|
|
322
|
-
() => s.value.map((c,
|
|
323
|
-
index:
|
|
322
|
+
() => s.value.map((c, k) => ({
|
|
323
|
+
index: k,
|
|
324
324
|
labels: [c.label || c.name],
|
|
325
325
|
value: c
|
|
326
326
|
}))
|
|
327
327
|
), B = oe(s.value.length > 0 ? 0 : void 0);
|
|
328
328
|
function U(c) {
|
|
329
|
-
var
|
|
329
|
+
var k, i, n, L;
|
|
330
330
|
x.value = !0, o.value = c != null && c.value ? JSON.parse(
|
|
331
331
|
JSON.stringify({
|
|
332
332
|
...c.value,
|
|
333
|
-
label: de(m, e, (
|
|
334
|
-
moveToColumn: (((i = t.config) == null ? void 0 : i.columnIds) || []).includes(
|
|
333
|
+
label: de(m, e, (k = c.value) == null ? void 0 : k.label, "other"),
|
|
334
|
+
moveToColumn: (((i = t.config) == null ? void 0 : i.columnIds) || []).includes(Se(c.value))
|
|
335
335
|
})
|
|
336
|
-
) : void 0, B.value = c == null ? void 0 : c.index, r.value = !!((n = o.value) != null && n.dataFormula || (
|
|
336
|
+
) : void 0, B.value = c == null ? void 0 : c.index, r.value = !!((n = o.value) != null && n.dataFormula || (L = o.value) != null && L.displayFormula), o.value && o.value.formatter === void 0 && (t.options.find(
|
|
337
337
|
(E) => {
|
|
338
338
|
var J, te;
|
|
339
339
|
return E.schemaName === ((J = o.value) == null ? void 0 : J.schemaName) && E.name === ((te = o.value) == null ? void 0 : te.name);
|
|
@@ -343,8 +343,8 @@ const Pe = [
|
|
|
343
343
|
const o = oe(void 0), r = oe(!1), v = T(
|
|
344
344
|
() => t.options.find(
|
|
345
345
|
(c) => {
|
|
346
|
-
var
|
|
347
|
-
return c.schemaName === ((
|
|
346
|
+
var k, i;
|
|
347
|
+
return c.schemaName === ((k = o.value) == null ? void 0 : k.schemaName) && c.name === ((i = o.value) == null ? void 0 : i.name);
|
|
348
348
|
}
|
|
349
349
|
) ?? {}
|
|
350
350
|
);
|
|
@@ -359,13 +359,13 @@ const Pe = [
|
|
|
359
359
|
);
|
|
360
360
|
const b = T(
|
|
361
361
|
() => {
|
|
362
|
-
var c,
|
|
363
|
-
return (i = (c = v.value) == null ? void 0 : c.fillGapDimensionOptions) == null ? void 0 : i.includes(((
|
|
362
|
+
var c, k, i;
|
|
363
|
+
return (i = (c = v.value) == null ? void 0 : c.fillGapDimensionOptions) == null ? void 0 : i.includes(((k = o.value) == null ? void 0 : k.option) || "");
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
|
-
function
|
|
367
|
-
var
|
|
368
|
-
(c.schemaName !== ((
|
|
366
|
+
function A(c) {
|
|
367
|
+
var k, i;
|
|
368
|
+
(c.schemaName !== ((k = o.value) == null ? void 0 : k.schemaName) || c.name !== ((i = o.value) == null ? void 0 : i.name)) && (o.value = {
|
|
369
369
|
schemaName: c.schemaName,
|
|
370
370
|
name: c.name,
|
|
371
371
|
option: c.dimensionOptions[0],
|
|
@@ -379,23 +379,23 @@ const Pe = [
|
|
|
379
379
|
console.error("new field is undefined");
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
|
-
const c = [...p.value.map((
|
|
382
|
+
const c = [...p.value.map((k) => k.value)];
|
|
383
383
|
r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), B.value !== void 0 ? c[B.value] = o.value : c.push(o.value), s.value = c, x.value = !1;
|
|
384
384
|
}
|
|
385
385
|
function F(c) {
|
|
386
|
-
const i = [...p.value.map((n) => n.value)].filter((n,
|
|
386
|
+
const i = [...p.value.map((n) => n.value)].filter((n, L) => L !== c);
|
|
387
387
|
s.value = i;
|
|
388
388
|
}
|
|
389
389
|
function z(c) {
|
|
390
390
|
o.value && (o.value.decimal = Number(c));
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
const
|
|
394
|
-
return e(
|
|
392
|
+
function S(c) {
|
|
393
|
+
const k = `report.section.filter.${De(c)}`;
|
|
394
|
+
return e(k) ? m(k) : de(m, e, c, "field");
|
|
395
395
|
}
|
|
396
396
|
function d(c) {
|
|
397
|
-
const
|
|
398
|
-
return e(
|
|
397
|
+
const k = `report.section.metric.formatterType.${c}`;
|
|
398
|
+
return e(k) ? m(k) : c;
|
|
399
399
|
}
|
|
400
400
|
function a(c) {
|
|
401
401
|
return Array.isArray(c) ? c.length > 0 : c;
|
|
@@ -406,12 +406,12 @@ const Pe = [
|
|
|
406
406
|
value: c
|
|
407
407
|
}))
|
|
408
408
|
);
|
|
409
|
-
return (c,
|
|
410
|
-
const i = $("FmTextField"), n = $("FmStepperField"),
|
|
409
|
+
return (c, k) => {
|
|
410
|
+
const i = $("FmTextField"), n = $("FmStepperField"), L = $("FmCheckbox"), E = $("FmTextarea"), J = $("FmForm"), te = $("FmIcon"), M = $("FmButton"), ge = $("FmListItem"), X = $("FmList"), j = $("FmField");
|
|
411
411
|
return D.max !== 0 ? (f(), H("div", uo, [
|
|
412
412
|
u(Ae, {
|
|
413
413
|
modelValue: x.value,
|
|
414
|
-
"onUpdate:modelValue":
|
|
414
|
+
"onUpdate:modelValue": k[12] || (k[12] = (Y) => x.value = Y),
|
|
415
415
|
title: w.value,
|
|
416
416
|
"primary-button-label": l(m)("report.common.confirm"),
|
|
417
417
|
"secondary-button-label": l(m)("report.common.cancel"),
|
|
@@ -430,20 +430,20 @@ const Pe = [
|
|
|
430
430
|
items: g.value,
|
|
431
431
|
placeholder: w.value,
|
|
432
432
|
label: w.value,
|
|
433
|
-
"onUpdate:modelValue":
|
|
433
|
+
"onUpdate:modelValue": k[0] || (k[0] = (ne) => A(ne))
|
|
434
434
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
435
435
|
o.value ? (f(), H(ue, { key: 0 }, [
|
|
436
436
|
u(i, {
|
|
437
437
|
modelValue: o.value.label,
|
|
438
|
-
"onUpdate:modelValue":
|
|
438
|
+
"onUpdate:modelValue": k[1] || (k[1] = (ne) => o.value.label = ne),
|
|
439
439
|
label: l(m)("report.section.dimension.label")
|
|
440
440
|
}, null, 8, ["modelValue", "label"]),
|
|
441
441
|
(((Y = v.value) == null ? void 0 : Y.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
|
|
442
442
|
key: 0,
|
|
443
443
|
modelValue: o.value.option,
|
|
444
|
-
"onUpdate:modelValue":
|
|
444
|
+
"onUpdate:modelValue": k[2] || (k[2] = (ne) => o.value.option = ne),
|
|
445
445
|
items: ((ee = v.value) == null ? void 0 : ee.dimensionOptions.map((ne) => ({
|
|
446
|
-
label:
|
|
446
|
+
label: S(ne),
|
|
447
447
|
value: ne
|
|
448
448
|
}))) ?? []
|
|
449
449
|
}, null, 8, ["modelValue", "items"])) : O("", !0),
|
|
@@ -451,14 +451,14 @@ const Pe = [
|
|
|
451
451
|
key: 1,
|
|
452
452
|
label: l(m)("report.common.decimal"),
|
|
453
453
|
"model-value": ((se = o.value) == null ? void 0 : se.decimal) ?? 2,
|
|
454
|
-
"onUpdate:modelValue":
|
|
454
|
+
"onUpdate:modelValue": k[3] || (k[3] = (ne) => {
|
|
455
455
|
z(ne);
|
|
456
456
|
})
|
|
457
457
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
458
458
|
(Te = v.value) != null && Te.isNumericType ? (f(), N(ve, {
|
|
459
459
|
key: 2,
|
|
460
460
|
modelValue: o.value.formatter,
|
|
461
|
-
"onUpdate:modelValue":
|
|
461
|
+
"onUpdate:modelValue": k[4] || (k[4] = (ne) => o.value.formatter = ne),
|
|
462
462
|
placeholder: l(m)("report.section.dimension.formatter"),
|
|
463
463
|
label: l(m)("report.section.dimension.formatter"),
|
|
464
464
|
items: [
|
|
@@ -469,56 +469,56 @@ const Pe = [
|
|
|
469
469
|
}))
|
|
470
470
|
]
|
|
471
471
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : O("", !0),
|
|
472
|
-
b.value ? (f(), N(
|
|
472
|
+
b.value ? (f(), N(L, {
|
|
473
473
|
key: 3,
|
|
474
474
|
"model-value": o.value.fillGap ?? !1,
|
|
475
475
|
label: l(m)("report.section.dimension.fillGap"),
|
|
476
476
|
value: "",
|
|
477
477
|
placeholder: "Fill gap",
|
|
478
|
-
"onUpdate:modelValue":
|
|
478
|
+
"onUpdate:modelValue": k[5] || (k[5] = (ne) => {
|
|
479
479
|
o.value && (o.value.fillGap = a(ne));
|
|
480
480
|
})
|
|
481
481
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
482
|
-
((Me = v.value) == null ? void 0 : Me.type) === l(Yl).Timestamp ? (f(), N(
|
|
482
|
+
((Me = v.value) == null ? void 0 : Me.type) === l(Yl).Timestamp ? (f(), N(L, {
|
|
483
483
|
key: 4,
|
|
484
484
|
"model-value": o.value.dateComparison ?? !1,
|
|
485
485
|
label: l(m)("report.section.dimension.dateComparison"),
|
|
486
486
|
value: "",
|
|
487
|
-
"onUpdate:modelValue":
|
|
487
|
+
"onUpdate:modelValue": k[6] || (k[6] = (ne) => {
|
|
488
488
|
o.value && (o.value.dateComparison = a(ne));
|
|
489
489
|
})
|
|
490
490
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
491
|
-
u(
|
|
491
|
+
u(L, {
|
|
492
492
|
modelValue: o.value.hide,
|
|
493
|
-
"onUpdate:modelValue":
|
|
493
|
+
"onUpdate:modelValue": k[7] || (k[7] = (ne) => o.value.hide = ne),
|
|
494
494
|
label: l(m)("report.section.dimension.hide"),
|
|
495
495
|
value: ""
|
|
496
496
|
}, null, 8, ["modelValue", "label"]),
|
|
497
|
-
t.hasRowColumn ? (f(), N(
|
|
497
|
+
t.hasRowColumn ? (f(), N(L, {
|
|
498
498
|
key: 5,
|
|
499
499
|
"model-value": o.value.moveToColumn ?? !1,
|
|
500
500
|
label: l(m)("report.section.dimension.moveToColumn"),
|
|
501
501
|
value: "",
|
|
502
|
-
"onUpdate:modelValue":
|
|
502
|
+
"onUpdate:modelValue": k[8] || (k[8] = (ne) => {
|
|
503
503
|
o.value && (o.value.moveToColumn = a(ne));
|
|
504
504
|
})
|
|
505
505
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
506
|
-
u(
|
|
506
|
+
u(L, {
|
|
507
507
|
modelValue: r.value,
|
|
508
|
-
"onUpdate:modelValue":
|
|
508
|
+
"onUpdate:modelValue": k[9] || (k[9] = (ne) => r.value = ne),
|
|
509
509
|
label: l(m)("report.section.dimension.advance"),
|
|
510
510
|
value: !0
|
|
511
511
|
}, null, 8, ["modelValue", "label"]),
|
|
512
512
|
r.value ? (f(), N(E, {
|
|
513
513
|
key: 6,
|
|
514
514
|
modelValue: o.value.dataFormula,
|
|
515
|
-
"onUpdate:modelValue":
|
|
515
|
+
"onUpdate:modelValue": k[10] || (k[10] = (ne) => o.value.dataFormula = ne),
|
|
516
516
|
placeholder: l(m)("report.section.dimension.dataFormula")
|
|
517
517
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0),
|
|
518
518
|
r.value ? (f(), N(E, {
|
|
519
519
|
key: 7,
|
|
520
520
|
modelValue: o.value.displayFormula,
|
|
521
|
-
"onUpdate:modelValue":
|
|
521
|
+
"onUpdate:modelValue": k[11] || (k[11] = (ne) => o.value.displayFormula = ne),
|
|
522
522
|
placeholder: l(m)("report.section.dimension.displayFormula")
|
|
523
523
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0)
|
|
524
524
|
], 64)) : O("", !0)
|
|
@@ -537,7 +537,7 @@ const Pe = [
|
|
|
537
537
|
default: G(() => [
|
|
538
538
|
u(l(Ie), {
|
|
539
539
|
list: s.value,
|
|
540
|
-
"item-key": (Y) => l(
|
|
540
|
+
"item-key": (Y) => l(Se)(Y),
|
|
541
541
|
class: "flex flex-col gap-2"
|
|
542
542
|
}, {
|
|
543
543
|
item: G(({ element: Y, index: ee }) => [
|
|
@@ -548,7 +548,7 @@ const Pe = [
|
|
|
548
548
|
default: G(() => [
|
|
549
549
|
u(te, { name: "drag_handle" }),
|
|
550
550
|
C("p", po, Q(l(de)(l(m), l(e), Y.label, "other")), 1),
|
|
551
|
-
|
|
551
|
+
k[14] || (k[14] = C("div", { class: "grow" }, null, -1)),
|
|
552
552
|
u(M, {
|
|
553
553
|
icon: "close",
|
|
554
554
|
size: "md",
|
|
@@ -566,7 +566,7 @@ const Pe = [
|
|
|
566
566
|
}),
|
|
567
567
|
u(j, {
|
|
568
568
|
class: "text-fm-color-typo-tertiary",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: k[13] || (k[13] = () => {
|
|
570
570
|
U();
|
|
571
571
|
})
|
|
572
572
|
}, {
|
|
@@ -623,7 +623,7 @@ function fo(D) {
|
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
625
|
function Re(D) {
|
|
626
|
-
const m = D.dimensions.filter((x) => x.hide !== !0 && !x.moveToColumn).map((x) =>
|
|
626
|
+
const m = D.dimensions.filter((x) => x.hide !== !0 && !x.moveToColumn).map((x) => Se(x)), e = D.dimensions.filter((x) => x.hide !== !0 && x.moveToColumn == !0).map((x) => Se(x)), s = D.metrics.length > 0;
|
|
627
627
|
s && D.metrics.find((x) => x.moveToRow == !0) ? m.push(Ge.value) : s && e.push(Ge.value);
|
|
628
628
|
const t = [], w = [];
|
|
629
629
|
for (const x of m)
|
|
@@ -679,7 +679,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
679
679
|
}))
|
|
680
680
|
), U = oe(t.value.length > 0 ? 0 : void 0);
|
|
681
681
|
function o(a) {
|
|
682
|
-
var g, c,
|
|
682
|
+
var g, c, k;
|
|
683
683
|
p.value = !0, r.value = a != null && a.value ? JSON.parse(
|
|
684
684
|
JSON.stringify({
|
|
685
685
|
...a.value,
|
|
@@ -687,10 +687,10 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
687
687
|
})
|
|
688
688
|
) : void 0, U.value = a == null ? void 0 : a.index, v.value = !!((g = r.value) != null && g.dataFormula || (c = r.value) != null && c.displayFormula), r.value && r.value.formatter === void 0 && (w.options.find(
|
|
689
689
|
(i) => {
|
|
690
|
-
var n,
|
|
691
|
-
return i.schemaName === ((n = r.value) == null ? void 0 : n.schemaName) && i.name === ((
|
|
690
|
+
var n, L;
|
|
691
|
+
return i.schemaName === ((n = r.value) == null ? void 0 : n.schemaName) && i.name === ((L = r.value) == null ? void 0 : L.name);
|
|
692
692
|
}
|
|
693
|
-
), a != null && a.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = a == null ? void 0 : a.value.timeFormatter, r.value.timeFormatter = void 0)), ((
|
|
693
|
+
), a != null && a.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = a == null ? void 0 : a.value.timeFormatter, r.value.timeFormatter = void 0)), ((k = w.config.rowIds) == null ? void 0 : k.findIndex((i) => i === Ge.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!w.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
|
|
694
694
|
}
|
|
695
695
|
const r = oe(void 0), v = oe(!1), b = T(
|
|
696
696
|
() => w.options.find(
|
|
@@ -700,14 +700,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
700
700
|
}
|
|
701
701
|
) ?? {}
|
|
702
702
|
);
|
|
703
|
-
function
|
|
703
|
+
function A(a, g) {
|
|
704
704
|
var c;
|
|
705
705
|
return (a == null ? void 0 : a.isNumericType) || ((c = a == null ? void 0 : a.isNumericAggregations) == null ? void 0 : c.includes(g || ""));
|
|
706
706
|
}
|
|
707
707
|
const h = T(
|
|
708
708
|
() => {
|
|
709
709
|
var a;
|
|
710
|
-
return
|
|
710
|
+
return A(b.value, (a = r.value) == null ? void 0 : a.aggregation);
|
|
711
711
|
}
|
|
712
712
|
);
|
|
713
713
|
he(h, (a) => {
|
|
@@ -721,7 +721,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
721
721
|
aggregation: a.aggregations[0],
|
|
722
722
|
label: de(e, s, a.label, "other"),
|
|
723
723
|
nullable: !1,
|
|
724
|
-
decimal:
|
|
724
|
+
decimal: A(a, a.aggregations[0]) ? 2 : void 0,
|
|
725
725
|
moveToRow: !1,
|
|
726
726
|
hide: !1
|
|
727
727
|
}, v.value = !1);
|
|
@@ -730,7 +730,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
730
730
|
const a = [...B.value.map((g) => g.value)];
|
|
731
731
|
r.value && (v.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), w.hasXy || (r.value.nullable = !1), U.value !== void 0 ? a[U.value] = r.value : a.push(r.value)), t.value = a, p.value = !1;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function S(a) {
|
|
734
734
|
const g = [...B.value.map((c) => c.value)];
|
|
735
735
|
g.splice(a, 1), t.value = g;
|
|
736
736
|
}
|
|
@@ -741,7 +741,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
741
741
|
}))
|
|
742
742
|
);
|
|
743
743
|
return (a, g) => {
|
|
744
|
-
const c = $("FmTextField"),
|
|
744
|
+
const c = $("FmTextField"), k = $("FmStepperField"), i = $("FmCheckbox"), n = $("FmTextarea"), L = $("FmForm"), E = $("FmIcon"), J = $("FmButton"), te = $("FmListItem"), M = $("FmList"), ge = $("FmField");
|
|
745
745
|
return f(), H("div", go, [
|
|
746
746
|
u(Ae, {
|
|
747
747
|
modelValue: p.value,
|
|
@@ -750,7 +750,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
750
750
|
onConfirm: z
|
|
751
751
|
}, {
|
|
752
752
|
content: G(() => [
|
|
753
|
-
u(
|
|
753
|
+
u(L, {
|
|
754
754
|
ref: "form",
|
|
755
755
|
class: "flex flex-col gap-2 w-[490px]"
|
|
756
756
|
}, {
|
|
@@ -780,7 +780,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
780
780
|
value: I
|
|
781
781
|
}))) ?? []
|
|
782
782
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
783
|
-
h.value ? (f(), N(
|
|
783
|
+
h.value ? (f(), N(k, {
|
|
784
784
|
key: 1,
|
|
785
785
|
label: l(e)("report.common.decimal"),
|
|
786
786
|
"model-value": ((Y = r.value) == null ? void 0 : Y.decimal) ?? 2,
|
|
@@ -874,7 +874,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
874
874
|
icon: "close",
|
|
875
875
|
size: "md",
|
|
876
876
|
variant: "tertiary",
|
|
877
|
-
onClick: ye((Y) =>
|
|
877
|
+
onClick: ye((Y) => S(j), ["stop"])
|
|
878
878
|
}, null, 8, ["onClick"])
|
|
879
879
|
]),
|
|
880
880
|
_: 2
|
|
@@ -917,69 +917,69 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
917
917
|
emits: ["update:modelValue"],
|
|
918
918
|
setup(D) {
|
|
919
919
|
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.sort.${t.label}`)), x = oe(!1), p = T(
|
|
920
|
-
() => s.value.map((
|
|
920
|
+
() => s.value.map((S, d) => {
|
|
921
921
|
const a = t.options.find(
|
|
922
|
-
(c) => c.schemaName ===
|
|
923
|
-
), g = (a == null ? void 0 : a.labels) || [
|
|
922
|
+
(c) => c.schemaName === S.schemaName && c.name === S.name
|
|
923
|
+
), g = (a == null ? void 0 : a.labels) || [S.schemaName, S.name];
|
|
924
924
|
return {
|
|
925
925
|
index: d,
|
|
926
926
|
label: g.map((c) => de(m, e, c, "other")).join(" "),
|
|
927
|
-
value:
|
|
927
|
+
value: S
|
|
928
928
|
};
|
|
929
929
|
})
|
|
930
930
|
), B = oe(s.value.length > 0 ? 0 : void 0);
|
|
931
|
-
function U(
|
|
931
|
+
function U(S) {
|
|
932
932
|
var d;
|
|
933
|
-
x.value = !0, o.value =
|
|
933
|
+
x.value = !0, o.value = S != null && S.value ? JSON.parse(JSON.stringify(S.value)) : void 0, B.value = S == null ? void 0 : S.index, r.value = !!((d = o.value) != null && d.dataFormula);
|
|
934
934
|
}
|
|
935
935
|
const o = oe(void 0), r = oe(!1), v = T(
|
|
936
936
|
() => t.options.find(
|
|
937
|
-
(
|
|
937
|
+
(S) => {
|
|
938
938
|
var d, a;
|
|
939
|
-
return
|
|
939
|
+
return S.schemaName === ((d = o.value) == null ? void 0 : d.schemaName) && S.name === ((a = o.value) == null ? void 0 : a.name);
|
|
940
940
|
}
|
|
941
941
|
) ?? {}
|
|
942
942
|
);
|
|
943
|
-
function b(
|
|
943
|
+
function b(S) {
|
|
944
944
|
var d, a;
|
|
945
|
-
(
|
|
946
|
-
schemaName:
|
|
947
|
-
name:
|
|
948
|
-
dimensionOption:
|
|
945
|
+
(S.schemaName !== ((d = o.value) == null ? void 0 : d.schemaName) || S.name !== ((a = o.value) == null ? void 0 : a.name)) && (o.value = {
|
|
946
|
+
schemaName: S.schemaName,
|
|
947
|
+
name: S.name,
|
|
948
|
+
dimensionOption: S.dimensionOptions[0],
|
|
949
949
|
aggregation: null,
|
|
950
950
|
type: tl.Asc
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function A() {
|
|
954
954
|
if (!o.value) {
|
|
955
955
|
console.log("new sort is undefined");
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
const
|
|
959
|
-
r.value || (o.value.dataFormula = void 0), B.value !== void 0 ?
|
|
958
|
+
const S = [...p.value.map((d) => d.value)];
|
|
959
|
+
r.value || (o.value.dataFormula = void 0), B.value !== void 0 ? S[B.value] = o.value : S.push(o.value), s.value = S, x.value = !1;
|
|
960
960
|
}
|
|
961
|
-
function h(
|
|
961
|
+
function h(S) {
|
|
962
962
|
const d = [...p.value.map((a) => a.value)];
|
|
963
|
-
d.splice(
|
|
963
|
+
d.splice(S, 1), s.value = d, x.value = !1;
|
|
964
964
|
}
|
|
965
|
-
function F(
|
|
966
|
-
const d = `report.section.filter.${De(
|
|
967
|
-
return e(d) ? m(d) : de(m, e,
|
|
965
|
+
function F(S) {
|
|
966
|
+
const d = `report.section.filter.${De(S)}`;
|
|
967
|
+
return e(d) ? m(d) : de(m, e, S, "field");
|
|
968
968
|
}
|
|
969
969
|
const z = T(
|
|
970
|
-
() => t.options.map((
|
|
971
|
-
label:
|
|
972
|
-
value:
|
|
970
|
+
() => t.options.map((S) => ({
|
|
971
|
+
label: S.labels.join(" "),
|
|
972
|
+
value: S
|
|
973
973
|
}))
|
|
974
974
|
);
|
|
975
|
-
return (
|
|
976
|
-
const a = $("FmCheckbox"), g = $("FmTextarea"), c = $("FmForm"),
|
|
975
|
+
return (S, d) => {
|
|
976
|
+
const a = $("FmCheckbox"), g = $("FmTextarea"), c = $("FmForm"), k = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), L = $("FmList"), E = $("FmField");
|
|
977
977
|
return f(), H("div", wo, [
|
|
978
978
|
u(Ae, {
|
|
979
979
|
modelValue: x.value,
|
|
980
980
|
"onUpdate:modelValue": d[6] || (d[6] = (J) => x.value = J),
|
|
981
981
|
title: w.value,
|
|
982
|
-
onConfirm:
|
|
982
|
+
onConfirm: A
|
|
983
983
|
}, {
|
|
984
984
|
content: G(() => [
|
|
985
985
|
u(c, {
|
|
@@ -1053,7 +1053,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1053
1053
|
C("p", xo, Q(w.value), 1),
|
|
1054
1054
|
C("p", Vo, Q(l(m)("report.section.sort.description")), 1)
|
|
1055
1055
|
]),
|
|
1056
|
-
u(
|
|
1056
|
+
u(L, null, {
|
|
1057
1057
|
default: G(() => [
|
|
1058
1058
|
u(l(Ie), {
|
|
1059
1059
|
list: s.value,
|
|
@@ -1066,7 +1066,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1066
1066
|
onClick: ye((M) => U(p.value[te]), ["stop"])
|
|
1067
1067
|
}, {
|
|
1068
1068
|
default: G(() => [
|
|
1069
|
-
u(
|
|
1069
|
+
u(k, { name: "drag_handle" }),
|
|
1070
1070
|
C("p", Fo, Q(p.value[te].label), 1),
|
|
1071
1071
|
d[8] || (d[8] = C("div", { class: "grow" }, null, -1)),
|
|
1072
1072
|
u(i, {
|
|
@@ -1098,7 +1098,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1098
1098
|
]);
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
|
-
}),
|
|
1101
|
+
}), _o = { class: "fm-typo-en-body-lg-600" }, So = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, To = /* @__PURE__ */ ie({
|
|
1102
1102
|
__name: "LimitSection",
|
|
1103
1103
|
props: {
|
|
1104
1104
|
modelValue: { required: !0, default: null },
|
|
@@ -1113,8 +1113,8 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1113
1113
|
const x = $("FmTextField");
|
|
1114
1114
|
return f(), H(ue, null, [
|
|
1115
1115
|
C("div", null, [
|
|
1116
|
-
C("p",
|
|
1117
|
-
C("p",
|
|
1116
|
+
C("p", _o, Q(l(m)("report.section.limit.title")), 1),
|
|
1117
|
+
C("p", So, Q(l(m)("report.section.limit.description")), 1)
|
|
1118
1118
|
]),
|
|
1119
1119
|
u(x, {
|
|
1120
1120
|
"model-value": e.value,
|
|
@@ -1148,14 +1148,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1148
1148
|
setup(D) {
|
|
1149
1149
|
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.condition.${t.label}`)), x = oe(!1), p = T(
|
|
1150
1150
|
() => s.value.map((d, a) => {
|
|
1151
|
-
var
|
|
1151
|
+
var k, i;
|
|
1152
1152
|
const g = t.joinFieldOptions.find(
|
|
1153
1153
|
(n) => {
|
|
1154
|
-
var
|
|
1155
|
-
return n.schemaName === ((
|
|
1154
|
+
var L, E;
|
|
1155
|
+
return n.schemaName === ((L = d.joinDimension) == null ? void 0 : L.schemaName) && n.name === ((E = d.joinDimension) == null ? void 0 : E.name);
|
|
1156
1156
|
}
|
|
1157
1157
|
), c = (g == null ? void 0 : g.labels) || [
|
|
1158
|
-
(
|
|
1158
|
+
(k = d.joinDimension) == null ? void 0 : k.schemaName,
|
|
1159
1159
|
(i = d.joinDimension) == null ? void 0 : i.name
|
|
1160
1160
|
];
|
|
1161
1161
|
return {
|
|
@@ -1191,9 +1191,9 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1191
1191
|
), b = T(
|
|
1192
1192
|
() => t.joinFieldOptions.map((d) => ({ label: d.labels.join(" "), value: d }))
|
|
1193
1193
|
);
|
|
1194
|
-
function
|
|
1195
|
-
var a, g, c,
|
|
1196
|
-
o.value && (o.value && d.schemaName !== ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) || d.name !== ((
|
|
1194
|
+
function A(d) {
|
|
1195
|
+
var a, g, c, k;
|
|
1196
|
+
o.value && (o.value && d.schemaName !== ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) || d.name !== ((k = (c = o.value) == null ? void 0 : c.joinDimension) == null ? void 0 : k.name)) && (o.value = {
|
|
1197
1197
|
...o.value,
|
|
1198
1198
|
joinDimension: {
|
|
1199
1199
|
schemaName: d.schemaName,
|
|
@@ -1205,8 +1205,8 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1205
1205
|
}, d.joinConditionOperators.includes(o.value.operator) || F(d.joinConditionOperators[0]));
|
|
1206
1206
|
}
|
|
1207
1207
|
function h(d, a) {
|
|
1208
|
-
var g, c,
|
|
1209
|
-
if (o.value && a >= 0 && (o.value && d.schemaName !== ((c = (g = o.value) == null ? void 0 : g.mainDimensions[a]) == null ? void 0 : c.schemaName) || d.name !== ((i = (
|
|
1208
|
+
var g, c, k, i;
|
|
1209
|
+
if (o.value && a >= 0 && (o.value && d.schemaName !== ((c = (g = o.value) == null ? void 0 : g.mainDimensions[a]) == null ? void 0 : c.schemaName) || d.name !== ((i = (k = o.value) == null ? void 0 : k.mainDimensions[a]) == null ? void 0 : i.name))) {
|
|
1210
1210
|
const n = [...o.value.mainDimensions];
|
|
1211
1211
|
n[a] = {
|
|
1212
1212
|
schemaName: d.schemaName,
|
|
@@ -1245,12 +1245,12 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1245
1245
|
(a) => a !== "" && a != null
|
|
1246
1246
|
), B.value !== void 0 ? d[B.value] = o.value : d.push(o.value)), s.value = d, x.value = !1;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function S(d) {
|
|
1249
1249
|
const a = [...p.value.map((g) => g.value)];
|
|
1250
1250
|
a.splice(d, 1), s.value = a;
|
|
1251
1251
|
}
|
|
1252
1252
|
return (d, a) => {
|
|
1253
|
-
const g = $("FmMenuDivider"), c = $("FmForm"),
|
|
1253
|
+
const g = $("FmMenuDivider"), c = $("FmForm"), k = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), L = $("FmList"), E = $("FmField");
|
|
1254
1254
|
return f(), H("div", $o, [
|
|
1255
1255
|
u(Ae, {
|
|
1256
1256
|
modelValue: x.value,
|
|
@@ -1271,7 +1271,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1271
1271
|
"model-value": r.value,
|
|
1272
1272
|
items: b.value,
|
|
1273
1273
|
placeholder: l(m)("report.section.condition.joinDimension"),
|
|
1274
|
-
"onUpdate:modelValue": a[0] || (a[0] = (j) =>
|
|
1274
|
+
"onUpdate:modelValue": a[0] || (a[0] = (j) => A(j))
|
|
1275
1275
|
}, null, 8, ["label", "model-value", "items", "placeholder"]),
|
|
1276
1276
|
u(g),
|
|
1277
1277
|
(J = o.value) != null && J.joinDimension && (((te = r.value) == null ? void 0 : te.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
|
|
@@ -1332,7 +1332,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1332
1332
|
C("p", Uo, Q(w.value), 1),
|
|
1333
1333
|
C("p", Do, Q(l(m)("report.section.condition.description")), 1)
|
|
1334
1334
|
]),
|
|
1335
|
-
u(
|
|
1335
|
+
u(L, { class: "flex flex-col gap-2" }, {
|
|
1336
1336
|
default: G(() => [
|
|
1337
1337
|
u(l(Ie), {
|
|
1338
1338
|
list: s.value,
|
|
@@ -1351,14 +1351,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1351
1351
|
onClick: ye((M) => U(p.value[te]), ["stop"])
|
|
1352
1352
|
}, {
|
|
1353
1353
|
default: G(() => [
|
|
1354
|
-
u(
|
|
1354
|
+
u(k, { name: "drag_handle" }),
|
|
1355
1355
|
C("p", Bo, Q(p.value[te].label), 1),
|
|
1356
1356
|
a[4] || (a[4] = C("div", { class: "grow" }, null, -1)),
|
|
1357
1357
|
u(i, {
|
|
1358
1358
|
icon: "close",
|
|
1359
1359
|
size: "md",
|
|
1360
1360
|
variant: "tertiary",
|
|
1361
|
-
onClick: ye((M) =>
|
|
1361
|
+
onClick: ye((M) => S(te), ["stop"])
|
|
1362
1362
|
}, null, 8, ["onClick"])
|
|
1363
1363
|
]),
|
|
1364
1364
|
_: 2
|
|
@@ -1421,26 +1421,26 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1421
1421
|
},
|
|
1422
1422
|
{ deep: !0 }
|
|
1423
1423
|
);
|
|
1424
|
-
const w = D, x = m, { schemas: p } =
|
|
1424
|
+
const w = D, x = m, { schemas: p } = _e(pl()), { editingReport: B } = _e(vl()), U = T(() => {
|
|
1425
1425
|
var i;
|
|
1426
1426
|
return ((i = B.value) == null ? void 0 : i.queryVersion) === "v2";
|
|
1427
1427
|
});
|
|
1428
1428
|
Nl(() => {
|
|
1429
1429
|
e(), s();
|
|
1430
1430
|
});
|
|
1431
|
-
const { t: o, te: r, locale: v } = me(), b = T(() => !w.mainDatasourceConfig),
|
|
1431
|
+
const { t: o, te: r, locale: v } = me(), b = T(() => !w.mainDatasourceConfig), A = T(
|
|
1432
1432
|
() => [K.BarChart, K.LineChart, K.Scorecard].includes(w.config.type)
|
|
1433
1433
|
), h = T(() => {
|
|
1434
1434
|
const i = [...t.value.dimensions].filter((n) => !n.hide);
|
|
1435
1435
|
return i.sort(
|
|
1436
|
-
(n,
|
|
1436
|
+
(n, L) => (t.value.rowIds || []).indexOf(Se(n)) - (t.value.rowIds || []).indexOf(Se(L))
|
|
1437
1437
|
), i;
|
|
1438
1438
|
}), F = T(() => w.config.type === K.Scorecard), z = T(
|
|
1439
1439
|
() => {
|
|
1440
1440
|
var i;
|
|
1441
1441
|
return (((i = w.mainDatasourceConfig) == null ? void 0 : i.schemaNames) || []).reduce(
|
|
1442
|
-
(n,
|
|
1443
|
-
const E = p.value.find((J) => J.name ===
|
|
1442
|
+
(n, L) => {
|
|
1443
|
+
const E = p.value.find((J) => J.name === L);
|
|
1444
1444
|
return E && (n = [
|
|
1445
1445
|
...n,
|
|
1446
1446
|
...E.fields.map((J) => ({
|
|
@@ -1455,15 +1455,15 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1455
1455
|
[]
|
|
1456
1456
|
);
|
|
1457
1457
|
}
|
|
1458
|
-
),
|
|
1458
|
+
), S = T(
|
|
1459
1459
|
() => t.value.schemaNames.reduce((i, n) => {
|
|
1460
|
-
const
|
|
1461
|
-
return
|
|
1460
|
+
const L = p.value.find((E) => E.name === n);
|
|
1461
|
+
return L && (i = [
|
|
1462
1462
|
...i,
|
|
1463
|
-
...
|
|
1463
|
+
...L.fields.map((E) => ({
|
|
1464
1464
|
...E,
|
|
1465
1465
|
labels: [
|
|
1466
|
-
de(o, r,
|
|
1466
|
+
de(o, r, L.label, "schema"),
|
|
1467
1467
|
de(o, r, E.label || E.name, "other")
|
|
1468
1468
|
]
|
|
1469
1469
|
}))
|
|
@@ -1486,7 +1486,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1486
1486
|
value: il.bottom
|
|
1487
1487
|
}
|
|
1488
1488
|
]), g = T(
|
|
1489
|
-
() => `rollup-${v.value}-${h.value.map((i) =>
|
|
1489
|
+
() => `rollup-${v.value}-${h.value.map((i) => Se(i)).join("|")}`
|
|
1490
1490
|
), c = T(() => [
|
|
1491
1491
|
{
|
|
1492
1492
|
label: o("report.section.datasource.none"),
|
|
@@ -1496,17 +1496,17 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1496
1496
|
label: r(`report.section.datasource.periodType.${i}`) ? o(`report.section.datasource.periodType.${i}`) : i,
|
|
1497
1497
|
value: al[i]
|
|
1498
1498
|
}))
|
|
1499
|
-
]),
|
|
1499
|
+
]), k = T(() => [
|
|
1500
1500
|
{ label: o("report.section.datasource.joinType.left"), value: "LEFT" },
|
|
1501
1501
|
{ label: o("report.section.datasource.joinType.fullOuter"), value: "FULL_OUTER" }
|
|
1502
1502
|
]);
|
|
1503
1503
|
return (i, n) => {
|
|
1504
|
-
const
|
|
1504
|
+
const L = $("FmButton"), E = $("FmSwitch"), J = $("FmSelect"), te = $("FmTextField");
|
|
1505
1505
|
return f(), N(Ye, null, {
|
|
1506
1506
|
header: G(() => [
|
|
1507
1507
|
C("p", null, Q(w.label), 1),
|
|
1508
1508
|
n[22] || (n[22] = C("div", { class: "grow" }, null, -1)),
|
|
1509
|
-
w.closeable ? (f(), N(
|
|
1509
|
+
w.closeable ? (f(), N(L, {
|
|
1510
1510
|
key: 0,
|
|
1511
1511
|
icon: "close",
|
|
1512
1512
|
variant: "tertiary",
|
|
@@ -1523,7 +1523,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1523
1523
|
u(qe, {
|
|
1524
1524
|
modelValue: t.value.dimensions,
|
|
1525
1525
|
"onUpdate:modelValue": n[2] || (n[2] = (M) => t.value.dimensions = M),
|
|
1526
|
-
options:
|
|
1526
|
+
options: S.value,
|
|
1527
1527
|
config: t.value,
|
|
1528
1528
|
max: w.config.maxDimension,
|
|
1529
1529
|
"has-row-column": !0,
|
|
@@ -1539,7 +1539,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1539
1539
|
t.value.isComparable = M;
|
|
1540
1540
|
})
|
|
1541
1541
|
}, null, 8, ["label", "model-value"]),
|
|
1542
|
-
|
|
1542
|
+
A.value ? (f(), N(E, {
|
|
1543
1543
|
key: 0,
|
|
1544
1544
|
"label-placement": "right",
|
|
1545
1545
|
label: l(o)("report.section.datasource.cumulative"),
|
|
@@ -1604,7 +1604,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1604
1604
|
"model-value": t.value.breakdownDimension ? [t.value.breakdownDimension] : [],
|
|
1605
1605
|
label: "breakdownDimension",
|
|
1606
1606
|
max: 1,
|
|
1607
|
-
options:
|
|
1607
|
+
options: S.value,
|
|
1608
1608
|
"onUpdate:modelValue": n[13] || (n[13] = (M) => {
|
|
1609
1609
|
t.value.breakdownDimension = M[0];
|
|
1610
1610
|
})
|
|
@@ -1614,7 +1614,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1614
1614
|
"model-value": t.value.sparklineDimension ? [t.value.sparklineDimension] : [],
|
|
1615
1615
|
label: "sparklineDimension",
|
|
1616
1616
|
max: 1,
|
|
1617
|
-
options:
|
|
1617
|
+
options: S.value,
|
|
1618
1618
|
"onUpdate:modelValue": n[14] || (n[14] = (M) => {
|
|
1619
1619
|
t.value.sparklineDimension = M[0];
|
|
1620
1620
|
})
|
|
@@ -1622,7 +1622,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1622
1622
|
u(Co, {
|
|
1623
1623
|
modelValue: t.value.metrics,
|
|
1624
1624
|
"onUpdate:modelValue": n[15] || (n[15] = (M) => t.value.metrics = M),
|
|
1625
|
-
options:
|
|
1625
|
+
options: S.value,
|
|
1626
1626
|
max: w.config.maxMetric,
|
|
1627
1627
|
config: t.value,
|
|
1628
1628
|
"has-row-column": w.config.type === l(K).Table,
|
|
@@ -1634,12 +1634,12 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1634
1634
|
u(El, {
|
|
1635
1635
|
modelValue: t.value.filters,
|
|
1636
1636
|
"onUpdate:modelValue": n[17] || (n[17] = (M) => t.value.filters = M),
|
|
1637
|
-
options:
|
|
1637
|
+
options: S.value
|
|
1638
1638
|
}, null, 8, ["modelValue", "options"]),
|
|
1639
1639
|
u(ko, {
|
|
1640
1640
|
modelValue: t.value.sorts,
|
|
1641
1641
|
"onUpdate:modelValue": n[18] || (n[18] = (M) => t.value.sorts = M),
|
|
1642
|
-
options:
|
|
1642
|
+
options: S.value
|
|
1643
1643
|
}, null, 8, ["modelValue", "options"]),
|
|
1644
1644
|
u(To, {
|
|
1645
1645
|
modelValue: t.value.limit,
|
|
@@ -1649,7 +1649,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1649
1649
|
key: 10,
|
|
1650
1650
|
"model-value": t.value.joinType ?? "LEFT",
|
|
1651
1651
|
label: l(o)("report.section.datasource.joinType.label"),
|
|
1652
|
-
items:
|
|
1652
|
+
items: k.value,
|
|
1653
1653
|
"onUpdate:modelValue": n[20] || (n[20] = (M) => {
|
|
1654
1654
|
t.value.joinType = M;
|
|
1655
1655
|
})
|
|
@@ -1658,7 +1658,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1658
1658
|
key: 11,
|
|
1659
1659
|
modelValue: t.value.conditions,
|
|
1660
1660
|
"onUpdate:modelValue": n[21] || (n[21] = (M) => t.value.conditions = M),
|
|
1661
|
-
"join-field-options":
|
|
1661
|
+
"join-field-options": S.value,
|
|
1662
1662
|
"main-field-options": z.value
|
|
1663
1663
|
}, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : O("", !0)
|
|
1664
1664
|
]),
|
|
@@ -1771,7 +1771,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1771
1771
|
set: (o) => s("update:model", { ...e.model, titleUnderline: o })
|
|
1772
1772
|
});
|
|
1773
1773
|
return (o, r) => {
|
|
1774
|
-
const v = $("FmStepperField"), b = $("FmButton"),
|
|
1774
|
+
const v = $("FmStepperField"), b = $("FmButton"), A = $("FmSwitch");
|
|
1775
1775
|
return f(), H(ue, null, [
|
|
1776
1776
|
C("div", null, [
|
|
1777
1777
|
C("div", jo, [
|
|
@@ -1817,7 +1817,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1817
1817
|
])
|
|
1818
1818
|
])
|
|
1819
1819
|
]),
|
|
1820
|
-
u(
|
|
1820
|
+
u(A, {
|
|
1821
1821
|
modelValue: w.value,
|
|
1822
1822
|
"onUpdate:modelValue": r[4] || (r[4] = (h) => w.value = h),
|
|
1823
1823
|
label: l(t)("report.section.datasource.title.showTitle"),
|
|
@@ -1836,11 +1836,11 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1836
1836
|
},
|
|
1837
1837
|
emits: ["update:layout"],
|
|
1838
1838
|
setup(D, { emit: m }) {
|
|
1839
|
-
const { t: e } = me(), s = D, t = m, { isEditing: w, colWidths: x, rowHeight: p } =
|
|
1839
|
+
const { t: e } = me(), s = D, t = m, { isEditing: w, colWidths: x, rowHeight: p } = _e(je()), { enableCellResizing: B, cancelResizingChanges: U, resetStore: o, disableEditMode: r } = je();
|
|
1840
1840
|
T(
|
|
1841
1841
|
() => {
|
|
1842
|
-
var b,
|
|
1843
|
-
return (((
|
|
1842
|
+
var b, A, h;
|
|
1843
|
+
return (((A = (b = s.layout) == null ? void 0 : b.colWidths) == null ? void 0 : A.length) ?? 0) > 0 || x.value.length > 0 || (((h = s.layout) == null ? void 0 : h.rowHeight) ?? 0) > 0 || p.value > 0;
|
|
1844
1844
|
}
|
|
1845
1845
|
);
|
|
1846
1846
|
function v() {
|
|
@@ -1852,8 +1852,8 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1852
1852
|
const b = document.querySelector("table");
|
|
1853
1853
|
if (b) {
|
|
1854
1854
|
b.classList.remove("table-fixed"), b.classList.add("table-auto"), b.style.width = "";
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1855
|
+
const A = b.querySelectorAll("th"), h = b.querySelectorAll("td"), F = b.querySelectorAll("tr");
|
|
1856
|
+
A.forEach((z) => {
|
|
1857
1857
|
z.style.width = "";
|
|
1858
1858
|
}), h.forEach((z) => {
|
|
1859
1859
|
z.style.width = "";
|
|
@@ -1863,9 +1863,9 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
return Ke(() => {
|
|
1866
|
-
var b,
|
|
1867
|
-
((b = s.layout) == null ? void 0 : b.rowHeight) !== void 0 && (p.value = s.layout.rowHeight), (
|
|
1868
|
-
}), (b,
|
|
1866
|
+
var b, A;
|
|
1867
|
+
((b = s.layout) == null ? void 0 : b.rowHeight) !== void 0 && (p.value = s.layout.rowHeight), (A = s.layout) != null && A.colWidths && (x.value = [...s.layout.colWidths]);
|
|
1868
|
+
}), (b, A) => {
|
|
1869
1869
|
const h = $("FmButton");
|
|
1870
1870
|
return f(), H("div", Wo, [
|
|
1871
1871
|
C("p", qo, Q(l(e)("report.section.datasource.tableLayout")), 1),
|
|
@@ -1916,13 +1916,13 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1916
1916
|
}),
|
|
1917
1917
|
emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
|
|
1918
1918
|
setup(D, { emit: m }) {
|
|
1919
|
-
var c,
|
|
1920
|
-
const e = oo(), { dateRange: s, timezone: t } =
|
|
1919
|
+
var c, k;
|
|
1920
|
+
const e = oo(), { dateRange: s, timezone: t } = _e(e), w = {
|
|
1921
1921
|
startDate: s.value.startDate,
|
|
1922
1922
|
endDate: s.value.endDate
|
|
1923
1923
|
}, x = oe({
|
|
1924
1924
|
startDate: (c = Oe(s.value.startDate)) == null ? void 0 : c.tz(t.value).format(ul),
|
|
1925
|
-
endDate: (
|
|
1925
|
+
endDate: (k = Oe(s.value.endDate)) == null ? void 0 : k.tz(t.value).format(ul)
|
|
1926
1926
|
});
|
|
1927
1927
|
he(
|
|
1928
1928
|
x,
|
|
@@ -1939,12 +1939,12 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1939
1939
|
s.value = { ...w };
|
|
1940
1940
|
});
|
|
1941
1941
|
const p = fe(D, "modelValue"), { breakpoints: B } = gl(), U = D, { promptMessage: o } = fl(), r = m, { t: v, locale: b } = me();
|
|
1942
|
-
function
|
|
1942
|
+
function A(i) {
|
|
1943
1943
|
p.value = fo(i);
|
|
1944
1944
|
}
|
|
1945
1945
|
function h() {
|
|
1946
1946
|
const i = [...p.value.widget.config.joinDatasources || []];
|
|
1947
|
-
i.push({ ...Wl(p.value.widget.type), conditions: [] }),
|
|
1947
|
+
i.push({ ...Wl(p.value.widget.type), conditions: [] }), A({
|
|
1948
1948
|
...p.value,
|
|
1949
1949
|
widget: {
|
|
1950
1950
|
...p.value.widget,
|
|
@@ -1960,45 +1960,45 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
1960
1960
|
title: v("report.tile.datasource.remove"),
|
|
1961
1961
|
message: v("report.tile.datasource.confirmRemove", { index: i + 1 })
|
|
1962
1962
|
})) return;
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1963
|
+
const L = [...p.value.widget.config.joinDatasources || []];
|
|
1964
|
+
L.splice(i, 1), A({
|
|
1965
1965
|
...p.value,
|
|
1966
1966
|
widget: {
|
|
1967
1967
|
...p.value.widget,
|
|
1968
1968
|
config: {
|
|
1969
1969
|
...p.value.widget.config,
|
|
1970
|
-
joinDatasources:
|
|
1970
|
+
joinDatasources: L
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
});
|
|
1974
1974
|
}
|
|
1975
1975
|
const z = (i, n) => {
|
|
1976
|
-
let
|
|
1976
|
+
let L = 1, E = 1;
|
|
1977
1977
|
switch (i) {
|
|
1978
1978
|
case K.Scorecard:
|
|
1979
|
-
|
|
1979
|
+
L = 1, E = 2;
|
|
1980
1980
|
break;
|
|
1981
1981
|
case K.BarChart:
|
|
1982
1982
|
case K.StackBarChart:
|
|
1983
1983
|
case K.ClusteredStackBarChart:
|
|
1984
1984
|
case K.LineChart:
|
|
1985
1985
|
case K.StackLineChart:
|
|
1986
|
-
|
|
1986
|
+
L = 4, E = 6;
|
|
1987
1987
|
break;
|
|
1988
1988
|
case K.Table:
|
|
1989
|
-
|
|
1989
|
+
L = 4, E = 12;
|
|
1990
1990
|
break;
|
|
1991
1991
|
case K.Circular:
|
|
1992
|
-
|
|
1992
|
+
L = 4, E = 4;
|
|
1993
1993
|
break;
|
|
1994
1994
|
case K.Spacer:
|
|
1995
|
-
|
|
1995
|
+
L = 0, E = 12;
|
|
1996
1996
|
break;
|
|
1997
1997
|
}
|
|
1998
1998
|
return {
|
|
1999
1999
|
id: n.id,
|
|
2000
2000
|
size: {
|
|
2001
|
-
height:
|
|
2001
|
+
height: L,
|
|
2002
2002
|
width: E
|
|
2003
2003
|
},
|
|
2004
2004
|
widget: {
|
|
@@ -2006,7 +2006,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2006
2006
|
type: i
|
|
2007
2007
|
}
|
|
2008
2008
|
};
|
|
2009
|
-
},
|
|
2009
|
+
}, S = T(
|
|
2010
2010
|
() => Pe.find((i) => i.type === p.value.widget.type)
|
|
2011
2011
|
), d = T(() => p.value.widget.config.joinDatasources), a = ze((i) => {
|
|
2012
2012
|
p.value.widget.title = i;
|
|
@@ -2030,7 +2030,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2030
2030
|
i < 1 && (p.value.size.width = 1), i > 12 && (p.value.size.width = 12);
|
|
2031
2031
|
}
|
|
2032
2032
|
), (i, n) => {
|
|
2033
|
-
const
|
|
2033
|
+
const L = $("FmCircularProgress"), E = $("FmSimpleDateRangePicker"), J = $("FmTextField"), te = $("FmTextarea"), M = $("FmStepperField"), ge = $("FmButton"), X = $("FmForm");
|
|
2034
2034
|
return f(), N(cl(l(B).lg || l(B).md ? Mo : No), {
|
|
2035
2035
|
"model-value": U.hideConfiguration,
|
|
2036
2036
|
"onUpdate:modelValue": n[9] || (n[9] = (j) => r("hideConfiguration", j))
|
|
@@ -2126,14 +2126,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2126
2126
|
modelValue: p.value.widget.config,
|
|
2127
2127
|
"onUpdate:modelValue": n[7] || (n[7] = (j) => p.value.widget.config = j),
|
|
2128
2128
|
label: l(v)("report.tile.datasource.main"),
|
|
2129
|
-
config:
|
|
2129
|
+
config: S.value
|
|
2130
2130
|
}, null, 8, ["modelValue", "label", "config"]),
|
|
2131
2131
|
d.value ? (f(!0), H(ue, { key: 0 }, xe(d.value, (j, Y) => (f(), H("div", { key: Y }, [
|
|
2132
2132
|
u(rl, {
|
|
2133
2133
|
modelValue: d.value[Y],
|
|
2134
2134
|
"onUpdate:modelValue": (ee) => d.value[Y] = ee,
|
|
2135
2135
|
label: l(v)("report.tile.datasource.join", { index: Y + 1 }),
|
|
2136
|
-
config:
|
|
2136
|
+
config: S.value,
|
|
2137
2137
|
"main-datasource-config": p.value.widget.config,
|
|
2138
2138
|
closeable: !0,
|
|
2139
2139
|
onClickClose: (ee) => F(Y)
|
|
@@ -2153,7 +2153,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2153
2153
|
])
|
|
2154
2154
|
]),
|
|
2155
2155
|
_: 1
|
|
2156
|
-
}, 512)) : (f(), N(
|
|
2156
|
+
}, 512)) : (f(), N(L, { key: 0 }))
|
|
2157
2157
|
]),
|
|
2158
2158
|
_: 1
|
|
2159
2159
|
}, 8, ["model-value"]);
|
|
@@ -2203,12 +2203,12 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2203
2203
|
{ icon: "format_align_center", value: Ne.center, tooltip: "anchorCenter" },
|
|
2204
2204
|
{ icon: "format_align_right", value: Ne.end, tooltip: "anchorEnd" }
|
|
2205
2205
|
];
|
|
2206
|
-
return (b,
|
|
2207
|
-
const h = $("FmCheckbox"), F = $("FmButton"), z = $("FmTooltip"),
|
|
2206
|
+
return (b, A) => {
|
|
2207
|
+
const h = $("FmCheckbox"), F = $("FmButton"), z = $("FmTooltip"), S = $("FmTextField"), d = $("FmStepperField");
|
|
2208
2208
|
return f(), H("div", lt, [
|
|
2209
2209
|
u(h, {
|
|
2210
2210
|
modelValue: w.value,
|
|
2211
|
-
"onUpdate:modelValue":
|
|
2211
|
+
"onUpdate:modelValue": A[0] || (A[0] = (a) => w.value = a),
|
|
2212
2212
|
value: !1,
|
|
2213
2213
|
label: l(t)("report.section.datasource.label.showLabel"),
|
|
2214
2214
|
"label-placement": "right",
|
|
@@ -2231,7 +2231,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2231
2231
|
"icon-color": b.model.labelAlign === g ? "neutral-gray-400" : "neutral-gray-300",
|
|
2232
2232
|
"bg-color": b.model.labelAlign === g ? "neutral-gray-100" : "neutral-white",
|
|
2233
2233
|
class: "rounded-sm",
|
|
2234
|
-
onClick: (
|
|
2234
|
+
onClick: (k) => U(g)
|
|
2235
2235
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2236
2236
|
]),
|
|
2237
2237
|
_: 2
|
|
@@ -2253,30 +2253,30 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2253
2253
|
"icon-color": b.model.labelAnchor === g ? "neutral-gray-400" : "neutral-gray-300",
|
|
2254
2254
|
"bg-color": b.model.labelAnchor === g ? "neutral-gray-100" : "neutral-white",
|
|
2255
2255
|
class: "rounded-sm",
|
|
2256
|
-
onClick: (
|
|
2256
|
+
onClick: (k) => o(g)
|
|
2257
2257
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2258
2258
|
]),
|
|
2259
2259
|
_: 2
|
|
2260
2260
|
}, 1032, ["content"])), 64))
|
|
2261
2261
|
]),
|
|
2262
|
-
u(
|
|
2262
|
+
u(S, {
|
|
2263
2263
|
modelValue: x.value,
|
|
2264
|
-
"onUpdate:modelValue":
|
|
2264
|
+
"onUpdate:modelValue": A[1] || (A[1] = (a) => x.value = a),
|
|
2265
2265
|
label: l(t)("report.section.datasource.alignment.rotation"),
|
|
2266
2266
|
type: "number",
|
|
2267
2267
|
min: -180,
|
|
2268
2268
|
max: 180,
|
|
2269
2269
|
step: 1
|
|
2270
2270
|
}, null, 8, ["modelValue", "label"]),
|
|
2271
|
-
u(
|
|
2271
|
+
u(S, {
|
|
2272
2272
|
modelValue: p.value,
|
|
2273
|
-
"onUpdate:modelValue":
|
|
2273
|
+
"onUpdate:modelValue": A[2] || (A[2] = (a) => p.value = a),
|
|
2274
2274
|
label: l(t)("report.section.datasource.alignment.offset"),
|
|
2275
2275
|
type: "number"
|
|
2276
2276
|
}, null, 8, ["modelValue", "label"]),
|
|
2277
2277
|
u(d, {
|
|
2278
2278
|
modelValue: B.value,
|
|
2279
|
-
"onUpdate:modelValue":
|
|
2279
|
+
"onUpdate:modelValue": A[3] || (A[3] = (a) => B.value = a),
|
|
2280
2280
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2281
2281
|
type: "number",
|
|
2282
2282
|
min: 1
|
|
@@ -2336,14 +2336,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2336
2336
|
}
|
|
2337
2337
|
}), b = ze((h) => {
|
|
2338
2338
|
s("update:model", { ...e.model, xTitle: h });
|
|
2339
|
-
}, 500),
|
|
2339
|
+
}, 500), A = ze((h) => {
|
|
2340
2340
|
s("update:model", { ...e.model, yTitle: h });
|
|
2341
2341
|
}, 500);
|
|
2342
2342
|
return Ke(() => {
|
|
2343
|
-
var h, F, z,
|
|
2344
|
-
!e.model.xTitle && ((F = (h = e.model.metrics) == null ? void 0 : h[0]) != null && F.label) && b(e.model.metrics[0].label), !e.model.yTitle && ((
|
|
2343
|
+
var h, F, z, S;
|
|
2344
|
+
!e.model.xTitle && ((F = (h = e.model.metrics) == null ? void 0 : h[0]) != null && F.label) && b(e.model.metrics[0].label), !e.model.yTitle && ((S = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && S.label) && A(e.model.dimensions[0].label);
|
|
2345
2345
|
}), (h, F) => {
|
|
2346
|
-
const z = $("FmCheckbox"),
|
|
2346
|
+
const z = $("FmCheckbox"), S = $("FmStepperField"), d = $("FmTextField");
|
|
2347
2347
|
return f(), H("div", rt, [
|
|
2348
2348
|
u(z, {
|
|
2349
2349
|
modelValue: w.value,
|
|
@@ -2368,7 +2368,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2368
2368
|
value: !0
|
|
2369
2369
|
}, null, 8, ["modelValue", "label"]),
|
|
2370
2370
|
Ce(C("div", dt, [
|
|
2371
|
-
u(
|
|
2371
|
+
u(S, {
|
|
2372
2372
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2373
2373
|
type: "number",
|
|
2374
2374
|
"model-value": h.model.xTickFontSize ?? 12,
|
|
@@ -2394,7 +2394,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2394
2394
|
placeholder: l(t)("report.tile.widget.titlePlaceholder"),
|
|
2395
2395
|
"onUpdate:modelValue": l(b)
|
|
2396
2396
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2397
|
-
u(
|
|
2397
|
+
u(S, {
|
|
2398
2398
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2399
2399
|
type: "number",
|
|
2400
2400
|
"model-value": h.model.xTitleFontSize ?? 12,
|
|
@@ -2432,7 +2432,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2432
2432
|
value: !0
|
|
2433
2433
|
}, null, 8, ["modelValue", "label"]),
|
|
2434
2434
|
Ce(C("div", pt, [
|
|
2435
|
-
u(
|
|
2435
|
+
u(S, {
|
|
2436
2436
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2437
2437
|
type: "number",
|
|
2438
2438
|
"model-value": h.model.yTickFontSize ?? 12,
|
|
@@ -2456,9 +2456,9 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2456
2456
|
"model-value": h.model.yTitle,
|
|
2457
2457
|
label: l(t)("report.common.title"),
|
|
2458
2458
|
placeholder: l(t)("report.tile.widget.titlePlaceholder"),
|
|
2459
|
-
"onUpdate:modelValue": l(
|
|
2459
|
+
"onUpdate:modelValue": l(A)
|
|
2460
2460
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2461
|
-
u(
|
|
2461
|
+
u(S, {
|
|
2462
2462
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2463
2463
|
type: "number",
|
|
2464
2464
|
"model-value": h.model.yTitleFontSize ?? 12,
|
|
@@ -2491,39 +2491,39 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2491
2491
|
{ label: t("report.section.datasource.position.right"), value: "right" }
|
|
2492
2492
|
], x = T({
|
|
2493
2493
|
get: () => e.model.showLegend !== void 0 ? e.model.showLegend : e.isCircularWidget === !0,
|
|
2494
|
-
set: (
|
|
2495
|
-
s("update:model", { ...e.model, showLegend:
|
|
2494
|
+
set: (A) => {
|
|
2495
|
+
s("update:model", { ...e.model, showLegend: A });
|
|
2496
2496
|
}
|
|
2497
2497
|
}), p = T({
|
|
2498
2498
|
get: () => e.model.usePointStyle ?? !0,
|
|
2499
|
-
set: (
|
|
2500
|
-
s("update:model", { ...e.model, usePointStyle:
|
|
2499
|
+
set: (A) => {
|
|
2500
|
+
s("update:model", { ...e.model, usePointStyle: A });
|
|
2501
2501
|
}
|
|
2502
2502
|
}), B = T({
|
|
2503
2503
|
get: () => e.model.legendFontSize ?? null,
|
|
2504
|
-
set: (
|
|
2505
|
-
if (
|
|
2504
|
+
set: (A) => {
|
|
2505
|
+
if (A == null) {
|
|
2506
2506
|
s("update:model", { ...e.model, legendFontSize: void 0 });
|
|
2507
2507
|
return;
|
|
2508
2508
|
}
|
|
2509
|
-
s("update:model", { ...e.model, legendFontSize: Math.min(Number(
|
|
2509
|
+
s("update:model", { ...e.model, legendFontSize: Math.min(Number(A), 24) });
|
|
2510
2510
|
}
|
|
2511
2511
|
}), U = T(() => e.model.legendColor ?? "#6b6b6b"), o = oe(U.value), r = oe(null);
|
|
2512
2512
|
he(
|
|
2513
2513
|
() => e.model.legendColor,
|
|
2514
|
-
(
|
|
2515
|
-
o.value =
|
|
2514
|
+
(A) => {
|
|
2515
|
+
o.value = A ?? "#6b6b6b";
|
|
2516
2516
|
}
|
|
2517
2517
|
);
|
|
2518
2518
|
function v() {
|
|
2519
2519
|
s("update:model", { ...e.model, legendColor: o.value });
|
|
2520
2520
|
}
|
|
2521
2521
|
function b() {
|
|
2522
|
-
var
|
|
2523
|
-
(
|
|
2522
|
+
var A;
|
|
2523
|
+
(A = r.value) == null || A.click();
|
|
2524
2524
|
}
|
|
2525
|
-
return (
|
|
2526
|
-
const F = $("FmCheckbox"), z = $("FmSelect"),
|
|
2525
|
+
return (A, h) => {
|
|
2526
|
+
const F = $("FmCheckbox"), z = $("FmSelect"), S = $("FmStepperField"), d = $("FmButton");
|
|
2527
2527
|
return f(), H("div", gt, [
|
|
2528
2528
|
u(F, {
|
|
2529
2529
|
modelValue: x.value,
|
|
@@ -2542,10 +2542,10 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2542
2542
|
u(z, {
|
|
2543
2543
|
label: l(t)("report.section.datasource.position.showPosition"),
|
|
2544
2544
|
items: w,
|
|
2545
|
-
"model-value":
|
|
2546
|
-
"onUpdate:modelValue": h[2] || (h[2] = (a) => s("update:model", { ...
|
|
2545
|
+
"model-value": A.model.legendPosition ?? "top",
|
|
2546
|
+
"onUpdate:modelValue": h[2] || (h[2] = (a) => s("update:model", { ...A.model, legendPosition: a }))
|
|
2547
2547
|
}, null, 8, ["label", "model-value"]),
|
|
2548
|
-
u(
|
|
2548
|
+
u(S, {
|
|
2549
2549
|
modelValue: B.value,
|
|
2550
2550
|
"onUpdate:modelValue": h[3] || (h[3] = (a) => B.value = a),
|
|
2551
2551
|
label: l(t)("report.section.datasource.legend.fontSize"),
|
|
@@ -2580,21 +2580,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2580
2580
|
label: l(t)("report.common.apply"),
|
|
2581
2581
|
disabled: o.value === U.value,
|
|
2582
2582
|
onClick: v
|
|
2583
|
-
}, null, 8, ["label", "disabled"])
|
|
2584
|
-
L.model.legendPosition === "left" || L.model.legendPosition === "right" ? (f(), N(k, {
|
|
2585
|
-
key: 0,
|
|
2586
|
-
label: l(t)("report.section.datasource.legend.maxWidth"),
|
|
2587
|
-
"model-value": L.model.legendMaxWidth ?? null,
|
|
2588
|
-
"onUpdate:modelValue": h[5] || (h[5] = (a) => s("update:model", { ...L.model, legendMaxWidth: a ?? void 0 })),
|
|
2589
|
-
placeholder: "Auto"
|
|
2590
|
-
}, null, 8, ["label", "model-value"])) : O("", !0)
|
|
2583
|
+
}, null, 8, ["label", "disabled"])
|
|
2591
2584
|
], 512), [
|
|
2592
2585
|
[we, x.value]
|
|
2593
2586
|
])
|
|
2594
2587
|
]);
|
|
2595
2588
|
};
|
|
2596
2589
|
}
|
|
2597
|
-
}), wt = /* @__PURE__ */ yl(Ct, [["__scopeId", "data-v-
|
|
2590
|
+
}), wt = /* @__PURE__ */ yl(Ct, [["__scopeId", "data-v-0e072961"]]), xt = { class: "flex flex-row gap-16" }, Vt = /* @__PURE__ */ ie({
|
|
2598
2591
|
__name: "ChartSizeSection",
|
|
2599
2592
|
props: {
|
|
2600
2593
|
model: {}
|
|
@@ -2636,10 +2629,10 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2636
2629
|
]);
|
|
2637
2630
|
};
|
|
2638
2631
|
}
|
|
2639
|
-
}), Ft = { class: "flex flex-col gap-8" }, kt = { class: "flex gap-8" },
|
|
2632
|
+
}), Ft = { class: "flex flex-col gap-8" }, kt = { class: "flex gap-8" }, _t = {
|
|
2640
2633
|
key: 0,
|
|
2641
2634
|
class: "flex items-center gap-8 text-fm-color-system-info-300"
|
|
2642
|
-
},
|
|
2635
|
+
}, St = { class: "flex flex-col gap-8" }, Tt = {
|
|
2643
2636
|
key: 1,
|
|
2644
2637
|
class: "grid grid-cols-1 gap-8 sm:grid-cols-2"
|
|
2645
2638
|
}, $t = ["title"], Ut = ["aria-label"], Dt = { class: "text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, Bt = ["value", "onInput", "onChange"], Lt = {
|
|
@@ -2719,13 +2712,13 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2719
2712
|
const v = T(() => {
|
|
2720
2713
|
const y = p();
|
|
2721
2714
|
return y.length === 0 ? [t("report.section.datasource.styleTarget.metric")] : y.map((V, _) => B(V, _));
|
|
2722
|
-
}), b = oe(ce.length),
|
|
2715
|
+
}), b = oe(ce.length), A = oe(ce.length);
|
|
2723
2716
|
function h(y, V) {
|
|
2724
2717
|
const _ = Math.max(1, V), R = Array.isArray(y) ? y.length : 0, q = R > 0 ? Math.ceil(R / _) : 0;
|
|
2725
2718
|
return Math.max(ce.length, q, 1);
|
|
2726
2719
|
}
|
|
2727
2720
|
const F = T(() => {
|
|
2728
|
-
const y = Math.max(1,
|
|
2721
|
+
const y = Math.max(1, A.value);
|
|
2729
2722
|
return Array.from({ length: y }).map(
|
|
2730
2723
|
(V, _) => `${t("report.section.datasource.styleTarget.breakdown")} ${_ + 1}`
|
|
2731
2724
|
);
|
|
@@ -2737,7 +2730,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2737
2730
|
};
|
|
2738
2731
|
return `#${R(1)}${R(3)}${R(5)}`;
|
|
2739
2732
|
}
|
|
2740
|
-
function
|
|
2733
|
+
function S(y) {
|
|
2741
2734
|
return Math.min(0.55 + (y - 1) * 0.18, 0.95);
|
|
2742
2735
|
}
|
|
2743
2736
|
function d(y, V, _) {
|
|
@@ -2751,7 +2744,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2751
2744
|
return y.flatMap((W, le) => {
|
|
2752
2745
|
const Z = P[le], re = _ == null ? void 0 : _[d(le, 0, q)], $e = c(re) ?? Z;
|
|
2753
2746
|
return V.map((Xe, Ue) => {
|
|
2754
|
-
const Ol = d(le, Ue, q), ll = Ue === 0 ? $e : z($e,
|
|
2747
|
+
const Ol = d(le, Ue, q), ll = Ue === 0 ? $e : z($e, S(Ue));
|
|
2755
2748
|
return R && Ue > 0 ? ll : c(_ == null ? void 0 : _[Ol]) ?? ll;
|
|
2756
2749
|
});
|
|
2757
2750
|
});
|
|
@@ -2769,7 +2762,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2769
2762
|
}
|
|
2770
2763
|
return V.toUpperCase();
|
|
2771
2764
|
}
|
|
2772
|
-
function
|
|
2765
|
+
function k() {
|
|
2773
2766
|
const y = () => Math.floor(Math.random() * 256).toString(16).padStart(2, "0").toUpperCase();
|
|
2774
2767
|
return `#${y()}${y()}${y()}`;
|
|
2775
2768
|
}
|
|
@@ -2797,7 +2790,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2797
2790
|
}
|
|
2798
2791
|
return _;
|
|
2799
2792
|
}
|
|
2800
|
-
const
|
|
2793
|
+
const L = T(
|
|
2801
2794
|
() => x(e.model.chartColorBinding)
|
|
2802
2795
|
), E = T(
|
|
2803
2796
|
() => r(e.model.chartColors, e.model.chartColorLayers)
|
|
@@ -2810,12 +2803,12 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2810
2803
|
T(
|
|
2811
2804
|
() => i(
|
|
2812
2805
|
e.model.chartColors,
|
|
2813
|
-
|
|
2806
|
+
L.value === ae.series ? E.value : U(L.value).length
|
|
2814
2807
|
)
|
|
2815
2808
|
), T(
|
|
2816
2809
|
() => n(
|
|
2817
2810
|
e.model.chartColorLayers,
|
|
2818
|
-
|
|
2811
|
+
L.value === ae.series ? E.value : U(L.value).length
|
|
2819
2812
|
)
|
|
2820
2813
|
);
|
|
2821
2814
|
const ge = T(
|
|
@@ -2844,7 +2837,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2844
2837
|
Te.value = !0, I.value = x(V), b.value = r(
|
|
2845
2838
|
y,
|
|
2846
2839
|
e.model.chartColorLayers
|
|
2847
|
-
),
|
|
2840
|
+
), A.value = h(
|
|
2848
2841
|
e.model.chartBreakdownColors,
|
|
2849
2842
|
Math.max(1, v.value.length)
|
|
2850
2843
|
);
|
|
@@ -2889,7 +2882,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2889
2882
|
ee,
|
|
2890
2883
|
I,
|
|
2891
2884
|
b,
|
|
2892
|
-
|
|
2885
|
+
A
|
|
2893
2886
|
],
|
|
2894
2887
|
() => {
|
|
2895
2888
|
Be();
|
|
@@ -2901,7 +2894,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2901
2894
|
_[y] = c(V) ?? R, X.value = _;
|
|
2902
2895
|
}
|
|
2903
2896
|
function wl(y) {
|
|
2904
|
-
Ee(y,
|
|
2897
|
+
Ee(y, k());
|
|
2905
2898
|
}
|
|
2906
2899
|
function xl(y) {
|
|
2907
2900
|
if (e.limitToSeriesMode)
|
|
@@ -2933,10 +2926,10 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2933
2926
|
W.splice(q, Ve), le.splice(q, Ve), b.value = P, X.value = i(W, P), j.value = n(le, P);
|
|
2934
2927
|
}
|
|
2935
2928
|
function Fl(y) {
|
|
2936
|
-
const V = Math.max(ce.length,
|
|
2929
|
+
const V = Math.max(ce.length, A.value), _ = y + 1;
|
|
2937
2930
|
if (_ === V) {
|
|
2938
2931
|
const $e = V + Ve;
|
|
2939
|
-
|
|
2932
|
+
A.value = $e, Y.value = a(
|
|
2940
2933
|
Array.from({ length: $e }, (Xe, Ue) => `breakdown-${Ue + 1}`),
|
|
2941
2934
|
v.value,
|
|
2942
2935
|
Y.value,
|
|
@@ -2947,7 +2940,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2947
2940
|
if (V <= ce.length)
|
|
2948
2941
|
return;
|
|
2949
2942
|
const q = Math.max(1, v.value.length), W = _ * q, le = Ve * q, Z = Math.max(ce.length, V - Ve), re = [...Y.value];
|
|
2950
|
-
re.splice(W, le),
|
|
2943
|
+
re.splice(W, le), A.value = Z, Y.value = a(
|
|
2951
2944
|
Array.from({ length: Z }, ($e, Xe) => `breakdown-${Xe + 1}`),
|
|
2952
2945
|
v.value,
|
|
2953
2946
|
re,
|
|
@@ -2969,11 +2962,11 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2969
2962
|
);
|
|
2970
2963
|
W >= 0 && (q[W] = P), q[y] = R, j.value = q;
|
|
2971
2964
|
}
|
|
2972
|
-
function
|
|
2965
|
+
function _l(y, V) {
|
|
2973
2966
|
const _ = V.target;
|
|
2974
2967
|
_ && (be.value = !0, Ee(y, _.value));
|
|
2975
2968
|
}
|
|
2976
|
-
function
|
|
2969
|
+
function Sl(y, V) {
|
|
2977
2970
|
const _ = V.target;
|
|
2978
2971
|
_ && (Ee(y, _.value), be.value = !1, Be());
|
|
2979
2972
|
}
|
|
@@ -2992,7 +2985,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
2992
2985
|
if (le[W] = q, ee.value && V === 0)
|
|
2993
2986
|
for (let Z = 1; Z < P; Z++) {
|
|
2994
2987
|
const re = d(y, Z, P);
|
|
2995
|
-
le[re] = z(q,
|
|
2988
|
+
le[re] = z(q, S(Z));
|
|
2996
2989
|
}
|
|
2997
2990
|
Y.value = le;
|
|
2998
2991
|
}
|
|
@@ -3014,19 +3007,19 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3014
3007
|
if (le[W] = q, ee.value && V === 0)
|
|
3015
3008
|
for (let Z = 1; Z < P; Z++) {
|
|
3016
3009
|
const re = d(y, Z, P);
|
|
3017
|
-
le[re] = z(q,
|
|
3010
|
+
le[re] = z(q, S(Z));
|
|
3018
3011
|
}
|
|
3019
3012
|
Y.value = le, be.value = !1, Be();
|
|
3020
3013
|
}
|
|
3021
3014
|
function Ul(y, V) {
|
|
3022
|
-
const _ =
|
|
3015
|
+
const _ = k(), R = v.value.length;
|
|
3023
3016
|
if (R <= 0)
|
|
3024
3017
|
return;
|
|
3025
3018
|
const q = d(y, V, R), P = [...Y.value];
|
|
3026
3019
|
if (P[q] = _, ee.value && V === 0)
|
|
3027
3020
|
for (let W = 1; W < R; W++) {
|
|
3028
3021
|
const le = d(y, W, R);
|
|
3029
|
-
P[le] = z(_,
|
|
3022
|
+
P[le] = z(_, S(W));
|
|
3030
3023
|
}
|
|
3031
3024
|
Y.value = P;
|
|
3032
3025
|
}
|
|
@@ -3043,14 +3036,14 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3043
3036
|
}
|
|
3044
3037
|
function Ll(y) {
|
|
3045
3038
|
ee.value = y, Y.value = a(
|
|
3046
|
-
Array.from({ length:
|
|
3039
|
+
Array.from({ length: A.value }, (V, _) => `breakdown-${_ + 1}`),
|
|
3047
3040
|
v.value,
|
|
3048
3041
|
Y.value,
|
|
3049
3042
|
ee.value
|
|
3050
3043
|
);
|
|
3051
3044
|
}
|
|
3052
3045
|
function Al() {
|
|
3053
|
-
I.value = ae.series, b.value = ce.length,
|
|
3046
|
+
I.value = ae.series, b.value = ce.length, A.value = ce.length, X.value = i(void 0, ce.length), j.value = n(void 0, ce.length), ee.value = !0, Y.value = a(
|
|
3054
3047
|
Array.from({ length: ce.length }, (y, V) => `breakdown-${V + 1}`),
|
|
3055
3048
|
v.value,
|
|
3056
3049
|
void 0,
|
|
@@ -3078,7 +3071,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3078
3071
|
"aria-expanded": se.value ? "true" : "false",
|
|
3079
3072
|
onClick: Ml
|
|
3080
3073
|
}, null, 8, ["label", "prepend-icon", "aria-expanded"]),
|
|
3081
|
-
se.value ? (f(), H("div",
|
|
3074
|
+
se.value ? (f(), H("div", _t, [
|
|
3082
3075
|
u(_, {
|
|
3083
3076
|
variant: "tertiary",
|
|
3084
3077
|
"text-color": "text-fm-color-system-info-300",
|
|
@@ -3088,7 +3081,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3088
3081
|
}, null, 8, ["label"])
|
|
3089
3082
|
])) : O("", !0)
|
|
3090
3083
|
]),
|
|
3091
|
-
Ce(C("div",
|
|
3084
|
+
Ce(C("div", St, [
|
|
3092
3085
|
u(R, {
|
|
3093
3086
|
"model-value": I.value,
|
|
3094
3087
|
items: w.value,
|
|
@@ -3139,8 +3132,8 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3139
3132
|
type: "color",
|
|
3140
3133
|
value: P,
|
|
3141
3134
|
class: "absolute inset-0 cursor-pointer opacity-0",
|
|
3142
|
-
onInput: (le) =>
|
|
3143
|
-
onChange: (le) =>
|
|
3135
|
+
onInput: (le) => _l(W, le),
|
|
3136
|
+
onChange: (le) => Sl(W, le)
|
|
3144
3137
|
}, null, 40, Bt)
|
|
3145
3138
|
], 8, Ut),
|
|
3146
3139
|
u(_, {
|
|
@@ -3218,7 +3211,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3218
3211
|
u(_, {
|
|
3219
3212
|
class: "w-full",
|
|
3220
3213
|
size: "md",
|
|
3221
|
-
icon: Qe(W,
|
|
3214
|
+
icon: Qe(W, A.value),
|
|
3222
3215
|
onClick: (le) => Fl(W)
|
|
3223
3216
|
}, null, 8, ["icon", "onClick"])
|
|
3224
3217
|
])) : O("", !0)
|
|
@@ -3259,7 +3252,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3259
3252
|
if (!e.model.isBlend)
|
|
3260
3253
|
return i;
|
|
3261
3254
|
const n = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
3262
|
-
(
|
|
3255
|
+
(L) => Array.isArray(L == null ? void 0 : L.metrics) ? L.metrics : []
|
|
3263
3256
|
) : [];
|
|
3264
3257
|
return [...i, ...n];
|
|
3265
3258
|
}
|
|
@@ -3267,10 +3260,10 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3267
3260
|
if (i === ae.metric) {
|
|
3268
3261
|
const n = B();
|
|
3269
3262
|
if (n.length > 0)
|
|
3270
|
-
return n.map((
|
|
3263
|
+
return n.map((L, E) => p(L, E));
|
|
3271
3264
|
}
|
|
3272
3265
|
return ce.map(
|
|
3273
|
-
(n,
|
|
3266
|
+
(n, L) => `${t("report.section.datasource.lineStyle.series")} ${L + 1}`
|
|
3274
3267
|
);
|
|
3275
3268
|
}
|
|
3276
3269
|
const o = T(() => [
|
|
@@ -3295,16 +3288,16 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3295
3288
|
}
|
|
3296
3289
|
function b(i, n) {
|
|
3297
3290
|
return !Array.isArray(i) || i.length === 0 ? Array.from({ length: n }).map(
|
|
3298
|
-
(
|
|
3291
|
+
(L, E) => sl[E] ?? "solid"
|
|
3299
3292
|
) : Array.from({ length: n }).map(
|
|
3300
|
-
(
|
|
3293
|
+
(L, E) => r(i[E])
|
|
3301
3294
|
);
|
|
3302
3295
|
}
|
|
3303
|
-
const
|
|
3296
|
+
const A = T(
|
|
3304
3297
|
() => x(e.model.lineStyleBinding)
|
|
3305
|
-
), h = T(() => U(
|
|
3306
|
-
() => b(e.model.lineStyles, U(
|
|
3307
|
-
), z = oe([]),
|
|
3298
|
+
), h = T(() => U(S.value)), F = T(
|
|
3299
|
+
() => b(e.model.lineStyles, U(A.value).length)
|
|
3300
|
+
), z = oe([]), S = oe(ae.series);
|
|
3308
3301
|
he(
|
|
3309
3302
|
[
|
|
3310
3303
|
() => e.model.lineStyles,
|
|
@@ -3314,43 +3307,43 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3314
3307
|
() => e.model.joinDatasources
|
|
3315
3308
|
],
|
|
3316
3309
|
([i, n]) => {
|
|
3317
|
-
|
|
3310
|
+
S.value = x(n), z.value = b(
|
|
3318
3311
|
i,
|
|
3319
|
-
U(
|
|
3312
|
+
U(S.value).length
|
|
3320
3313
|
);
|
|
3321
3314
|
},
|
|
3322
3315
|
{ immediate: !0, deep: !0 }
|
|
3323
3316
|
);
|
|
3324
|
-
const d = T(() =>
|
|
3317
|
+
const d = T(() => S.value !== A.value || z.value.length !== F.value.length ? !0 : z.value.some((i, n) => i !== F.value[n]));
|
|
3325
3318
|
function a(i, n) {
|
|
3326
|
-
const
|
|
3327
|
-
|
|
3319
|
+
const L = [...z.value];
|
|
3320
|
+
L[i] = r(n), z.value = L;
|
|
3328
3321
|
}
|
|
3329
3322
|
function g(i) {
|
|
3330
3323
|
const n = x(i);
|
|
3331
|
-
if (n ===
|
|
3324
|
+
if (n === S.value)
|
|
3332
3325
|
return;
|
|
3333
|
-
const
|
|
3334
|
-
|
|
3326
|
+
const L = U(n).length;
|
|
3327
|
+
S.value = n, z.value = b(z.value, L);
|
|
3335
3328
|
}
|
|
3336
3329
|
function c() {
|
|
3337
|
-
|
|
3330
|
+
S.value = ae.series, z.value = [...sl];
|
|
3338
3331
|
}
|
|
3339
|
-
function
|
|
3340
|
-
const i =
|
|
3332
|
+
function k() {
|
|
3333
|
+
const i = S.value === ae.series, n = z.value.every((L) => L === "solid");
|
|
3341
3334
|
s("update:model", {
|
|
3342
3335
|
...e.model,
|
|
3343
|
-
lineStyleBinding: i ? void 0 :
|
|
3336
|
+
lineStyleBinding: i ? void 0 : S.value,
|
|
3344
3337
|
lineStyles: n ? void 0 : [...z.value]
|
|
3345
3338
|
});
|
|
3346
3339
|
}
|
|
3347
3340
|
return (i, n) => {
|
|
3348
|
-
const
|
|
3341
|
+
const L = $("FmButton"), E = $("FmSelect");
|
|
3349
3342
|
return f(), H("div", Xt, [
|
|
3350
3343
|
C("div", Wt, [
|
|
3351
3344
|
C("p", qt, Q(l(t)("report.section.datasource.lineStyle.title")), 1),
|
|
3352
3345
|
C("div", Ht, [
|
|
3353
|
-
u(
|
|
3346
|
+
u(L, {
|
|
3354
3347
|
variant: "tertiary",
|
|
3355
3348
|
"text-color": "text-fm-color-system-info-300",
|
|
3356
3349
|
size: "md",
|
|
@@ -3360,7 +3353,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3360
3353
|
])
|
|
3361
3354
|
]),
|
|
3362
3355
|
u(E, {
|
|
3363
|
-
"model-value":
|
|
3356
|
+
"model-value": S.value,
|
|
3364
3357
|
items: w.value,
|
|
3365
3358
|
label: l(t)("report.section.datasource.styleTarget.title"),
|
|
3366
3359
|
"onUpdate:modelValue": g
|
|
@@ -3385,11 +3378,11 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3385
3378
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])
|
|
3386
3379
|
]))), 128))
|
|
3387
3380
|
]),
|
|
3388
|
-
u(
|
|
3381
|
+
u(L, {
|
|
3389
3382
|
size: "md",
|
|
3390
3383
|
label: l(t)("report.common.apply"),
|
|
3391
3384
|
disabled: !d.value,
|
|
3392
|
-
onClick:
|
|
3385
|
+
onClick: k
|
|
3393
3386
|
}, null, 8, ["label", "disabled"])
|
|
3394
3387
|
]);
|
|
3395
3388
|
};
|
|
@@ -3457,7 +3450,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3457
3450
|
}
|
|
3458
3451
|
});
|
|
3459
3452
|
return (r, v) => {
|
|
3460
|
-
const b = $("FmButton"),
|
|
3453
|
+
const b = $("FmButton"), A = $("FmCheckbox"), h = $("FmStepperField");
|
|
3461
3454
|
return f(), H(ue, null, [
|
|
3462
3455
|
v[10] || (v[10] = C("div", { class: "grow" }, null, -1)),
|
|
3463
3456
|
s.closeable ? (f(), N(b, {
|
|
@@ -3490,7 +3483,7 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3490
3483
|
C("div", la, [
|
|
3491
3484
|
C("p", oa, Q(l(w)("report.section.style.configuration")), 1),
|
|
3492
3485
|
C("div", ta, [
|
|
3493
|
-
p.value ? (f(), N(
|
|
3486
|
+
p.value ? (f(), N(A, {
|
|
3494
3487
|
key: 0,
|
|
3495
3488
|
modelValue: o.value,
|
|
3496
3489
|
"onUpdate:modelValue": v[4] || (v[4] = (F) => o.value = F),
|
|
@@ -3582,7 +3575,6 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3582
3575
|
usePointStyle: !0,
|
|
3583
3576
|
legendFontSize: void 0,
|
|
3584
3577
|
legendColor: "#6b6b6b",
|
|
3585
|
-
legendMaxWidth: void 0,
|
|
3586
3578
|
maxTooltipItems: void 0,
|
|
3587
3579
|
stackBarOverlap: !1
|
|
3588
3580
|
};
|
|
@@ -3793,18 +3785,18 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3793
3785
|
}, La = /* @__PURE__ */ ie({
|
|
3794
3786
|
__name: "TileEditor",
|
|
3795
3787
|
setup(D) {
|
|
3796
|
-
const { rowHeight: m, colWidths: e } =
|
|
3788
|
+
const { rowHeight: m, colWidths: e } = _e(je()), s = Rl(), t = Il(), w = vl(), { globalFilters: x } = _e(Jl()), { currentSelectWidgetType: p, editingReport: B, editingTile: U, editingTileIndex: o } = _e(w), { breakpoints: r } = gl(), { promptMessage: v } = fl(), { t: b, te: A } = me(), h = T(() => {
|
|
3797
3789
|
var c;
|
|
3798
3790
|
const a = (c = U.value) == null ? void 0 : c.widget.type;
|
|
3799
3791
|
if (!a)
|
|
3800
3792
|
return b("report.editor.newReport");
|
|
3801
3793
|
const g = `report.widget.types.${a.toLowerCase()}`;
|
|
3802
|
-
return
|
|
3794
|
+
return A(g) ? b(g) : a;
|
|
3803
3795
|
}), F = oe(!1);
|
|
3804
3796
|
function z() {
|
|
3805
3797
|
p.value = void 0, U.value = void 0, o.value = -1, t.back();
|
|
3806
3798
|
}
|
|
3807
|
-
async function
|
|
3799
|
+
async function S() {
|
|
3808
3800
|
var g;
|
|
3809
3801
|
if (!B.value) return;
|
|
3810
3802
|
await v({
|
|
@@ -3835,8 +3827,8 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3835
3827
|
{ label: l(b)("report.common.cancel"), value: "cancel", isPrimary: !1 },
|
|
3836
3828
|
{ label: l(b)("report.common.save"), value: "save", isPrimary: !0 }
|
|
3837
3829
|
],
|
|
3838
|
-
"onClick:action": g[0] || (g[0] = (
|
|
3839
|
-
|
|
3830
|
+
"onClick:action": g[0] || (g[0] = (k) => {
|
|
3831
|
+
k === "cancel" && d(), k === "save" && S();
|
|
3840
3832
|
})
|
|
3841
3833
|
}, {
|
|
3842
3834
|
title: G(() => [
|
|
@@ -3844,8 +3836,8 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3844
3836
|
]),
|
|
3845
3837
|
_: 1
|
|
3846
3838
|
}, 8, ["actions"]),
|
|
3847
|
-
l(U) && (l(x) || []).some((
|
|
3848
|
-
const i =
|
|
3839
|
+
l(U) && (l(x) || []).some((k) => {
|
|
3840
|
+
const i = k.tileIds, n = l(U) && l(U).id;
|
|
3849
3841
|
return Array.isArray(i) && typeof n == "string" && i.includes(n);
|
|
3850
3842
|
}) ? (f(), H("div", ha, [
|
|
3851
3843
|
u(Kl)
|
|
@@ -3853,12 +3845,12 @@ const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body
|
|
|
3853
3845
|
l(U) ? (f(), N(cl(l(r).lg || l(r).md ? va : ya), {
|
|
3854
3846
|
key: 1,
|
|
3855
3847
|
modelValue: l(U),
|
|
3856
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
3848
|
+
"onUpdate:modelValue": g[1] || (g[1] = (k) => zl(U) ? U.value = k : null),
|
|
3857
3849
|
class: ke(`${l(r).lg || l(r).md ? "flex" : ""} w-full`),
|
|
3858
3850
|
style: He({ height: `calc( 100% - ${l(r).lg || l(r).md ? 72 : 64}px)` }),
|
|
3859
3851
|
"hide-configuration": F.value,
|
|
3860
3852
|
index: Number(l(s).params.tileIndex),
|
|
3861
|
-
onHideConfiguration: g[2] || (g[2] = (
|
|
3853
|
+
onHideConfiguration: g[2] || (g[2] = (k) => F.value = k)
|
|
3862
3854
|
}, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : O("", !0)
|
|
3863
3855
|
]),
|
|
3864
3856
|
_: 1
|