@feedmepos/mf-report 5.26.7 → 5.26.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-C94O_vo_.js → App-DE_KEBIH.js} +60 -60
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Dn157Zx3.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-D-OrSEoQ.js} +86 -87
- package/dist/{Default.vue_vue_type_script_setup_true_lang-nt4P42ea.js → Default.vue_vue_type_script_setup_true_lang-CLAOb_IH.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-AQDQW9GO.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Ce64O86J.js} +517 -519
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C426Aob-.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C-VMmoAn.js} +2 -2
- package/dist/{InsightView-Basufi0o.js → InsightView-CrtPd5NK.js} +4 -4
- package/dist/{Integration-B920vZDz.js → Integration-BgeaRR7r.js} +3 -3
- package/dist/{Integrations-_VxUzyV_.js → Integrations-DN6xsH_b.js} +2 -2
- package/dist/{Layout-C3EdQj0a.js → Layout-0YuYHsP9.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-cx9Ls4VN.js → MenuTab.vue_vue_type_script_setup_true_lang-DGVKRwJG.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BZdj0yom.js → NavigationTab.vue_vue_type_script_setup_true_lang-DF_ew8-o.js} +3 -3
- package/dist/{OverviewView-5SW5eV5d.js → OverviewView-C9OhZlDm.js} +4 -4
- package/dist/{Report-D7QE2m9x.js → Report-jrADalOt.js} +3 -3
- package/dist/{ReportEditor-CRGL55-B.js → ReportEditor-CC_RuLmB.js} +5 -5
- package/dist/{ReportView-DPTA33K1.js → ReportView-Bd0SdK9d.js} +6 -6
- package/dist/{Setting-Dc9348RB.js → Setting-C-D6wGwY.js} +3 -3
- package/dist/{Template-DaeFfFJD.js → Template-Br43MDsi.js} +3 -3
- package/dist/{TileEditor-C4157Jus.js → TileEditor-By4srlF6.js} +778 -783
- package/dist/{TransitionFade-B0iVN3no.js → TransitionFade-B7Q98m7o.js} +4 -4
- package/dist/{app-CtnYfBf0.js → app-BIczSq7p.js} +13 -13
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-dtgeWEXZ.js → useRestaurantPermission-B8mLE1Px.js} +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as ue, mergeModels as ve, useModel as ye, computed as k, ref as le, resolveComponent as M, createElementBlock as X, openBlock as
|
|
1
|
+
import { defineComponent as ue, mergeModels as ve, useModel as ye, computed as k, ref as le, resolveComponent as M, createElementBlock as X, openBlock as f, createVNode as m, createElementVNode as h, unref as l, withCtx as Q, toDisplayString as J, Fragment as de, renderList as _e, withModifiers as we, createTextVNode as Ie, watch as Ve, createCommentVNode as E, createBlock as R, renderSlot as bl, onBeforeUnmount as nl, resolveDynamicComponent as hl, normalizeClass as $e, withDirectives as ke, vShow as Te, onMounted as Cl, withKeys as dl, vModelText as zl, normalizeStyle as tl, isRef as Il } from "vue";
|
|
2
2
|
import { useRoute as Rl, useRouter as Pl } from "vue-router";
|
|
3
|
-
import { h as El, u as il, c as
|
|
4
|
-
import { W as Y, a as
|
|
5
|
-
import { storeToRefs as
|
|
3
|
+
import { h as El, u as il, c as ze, F as je, d as Je, S as ol, a as Wl, W as Xl, e as ql, T as Hl, b as Gl } from "./TransitionFade-B7Q98m7o.js";
|
|
4
|
+
import { W as Y, a as wl, f as Re, D as Yl, S as ml, C as Jl, u as xl, P as cl, d as Kl, b as Ql } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C-VMmoAn.js";
|
|
5
|
+
import { storeToRefs as Oe } from "pinia";
|
|
6
6
|
import { u as Fl } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as Zl, useBreakpoints as Vl, FmButtonColorThemeVariant as Me } from "@feedmepos/ui-library";
|
|
8
8
|
import { a as be, b as kl, _ as _l } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
|
|
9
9
|
import { u as ge } from "./vue-i18n-DVWuTfed.js";
|
|
10
10
|
import { r as re } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { g as
|
|
12
|
-
import { a as Ne, d as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as et, d as qe } from "./app-
|
|
11
|
+
import { g as Ce, R as pl, L as Be, a as Ze, S as ie, d as fe, b as el, c as vl, _ as Sl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Ce64O86J.js";
|
|
12
|
+
import { a as Ne, d as He } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-D-OrSEoQ.js";
|
|
13
|
+
import { a as et, d as qe } from "./app-BIczSq7p.js";
|
|
14
14
|
const Ke = [
|
|
15
15
|
{
|
|
16
16
|
type: Y.Circular,
|
|
@@ -182,7 +182,7 @@ const Ke = [
|
|
|
182
182
|
}),
|
|
183
183
|
emits: ["update:modelValue"],
|
|
184
184
|
setup(B) {
|
|
185
|
-
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, { schemas: U } =
|
|
185
|
+
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, { schemas: U } = Oe(wl()), C = k(
|
|
186
186
|
() => U.value.map((n) => ({
|
|
187
187
|
label: n.label,
|
|
188
188
|
value: n.name,
|
|
@@ -190,10 +190,10 @@ const Ke = [
|
|
|
190
190
|
}))
|
|
191
191
|
), c = k(() => {
|
|
192
192
|
if (t.value.schemaNames.length === 0 || o.value === 0)
|
|
193
|
-
return
|
|
193
|
+
return C.value.filter((n) => !n.raw.isJoinOnly);
|
|
194
194
|
{
|
|
195
|
-
const n = t.value.schemaNames[0], v = U.value.find((P) => P.name === n),
|
|
196
|
-
return
|
|
195
|
+
const n = t.value.schemaNames[0], v = U.value.find((P) => P.name === n), z = ((v == null ? void 0 : v.joins) || []).map((P) => P);
|
|
196
|
+
return C.value.filter((P) => z.includes(P.raw.name));
|
|
197
197
|
}
|
|
198
198
|
}), T = le(!1), L = le(""), o = le(), r = Zl();
|
|
199
199
|
function i(n) {
|
|
@@ -201,7 +201,7 @@ const Ke = [
|
|
|
201
201
|
return re(
|
|
202
202
|
p,
|
|
203
203
|
e,
|
|
204
|
-
(v = U.value.find((
|
|
204
|
+
(v = U.value.find((z) => z.name === n)) == null ? void 0 : v.label,
|
|
205
205
|
"schema"
|
|
206
206
|
);
|
|
207
207
|
}
|
|
@@ -212,8 +212,8 @@ const Ke = [
|
|
|
212
212
|
L.value !== "" ? (o.value !== void 0 ? t.value.schemaNames[o.value] = L.value : t.value.schemaNames.push(L.value), T.value = !1) : r.open({ message: p("report.section.schema.nothingSelected"), type: "error" });
|
|
213
213
|
}
|
|
214
214
|
return (n, v) => {
|
|
215
|
-
const
|
|
216
|
-
return
|
|
215
|
+
const z = M("FmForm"), P = M("FmIcon"), y = M("FmField");
|
|
216
|
+
return f(), X("div", lt, [
|
|
217
217
|
m(Re, {
|
|
218
218
|
modelValue: T.value,
|
|
219
219
|
"onUpdate:modelValue": v[1] || (v[1] = (s) => T.value = s),
|
|
@@ -223,13 +223,13 @@ const Ke = [
|
|
|
223
223
|
onConfirm: A
|
|
224
224
|
}, {
|
|
225
225
|
content: Q(() => [
|
|
226
|
-
m(
|
|
226
|
+
m(z, { ref: "form" }, {
|
|
227
227
|
default: Q(() => [
|
|
228
228
|
m(be, {
|
|
229
229
|
modelValue: L.value,
|
|
230
230
|
"onUpdate:modelValue": v[0] || (v[0] = (s) => L.value = s),
|
|
231
231
|
label: l(p)("report.section.schema.title"),
|
|
232
|
-
items: o.value === 0 ?
|
|
232
|
+
items: o.value === 0 ? C.value.map((s) => ({
|
|
233
233
|
label: l(re)(l(p), l(e), s.label, "schema"),
|
|
234
234
|
value: s.value
|
|
235
235
|
})) : c.value.map((s) => ({
|
|
@@ -247,35 +247,35 @@ const Ke = [
|
|
|
247
247
|
h("p", tt, J(l(p)("report.section.schema.title")), 1),
|
|
248
248
|
h("p", ot, J(l(p)("report.section.schema.description")), 1)
|
|
249
249
|
]),
|
|
250
|
-
(
|
|
251
|
-
key:
|
|
250
|
+
(f(!0), X(de, null, _e(t.value.schemaNames, (s, O) => (f(), X("div", {
|
|
251
|
+
key: O,
|
|
252
252
|
class: "flex flex-col gap-2 w-full"
|
|
253
253
|
}, [
|
|
254
254
|
h("div", {
|
|
255
255
|
class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
|
|
256
|
-
onClick: (N) => x(
|
|
256
|
+
onClick: (N) => x(O)
|
|
257
257
|
}, [
|
|
258
258
|
h("p", nt, J(i(s)), 1),
|
|
259
259
|
v[3] || (v[3] = h("div", { class: "grow" }, null, -1)),
|
|
260
260
|
m(P, {
|
|
261
261
|
name: "close",
|
|
262
|
-
onClick:
|
|
262
|
+
onClick: we(
|
|
263
263
|
() => {
|
|
264
|
-
t.value.schemaNames = l(El)(t.value.schemaNames,
|
|
264
|
+
t.value.schemaNames = l(El)(t.value.schemaNames, O);
|
|
265
265
|
},
|
|
266
266
|
["stop"]
|
|
267
267
|
)
|
|
268
268
|
}, null, 8, ["onClick"])
|
|
269
269
|
], 8, at)
|
|
270
270
|
]))), 128)),
|
|
271
|
-
m(
|
|
271
|
+
m(y, {
|
|
272
272
|
class: "text-fm-color-typo-tertiary",
|
|
273
273
|
onClick: v[2] || (v[2] = () => {
|
|
274
274
|
x();
|
|
275
275
|
})
|
|
276
276
|
}, {
|
|
277
277
|
default: Q(() => [
|
|
278
|
-
|
|
278
|
+
Ie(J(l(p)("report.section.schema.add")), 1)
|
|
279
279
|
]),
|
|
280
280
|
_: 1
|
|
281
281
|
})
|
|
@@ -295,25 +295,25 @@ function Tl({
|
|
|
295
295
|
const a = k(() => {
|
|
296
296
|
const c = /* @__PURE__ */ new Map();
|
|
297
297
|
for (const T of p.value)
|
|
298
|
-
c.set(
|
|
298
|
+
c.set(Ce(T), T);
|
|
299
299
|
for (const T of e.value)
|
|
300
|
-
c.set(
|
|
300
|
+
c.set(Ce(T), T);
|
|
301
301
|
return Array.from(c.values());
|
|
302
302
|
}), U = k(
|
|
303
303
|
() => a.value.map((c) => ({
|
|
304
304
|
label: t(c),
|
|
305
|
-
value:
|
|
305
|
+
value: Ce(c),
|
|
306
306
|
badge: fl(c) ? "Metric" : "Dimension",
|
|
307
307
|
meta: fl(c) ? c.aggregation : void 0
|
|
308
308
|
}))
|
|
309
|
-
),
|
|
309
|
+
), C = k(
|
|
310
310
|
() => a.value.map((c) => {
|
|
311
311
|
var L;
|
|
312
312
|
const T = (L = B.value.find(
|
|
313
313
|
(o) => o.schemaName === c.schemaName && o.name === c.name
|
|
314
314
|
)) == null ? void 0 : L.type;
|
|
315
315
|
return T ? {
|
|
316
|
-
fieldId:
|
|
316
|
+
fieldId: Ce(c),
|
|
317
317
|
type: T
|
|
318
318
|
} : void 0;
|
|
319
319
|
}).filter((c) => !!c)
|
|
@@ -321,7 +321,7 @@ function Tl({
|
|
|
321
321
|
return {
|
|
322
322
|
formulaSuggestionFields: a,
|
|
323
323
|
formulaFieldDataList: U,
|
|
324
|
-
allowedFormulaFields:
|
|
324
|
+
allowedFormulaFields: C
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
const st = {
|
|
@@ -360,7 +360,7 @@ const st = {
|
|
|
360
360
|
}),
|
|
361
361
|
emits: ["update:modelValue"],
|
|
362
362
|
setup(B) {
|
|
363
|
-
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.dimension.${a.label}`)),
|
|
363
|
+
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.dimension.${a.label}`)), C = le(!1), c = k(
|
|
364
364
|
() => t.value.map((u, $) => ({
|
|
365
365
|
index: $,
|
|
366
366
|
labels: [u.label || u.name],
|
|
@@ -368,20 +368,20 @@ const st = {
|
|
|
368
368
|
}))
|
|
369
369
|
), T = le(t.value.length > 0 ? 0 : void 0);
|
|
370
370
|
function L(u) {
|
|
371
|
-
var $,
|
|
372
|
-
|
|
371
|
+
var $, I, ae, se;
|
|
372
|
+
C.value = !0, o.value = u != null && u.value ? JSON.parse(
|
|
373
373
|
JSON.stringify({
|
|
374
374
|
...u.value,
|
|
375
375
|
label: re(p, e, ($ = u.value) == null ? void 0 : $.label, "other"),
|
|
376
|
-
moveToColumn: (((
|
|
376
|
+
moveToColumn: (((I = a.config) == null ? void 0 : I.columnIds) || []).includes(Ce(u.value))
|
|
377
377
|
})
|
|
378
378
|
) : void 0, T.value = u == null ? void 0 : u.index, r.value = !!((ae = o.value) != null && ae.dataFormula || (se = o.value) != null && se.displayFormula), o.value && o.value.formatter === void 0 && u != null && u.value.timeFormatter && o.value.formatter === void 0 && (o.value.formatter = u == null ? void 0 : u.value.timeFormatter, o.value.timeFormatter = void 0);
|
|
379
379
|
}
|
|
380
380
|
const o = le(void 0), r = le(!1), i = k(
|
|
381
381
|
() => a.options.find(
|
|
382
382
|
(u) => {
|
|
383
|
-
var $,
|
|
384
|
-
return u.schemaName === (($ = o.value) == null ? void 0 : $.schemaName) && u.name === ((
|
|
383
|
+
var $, I;
|
|
384
|
+
return u.schemaName === (($ = o.value) == null ? void 0 : $.schemaName) && u.name === ((I = o.value) == null ? void 0 : I.name);
|
|
385
385
|
}
|
|
386
386
|
) ?? {}
|
|
387
387
|
);
|
|
@@ -396,13 +396,13 @@ const st = {
|
|
|
396
396
|
);
|
|
397
397
|
const x = k(
|
|
398
398
|
() => {
|
|
399
|
-
var u, $,
|
|
400
|
-
return (
|
|
399
|
+
var u, $, I;
|
|
400
|
+
return (I = (u = i.value) == null ? void 0 : u.fillGapDimensionOptions) == null ? void 0 : I.includes((($ = o.value) == null ? void 0 : $.option) || "");
|
|
401
401
|
}
|
|
402
402
|
);
|
|
403
403
|
function A(u) {
|
|
404
|
-
var $,
|
|
405
|
-
(u.schemaName !== (($ = o.value) == null ? void 0 : $.schemaName) || u.name !== ((
|
|
404
|
+
var $, I;
|
|
405
|
+
(u.schemaName !== (($ = o.value) == null ? void 0 : $.schemaName) || u.name !== ((I = o.value) == null ? void 0 : I.name)) && (o.value = {
|
|
406
406
|
schemaName: u.schemaName,
|
|
407
407
|
name: u.name,
|
|
408
408
|
option: u.dimensionOptions[0],
|
|
@@ -417,27 +417,27 @@ const st = {
|
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
419
|
const u = [...c.value.map(($) => $.value)];
|
|
420
|
-
r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), T.value !== void 0 ? u[T.value] = o.value : u.push(o.value), t.value = u,
|
|
420
|
+
r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), T.value !== void 0 ? u[T.value] = o.value : u.push(o.value), t.value = u, C.value = !1;
|
|
421
421
|
}
|
|
422
422
|
function v(u) {
|
|
423
|
-
const
|
|
424
|
-
t.value =
|
|
423
|
+
const I = [...c.value.map((ae) => ae.value)].filter((ae, se) => se !== u);
|
|
424
|
+
t.value = I;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function z(u) {
|
|
427
427
|
o.value && (o.value.decimal = Number(u));
|
|
428
428
|
}
|
|
429
429
|
function P(u) {
|
|
430
430
|
const $ = `report.section.filter.${Ne(u)}`;
|
|
431
431
|
return e($) ? p($) : re(p, e, u, "field");
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function y(u) {
|
|
434
434
|
const $ = `report.section.metric.formatterType.${u}`;
|
|
435
435
|
return e($) ? p($) : u;
|
|
436
436
|
}
|
|
437
437
|
function s(u) {
|
|
438
438
|
return Array.isArray(u) ? u.length > 0 : u;
|
|
439
439
|
}
|
|
440
|
-
const
|
|
440
|
+
const O = k(
|
|
441
441
|
() => a.options.map((u) => ({
|
|
442
442
|
label: u.labels.join(" "),
|
|
443
443
|
value: u
|
|
@@ -446,24 +446,24 @@ const st = {
|
|
|
446
446
|
function N(u) {
|
|
447
447
|
return [u.schemaName, u.name, re(p, e, u.label, "other")].join(" ");
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function b(u) {
|
|
450
450
|
return [u.schemaName, u.name, u.option, u.label || ""].join("__");
|
|
451
451
|
}
|
|
452
|
-
const
|
|
453
|
-
var
|
|
454
|
-
const u = /* @__PURE__ */ new Map(), $ = o.value ?
|
|
455
|
-
for (const ae of ((
|
|
456
|
-
$ &&
|
|
457
|
-
return o.value && u.set(
|
|
452
|
+
const V = k(() => {
|
|
453
|
+
var I;
|
|
454
|
+
const u = /* @__PURE__ */ new Map(), $ = o.value ? b(o.value) : "";
|
|
455
|
+
for (const ae of ((I = a.config) == null ? void 0 : I.dimensions) ?? [])
|
|
456
|
+
$ && b(ae) === $ || u.set(Ce(ae), ae);
|
|
457
|
+
return o.value && u.set(Ce(o.value), o.value), Array.from(u.values());
|
|
458
458
|
}), { formulaFieldDataList: d, allowedFormulaFields: _ } = Tl({
|
|
459
459
|
options: k(() => a.options),
|
|
460
|
-
primaryFields:
|
|
460
|
+
primaryFields: V,
|
|
461
461
|
secondaryFields: k(() => {
|
|
462
462
|
var u;
|
|
463
463
|
return ((u = a.config) == null ? void 0 : u.metrics) ?? [];
|
|
464
464
|
}),
|
|
465
465
|
getLabel: N
|
|
466
|
-
}), { dataValidation: K, displayValidation:
|
|
466
|
+
}), { dataValidation: K, displayValidation: j, isDataValidating: g, isDisplayValidating: F } = il({
|
|
467
467
|
getDataFormula: () => {
|
|
468
468
|
var u;
|
|
469
469
|
return (u = o.value) == null ? void 0 : u.dataFormula;
|
|
@@ -476,11 +476,11 @@ const st = {
|
|
|
476
476
|
getAllowedFields: () => _.value
|
|
477
477
|
});
|
|
478
478
|
return (u, $) => {
|
|
479
|
-
const
|
|
480
|
-
return B.max !== 0 ? (
|
|
479
|
+
const I = M("FmTextField"), ae = M("FmStepperField"), se = M("FmCheckbox"), ce = M("FmForm"), pe = M("FmIcon"), De = M("FmButton"), oe = M("FmListItem"), xe = M("FmList"), Se = M("FmField");
|
|
480
|
+
return B.max !== 0 ? (f(), X("div", st, [
|
|
481
481
|
m(Re, {
|
|
482
|
-
modelValue:
|
|
483
|
-
"onUpdate:modelValue": $[12] || ($[12] = (he) =>
|
|
482
|
+
modelValue: C.value,
|
|
483
|
+
"onUpdate:modelValue": $[12] || ($[12] = (he) => C.value = he),
|
|
484
484
|
title: U.value,
|
|
485
485
|
"primary-button-label": l(p)("report.common.confirm"),
|
|
486
486
|
"secondary-button-label": l(p)("report.common.cancel"),
|
|
@@ -496,18 +496,18 @@ const st = {
|
|
|
496
496
|
return [
|
|
497
497
|
m(be, {
|
|
498
498
|
"model-value": i.value,
|
|
499
|
-
items:
|
|
499
|
+
items: O.value,
|
|
500
500
|
placeholder: U.value,
|
|
501
501
|
label: U.value,
|
|
502
502
|
"onUpdate:modelValue": $[0] || ($[0] = (ne) => A(ne))
|
|
503
503
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
504
|
-
o.value ? (
|
|
505
|
-
m(
|
|
504
|
+
o.value ? (f(), X(de, { key: 0 }, [
|
|
505
|
+
m(I, {
|
|
506
506
|
modelValue: o.value.label,
|
|
507
507
|
"onUpdate:modelValue": $[1] || ($[1] = (ne) => o.value.label = ne),
|
|
508
508
|
label: l(p)("report.section.dimension.label")
|
|
509
509
|
}, null, 8, ["modelValue", "label"]),
|
|
510
|
-
(((he = i.value) == null ? void 0 : he.dimensionOptions) || []).length > 0 ? (
|
|
510
|
+
(((he = i.value) == null ? void 0 : he.dimensionOptions) || []).length > 0 ? (f(), R(be, {
|
|
511
511
|
key: 0,
|
|
512
512
|
modelValue: o.value.option,
|
|
513
513
|
"onUpdate:modelValue": $[2] || ($[2] = (ne) => o.value.option = ne),
|
|
@@ -516,15 +516,15 @@ const st = {
|
|
|
516
516
|
value: ne
|
|
517
517
|
}))) ?? []
|
|
518
518
|
}, null, 8, ["modelValue", "items"])) : E("", !0),
|
|
519
|
-
(ee = i.value) != null && ee.isNumericType ? (
|
|
519
|
+
(ee = i.value) != null && ee.isNumericType ? (f(), R(ae, {
|
|
520
520
|
key: 1,
|
|
521
521
|
label: l(p)("report.common.decimal"),
|
|
522
522
|
"model-value": ((Pe = o.value) == null ? void 0 : Pe.decimal) ?? 2,
|
|
523
523
|
"onUpdate:modelValue": $[3] || ($[3] = (ne) => {
|
|
524
|
-
|
|
524
|
+
z(ne);
|
|
525
525
|
})
|
|
526
526
|
}, null, 8, ["label", "model-value"])) : E("", !0),
|
|
527
|
-
(Ee = i.value) != null && Ee.isNumericType ? (
|
|
527
|
+
(Ee = i.value) != null && Ee.isNumericType ? (f(), R(be, {
|
|
528
528
|
key: 2,
|
|
529
529
|
modelValue: o.value.formatter,
|
|
530
530
|
"onUpdate:modelValue": $[4] || ($[4] = (ne) => o.value.formatter = ne),
|
|
@@ -533,12 +533,12 @@ const st = {
|
|
|
533
533
|
items: [
|
|
534
534
|
{ label: l(p)("report.section.metric.formatterType.NONE"), value: null },
|
|
535
535
|
...(((We = i.value) == null ? void 0 : We.formatters) || []).map((ne) => ({
|
|
536
|
-
label:
|
|
536
|
+
label: y(ne),
|
|
537
537
|
value: ne
|
|
538
538
|
}))
|
|
539
539
|
]
|
|
540
540
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : E("", !0),
|
|
541
|
-
x.value ? (
|
|
541
|
+
x.value ? (f(), R(se, {
|
|
542
542
|
key: 3,
|
|
543
543
|
"model-value": o.value.fillGap ?? !1,
|
|
544
544
|
label: l(p)("report.section.dimension.fillGap"),
|
|
@@ -548,7 +548,7 @@ const st = {
|
|
|
548
548
|
o.value && (o.value.fillGap = s(ne));
|
|
549
549
|
})
|
|
550
550
|
}, null, 8, ["model-value", "label"])) : E("", !0),
|
|
551
|
-
((Xe = i.value) == null ? void 0 : Xe.type) === l(Yl).Timestamp ? (
|
|
551
|
+
((Xe = i.value) == null ? void 0 : Xe.type) === l(Yl).Timestamp ? (f(), R(se, {
|
|
552
552
|
key: 4,
|
|
553
553
|
"model-value": o.value.dateComparison ?? !1,
|
|
554
554
|
label: l(p)("report.section.dimension.dateComparison"),
|
|
@@ -563,7 +563,7 @@ const st = {
|
|
|
563
563
|
label: l(p)("report.section.dimension.hide"),
|
|
564
564
|
value: ""
|
|
565
565
|
}, null, 8, ["modelValue", "label"]),
|
|
566
|
-
a.hasRowColumn ? (
|
|
566
|
+
a.hasRowColumn ? (f(), R(se, {
|
|
567
567
|
key: 5,
|
|
568
568
|
"model-value": o.value.moveToColumn ?? !1,
|
|
569
569
|
label: l(p)("report.section.dimension.moveToColumn"),
|
|
@@ -578,26 +578,26 @@ const st = {
|
|
|
578
578
|
label: l(p)("report.section.dimension.advance"),
|
|
579
579
|
value: !0
|
|
580
580
|
}, null, 8, ["modelValue", "label"]),
|
|
581
|
-
r.value ? (
|
|
581
|
+
r.value ? (f(), R(ze, {
|
|
582
582
|
key: 6,
|
|
583
583
|
modelValue: o.value.dataFormula,
|
|
584
584
|
"onUpdate:modelValue": $[10] || ($[10] = (ne) => o.value.dataFormula = ne),
|
|
585
585
|
placeholder: l(p)("report.section.dimension.dataFormula"),
|
|
586
586
|
"field-data-list": l(d),
|
|
587
|
-
"formula-field": l(
|
|
587
|
+
"formula-field": l(je).Dimension,
|
|
588
588
|
"validation-result": l(K),
|
|
589
|
-
"is-validating": l(
|
|
589
|
+
"is-validating": l(g),
|
|
590
590
|
"valid-formula-label": l(p)("report.common.validFormula")
|
|
591
591
|
}, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0),
|
|
592
|
-
r.value ? (
|
|
592
|
+
r.value ? (f(), R(ze, {
|
|
593
593
|
key: 7,
|
|
594
594
|
modelValue: o.value.displayFormula,
|
|
595
595
|
"onUpdate:modelValue": $[11] || ($[11] = (ne) => o.value.displayFormula = ne),
|
|
596
596
|
placeholder: l(p)("report.section.dimension.displayFormula"),
|
|
597
597
|
"field-data-list": l(d),
|
|
598
|
-
"formula-field": l(
|
|
599
|
-
"validation-result": l(
|
|
600
|
-
"is-validating": l(
|
|
598
|
+
"formula-field": l(je).Dimension,
|
|
599
|
+
"validation-result": l(j),
|
|
600
|
+
"is-validating": l(F),
|
|
601
601
|
"valid-formula-label": l(p)("report.common.validFormula")
|
|
602
602
|
}, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0)
|
|
603
603
|
], 64)) : E("", !0)
|
|
@@ -616,13 +616,13 @@ const st = {
|
|
|
616
616
|
default: Q(() => [
|
|
617
617
|
m(l(Je), {
|
|
618
618
|
list: t.value,
|
|
619
|
-
"item-key": (he) => l(
|
|
619
|
+
"item-key": (he) => l(Ce)(he),
|
|
620
620
|
class: "flex flex-col gap-2"
|
|
621
621
|
}, {
|
|
622
622
|
item: Q(({ element: he, index: Fe }) => [
|
|
623
623
|
m(oe, {
|
|
624
624
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
625
|
-
onClick:
|
|
625
|
+
onClick: we((ee) => L(c.value[Fe]), ["stop"])
|
|
626
626
|
}, {
|
|
627
627
|
default: Q(() => [
|
|
628
628
|
m(pe, { name: "drag_handle" }),
|
|
@@ -632,7 +632,7 @@ const st = {
|
|
|
632
632
|
icon: "close",
|
|
633
633
|
size: "md",
|
|
634
634
|
variant: "tertiary",
|
|
635
|
-
onClick:
|
|
635
|
+
onClick: we((ee) => v(Fe), ["stop"])
|
|
636
636
|
}, null, 8, ["onClick"])
|
|
637
637
|
]),
|
|
638
638
|
_: 2
|
|
@@ -650,7 +650,7 @@ const st = {
|
|
|
650
650
|
})
|
|
651
651
|
}, {
|
|
652
652
|
default: Q(() => [
|
|
653
|
-
|
|
653
|
+
Ie(J(l(p)("report.section.dimension.add")), 1)
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
656
|
})
|
|
@@ -690,11 +690,11 @@ function ct(B) {
|
|
|
690
690
|
B.widget.config.isDrillable
|
|
691
691
|
),
|
|
692
692
|
joinDatasources: (t = B.widget.config.joinDatasources) == null ? void 0 : t.map((a) => {
|
|
693
|
-
const { rowIds: U, columnIds:
|
|
693
|
+
const { rowIds: U, columnIds: C } = Ge(a);
|
|
694
694
|
return {
|
|
695
695
|
...a,
|
|
696
696
|
rowIds: U,
|
|
697
|
-
columnIds:
|
|
697
|
+
columnIds: C
|
|
698
698
|
};
|
|
699
699
|
})
|
|
700
700
|
}
|
|
@@ -702,13 +702,13 @@ function ct(B) {
|
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
704
|
function Ge(B) {
|
|
705
|
-
const p = B.dimensions.filter((
|
|
706
|
-
t && B.metrics.find((
|
|
705
|
+
const p = B.dimensions.filter((C) => C.hide !== !0 && !C.moveToColumn).map((C) => Ce(C)), e = B.dimensions.filter((C) => C.hide !== !0 && C.moveToColumn == !0).map((C) => Ce(C)), t = B.metrics.length > 0;
|
|
706
|
+
t && B.metrics.find((C) => C.moveToRow == !0) ? p.push(al.value) : t && e.push(al.value);
|
|
707
707
|
const a = [], U = [];
|
|
708
|
-
for (const
|
|
709
|
-
a.push(
|
|
710
|
-
for (const
|
|
711
|
-
U.push(
|
|
708
|
+
for (const C of p)
|
|
709
|
+
a.push(C);
|
|
710
|
+
for (const C of e)
|
|
711
|
+
U.push(C);
|
|
712
712
|
return {
|
|
713
713
|
rowIds: a,
|
|
714
714
|
columnIds: U
|
|
@@ -750,110 +750,110 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
750
750
|
setup(B, { emit: p }) {
|
|
751
751
|
const { t: e, te: t } = ge(), a = ye(B, "modelValue"), U = B;
|
|
752
752
|
k(() => !!U.max && a.value.length === U.max);
|
|
753
|
-
const
|
|
754
|
-
() => a.value.map((
|
|
755
|
-
index:
|
|
756
|
-
labels: [
|
|
757
|
-
value:
|
|
753
|
+
const C = k(() => e(`report.section.metric.${U.label}`)), c = le(!1), T = k(
|
|
754
|
+
() => a.value.map((g, F) => ({
|
|
755
|
+
index: F,
|
|
756
|
+
labels: [g.label || g.name],
|
|
757
|
+
value: g
|
|
758
758
|
}))
|
|
759
759
|
), L = le(a.value.length > 0 ? 0 : void 0);
|
|
760
|
-
function o(
|
|
761
|
-
var
|
|
762
|
-
c.value = !0, r.value =
|
|
760
|
+
function o(g) {
|
|
761
|
+
var F, u, $;
|
|
762
|
+
c.value = !0, r.value = g != null && g.value ? JSON.parse(
|
|
763
763
|
JSON.stringify({
|
|
764
|
-
...
|
|
765
|
-
label: re(e, t,
|
|
764
|
+
...g.value,
|
|
765
|
+
label: re(e, t, g.value.label, "other")
|
|
766
766
|
})
|
|
767
|
-
) : void 0, L.value =
|
|
767
|
+
) : void 0, L.value = g == null ? void 0 : g.index, i.value = !!((F = r.value) != null && F.dataFormula || (u = r.value) != null && u.displayFormula), r.value && r.value.formatter === void 0 && g != null && g.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = g == null ? void 0 : g.value.timeFormatter, r.value.timeFormatter = void 0), (($ = U.config.rowIds) == null ? void 0 : $.findIndex((I) => I === al.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!U.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
|
|
768
768
|
}
|
|
769
769
|
const r = le(void 0), i = le(!1), x = k(
|
|
770
770
|
() => U.options.find(
|
|
771
|
-
(
|
|
772
|
-
var
|
|
773
|
-
return
|
|
771
|
+
(g) => {
|
|
772
|
+
var F, u;
|
|
773
|
+
return g.schemaName === ((F = r.value) == null ? void 0 : F.schemaName) && g.name === ((u = r.value) == null ? void 0 : u.name);
|
|
774
774
|
}
|
|
775
775
|
) ?? {}
|
|
776
776
|
);
|
|
777
|
-
function A(
|
|
777
|
+
function A(g, F) {
|
|
778
778
|
var u;
|
|
779
|
-
return (
|
|
779
|
+
return (g == null ? void 0 : g.isNumericType) || ((u = g == null ? void 0 : g.isNumericAggregations) == null ? void 0 : u.includes(F || ""));
|
|
780
780
|
}
|
|
781
781
|
const n = k(
|
|
782
782
|
() => {
|
|
783
|
-
var
|
|
784
|
-
return A(x.value, (
|
|
783
|
+
var g;
|
|
784
|
+
return A(x.value, (g = r.value) == null ? void 0 : g.aggregation);
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
|
-
Ve(n, (
|
|
788
|
-
r.value && (
|
|
787
|
+
Ve(n, (g) => {
|
|
788
|
+
r.value && (g ? r.value.decimal = typeof r.value.decimal != "number" ? 2 : r.value.decimal : r.value.decimal = void 0);
|
|
789
789
|
});
|
|
790
|
-
function v(
|
|
791
|
-
var
|
|
792
|
-
(
|
|
793
|
-
schemaName:
|
|
794
|
-
name:
|
|
795
|
-
aggregation:
|
|
796
|
-
label: re(e, t,
|
|
790
|
+
function v(g) {
|
|
791
|
+
var F, u;
|
|
792
|
+
(g.schemaName !== ((F = r.value) == null ? void 0 : F.schemaName) || g.name !== ((u = r.value) == null ? void 0 : u.name)) && (r.value = {
|
|
793
|
+
schemaName: g.schemaName,
|
|
794
|
+
name: g.name,
|
|
795
|
+
aggregation: g.aggregations[0],
|
|
796
|
+
label: re(e, t, g.label, "other"),
|
|
797
797
|
nullable: !1,
|
|
798
|
-
decimal: A(
|
|
798
|
+
decimal: A(g, g.aggregations[0]) ? 2 : void 0,
|
|
799
799
|
moveToRow: !1,
|
|
800
800
|
hide: !1
|
|
801
801
|
}, i.value = !1);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
const
|
|
805
|
-
r.value && (i.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), U.hasXy || (r.value.nullable = !1), L.value !== void 0 ?
|
|
803
|
+
function z() {
|
|
804
|
+
const g = [...T.value.map((F) => F.value)];
|
|
805
|
+
r.value && (i.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), U.hasXy || (r.value.nullable = !1), L.value !== void 0 ? g[L.value] = r.value : g.push(r.value)), a.value = g, c.value = !1;
|
|
806
806
|
}
|
|
807
|
-
function P(
|
|
808
|
-
const
|
|
809
|
-
|
|
807
|
+
function P(g) {
|
|
808
|
+
const F = [...T.value.map((u) => u.value)];
|
|
809
|
+
F.splice(g, 1), a.value = F;
|
|
810
810
|
}
|
|
811
|
-
const
|
|
812
|
-
() => U.options.map((
|
|
813
|
-
label:
|
|
814
|
-
value:
|
|
811
|
+
const y = k(
|
|
812
|
+
() => U.options.map((g) => ({
|
|
813
|
+
label: g.labels.join(" "),
|
|
814
|
+
value: g
|
|
815
815
|
}))
|
|
816
816
|
);
|
|
817
|
-
function s(
|
|
818
|
-
return [
|
|
817
|
+
function s(g) {
|
|
818
|
+
return [g.schemaName, g.name, re(e, t, g.label, "other")].join(" ");
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
return [
|
|
820
|
+
function O(g) {
|
|
821
|
+
return [g.schemaName, g.name, g.aggregation, g.label || ""].join("__");
|
|
822
822
|
}
|
|
823
823
|
const N = k(() => {
|
|
824
824
|
var u;
|
|
825
|
-
const
|
|
825
|
+
const g = /* @__PURE__ */ new Map(), F = r.value ? O(r.value) : "";
|
|
826
826
|
for (const $ of ((u = U.config) == null ? void 0 : u.metrics) ?? [])
|
|
827
|
-
|
|
828
|
-
return r.value &&
|
|
829
|
-
}), { formulaFieldDataList:
|
|
827
|
+
F && O($) === F || g.set(Ce($), $);
|
|
828
|
+
return r.value && g.set(Ce(r.value), r.value), Array.from(g.values());
|
|
829
|
+
}), { formulaFieldDataList: b, allowedFormulaFields: V } = Tl({
|
|
830
830
|
options: k(() => U.options),
|
|
831
831
|
primaryFields: k(() => {
|
|
832
|
-
var
|
|
833
|
-
return ((
|
|
832
|
+
var g;
|
|
833
|
+
return ((g = U.config) == null ? void 0 : g.dimensions) ?? [];
|
|
834
834
|
}),
|
|
835
835
|
secondaryFields: N,
|
|
836
836
|
getLabel: s
|
|
837
|
-
}), { dataValidation: d, displayValidation: _, isDataValidating: K, isDisplayValidating:
|
|
837
|
+
}), { dataValidation: d, displayValidation: _, isDataValidating: K, isDisplayValidating: j } = il({
|
|
838
838
|
getDataFormula: () => {
|
|
839
|
-
var
|
|
840
|
-
return (
|
|
839
|
+
var g;
|
|
840
|
+
return (g = r.value) == null ? void 0 : g.dataFormula;
|
|
841
841
|
},
|
|
842
842
|
getDisplayFormula: () => {
|
|
843
|
-
var
|
|
844
|
-
return (
|
|
843
|
+
var g;
|
|
844
|
+
return (g = r.value) == null ? void 0 : g.displayFormula;
|
|
845
845
|
},
|
|
846
846
|
getIsAdvance: () => i.value,
|
|
847
|
-
getAllowedFields: () =>
|
|
847
|
+
getAllowedFields: () => V.value
|
|
848
848
|
});
|
|
849
|
-
return (
|
|
850
|
-
const u = M("FmTextField"), $ = M("FmStepperField"),
|
|
851
|
-
return
|
|
849
|
+
return (g, F) => {
|
|
850
|
+
const u = M("FmTextField"), $ = M("FmStepperField"), I = M("FmCheckbox"), ae = M("FmForm"), se = M("FmIcon"), ce = M("FmButton"), pe = M("FmListItem"), De = M("FmList"), oe = M("FmField");
|
|
851
|
+
return f(), X("div", pt, [
|
|
852
852
|
m(Re, {
|
|
853
853
|
modelValue: c.value,
|
|
854
|
-
"onUpdate:modelValue":
|
|
855
|
-
title:
|
|
856
|
-
onConfirm:
|
|
854
|
+
"onUpdate:modelValue": F[11] || (F[11] = (xe) => c.value = xe),
|
|
855
|
+
title: C.value,
|
|
856
|
+
onConfirm: z
|
|
857
857
|
}, {
|
|
858
858
|
content: Q(() => [
|
|
859
859
|
m(ae, {
|
|
@@ -865,39 +865,39 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
865
865
|
return [
|
|
866
866
|
m(be, {
|
|
867
867
|
"model-value": x.value,
|
|
868
|
-
items:
|
|
869
|
-
placeholder:
|
|
870
|
-
label:
|
|
871
|
-
"onUpdate:modelValue":
|
|
868
|
+
items: y.value,
|
|
869
|
+
placeholder: C.value,
|
|
870
|
+
label: C.value,
|
|
871
|
+
"onUpdate:modelValue": F[0] || (F[0] = (ee) => v(ee))
|
|
872
872
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
873
|
-
r.value ? (
|
|
873
|
+
r.value ? (f(), X(de, { key: 0 }, [
|
|
874
874
|
m(u, {
|
|
875
875
|
modelValue: r.value.label,
|
|
876
|
-
"onUpdate:modelValue":
|
|
876
|
+
"onUpdate:modelValue": F[1] || (F[1] = (ee) => r.value.label = ee),
|
|
877
877
|
label: l(e)("report.section.metric.label")
|
|
878
878
|
}, null, 8, ["modelValue", "label"]),
|
|
879
|
-
(((xe = x.value) == null ? void 0 : xe.aggregations) || []).length > 0 ? (
|
|
879
|
+
(((xe = x.value) == null ? void 0 : xe.aggregations) || []).length > 0 ? (f(), R(be, {
|
|
880
880
|
key: 0,
|
|
881
881
|
modelValue: r.value.aggregation,
|
|
882
|
-
"onUpdate:modelValue":
|
|
882
|
+
"onUpdate:modelValue": F[2] || (F[2] = (ee) => r.value.aggregation = ee),
|
|
883
883
|
label: l(e)("report.section.metric.aggregation"),
|
|
884
884
|
items: ((Se = x.value) == null ? void 0 : Se.aggregations.map((ee) => ({
|
|
885
885
|
label: l(t)(`report.section.metric.aggregationType.${ee}`) ? l(e)(`report.section.metric.aggregationType.${ee}`) : l(re)(l(e), l(t), ee, "field"),
|
|
886
886
|
value: ee
|
|
887
887
|
}))) ?? []
|
|
888
888
|
}, null, 8, ["modelValue", "label", "items"])) : E("", !0),
|
|
889
|
-
n.value ? (
|
|
889
|
+
n.value ? (f(), R($, {
|
|
890
890
|
key: 1,
|
|
891
891
|
label: l(e)("report.common.decimal"),
|
|
892
892
|
"model-value": ((he = r.value) == null ? void 0 : he.decimal) ?? 2,
|
|
893
|
-
"onUpdate:modelValue":
|
|
893
|
+
"onUpdate:modelValue": F[3] || (F[3] = (ee) => {
|
|
894
894
|
r.value && (r.value.decimal = ee);
|
|
895
895
|
})
|
|
896
896
|
}, null, 8, ["label", "model-value"])) : E("", !0),
|
|
897
|
-
n.value ? (
|
|
897
|
+
n.value ? (f(), R(be, {
|
|
898
898
|
key: 2,
|
|
899
899
|
modelValue: r.value.formatter,
|
|
900
|
-
"onUpdate:modelValue":
|
|
900
|
+
"onUpdate:modelValue": F[4] || (F[4] = (ee) => r.value.formatter = ee),
|
|
901
901
|
placeholder: l(e)("report.section.metric.formatter"),
|
|
902
902
|
label: l(e)("report.section.metric.formatter"),
|
|
903
903
|
items: [
|
|
@@ -908,56 +908,56 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
908
908
|
}))
|
|
909
909
|
]
|
|
910
910
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : E("", !0),
|
|
911
|
-
m(
|
|
911
|
+
m(I, {
|
|
912
912
|
modelValue: r.value.hide,
|
|
913
|
-
"onUpdate:modelValue":
|
|
913
|
+
"onUpdate:modelValue": F[5] || (F[5] = (ee) => r.value.hide = ee),
|
|
914
914
|
label: l(e)("report.section.metric.hide"),
|
|
915
915
|
value: ""
|
|
916
916
|
}, null, 8, ["modelValue", "label"]),
|
|
917
|
-
U.hasXy ? (
|
|
917
|
+
U.hasXy ? (f(), R(I, {
|
|
918
918
|
key: 3,
|
|
919
919
|
"model-value": r.value.nullable ?? !1,
|
|
920
920
|
label: l(e)("report.section.metric.nullable"),
|
|
921
921
|
value: !0,
|
|
922
|
-
"onUpdate:modelValue":
|
|
922
|
+
"onUpdate:modelValue": F[6] || (F[6] = (ee) => {
|
|
923
923
|
r.value && (r.value.nullable = ee);
|
|
924
924
|
})
|
|
925
925
|
}, null, 8, ["model-value", "label"])) : E("", !0),
|
|
926
|
-
U.hasRowColumn ? (
|
|
926
|
+
U.hasRowColumn ? (f(), R(I, {
|
|
927
927
|
key: 4,
|
|
928
928
|
"model-value": r.value.moveToRow ?? !1,
|
|
929
929
|
label: l(e)("report.section.metric.moveToRow"),
|
|
930
930
|
value: "",
|
|
931
|
-
"onUpdate:modelValue":
|
|
931
|
+
"onUpdate:modelValue": F[7] || (F[7] = (ee) => {
|
|
932
932
|
r.value && (r.value.moveToRow = Array.isArray(ee) ? ee.length > 0 : ee);
|
|
933
933
|
})
|
|
934
934
|
}, null, 8, ["model-value", "label"])) : E("", !0),
|
|
935
|
-
m(
|
|
935
|
+
m(I, {
|
|
936
936
|
modelValue: i.value,
|
|
937
|
-
"onUpdate:modelValue":
|
|
937
|
+
"onUpdate:modelValue": F[8] || (F[8] = (ee) => i.value = ee),
|
|
938
938
|
label: l(e)("report.section.metric.advance"),
|
|
939
939
|
value: !0
|
|
940
940
|
}, null, 8, ["modelValue", "label"]),
|
|
941
|
-
i.value ? (
|
|
941
|
+
i.value ? (f(), R(ze, {
|
|
942
942
|
key: 5,
|
|
943
943
|
modelValue: r.value.dataFormula,
|
|
944
|
-
"onUpdate:modelValue":
|
|
944
|
+
"onUpdate:modelValue": F[9] || (F[9] = (ee) => r.value.dataFormula = ee),
|
|
945
945
|
placeholder: l(e)("report.section.metric.dataFormula"),
|
|
946
|
-
"field-data-list": l(
|
|
947
|
-
"formula-field": l(
|
|
946
|
+
"field-data-list": l(b),
|
|
947
|
+
"formula-field": l(je).Metric,
|
|
948
948
|
"validation-result": l(d),
|
|
949
949
|
"is-validating": l(K),
|
|
950
950
|
"valid-formula-label": l(e)("report.common.validFormula")
|
|
951
951
|
}, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0),
|
|
952
|
-
i.value ? (
|
|
952
|
+
i.value ? (f(), R(ze, {
|
|
953
953
|
key: 6,
|
|
954
954
|
modelValue: r.value.displayFormula,
|
|
955
|
-
"onUpdate:modelValue":
|
|
955
|
+
"onUpdate:modelValue": F[10] || (F[10] = (ee) => r.value.displayFormula = ee),
|
|
956
956
|
placeholder: l(e)("report.section.metric.displayFormula"),
|
|
957
|
-
"field-data-list": l(
|
|
958
|
-
"formula-field": l(
|
|
957
|
+
"field-data-list": l(b),
|
|
958
|
+
"formula-field": l(je).Metric,
|
|
959
959
|
"validation-result": l(_),
|
|
960
|
-
"is-validating": l(
|
|
960
|
+
"is-validating": l(j),
|
|
961
961
|
"valid-formula-label": l(e)("report.common.validFormula")
|
|
962
962
|
}, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0)
|
|
963
963
|
], 64)) : E("", !0)
|
|
@@ -969,7 +969,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
969
969
|
_: 1
|
|
970
970
|
}, 8, ["modelValue", "title"]),
|
|
971
971
|
h("div", null, [
|
|
972
|
-
h("p", vt, J(
|
|
972
|
+
h("p", vt, J(C.value), 1),
|
|
973
973
|
h("p", ft, J(l(e)("report.section.metric.description")), 1)
|
|
974
974
|
]),
|
|
975
975
|
m(De, null, {
|
|
@@ -982,17 +982,17 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
982
982
|
item: Q(({ element: xe, index: Se }) => [
|
|
983
983
|
m(pe, {
|
|
984
984
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
985
|
-
onClick:
|
|
985
|
+
onClick: we((he) => o(T.value[Se]), ["stop"])
|
|
986
986
|
}, {
|
|
987
987
|
default: Q(() => [
|
|
988
988
|
m(se, { name: "drag_handle" }),
|
|
989
989
|
h("p", gt, J(l(re)(l(e), l(t), xe.label, "other")), 1),
|
|
990
|
-
|
|
990
|
+
F[13] || (F[13] = h("div", { class: "grow" }, null, -1)),
|
|
991
991
|
m(ce, {
|
|
992
992
|
icon: "close",
|
|
993
993
|
size: "md",
|
|
994
994
|
variant: "tertiary",
|
|
995
|
-
onClick:
|
|
995
|
+
onClick: we((he) => P(Se), ["stop"])
|
|
996
996
|
}, null, 8, ["onClick"])
|
|
997
997
|
]),
|
|
998
998
|
_: 2
|
|
@@ -1005,19 +1005,19 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1005
1005
|
}),
|
|
1006
1006
|
m(oe, {
|
|
1007
1007
|
class: "text-fm-color-typo-tertiary",
|
|
1008
|
-
onClick:
|
|
1008
|
+
onClick: F[12] || (F[12] = () => {
|
|
1009
1009
|
o();
|
|
1010
1010
|
})
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: Q(() => [
|
|
1013
|
-
|
|
1013
|
+
Ie(J(l(e)("report.section.metric.add")), 1)
|
|
1014
1014
|
]),
|
|
1015
1015
|
_: 1
|
|
1016
1016
|
})
|
|
1017
1017
|
]);
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
}), bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body-lg-600" },
|
|
1020
|
+
}), bt = { class: "flex flex-col my-2 gap-8" }, ht = { class: "fm-typo-en-body-lg-600" }, Ct = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, wt = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, xt = /* @__PURE__ */ ue({
|
|
1021
1021
|
__name: "SortSection",
|
|
1022
1022
|
props: /* @__PURE__ */ ve({
|
|
1023
1023
|
options: {
|
|
@@ -1034,21 +1034,21 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1034
1034
|
}),
|
|
1035
1035
|
emits: ["update:modelValue"],
|
|
1036
1036
|
setup(B) {
|
|
1037
|
-
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.sort.${a.label}`)),
|
|
1037
|
+
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.sort.${a.label}`)), C = le(!1), c = k(
|
|
1038
1038
|
() => t.value.map((d, _) => {
|
|
1039
1039
|
const K = a.options.find(
|
|
1040
|
-
(
|
|
1041
|
-
),
|
|
1040
|
+
(g) => g.schemaName === d.schemaName && g.name === d.name
|
|
1041
|
+
), j = (K == null ? void 0 : K.labels) || [d.schemaName, d.name];
|
|
1042
1042
|
return {
|
|
1043
1043
|
index: _,
|
|
1044
|
-
label:
|
|
1044
|
+
label: j.map((g) => re(p, e, g, "other")).join(" "),
|
|
1045
1045
|
value: d
|
|
1046
1046
|
};
|
|
1047
1047
|
})
|
|
1048
1048
|
), T = le(t.value.length > 0 ? 0 : void 0);
|
|
1049
1049
|
function L(d) {
|
|
1050
1050
|
var _;
|
|
1051
|
-
|
|
1051
|
+
C.value = !0, o.value = d != null && d.value ? JSON.parse(JSON.stringify(d.value)) : void 0, T.value = d == null ? void 0 : d.index, r.value = !!((_ = o.value) != null && _.dataFormula);
|
|
1052
1052
|
}
|
|
1053
1053
|
const o = le(void 0), r = le(!1), i = k(
|
|
1054
1054
|
() => a.options.find(
|
|
@@ -1074,17 +1074,17 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1074
1074
|
return;
|
|
1075
1075
|
}
|
|
1076
1076
|
const d = [...c.value.map((_) => _.value)];
|
|
1077
|
-
r.value || (o.value.dataFormula = void 0), T.value !== void 0 ? d[T.value] = o.value : d.push(o.value), t.value = d,
|
|
1077
|
+
r.value || (o.value.dataFormula = void 0), T.value !== void 0 ? d[T.value] = o.value : d.push(o.value), t.value = d, C.value = !1;
|
|
1078
1078
|
}
|
|
1079
1079
|
function n(d) {
|
|
1080
1080
|
const _ = [...c.value.map((K) => K.value)];
|
|
1081
|
-
_.splice(d, 1), t.value = _,
|
|
1081
|
+
_.splice(d, 1), t.value = _, C.value = !1;
|
|
1082
1082
|
}
|
|
1083
1083
|
function v(d) {
|
|
1084
1084
|
const _ = `report.section.filter.${Ne(d)}`;
|
|
1085
1085
|
return e(_) ? p(_) : re(p, e, d, "field");
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1087
|
+
const z = k(
|
|
1088
1088
|
() => a.options.map((d) => ({
|
|
1089
1089
|
label: d.labels.join(" "),
|
|
1090
1090
|
value: d
|
|
@@ -1093,7 +1093,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1093
1093
|
function P(d) {
|
|
1094
1094
|
return `${d.schemaName}_${d.name}`.toLowerCase();
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function y(d) {
|
|
1097
1097
|
return [d.schemaName, d.name, re(p, e, d.label, "other")].join(" ");
|
|
1098
1098
|
}
|
|
1099
1099
|
const s = k(
|
|
@@ -1101,12 +1101,12 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1101
1101
|
var d;
|
|
1102
1102
|
return !o.value || !((d = i.value) != null && d.name) ? [] : [
|
|
1103
1103
|
{
|
|
1104
|
-
label: `@self (${
|
|
1104
|
+
label: `@self (${y(i.value)})`,
|
|
1105
1105
|
value: "@self"
|
|
1106
1106
|
}
|
|
1107
1107
|
];
|
|
1108
1108
|
}
|
|
1109
|
-
),
|
|
1109
|
+
), O = k(
|
|
1110
1110
|
() => {
|
|
1111
1111
|
var d, _;
|
|
1112
1112
|
return !((d = i.value) != null && d.name) || !((_ = i.value) != null && _.type) ? [] : [
|
|
@@ -1122,7 +1122,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1122
1122
|
const _ = (K = i.value) != null && K.name ? P(i.value) : void 0;
|
|
1123
1123
|
return _ ? d == null ? void 0 : d.replace(/@self/g, _) : d;
|
|
1124
1124
|
}
|
|
1125
|
-
const { dataValidation:
|
|
1125
|
+
const { dataValidation: b, isDataValidating: V } = il({
|
|
1126
1126
|
getDataFormula: () => {
|
|
1127
1127
|
var d;
|
|
1128
1128
|
return N((d = o.value) == null ? void 0 : d.dataFormula);
|
|
@@ -1130,19 +1130,19 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1130
1130
|
getDisplayFormula: () => {
|
|
1131
1131
|
},
|
|
1132
1132
|
getIsAdvance: () => r.value,
|
|
1133
|
-
getAllowedFields: () =>
|
|
1133
|
+
getAllowedFields: () => O.value
|
|
1134
1134
|
});
|
|
1135
1135
|
return (d, _) => {
|
|
1136
|
-
const K = M("FmCheckbox"),
|
|
1137
|
-
return
|
|
1136
|
+
const K = M("FmCheckbox"), j = M("FmForm"), g = M("FmIcon"), F = M("FmButton"), u = M("FmListItem"), $ = M("FmList"), I = M("FmField");
|
|
1137
|
+
return f(), X("div", bt, [
|
|
1138
1138
|
m(Re, {
|
|
1139
|
-
modelValue:
|
|
1140
|
-
"onUpdate:modelValue": _[6] || (_[6] = (ae) =>
|
|
1139
|
+
modelValue: C.value,
|
|
1140
|
+
"onUpdate:modelValue": _[6] || (_[6] = (ae) => C.value = ae),
|
|
1141
1141
|
title: U.value,
|
|
1142
1142
|
onConfirm: A
|
|
1143
1143
|
}, {
|
|
1144
1144
|
content: Q(() => [
|
|
1145
|
-
m(
|
|
1145
|
+
m(j, {
|
|
1146
1146
|
ref: "form",
|
|
1147
1147
|
class: "flex flex-col gap-2 w-[490px]"
|
|
1148
1148
|
}, {
|
|
@@ -1151,13 +1151,13 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1151
1151
|
return [
|
|
1152
1152
|
m(be, {
|
|
1153
1153
|
"model-value": i.value,
|
|
1154
|
-
items:
|
|
1154
|
+
items: z.value,
|
|
1155
1155
|
placeholder: U.value,
|
|
1156
1156
|
label: U.value,
|
|
1157
1157
|
"onUpdate:modelValue": _[0] || (_[0] = (oe) => x(oe))
|
|
1158
1158
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
1159
|
-
o.value ? (
|
|
1160
|
-
(((ae = i.value) == null ? void 0 : ae.dimensionOptions) || []).length > 0 ? (
|
|
1159
|
+
o.value ? (f(), X(de, { key: 0 }, [
|
|
1160
|
+
(((ae = i.value) == null ? void 0 : ae.dimensionOptions) || []).length > 0 ? (f(), R(be, {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
modelValue: o.value.dimensionOption,
|
|
1163
1163
|
"onUpdate:modelValue": _[1] || (_[1] = (oe) => o.value.dimensionOption = oe),
|
|
@@ -1168,7 +1168,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1168
1168
|
placeholder: l(p)("report.section.sort.format"),
|
|
1169
1169
|
label: l(p)("report.section.sort.format")
|
|
1170
1170
|
}, null, 8, ["modelValue", "items", "placeholder", "label"])) : E("", !0),
|
|
1171
|
-
(((ce = i.value) == null ? void 0 : ce.aggregations) || []).length > 0 ? (
|
|
1171
|
+
(((ce = i.value) == null ? void 0 : ce.aggregations) || []).length > 0 ? (f(), R(be, {
|
|
1172
1172
|
key: 1,
|
|
1173
1173
|
modelValue: o.value.aggregation,
|
|
1174
1174
|
"onUpdate:modelValue": _[2] || (_[2] = (oe) => o.value.aggregation = oe),
|
|
@@ -1195,15 +1195,15 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1195
1195
|
label: l(p)("report.section.sort.advance"),
|
|
1196
1196
|
value: !0
|
|
1197
1197
|
}, null, 8, ["modelValue", "label"]),
|
|
1198
|
-
r.value ? (
|
|
1198
|
+
r.value ? (f(), R(ze, {
|
|
1199
1199
|
key: 2,
|
|
1200
1200
|
modelValue: o.value.dataFormula,
|
|
1201
1201
|
"onUpdate:modelValue": _[5] || (_[5] = (oe) => o.value.dataFormula = oe),
|
|
1202
1202
|
placeholder: l(p)("report.section.sort.dataFormula"),
|
|
1203
1203
|
"field-data-list": s.value,
|
|
1204
|
-
"formula-field": ((De = i.value) == null ? void 0 : De.type) === "NUMERIC" ? l(
|
|
1205
|
-
"validation-result": l(
|
|
1206
|
-
"is-validating": l(
|
|
1204
|
+
"formula-field": ((De = i.value) == null ? void 0 : De.type) === "NUMERIC" ? l(je).Metric : l(je).Dimension,
|
|
1205
|
+
"validation-result": l(b),
|
|
1206
|
+
"is-validating": l(V),
|
|
1207
1207
|
"valid-formula-label": l(p)("report.common.validFormula")
|
|
1208
1208
|
}, null, 8, ["modelValue", "placeholder", "field-data-list", "formula-field", "validation-result", "is-validating", "valid-formula-label"])) : E("", !0)
|
|
1209
1209
|
], 64)) : E("", !0)
|
|
@@ -1216,7 +1216,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1216
1216
|
}, 8, ["modelValue", "title"]),
|
|
1217
1217
|
h("div", null, [
|
|
1218
1218
|
h("p", ht, J(U.value), 1),
|
|
1219
|
-
h("p",
|
|
1219
|
+
h("p", Ct, J(l(p)("report.section.sort.description")), 1)
|
|
1220
1220
|
]),
|
|
1221
1221
|
m($, null, {
|
|
1222
1222
|
default: Q(() => [
|
|
@@ -1228,17 +1228,17 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1228
1228
|
item: Q(({ element: ae, index: se }) => [
|
|
1229
1229
|
m(u, {
|
|
1230
1230
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1231
|
-
onClick:
|
|
1231
|
+
onClick: we((ce) => L(c.value[se]), ["stop"])
|
|
1232
1232
|
}, {
|
|
1233
1233
|
default: Q(() => [
|
|
1234
|
-
m(
|
|
1235
|
-
h("p",
|
|
1234
|
+
m(g, { name: "drag_handle" }),
|
|
1235
|
+
h("p", wt, J(c.value[se].label), 1),
|
|
1236
1236
|
_[8] || (_[8] = h("div", { class: "grow" }, null, -1)),
|
|
1237
|
-
m(
|
|
1237
|
+
m(F, {
|
|
1238
1238
|
icon: "close",
|
|
1239
1239
|
size: "md",
|
|
1240
1240
|
variant: "tertiary",
|
|
1241
|
-
onClick:
|
|
1241
|
+
onClick: we((ce) => n(se), ["stop"])
|
|
1242
1242
|
}, null, 8, ["onClick"])
|
|
1243
1243
|
]),
|
|
1244
1244
|
_: 2
|
|
@@ -1249,14 +1249,14 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1249
1249
|
]),
|
|
1250
1250
|
_: 1
|
|
1251
1251
|
}),
|
|
1252
|
-
m(
|
|
1252
|
+
m(I, {
|
|
1253
1253
|
class: "text-fm-color-typo-tertiary",
|
|
1254
1254
|
onClick: _[7] || (_[7] = () => {
|
|
1255
1255
|
L();
|
|
1256
1256
|
})
|
|
1257
1257
|
}, {
|
|
1258
1258
|
default: Q(() => [
|
|
1259
|
-
|
|
1259
|
+
Ie(J(l(p)("report.section.sort.add")), 1)
|
|
1260
1260
|
]),
|
|
1261
1261
|
_: 1
|
|
1262
1262
|
})
|
|
@@ -1275,13 +1275,13 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1275
1275
|
a !== "" ? e.value = a : e.value = null;
|
|
1276
1276
|
}, 1e3);
|
|
1277
1277
|
return (a, U) => {
|
|
1278
|
-
const
|
|
1279
|
-
return
|
|
1278
|
+
const C = M("FmTextField");
|
|
1279
|
+
return f(), X(de, null, [
|
|
1280
1280
|
h("div", null, [
|
|
1281
1281
|
h("p", Ft, J(l(p)("report.section.limit.title")), 1),
|
|
1282
1282
|
h("p", Vt, J(l(p)("report.section.limit.description")), 1)
|
|
1283
1283
|
]),
|
|
1284
|
-
m(
|
|
1284
|
+
m(C, {
|
|
1285
1285
|
"model-value": e.value,
|
|
1286
1286
|
inputmode: "numeric",
|
|
1287
1287
|
placeholder: l(p)("report.section.limit.placeholder"),
|
|
@@ -1311,73 +1311,73 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1311
1311
|
}),
|
|
1312
1312
|
emits: ["update:modelValue"],
|
|
1313
1313
|
setup(B) {
|
|
1314
|
-
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.condition.${a.label}`)),
|
|
1315
|
-
() => t.value.map((
|
|
1316
|
-
var
|
|
1317
|
-
const
|
|
1314
|
+
const { t: p, te: e } = ge(), t = ye(B, "modelValue"), a = B, U = k(() => p(`report.section.condition.${a.label}`)), C = le(!1), c = k(
|
|
1315
|
+
() => t.value.map((y, s) => {
|
|
1316
|
+
var b, V;
|
|
1317
|
+
const O = a.joinFieldOptions.find(
|
|
1318
1318
|
(d) => {
|
|
1319
1319
|
var _, K;
|
|
1320
|
-
return d.schemaName === ((_ =
|
|
1320
|
+
return d.schemaName === ((_ = y.joinDimension) == null ? void 0 : _.schemaName) && d.name === ((K = y.joinDimension) == null ? void 0 : K.name);
|
|
1321
1321
|
}
|
|
1322
|
-
), N = (
|
|
1323
|
-
(
|
|
1324
|
-
(
|
|
1322
|
+
), N = (O == null ? void 0 : O.labels) || [
|
|
1323
|
+
(b = y.joinDimension) == null ? void 0 : b.schemaName,
|
|
1324
|
+
(V = y.joinDimension) == null ? void 0 : V.name
|
|
1325
1325
|
];
|
|
1326
1326
|
return {
|
|
1327
1327
|
index: s,
|
|
1328
1328
|
label: N.map((d) => re(p, e, d, "other")).join(" "),
|
|
1329
|
-
value:
|
|
1329
|
+
value: y
|
|
1330
1330
|
};
|
|
1331
1331
|
})
|
|
1332
1332
|
), T = le(t.value.length > 0 ? 0 : void 0);
|
|
1333
|
-
function L(
|
|
1334
|
-
|
|
1333
|
+
function L(y) {
|
|
1334
|
+
y ? (o.value = y != null && y.value ? JSON.parse(JSON.stringify(y.value)) : void 0, T.value = y == null ? void 0 : y.index) : (o.value = {
|
|
1335
1335
|
joinDimension: null,
|
|
1336
1336
|
operator: "",
|
|
1337
1337
|
mainDimensions: []
|
|
1338
|
-
}, T.value = void 0),
|
|
1338
|
+
}, T.value = void 0), C.value = !0;
|
|
1339
1339
|
}
|
|
1340
1340
|
const o = le(void 0), r = k(
|
|
1341
1341
|
() => a.joinFieldOptions.find(
|
|
1342
|
-
(
|
|
1343
|
-
var s,
|
|
1344
|
-
return
|
|
1342
|
+
(y) => {
|
|
1343
|
+
var s, O;
|
|
1344
|
+
return y.schemaName === ((O = (s = o.value) == null ? void 0 : s.joinDimension) == null ? void 0 : O.schemaName) && y.name === o.value.joinDimension.name;
|
|
1345
1345
|
}
|
|
1346
1346
|
) ?? {}
|
|
1347
1347
|
), i = k(
|
|
1348
1348
|
() => {
|
|
1349
|
-
var
|
|
1350
|
-
return (((
|
|
1349
|
+
var y;
|
|
1350
|
+
return (((y = o.value) == null ? void 0 : y.mainDimensions) || []).map(
|
|
1351
1351
|
(s) => a.mainFieldOptions.find(
|
|
1352
|
-
(
|
|
1352
|
+
(O) => O.schemaName === (s == null ? void 0 : s.schemaName) && O.name === s.name
|
|
1353
1353
|
) ?? {}
|
|
1354
1354
|
);
|
|
1355
1355
|
}
|
|
1356
1356
|
), x = k(
|
|
1357
|
-
() => a.joinFieldOptions.map((
|
|
1357
|
+
() => a.joinFieldOptions.map((y) => ({ label: y.labels.join(" "), value: y }))
|
|
1358
1358
|
);
|
|
1359
|
-
function A(
|
|
1360
|
-
var s,
|
|
1361
|
-
o.value && (o.value &&
|
|
1359
|
+
function A(y) {
|
|
1360
|
+
var s, O, N, b;
|
|
1361
|
+
o.value && (o.value && y.schemaName !== ((O = (s = o.value) == null ? void 0 : s.joinDimension) == null ? void 0 : O.schemaName) || y.name !== ((b = (N = o.value) == null ? void 0 : N.joinDimension) == null ? void 0 : b.name)) && (o.value = {
|
|
1362
1362
|
...o.value,
|
|
1363
1363
|
joinDimension: {
|
|
1364
|
-
schemaName:
|
|
1365
|
-
name:
|
|
1366
|
-
option:
|
|
1367
|
-
label: `_${
|
|
1364
|
+
schemaName: y.schemaName,
|
|
1365
|
+
name: y.name,
|
|
1366
|
+
option: y.dimensionOptions[0],
|
|
1367
|
+
label: `_${y.label}`,
|
|
1368
1368
|
hide: !0
|
|
1369
1369
|
}
|
|
1370
|
-
},
|
|
1370
|
+
}, y.joinConditionOperators.includes(o.value.operator) || v(y.joinConditionOperators[0]));
|
|
1371
1371
|
}
|
|
1372
|
-
function n(
|
|
1373
|
-
var
|
|
1374
|
-
if (o.value && s >= 0 && (o.value &&
|
|
1372
|
+
function n(y, s) {
|
|
1373
|
+
var O, N, b, V;
|
|
1374
|
+
if (o.value && s >= 0 && (o.value && y.schemaName !== ((N = (O = o.value) == null ? void 0 : O.mainDimensions[s]) == null ? void 0 : N.schemaName) || y.name !== ((V = (b = o.value) == null ? void 0 : b.mainDimensions[s]) == null ? void 0 : V.name))) {
|
|
1375
1375
|
const d = [...o.value.mainDimensions];
|
|
1376
1376
|
d[s] = {
|
|
1377
|
-
schemaName:
|
|
1378
|
-
name:
|
|
1379
|
-
option:
|
|
1380
|
-
label:
|
|
1377
|
+
schemaName: y.schemaName,
|
|
1378
|
+
name: y.name,
|
|
1379
|
+
option: y.dimensionOptions[0],
|
|
1380
|
+
label: y.label,
|
|
1381
1381
|
hide: !0
|
|
1382
1382
|
}, o.value = {
|
|
1383
1383
|
...o.value,
|
|
@@ -1385,43 +1385,43 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
function v(
|
|
1388
|
+
function v(y) {
|
|
1389
1389
|
if (o.value)
|
|
1390
|
-
switch (
|
|
1390
|
+
switch (y) {
|
|
1391
1391
|
case Jl.Between:
|
|
1392
1392
|
o.value = {
|
|
1393
1393
|
...o.value,
|
|
1394
|
-
operator:
|
|
1394
|
+
operator: y,
|
|
1395
1395
|
mainDimensions: [null, null]
|
|
1396
1396
|
};
|
|
1397
1397
|
break;
|
|
1398
1398
|
default:
|
|
1399
1399
|
o.value = {
|
|
1400
1400
|
...o.value,
|
|
1401
|
-
operator:
|
|
1401
|
+
operator: y,
|
|
1402
1402
|
mainDimensions: [null]
|
|
1403
1403
|
};
|
|
1404
1404
|
break;
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1408
|
-
const
|
|
1407
|
+
function z() {
|
|
1408
|
+
const y = [...c.value.map((s) => s.value)];
|
|
1409
1409
|
o.value && (o.value.mainDimensions = o.value.mainDimensions.filter(
|
|
1410
1410
|
(s) => s !== "" && s != null
|
|
1411
|
-
), T.value !== void 0 ?
|
|
1411
|
+
), T.value !== void 0 ? y[T.value] = o.value : y.push(o.value)), t.value = y, C.value = !1;
|
|
1412
1412
|
}
|
|
1413
|
-
function P(
|
|
1414
|
-
const s = [...c.value.map((
|
|
1415
|
-
s.splice(
|
|
1413
|
+
function P(y) {
|
|
1414
|
+
const s = [...c.value.map((O) => O.value)];
|
|
1415
|
+
s.splice(y, 1), t.value = s;
|
|
1416
1416
|
}
|
|
1417
|
-
return (
|
|
1418
|
-
const
|
|
1419
|
-
return
|
|
1417
|
+
return (y, s) => {
|
|
1418
|
+
const O = M("FmMenuDivider"), N = M("FmForm"), b = M("FmIcon"), V = M("FmButton"), d = M("FmListItem"), _ = M("FmList"), K = M("FmField");
|
|
1419
|
+
return f(), X("div", _t, [
|
|
1420
1420
|
m(Re, {
|
|
1421
|
-
modelValue:
|
|
1422
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
1421
|
+
modelValue: C.value,
|
|
1422
|
+
"onUpdate:modelValue": s[2] || (s[2] = (j) => C.value = j),
|
|
1423
1423
|
title: U.value,
|
|
1424
|
-
onConfirm:
|
|
1424
|
+
onConfirm: z
|
|
1425
1425
|
}, {
|
|
1426
1426
|
content: Q(() => [
|
|
1427
1427
|
m(N, {
|
|
@@ -1429,39 +1429,39 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1429
1429
|
class: "flex flex-col gap-2 w-[490px]"
|
|
1430
1430
|
}, {
|
|
1431
1431
|
default: Q(() => {
|
|
1432
|
-
var
|
|
1432
|
+
var j, g, F, u, $;
|
|
1433
1433
|
return [
|
|
1434
1434
|
m(be, {
|
|
1435
1435
|
label: l(p)("report.section.condition.joinDatasource"),
|
|
1436
1436
|
"model-value": r.value,
|
|
1437
1437
|
items: x.value,
|
|
1438
1438
|
placeholder: l(p)("report.section.condition.joinDimension"),
|
|
1439
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1439
|
+
"onUpdate:modelValue": s[0] || (s[0] = (I) => A(I))
|
|
1440
1440
|
}, null, 8, ["label", "model-value", "items", "placeholder"]),
|
|
1441
|
-
m(
|
|
1442
|
-
(
|
|
1441
|
+
m(O),
|
|
1442
|
+
(j = o.value) != null && j.joinDimension && (((g = r.value) == null ? void 0 : g.dimensionOptions) || []).length > 0 ? (f(), R(be, {
|
|
1443
1443
|
key: 0,
|
|
1444
1444
|
modelValue: o.value.joinDimension.option,
|
|
1445
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
1445
|
+
"onUpdate:modelValue": s[1] || (s[1] = (I) => o.value.joinDimension.option = I),
|
|
1446
1446
|
label: l(p)("report.section.condition.format"),
|
|
1447
|
-
items: ((
|
|
1448
|
-
label: l(e)(`report.section.filter.${l(Ne)(
|
|
1449
|
-
value:
|
|
1447
|
+
items: ((F = r.value) == null ? void 0 : F.dimensionOptions.map((I) => ({
|
|
1448
|
+
label: l(e)(`report.section.filter.${l(Ne)(I)}`) ? l(p)(`report.section.filter.${l(Ne)(I)}`) : I,
|
|
1449
|
+
value: I
|
|
1450
1450
|
}))) ?? []
|
|
1451
1451
|
}, null, 8, ["modelValue", "label", "items"])) : E("", !0),
|
|
1452
|
-
o.value && (((u = r.value) == null ? void 0 : u.joinConditionOperators) || []).length > 0 ? (
|
|
1452
|
+
o.value && (((u = r.value) == null ? void 0 : u.joinConditionOperators) || []).length > 0 ? (f(), R(be, {
|
|
1453
1453
|
key: 1,
|
|
1454
1454
|
"model-value": o.value.operator,
|
|
1455
1455
|
label: l(p)("report.section.condition.operator"),
|
|
1456
|
-
items: r.value.joinConditionOperators.map((
|
|
1457
|
-
label: l(p)("report.section.comparisonOperator." +
|
|
1458
|
-
value:
|
|
1456
|
+
items: r.value.joinConditionOperators.map((I) => ({
|
|
1457
|
+
label: l(p)("report.section.comparisonOperator." + I),
|
|
1458
|
+
value: I
|
|
1459
1459
|
})) ?? [],
|
|
1460
1460
|
"onUpdate:modelValue": v
|
|
1461
1461
|
}, null, 8, ["model-value", "label", "items"])) : E("", !0),
|
|
1462
|
-
(
|
|
1462
|
+
(f(!0), X(de, null, _e((($ = o.value) == null ? void 0 : $.mainDimensions) || [], (I, ae) => {
|
|
1463
1463
|
var se, ce;
|
|
1464
|
-
return
|
|
1464
|
+
return f(), X("div", {
|
|
1465
1465
|
key: ae,
|
|
1466
1466
|
class: "flex flex-col gap-2"
|
|
1467
1467
|
}, [
|
|
@@ -1474,16 +1474,16 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1474
1474
|
})),
|
|
1475
1475
|
"onUpdate:modelValue": (pe) => n(pe, ae)
|
|
1476
1476
|
}, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
|
|
1477
|
-
|
|
1477
|
+
I && (((se = i.value[ae]) == null ? void 0 : se.dimensionOptions) || []).length > 0 && I ? (f(), R(be, {
|
|
1478
1478
|
key: 0,
|
|
1479
|
-
modelValue:
|
|
1480
|
-
"onUpdate:modelValue": (pe) =>
|
|
1479
|
+
modelValue: I.option,
|
|
1480
|
+
"onUpdate:modelValue": (pe) => I.option = pe,
|
|
1481
1481
|
items: (ce = i.value[ae]) == null ? void 0 : ce.dimensionOptions.map((pe) => ({
|
|
1482
1482
|
label: l(e)(`report.section.filter.${l(Ne)(pe)}`) ? l(p)(`report.section.filter.${l(Ne)(pe)}`) : pe,
|
|
1483
1483
|
value: pe
|
|
1484
1484
|
}))
|
|
1485
1485
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : E("", !0),
|
|
1486
|
-
m(
|
|
1486
|
+
m(O)
|
|
1487
1487
|
]);
|
|
1488
1488
|
}), 128))
|
|
1489
1489
|
];
|
|
@@ -1501,29 +1501,29 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1501
1501
|
default: Q(() => [
|
|
1502
1502
|
m(l(Je), {
|
|
1503
1503
|
list: t.value,
|
|
1504
|
-
"item-key": (
|
|
1505
|
-
var
|
|
1506
|
-
return `${(
|
|
1504
|
+
"item-key": (j) => {
|
|
1505
|
+
var g, F;
|
|
1506
|
+
return `${(g = j.joinDimension) == null ? void 0 : g.schemaName}:${(F = j.joinDimension) == null ? void 0 : F.name}`;
|
|
1507
1507
|
},
|
|
1508
1508
|
class: "flex flex-col gap-2 w-full"
|
|
1509
1509
|
}, {
|
|
1510
1510
|
item: Q(({
|
|
1511
|
-
element:
|
|
1512
|
-
index:
|
|
1511
|
+
element: j,
|
|
1512
|
+
index: g
|
|
1513
1513
|
}) => [
|
|
1514
1514
|
m(d, {
|
|
1515
1515
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1516
|
-
onClick:
|
|
1516
|
+
onClick: we((F) => L(c.value[g]), ["stop"])
|
|
1517
1517
|
}, {
|
|
1518
1518
|
default: Q(() => [
|
|
1519
|
-
m(
|
|
1520
|
-
h("p", $t, J(c.value[
|
|
1519
|
+
m(b, { name: "drag_handle" }),
|
|
1520
|
+
h("p", $t, J(c.value[g].label), 1),
|
|
1521
1521
|
s[4] || (s[4] = h("div", { class: "grow" }, null, -1)),
|
|
1522
|
-
m(
|
|
1522
|
+
m(V, {
|
|
1523
1523
|
icon: "close",
|
|
1524
1524
|
size: "md",
|
|
1525
1525
|
variant: "tertiary",
|
|
1526
|
-
onClick:
|
|
1526
|
+
onClick: we((F) => P(g), ["stop"])
|
|
1527
1527
|
}, null, 8, ["onClick"])
|
|
1528
1528
|
]),
|
|
1529
1529
|
_: 2
|
|
@@ -1536,10 +1536,10 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1536
1536
|
}),
|
|
1537
1537
|
m(K, {
|
|
1538
1538
|
class: "text-fm-color-typo-tertiary cursor-pointer",
|
|
1539
|
-
onClick: s[3] || (s[3] = (
|
|
1539
|
+
onClick: s[3] || (s[3] = (j) => L())
|
|
1540
1540
|
}, {
|
|
1541
1541
|
default: Q(() => [
|
|
1542
|
-
|
|
1542
|
+
Ie(J(l(p)("report.section.condition.add")), 1)
|
|
1543
1543
|
]),
|
|
1544
1544
|
_: 1
|
|
1545
1545
|
})
|
|
@@ -1581,29 +1581,24 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1581
1581
|
Ve(
|
|
1582
1582
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
1583
1583
|
() => {
|
|
1584
|
-
const { rowIds: N, columnIds:
|
|
1585
|
-
e.value.rowIds = N, e.value.columnIds =
|
|
1584
|
+
const { rowIds: N, columnIds: b } = Ge(e.value);
|
|
1585
|
+
e.value.rowIds = N, e.value.columnIds = b;
|
|
1586
1586
|
},
|
|
1587
1587
|
{ deep: !0 }
|
|
1588
1588
|
);
|
|
1589
|
-
const t = B, a = p, { schemas: U } =
|
|
1589
|
+
const t = B, a = p, { schemas: U } = Oe(wl()), { editingReport: C } = Oe(xl()), c = k(() => {
|
|
1590
1590
|
var N;
|
|
1591
|
-
return ((N =
|
|
1591
|
+
return ((N = C.value) == null ? void 0 : N.queryVersion) === "v2";
|
|
1592
1592
|
}), { t: T, te: L, locale: o } = ge(), r = k(() => !t.mainDatasourceConfig), i = k(
|
|
1593
1593
|
() => [Y.BarChart, Y.LineChart, Y.Scorecard].includes(t.config.type)
|
|
1594
|
-
), x = k(() =>
|
|
1595
|
-
const N = [...e.value.dimensions].filter((f) => !f.hide);
|
|
1596
|
-
return N.sort(
|
|
1597
|
-
(f, F) => (e.value.rowIds || []).indexOf(we(f)) - (e.value.rowIds || []).indexOf(we(F))
|
|
1598
|
-
), N;
|
|
1599
|
-
}), A = k(() => t.config.type === Y.Scorecard), n = k(
|
|
1594
|
+
), x = k(() => [...e.value.dimensions].filter((N) => !N.hide)), A = k(() => t.config.type === Y.Scorecard), n = k(
|
|
1600
1595
|
() => {
|
|
1601
1596
|
var N;
|
|
1602
1597
|
return (((N = t.mainDatasourceConfig) == null ? void 0 : N.schemaNames) || []).reduce(
|
|
1603
|
-
(
|
|
1604
|
-
const d = U.value.find((_) => _.name ===
|
|
1605
|
-
return d && (
|
|
1606
|
-
...
|
|
1598
|
+
(b, V) => {
|
|
1599
|
+
const d = U.value.find((_) => _.name === V);
|
|
1600
|
+
return d && (b = [
|
|
1601
|
+
...b,
|
|
1607
1602
|
...d.fields.map((_) => ({
|
|
1608
1603
|
..._,
|
|
1609
1604
|
labels: [
|
|
@@ -1611,31 +1606,31 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1611
1606
|
re(T, L, _.label || _.name, "other")
|
|
1612
1607
|
]
|
|
1613
1608
|
}))
|
|
1614
|
-
]),
|
|
1609
|
+
]), b;
|
|
1615
1610
|
},
|
|
1616
1611
|
[]
|
|
1617
1612
|
);
|
|
1618
1613
|
}
|
|
1619
1614
|
), v = k(
|
|
1620
|
-
() => e.value.schemaNames.reduce((N,
|
|
1621
|
-
const
|
|
1622
|
-
return
|
|
1615
|
+
() => e.value.schemaNames.reduce((N, b) => {
|
|
1616
|
+
const V = U.value.find((d) => d.name === b);
|
|
1617
|
+
return V && (N = [
|
|
1623
1618
|
...N,
|
|
1624
|
-
...
|
|
1619
|
+
...V.fields.map((d) => ({
|
|
1625
1620
|
...d,
|
|
1626
1621
|
labels: [
|
|
1627
|
-
re(T, L,
|
|
1622
|
+
re(T, L, V.label, "schema"),
|
|
1628
1623
|
re(T, L, d.label || d.name, "other")
|
|
1629
1624
|
]
|
|
1630
1625
|
}))
|
|
1631
1626
|
]), N;
|
|
1632
1627
|
}, [])
|
|
1633
|
-
),
|
|
1628
|
+
), z = k(() => [
|
|
1634
1629
|
{ label: T("report.section.datasource.none"), value: null },
|
|
1635
1630
|
{ label: T("report.section.datasource.grandTotal"), value: 0 },
|
|
1636
|
-
...[...x.value].slice(0, x.value.length - 1).map((N,
|
|
1631
|
+
...[...x.value].slice(0, x.value.length - 1).map((N, b) => ({
|
|
1637
1632
|
label: re(T, L, N.label, "other"),
|
|
1638
|
-
value:
|
|
1633
|
+
value: b + 1
|
|
1639
1634
|
}))
|
|
1640
1635
|
]), P = k(() => [
|
|
1641
1636
|
{
|
|
@@ -1646,8 +1641,8 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1646
1641
|
label: T("report.section.datasource.position.bottom"),
|
|
1647
1642
|
value: pl.bottom
|
|
1648
1643
|
}
|
|
1649
|
-
]),
|
|
1650
|
-
() => `rollup-${o.value}-${x.value.map((N) =>
|
|
1644
|
+
]), y = k(
|
|
1645
|
+
() => `rollup-${o.value}-${x.value.map((N) => Ce(N)).join("|")}`
|
|
1651
1646
|
), s = k(() => [
|
|
1652
1647
|
{
|
|
1653
1648
|
label: T("report.section.datasource.none"),
|
|
@@ -1657,168 +1652,168 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1657
1652
|
label: L(`report.section.datasource.periodType.${N}`) ? T(`report.section.datasource.periodType.${N}`) : N,
|
|
1658
1653
|
value: cl[N]
|
|
1659
1654
|
}))
|
|
1660
|
-
]),
|
|
1655
|
+
]), O = k(() => [
|
|
1661
1656
|
{ label: T("report.section.datasource.joinType.left"), value: "LEFT" },
|
|
1662
1657
|
{ label: T("report.section.datasource.joinType.fullOuter"), value: "FULL_OUTER" }
|
|
1663
1658
|
]);
|
|
1664
|
-
return (N,
|
|
1665
|
-
const
|
|
1666
|
-
return
|
|
1659
|
+
return (N, b) => {
|
|
1660
|
+
const V = M("FmButton"), d = M("FmSwitch"), _ = M("FmSelect"), K = M("FmTextField");
|
|
1661
|
+
return f(), R(ol, null, {
|
|
1667
1662
|
header: Q(() => [
|
|
1668
1663
|
h("p", null, J(t.label), 1),
|
|
1669
|
-
|
|
1670
|
-
t.closeable ? (
|
|
1664
|
+
b[22] || (b[22] = h("div", { class: "grow" }, null, -1)),
|
|
1665
|
+
t.closeable ? (f(), R(V, {
|
|
1671
1666
|
key: 0,
|
|
1672
1667
|
icon: "close",
|
|
1673
1668
|
variant: "tertiary",
|
|
1674
1669
|
size: "md",
|
|
1675
|
-
onClick:
|
|
1670
|
+
onClick: b[0] || (b[0] = we((j) => a("click-close"), ["stop"]))
|
|
1676
1671
|
})) : E("", !0)
|
|
1677
1672
|
]),
|
|
1678
1673
|
content: Q(() => [
|
|
1679
1674
|
m(it, {
|
|
1680
1675
|
modelValue: e.value,
|
|
1681
|
-
"onUpdate:modelValue":
|
|
1676
|
+
"onUpdate:modelValue": b[1] || (b[1] = (j) => e.value = j),
|
|
1682
1677
|
label: l(T)("report.section.schema.title")
|
|
1683
1678
|
}, null, 8, ["modelValue", "label"]),
|
|
1684
1679
|
m(ll, {
|
|
1685
1680
|
modelValue: e.value.dimensions,
|
|
1686
|
-
"onUpdate:modelValue":
|
|
1681
|
+
"onUpdate:modelValue": b[2] || (b[2] = (j) => e.value.dimensions = j),
|
|
1687
1682
|
options: v.value,
|
|
1688
1683
|
config: e.value,
|
|
1689
1684
|
max: t.config.maxDimension,
|
|
1690
1685
|
"has-row-column": !0,
|
|
1691
|
-
onConfig:
|
|
1692
|
-
e.value =
|
|
1686
|
+
onConfig: b[3] || (b[3] = (j) => {
|
|
1687
|
+
e.value = j;
|
|
1693
1688
|
})
|
|
1694
1689
|
}, null, 8, ["modelValue", "options", "config", "max"]),
|
|
1695
1690
|
m(d, {
|
|
1696
1691
|
"label-placement": "right",
|
|
1697
1692
|
label: l(T)("report.section.datasource.comparable"),
|
|
1698
1693
|
"model-value": e.value.isComparable ?? !1,
|
|
1699
|
-
"onUpdate:modelValue":
|
|
1700
|
-
e.value.isComparable =
|
|
1694
|
+
"onUpdate:modelValue": b[4] || (b[4] = (j) => {
|
|
1695
|
+
e.value.isComparable = j;
|
|
1701
1696
|
})
|
|
1702
1697
|
}, null, 8, ["label", "model-value"]),
|
|
1703
|
-
i.value ? (
|
|
1698
|
+
i.value ? (f(), R(d, {
|
|
1704
1699
|
key: 0,
|
|
1705
1700
|
"label-placement": "right",
|
|
1706
1701
|
label: l(T)("report.section.datasource.cumulative"),
|
|
1707
1702
|
"model-value": e.value.isCumulative ?? !1,
|
|
1708
|
-
"onUpdate:modelValue":
|
|
1709
|
-
e.value.isCumulative =
|
|
1703
|
+
"onUpdate:modelValue": b[5] || (b[5] = (j) => {
|
|
1704
|
+
e.value.isCumulative = j;
|
|
1710
1705
|
})
|
|
1711
1706
|
}, null, 8, ["label", "model-value"])) : E("", !0),
|
|
1712
|
-
t.config.isDrillConfigurable && r.value ? (
|
|
1707
|
+
t.config.isDrillConfigurable && r.value ? (f(), R(d, {
|
|
1713
1708
|
key: 1,
|
|
1714
1709
|
label: l(T)("report.section.datasource.drill"),
|
|
1715
1710
|
"label-placement": "right",
|
|
1716
1711
|
"model-value": e.value.isDrillable ?? !1,
|
|
1717
|
-
"onUpdate:modelValue":
|
|
1718
|
-
e.value.isDrillable =
|
|
1712
|
+
"onUpdate:modelValue": b[6] || (b[6] = (j) => {
|
|
1713
|
+
e.value.isDrillable = j;
|
|
1719
1714
|
})
|
|
1720
1715
|
}, null, 8, ["label", "model-value"])) : E("", !0),
|
|
1721
|
-
r.value ? (
|
|
1716
|
+
r.value ? (f(), R(d, {
|
|
1722
1717
|
key: 2,
|
|
1723
1718
|
modelValue: e.value.isBlend,
|
|
1724
|
-
"onUpdate:modelValue":
|
|
1719
|
+
"onUpdate:modelValue": b[7] || (b[7] = (j) => e.value.isBlend = j),
|
|
1725
1720
|
label: l(T)("report.section.datasource.blend"),
|
|
1726
1721
|
"label-placement": "right"
|
|
1727
1722
|
}, null, 8, ["modelValue", "label"])) : E("", !0),
|
|
1728
|
-
t.config.canRollup && r.value ? (
|
|
1729
|
-
key:
|
|
1723
|
+
t.config.canRollup && r.value ? (f(), R(_, {
|
|
1724
|
+
key: y.value,
|
|
1730
1725
|
modelValue: e.value.rollup,
|
|
1731
|
-
"onUpdate:modelValue":
|
|
1726
|
+
"onUpdate:modelValue": b[8] || (b[8] = (j) => e.value.rollup = j),
|
|
1732
1727
|
label: l(T)("report.section.datasource.subTotal"),
|
|
1733
|
-
items:
|
|
1728
|
+
items: z.value
|
|
1734
1729
|
}, null, 8, ["modelValue", "label", "items"])) : E("", !0),
|
|
1735
|
-
t.config.showRollupPosition && r.value ? (
|
|
1730
|
+
t.config.showRollupPosition && r.value ? (f(), R(_, {
|
|
1736
1731
|
key: `rollup-position-${l(o)}`,
|
|
1737
1732
|
modelValue: e.value.rollupPosition,
|
|
1738
|
-
"onUpdate:modelValue":
|
|
1733
|
+
"onUpdate:modelValue": b[9] || (b[9] = (j) => e.value.rollupPosition = j),
|
|
1739
1734
|
label: l(T)("report.section.datasource.position.showPosition"),
|
|
1740
1735
|
items: P.value
|
|
1741
1736
|
}, null, 8, ["modelValue", "label", "items"])) : E("", !0),
|
|
1742
|
-
t.config.type === l(Y).Table && r.value ? (
|
|
1737
|
+
t.config.type === l(Y).Table && r.value ? (f(), R(K, {
|
|
1743
1738
|
key: 5,
|
|
1744
1739
|
modelValue: e.value.grandTotalLabel,
|
|
1745
|
-
"onUpdate:modelValue":
|
|
1740
|
+
"onUpdate:modelValue": b[10] || (b[10] = (j) => e.value.grandTotalLabel = j),
|
|
1746
1741
|
label: l(T)("report.section.datasource.grandTotalLabel"),
|
|
1747
1742
|
placeholder: l(T)("report.section.datasource.grandTotal")
|
|
1748
1743
|
}, null, 8, ["modelValue", "label", "placeholder"])) : E("", !0),
|
|
1749
|
-
r.value ? E("", !0) : (
|
|
1744
|
+
r.value ? E("", !0) : (f(), R(_, {
|
|
1750
1745
|
key: `periodType-${l(o)}`,
|
|
1751
1746
|
modelValue: e.value.periodType,
|
|
1752
|
-
"onUpdate:modelValue":
|
|
1747
|
+
"onUpdate:modelValue": b[11] || (b[11] = (j) => e.value.periodType = j),
|
|
1753
1748
|
label: l(T)("report.section.datasource.periodType.label"),
|
|
1754
1749
|
items: s.value
|
|
1755
1750
|
}, null, 8, ["modelValue", "label", "items"])),
|
|
1756
|
-
t.config.canTranspose && r.value ? (
|
|
1751
|
+
t.config.canTranspose && r.value ? (f(), R(d, {
|
|
1757
1752
|
key: 7,
|
|
1758
1753
|
modelValue: e.value.isTransposed,
|
|
1759
|
-
"onUpdate:modelValue":
|
|
1754
|
+
"onUpdate:modelValue": b[12] || (b[12] = (j) => e.value.isTransposed = j),
|
|
1760
1755
|
label: l(T)("report.section.datasource.transpose"),
|
|
1761
1756
|
"label-placement": "right"
|
|
1762
1757
|
}, null, 8, ["modelValue", "label"])) : E("", !0),
|
|
1763
|
-
t.config.hasBreakdownDimension ? (
|
|
1758
|
+
t.config.hasBreakdownDimension ? (f(), R(ll, {
|
|
1764
1759
|
key: 8,
|
|
1765
1760
|
"model-value": e.value.breakdownDimension ? [e.value.breakdownDimension] : [],
|
|
1766
1761
|
label: "breakdownDimension",
|
|
1767
1762
|
max: 1,
|
|
1768
1763
|
options: v.value,
|
|
1769
|
-
"onUpdate:modelValue":
|
|
1770
|
-
e.value.breakdownDimension =
|
|
1764
|
+
"onUpdate:modelValue": b[13] || (b[13] = (j) => {
|
|
1765
|
+
e.value.breakdownDimension = j[0];
|
|
1771
1766
|
})
|
|
1772
1767
|
}, null, 8, ["model-value", "options"])) : E("", !0),
|
|
1773
|
-
A.value ? (
|
|
1768
|
+
A.value ? (f(), R(ll, {
|
|
1774
1769
|
key: 9,
|
|
1775
1770
|
"model-value": e.value.sparklineDimension ? [e.value.sparklineDimension] : [],
|
|
1776
1771
|
label: "sparklineDimension",
|
|
1777
1772
|
max: 1,
|
|
1778
1773
|
options: v.value,
|
|
1779
|
-
"onUpdate:modelValue":
|
|
1780
|
-
e.value.sparklineDimension =
|
|
1774
|
+
"onUpdate:modelValue": b[14] || (b[14] = (j) => {
|
|
1775
|
+
e.value.sparklineDimension = j[0];
|
|
1781
1776
|
})
|
|
1782
1777
|
}, null, 8, ["model-value", "options"])) : E("", !0),
|
|
1783
1778
|
m(yt, {
|
|
1784
1779
|
modelValue: e.value.metrics,
|
|
1785
|
-
"onUpdate:modelValue":
|
|
1780
|
+
"onUpdate:modelValue": b[15] || (b[15] = (j) => e.value.metrics = j),
|
|
1786
1781
|
options: v.value,
|
|
1787
1782
|
max: t.config.maxMetric,
|
|
1788
1783
|
config: e.value,
|
|
1789
1784
|
"has-row-column": t.config.type === l(Y).Table,
|
|
1790
1785
|
"has-xy": t.config.hasXy,
|
|
1791
|
-
onConfig:
|
|
1792
|
-
e.value =
|
|
1786
|
+
onConfig: b[16] || (b[16] = (j) => {
|
|
1787
|
+
e.value = j;
|
|
1793
1788
|
})
|
|
1794
1789
|
}, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-xy"]),
|
|
1795
1790
|
m(Wl, {
|
|
1796
1791
|
modelValue: e.value.filters,
|
|
1797
|
-
"onUpdate:modelValue":
|
|
1792
|
+
"onUpdate:modelValue": b[17] || (b[17] = (j) => e.value.filters = j),
|
|
1798
1793
|
options: v.value
|
|
1799
1794
|
}, null, 8, ["modelValue", "options"]),
|
|
1800
1795
|
m(xt, {
|
|
1801
1796
|
modelValue: e.value.sorts,
|
|
1802
|
-
"onUpdate:modelValue":
|
|
1797
|
+
"onUpdate:modelValue": b[18] || (b[18] = (j) => e.value.sorts = j),
|
|
1803
1798
|
options: v.value
|
|
1804
1799
|
}, null, 8, ["modelValue", "options"]),
|
|
1805
1800
|
m(kt, {
|
|
1806
1801
|
modelValue: e.value.limit,
|
|
1807
|
-
"onUpdate:modelValue":
|
|
1802
|
+
"onUpdate:modelValue": b[19] || (b[19] = (j) => e.value.limit = j)
|
|
1808
1803
|
}, null, 8, ["modelValue"]),
|
|
1809
|
-
e.value.conditions && c.value ? (
|
|
1804
|
+
e.value.conditions && c.value ? (f(), R(_, {
|
|
1810
1805
|
key: 10,
|
|
1811
1806
|
"model-value": e.value.joinType ?? "LEFT",
|
|
1812
1807
|
label: l(T)("report.section.datasource.joinType.label"),
|
|
1813
|
-
items:
|
|
1814
|
-
"onUpdate:modelValue":
|
|
1815
|
-
e.value.joinType =
|
|
1808
|
+
items: O.value,
|
|
1809
|
+
"onUpdate:modelValue": b[20] || (b[20] = (j) => {
|
|
1810
|
+
e.value.joinType = j;
|
|
1816
1811
|
})
|
|
1817
1812
|
}, null, 8, ["model-value", "label", "items"])) : E("", !0),
|
|
1818
|
-
e.value.conditions ? (
|
|
1813
|
+
e.value.conditions ? (f(), R(Dt, {
|
|
1819
1814
|
key: 11,
|
|
1820
1815
|
modelValue: e.value.conditions,
|
|
1821
|
-
"onUpdate:modelValue":
|
|
1816
|
+
"onUpdate:modelValue": b[21] || (b[21] = (j) => e.value.conditions = j),
|
|
1822
1817
|
"join-field-options": v.value,
|
|
1823
1818
|
"main-field-options": n.value
|
|
1824
1819
|
}, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : E("", !0)
|
|
@@ -1845,14 +1840,14 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1845
1840
|
emits: ["update:modelValue"],
|
|
1846
1841
|
setup(B) {
|
|
1847
1842
|
const { t: p } = ge(), e = ye(B, "modelValue"), t = B, a = k(() => t.title || p("report.tile.setting"));
|
|
1848
|
-
return (U,
|
|
1843
|
+
return (U, C) => {
|
|
1849
1844
|
const c = M("FmIcon");
|
|
1850
|
-
return
|
|
1845
|
+
return f(), X("div", {
|
|
1851
1846
|
class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
|
|
1852
|
-
onClick:
|
|
1847
|
+
onClick: C[0] || (C[0] = (T) => e.value = !e.value)
|
|
1853
1848
|
}, [
|
|
1854
1849
|
h("p", Ut, J(a.value), 1),
|
|
1855
|
-
|
|
1850
|
+
C[1] || (C[1] = h("div", { class: "grow" }, null, -1)),
|
|
1856
1851
|
m(c, {
|
|
1857
1852
|
name: t.icon
|
|
1858
1853
|
}, null, 8, ["name"])
|
|
@@ -1868,7 +1863,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1868
1863
|
emits: ["update:modelValue"],
|
|
1869
1864
|
setup(B) {
|
|
1870
1865
|
const p = ye(B, "modelValue");
|
|
1871
|
-
return (e, t) => (
|
|
1866
|
+
return (e, t) => (f(), X(de, null, [
|
|
1872
1867
|
m(Ye, {
|
|
1873
1868
|
modelValue: p.value,
|
|
1874
1869
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => p.value = a),
|
|
@@ -1888,7 +1883,7 @@ const pt = { class: "flex flex-col my-2 gap-8" }, vt = { class: "fm-typo-en-body
|
|
|
1888
1883
|
const p = ye(B, "modelValue");
|
|
1889
1884
|
return (e, t) => {
|
|
1890
1885
|
const a = M("FmTopSheet");
|
|
1891
|
-
return
|
|
1886
|
+
return f(), X("div", Lt, [
|
|
1892
1887
|
m(Ye, {
|
|
1893
1888
|
modelValue: p.value,
|
|
1894
1889
|
"onUpdate:modelValue": t[0] || (t[0] = (U) => p.value = U),
|
|
@@ -1930,7 +1925,7 @@ function $l(B, p = 600) {
|
|
|
1930
1925
|
resetStyleEditing: a
|
|
1931
1926
|
};
|
|
1932
1927
|
}
|
|
1933
|
-
const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-600" },
|
|
1928
|
+
const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-600" }, jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Ot = { class: "flex gap-16" }, zt = { class: "flex flex-col gap-8 max-w-[120px]" }, It = { class: "fm-typo-en-body-lg-600" }, Rt = { class: "flex flex-col gap-16" }, Pt = { class: "fm-typo-en-body-lg-600" }, Et = { class: "flex flex-row gap-8" }, Wt = /* @__PURE__ */ ue({
|
|
1934
1929
|
__name: "TitleSection",
|
|
1935
1930
|
props: /* @__PURE__ */ ve({
|
|
1936
1931
|
title: {},
|
|
@@ -1942,7 +1937,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
1942
1937
|
}),
|
|
1943
1938
|
emits: /* @__PURE__ */ ve(["update:model", "update:title", "update:description"], ["update:isEditingStyle"]),
|
|
1944
1939
|
setup(B, { emit: p }) {
|
|
1945
|
-
const e = ye(B, "isEditingStyle"), { markStyleEditing: t } = $l(e), a = B, U = p, { t:
|
|
1940
|
+
const e = ye(B, "isEditingStyle"), { markStyleEditing: t } = $l(e), a = B, U = p, { t: C } = ge(), c = He((n) => {
|
|
1946
1941
|
U("update:title", n);
|
|
1947
1942
|
}, 500), T = k({
|
|
1948
1943
|
get: () => a.title ?? "",
|
|
@@ -1981,32 +1976,32 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
1981
1976
|
}
|
|
1982
1977
|
});
|
|
1983
1978
|
return (n, v) => {
|
|
1984
|
-
const
|
|
1985
|
-
return
|
|
1979
|
+
const z = M("FmTextField"), P = M("FmTextarea"), y = M("FmStepperField"), s = M("FmButton"), O = M("FmSwitch");
|
|
1980
|
+
return f(), X(de, null, [
|
|
1986
1981
|
h("div", Mt, [
|
|
1987
|
-
m(
|
|
1982
|
+
m(z, {
|
|
1988
1983
|
modelValue: T.value,
|
|
1989
1984
|
"onUpdate:modelValue": v[0] || (v[0] = (N) => T.value = N),
|
|
1990
|
-
label: l(
|
|
1991
|
-
placeholder: l(
|
|
1985
|
+
label: l(C)("report.tile.widget.title"),
|
|
1986
|
+
placeholder: l(C)("report.tile.widget.titlePlaceholder")
|
|
1992
1987
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
1993
1988
|
m(P, {
|
|
1994
1989
|
modelValue: L.value,
|
|
1995
1990
|
"onUpdate:modelValue": v[1] || (v[1] = (N) => L.value = N),
|
|
1996
1991
|
disabled: T.value === "",
|
|
1997
|
-
placeholder: l(
|
|
1998
|
-
"helper-text": l(
|
|
1992
|
+
placeholder: l(C)("report.tile.widget.descriptionPlaceholder"),
|
|
1993
|
+
"helper-text": l(C)("report.tile.widget.descriptionHelper")
|
|
1999
1994
|
}, {
|
|
2000
1995
|
label: Q(() => [
|
|
2001
|
-
h("p", Nt, J(l(
|
|
2002
|
-
h("p",
|
|
1996
|
+
h("p", Nt, J(l(C)("report.tile.widget.widgetDescription")), 1),
|
|
1997
|
+
h("p", jt, " (" + J(l(C)("report.tile.widget.optional")) + ") ", 1)
|
|
2003
1998
|
]),
|
|
2004
1999
|
_: 1
|
|
2005
2000
|
}, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
|
|
2006
|
-
h("div",
|
|
2007
|
-
h("div",
|
|
2008
|
-
h("p",
|
|
2009
|
-
m(
|
|
2001
|
+
h("div", Ot, [
|
|
2002
|
+
h("div", zt, [
|
|
2003
|
+
h("p", It, J(l(C)("report.section.datasource.title.titleFontSize")), 1),
|
|
2004
|
+
m(y, {
|
|
2010
2005
|
modelValue: r.value,
|
|
2011
2006
|
"onUpdate:modelValue": v[2] || (v[2] = (N) => r.value = N),
|
|
2012
2007
|
max: 24,
|
|
@@ -2015,7 +2010,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2015
2010
|
}, null, 8, ["modelValue"])
|
|
2016
2011
|
]),
|
|
2017
2012
|
h("div", Rt, [
|
|
2018
|
-
h("p", Pt, J(l(
|
|
2013
|
+
h("p", Pt, J(l(C)("report.section.datasource.title.textStyleFormat")), 1),
|
|
2019
2014
|
h("div", Et, [
|
|
2020
2015
|
m(s, {
|
|
2021
2016
|
"append-icon": "format_bold",
|
|
@@ -2046,10 +2041,10 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2046
2041
|
])
|
|
2047
2042
|
])
|
|
2048
2043
|
]),
|
|
2049
|
-
m(
|
|
2044
|
+
m(O, {
|
|
2050
2045
|
modelValue: o.value,
|
|
2051
2046
|
"onUpdate:modelValue": v[6] || (v[6] = (N) => o.value = N),
|
|
2052
|
-
label: l(
|
|
2047
|
+
label: l(C)("report.section.datasource.title.showTitle"),
|
|
2053
2048
|
"label-placement": "right"
|
|
2054
2049
|
}, null, 8, ["modelValue", "label"])
|
|
2055
2050
|
], 64);
|
|
@@ -2072,52 +2067,52 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2072
2067
|
}),
|
|
2073
2068
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue", "update:isEditingStyle"]),
|
|
2074
2069
|
setup(B, { emit: p }) {
|
|
2075
|
-
var
|
|
2076
|
-
const e = et(), { dateRange: t, timezone: a } =
|
|
2070
|
+
var O, N;
|
|
2071
|
+
const e = et(), { dateRange: t, timezone: a } = Oe(e), U = {
|
|
2077
2072
|
startDate: t.value.startDate,
|
|
2078
2073
|
endDate: t.value.endDate
|
|
2079
|
-
},
|
|
2080
|
-
startDate: (
|
|
2074
|
+
}, C = le({
|
|
2075
|
+
startDate: (O = qe(t.value.startDate)) == null ? void 0 : O.tz(a.value).format(yl),
|
|
2081
2076
|
endDate: (N = qe(t.value.endDate)) == null ? void 0 : N.tz(a.value).format(yl)
|
|
2082
2077
|
});
|
|
2083
2078
|
Ve(
|
|
2084
|
-
|
|
2079
|
+
C,
|
|
2085
2080
|
() => {
|
|
2086
|
-
|
|
2087
|
-
const
|
|
2088
|
-
startDate: qe.tz(
|
|
2089
|
-
endDate: qe.tz(
|
|
2081
|
+
C.value.endDate || (C.value.endDate = C.value.startDate);
|
|
2082
|
+
const b = {
|
|
2083
|
+
startDate: qe.tz(C.value.startDate, a.value).startOf("day").utc().toISOString(),
|
|
2084
|
+
endDate: qe.tz(C.value.endDate, a.value).endOf("day").utc().toISOString()
|
|
2090
2085
|
};
|
|
2091
|
-
t.value =
|
|
2086
|
+
t.value = b;
|
|
2092
2087
|
},
|
|
2093
2088
|
{ deep: !0 }
|
|
2094
2089
|
), nl(() => {
|
|
2095
2090
|
t.value = { ...U };
|
|
2096
2091
|
});
|
|
2097
2092
|
const c = ye(B, "modelValue"), T = ye(B, "isEditingStyle"), { breakpoints: L } = Vl(), o = B, { promptMessage: r } = Fl(), i = p, { t: x, locale: A } = ge();
|
|
2098
|
-
function n(
|
|
2099
|
-
c.value = ct(
|
|
2093
|
+
function n(b) {
|
|
2094
|
+
c.value = ct(b);
|
|
2100
2095
|
}
|
|
2101
2096
|
function v() {
|
|
2102
|
-
const
|
|
2103
|
-
|
|
2097
|
+
const b = [...c.value.widget.config.joinDatasources || []];
|
|
2098
|
+
b.push({ ...ql(c.value.widget.type), conditions: [] }), n({
|
|
2104
2099
|
...c.value,
|
|
2105
2100
|
widget: {
|
|
2106
2101
|
...c.value.widget,
|
|
2107
2102
|
config: {
|
|
2108
2103
|
...c.value.widget.config,
|
|
2109
|
-
joinDatasources:
|
|
2104
|
+
joinDatasources: b
|
|
2110
2105
|
}
|
|
2111
2106
|
}
|
|
2112
2107
|
});
|
|
2113
2108
|
}
|
|
2114
|
-
async function
|
|
2109
|
+
async function z(b) {
|
|
2115
2110
|
if (!await r({
|
|
2116
2111
|
title: x("report.tile.datasource.remove"),
|
|
2117
|
-
message: x("report.tile.datasource.confirmRemove", { index:
|
|
2112
|
+
message: x("report.tile.datasource.confirmRemove", { index: b + 1 })
|
|
2118
2113
|
})) return;
|
|
2119
2114
|
const d = [...c.value.widget.config.joinDatasources || []];
|
|
2120
|
-
d.splice(
|
|
2115
|
+
d.splice(b, 1), n({
|
|
2121
2116
|
...c.value,
|
|
2122
2117
|
widget: {
|
|
2123
2118
|
...c.value.widget,
|
|
@@ -2128,9 +2123,9 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2128
2123
|
}
|
|
2129
2124
|
});
|
|
2130
2125
|
}
|
|
2131
|
-
const P = (
|
|
2126
|
+
const P = (b, V) => {
|
|
2132
2127
|
let d = 1, _ = 1;
|
|
2133
|
-
switch (
|
|
2128
|
+
switch (b) {
|
|
2134
2129
|
case Y.Scorecard:
|
|
2135
2130
|
d = 1, _ = 2;
|
|
2136
2131
|
break;
|
|
@@ -2152,53 +2147,53 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2152
2147
|
break;
|
|
2153
2148
|
}
|
|
2154
2149
|
return {
|
|
2155
|
-
id:
|
|
2150
|
+
id: V.id,
|
|
2156
2151
|
size: {
|
|
2157
2152
|
height: d,
|
|
2158
2153
|
width: _
|
|
2159
2154
|
},
|
|
2160
2155
|
widget: {
|
|
2161
|
-
...
|
|
2162
|
-
type:
|
|
2156
|
+
...V.widget,
|
|
2157
|
+
type: b
|
|
2163
2158
|
}
|
|
2164
2159
|
};
|
|
2165
|
-
},
|
|
2166
|
-
() => Ke.find((
|
|
2160
|
+
}, y = k(
|
|
2161
|
+
() => Ke.find((b) => b.type === c.value.widget.type)
|
|
2167
2162
|
), s = k(() => c.value.widget.config.joinDatasources);
|
|
2168
2163
|
return Ve(
|
|
2169
2164
|
() => c.value.size.height,
|
|
2170
|
-
(
|
|
2171
|
-
|
|
2165
|
+
(b) => {
|
|
2166
|
+
b < 1 && (c.value.size.height = 1), b > 12 && (c.value.size.height = 12);
|
|
2172
2167
|
}
|
|
2173
2168
|
), Ve(
|
|
2174
2169
|
() => c.value.size.width,
|
|
2175
|
-
(
|
|
2176
|
-
|
|
2170
|
+
(b) => {
|
|
2171
|
+
b < 1 && (c.value.size.width = 1), b > 12 && (c.value.size.width = 12);
|
|
2177
2172
|
}
|
|
2178
|
-
), (
|
|
2179
|
-
const d = M("FmCircularProgress"), _ = M("FmSimpleDateRangePicker"), K = M("FmStepperField"),
|
|
2180
|
-
return
|
|
2173
|
+
), (b, V) => {
|
|
2174
|
+
const d = M("FmCircularProgress"), _ = M("FmSimpleDateRangePicker"), K = M("FmStepperField"), j = M("FmButton"), g = M("FmForm");
|
|
2175
|
+
return f(), R(hl(l(L).lg || l(L).md ? Bt : At), {
|
|
2181
2176
|
"model-value": o.hideConfiguration,
|
|
2182
|
-
"onUpdate:modelValue":
|
|
2177
|
+
"onUpdate:modelValue": V[10] || (V[10] = (F) => i("hideConfiguration", F))
|
|
2183
2178
|
}, {
|
|
2184
2179
|
default: Q(() => [
|
|
2185
|
-
c.value ? (
|
|
2180
|
+
c.value ? (f(), R(g, {
|
|
2186
2181
|
key: 1,
|
|
2187
2182
|
ref: "form",
|
|
2188
2183
|
class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
|
|
2189
2184
|
}, {
|
|
2190
2185
|
default: Q(() => [
|
|
2191
2186
|
h("div", Xt, [
|
|
2192
|
-
(
|
|
2187
|
+
(f(), R(_, {
|
|
2193
2188
|
key: `date-picker-${l(A)}`,
|
|
2194
|
-
modelValue:
|
|
2195
|
-
"onUpdate:modelValue":
|
|
2189
|
+
modelValue: C.value,
|
|
2190
|
+
"onUpdate:modelValue": V[0] || (V[0] = (F) => C.value = F)
|
|
2196
2191
|
}, null, 8, ["modelValue"]))
|
|
2197
2192
|
]),
|
|
2198
2193
|
m(ol, null, {
|
|
2199
2194
|
header: Q(() => [
|
|
2200
2195
|
h("p", qt, J(l(x)("report.tile.widget.details")), 1),
|
|
2201
|
-
|
|
2196
|
+
V[11] || (V[11] = h("div", { class: "grow" }, null, -1))
|
|
2202
2197
|
]),
|
|
2203
2198
|
content: Q(() => [
|
|
2204
2199
|
m(Wt, {
|
|
@@ -2206,24 +2201,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2206
2201
|
description: c.value.widget.description,
|
|
2207
2202
|
model: c.value.widget.config,
|
|
2208
2203
|
"is-editing-style": T.value,
|
|
2209
|
-
"onUpdate:isEditingStyle":
|
|
2210
|
-
"onUpdate:title":
|
|
2211
|
-
"onUpdate:description":
|
|
2212
|
-
"onUpdate:model":
|
|
2204
|
+
"onUpdate:isEditingStyle": V[1] || (V[1] = (F) => T.value = F),
|
|
2205
|
+
"onUpdate:title": V[2] || (V[2] = (F) => c.value.widget.title = F),
|
|
2206
|
+
"onUpdate:description": V[3] || (V[3] = (F) => c.value.widget.description = F),
|
|
2207
|
+
"onUpdate:model": V[4] || (V[4] = (F) => c.value.widget.config = F)
|
|
2213
2208
|
}, null, 8, ["title", "description", "model", "is-editing-style"]),
|
|
2214
2209
|
h("div", {
|
|
2215
2210
|
class: $e(["flex flex-row", `${l(L).sm || l(L).xs ? "gap-16" : "gap-2"}`])
|
|
2216
2211
|
}, [
|
|
2217
2212
|
m(K, {
|
|
2218
2213
|
modelValue: c.value.size.width,
|
|
2219
|
-
"onUpdate:modelValue":
|
|
2214
|
+
"onUpdate:modelValue": V[5] || (V[5] = (F) => c.value.size.width = F),
|
|
2220
2215
|
label: l(x)("report.tile.widget.width"),
|
|
2221
2216
|
min: 1,
|
|
2222
2217
|
max: 12
|
|
2223
2218
|
}, null, 8, ["modelValue", "label"]),
|
|
2224
2219
|
m(K, {
|
|
2225
2220
|
modelValue: c.value.size.height,
|
|
2226
|
-
"onUpdate:modelValue":
|
|
2221
|
+
"onUpdate:modelValue": V[6] || (V[6] = (F) => c.value.size.height = F),
|
|
2227
2222
|
label: l(x)("report.tile.widget.height"),
|
|
2228
2223
|
min: 1,
|
|
2229
2224
|
max: 12,
|
|
@@ -2236,7 +2231,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2236
2231
|
m(ol, null, {
|
|
2237
2232
|
header: Q(() => [
|
|
2238
2233
|
h("p", null, J(l(x)("report.tile.widget.type")), 1),
|
|
2239
|
-
|
|
2234
|
+
V[12] || (V[12] = h("div", { class: "grow" }, null, -1))
|
|
2240
2235
|
]),
|
|
2241
2236
|
content: Q(() => [
|
|
2242
2237
|
m(Xl, {
|
|
@@ -2245,30 +2240,30 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2245
2240
|
class: "grid grid-cols-1 gap-2",
|
|
2246
2241
|
"child-class": "flex flex-row p-[8px] gap-2",
|
|
2247
2242
|
"exclude-widge-type": [l(Y).Spacer],
|
|
2248
|
-
"onUpdate:modelValue":
|
|
2243
|
+
"onUpdate:modelValue": V[7] || (V[7] = (F) => c.value = P(F, c.value))
|
|
2249
2244
|
}, null, 8, ["model-value", "exclude-widge-type"])
|
|
2250
2245
|
]),
|
|
2251
2246
|
_: 1
|
|
2252
2247
|
}),
|
|
2253
2248
|
m(gl, {
|
|
2254
2249
|
modelValue: c.value.widget.config,
|
|
2255
|
-
"onUpdate:modelValue":
|
|
2250
|
+
"onUpdate:modelValue": V[8] || (V[8] = (F) => c.value.widget.config = F),
|
|
2256
2251
|
label: l(x)("report.tile.datasource.main"),
|
|
2257
|
-
config:
|
|
2252
|
+
config: y.value
|
|
2258
2253
|
}, null, 8, ["modelValue", "label", "config"]),
|
|
2259
|
-
s.value ? (
|
|
2254
|
+
s.value ? (f(!0), X(de, { key: 0 }, _e(s.value, (F, u) => (f(), X("div", { key: u }, [
|
|
2260
2255
|
m(gl, {
|
|
2261
2256
|
modelValue: s.value[u],
|
|
2262
2257
|
"onUpdate:modelValue": ($) => s.value[u] = $,
|
|
2263
2258
|
label: l(x)("report.tile.datasource.join", { index: u + 1 }),
|
|
2264
|
-
config:
|
|
2259
|
+
config: y.value,
|
|
2265
2260
|
"main-datasource-config": c.value.widget.config,
|
|
2266
2261
|
closeable: !0,
|
|
2267
|
-
onClickClose: ($) =>
|
|
2262
|
+
onClickClose: ($) => z(u)
|
|
2268
2263
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
|
|
2269
2264
|
]))), 128)) : E("", !0),
|
|
2270
2265
|
h("div", Ht, [
|
|
2271
|
-
m(
|
|
2266
|
+
m(j, {
|
|
2272
2267
|
label: l(x)("report.tile.datasource.joinButton"),
|
|
2273
2268
|
variant: "secondary",
|
|
2274
2269
|
icon: "add",
|
|
@@ -2276,12 +2271,12 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2276
2271
|
"border-color": "primary",
|
|
2277
2272
|
"text-color": "primary",
|
|
2278
2273
|
class: "w-full",
|
|
2279
|
-
onClick:
|
|
2274
|
+
onClick: V[9] || (V[9] = (F) => v())
|
|
2280
2275
|
}, null, 8, ["label"])
|
|
2281
2276
|
])
|
|
2282
2277
|
]),
|
|
2283
2278
|
_: 1
|
|
2284
|
-
}, 512)) : (
|
|
2279
|
+
}, 512)) : (f(), R(d, { key: 0 }))
|
|
2285
2280
|
]),
|
|
2286
2281
|
_: 1
|
|
2287
2282
|
}, 8, ["model-value"]);
|
|
@@ -2299,7 +2294,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2299
2294
|
set: (x) => {
|
|
2300
2295
|
t("update:model", { ...e.model, showLabel: x });
|
|
2301
2296
|
}
|
|
2302
|
-
}),
|
|
2297
|
+
}), C = k({
|
|
2303
2298
|
get: () => e.model.labelRotation ?? 0,
|
|
2304
2299
|
set: (x) => t("update:model", { ...e.model, labelRotation: x })
|
|
2305
2300
|
}), c = k({
|
|
@@ -2332,8 +2327,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2332
2327
|
{ icon: "format_align_right", value: Ze.end, tooltip: "anchorEnd" }
|
|
2333
2328
|
];
|
|
2334
2329
|
return (x, A) => {
|
|
2335
|
-
const n = M("FmCheckbox"), v = M("FmButton"),
|
|
2336
|
-
return
|
|
2330
|
+
const n = M("FmCheckbox"), v = M("FmButton"), z = M("FmTooltip"), P = M("FmTextField"), y = M("FmStepperField");
|
|
2331
|
+
return f(), X("div", Gt, [
|
|
2337
2332
|
m(n, {
|
|
2338
2333
|
modelValue: U.value,
|
|
2339
2334
|
"onUpdate:modelValue": A[0] || (A[0] = (s) => U.value = s),
|
|
@@ -2345,8 +2340,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2345
2340
|
ke(h("div", Yt, [
|
|
2346
2341
|
h("p", Jt, J(l(a)("report.section.datasource.alignment.textAlignment")), 1),
|
|
2347
2342
|
h("div", Kt, [
|
|
2348
|
-
(
|
|
2349
|
-
key:
|
|
2343
|
+
(f(), X(de, null, _e(r, ({ icon: s, value: O, tooltip: N }) => m(z, {
|
|
2344
|
+
key: O,
|
|
2350
2345
|
variant: "plain",
|
|
2351
2346
|
placement: "top",
|
|
2352
2347
|
content: l(a)(`report.section.datasource.alignment.alignOptions.${N}`),
|
|
@@ -2356,10 +2351,10 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2356
2351
|
m(v, {
|
|
2357
2352
|
"append-icon": s,
|
|
2358
2353
|
variant: "tertiary",
|
|
2359
|
-
"icon-color": x.model.labelAlign ===
|
|
2360
|
-
"bg-color": x.model.labelAlign ===
|
|
2354
|
+
"icon-color": x.model.labelAlign === O ? "neutral-gray-400" : "neutral-gray-300",
|
|
2355
|
+
"bg-color": x.model.labelAlign === O ? "neutral-gray-100" : "neutral-white",
|
|
2361
2356
|
class: "rounded-sm",
|
|
2362
|
-
onClick: (
|
|
2357
|
+
onClick: (b) => L(O)
|
|
2363
2358
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2364
2359
|
]),
|
|
2365
2360
|
_: 2
|
|
@@ -2367,8 +2362,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2367
2362
|
]),
|
|
2368
2363
|
h("p", Qt, J(l(a)("report.section.datasource.alignment.anchor")), 1),
|
|
2369
2364
|
h("div", Zt, [
|
|
2370
|
-
(
|
|
2371
|
-
key:
|
|
2365
|
+
(f(), X(de, null, _e(i, ({ icon: s, value: O, tooltip: N }) => m(z, {
|
|
2366
|
+
key: O,
|
|
2372
2367
|
variant: "plain",
|
|
2373
2368
|
placement: "top",
|
|
2374
2369
|
content: l(a)(`report.section.datasource.alignment.anchorOptions.${N}`),
|
|
@@ -2378,18 +2373,18 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2378
2373
|
m(v, {
|
|
2379
2374
|
"append-icon": s,
|
|
2380
2375
|
variant: "tertiary",
|
|
2381
|
-
"icon-color": x.model.labelAnchor ===
|
|
2382
|
-
"bg-color": x.model.labelAnchor ===
|
|
2376
|
+
"icon-color": x.model.labelAnchor === O ? "neutral-gray-400" : "neutral-gray-300",
|
|
2377
|
+
"bg-color": x.model.labelAnchor === O ? "neutral-gray-100" : "neutral-white",
|
|
2383
2378
|
class: "rounded-sm",
|
|
2384
|
-
onClick: (
|
|
2379
|
+
onClick: (b) => o(O)
|
|
2385
2380
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2386
2381
|
]),
|
|
2387
2382
|
_: 2
|
|
2388
2383
|
}, 1032, ["content"])), 64))
|
|
2389
2384
|
]),
|
|
2390
2385
|
m(P, {
|
|
2391
|
-
modelValue:
|
|
2392
|
-
"onUpdate:modelValue": A[1] || (A[1] = (s) =>
|
|
2386
|
+
modelValue: C.value,
|
|
2387
|
+
"onUpdate:modelValue": A[1] || (A[1] = (s) => C.value = s),
|
|
2393
2388
|
label: l(a)("report.section.datasource.alignment.rotation"),
|
|
2394
2389
|
type: "number",
|
|
2395
2390
|
min: -180,
|
|
@@ -2402,7 +2397,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2402
2397
|
label: l(a)("report.section.datasource.alignment.offset"),
|
|
2403
2398
|
type: "number"
|
|
2404
2399
|
}, null, 8, ["modelValue", "label"]),
|
|
2405
|
-
m(
|
|
2400
|
+
m(y, {
|
|
2406
2401
|
modelValue: T.value,
|
|
2407
2402
|
"onUpdate:modelValue": A[3] || (A[3] = (s) => T.value = s),
|
|
2408
2403
|
label: l(a)("report.section.datasource.fontSize"),
|
|
@@ -2427,7 +2422,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2427
2422
|
set: (n) => {
|
|
2428
2423
|
t("update:model", { ...e.model, showX: n });
|
|
2429
2424
|
}
|
|
2430
|
-
}),
|
|
2425
|
+
}), C = k({
|
|
2431
2426
|
get: () => e.model.showXGrid ?? !1,
|
|
2432
2427
|
set: (n) => {
|
|
2433
2428
|
t("update:model", { ...e.model, showXGrid: n });
|
|
@@ -2467,13 +2462,13 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2467
2462
|
}, 500), A = He((n) => {
|
|
2468
2463
|
t("update:model", { ...e.model, yTitle: n });
|
|
2469
2464
|
}, 500);
|
|
2470
|
-
return
|
|
2471
|
-
var n, v,
|
|
2472
|
-
!e.model.xTitle && ((v = (n = e.model.metrics) == null ? void 0 : n[0]) != null && v.label) && x(e.model.metrics[0].label), !e.model.yTitle && ((P = (
|
|
2465
|
+
return Cl(() => {
|
|
2466
|
+
var n, v, z, P;
|
|
2467
|
+
!e.model.xTitle && ((v = (n = e.model.metrics) == null ? void 0 : n[0]) != null && v.label) && x(e.model.metrics[0].label), !e.model.yTitle && ((P = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && P.label) && A(e.model.dimensions[0].label);
|
|
2473
2468
|
}), (n, v) => {
|
|
2474
|
-
const
|
|
2475
|
-
return
|
|
2476
|
-
m(
|
|
2469
|
+
const z = M("FmCheckbox"), P = M("FmStepperField"), y = M("FmTextField");
|
|
2470
|
+
return f(), X("div", lo, [
|
|
2471
|
+
m(z, {
|
|
2477
2472
|
modelValue: U.value,
|
|
2478
2473
|
"onUpdate:modelValue": v[0] || (v[0] = (s) => U.value = s),
|
|
2479
2474
|
label: l(a)("report.section.datasource.axis.showX"),
|
|
@@ -2481,14 +2476,14 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2481
2476
|
value: !0
|
|
2482
2477
|
}, null, 8, ["modelValue", "label"]),
|
|
2483
2478
|
ke(h("div", to, [
|
|
2484
|
-
m(
|
|
2485
|
-
modelValue:
|
|
2486
|
-
"onUpdate:modelValue": v[1] || (v[1] = (s) =>
|
|
2479
|
+
m(z, {
|
|
2480
|
+
modelValue: C.value,
|
|
2481
|
+
"onUpdate:modelValue": v[1] || (v[1] = (s) => C.value = s),
|
|
2487
2482
|
label: l(a)("report.section.datasource.axis.showGrid"),
|
|
2488
2483
|
"label-placement": "right",
|
|
2489
2484
|
value: !1
|
|
2490
2485
|
}, null, 8, ["modelValue", "label"]),
|
|
2491
|
-
m(
|
|
2486
|
+
m(z, {
|
|
2492
2487
|
modelValue: c.value,
|
|
2493
2488
|
"onUpdate:modelValue": v[2] || (v[2] = (s) => c.value = s),
|
|
2494
2489
|
label: l(a)("report.section.datasource.axis.showTick"),
|
|
@@ -2508,7 +2503,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2508
2503
|
], 512), [
|
|
2509
2504
|
[Te, n.model.showXTick ?? !0]
|
|
2510
2505
|
]),
|
|
2511
|
-
m(
|
|
2506
|
+
m(z, {
|
|
2512
2507
|
modelValue: r.value,
|
|
2513
2508
|
"onUpdate:modelValue": v[4] || (v[4] = (s) => r.value = s),
|
|
2514
2509
|
label: l(a)("report.section.datasource.axis.showTitle"),
|
|
@@ -2516,7 +2511,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2516
2511
|
value: !0
|
|
2517
2512
|
}, null, 8, ["modelValue", "label"]),
|
|
2518
2513
|
ke(h("div", ao, [
|
|
2519
|
-
m(
|
|
2514
|
+
m(y, {
|
|
2520
2515
|
"model-value": n.model.xTitle,
|
|
2521
2516
|
label: l(a)("report.common.title"),
|
|
2522
2517
|
placeholder: l(a)("report.tile.widget.titlePlaceholder"),
|
|
@@ -2537,7 +2532,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2537
2532
|
], 512), [
|
|
2538
2533
|
[Te, n.model.showX ?? !0]
|
|
2539
2534
|
]),
|
|
2540
|
-
m(
|
|
2535
|
+
m(z, {
|
|
2541
2536
|
modelValue: T.value,
|
|
2542
2537
|
"onUpdate:modelValue": v[6] || (v[6] = (s) => T.value = s),
|
|
2543
2538
|
label: l(a)("report.section.datasource.axis.showY"),
|
|
@@ -2545,14 +2540,14 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2545
2540
|
value: !0
|
|
2546
2541
|
}, null, 8, ["modelValue", "label"]),
|
|
2547
2542
|
ke(h("div", no, [
|
|
2548
|
-
m(
|
|
2543
|
+
m(z, {
|
|
2549
2544
|
modelValue: L.value,
|
|
2550
2545
|
"onUpdate:modelValue": v[7] || (v[7] = (s) => L.value = s),
|
|
2551
2546
|
label: l(a)("report.section.datasource.axis.showGrid"),
|
|
2552
2547
|
"label-placement": "right",
|
|
2553
2548
|
value: !1
|
|
2554
2549
|
}, null, 8, ["modelValue", "label"]),
|
|
2555
|
-
m(
|
|
2550
|
+
m(z, {
|
|
2556
2551
|
modelValue: o.value,
|
|
2557
2552
|
"onUpdate:modelValue": v[8] || (v[8] = (s) => o.value = s),
|
|
2558
2553
|
label: l(a)("report.section.datasource.axis.showTick"),
|
|
@@ -2572,7 +2567,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2572
2567
|
], 512), [
|
|
2573
2568
|
[Te, n.model.showYTick ?? !0]
|
|
2574
2569
|
]),
|
|
2575
|
-
m(
|
|
2570
|
+
m(z, {
|
|
2576
2571
|
modelValue: i.value,
|
|
2577
2572
|
"onUpdate:modelValue": v[10] || (v[10] = (s) => i.value = s),
|
|
2578
2573
|
label: l(a)("report.section.datasource.axis.showTitle"),
|
|
@@ -2580,7 +2575,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2580
2575
|
value: !0
|
|
2581
2576
|
}, null, 8, ["modelValue", "label"]),
|
|
2582
2577
|
ke(h("div", so, [
|
|
2583
|
-
m(
|
|
2578
|
+
m(y, {
|
|
2584
2579
|
"model-value": n.model.yTitle,
|
|
2585
2580
|
label: l(a)("report.common.title"),
|
|
2586
2581
|
placeholder: l(a)("report.tile.widget.titlePlaceholder"),
|
|
@@ -2617,7 +2612,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2617
2612
|
{ label: a("report.section.datasource.position.bottom"), value: "bottom" },
|
|
2618
2613
|
{ label: a("report.section.datasource.position.left"), value: "left" },
|
|
2619
2614
|
{ label: a("report.section.datasource.position.right"), value: "right" }
|
|
2620
|
-
],
|
|
2615
|
+
], C = k({
|
|
2621
2616
|
get: () => e.model.showLegend !== void 0 ? e.model.showLegend : e.isCircularWidget === !0,
|
|
2622
2617
|
set: (A) => {
|
|
2623
2618
|
t("update:model", { ...e.model, showLegend: A });
|
|
@@ -2651,11 +2646,11 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2651
2646
|
(A = r.value) == null || A.click();
|
|
2652
2647
|
}
|
|
2653
2648
|
return (A, n) => {
|
|
2654
|
-
const v = M("FmCheckbox"),
|
|
2655
|
-
return
|
|
2649
|
+
const v = M("FmCheckbox"), z = M("FmSelect"), P = M("FmStepperField"), y = M("FmButton");
|
|
2650
|
+
return f(), X("div", uo, [
|
|
2656
2651
|
m(v, {
|
|
2657
|
-
modelValue:
|
|
2658
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) =>
|
|
2652
|
+
modelValue: C.value,
|
|
2653
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => C.value = s),
|
|
2659
2654
|
class: "fm-typo-en-body-lg-400",
|
|
2660
2655
|
value: !1,
|
|
2661
2656
|
label: l(a)("report.section.datasource.legend.showLegend")
|
|
@@ -2667,7 +2662,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2667
2662
|
label: l(a)("report.section.datasource.legend.usePointStyle"),
|
|
2668
2663
|
value: !1
|
|
2669
2664
|
}, null, 8, ["modelValue", "label"]),
|
|
2670
|
-
m(
|
|
2665
|
+
m(z, {
|
|
2671
2666
|
label: l(a)("report.section.datasource.position.showPosition"),
|
|
2672
2667
|
items: U,
|
|
2673
2668
|
"model-value": A.model.legendPosition ?? "top",
|
|
@@ -2689,8 +2684,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2689
2684
|
tabindex: "0",
|
|
2690
2685
|
onClick: x,
|
|
2691
2686
|
onKeydown: [
|
|
2692
|
-
dl(
|
|
2693
|
-
dl(
|
|
2687
|
+
dl(we(x, ["prevent"]), ["enter"]),
|
|
2688
|
+
dl(we(x, ["prevent"]), ["space"])
|
|
2694
2689
|
]
|
|
2695
2690
|
}, [
|
|
2696
2691
|
ke(h("input", {
|
|
@@ -2700,25 +2695,25 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2700
2695
|
type: "color",
|
|
2701
2696
|
class: "legend-color-input cursor-pointer"
|
|
2702
2697
|
}, null, 512), [
|
|
2703
|
-
[
|
|
2698
|
+
[zl, o.value]
|
|
2704
2699
|
])
|
|
2705
2700
|
], 40, po),
|
|
2706
|
-
m(
|
|
2701
|
+
m(y, {
|
|
2707
2702
|
size: "md",
|
|
2708
2703
|
label: l(a)("report.common.apply"),
|
|
2709
2704
|
disabled: o.value === L.value,
|
|
2710
2705
|
onClick: i
|
|
2711
2706
|
}, null, 8, ["label", "disabled"])
|
|
2712
2707
|
], 512), [
|
|
2713
|
-
[Te,
|
|
2708
|
+
[Te, C.value]
|
|
2714
2709
|
])
|
|
2715
2710
|
]);
|
|
2716
2711
|
};
|
|
2717
2712
|
}
|
|
2718
|
-
}), fo = /* @__PURE__ */ kl(vo, [["__scopeId", "data-v-0e072961"]]), go = { class: "flex flex-col gap-8" }, yo = { class: "flex flex-col sm:flex-row items-center" }, bo = { class: "flex flex-col gap-8" }, ho = { class: "flex w-full gap-8 text-fm-color-system-info-300" },
|
|
2713
|
+
}), fo = /* @__PURE__ */ kl(vo, [["__scopeId", "data-v-0e072961"]]), go = { class: "flex flex-col gap-8" }, yo = { class: "flex flex-col sm:flex-row items-center" }, bo = { class: "flex flex-col gap-8" }, ho = { class: "flex w-full gap-8 text-fm-color-system-info-300" }, Co = {
|
|
2719
2714
|
key: 1,
|
|
2720
2715
|
class: "grid grid-cols-1 gap-8 sm:grid-cols-2"
|
|
2721
|
-
},
|
|
2716
|
+
}, wo = ["title"], xo = ["aria-label"], Fo = { class: "min-w-0 truncate text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, Vo = ["value", "onInput", "onChange"], ko = {
|
|
2722
2717
|
key: 0,
|
|
2723
2718
|
class: "flex items-center gap-8"
|
|
2724
2719
|
}, _o = {
|
|
@@ -2755,26 +2750,26 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2755
2750
|
value: ie.breakdown
|
|
2756
2751
|
}
|
|
2757
2752
|
]);
|
|
2758
|
-
function w
|
|
2759
|
-
return e.limitToSeriesMode ? ie.series :
|
|
2753
|
+
function C(w) {
|
|
2754
|
+
return e.limitToSeriesMode ? ie.series : w === ie.breakdown ? ie.breakdown : w === ie.metric ? ie.metric : ie.series;
|
|
2760
2755
|
}
|
|
2761
2756
|
function c() {
|
|
2762
|
-
const
|
|
2757
|
+
const w = Array.isArray(e.model.metrics) ? e.model.metrics : [];
|
|
2763
2758
|
if (!e.model.isBlend)
|
|
2764
|
-
return
|
|
2759
|
+
return w;
|
|
2765
2760
|
const S = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
2766
2761
|
(D) => Array.isArray(D == null ? void 0 : D.metrics) ? D.metrics : []
|
|
2767
2762
|
) : [];
|
|
2768
|
-
return [...
|
|
2763
|
+
return [...w, ...S];
|
|
2769
2764
|
}
|
|
2770
|
-
function T(
|
|
2765
|
+
function T(w, S) {
|
|
2771
2766
|
var W, G;
|
|
2772
|
-
return
|
|
2767
|
+
return w ? ((W = w.label) == null ? void 0 : W.trim()) || ((G = w.name) == null ? void 0 : G.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${S + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${S + 1}`;
|
|
2773
2768
|
}
|
|
2774
|
-
function L(
|
|
2775
|
-
if (
|
|
2769
|
+
function L(w) {
|
|
2770
|
+
if (w === ie.breakdown)
|
|
2776
2771
|
return [];
|
|
2777
|
-
if (
|
|
2772
|
+
if (w === ie.metric) {
|
|
2778
2773
|
const S = c();
|
|
2779
2774
|
if (S.length > 0)
|
|
2780
2775
|
return S.map((D, W) => T(D, W));
|
|
@@ -2783,61 +2778,61 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2783
2778
|
(S, D) => `${a("report.section.datasource.chartColor.series")} ${D + 1}`
|
|
2784
2779
|
);
|
|
2785
2780
|
}
|
|
2786
|
-
function o(
|
|
2787
|
-
return Array.from({ length: Math.max(1,
|
|
2781
|
+
function o(w) {
|
|
2782
|
+
return Array.from({ length: Math.max(1, w) }).map(
|
|
2788
2783
|
(S, D) => `${a("report.section.datasource.chartColor.series")} ${D + 1}`
|
|
2789
2784
|
);
|
|
2790
2785
|
}
|
|
2791
|
-
function r(
|
|
2792
|
-
const D = Array.isArray(
|
|
2786
|
+
function r(w, S) {
|
|
2787
|
+
const D = Array.isArray(w) ? w.length : 0, W = Array.isArray(S) ? S.length : 0;
|
|
2793
2788
|
return Math.max(fe.length, D, W, 1);
|
|
2794
2789
|
}
|
|
2795
2790
|
const i = k(() => {
|
|
2796
|
-
const
|
|
2797
|
-
return
|
|
2791
|
+
const w = c();
|
|
2792
|
+
return w.length === 0 ? [a("report.section.datasource.styleTarget.metric")] : w.map((S, D) => T(S, D));
|
|
2798
2793
|
}), x = le(fe.length), A = le(fe.length);
|
|
2799
|
-
function n(
|
|
2800
|
-
const D = Math.max(1, S), W = Array.isArray(
|
|
2794
|
+
function n(w, S) {
|
|
2795
|
+
const D = Math.max(1, S), W = Array.isArray(w) ? w.length : 0, G = W > 0 ? Math.ceil(W / D) : 0;
|
|
2801
2796
|
return Math.max(fe.length, G, 1);
|
|
2802
2797
|
}
|
|
2803
2798
|
const v = k(() => {
|
|
2804
|
-
const
|
|
2805
|
-
return Array.from({ length:
|
|
2799
|
+
const w = Math.max(1, A.value);
|
|
2800
|
+
return Array.from({ length: w }).map(
|
|
2806
2801
|
(S, D) => `${a("report.section.datasource.styleTarget.breakdown")} ${D + 1}`
|
|
2807
2802
|
);
|
|
2808
2803
|
});
|
|
2809
|
-
function
|
|
2810
|
-
const D = N(
|
|
2804
|
+
function z(w, S) {
|
|
2805
|
+
const D = N(w) ?? "#000000", W = (G) => {
|
|
2811
2806
|
const q = Number.parseInt(D.slice(G, G + 2), 16);
|
|
2812
2807
|
return Math.round(q + (255 - q) * S).toString(16).padStart(2, "0").toUpperCase();
|
|
2813
2808
|
};
|
|
2814
2809
|
return `#${W(1)}${W(3)}${W(5)}`;
|
|
2815
2810
|
}
|
|
2816
|
-
function P(
|
|
2817
|
-
return Math.min(0.55 + (
|
|
2811
|
+
function P(w) {
|
|
2812
|
+
return Math.min(0.55 + (w - 1) * 0.18, 0.95);
|
|
2818
2813
|
}
|
|
2819
|
-
function
|
|
2820
|
-
return
|
|
2814
|
+
function y(w, S, D) {
|
|
2815
|
+
return w * D + S;
|
|
2821
2816
|
}
|
|
2822
|
-
function s(
|
|
2817
|
+
function s(w, S, D, W) {
|
|
2823
2818
|
const G = S.length;
|
|
2824
|
-
if (
|
|
2819
|
+
if (w.length === 0 || G <= 0)
|
|
2825
2820
|
return [];
|
|
2826
|
-
const q = el(
|
|
2827
|
-
return
|
|
2828
|
-
const Z = q[te], me = D == null ? void 0 : D[
|
|
2821
|
+
const q = el(w.length);
|
|
2822
|
+
return w.flatMap((H, te) => {
|
|
2823
|
+
const Z = q[te], me = D == null ? void 0 : D[y(te, 0, G)], Le = N(me) ?? Z;
|
|
2829
2824
|
return S.map((Qe, Ae) => {
|
|
2830
|
-
const
|
|
2831
|
-
return W && Ae > 0 ? ul : N(D == null ? void 0 : D[
|
|
2825
|
+
const Ol = y(te, Ae, G), ul = Ae === 0 ? Le : z(Le, P(Ae));
|
|
2826
|
+
return W && Ae > 0 ? ul : N(D == null ? void 0 : D[Ol]) ?? ul;
|
|
2832
2827
|
});
|
|
2833
2828
|
});
|
|
2834
2829
|
}
|
|
2835
|
-
const
|
|
2836
|
-
function N(
|
|
2837
|
-
if (!
|
|
2830
|
+
const O = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
2831
|
+
function N(w) {
|
|
2832
|
+
if (!w)
|
|
2838
2833
|
return null;
|
|
2839
|
-
const S =
|
|
2840
|
-
if (!
|
|
2834
|
+
const S = w.trim();
|
|
2835
|
+
if (!O.test(S))
|
|
2841
2836
|
return null;
|
|
2842
2837
|
if (S.length === 4) {
|
|
2843
2838
|
const D = S.charAt(1), W = S.charAt(2), G = S.charAt(3);
|
|
@@ -2845,23 +2840,23 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2845
2840
|
}
|
|
2846
2841
|
return S.toUpperCase();
|
|
2847
2842
|
}
|
|
2848
|
-
function
|
|
2849
|
-
const
|
|
2850
|
-
return `#${
|
|
2843
|
+
function b() {
|
|
2844
|
+
const w = () => Math.floor(Math.random() * 256).toString(16).padStart(2, "0").toUpperCase();
|
|
2845
|
+
return `#${w()}${w()}${w()}`;
|
|
2851
2846
|
}
|
|
2852
|
-
function
|
|
2847
|
+
function V(w, S) {
|
|
2853
2848
|
const D = el(S);
|
|
2854
|
-
return !Array.isArray(
|
|
2849
|
+
return !Array.isArray(w) || w.length === 0 ? D : Array.from({ length: S }).map((W, G) => {
|
|
2855
2850
|
const q = D[G];
|
|
2856
|
-
return N(
|
|
2851
|
+
return N(w[G]) ?? q;
|
|
2857
2852
|
});
|
|
2858
2853
|
}
|
|
2859
|
-
function d(
|
|
2854
|
+
function d(w, S) {
|
|
2860
2855
|
if (S <= 0)
|
|
2861
2856
|
return [];
|
|
2862
2857
|
const D = Array.from({ length: S }, () => 0), W = /* @__PURE__ */ new Set();
|
|
2863
2858
|
for (let q = 0; q < S; q++) {
|
|
2864
|
-
const H = Number(
|
|
2859
|
+
const H = Number(w == null ? void 0 : w[q]);
|
|
2865
2860
|
Number.isInteger(H) && H >= 1 && H <= S && !W.has(H) && (D[q] = H, W.add(H));
|
|
2866
2861
|
}
|
|
2867
2862
|
let G = 1;
|
|
@@ -2873,12 +2868,12 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2873
2868
|
}
|
|
2874
2869
|
return D;
|
|
2875
2870
|
}
|
|
2876
|
-
const _ = k(() =>
|
|
2877
|
-
() => Array.from({ length: _.value.length }).map((
|
|
2871
|
+
const _ = k(() => I.value === ie.series ? o(x.value) : L(I.value)), K = k(
|
|
2872
|
+
() => Array.from({ length: _.value.length }).map((w, S) => ({
|
|
2878
2873
|
label: `L${S + 1}`,
|
|
2879
2874
|
value: S + 1
|
|
2880
2875
|
}))
|
|
2881
|
-
),
|
|
2876
|
+
), j = k(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap), g = le([]), F = le([]), u = le([]), $ = le(!0), I = le(ie.series), ae = le(!0), se = le(!1), ce = le(!1);
|
|
2882
2877
|
Ve(
|
|
2883
2878
|
[
|
|
2884
2879
|
() => e.model.chartColors,
|
|
@@ -2889,16 +2884,16 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2889
2884
|
() => e.model.isBlend,
|
|
2890
2885
|
() => e.model.joinDatasources
|
|
2891
2886
|
],
|
|
2892
|
-
([
|
|
2893
|
-
se.value = !0,
|
|
2894
|
-
|
|
2887
|
+
([w, S]) => {
|
|
2888
|
+
se.value = !0, I.value = C(S), x.value = r(
|
|
2889
|
+
w,
|
|
2895
2890
|
e.model.chartColorLayers
|
|
2896
2891
|
), A.value = n(
|
|
2897
2892
|
e.model.chartBreakdownColors,
|
|
2898
2893
|
Math.max(1, i.value.length)
|
|
2899
2894
|
);
|
|
2900
|
-
const D =
|
|
2901
|
-
|
|
2895
|
+
const D = I.value === ie.series ? x.value : L(I.value).length;
|
|
2896
|
+
g.value = V(w, D), F.value = d(e.model.chartColorLayers, D), $.value = e.model.chartUseSecondaryMetricShades !== !1, u.value = s(
|
|
2902
2897
|
v.value,
|
|
2903
2898
|
i.value,
|
|
2904
2899
|
e.model.chartBreakdownColors,
|
|
@@ -2908,7 +2903,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2908
2903
|
{ immediate: !0, deep: !0 }
|
|
2909
2904
|
);
|
|
2910
2905
|
function pe() {
|
|
2911
|
-
const
|
|
2906
|
+
const w = I.value === ie.series, S = I.value === ie.series ? fe.length : L(I.value).length, D = V(void 0, S), W = d(void 0, S), G = g.value.length === D.length && g.value.every((Z, me) => Z === D[me]), q = F.value.length === W.length && F.value.every((Z, me) => Z === W[me]), H = s(
|
|
2912
2907
|
Array.from({ length: fe.length }, (Z, me) => `breakdown-${me + 1}`),
|
|
2913
2908
|
i.value,
|
|
2914
2909
|
void 0,
|
|
@@ -2916,27 +2911,27 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2916
2911
|
), te = u.value.length === H.length && u.value.every((Z, me) => Z === H[me]);
|
|
2917
2912
|
return {
|
|
2918
2913
|
...e.model,
|
|
2919
|
-
chartColorBinding:
|
|
2920
|
-
chartColors: G ? void 0 : [...
|
|
2921
|
-
chartColorLayers: q ? void 0 : [...
|
|
2914
|
+
chartColorBinding: w ? void 0 : I.value,
|
|
2915
|
+
chartColors: G ? void 0 : [...g.value],
|
|
2916
|
+
chartColorLayers: q ? void 0 : [...F.value],
|
|
2922
2917
|
chartBreakdownColors: te ? void 0 : [...u.value],
|
|
2923
2918
|
chartUseSecondaryMetricShades: $.value
|
|
2924
2919
|
};
|
|
2925
2920
|
}
|
|
2926
2921
|
function De() {
|
|
2927
|
-
const
|
|
2928
|
-
Al(
|
|
2922
|
+
const w = pe();
|
|
2923
|
+
Al(w) || t("update:model", w);
|
|
2929
2924
|
}
|
|
2930
2925
|
function oe() {
|
|
2931
2926
|
se.value || ce.value || De();
|
|
2932
2927
|
}
|
|
2933
2928
|
Ve(
|
|
2934
2929
|
[
|
|
2935
|
-
|
|
2936
|
-
|
|
2930
|
+
g,
|
|
2931
|
+
F,
|
|
2937
2932
|
u,
|
|
2938
2933
|
$,
|
|
2939
|
-
|
|
2934
|
+
I,
|
|
2940
2935
|
x,
|
|
2941
2936
|
A
|
|
2942
2937
|
],
|
|
@@ -2945,44 +2940,44 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
2945
2940
|
},
|
|
2946
2941
|
{ deep: !0 }
|
|
2947
2942
|
);
|
|
2948
|
-
function xe(
|
|
2949
|
-
const D = [...
|
|
2950
|
-
D[
|
|
2943
|
+
function xe(w, S) {
|
|
2944
|
+
const D = [...g.value], W = el(Math.max(D.length, w + 1))[w];
|
|
2945
|
+
D[w] = N(S) ?? W, g.value = D;
|
|
2951
2946
|
}
|
|
2952
|
-
function Se(
|
|
2953
|
-
xe(
|
|
2947
|
+
function Se(w) {
|
|
2948
|
+
xe(w, b());
|
|
2954
2949
|
}
|
|
2955
|
-
function he(
|
|
2950
|
+
function he(w) {
|
|
2956
2951
|
if (e.limitToSeriesMode)
|
|
2957
2952
|
return;
|
|
2958
|
-
const S = w
|
|
2959
|
-
if (S ===
|
|
2953
|
+
const S = C(w);
|
|
2954
|
+
if (S === I.value)
|
|
2960
2955
|
return;
|
|
2961
2956
|
const D = S === ie.series ? x.value : L(S).length;
|
|
2962
|
-
|
|
2957
|
+
I.value = S, g.value = V(g.value, D), F.value = d(F.value, D), S === ie.breakdown && (u.value = s(
|
|
2963
2958
|
v.value,
|
|
2964
2959
|
i.value,
|
|
2965
2960
|
u.value,
|
|
2966
2961
|
$.value
|
|
2967
2962
|
));
|
|
2968
2963
|
}
|
|
2969
|
-
function Fe(
|
|
2970
|
-
return
|
|
2964
|
+
function Fe(w, S) {
|
|
2965
|
+
return w + 1 === S ? "add" : "remove";
|
|
2971
2966
|
}
|
|
2972
|
-
function ee(
|
|
2973
|
-
const S = Math.max(fe.length, x.value), D =
|
|
2967
|
+
function ee(w) {
|
|
2968
|
+
const S = Math.max(fe.length, x.value), D = w + 1;
|
|
2974
2969
|
if (D === S) {
|
|
2975
2970
|
const Z = S + Ue;
|
|
2976
|
-
x.value = Z,
|
|
2971
|
+
x.value = Z, g.value = V(g.value, Z), F.value = d(F.value, Z);
|
|
2977
2972
|
return;
|
|
2978
2973
|
}
|
|
2979
2974
|
if (S <= fe.length)
|
|
2980
2975
|
return;
|
|
2981
|
-
const G = D, q = Math.max(fe.length, S - Ue), H = [...
|
|
2982
|
-
H.splice(G, Ue), te.splice(G, Ue), x.value = q,
|
|
2976
|
+
const G = D, q = Math.max(fe.length, S - Ue), H = [...g.value], te = [...F.value];
|
|
2977
|
+
H.splice(G, Ue), te.splice(G, Ue), x.value = q, g.value = V(H, q), F.value = d(te, q);
|
|
2983
2978
|
}
|
|
2984
|
-
function Pe(
|
|
2985
|
-
const S = Math.max(fe.length, A.value), D =
|
|
2979
|
+
function Pe(w) {
|
|
2980
|
+
const S = Math.max(fe.length, A.value), D = w + 1;
|
|
2986
2981
|
if (D === S) {
|
|
2987
2982
|
const Le = S + Ue;
|
|
2988
2983
|
A.value = Le, u.value = s(
|
|
@@ -3003,30 +2998,30 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3003
2998
|
$.value
|
|
3004
2999
|
);
|
|
3005
3000
|
}
|
|
3006
|
-
function Ee(
|
|
3007
|
-
const D =
|
|
3001
|
+
function Ee(w, S) {
|
|
3002
|
+
const D = F.value.length;
|
|
3008
3003
|
if (D <= 0)
|
|
3009
3004
|
return;
|
|
3010
3005
|
const W = Number(S);
|
|
3011
3006
|
if (!Number.isInteger(W) || W < 1 || W > D)
|
|
3012
3007
|
return;
|
|
3013
|
-
const G = [...
|
|
3008
|
+
const G = [...F.value], q = G[w];
|
|
3014
3009
|
if (q === W)
|
|
3015
3010
|
return;
|
|
3016
3011
|
const H = G.findIndex(
|
|
3017
|
-
(te, Z) => Z !==
|
|
3012
|
+
(te, Z) => Z !== w && te === W
|
|
3018
3013
|
);
|
|
3019
|
-
H >= 0 && (G[H] = q), G[
|
|
3014
|
+
H >= 0 && (G[H] = q), G[w] = W, F.value = G;
|
|
3020
3015
|
}
|
|
3021
|
-
function We(
|
|
3016
|
+
function We(w, S) {
|
|
3022
3017
|
const D = S.target;
|
|
3023
|
-
D && (ce.value = !0, xe(
|
|
3018
|
+
D && (ce.value = !0, xe(w, D.value));
|
|
3024
3019
|
}
|
|
3025
|
-
function Xe(
|
|
3020
|
+
function Xe(w, S) {
|
|
3026
3021
|
const D = S.target;
|
|
3027
|
-
D && (xe(
|
|
3022
|
+
D && (xe(w, D.value), ce.value = !1, oe());
|
|
3028
3023
|
}
|
|
3029
|
-
function ne(
|
|
3024
|
+
function ne(w, S, D) {
|
|
3030
3025
|
const W = D.target;
|
|
3031
3026
|
if (!W)
|
|
3032
3027
|
return;
|
|
@@ -3037,15 +3032,15 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3037
3032
|
const q = i.value.length;
|
|
3038
3033
|
if (q <= 0)
|
|
3039
3034
|
return;
|
|
3040
|
-
const H =
|
|
3035
|
+
const H = y(w, S, q), te = [...u.value];
|
|
3041
3036
|
if (te[H] = G, $.value && S === 0)
|
|
3042
3037
|
for (let Z = 1; Z < q; Z++) {
|
|
3043
|
-
const me =
|
|
3044
|
-
te[me] =
|
|
3038
|
+
const me = y(w, Z, q);
|
|
3039
|
+
te[me] = z(G, P(Z));
|
|
3045
3040
|
}
|
|
3046
3041
|
u.value = te;
|
|
3047
3042
|
}
|
|
3048
|
-
function Ul(
|
|
3043
|
+
function Ul(w, S, D) {
|
|
3049
3044
|
const W = D.target;
|
|
3050
3045
|
if (!W)
|
|
3051
3046
|
return;
|
|
@@ -3059,39 +3054,39 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3059
3054
|
ce.value = !1, oe();
|
|
3060
3055
|
return;
|
|
3061
3056
|
}
|
|
3062
|
-
const H =
|
|
3057
|
+
const H = y(w, S, q), te = [...u.value];
|
|
3063
3058
|
if (te[H] = G, $.value && S === 0)
|
|
3064
3059
|
for (let Z = 1; Z < q; Z++) {
|
|
3065
|
-
const me =
|
|
3066
|
-
te[me] =
|
|
3060
|
+
const me = y(w, Z, q);
|
|
3061
|
+
te[me] = z(G, P(Z));
|
|
3067
3062
|
}
|
|
3068
3063
|
u.value = te, ce.value = !1, oe();
|
|
3069
3064
|
}
|
|
3070
|
-
function Bl(
|
|
3071
|
-
const D =
|
|
3065
|
+
function Bl(w, S) {
|
|
3066
|
+
const D = b(), W = i.value.length;
|
|
3072
3067
|
if (W <= 0)
|
|
3073
3068
|
return;
|
|
3074
|
-
const G =
|
|
3069
|
+
const G = y(w, S, W), q = [...u.value];
|
|
3075
3070
|
if (q[G] = D, $.value && S === 0)
|
|
3076
3071
|
for (let H = 1; H < W; H++) {
|
|
3077
|
-
const te =
|
|
3078
|
-
q[te] =
|
|
3072
|
+
const te = y(w, H, W);
|
|
3073
|
+
q[te] = z(D, P(H));
|
|
3079
3074
|
}
|
|
3080
3075
|
u.value = q;
|
|
3081
3076
|
}
|
|
3082
|
-
function sl(
|
|
3083
|
-
const D = Array.isArray(
|
|
3077
|
+
function sl(w, S) {
|
|
3078
|
+
const D = Array.isArray(w) ? w : [], W = Array.isArray(S) ? S : [];
|
|
3084
3079
|
return D.length !== W.length ? !1 : D.every((G, q) => G === W[q]);
|
|
3085
3080
|
}
|
|
3086
|
-
function Ll(
|
|
3087
|
-
const D = Array.isArray(
|
|
3081
|
+
function Ll(w, S) {
|
|
3082
|
+
const D = Array.isArray(w) ? w : [], W = Array.isArray(S) ? S : [];
|
|
3088
3083
|
return D.length !== W.length ? !1 : D.every((G, q) => Number(G) === Number(W[q]));
|
|
3089
3084
|
}
|
|
3090
|
-
function Al(
|
|
3091
|
-
return
|
|
3085
|
+
function Al(w) {
|
|
3086
|
+
return w.chartColorBinding === e.model.chartColorBinding && w.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && sl(w.chartColors, e.model.chartColors) && Ll(w.chartColorLayers, e.model.chartColorLayers) && sl(w.chartBreakdownColors, e.model.chartBreakdownColors);
|
|
3092
3087
|
}
|
|
3093
|
-
function Ml(
|
|
3094
|
-
$.value =
|
|
3088
|
+
function Ml(w) {
|
|
3089
|
+
$.value = w, u.value = s(
|
|
3095
3090
|
Array.from({ length: A.value }, (S, D) => `breakdown-${D + 1}`),
|
|
3096
3091
|
i.value,
|
|
3097
3092
|
u.value,
|
|
@@ -3099,24 +3094,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3099
3094
|
);
|
|
3100
3095
|
}
|
|
3101
3096
|
function Nl() {
|
|
3102
|
-
|
|
3103
|
-
Array.from({ length: fe.length }, (
|
|
3097
|
+
I.value = ie.series, x.value = fe.length, A.value = fe.length, g.value = V(void 0, fe.length), F.value = d(void 0, fe.length), $.value = !0, u.value = s(
|
|
3098
|
+
Array.from({ length: fe.length }, (w, S) => `breakdown-${S + 1}`),
|
|
3104
3099
|
i.value,
|
|
3105
3100
|
void 0,
|
|
3106
3101
|
!0
|
|
3107
3102
|
);
|
|
3108
3103
|
}
|
|
3109
|
-
function
|
|
3104
|
+
function jl() {
|
|
3110
3105
|
ae.value = !ae.value;
|
|
3111
3106
|
}
|
|
3112
|
-
function rl(
|
|
3113
|
-
return (
|
|
3107
|
+
function rl(w) {
|
|
3108
|
+
return (w + 1) % Ue === 0;
|
|
3114
3109
|
}
|
|
3115
3110
|
return nl(() => {
|
|
3116
3111
|
ce.value = !1;
|
|
3117
|
-
}), (
|
|
3112
|
+
}), (w, S) => {
|
|
3118
3113
|
const D = M("FmButton"), W = M("FmSelect"), G = M("FmCheckbox");
|
|
3119
|
-
return
|
|
3114
|
+
return f(), X("div", go, [
|
|
3120
3115
|
h("div", yo, [
|
|
3121
3116
|
m(D, {
|
|
3122
3117
|
variant: "tertiary",
|
|
@@ -3125,12 +3120,12 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3125
3120
|
label: l(a)("report.section.datasource.chartColor.title"),
|
|
3126
3121
|
"prepend-icon": ae.value ? "expand_less" : "expand_more",
|
|
3127
3122
|
"aria-expanded": ae.value ? "true" : "false",
|
|
3128
|
-
onClick:
|
|
3123
|
+
onClick: jl
|
|
3129
3124
|
}, null, 8, ["label", "prepend-icon", "aria-expanded"])
|
|
3130
3125
|
]),
|
|
3131
3126
|
ke(h("div", bo, [
|
|
3132
3127
|
m(W, {
|
|
3133
|
-
"model-value":
|
|
3128
|
+
"model-value": I.value,
|
|
3134
3129
|
items: U.value,
|
|
3135
3130
|
"onUpdate:modelValue": he
|
|
3136
3131
|
}, null, 8, ["model-value", "items"]),
|
|
@@ -3144,7 +3139,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3144
3139
|
onClick: Nl
|
|
3145
3140
|
}, null, 8, ["label"])
|
|
3146
3141
|
]),
|
|
3147
|
-
|
|
3142
|
+
I.value === l(ie).breakdown ? (f(), R(G, {
|
|
3148
3143
|
key: 0,
|
|
3149
3144
|
"model-value": $.value,
|
|
3150
3145
|
value: !1,
|
|
@@ -3152,33 +3147,33 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3152
3147
|
"onUpdate:modelValue": S[0] || (S[0] = (q) => Ml(!!q)),
|
|
3153
3148
|
class: "p-4"
|
|
3154
3149
|
}, null, 8, ["model-value", "label"])) : E("", !0),
|
|
3155
|
-
|
|
3156
|
-
(
|
|
3150
|
+
I.value !== l(ie).breakdown ? (f(), X("div", Co, [
|
|
3151
|
+
(f(!0), X(de, null, _e(g.value, (q, H) => (f(), X(de, {
|
|
3157
3152
|
key: `series-color-${H}`
|
|
3158
3153
|
}, [
|
|
3159
3154
|
h("div", {
|
|
3160
3155
|
class: $e([
|
|
3161
3156
|
"fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 p-10",
|
|
3162
|
-
|
|
3157
|
+
j.value ? "flex flex-col gap-8" : "flex flex-col gap-8 sm:flex-row sm:items-center sm:justify-between sm:gap-12"
|
|
3163
3158
|
])
|
|
3164
3159
|
}, [
|
|
3165
3160
|
h("span", {
|
|
3166
3161
|
class: $e([
|
|
3167
3162
|
"fm-typo-en-body-lg-600 min-w-0",
|
|
3168
|
-
|
|
3163
|
+
j.value ? "line-clamp-2 break-words" : "whitespace-normal break-words sm:flex-1"
|
|
3169
3164
|
]),
|
|
3170
3165
|
title: _.value[H] || `${l(a)("report.section.datasource.chartColor.color")} ${H + 1}`
|
|
3171
|
-
}, J(_.value[H] || `${l(a)("report.section.datasource.chartColor.color")} ${H + 1}`), 11,
|
|
3166
|
+
}, J(_.value[H] || `${l(a)("report.section.datasource.chartColor.color")} ${H + 1}`), 11, wo),
|
|
3172
3167
|
h("div", {
|
|
3173
3168
|
class: $e([
|
|
3174
3169
|
"flex items-center gap-8",
|
|
3175
|
-
|
|
3170
|
+
j.value ? "justify-between" : "w-full flex-wrap items-center justify-between sm:w-auto sm:flex-nowrap sm:shrink-0"
|
|
3176
3171
|
])
|
|
3177
3172
|
}, [
|
|
3178
|
-
|
|
3173
|
+
j.value ? (f(), R(W, {
|
|
3179
3174
|
key: 0,
|
|
3180
3175
|
class: "min-w-[92px]",
|
|
3181
|
-
"model-value":
|
|
3176
|
+
"model-value": F.value[H],
|
|
3182
3177
|
items: K.value,
|
|
3183
3178
|
"onUpdate:modelValue": (te) => Ee(H, te)
|
|
3184
3179
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : E("", !0),
|
|
@@ -3207,7 +3202,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3207
3202
|
}, null, 8, ["onClick"])
|
|
3208
3203
|
], 2)
|
|
3209
3204
|
], 2),
|
|
3210
|
-
rl(H) ? (
|
|
3205
|
+
rl(H) ? (f(), X("div", ko, [
|
|
3211
3206
|
m(D, {
|
|
3212
3207
|
class: "w-full",
|
|
3213
3208
|
size: "md",
|
|
@@ -3216,8 +3211,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3216
3211
|
}, null, 8, ["icon", "onClick"])
|
|
3217
3212
|
])) : E("", !0)
|
|
3218
3213
|
], 64))), 128))
|
|
3219
|
-
])) : (
|
|
3220
|
-
(
|
|
3214
|
+
])) : (f(), X("div", _o, [
|
|
3215
|
+
(f(!0), X(de, null, _e(v.value, (q, H) => (f(), X(de, {
|
|
3221
3216
|
key: `breakdown-group-${H}`
|
|
3222
3217
|
}, [
|
|
3223
3218
|
h("div", So, [
|
|
@@ -3227,7 +3222,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3227
3222
|
title: q
|
|
3228
3223
|
}, J(q), 9, $o)
|
|
3229
3224
|
]),
|
|
3230
|
-
(
|
|
3225
|
+
(f(!0), X(de, null, _e(i.value, (te, Z) => (f(), X("div", {
|
|
3231
3226
|
key: `${q}-${te}-${Z}`,
|
|
3232
3227
|
class: "flex flex-col items-stretch gap-8 py-4 sm:flex-row sm:items-center sm:justify-between"
|
|
3233
3228
|
}, [
|
|
@@ -3246,13 +3241,13 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3246
3241
|
h("span", {
|
|
3247
3242
|
class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
|
|
3248
3243
|
style: tl({
|
|
3249
|
-
backgroundColor: u.value[
|
|
3244
|
+
backgroundColor: u.value[y(H, Z, i.value.length)]
|
|
3250
3245
|
})
|
|
3251
3246
|
}, null, 4),
|
|
3252
|
-
h("span", Lo, J(u.value[
|
|
3247
|
+
h("span", Lo, J(u.value[y(H, Z, i.value.length)]), 1),
|
|
3253
3248
|
h("input", {
|
|
3254
3249
|
type: "color",
|
|
3255
|
-
value: u.value[
|
|
3250
|
+
value: u.value[y(H, Z, i.value.length)],
|
|
3256
3251
|
class: $e(["absolute inset-0 opacity-0", {
|
|
3257
3252
|
"cursor-not-allowed": $.value && Z > 0,
|
|
3258
3253
|
"cursor-pointer": !($.value && Z > 0)
|
|
@@ -3273,7 +3268,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3273
3268
|
])
|
|
3274
3269
|
]))), 128))
|
|
3275
3270
|
]),
|
|
3276
|
-
rl(H) ? (
|
|
3271
|
+
rl(H) ? (f(), X("div", Mo, [
|
|
3277
3272
|
m(D, {
|
|
3278
3273
|
class: "w-full",
|
|
3279
3274
|
size: "md",
|
|
@@ -3289,7 +3284,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3289
3284
|
]);
|
|
3290
3285
|
};
|
|
3291
3286
|
}
|
|
3292
|
-
}),
|
|
3287
|
+
}), jo = { class: "flex flex-col gap-8" }, Oo = { class: "flex items-center justify-between" }, zo = { class: "fm-typo-en-body-lg-600" }, Io = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Ro = { class: "grid grid-cols-2 gap-8" }, Po = { class: "flex items-center gap-8" }, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wo = /* @__PURE__ */ ue({
|
|
3293
3288
|
__name: "ChartLineStyleSection",
|
|
3294
3289
|
props: {
|
|
3295
3290
|
model: {}
|
|
@@ -3306,24 +3301,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3306
3301
|
value: ie.metric
|
|
3307
3302
|
}
|
|
3308
3303
|
]);
|
|
3309
|
-
function
|
|
3310
|
-
return
|
|
3304
|
+
function C(V) {
|
|
3305
|
+
return V && typeof V == "object" && "value" in V ? C(V.value) : V === ie.metric ? ie.metric : ie.series;
|
|
3311
3306
|
}
|
|
3312
|
-
function c(
|
|
3313
|
-
var K,
|
|
3314
|
-
return
|
|
3307
|
+
function c(V, d) {
|
|
3308
|
+
var K, j;
|
|
3309
|
+
return V ? ((K = V.label) == null ? void 0 : K.trim()) || ((j = V.name) == null ? void 0 : j.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${d + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${d + 1}`;
|
|
3315
3310
|
}
|
|
3316
3311
|
function T() {
|
|
3317
|
-
const
|
|
3312
|
+
const V = Array.isArray(e.model.metrics) ? e.model.metrics : [];
|
|
3318
3313
|
if (!e.model.isBlend)
|
|
3319
|
-
return
|
|
3314
|
+
return V;
|
|
3320
3315
|
const d = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
3321
3316
|
(_) => Array.isArray(_ == null ? void 0 : _.metrics) ? _.metrics : []
|
|
3322
3317
|
) : [];
|
|
3323
|
-
return [...
|
|
3318
|
+
return [...V, ...d];
|
|
3324
3319
|
}
|
|
3325
|
-
function L(
|
|
3326
|
-
if (
|
|
3320
|
+
function L(V) {
|
|
3321
|
+
if (V === ie.metric) {
|
|
3327
3322
|
const d = T();
|
|
3328
3323
|
if (d.length > 0)
|
|
3329
3324
|
return d.map((_, K) => c(_, K));
|
|
@@ -3346,24 +3341,24 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3346
3341
|
value: "dotted"
|
|
3347
3342
|
}
|
|
3348
3343
|
]);
|
|
3349
|
-
function r(
|
|
3350
|
-
return
|
|
3344
|
+
function r(V) {
|
|
3345
|
+
return V && typeof V == "object" && "value" in V ? r(V.value) : V === "dashed" || V === "DASHED" ? "dashed" : V === "dotted" || V === "DOTTED" ? "dotted" : "solid";
|
|
3351
3346
|
}
|
|
3352
|
-
function i(
|
|
3353
|
-
return
|
|
3347
|
+
function i(V) {
|
|
3348
|
+
return V === "dashed" ? "line-style-icon--dashed" : V === "dotted" ? "line-style-icon--dotted" : "line-style-icon--solid";
|
|
3354
3349
|
}
|
|
3355
|
-
function x(
|
|
3356
|
-
return !Array.isArray(
|
|
3350
|
+
function x(V, d) {
|
|
3351
|
+
return !Array.isArray(V) || V.length === 0 ? Array.from({ length: d }).map(
|
|
3357
3352
|
(_, K) => vl[K] ?? "solid"
|
|
3358
3353
|
) : Array.from({ length: d }).map(
|
|
3359
|
-
(_, K) => r(
|
|
3354
|
+
(_, K) => r(V[K])
|
|
3360
3355
|
);
|
|
3361
3356
|
}
|
|
3362
3357
|
const A = k(
|
|
3363
|
-
() =>
|
|
3358
|
+
() => C(e.model.lineStyleBinding)
|
|
3364
3359
|
), n = k(() => L(P.value)), v = k(
|
|
3365
3360
|
() => x(e.model.lineStyles, L(A.value).length)
|
|
3366
|
-
),
|
|
3361
|
+
), z = le([]), P = le(ie.series);
|
|
3367
3362
|
Ve(
|
|
3368
3363
|
[
|
|
3369
3364
|
() => e.model.lineStyles,
|
|
@@ -3372,43 +3367,43 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3372
3367
|
() => e.model.isBlend,
|
|
3373
3368
|
() => e.model.joinDatasources
|
|
3374
3369
|
],
|
|
3375
|
-
([
|
|
3376
|
-
P.value =
|
|
3377
|
-
|
|
3370
|
+
([V, d]) => {
|
|
3371
|
+
P.value = C(d), z.value = x(
|
|
3372
|
+
V,
|
|
3378
3373
|
L(P.value).length
|
|
3379
3374
|
);
|
|
3380
3375
|
},
|
|
3381
3376
|
{ immediate: !0, deep: !0 }
|
|
3382
3377
|
);
|
|
3383
|
-
const
|
|
3384
|
-
function s(
|
|
3385
|
-
const _ = [...
|
|
3386
|
-
_[
|
|
3378
|
+
const y = k(() => P.value !== A.value || z.value.length !== v.value.length ? !0 : z.value.some((V, d) => V !== v.value[d]));
|
|
3379
|
+
function s(V, d) {
|
|
3380
|
+
const _ = [...z.value];
|
|
3381
|
+
_[V] = r(d), z.value = _;
|
|
3387
3382
|
}
|
|
3388
|
-
function
|
|
3389
|
-
const d =
|
|
3383
|
+
function O(V) {
|
|
3384
|
+
const d = C(V);
|
|
3390
3385
|
if (d === P.value)
|
|
3391
3386
|
return;
|
|
3392
3387
|
const _ = L(d).length;
|
|
3393
|
-
P.value = d,
|
|
3388
|
+
P.value = d, z.value = x(z.value, _);
|
|
3394
3389
|
}
|
|
3395
3390
|
function N() {
|
|
3396
|
-
P.value = ie.series,
|
|
3391
|
+
P.value = ie.series, z.value = [...vl];
|
|
3397
3392
|
}
|
|
3398
|
-
function
|
|
3399
|
-
const
|
|
3393
|
+
function b() {
|
|
3394
|
+
const V = P.value === ie.series, d = z.value.every((_) => _ === "solid");
|
|
3400
3395
|
t("update:model", {
|
|
3401
3396
|
...e.model,
|
|
3402
|
-
lineStyleBinding:
|
|
3403
|
-
lineStyles: d ? void 0 : [...
|
|
3397
|
+
lineStyleBinding: V ? void 0 : P.value,
|
|
3398
|
+
lineStyles: d ? void 0 : [...z.value]
|
|
3404
3399
|
});
|
|
3405
3400
|
}
|
|
3406
|
-
return (
|
|
3401
|
+
return (V, d) => {
|
|
3407
3402
|
const _ = M("FmButton"), K = M("FmSelect");
|
|
3408
|
-
return
|
|
3409
|
-
h("div",
|
|
3410
|
-
h("p",
|
|
3411
|
-
h("div",
|
|
3403
|
+
return f(), X("div", jo, [
|
|
3404
|
+
h("div", Oo, [
|
|
3405
|
+
h("p", zo, J(l(a)("report.section.datasource.lineStyle.title")), 1),
|
|
3406
|
+
h("div", Io, [
|
|
3412
3407
|
m(_, {
|
|
3413
3408
|
variant: "tertiary",
|
|
3414
3409
|
"text-color": "text-fm-color-system-info-300",
|
|
@@ -3422,33 +3417,33 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3422
3417
|
"model-value": P.value,
|
|
3423
3418
|
items: U.value,
|
|
3424
3419
|
label: l(a)("report.section.datasource.styleTarget.title"),
|
|
3425
|
-
"onUpdate:modelValue":
|
|
3420
|
+
"onUpdate:modelValue": O
|
|
3426
3421
|
}, null, 8, ["model-value", "items", "label"]),
|
|
3427
3422
|
h("div", Ro, [
|
|
3428
|
-
(
|
|
3429
|
-
key:
|
|
3423
|
+
(f(!0), X(de, null, _e(z.value, (j, g) => (f(), X("div", {
|
|
3424
|
+
key: g,
|
|
3430
3425
|
class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
|
|
3431
3426
|
}, [
|
|
3432
3427
|
h("div", Po, [
|
|
3433
3428
|
h("span", {
|
|
3434
|
-
class: $e(["line-style-icon", i(
|
|
3429
|
+
class: $e(["line-style-icon", i(j)]),
|
|
3435
3430
|
"aria-hidden": "true"
|
|
3436
3431
|
}, null, 2),
|
|
3437
|
-
h("span", Eo, J(n.value[
|
|
3432
|
+
h("span", Eo, J(n.value[g] || `${l(a)("report.section.datasource.lineStyle.line")} ${g + 1}`), 1)
|
|
3438
3433
|
]),
|
|
3439
3434
|
m(K, {
|
|
3440
|
-
"model-value":
|
|
3435
|
+
"model-value": j,
|
|
3441
3436
|
items: o.value,
|
|
3442
3437
|
class: "w-[130px]",
|
|
3443
|
-
"onUpdate:modelValue": (
|
|
3438
|
+
"onUpdate:modelValue": (F) => s(g, F)
|
|
3444
3439
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])
|
|
3445
3440
|
]))), 128))
|
|
3446
3441
|
]),
|
|
3447
3442
|
m(_, {
|
|
3448
3443
|
size: "md",
|
|
3449
3444
|
label: l(a)("report.common.apply"),
|
|
3450
|
-
disabled: !
|
|
3451
|
-
onClick:
|
|
3445
|
+
disabled: !y.value,
|
|
3446
|
+
onClick: b
|
|
3452
3447
|
}, null, 8, ["label", "disabled"])
|
|
3453
3448
|
]);
|
|
3454
3449
|
};
|
|
@@ -3496,7 +3491,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3496
3491
|
},
|
|
3497
3492
|
{ deep: !0 }
|
|
3498
3493
|
);
|
|
3499
|
-
const t = B, a = p, { t: U } = ge(),
|
|
3494
|
+
const t = B, a = p, { t: U } = ge(), C = k(() => t.config.type === Y.Circular), c = k(
|
|
3500
3495
|
() => t.config.type === Y.StackBarChart || t.config.type === Y.ClusteredStackBarChart
|
|
3501
3496
|
), T = k(
|
|
3502
3497
|
() => t.config.type === Y.LineChart || t.config.type === Y.StackLineChart
|
|
@@ -3519,25 +3514,25 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3519
3514
|
});
|
|
3520
3515
|
return (r, i) => {
|
|
3521
3516
|
const x = M("FmButton"), A = M("FmCheckbox"), n = M("FmStepperField");
|
|
3522
|
-
return
|
|
3517
|
+
return f(), X(de, null, [
|
|
3523
3518
|
i[9] || (i[9] = h("div", { class: "grow" }, null, -1)),
|
|
3524
|
-
t.closeable ? (
|
|
3519
|
+
t.closeable ? (f(), R(x, {
|
|
3525
3520
|
key: 0,
|
|
3526
3521
|
icon: "close",
|
|
3527
3522
|
variant: "tertiary",
|
|
3528
3523
|
size: "md",
|
|
3529
|
-
onClick: i[0] || (i[0] =
|
|
3524
|
+
onClick: i[0] || (i[0] = we((v) => a("click-close"), ["stop"]))
|
|
3530
3525
|
})) : E("", !0),
|
|
3531
3526
|
h("div", qo, [
|
|
3532
|
-
t.config.hasChart ? (
|
|
3527
|
+
t.config.hasChart ? (f(), R(No, {
|
|
3533
3528
|
key: 0,
|
|
3534
3529
|
model: e.value,
|
|
3535
3530
|
"show-layer-control": c.value && o.value,
|
|
3536
|
-
"limit-to-series-mode":
|
|
3531
|
+
"limit-to-series-mode": C.value,
|
|
3537
3532
|
"onUpdate:model": i[1] || (i[1] = (v) => e.value = v)
|
|
3538
3533
|
}, null, 8, ["model", "show-layer-control", "limit-to-series-mode"])) : E("", !0),
|
|
3539
|
-
t.config.hasChart && T.value ? (
|
|
3540
|
-
t.config.hasChart && T.value ? (
|
|
3534
|
+
t.config.hasChart && T.value ? (f(), X("div", Ho)) : E("", !0),
|
|
3535
|
+
t.config.hasChart && T.value ? (f(), R(Xo, {
|
|
3541
3536
|
key: 2,
|
|
3542
3537
|
model: e.value,
|
|
3543
3538
|
"onUpdate:model": i[2] || (i[2] = (v) => e.value = v)
|
|
@@ -3546,30 +3541,30 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3546
3541
|
h("div", Go, [
|
|
3547
3542
|
h("p", Yo, J(l(U)("report.section.style.configuration")), 1),
|
|
3548
3543
|
h("div", Jo, [
|
|
3549
|
-
c.value ? (
|
|
3544
|
+
c.value ? (f(), R(A, {
|
|
3550
3545
|
key: 0,
|
|
3551
3546
|
modelValue: o.value,
|
|
3552
3547
|
"onUpdate:modelValue": i[3] || (i[3] = (v) => o.value = v),
|
|
3553
3548
|
class: "fm-typo-en-body-lg-400",
|
|
3554
3549
|
label: l(U)("report.section.datasource.stackBar.overlapBars")
|
|
3555
3550
|
}, null, 8, ["modelValue", "label"])) : E("", !0),
|
|
3556
|
-
t.config.hasLabel ? (
|
|
3551
|
+
t.config.hasLabel ? (f(), R(eo, {
|
|
3557
3552
|
key: 1,
|
|
3558
3553
|
model: e.value,
|
|
3559
3554
|
"onUpdate:model": i[4] || (i[4] = (v) => e.value = v)
|
|
3560
3555
|
}, null, 8, ["model"])) : E("", !0),
|
|
3561
|
-
t.config.hasLegend ? (
|
|
3556
|
+
t.config.hasLegend ? (f(), R(fo, {
|
|
3562
3557
|
key: 2,
|
|
3563
3558
|
model: e.value,
|
|
3564
|
-
"is-circular-widget":
|
|
3559
|
+
"is-circular-widget": C.value,
|
|
3565
3560
|
"onUpdate:model": i[5] || (i[5] = (v) => e.value = v)
|
|
3566
3561
|
}, null, 8, ["model", "is-circular-widget"])) : E("", !0),
|
|
3567
|
-
t.config.hasXy ? (
|
|
3562
|
+
t.config.hasXy ? (f(), R(ro, {
|
|
3568
3563
|
key: 3,
|
|
3569
3564
|
model: e.value,
|
|
3570
3565
|
"onUpdate:model": i[6] || (i[6] = (v) => e.value = v)
|
|
3571
3566
|
}, null, 8, ["model"])) : E("", !0),
|
|
3572
|
-
t.config.hasXy ? (
|
|
3567
|
+
t.config.hasXy ? (f(), R(n, {
|
|
3573
3568
|
key: 4,
|
|
3574
3569
|
modelValue: L.value,
|
|
3575
3570
|
"onUpdate:modelValue": i[7] || (i[7] = (v) => L.value = v),
|
|
@@ -3612,7 +3607,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3612
3607
|
colWidths: c((x = t.layout) == null ? void 0 : x.colWidths)
|
|
3613
3608
|
});
|
|
3614
3609
|
}
|
|
3615
|
-
}),
|
|
3610
|
+
}), C = k(() => {
|
|
3616
3611
|
var i;
|
|
3617
3612
|
return ((i = t.columns) == null ? void 0 : i.length) ?? 0;
|
|
3618
3613
|
});
|
|
@@ -3620,8 +3615,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3620
3615
|
if (!i) return null;
|
|
3621
3616
|
const x = Object.entries(i).reduce(
|
|
3622
3617
|
(A, n) => {
|
|
3623
|
-
const [v,
|
|
3624
|
-
return
|
|
3618
|
+
const [v, z] = n;
|
|
3619
|
+
return z && z >= 40 ? A[v] = z : A[v] = null, A;
|
|
3625
3620
|
},
|
|
3626
3621
|
{}
|
|
3627
3622
|
);
|
|
@@ -3650,7 +3645,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3650
3645
|
}
|
|
3651
3646
|
return (i, x) => {
|
|
3652
3647
|
const A = M("FmStepperField");
|
|
3653
|
-
return
|
|
3648
|
+
return f(), X("div", Qo, [
|
|
3654
3649
|
h("div", Zo, [
|
|
3655
3650
|
h("div", ea, [
|
|
3656
3651
|
h("p", la, J(l(e)("report.section.datasource.rowHeight")), 1)
|
|
@@ -3671,9 +3666,9 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3671
3666
|
h("div", na, [
|
|
3672
3667
|
h("p", ia, J(l(e)("report.section.datasource.columnWidth")), 1)
|
|
3673
3668
|
]),
|
|
3674
|
-
|
|
3669
|
+
C.value > 0 ? (f(), X("div", sa, [
|
|
3675
3670
|
h("p", ra, J(l(e)("report.section.datasource.columnWidthHelper")), 1),
|
|
3676
|
-
(
|
|
3671
|
+
(f(!0), X(de, null, _e(C.value, (n) => (f(), R(A, {
|
|
3677
3672
|
key: r(n - 1),
|
|
3678
3673
|
type: "number",
|
|
3679
3674
|
"model-value": o(n - 1),
|
|
@@ -3683,7 +3678,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3683
3678
|
placeholder: l(e)("report.common.auto"),
|
|
3684
3679
|
"onUpdate:modelValue": (v) => L(n - 1, Number(v) || null)
|
|
3685
3680
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]))), 128))
|
|
3686
|
-
])) : (
|
|
3681
|
+
])) : (f(), X("p", ua, J(l(e)("report.section.datasource.columnWidthUnavailable")), 1))
|
|
3687
3682
|
])
|
|
3688
3683
|
]);
|
|
3689
3684
|
};
|
|
@@ -3709,8 +3704,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3709
3704
|
emits: ["update:modelValue", "update:isEditingStyle"],
|
|
3710
3705
|
setup(B) {
|
|
3711
3706
|
const { t: p, locale: e } = ge(), t = ye(B, "modelValue"), a = k(
|
|
3712
|
-
() => Ke.find((
|
|
3713
|
-
), U = ye(B, "isEditingStyle"),
|
|
3707
|
+
() => Ke.find((y) => y.type === t.value.widget.type)
|
|
3708
|
+
), U = ye(B, "isEditingStyle"), C = le(!1), { markStyleEditing: c, resetStyleEditing: T } = $l(U), L = B, o = [
|
|
3714
3709
|
Y.BarChart,
|
|
3715
3710
|
Y.StackBarChart,
|
|
3716
3711
|
Y.ClusteredStackBarChart,
|
|
@@ -3722,62 +3717,62 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3722
3717
|
rowHeight: t.value.widget.config.rowHeight,
|
|
3723
3718
|
colWidths: t.value.widget.config.colWidths
|
|
3724
3719
|
}),
|
|
3725
|
-
set: (
|
|
3726
|
-
c(), t.value.widget.config.rowHeight =
|
|
3720
|
+
set: (y) => {
|
|
3721
|
+
c(), t.value.widget.config.rowHeight = y.rowHeight, t.value.widget.config.colWidths = y.colWidths;
|
|
3727
3722
|
}
|
|
3728
3723
|
}), n = k({
|
|
3729
3724
|
get: () => t.value.widget.config,
|
|
3730
|
-
set: (
|
|
3731
|
-
c(), t.value.widget.config =
|
|
3725
|
+
set: (y) => {
|
|
3726
|
+
c(), t.value.widget.config = y;
|
|
3732
3727
|
}
|
|
3733
3728
|
}), v = k(() => {
|
|
3734
|
-
var
|
|
3735
|
-
return i.value ? ((s = (
|
|
3736
|
-
key:
|
|
3737
|
-
label:
|
|
3729
|
+
var y, s;
|
|
3730
|
+
return i.value ? ((s = (y = L.tableResponse) == null ? void 0 : y.columns) == null ? void 0 : s.map((O) => ({
|
|
3731
|
+
key: O.key,
|
|
3732
|
+
label: O.label
|
|
3738
3733
|
}))) ?? [] : [];
|
|
3739
3734
|
});
|
|
3740
|
-
function
|
|
3741
|
-
|
|
3735
|
+
function z() {
|
|
3736
|
+
C.value = !0;
|
|
3742
3737
|
}
|
|
3743
3738
|
function P() {
|
|
3744
|
-
|
|
3739
|
+
C.value = !1, T();
|
|
3745
3740
|
}
|
|
3746
|
-
return (
|
|
3747
|
-
const
|
|
3748
|
-
return
|
|
3741
|
+
return (y, s) => {
|
|
3742
|
+
const O = M("FmCircularProgress"), N = M("FmButton");
|
|
3743
|
+
return C.value ? (f(), X("div", ma, [
|
|
3749
3744
|
m(Ye, {
|
|
3750
|
-
"model-value":
|
|
3745
|
+
"model-value": C.value,
|
|
3751
3746
|
icon: "keyboard_double_arrow_right",
|
|
3752
3747
|
title: l(p)("report.section.style.title"),
|
|
3753
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3748
|
+
"onUpdate:modelValue": s[0] || (s[0] = (b) => b ? z() : P())
|
|
3754
3749
|
}, null, 8, ["model-value", "title"]),
|
|
3755
|
-
t.value ? (
|
|
3756
|
-
r.value ? (
|
|
3750
|
+
t.value ? (f(), X("div", ca, [
|
|
3751
|
+
r.value ? (f(), R(Ko, {
|
|
3757
3752
|
key: 0,
|
|
3758
3753
|
modelValue: n.value,
|
|
3759
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
3754
|
+
"onUpdate:modelValue": s[1] || (s[1] = (b) => n.value = b),
|
|
3760
3755
|
config: a.value
|
|
3761
3756
|
}, null, 8, ["modelValue", "config"])) : E("", !0),
|
|
3762
|
-
i.value ? (
|
|
3757
|
+
i.value ? (f(), R(da, {
|
|
3763
3758
|
key: 1,
|
|
3764
3759
|
layout: A.value,
|
|
3765
|
-
"onUpdate:layout": s[2] || (s[2] = (
|
|
3760
|
+
"onUpdate:layout": s[2] || (s[2] = (b) => A.value = b),
|
|
3766
3761
|
columns: v.value
|
|
3767
3762
|
}, null, 8, ["layout", "columns"])) : E("", !0)
|
|
3768
|
-
])) : (
|
|
3769
|
-
])) : (
|
|
3763
|
+
])) : (f(), R(O, { key: 0 }))
|
|
3764
|
+
])) : (f(), X("div", {
|
|
3770
3765
|
key: 1,
|
|
3771
3766
|
class: $e([
|
|
3772
3767
|
"bg-fm-color-neutral-white pt-16",
|
|
3773
3768
|
x.value ? "flex h-full w-[156px] flex-col items-center justify-start gap-12 px-12" : "flex h-full w-[88px] flex-col items-center justify-start gap-16"
|
|
3774
3769
|
])
|
|
3775
3770
|
}, [
|
|
3776
|
-
x.value ? (
|
|
3771
|
+
x.value ? (f(), X("button", {
|
|
3777
3772
|
key: 0,
|
|
3778
3773
|
class: "flex flex-col items-center gap-16 fm-typo-en-title-sm-600 text-fm-color-typo-primary",
|
|
3779
3774
|
type: "button",
|
|
3780
|
-
onClick:
|
|
3775
|
+
onClick: z
|
|
3781
3776
|
}, [
|
|
3782
3777
|
m(N, {
|
|
3783
3778
|
variant: "secondary",
|
|
@@ -3787,19 +3782,19 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3787
3782
|
size: "md"
|
|
3788
3783
|
}, null, 8, ["border-color", "text-color"]),
|
|
3789
3784
|
h("span", pa, J(l(p)("report.section.style.title")), 1)
|
|
3790
|
-
])) : (
|
|
3785
|
+
])) : (f(), X(de, { key: 1 }, [
|
|
3791
3786
|
m(N, {
|
|
3792
3787
|
variant: "secondary",
|
|
3793
3788
|
icon: "keyboard_double_arrow_left",
|
|
3794
3789
|
"border-color": l(Me).ColorPrimary,
|
|
3795
3790
|
"text-color": l(Me).ColorPrimary,
|
|
3796
3791
|
size: "md",
|
|
3797
|
-
onClick:
|
|
3792
|
+
onClick: z
|
|
3798
3793
|
}, null, 8, ["border-color", "text-color"]),
|
|
3799
3794
|
h("button", {
|
|
3800
3795
|
class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary [text-orientation:mixed] [writing-mode:vertical-rl]",
|
|
3801
3796
|
type: "button",
|
|
3802
|
-
onClick:
|
|
3797
|
+
onClick: z
|
|
3803
3798
|
}, J(l(p)("report.section.style.title")), 1)
|
|
3804
3799
|
], 64))
|
|
3805
3800
|
], 2));
|
|
@@ -3836,8 +3831,8 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3836
3831
|
], Y.Table], T = k(() => c.includes(e.value.widget.type)), L = le(!1), o = le(null);
|
|
3837
3832
|
return (r, i) => {
|
|
3838
3833
|
const x = M("FmCircularProgress"), A = M("FmButton");
|
|
3839
|
-
return
|
|
3840
|
-
e.value ? (
|
|
3834
|
+
return f(), X("div", null, [
|
|
3835
|
+
e.value ? (f(), X(de, { key: 1 }, [
|
|
3841
3836
|
m(Hl, {
|
|
3842
3837
|
"model-value": !B.hideConfiguration
|
|
3843
3838
|
}, {
|
|
@@ -3873,17 +3868,17 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3873
3868
|
}, 8, ["model-value"]),
|
|
3874
3869
|
h("div", ya, [
|
|
3875
3870
|
h("div", ba, [
|
|
3876
|
-
e.value ? (
|
|
3871
|
+
e.value ? (f(), R(Sl, {
|
|
3877
3872
|
key: 0,
|
|
3878
3873
|
"model-value": e.value,
|
|
3879
3874
|
index: t.index,
|
|
3880
3875
|
"hide-export": !0,
|
|
3881
3876
|
"is-editing-style": L.value,
|
|
3882
3877
|
"onUpdate:tableResponse": i[4] || (i[4] = (n) => o.value = n)
|
|
3883
|
-
}, null, 8, ["model-value", "index", "is-editing-style"])) : (
|
|
3878
|
+
}, null, 8, ["model-value", "index", "is-editing-style"])) : (f(), R(_l, { key: 1 }))
|
|
3884
3879
|
])
|
|
3885
3880
|
]),
|
|
3886
|
-
T.value ? (
|
|
3881
|
+
T.value ? (f(), R(va, {
|
|
3887
3882
|
key: 0,
|
|
3888
3883
|
modelValue: e.value,
|
|
3889
3884
|
"onUpdate:modelValue": i[5] || (i[5] = (n) => e.value = n),
|
|
@@ -3891,14 +3886,14 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3891
3886
|
"onUpdate:isEditingStyle": i[6] || (i[6] = (n) => L.value = n),
|
|
3892
3887
|
"table-response": o.value
|
|
3893
3888
|
}, null, 8, ["modelValue", "is-editing-style", "table-response"])) : E("", !0)
|
|
3894
|
-
], 64)) : (
|
|
3889
|
+
], 64)) : (f(), R(x, { key: 0 }))
|
|
3895
3890
|
]);
|
|
3896
3891
|
};
|
|
3897
3892
|
}
|
|
3898
|
-
}),
|
|
3893
|
+
}), Ca = {
|
|
3899
3894
|
key: 0,
|
|
3900
3895
|
class: "flex w-full justify-center items-center"
|
|
3901
|
-
},
|
|
3896
|
+
}, wa = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, xa = /* @__PURE__ */ ue({
|
|
3902
3897
|
__name: "TileEditorMobile",
|
|
3903
3898
|
props: /* @__PURE__ */ ve({
|
|
3904
3899
|
hideConfiguration: { type: Boolean, required: !0, default: !1 },
|
|
@@ -3912,22 +3907,22 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3912
3907
|
emits: /* @__PURE__ */ ve(["hideConfiguration"], ["update:modelValue"]),
|
|
3913
3908
|
setup(B, { emit: p }) {
|
|
3914
3909
|
const e = ye(B, "modelValue"), t = B, a = k(
|
|
3915
|
-
() => Ke.find((
|
|
3910
|
+
() => Ke.find((C) => {
|
|
3916
3911
|
var c;
|
|
3917
|
-
return
|
|
3912
|
+
return C.type === ((c = e.value) == null ? void 0 : c.widget.type);
|
|
3918
3913
|
})
|
|
3919
3914
|
), U = p;
|
|
3920
|
-
return (
|
|
3915
|
+
return (C, c) => {
|
|
3921
3916
|
const T = M("FmCircularProgress");
|
|
3922
|
-
return
|
|
3923
|
-
e.value ? (
|
|
3924
|
-
h("div",
|
|
3925
|
-
e.value ? (
|
|
3917
|
+
return f(), X("div", null, [
|
|
3918
|
+
e.value ? (f(), X(de, { key: 1 }, [
|
|
3919
|
+
h("div", wa, [
|
|
3920
|
+
e.value ? (f(), R(Sl, {
|
|
3926
3921
|
key: 0,
|
|
3927
3922
|
"model-value": e.value,
|
|
3928
3923
|
index: t.index,
|
|
3929
3924
|
"hide-export": !0
|
|
3930
|
-
}, null, 8, ["model-value", "index"])) : (
|
|
3925
|
+
}, null, 8, ["model-value", "index"])) : (f(), R(_l, { key: 1 }))
|
|
3931
3926
|
]),
|
|
3932
3927
|
m(Dl, {
|
|
3933
3928
|
modelValue: e.value,
|
|
@@ -3938,7 +3933,7 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3938
3933
|
U("hideConfiguration", L);
|
|
3939
3934
|
})
|
|
3940
3935
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
3941
|
-
], 64)) : (
|
|
3936
|
+
], 64)) : (f(), X("div", Ca, [
|
|
3942
3937
|
m(T)
|
|
3943
3938
|
]))
|
|
3944
3939
|
]);
|
|
@@ -3950,71 +3945,71 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
3950
3945
|
}, Va = {
|
|
3951
3946
|
key: 0,
|
|
3952
3947
|
class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
|
|
3953
|
-
},
|
|
3948
|
+
}, Oa = /* @__PURE__ */ ue({
|
|
3954
3949
|
__name: "TileEditor",
|
|
3955
3950
|
setup(B) {
|
|
3956
|
-
const p = Rl(), e = Pl(), t = xl(), { globalFilters: a } =
|
|
3951
|
+
const p = Rl(), e = Pl(), t = xl(), { globalFilters: a } = Oe(Kl()), { currentSelectWidgetType: U, editingReport: C, editingTile: c, editingTileIndex: T } = Oe(t), { breakpoints: L } = Vl(), { promptMessage: o } = Fl(), { t: r, te: i } = ge(), x = k(() => {
|
|
3957
3952
|
var s;
|
|
3958
3953
|
const P = (s = c.value) == null ? void 0 : s.widget.type;
|
|
3959
3954
|
if (!P)
|
|
3960
3955
|
return r("report.editor.newReport");
|
|
3961
|
-
const
|
|
3962
|
-
return i(
|
|
3956
|
+
const y = `report.widget.types.${P.toLowerCase()}`;
|
|
3957
|
+
return i(y) ? r(y) : P;
|
|
3963
3958
|
}), A = le(!1);
|
|
3964
3959
|
function n() {
|
|
3965
3960
|
U.value = void 0, c.value = void 0, T.value = -1, e.back();
|
|
3966
3961
|
}
|
|
3967
3962
|
async function v() {
|
|
3968
|
-
var
|
|
3969
|
-
if (!
|
|
3963
|
+
var y;
|
|
3964
|
+
if (!C.value) return;
|
|
3970
3965
|
await o({
|
|
3971
3966
|
title: r("report.tile.save.title"),
|
|
3972
|
-
message: r("report.tile.save.confirm", { title: (
|
|
3973
|
-
}) && c.value && (T.value === -1 ?
|
|
3967
|
+
message: r("report.tile.save.confirm", { title: (y = c.value) == null ? void 0 : y.widget.title })
|
|
3968
|
+
}) && c.value && (T.value === -1 ? C.value.tiles.push(c.value) : C.value.tiles[T.value] = c.value, n());
|
|
3974
3969
|
}
|
|
3975
|
-
async function
|
|
3976
|
-
var
|
|
3977
|
-
if (!
|
|
3970
|
+
async function z() {
|
|
3971
|
+
var y;
|
|
3972
|
+
if (!C.value) return;
|
|
3978
3973
|
await o({
|
|
3979
3974
|
title: r("report.tile.cancel.title"),
|
|
3980
|
-
message: r("report.tile.cancel.confirm", { title: (
|
|
3975
|
+
message: r("report.tile.cancel.confirm", { title: (y = c.value) == null ? void 0 : y.widget.title })
|
|
3981
3976
|
}) && n();
|
|
3982
3977
|
}
|
|
3983
|
-
return
|
|
3984
|
-
|
|
3985
|
-
}), (P,
|
|
3978
|
+
return Cl(() => {
|
|
3979
|
+
C.value || e.push({ name: "reports" });
|
|
3980
|
+
}), (P, y) => {
|
|
3986
3981
|
const s = M("FmPageHead");
|
|
3987
|
-
return
|
|
3982
|
+
return f(), R(Gl, null, {
|
|
3988
3983
|
default: Q(() => [
|
|
3989
3984
|
m(s, {
|
|
3990
3985
|
actions: [
|
|
3991
3986
|
{ label: l(r)("report.common.cancel"), value: "cancel", isPrimary: !1 },
|
|
3992
3987
|
{ label: l(r)("report.common.save"), value: "save", isPrimary: !0 }
|
|
3993
3988
|
],
|
|
3994
|
-
"onClick:action":
|
|
3995
|
-
|
|
3989
|
+
"onClick:action": y[0] || (y[0] = (O) => {
|
|
3990
|
+
O === "cancel" && z(), O === "save" && v();
|
|
3996
3991
|
})
|
|
3997
3992
|
}, {
|
|
3998
3993
|
title: Q(() => [
|
|
3999
|
-
l(L).lg || l(L).md ? (
|
|
3994
|
+
l(L).lg || l(L).md ? (f(), X("p", Fa, J(x.value), 1)) : E("", !0)
|
|
4000
3995
|
]),
|
|
4001
3996
|
_: 1
|
|
4002
3997
|
}, 8, ["actions"]),
|
|
4003
|
-
l(c) && (l(a) || []).some((
|
|
4004
|
-
const N =
|
|
4005
|
-
return Array.isArray(N) && typeof
|
|
4006
|
-
}) ? (
|
|
3998
|
+
l(c) && (l(a) || []).some((O) => {
|
|
3999
|
+
const N = O.tileIds, b = l(c) && l(c).id;
|
|
4000
|
+
return Array.isArray(N) && typeof b == "string" && N.includes(b);
|
|
4001
|
+
}) ? (f(), X("div", Va, [
|
|
4007
4002
|
m(Ql)
|
|
4008
4003
|
])) : E("", !0),
|
|
4009
|
-
l(c) ? (
|
|
4004
|
+
l(c) ? (f(), R(hl(l(L).lg || l(L).md ? ha : xa), {
|
|
4010
4005
|
key: 1,
|
|
4011
4006
|
modelValue: l(c),
|
|
4012
|
-
"onUpdate:modelValue":
|
|
4007
|
+
"onUpdate:modelValue": y[1] || (y[1] = (O) => Il(c) ? c.value = O : null),
|
|
4013
4008
|
class: $e(`${l(L).lg || l(L).md ? "flex" : ""} w-full`),
|
|
4014
4009
|
style: tl({ height: `calc( 100% - ${l(L).lg || l(L).md ? 72 : 64}px)` }),
|
|
4015
4010
|
"hide-configuration": A.value,
|
|
4016
4011
|
index: Number(l(p).params.tileIndex),
|
|
4017
|
-
onHideConfiguration:
|
|
4012
|
+
onHideConfiguration: y[2] || (y[2] = (O) => A.value = O)
|
|
4018
4013
|
}, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : E("", !0)
|
|
4019
4014
|
]),
|
|
4020
4015
|
_: 1
|
|
@@ -4023,5 +4018,5 @@ const Mt = { class: "flex flex-col gap-5" }, Nt = { class: "fm-typo-en-body-lg-6
|
|
|
4023
4018
|
}
|
|
4024
4019
|
});
|
|
4025
4020
|
export {
|
|
4026
|
-
|
|
4021
|
+
Oa as default
|
|
4027
4022
|
};
|