@feedmepos/mf-report 5.22.2 → 5.22.3
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-CxcY6LWZ.js → App-D3jJJmyg.js} +40 -40
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-ScW9Ncjy.js → BaseDialog.vue_vue_type_script_setup_true_lang-Dmpc24i4.js} +3 -3
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BxkEvxyr.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BZUipGZh.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CxrIe_mX.js → Default.vue_vue_type_script_setup_true_lang-CNXchelN.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CjQOGUhk.js → FilterSelector.vue_vue_type_script_setup_true_lang-CIh5MO0J.js} +619 -613
- package/dist/{InsightView-8fN4Ufnl.js → InsightView-BhRgl7da.js} +6 -6
- package/dist/{Integration-NDqoewja.js → Integration-DuZFb2_h.js} +3 -3
- package/dist/{Integrations-5vX-q9bK.js → Integrations-B-K1MFtu.js} +3 -3
- package/dist/{Layout-Bx1bFqZC.js → Layout-WWJgRZmI.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B-3mITku.js → MenuTab.vue_vue_type_script_setup_true_lang-Dr7w9A6f.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-El6bObYP.js → NavigationTab.vue_vue_type_script_setup_true_lang-Dbo0pwH4.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-o93p8JPp.js → NoData.vue_vue_type_script_setup_true_lang-BwIUTmvY.js} +1 -1
- package/dist/{OverviewView-Bj7wADyM.js → OverviewView-DsVLzrq5.js} +5 -5
- package/dist/{Report-CF4ngP2m.js → Report-B5VTXste.js} +4 -4
- package/dist/{ReportEditor-BMuleZLo.js → ReportEditor-DBnmP-29.js} +6 -6
- package/dist/{ReportView-l7pWW-WB.js → ReportView-CrSceBoC.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CLcModS9.js → SelectComponent.vue_vue_type_script_setup_true_lang-BEm9iVWM.js} +1 -1
- package/dist/{Setting-BxQ9nLCj.js → Setting-DnSvCeSB.js} +5 -5
- package/dist/{TileEditor-BGsJzhla.js → TileEditor-CCfwr32T.js} +978 -957
- package/dist/{TransitionFade-DwUHSMzp.js → TransitionFade-12cVfWgY.js} +6 -6
- package/dist/{app-C8LzWu40.js → app-Clip2uYf.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{vue-i18n-xbKIJVHs.js → vue-i18n-C1hP_yGq.js} +2 -2
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as ae, mergeModels as re, useModel as me, computed as
|
|
1
|
+
import { defineComponent as ae, mergeModels as re, useModel as me, computed as T, ref as ee, resolveComponent as $, createElementBlock as A, openBlock as v, createVNode as r, createElementVNode as V, unref as l, withCtx as R, toDisplayString as P, Fragment as se, renderList as be, withModifiers as ve, createTextVNode as Se, watch as ye, createCommentVNode as O, createBlock as M, onUnmounted as ml, renderSlot as el, onMounted as We, onBeforeUnmount as cl, resolveDynamicComponent as ll, normalizeClass as Ee, withDirectives as he, vShow as Ce, withKeys as qe, vModelText as pl, normalizeStyle as Ae, isRef as fl } from "vue";
|
|
2
2
|
import { useRoute as vl, useRouter as gl } from "vue-router";
|
|
3
|
-
import { h as bl, d as Ie, S as Re, _ as yl, W as hl, b as wl, T as
|
|
4
|
-
import { W as
|
|
5
|
-
import { storeToRefs as
|
|
3
|
+
import { h as bl, d as Ie, S as Re, _ as yl, W as hl, b as wl, T as Cl, a as Vl } from "./TransitionFade-12cVfWgY.js";
|
|
4
|
+
import { W as z, b as ol, d as _e, D as Fl, S as Ye, C as kl, P as Je, a as xl } from "./BaseDialog.vue_vue_type_script_setup_true_lang-Dmpc24i4.js";
|
|
5
|
+
import { storeToRefs as Ve } from "pinia";
|
|
6
6
|
import { u as tl } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as Sl, useBreakpoints as al, FmButtonColorThemeVariant as Ge } from "@feedmepos/ui-library";
|
|
8
|
-
import { a as de, _ as nl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as ie, i as
|
|
8
|
+
import { a as de, _ as nl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BEm9iVWM.js";
|
|
9
|
+
import { u as ie, i as xe, b as il } from "./vue-i18n-C1hP_yGq.js";
|
|
10
10
|
import { r as ne } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { g as Fe, u as Me, L as we, b as Le, S as
|
|
12
|
-
import { d as Ne } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { d as
|
|
14
|
-
import { _ as rl } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { g as Fe, u as Me, L as we, b as Le, S as le, d as ce, c as Ke, e as _l, Y as Tl, X as $l, _ as sl, a as Dl } from "./FilterSelector.vue_vue_type_script_setup_true_lang-CIh5MO0J.js";
|
|
12
|
+
import { d as Ne } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BZUipGZh.js";
|
|
13
|
+
import { d as Ue } from "./app-Clip2uYf.js";
|
|
14
|
+
import { _ as rl } from "./NoData.vue_vue_type_script_setup_true_lang-BwIUTmvY.js";
|
|
15
15
|
const je = [
|
|
16
16
|
{
|
|
17
|
-
type:
|
|
17
|
+
type: z.Circular,
|
|
18
18
|
maxDimension: null,
|
|
19
19
|
maxMetric: 1,
|
|
20
20
|
hasBreakdownDimension: !1,
|
|
@@ -31,7 +31,7 @@ const je = [
|
|
|
31
31
|
periodType: null
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
type:
|
|
34
|
+
type: z.Table,
|
|
35
35
|
maxDimension: null,
|
|
36
36
|
maxMetric: null,
|
|
37
37
|
hasBreakdownDimension: !1,
|
|
@@ -48,7 +48,7 @@ const je = [
|
|
|
48
48
|
periodType: null
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
type:
|
|
51
|
+
type: z.BarChart,
|
|
52
52
|
maxDimension: null,
|
|
53
53
|
maxMetric: 1,
|
|
54
54
|
hasBreakdownDimension: !0,
|
|
@@ -65,7 +65,7 @@ const je = [
|
|
|
65
65
|
periodType: null
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
type:
|
|
68
|
+
type: z.LineChart,
|
|
69
69
|
maxDimension: null,
|
|
70
70
|
maxMetric: 1,
|
|
71
71
|
hasBreakdownDimension: !0,
|
|
@@ -82,7 +82,7 @@ const je = [
|
|
|
82
82
|
periodType: null
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
type:
|
|
85
|
+
type: z.StackBarChart,
|
|
86
86
|
maxDimension: null,
|
|
87
87
|
maxMetric: 1,
|
|
88
88
|
hasBreakdownDimension: !0,
|
|
@@ -99,7 +99,7 @@ const je = [
|
|
|
99
99
|
periodType: null
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
type:
|
|
102
|
+
type: z.ClusteredStackBarChart,
|
|
103
103
|
maxDimension: null,
|
|
104
104
|
maxMetric: 1,
|
|
105
105
|
hasBreakdownDimension: !0,
|
|
@@ -116,7 +116,7 @@ const je = [
|
|
|
116
116
|
periodType: null
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
type:
|
|
119
|
+
type: z.StackLineChart,
|
|
120
120
|
maxDimension: null,
|
|
121
121
|
maxMetric: 1,
|
|
122
122
|
hasBreakdownDimension: !0,
|
|
@@ -133,7 +133,7 @@ const je = [
|
|
|
133
133
|
periodType: null
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
type:
|
|
136
|
+
type: z.Scorecard,
|
|
137
137
|
maxDimension: null,
|
|
138
138
|
maxMetric: 1,
|
|
139
139
|
hasBreakdownDimension: !1,
|
|
@@ -150,7 +150,7 @@ const je = [
|
|
|
150
150
|
periodType: null
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
type:
|
|
153
|
+
type: z.Spacer,
|
|
154
154
|
maxDimension: 0,
|
|
155
155
|
maxMetric: 0,
|
|
156
156
|
hasBreakdownDimension: !1,
|
|
@@ -166,7 +166,7 @@ const je = [
|
|
|
166
166
|
canSearch: !1,
|
|
167
167
|
periodType: null
|
|
168
168
|
}
|
|
169
|
-
],
|
|
169
|
+
], Bl = { class: "flex flex-col my-2 gap-8" }, Ul = { class: "fm-typo-en-body-lg-600" }, Ll = { class: "text-sm text-fm-color-neutral-gray-400" }, Ml = ["onClick"], Nl = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, Ol = /* @__PURE__ */ ae({
|
|
170
170
|
__name: "SchemaSection",
|
|
171
171
|
props: /* @__PURE__ */ re({
|
|
172
172
|
options: {
|
|
@@ -183,54 +183,54 @@ const je = [
|
|
|
183
183
|
}),
|
|
184
184
|
emits: ["update:modelValue"],
|
|
185
185
|
setup(D) {
|
|
186
|
-
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, { schemas: h } =
|
|
187
|
-
() => h.value.map((
|
|
188
|
-
label:
|
|
189
|
-
value:
|
|
190
|
-
raw:
|
|
186
|
+
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, { schemas: h } = Ve(ol()), F = T(
|
|
187
|
+
() => h.value.map((c) => ({
|
|
188
|
+
label: c.label,
|
|
189
|
+
value: c.name,
|
|
190
|
+
raw: c
|
|
191
191
|
}))
|
|
192
|
-
), g =
|
|
192
|
+
), g = T(() => {
|
|
193
193
|
if (s.value.schemaNames.length === 0 || t.value === 0)
|
|
194
|
-
return
|
|
194
|
+
return F.value.filter((c) => !c.raw.isJoinOnly);
|
|
195
195
|
{
|
|
196
|
-
const
|
|
197
|
-
return
|
|
196
|
+
const c = s.value.schemaNames[0], C = h.value.find((S) => S.name === c), N = ((C == null ? void 0 : C.joins) || []).map((S) => S);
|
|
197
|
+
return F.value.filter((S) => N.includes(S.raw.name));
|
|
198
198
|
}
|
|
199
|
-
}), w = ee(!1),
|
|
200
|
-
function
|
|
201
|
-
var
|
|
199
|
+
}), w = ee(!1), _ = ee(""), t = ee(), i = Sl();
|
|
200
|
+
function b(c) {
|
|
201
|
+
var C;
|
|
202
202
|
return ne(
|
|
203
203
|
d,
|
|
204
204
|
e,
|
|
205
|
-
(
|
|
205
|
+
(C = h.value.find((N) => N.name === c)) == null ? void 0 : C.label,
|
|
206
206
|
"schema"
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
t.value =
|
|
209
|
+
function x(c) {
|
|
210
|
+
t.value = c, w.value = !0, c !== void 0 ? _.value = s.value.schemaNames[c] : _.value = "";
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
|
|
212
|
+
function k() {
|
|
213
|
+
_.value !== "" ? (t.value !== void 0 ? s.value.schemaNames[t.value] = _.value : s.value.schemaNames.push(_.value), w.value = !1) : i.open({ message: d("report.section.schema.nothingSelected"), type: "error" });
|
|
214
214
|
}
|
|
215
|
-
return (
|
|
216
|
-
const N = $("FmForm"),
|
|
217
|
-
return v(),
|
|
215
|
+
return (c, C) => {
|
|
216
|
+
const N = $("FmForm"), S = $("FmIcon"), f = $("FmField");
|
|
217
|
+
return v(), A("div", Bl, [
|
|
218
218
|
r(_e, {
|
|
219
219
|
modelValue: w.value,
|
|
220
|
-
"onUpdate:modelValue":
|
|
220
|
+
"onUpdate:modelValue": C[1] || (C[1] = (o) => w.value = o),
|
|
221
221
|
title: a.label,
|
|
222
222
|
"primary-button-label": l(d)("report.common.confirm"),
|
|
223
223
|
"secondary-button-label": l(d)("report.common.cancel"),
|
|
224
|
-
onConfirm:
|
|
224
|
+
onConfirm: k
|
|
225
225
|
}, {
|
|
226
226
|
content: R(() => [
|
|
227
227
|
r(N, { ref: "form" }, {
|
|
228
228
|
default: R(() => [
|
|
229
229
|
r(de, {
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue":
|
|
230
|
+
modelValue: _.value,
|
|
231
|
+
"onUpdate:modelValue": C[0] || (C[0] = (o) => _.value = o),
|
|
232
232
|
label: l(d)("report.section.schema.title"),
|
|
233
|
-
items: t.value === 0 ?
|
|
233
|
+
items: t.value === 0 ? F.value.map((o) => ({
|
|
234
234
|
label: l(ne)(l(d), l(e), o.label, "schema"),
|
|
235
235
|
value: o.value
|
|
236
236
|
})) : g.value.map((o) => ({
|
|
@@ -245,20 +245,20 @@ const je = [
|
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
247
247
|
V("div", null, [
|
|
248
|
-
V("p",
|
|
248
|
+
V("p", Ul, P(l(d)("report.section.schema.title")), 1),
|
|
249
249
|
V("p", Ll, P(l(d)("report.section.schema.description")), 1)
|
|
250
250
|
]),
|
|
251
|
-
(v(!0),
|
|
251
|
+
(v(!0), A(se, null, be(s.value.schemaNames, (o, n) => (v(), A("div", {
|
|
252
252
|
key: n,
|
|
253
253
|
class: "flex flex-col gap-2 w-full"
|
|
254
254
|
}, [
|
|
255
255
|
V("div", {
|
|
256
256
|
class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
|
|
257
|
-
onClick: (
|
|
257
|
+
onClick: (p) => x(n)
|
|
258
258
|
}, [
|
|
259
|
-
V("p", Nl, P(
|
|
260
|
-
|
|
261
|
-
r(
|
|
259
|
+
V("p", Nl, P(b(o)), 1),
|
|
260
|
+
C[3] || (C[3] = V("div", { class: "grow" }, null, -1)),
|
|
261
|
+
r(S, {
|
|
262
262
|
name: "close",
|
|
263
263
|
onClick: ve(
|
|
264
264
|
() => {
|
|
@@ -269,10 +269,10 @@ const je = [
|
|
|
269
269
|
}, null, 8, ["onClick"])
|
|
270
270
|
], 8, Ml)
|
|
271
271
|
]))), 128)),
|
|
272
|
-
r(
|
|
272
|
+
r(f, {
|
|
273
273
|
class: "text-fm-color-typo-tertiary",
|
|
274
|
-
onClick:
|
|
275
|
-
|
|
274
|
+
onClick: C[2] || (C[2] = () => {
|
|
275
|
+
x();
|
|
276
276
|
})
|
|
277
277
|
}, {
|
|
278
278
|
default: R(() => [
|
|
@@ -319,104 +319,104 @@ const je = [
|
|
|
319
319
|
}),
|
|
320
320
|
emits: ["update:modelValue"],
|
|
321
321
|
setup(D) {
|
|
322
|
-
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, h =
|
|
323
|
-
() => s.value.map((
|
|
322
|
+
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, h = T(() => d(`report.section.dimension.${a.label}`)), F = ee(!1), g = T(
|
|
323
|
+
() => s.value.map((p, u) => ({
|
|
324
324
|
index: u,
|
|
325
|
-
labels: [
|
|
326
|
-
value:
|
|
325
|
+
labels: [p.label || p.name],
|
|
326
|
+
value: p
|
|
327
327
|
}))
|
|
328
328
|
), w = ee(s.value.length > 0 ? 0 : void 0);
|
|
329
|
-
function
|
|
330
|
-
var u, m,
|
|
331
|
-
|
|
329
|
+
function _(p) {
|
|
330
|
+
var u, m, y, I;
|
|
331
|
+
F.value = !0, t.value = p != null && p.value ? JSON.parse(
|
|
332
332
|
JSON.stringify({
|
|
333
|
-
...
|
|
334
|
-
label: ne(d, e, (u =
|
|
335
|
-
moveToColumn: (((m = a.config) == null ? void 0 : m.columnIds) || []).includes(Fe(
|
|
333
|
+
...p.value,
|
|
334
|
+
label: ne(d, e, (u = p.value) == null ? void 0 : u.label, "other"),
|
|
335
|
+
moveToColumn: (((m = a.config) == null ? void 0 : m.columnIds) || []).includes(Fe(p.value))
|
|
336
336
|
})
|
|
337
|
-
) : void 0, w.value =
|
|
337
|
+
) : void 0, w.value = p == null ? void 0 : p.index, i.value = !!((y = t.value) != null && y.dataFormula || (I = t.value) != null && I.displayFormula), t.value && t.value.formatter === void 0 && (a.options.find(
|
|
338
338
|
(K) => {
|
|
339
339
|
var W, X;
|
|
340
340
|
return K.schemaName === ((W = t.value) == null ? void 0 : W.schemaName) && K.name === ((X = t.value) == null ? void 0 : X.name);
|
|
341
341
|
}
|
|
342
|
-
),
|
|
342
|
+
), p != null && p.value.timeFormatter && t.value.formatter === void 0 && (t.value.formatter = p == null ? void 0 : p.value.timeFormatter, t.value.timeFormatter = void 0));
|
|
343
343
|
}
|
|
344
|
-
const t = ee(void 0), i = ee(!1),
|
|
344
|
+
const t = ee(void 0), i = ee(!1), b = T(
|
|
345
345
|
() => a.options.find(
|
|
346
|
-
(
|
|
346
|
+
(p) => {
|
|
347
347
|
var u, m;
|
|
348
|
-
return
|
|
348
|
+
return p.schemaName === ((u = t.value) == null ? void 0 : u.schemaName) && p.name === ((m = t.value) == null ? void 0 : m.name);
|
|
349
349
|
}
|
|
350
350
|
) ?? {}
|
|
351
351
|
);
|
|
352
352
|
ye(
|
|
353
353
|
() => {
|
|
354
|
-
var
|
|
355
|
-
return (
|
|
354
|
+
var p;
|
|
355
|
+
return (p = t.value) == null ? void 0 : p.option;
|
|
356
356
|
},
|
|
357
357
|
() => {
|
|
358
|
-
!
|
|
358
|
+
!x.value && t.value && (t.value.fillGap = !1);
|
|
359
359
|
}
|
|
360
360
|
);
|
|
361
|
-
const
|
|
361
|
+
const x = T(
|
|
362
362
|
() => {
|
|
363
|
-
var
|
|
364
|
-
return (m = (
|
|
363
|
+
var p, u, m;
|
|
364
|
+
return (m = (p = b.value) == null ? void 0 : p.fillGapDimensionOptions) == null ? void 0 : m.includes(((u = t.value) == null ? void 0 : u.option) || "");
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
|
-
function
|
|
367
|
+
function k(p) {
|
|
368
368
|
var u, m;
|
|
369
|
-
(
|
|
370
|
-
schemaName:
|
|
371
|
-
name:
|
|
372
|
-
option:
|
|
373
|
-
label: ne(d, e,
|
|
374
|
-
decimal:
|
|
369
|
+
(p.schemaName !== ((u = t.value) == null ? void 0 : u.schemaName) || p.name !== ((m = t.value) == null ? void 0 : m.name)) && (t.value = {
|
|
370
|
+
schemaName: p.schemaName,
|
|
371
|
+
name: p.name,
|
|
372
|
+
option: p.dimensionOptions[0],
|
|
373
|
+
label: ne(d, e, p.label, "other"),
|
|
374
|
+
decimal: p.isNumericType ? 2 : void 0,
|
|
375
375
|
hide: !1
|
|
376
376
|
}, i.value = !1);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function c() {
|
|
379
379
|
if (!t.value) {
|
|
380
380
|
console.error("new field is undefined");
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
|
-
const
|
|
384
|
-
i.value || (t.value.dataFormula = void 0), w.value !== void 0 ?
|
|
383
|
+
const p = [...g.value.map((u) => u.value)];
|
|
384
|
+
i.value || (t.value.dataFormula = void 0), w.value !== void 0 ? p[w.value] = t.value : p.push(t.value), s.value = p, F.value = !1;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
const m = [...g.value.map((
|
|
386
|
+
function C(p) {
|
|
387
|
+
const m = [...g.value.map((y) => y.value)].filter((y, I) => I !== p);
|
|
388
388
|
s.value = m;
|
|
389
389
|
}
|
|
390
|
-
function N(
|
|
391
|
-
t.value && (t.value.decimal = Number(
|
|
390
|
+
function N(p) {
|
|
391
|
+
t.value && (t.value.decimal = Number(p));
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
const u = `report.section.filter.${
|
|
395
|
-
return e(u) ? d(u) : ne(d, e,
|
|
393
|
+
function S(p) {
|
|
394
|
+
const u = `report.section.filter.${xe(p)}`;
|
|
395
|
+
return e(u) ? d(u) : ne(d, e, p, "field");
|
|
396
396
|
}
|
|
397
|
-
function p
|
|
398
|
-
const u = `report.section.metric.formatterType.${
|
|
399
|
-
return e(u) ? d(u) :
|
|
397
|
+
function f(p) {
|
|
398
|
+
const u = `report.section.metric.formatterType.${p}`;
|
|
399
|
+
return e(u) ? d(u) : p;
|
|
400
400
|
}
|
|
401
|
-
function o(
|
|
402
|
-
return Array.isArray(
|
|
401
|
+
function o(p) {
|
|
402
|
+
return Array.isArray(p) ? p.length > 0 : p;
|
|
403
403
|
}
|
|
404
|
-
const n =
|
|
405
|
-
() => a.options.map((
|
|
406
|
-
label:
|
|
407
|
-
value:
|
|
404
|
+
const n = T(
|
|
405
|
+
() => a.options.map((p) => ({
|
|
406
|
+
label: p.labels.join(" "),
|
|
407
|
+
value: p
|
|
408
408
|
}))
|
|
409
409
|
);
|
|
410
|
-
return (
|
|
411
|
-
const m = $("FmTextField"),
|
|
412
|
-
return D.max !== 0 ? (v(),
|
|
410
|
+
return (p, u) => {
|
|
411
|
+
const m = $("FmTextField"), y = $("FmStepperField"), I = $("FmCheckbox"), K = $("FmTextarea"), W = $("FmForm"), X = $("FmIcon"), Y = $("FmButton"), te = $("FmListItem"), B = $("FmList"), G = $("FmField");
|
|
412
|
+
return D.max !== 0 ? (v(), A("div", Il, [
|
|
413
413
|
r(_e, {
|
|
414
|
-
modelValue:
|
|
415
|
-
"onUpdate:modelValue": u[12] || (u[12] = (
|
|
414
|
+
modelValue: F.value,
|
|
415
|
+
"onUpdate:modelValue": u[12] || (u[12] = (oe) => F.value = oe),
|
|
416
416
|
title: h.value,
|
|
417
417
|
"primary-button-label": l(d)("report.common.confirm"),
|
|
418
418
|
"secondary-button-label": l(d)("report.common.cancel"),
|
|
419
|
-
onConfirm:
|
|
419
|
+
onConfirm: c
|
|
420
420
|
}, {
|
|
421
421
|
content: R(() => [
|
|
422
422
|
r(W, {
|
|
@@ -424,31 +424,31 @@ const je = [
|
|
|
424
424
|
class: "flex flex-col gap-2 w-[490px]"
|
|
425
425
|
}, {
|
|
426
426
|
default: R(() => {
|
|
427
|
-
var
|
|
427
|
+
var oe, pe, E, ue, Te, $e, De;
|
|
428
428
|
return [
|
|
429
429
|
r(de, {
|
|
430
|
-
"model-value":
|
|
430
|
+
"model-value": b.value,
|
|
431
431
|
items: n.value,
|
|
432
432
|
placeholder: h.value,
|
|
433
433
|
label: h.value,
|
|
434
|
-
"onUpdate:modelValue": u[0] || (u[0] = (Q) =>
|
|
434
|
+
"onUpdate:modelValue": u[0] || (u[0] = (Q) => k(Q))
|
|
435
435
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
436
|
-
t.value ? (v(),
|
|
436
|
+
t.value ? (v(), A(se, { key: 0 }, [
|
|
437
437
|
r(m, {
|
|
438
438
|
modelValue: t.value.label,
|
|
439
439
|
"onUpdate:modelValue": u[1] || (u[1] = (Q) => t.value.label = Q),
|
|
440
440
|
label: l(d)("report.section.dimension.label")
|
|
441
441
|
}, null, 8, ["modelValue", "label"]),
|
|
442
|
-
(((
|
|
442
|
+
(((oe = b.value) == null ? void 0 : oe.dimensionOptions) || []).length > 0 ? (v(), M(de, {
|
|
443
443
|
key: 0,
|
|
444
444
|
modelValue: t.value.option,
|
|
445
445
|
"onUpdate:modelValue": u[2] || (u[2] = (Q) => t.value.option = Q),
|
|
446
|
-
items: ((pe =
|
|
447
|
-
label:
|
|
446
|
+
items: ((pe = b.value) == null ? void 0 : pe.dimensionOptions.map((Q) => ({
|
|
447
|
+
label: S(Q),
|
|
448
448
|
value: Q
|
|
449
449
|
}))) ?? []
|
|
450
450
|
}, null, 8, ["modelValue", "items"])) : O("", !0),
|
|
451
|
-
(E =
|
|
451
|
+
(E = b.value) != null && E.isNumericType ? (v(), M(y, {
|
|
452
452
|
key: 1,
|
|
453
453
|
label: l(d)("report.common.decimal"),
|
|
454
454
|
"model-value": ((ue = t.value) == null ? void 0 : ue.decimal) ?? 2,
|
|
@@ -456,7 +456,7 @@ const je = [
|
|
|
456
456
|
N(Q);
|
|
457
457
|
})
|
|
458
458
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
459
|
-
(Te =
|
|
459
|
+
(Te = b.value) != null && Te.isNumericType ? (v(), M(de, {
|
|
460
460
|
key: 2,
|
|
461
461
|
modelValue: t.value.formatter,
|
|
462
462
|
"onUpdate:modelValue": u[4] || (u[4] = (Q) => t.value.formatter = Q),
|
|
@@ -464,13 +464,13 @@ const je = [
|
|
|
464
464
|
label: l(d)("report.section.dimension.formatter"),
|
|
465
465
|
items: [
|
|
466
466
|
{ label: l(d)("report.section.metric.formatterType.NONE"), value: null },
|
|
467
|
-
...((($e =
|
|
468
|
-
label:
|
|
467
|
+
...((($e = b.value) == null ? void 0 : $e.formatters) || []).map((Q) => ({
|
|
468
|
+
label: f(Q),
|
|
469
469
|
value: Q
|
|
470
470
|
}))
|
|
471
471
|
]
|
|
472
472
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : O("", !0),
|
|
473
|
-
|
|
473
|
+
x.value ? (v(), M(I, {
|
|
474
474
|
key: 3,
|
|
475
475
|
"model-value": t.value.fillGap ?? !1,
|
|
476
476
|
label: l(d)("report.section.dimension.fillGap"),
|
|
@@ -480,7 +480,7 @@ const je = [
|
|
|
480
480
|
t.value && (t.value.fillGap = o(Q));
|
|
481
481
|
})
|
|
482
482
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
483
|
-
((De =
|
|
483
|
+
((De = b.value) == null ? void 0 : De.type) === l(Fl).Timestamp ? (v(), M(I, {
|
|
484
484
|
key: 4,
|
|
485
485
|
"model-value": t.value.dateComparison ?? !1,
|
|
486
486
|
label: l(d)("report.section.dimension.dateComparison"),
|
|
@@ -534,27 +534,27 @@ const je = [
|
|
|
534
534
|
V("p", jl, P(h.value), 1),
|
|
535
535
|
V("p", zl, P(l(d)("report.section.dimension.description")), 1)
|
|
536
536
|
]),
|
|
537
|
-
r(
|
|
537
|
+
r(B, null, {
|
|
538
538
|
default: R(() => [
|
|
539
539
|
r(l(Ie), {
|
|
540
540
|
list: s.value,
|
|
541
|
-
"item-key": (
|
|
541
|
+
"item-key": (oe) => l(Fe)(oe),
|
|
542
542
|
class: "flex flex-col gap-2"
|
|
543
543
|
}, {
|
|
544
|
-
item: R(({ element:
|
|
544
|
+
item: R(({ element: oe, index: pe }) => [
|
|
545
545
|
r(te, {
|
|
546
546
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
547
|
-
onClick: ve((E) =>
|
|
547
|
+
onClick: ve((E) => _(g.value[pe]), ["stop"])
|
|
548
548
|
}, {
|
|
549
549
|
default: R(() => [
|
|
550
550
|
r(X, { name: "drag_handle" }),
|
|
551
|
-
V("p", Al, P(l(ne)(l(d), l(e),
|
|
551
|
+
V("p", Al, P(l(ne)(l(d), l(e), oe.label, "other")), 1),
|
|
552
552
|
u[14] || (u[14] = V("div", { class: "grow" }, null, -1)),
|
|
553
553
|
r(Y, {
|
|
554
554
|
icon: "close",
|
|
555
555
|
size: "md",
|
|
556
556
|
variant: "tertiary",
|
|
557
|
-
onClick: ve((E) =>
|
|
557
|
+
onClick: ve((E) => C(pe), ["stop"])
|
|
558
558
|
}, null, 8, ["onClick"])
|
|
559
559
|
]),
|
|
560
560
|
_: 2
|
|
@@ -568,7 +568,7 @@ const je = [
|
|
|
568
568
|
r(G, {
|
|
569
569
|
class: "text-fm-color-typo-tertiary",
|
|
570
570
|
onClick: u[13] || (u[13] = () => {
|
|
571
|
-
|
|
571
|
+
_();
|
|
572
572
|
})
|
|
573
573
|
}, {
|
|
574
574
|
default: R(() => [
|
|
@@ -584,12 +584,12 @@ const je = [
|
|
|
584
584
|
};
|
|
585
585
|
function Rl(D, d, e) {
|
|
586
586
|
switch (D) {
|
|
587
|
-
case
|
|
588
|
-
case
|
|
589
|
-
case
|
|
590
|
-
case
|
|
591
|
-
case
|
|
592
|
-
case
|
|
587
|
+
case z.BarChart:
|
|
588
|
+
case z.StackBarChart:
|
|
589
|
+
case z.ClusteredStackBarChart:
|
|
590
|
+
case z.LineChart:
|
|
591
|
+
case z.StackLineChart:
|
|
592
|
+
case z.Circular:
|
|
593
593
|
return d.length > 1;
|
|
594
594
|
default:
|
|
595
595
|
return e;
|
|
@@ -612,11 +612,11 @@ function Pl(D) {
|
|
|
612
612
|
D.widget.config.isDrillable
|
|
613
613
|
),
|
|
614
614
|
joinDatasources: (s = D.widget.config.joinDatasources) == null ? void 0 : s.map((a) => {
|
|
615
|
-
const { rowIds: h, columnIds:
|
|
615
|
+
const { rowIds: h, columnIds: F } = Oe(a);
|
|
616
616
|
return {
|
|
617
617
|
...a,
|
|
618
618
|
rowIds: h,
|
|
619
|
-
columnIds:
|
|
619
|
+
columnIds: F
|
|
620
620
|
};
|
|
621
621
|
})
|
|
622
622
|
}
|
|
@@ -624,13 +624,13 @@ function Pl(D) {
|
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
function Oe(D) {
|
|
627
|
-
const d = D.dimensions.filter((
|
|
628
|
-
s && D.metrics.find((
|
|
627
|
+
const d = D.dimensions.filter((F) => F.hide !== !0 && !F.moveToColumn).map((F) => Fe(F)), e = D.dimensions.filter((F) => F.hide !== !0 && F.moveToColumn == !0).map((F) => Fe(F)), s = D.metrics.length > 0;
|
|
628
|
+
s && D.metrics.find((F) => F.moveToRow == !0) ? d.push(Pe.value) : s && e.push(Pe.value);
|
|
629
629
|
const a = [], h = [];
|
|
630
|
-
for (const
|
|
631
|
-
a.push(
|
|
632
|
-
for (const
|
|
633
|
-
h.push(
|
|
630
|
+
for (const F of d)
|
|
631
|
+
a.push(F);
|
|
632
|
+
for (const F of e)
|
|
633
|
+
h.push(F);
|
|
634
634
|
return {
|
|
635
635
|
rowIds: a,
|
|
636
636
|
columnIds: h
|
|
@@ -671,83 +671,83 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
671
671
|
emits: /* @__PURE__ */ re(["config"], ["update:modelValue"]),
|
|
672
672
|
setup(D, { emit: d }) {
|
|
673
673
|
const { t: e, te: s } = ie(), a = me(D, "modelValue"), h = D;
|
|
674
|
-
|
|
675
|
-
const
|
|
674
|
+
T(() => !!h.max && a.value.length === h.max);
|
|
675
|
+
const F = T(() => e(`report.section.metric.${h.label}`)), g = ee(!1), w = T(
|
|
676
676
|
() => a.value.map((o, n) => ({
|
|
677
677
|
index: n,
|
|
678
678
|
labels: [o.label || o.name],
|
|
679
679
|
value: o
|
|
680
680
|
}))
|
|
681
|
-
),
|
|
681
|
+
), _ = ee(a.value.length > 0 ? 0 : void 0);
|
|
682
682
|
function t(o) {
|
|
683
|
-
var n,
|
|
683
|
+
var n, p, u;
|
|
684
684
|
g.value = !0, i.value = o != null && o.value ? JSON.parse(
|
|
685
685
|
JSON.stringify({
|
|
686
686
|
...o.value,
|
|
687
687
|
label: ne(e, s, o.value.label, "other")
|
|
688
688
|
})
|
|
689
|
-
) : void 0,
|
|
689
|
+
) : void 0, _.value = o == null ? void 0 : o.index, b.value = !!((n = i.value) != null && n.dataFormula || (p = i.value) != null && p.displayFormula), i.value && i.value.formatter === void 0 && (h.options.find(
|
|
690
690
|
(m) => {
|
|
691
|
-
var
|
|
692
|
-
return m.schemaName === ((
|
|
691
|
+
var y, I;
|
|
692
|
+
return m.schemaName === ((y = i.value) == null ? void 0 : y.schemaName) && m.name === ((I = i.value) == null ? void 0 : I.name);
|
|
693
693
|
}
|
|
694
694
|
), o != null && o.value.timeFormatter && i.value.formatter === void 0 && (i.value.formatter = o == null ? void 0 : o.value.timeFormatter, i.value.timeFormatter = void 0)), ((u = h.config.rowIds) == null ? void 0 : u.findIndex((m) => m === Pe.value)) !== -1 && i.value && (i.value.moveToRow = !0), i.value && (!h.hasXy || i.value.nullable === void 0) && (i.value.nullable = !1);
|
|
695
695
|
}
|
|
696
|
-
const i = ee(void 0),
|
|
696
|
+
const i = ee(void 0), b = ee(!1), x = T(
|
|
697
697
|
() => h.options.find(
|
|
698
698
|
(o) => {
|
|
699
|
-
var n,
|
|
700
|
-
return o.schemaName === ((n = i.value) == null ? void 0 : n.schemaName) && o.name === ((
|
|
699
|
+
var n, p;
|
|
700
|
+
return o.schemaName === ((n = i.value) == null ? void 0 : n.schemaName) && o.name === ((p = i.value) == null ? void 0 : p.name);
|
|
701
701
|
}
|
|
702
702
|
) ?? {}
|
|
703
703
|
);
|
|
704
|
-
function
|
|
705
|
-
var
|
|
706
|
-
return (o == null ? void 0 : o.isNumericType) || ((
|
|
704
|
+
function k(o, n) {
|
|
705
|
+
var p;
|
|
706
|
+
return (o == null ? void 0 : o.isNumericType) || ((p = o == null ? void 0 : o.isNumericAggregations) == null ? void 0 : p.includes(n || ""));
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const c = T(
|
|
709
709
|
() => {
|
|
710
710
|
var o;
|
|
711
|
-
return
|
|
711
|
+
return k(x.value, (o = i.value) == null ? void 0 : o.aggregation);
|
|
712
712
|
}
|
|
713
713
|
);
|
|
714
|
-
ye(
|
|
714
|
+
ye(c, (o) => {
|
|
715
715
|
i.value && (o ? i.value.decimal = typeof i.value.decimal != "number" ? 2 : i.value.decimal : i.value.decimal = void 0);
|
|
716
716
|
});
|
|
717
|
-
function
|
|
718
|
-
var n,
|
|
719
|
-
(o.schemaName !== ((n = i.value) == null ? void 0 : n.schemaName) || o.name !== ((
|
|
717
|
+
function C(o) {
|
|
718
|
+
var n, p;
|
|
719
|
+
(o.schemaName !== ((n = i.value) == null ? void 0 : n.schemaName) || o.name !== ((p = i.value) == null ? void 0 : p.name)) && (i.value = {
|
|
720
720
|
schemaName: o.schemaName,
|
|
721
721
|
name: o.name,
|
|
722
722
|
aggregation: o.aggregations[0],
|
|
723
723
|
label: ne(e, s, o.label, "other"),
|
|
724
724
|
nullable: !1,
|
|
725
|
-
decimal:
|
|
725
|
+
decimal: k(o, o.aggregations[0]) ? 2 : void 0,
|
|
726
726
|
moveToRow: !1,
|
|
727
727
|
hide: !1
|
|
728
|
-
},
|
|
728
|
+
}, b.value = !1);
|
|
729
729
|
}
|
|
730
730
|
function N() {
|
|
731
731
|
const o = [...w.value.map((n) => n.value)];
|
|
732
|
-
i.value && (
|
|
732
|
+
i.value && (b.value || (i.value.dataFormula = void 0), h.hasXy || (i.value.nullable = !1), _.value !== void 0 ? o[_.value] = i.value : o.push(i.value)), a.value = o, g.value = !1;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
735
|
-
const n = [...w.value.map((
|
|
734
|
+
function S(o) {
|
|
735
|
+
const n = [...w.value.map((p) => p.value)];
|
|
736
736
|
n.splice(o, 1), a.value = n;
|
|
737
737
|
}
|
|
738
|
-
const
|
|
738
|
+
const f = T(
|
|
739
739
|
() => h.options.map((o) => ({
|
|
740
740
|
label: o.labels.join(" "),
|
|
741
741
|
value: o
|
|
742
742
|
}))
|
|
743
743
|
);
|
|
744
744
|
return (o, n) => {
|
|
745
|
-
const
|
|
746
|
-
return v(),
|
|
745
|
+
const p = $("FmTextField"), u = $("FmStepperField"), m = $("FmCheckbox"), y = $("FmTextarea"), I = $("FmForm"), K = $("FmIcon"), W = $("FmButton"), X = $("FmListItem"), Y = $("FmList"), te = $("FmField");
|
|
746
|
+
return v(), A("div", Xl, [
|
|
747
747
|
r(_e, {
|
|
748
748
|
modelValue: g.value,
|
|
749
|
-
"onUpdate:modelValue": n[11] || (n[11] = (
|
|
750
|
-
title:
|
|
749
|
+
"onUpdate:modelValue": n[11] || (n[11] = (B) => g.value = B),
|
|
750
|
+
title: F.value,
|
|
751
751
|
onConfirm: N
|
|
752
752
|
}, {
|
|
753
753
|
content: R(() => [
|
|
@@ -756,40 +756,40 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
756
756
|
class: "flex flex-col gap-2 w-[490px]"
|
|
757
757
|
}, {
|
|
758
758
|
default: R(() => {
|
|
759
|
-
var
|
|
759
|
+
var B, G, oe, pe;
|
|
760
760
|
return [
|
|
761
761
|
r(de, {
|
|
762
|
-
"model-value":
|
|
763
|
-
items:
|
|
764
|
-
placeholder:
|
|
765
|
-
label:
|
|
766
|
-
"onUpdate:modelValue": n[0] || (n[0] = (E) =>
|
|
762
|
+
"model-value": x.value,
|
|
763
|
+
items: f.value,
|
|
764
|
+
placeholder: F.value,
|
|
765
|
+
label: F.value,
|
|
766
|
+
"onUpdate:modelValue": n[0] || (n[0] = (E) => C(E))
|
|
767
767
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
768
|
-
i.value ? (v(),
|
|
769
|
-
r(
|
|
768
|
+
i.value ? (v(), A(se, { key: 0 }, [
|
|
769
|
+
r(p, {
|
|
770
770
|
modelValue: i.value.label,
|
|
771
771
|
"onUpdate:modelValue": n[1] || (n[1] = (E) => i.value.label = E),
|
|
772
772
|
label: l(e)("report.section.metric.label")
|
|
773
773
|
}, null, 8, ["modelValue", "label"]),
|
|
774
|
-
(((
|
|
774
|
+
(((B = x.value) == null ? void 0 : B.aggregations) || []).length > 0 ? (v(), M(de, {
|
|
775
775
|
key: 0,
|
|
776
776
|
modelValue: i.value.aggregation,
|
|
777
777
|
"onUpdate:modelValue": n[2] || (n[2] = (E) => i.value.aggregation = E),
|
|
778
778
|
label: l(e)("report.section.metric.aggregation"),
|
|
779
|
-
items: ((G =
|
|
779
|
+
items: ((G = x.value) == null ? void 0 : G.aggregations.map((E) => ({
|
|
780
780
|
label: l(s)(`report.section.metric.aggregationType.${E}`) ? l(e)(`report.section.metric.aggregationType.${E}`) : l(ne)(l(e), l(s), E, "field"),
|
|
781
781
|
value: E
|
|
782
782
|
}))) ?? []
|
|
783
783
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
784
|
-
|
|
784
|
+
c.value ? (v(), M(u, {
|
|
785
785
|
key: 1,
|
|
786
786
|
label: l(e)("report.common.decimal"),
|
|
787
|
-
"model-value": ((
|
|
787
|
+
"model-value": ((oe = i.value) == null ? void 0 : oe.decimal) ?? 2,
|
|
788
788
|
"onUpdate:modelValue": n[3] || (n[3] = (E) => {
|
|
789
789
|
i.value && (i.value.decimal = E);
|
|
790
790
|
})
|
|
791
791
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
792
|
-
|
|
792
|
+
c.value ? (v(), M(de, {
|
|
793
793
|
key: 2,
|
|
794
794
|
modelValue: i.value.formatter,
|
|
795
795
|
"onUpdate:modelValue": n[4] || (n[4] = (E) => i.value.formatter = E),
|
|
@@ -797,7 +797,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
797
797
|
label: l(e)("report.section.metric.formatter"),
|
|
798
798
|
items: [
|
|
799
799
|
{ label: l(e)("report.section.metric.formatterType.NONE"), value: null },
|
|
800
|
-
...(((pe =
|
|
800
|
+
...(((pe = x.value) == null ? void 0 : pe.formatters) || []).map((E) => ({
|
|
801
801
|
label: l(s)(`report.section.metric.formatterType.${E}`) ? l(e)(`report.section.metric.formatterType.${E}`) : l(ne)(l(e), l(s), E, "field"),
|
|
802
802
|
value: E
|
|
803
803
|
}))
|
|
@@ -826,18 +826,18 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
826
826
|
value: ""
|
|
827
827
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
828
828
|
r(m, {
|
|
829
|
-
modelValue:
|
|
830
|
-
"onUpdate:modelValue": n[8] || (n[8] = (E) =>
|
|
829
|
+
modelValue: b.value,
|
|
830
|
+
"onUpdate:modelValue": n[8] || (n[8] = (E) => b.value = E),
|
|
831
831
|
label: l(e)("report.section.metric.advance"),
|
|
832
832
|
value: !0
|
|
833
833
|
}, null, 8, ["modelValue", "label"]),
|
|
834
|
-
|
|
834
|
+
b.value ? (v(), M(y, {
|
|
835
835
|
key: 5,
|
|
836
836
|
modelValue: i.value.dataFormula,
|
|
837
837
|
"onUpdate:modelValue": n[9] || (n[9] = (E) => i.value.dataFormula = E),
|
|
838
838
|
placeholder: l(e)("report.section.metric.dataFormula")
|
|
839
839
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0),
|
|
840
|
-
|
|
840
|
+
b.value ? (v(), M(y, {
|
|
841
841
|
key: 6,
|
|
842
842
|
modelValue: i.value.displayFormula,
|
|
843
843
|
"onUpdate:modelValue": n[10] || (n[10] = (E) => i.value.displayFormula = E),
|
|
@@ -852,7 +852,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
852
852
|
_: 1
|
|
853
853
|
}, 8, ["modelValue", "title"]),
|
|
854
854
|
V("div", null, [
|
|
855
|
-
V("p", Wl, P(
|
|
855
|
+
V("p", Wl, P(F.value), 1),
|
|
856
856
|
V("p", El, P(l(e)("report.section.metric.description")), 1)
|
|
857
857
|
]),
|
|
858
858
|
r(Y, null, {
|
|
@@ -862,20 +862,20 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
862
862
|
"item-key": "id",
|
|
863
863
|
class: "flex flex-col gap-2 w-full"
|
|
864
864
|
}, {
|
|
865
|
-
item: R(({ element:
|
|
865
|
+
item: R(({ element: B, index: G }) => [
|
|
866
866
|
r(X, {
|
|
867
867
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
868
|
-
onClick: ve((
|
|
868
|
+
onClick: ve((oe) => t(w.value[G]), ["stop"])
|
|
869
869
|
}, {
|
|
870
870
|
default: R(() => [
|
|
871
871
|
r(K, { name: "drag_handle" }),
|
|
872
|
-
V("p", Hl, P(l(ne)(l(e), l(s),
|
|
872
|
+
V("p", Hl, P(l(ne)(l(e), l(s), B.label, "other")), 1),
|
|
873
873
|
n[13] || (n[13] = V("div", { class: "grow" }, null, -1)),
|
|
874
874
|
r(W, {
|
|
875
875
|
icon: "close",
|
|
876
876
|
size: "md",
|
|
877
877
|
variant: "tertiary",
|
|
878
|
-
onClick: ve((
|
|
878
|
+
onClick: ve((oe) => S(G), ["stop"])
|
|
879
879
|
}, null, 8, ["onClick"])
|
|
880
880
|
]),
|
|
881
881
|
_: 2
|
|
@@ -917,73 +917,73 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
917
917
|
}),
|
|
918
918
|
emits: ["update:modelValue"],
|
|
919
919
|
setup(D) {
|
|
920
|
-
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, h =
|
|
921
|
-
() => s.value.map((
|
|
920
|
+
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, h = T(() => d(`report.section.sort.${a.label}`)), F = ee(!1), g = T(
|
|
921
|
+
() => s.value.map((S, f) => {
|
|
922
922
|
const o = a.options.find(
|
|
923
|
-
(
|
|
924
|
-
), n = (o == null ? void 0 : o.labels) || [
|
|
923
|
+
(p) => p.schemaName === S.schemaName && p.name === S.name
|
|
924
|
+
), n = (o == null ? void 0 : o.labels) || [S.schemaName, S.name];
|
|
925
925
|
return {
|
|
926
|
-
index:
|
|
927
|
-
label: n.map((
|
|
928
|
-
value:
|
|
926
|
+
index: f,
|
|
927
|
+
label: n.map((p) => ne(d, e, p, "other")).join(" "),
|
|
928
|
+
value: S
|
|
929
929
|
};
|
|
930
930
|
})
|
|
931
931
|
), w = ee(s.value.length > 0 ? 0 : void 0);
|
|
932
|
-
function
|
|
933
|
-
var
|
|
934
|
-
|
|
932
|
+
function _(S) {
|
|
933
|
+
var f;
|
|
934
|
+
F.value = !0, t.value = S != null && S.value ? JSON.parse(JSON.stringify(S.value)) : void 0, w.value = S == null ? void 0 : S.index, i.value = !!((f = t.value) != null && f.dataFormula);
|
|
935
935
|
}
|
|
936
|
-
const t = ee(void 0), i = ee(!1),
|
|
936
|
+
const t = ee(void 0), i = ee(!1), b = T(
|
|
937
937
|
() => a.options.find(
|
|
938
|
-
(
|
|
939
|
-
var
|
|
940
|
-
return
|
|
938
|
+
(S) => {
|
|
939
|
+
var f, o;
|
|
940
|
+
return S.schemaName === ((f = t.value) == null ? void 0 : f.schemaName) && S.name === ((o = t.value) == null ? void 0 : o.name);
|
|
941
941
|
}
|
|
942
942
|
) ?? {}
|
|
943
943
|
);
|
|
944
|
-
function S
|
|
945
|
-
var
|
|
946
|
-
(
|
|
947
|
-
schemaName:
|
|
948
|
-
name:
|
|
949
|
-
dimensionOption:
|
|
944
|
+
function x(S) {
|
|
945
|
+
var f, o;
|
|
946
|
+
(S.schemaName !== ((f = t.value) == null ? void 0 : f.schemaName) || S.name !== ((o = t.value) == null ? void 0 : o.name)) && (t.value = {
|
|
947
|
+
schemaName: S.schemaName,
|
|
948
|
+
name: S.name,
|
|
949
|
+
dimensionOption: S.dimensionOptions[0],
|
|
950
950
|
aggregation: null,
|
|
951
951
|
type: Ye.Asc
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function k() {
|
|
955
955
|
if (!t.value) {
|
|
956
956
|
console.log("new sort is undefined");
|
|
957
957
|
return;
|
|
958
958
|
}
|
|
959
|
-
const
|
|
960
|
-
i.value || (t.value.dataFormula = void 0), w.value !== void 0 ?
|
|
959
|
+
const S = [...g.value.map((f) => f.value)];
|
|
960
|
+
i.value || (t.value.dataFormula = void 0), w.value !== void 0 ? S[w.value] = t.value : S.push(t.value), s.value = S, F.value = !1;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
963
|
-
const
|
|
964
|
-
|
|
962
|
+
function c(S) {
|
|
963
|
+
const f = [...g.value.map((o) => o.value)];
|
|
964
|
+
f.splice(S, 1), s.value = f, F.value = !1;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
const
|
|
968
|
-
return e(
|
|
966
|
+
function C(S) {
|
|
967
|
+
const f = `report.section.filter.${xe(S)}`;
|
|
968
|
+
return e(f) ? d(f) : ne(d, e, S, "field");
|
|
969
969
|
}
|
|
970
|
-
const N =
|
|
971
|
-
() => a.options.map((
|
|
972
|
-
label:
|
|
973
|
-
value:
|
|
970
|
+
const N = T(
|
|
971
|
+
() => a.options.map((S) => ({
|
|
972
|
+
label: S.labels.join(" "),
|
|
973
|
+
value: S
|
|
974
974
|
}))
|
|
975
975
|
);
|
|
976
|
-
return (
|
|
977
|
-
const o = $("FmCheckbox"), n = $("FmTextarea"),
|
|
978
|
-
return v(),
|
|
976
|
+
return (S, f) => {
|
|
977
|
+
const o = $("FmCheckbox"), n = $("FmTextarea"), p = $("FmForm"), u = $("FmIcon"), m = $("FmButton"), y = $("FmListItem"), I = $("FmList"), K = $("FmField");
|
|
978
|
+
return v(), A("div", Yl, [
|
|
979
979
|
r(_e, {
|
|
980
|
-
modelValue:
|
|
981
|
-
"onUpdate:modelValue":
|
|
980
|
+
modelValue: F.value,
|
|
981
|
+
"onUpdate:modelValue": f[6] || (f[6] = (W) => F.value = W),
|
|
982
982
|
title: h.value,
|
|
983
|
-
onConfirm:
|
|
983
|
+
onConfirm: k
|
|
984
984
|
}, {
|
|
985
985
|
content: R(() => [
|
|
986
|
-
r(
|
|
986
|
+
r(p, {
|
|
987
987
|
ref: "form",
|
|
988
988
|
class: "flex flex-col gap-2 w-[490px]"
|
|
989
989
|
}, {
|
|
@@ -991,55 +991,55 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
991
991
|
var W, X, Y, te;
|
|
992
992
|
return [
|
|
993
993
|
r(de, {
|
|
994
|
-
"model-value":
|
|
994
|
+
"model-value": b.value,
|
|
995
995
|
items: N.value,
|
|
996
996
|
placeholder: h.value,
|
|
997
997
|
label: h.value,
|
|
998
|
-
"onUpdate:modelValue":
|
|
998
|
+
"onUpdate:modelValue": f[0] || (f[0] = (B) => x(B))
|
|
999
999
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
1000
|
-
t.value ? (v(),
|
|
1001
|
-
(((W =
|
|
1000
|
+
t.value ? (v(), A(se, { key: 0 }, [
|
|
1001
|
+
(((W = b.value) == null ? void 0 : W.dimensionOptions) || []).length > 0 ? (v(), M(de, {
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
modelValue: t.value.dimensionOption,
|
|
1004
|
-
"onUpdate:modelValue":
|
|
1005
|
-
items: ((X =
|
|
1006
|
-
label:
|
|
1007
|
-
value:
|
|
1004
|
+
"onUpdate:modelValue": f[1] || (f[1] = (B) => t.value.dimensionOption = B),
|
|
1005
|
+
items: ((X = b.value) == null ? void 0 : X.dimensionOptions.map((B) => ({
|
|
1006
|
+
label: C(B),
|
|
1007
|
+
value: B
|
|
1008
1008
|
}))) ?? [],
|
|
1009
1009
|
placeholder: l(d)("report.section.sort.format"),
|
|
1010
1010
|
label: l(d)("report.section.sort.format")
|
|
1011
1011
|
}, null, 8, ["modelValue", "items", "placeholder", "label"])) : O("", !0),
|
|
1012
|
-
(((Y =
|
|
1012
|
+
(((Y = b.value) == null ? void 0 : Y.aggregations) || []).length > 0 ? (v(), M(de, {
|
|
1013
1013
|
key: 1,
|
|
1014
1014
|
modelValue: t.value.aggregation,
|
|
1015
|
-
"onUpdate:modelValue":
|
|
1016
|
-
items: ((te =
|
|
1017
|
-
label: l(e)(`report.section.metric.aggregationType.${
|
|
1018
|
-
value:
|
|
1015
|
+
"onUpdate:modelValue": f[2] || (f[2] = (B) => t.value.aggregation = B),
|
|
1016
|
+
items: ((te = b.value) == null ? void 0 : te.aggregations.map((B) => ({
|
|
1017
|
+
label: l(e)(`report.section.metric.aggregationType.${B}`) ? l(d)(`report.section.metric.aggregationType.${B}`) : B,
|
|
1018
|
+
value: B
|
|
1019
1019
|
}))) ?? [],
|
|
1020
1020
|
label: l(d)("report.section.sort.aggregation"),
|
|
1021
1021
|
placeholder: l(d)("report.section.sort.aggregation")
|
|
1022
1022
|
}, null, 8, ["modelValue", "items", "label", "placeholder"])) : O("", !0),
|
|
1023
1023
|
r(de, {
|
|
1024
1024
|
modelValue: t.value.type,
|
|
1025
|
-
"onUpdate:modelValue":
|
|
1026
|
-
items: Object.values(l(Ye)).map((
|
|
1027
|
-
label: l(e)(`report.section.sort.sortType.${
|
|
1028
|
-
value:
|
|
1025
|
+
"onUpdate:modelValue": f[3] || (f[3] = (B) => t.value.type = B),
|
|
1026
|
+
items: Object.values(l(Ye)).map((B) => ({
|
|
1027
|
+
label: l(e)(`report.section.sort.sortType.${B}`) ? l(d)(`report.section.sort.sortType.${B}`) : B,
|
|
1028
|
+
value: B
|
|
1029
1029
|
})),
|
|
1030
1030
|
placeholder: l(d)("report.section.sort.order"),
|
|
1031
1031
|
label: l(d)("report.section.sort.order")
|
|
1032
1032
|
}, null, 8, ["modelValue", "items", "placeholder", "label"]),
|
|
1033
1033
|
r(o, {
|
|
1034
1034
|
modelValue: i.value,
|
|
1035
|
-
"onUpdate:modelValue":
|
|
1035
|
+
"onUpdate:modelValue": f[4] || (f[4] = (B) => i.value = B),
|
|
1036
1036
|
label: l(d)("report.section.sort.advance"),
|
|
1037
1037
|
value: !0
|
|
1038
1038
|
}, null, 8, ["modelValue", "label"]),
|
|
1039
1039
|
i.value ? (v(), M(n, {
|
|
1040
1040
|
key: 2,
|
|
1041
1041
|
modelValue: t.value.dataFormula,
|
|
1042
|
-
"onUpdate:modelValue":
|
|
1042
|
+
"onUpdate:modelValue": f[5] || (f[5] = (B) => t.value.dataFormula = B),
|
|
1043
1043
|
placeholder: l(d)("report.section.sort.dataFormula")
|
|
1044
1044
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0)
|
|
1045
1045
|
], 64)) : O("", !0)
|
|
@@ -1062,19 +1062,19 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1062
1062
|
class: "flex flex-col gap-2 w-full"
|
|
1063
1063
|
}, {
|
|
1064
1064
|
item: R(({ element: W, index: X }) => [
|
|
1065
|
-
r(
|
|
1065
|
+
r(y, {
|
|
1066
1066
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1067
|
-
onClick: ve((Y) =>
|
|
1067
|
+
onClick: ve((Y) => _(g.value[X]), ["stop"])
|
|
1068
1068
|
}, {
|
|
1069
1069
|
default: R(() => [
|
|
1070
1070
|
r(u, { name: "drag_handle" }),
|
|
1071
1071
|
V("p", Kl, P(g.value[X].label), 1),
|
|
1072
|
-
|
|
1072
|
+
f[8] || (f[8] = V("div", { class: "grow" }, null, -1)),
|
|
1073
1073
|
r(m, {
|
|
1074
1074
|
icon: "close",
|
|
1075
1075
|
size: "md",
|
|
1076
1076
|
variant: "tertiary",
|
|
1077
|
-
onClick: ve((Y) =>
|
|
1077
|
+
onClick: ve((Y) => c(X), ["stop"])
|
|
1078
1078
|
}, null, 8, ["onClick"])
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 2
|
|
@@ -1087,8 +1087,8 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1087
1087
|
}),
|
|
1088
1088
|
r(K, {
|
|
1089
1089
|
class: "text-fm-color-typo-tertiary",
|
|
1090
|
-
onClick:
|
|
1091
|
-
|
|
1090
|
+
onClick: f[7] || (f[7] = () => {
|
|
1091
|
+
_();
|
|
1092
1092
|
})
|
|
1093
1093
|
}, {
|
|
1094
1094
|
default: R(() => [
|
|
@@ -1111,13 +1111,13 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1111
1111
|
a !== "" ? e.value = a : e.value = null;
|
|
1112
1112
|
}, 1e3);
|
|
1113
1113
|
return (a, h) => {
|
|
1114
|
-
const
|
|
1115
|
-
return v(),
|
|
1114
|
+
const F = $("FmTextField");
|
|
1115
|
+
return v(), A(se, null, [
|
|
1116
1116
|
V("div", null, [
|
|
1117
1117
|
V("p", Zl, P(l(d)("report.section.limit.title")), 1),
|
|
1118
1118
|
V("p", eo, P(l(d)("report.section.limit.description")), 1)
|
|
1119
1119
|
]),
|
|
1120
|
-
r(
|
|
1120
|
+
r(F, {
|
|
1121
1121
|
"model-value": e.value,
|
|
1122
1122
|
inputmode: "numeric",
|
|
1123
1123
|
placeholder: l(d)("report.section.limit.placeholder"),
|
|
@@ -1147,132 +1147,132 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1147
1147
|
}),
|
|
1148
1148
|
emits: ["update:modelValue"],
|
|
1149
1149
|
setup(D) {
|
|
1150
|
-
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, h =
|
|
1151
|
-
() => s.value.map((
|
|
1150
|
+
const { t: d, te: e } = ie(), s = me(D, "modelValue"), a = D, h = T(() => d(`report.section.condition.${a.label}`)), F = ee(!1), g = T(
|
|
1151
|
+
() => s.value.map((f, o) => {
|
|
1152
1152
|
var u, m;
|
|
1153
1153
|
const n = a.joinFieldOptions.find(
|
|
1154
|
-
(
|
|
1154
|
+
(y) => {
|
|
1155
1155
|
var I, K;
|
|
1156
|
-
return
|
|
1156
|
+
return y.schemaName === ((I = f.joinDimension) == null ? void 0 : I.schemaName) && y.name === ((K = f.joinDimension) == null ? void 0 : K.name);
|
|
1157
1157
|
}
|
|
1158
|
-
),
|
|
1159
|
-
(u =
|
|
1160
|
-
(m =
|
|
1158
|
+
), p = (n == null ? void 0 : n.labels) || [
|
|
1159
|
+
(u = f.joinDimension) == null ? void 0 : u.schemaName,
|
|
1160
|
+
(m = f.joinDimension) == null ? void 0 : m.name
|
|
1161
1161
|
];
|
|
1162
1162
|
return {
|
|
1163
1163
|
index: o,
|
|
1164
|
-
label:
|
|
1165
|
-
value:
|
|
1164
|
+
label: p.map((y) => ne(d, e, y, "other")).join(" "),
|
|
1165
|
+
value: f
|
|
1166
1166
|
};
|
|
1167
1167
|
})
|
|
1168
1168
|
), w = ee(s.value.length > 0 ? 0 : void 0);
|
|
1169
|
-
function
|
|
1170
|
-
|
|
1169
|
+
function _(f) {
|
|
1170
|
+
f ? (t.value = f != null && f.value ? JSON.parse(JSON.stringify(f.value)) : void 0, w.value = f == null ? void 0 : f.index) : (t.value = {
|
|
1171
1171
|
joinDimension: null,
|
|
1172
1172
|
operator: "",
|
|
1173
1173
|
mainDimensions: []
|
|
1174
|
-
}, w.value = void 0),
|
|
1174
|
+
}, w.value = void 0), F.value = !0;
|
|
1175
1175
|
}
|
|
1176
|
-
const t = ee(void 0), i =
|
|
1176
|
+
const t = ee(void 0), i = T(
|
|
1177
1177
|
() => a.joinFieldOptions.find(
|
|
1178
|
-
(
|
|
1178
|
+
(f) => {
|
|
1179
1179
|
var o, n;
|
|
1180
|
-
return
|
|
1180
|
+
return f.schemaName === ((n = (o = t.value) == null ? void 0 : o.joinDimension) == null ? void 0 : n.schemaName) && f.name === t.value.joinDimension.name;
|
|
1181
1181
|
}
|
|
1182
1182
|
) ?? {}
|
|
1183
|
-
),
|
|
1183
|
+
), b = T(
|
|
1184
1184
|
() => {
|
|
1185
|
-
var
|
|
1186
|
-
return (((
|
|
1185
|
+
var f;
|
|
1186
|
+
return (((f = t.value) == null ? void 0 : f.mainDimensions) || []).map(
|
|
1187
1187
|
(o) => a.mainFieldOptions.find(
|
|
1188
1188
|
(n) => n.schemaName === (o == null ? void 0 : o.schemaName) && n.name === o.name
|
|
1189
1189
|
) ?? {}
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
1192
|
-
),
|
|
1193
|
-
() => a.joinFieldOptions.map((
|
|
1192
|
+
), x = T(
|
|
1193
|
+
() => a.joinFieldOptions.map((f) => ({ label: f.labels.join(" "), value: f }))
|
|
1194
1194
|
);
|
|
1195
|
-
function
|
|
1196
|
-
var o, n,
|
|
1197
|
-
t.value && (t.value &&
|
|
1195
|
+
function k(f) {
|
|
1196
|
+
var o, n, p, u;
|
|
1197
|
+
t.value && (t.value && f.schemaName !== ((n = (o = t.value) == null ? void 0 : o.joinDimension) == null ? void 0 : n.schemaName) || f.name !== ((u = (p = t.value) == null ? void 0 : p.joinDimension) == null ? void 0 : u.name)) && (t.value = {
|
|
1198
1198
|
...t.value,
|
|
1199
1199
|
joinDimension: {
|
|
1200
|
-
schemaName:
|
|
1201
|
-
name:
|
|
1202
|
-
option:
|
|
1203
|
-
label: `_${
|
|
1200
|
+
schemaName: f.schemaName,
|
|
1201
|
+
name: f.name,
|
|
1202
|
+
option: f.dimensionOptions[0],
|
|
1203
|
+
label: `_${f.label}`,
|
|
1204
1204
|
hide: !0
|
|
1205
1205
|
}
|
|
1206
|
-
},
|
|
1207
|
-
}
|
|
1208
|
-
function f
|
|
1209
|
-
var n,
|
|
1210
|
-
if (t.value && o >= 0 && (t.value &&
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
schemaName:
|
|
1214
|
-
name:
|
|
1215
|
-
option:
|
|
1216
|
-
label:
|
|
1206
|
+
}, f.joinConditionOperators.includes(t.value.operator) || C(f.joinConditionOperators[0]));
|
|
1207
|
+
}
|
|
1208
|
+
function c(f, o) {
|
|
1209
|
+
var n, p, u, m;
|
|
1210
|
+
if (t.value && o >= 0 && (t.value && f.schemaName !== ((p = (n = t.value) == null ? void 0 : n.mainDimensions[o]) == null ? void 0 : p.schemaName) || f.name !== ((m = (u = t.value) == null ? void 0 : u.mainDimensions[o]) == null ? void 0 : m.name))) {
|
|
1211
|
+
const y = [...t.value.mainDimensions];
|
|
1212
|
+
y[o] = {
|
|
1213
|
+
schemaName: f.schemaName,
|
|
1214
|
+
name: f.name,
|
|
1215
|
+
option: f.dimensionOptions[0],
|
|
1216
|
+
label: f.label,
|
|
1217
1217
|
hide: !0
|
|
1218
1218
|
}, t.value = {
|
|
1219
1219
|
...t.value,
|
|
1220
|
-
mainDimensions:
|
|
1220
|
+
mainDimensions: y
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function C(f) {
|
|
1225
1225
|
if (t.value)
|
|
1226
|
-
switch (
|
|
1227
|
-
case
|
|
1226
|
+
switch (f) {
|
|
1227
|
+
case kl.Between:
|
|
1228
1228
|
t.value = {
|
|
1229
1229
|
...t.value,
|
|
1230
|
-
operator:
|
|
1230
|
+
operator: f,
|
|
1231
1231
|
mainDimensions: [null, null]
|
|
1232
1232
|
};
|
|
1233
1233
|
break;
|
|
1234
1234
|
default:
|
|
1235
1235
|
t.value = {
|
|
1236
1236
|
...t.value,
|
|
1237
|
-
operator:
|
|
1237
|
+
operator: f,
|
|
1238
1238
|
mainDimensions: [null]
|
|
1239
1239
|
};
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
function N() {
|
|
1244
|
-
const
|
|
1244
|
+
const f = [...g.value.map((o) => o.value)];
|
|
1245
1245
|
t.value && (t.value.mainDimensions = t.value.mainDimensions.filter(
|
|
1246
1246
|
(o) => o !== "" && o != null
|
|
1247
|
-
), w.value !== void 0 ?
|
|
1247
|
+
), w.value !== void 0 ? f[w.value] = t.value : f.push(t.value)), s.value = f, F.value = !1;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function S(f) {
|
|
1250
1250
|
const o = [...g.value.map((n) => n.value)];
|
|
1251
|
-
o.splice(
|
|
1251
|
+
o.splice(f, 1), s.value = o;
|
|
1252
1252
|
}
|
|
1253
|
-
return (
|
|
1254
|
-
const n = $("FmMenuDivider"),
|
|
1255
|
-
return v(),
|
|
1253
|
+
return (f, o) => {
|
|
1254
|
+
const n = $("FmMenuDivider"), p = $("FmForm"), u = $("FmIcon"), m = $("FmButton"), y = $("FmListItem"), I = $("FmList"), K = $("FmField");
|
|
1255
|
+
return v(), A("div", oo, [
|
|
1256
1256
|
r(_e, {
|
|
1257
|
-
modelValue:
|
|
1258
|
-
"onUpdate:modelValue": o[2] || (o[2] = (W) =>
|
|
1257
|
+
modelValue: F.value,
|
|
1258
|
+
"onUpdate:modelValue": o[2] || (o[2] = (W) => F.value = W),
|
|
1259
1259
|
title: h.value,
|
|
1260
1260
|
onConfirm: N
|
|
1261
1261
|
}, {
|
|
1262
1262
|
content: R(() => [
|
|
1263
|
-
r(
|
|
1263
|
+
r(p, {
|
|
1264
1264
|
ref: "form",
|
|
1265
1265
|
class: "flex flex-col gap-2 w-[490px]"
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: R(() => {
|
|
1268
|
-
var W, X, Y, te,
|
|
1268
|
+
var W, X, Y, te, B;
|
|
1269
1269
|
return [
|
|
1270
1270
|
r(de, {
|
|
1271
1271
|
label: l(d)("report.section.condition.joinDatasource"),
|
|
1272
1272
|
"model-value": i.value,
|
|
1273
|
-
items:
|
|
1273
|
+
items: x.value,
|
|
1274
1274
|
placeholder: l(d)("report.section.condition.joinDimension"),
|
|
1275
|
-
"onUpdate:modelValue": o[0] || (o[0] = (G) =>
|
|
1275
|
+
"onUpdate:modelValue": o[0] || (o[0] = (G) => k(G))
|
|
1276
1276
|
}, null, 8, ["label", "model-value", "items", "placeholder"]),
|
|
1277
1277
|
r(n),
|
|
1278
1278
|
(W = t.value) != null && W.joinDimension && (((X = i.value) == null ? void 0 : X.dimensionOptions) || []).length > 0 ? (v(), M(de, {
|
|
@@ -1281,7 +1281,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1281
1281
|
"onUpdate:modelValue": o[1] || (o[1] = (G) => t.value.joinDimension.option = G),
|
|
1282
1282
|
label: l(d)("report.section.condition.format"),
|
|
1283
1283
|
items: ((Y = i.value) == null ? void 0 : Y.dimensionOptions.map((G) => ({
|
|
1284
|
-
label: l(e)(`report.section.filter.${l(
|
|
1284
|
+
label: l(e)(`report.section.filter.${l(xe)(G)}`) ? l(d)(`report.section.filter.${l(xe)(G)}`) : G,
|
|
1285
1285
|
value: G
|
|
1286
1286
|
}))) ?? []
|
|
1287
1287
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
@@ -1293,29 +1293,29 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1293
1293
|
label: l(d)("report.section.comparisonOperator." + G),
|
|
1294
1294
|
value: G
|
|
1295
1295
|
})) ?? [],
|
|
1296
|
-
"onUpdate:modelValue":
|
|
1296
|
+
"onUpdate:modelValue": C
|
|
1297
1297
|
}, null, 8, ["model-value", "label", "items"])) : O("", !0),
|
|
1298
|
-
(v(!0),
|
|
1298
|
+
(v(!0), A(se, null, be(((B = t.value) == null ? void 0 : B.mainDimensions) || [], (G, oe) => {
|
|
1299
1299
|
var pe, E;
|
|
1300
|
-
return v(),
|
|
1301
|
-
key:
|
|
1300
|
+
return v(), A("div", {
|
|
1301
|
+
key: oe,
|
|
1302
1302
|
class: "flex flex-col gap-2"
|
|
1303
1303
|
}, [
|
|
1304
1304
|
r(de, {
|
|
1305
|
-
"model-value":
|
|
1306
|
-
label: l(d)("report.section.condition.mainDatasource", { index:
|
|
1305
|
+
"model-value": b.value[oe],
|
|
1306
|
+
label: l(d)("report.section.condition.mainDatasource", { index: oe + 1 }),
|
|
1307
1307
|
items: a.mainFieldOptions.map((ue) => ({
|
|
1308
1308
|
label: ue.labels.join(" "),
|
|
1309
1309
|
value: ue
|
|
1310
1310
|
})),
|
|
1311
|
-
"onUpdate:modelValue": (ue) =>
|
|
1311
|
+
"onUpdate:modelValue": (ue) => c(ue, oe)
|
|
1312
1312
|
}, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
|
|
1313
|
-
G && (((pe =
|
|
1313
|
+
G && (((pe = b.value[oe]) == null ? void 0 : pe.dimensionOptions) || []).length > 0 && G ? (v(), M(de, {
|
|
1314
1314
|
key: 0,
|
|
1315
1315
|
modelValue: G.option,
|
|
1316
1316
|
"onUpdate:modelValue": (ue) => G.option = ue,
|
|
1317
|
-
items: (E =
|
|
1318
|
-
label: l(e)(`report.section.filter.${l(
|
|
1317
|
+
items: (E = b.value[oe]) == null ? void 0 : E.dimensionOptions.map((ue) => ({
|
|
1318
|
+
label: l(e)(`report.section.filter.${l(xe)(ue)}`) ? l(d)(`report.section.filter.${l(xe)(ue)}`) : ue,
|
|
1319
1319
|
value: ue
|
|
1320
1320
|
}))
|
|
1321
1321
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : O("", !0),
|
|
@@ -1344,9 +1344,9 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1344
1344
|
class: "flex flex-col gap-2 w-full"
|
|
1345
1345
|
}, {
|
|
1346
1346
|
item: R(({ element: W, index: X }) => [
|
|
1347
|
-
r(
|
|
1347
|
+
r(y, {
|
|
1348
1348
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1349
|
-
onClick: ve((Y) =>
|
|
1349
|
+
onClick: ve((Y) => _(g.value[X]), ["stop"])
|
|
1350
1350
|
}, {
|
|
1351
1351
|
default: R(() => [
|
|
1352
1352
|
r(u, { name: "drag_handle" }),
|
|
@@ -1356,7 +1356,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1356
1356
|
icon: "close",
|
|
1357
1357
|
size: "md",
|
|
1358
1358
|
variant: "tertiary",
|
|
1359
|
-
onClick: ve((Y) =>
|
|
1359
|
+
onClick: ve((Y) => S(X), ["stop"])
|
|
1360
1360
|
}, null, 8, ["onClick"])
|
|
1361
1361
|
]),
|
|
1362
1362
|
_: 2
|
|
@@ -1369,7 +1369,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1369
1369
|
}),
|
|
1370
1370
|
r(K, {
|
|
1371
1371
|
class: "text-fm-color-typo-tertiary cursor-pointer",
|
|
1372
|
-
onClick: o[3] || (o[3] = (W) =>
|
|
1372
|
+
onClick: o[3] || (o[3] = (W) => _())
|
|
1373
1373
|
}, {
|
|
1374
1374
|
default: R(() => [
|
|
1375
1375
|
Se(P(l(d)("report.section.condition.add")), 1)
|
|
@@ -1419,30 +1419,30 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1419
1419
|
},
|
|
1420
1420
|
{ deep: !0 }
|
|
1421
1421
|
);
|
|
1422
|
-
const h = D,
|
|
1422
|
+
const h = D, F = d, { schemas: g } = Ve(ol());
|
|
1423
1423
|
ml(() => {
|
|
1424
1424
|
e(), s();
|
|
1425
1425
|
});
|
|
1426
|
-
const { t: w, te:
|
|
1427
|
-
() => [
|
|
1428
|
-
),
|
|
1426
|
+
const { t: w, te: _, locale: t } = ie(), i = T(() => !h.mainDatasourceConfig), b = T(
|
|
1427
|
+
() => [z.BarChart, z.LineChart, z.Scorecard].includes(h.config.type)
|
|
1428
|
+
), x = T(() => {
|
|
1429
1429
|
const o = [...a.value.dimensions].filter((n) => !n.hide);
|
|
1430
1430
|
return o.sort(
|
|
1431
|
-
(n,
|
|
1431
|
+
(n, p) => (a.value.rowIds || []).indexOf(Fe(n)) - (a.value.rowIds || []).indexOf(Fe(p))
|
|
1432
1432
|
), o;
|
|
1433
|
-
}),
|
|
1433
|
+
}), k = T(() => h.config.type === z.Scorecard), c = T(
|
|
1434
1434
|
() => {
|
|
1435
1435
|
var o;
|
|
1436
1436
|
return (((o = h.mainDatasourceConfig) == null ? void 0 : o.schemaNames) || []).reduce(
|
|
1437
|
-
(n,
|
|
1438
|
-
const u = g.value.find((m) => m.name ===
|
|
1437
|
+
(n, p) => {
|
|
1438
|
+
const u = g.value.find((m) => m.name === p);
|
|
1439
1439
|
return u && (n = [
|
|
1440
1440
|
...n,
|
|
1441
1441
|
...u.fields.map((m) => ({
|
|
1442
1442
|
...m,
|
|
1443
1443
|
labels: [
|
|
1444
|
-
ne(w,
|
|
1445
|
-
ne(w,
|
|
1444
|
+
ne(w, _, u.label, "schema"),
|
|
1445
|
+
ne(w, _, m.label || m.name, "other")
|
|
1446
1446
|
]
|
|
1447
1447
|
}))
|
|
1448
1448
|
]), n;
|
|
@@ -1450,85 +1450,85 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1450
1450
|
[]
|
|
1451
1451
|
);
|
|
1452
1452
|
}
|
|
1453
|
-
),
|
|
1453
|
+
), C = T(
|
|
1454
1454
|
() => a.value.schemaNames.reduce((o, n) => {
|
|
1455
|
-
const
|
|
1456
|
-
return
|
|
1455
|
+
const p = g.value.find((u) => u.name === n);
|
|
1456
|
+
return p && (o = [
|
|
1457
1457
|
...o,
|
|
1458
|
-
...
|
|
1458
|
+
...p.fields.map((u) => ({
|
|
1459
1459
|
...u,
|
|
1460
1460
|
labels: [
|
|
1461
|
-
ne(w,
|
|
1462
|
-
ne(w,
|
|
1461
|
+
ne(w, _, p.label, "schema"),
|
|
1462
|
+
ne(w, _, u.label || u.name, "other")
|
|
1463
1463
|
]
|
|
1464
1464
|
}))
|
|
1465
1465
|
]), o;
|
|
1466
1466
|
}, [])
|
|
1467
|
-
), N =
|
|
1467
|
+
), N = T(() => [
|
|
1468
1468
|
{ label: w("report.section.datasource.none"), value: null },
|
|
1469
1469
|
{ label: w("report.section.datasource.grandTotal"), value: 0 },
|
|
1470
|
-
...[...
|
|
1471
|
-
label: ne(w,
|
|
1470
|
+
...[...x.value].slice(0, x.value.length - 1).map((o, n) => ({
|
|
1471
|
+
label: ne(w, _, o.label, "other"),
|
|
1472
1472
|
value: n + 1
|
|
1473
1473
|
}))
|
|
1474
|
-
]),
|
|
1475
|
-
() => `rollup-${t.value}-${
|
|
1476
|
-
),
|
|
1474
|
+
]), S = T(
|
|
1475
|
+
() => `rollup-${t.value}-${x.value.map((o) => Fe(o)).join("|")}`
|
|
1476
|
+
), f = T(() => [
|
|
1477
1477
|
{
|
|
1478
1478
|
label: w("report.section.datasource.none"),
|
|
1479
1479
|
value: null
|
|
1480
1480
|
},
|
|
1481
1481
|
...Object.keys(Je).map((o) => ({
|
|
1482
|
-
label:
|
|
1482
|
+
label: _(`report.section.datasource.periodType.${o}`) ? w(`report.section.datasource.periodType.${o}`) : o,
|
|
1483
1483
|
value: Je[o]
|
|
1484
1484
|
}))
|
|
1485
1485
|
]);
|
|
1486
1486
|
return (o, n) => {
|
|
1487
|
-
const
|
|
1487
|
+
const p = $("FmButton"), u = $("FmSwitch"), m = $("FmSelect");
|
|
1488
1488
|
return v(), M(Re, null, {
|
|
1489
1489
|
header: R(() => [
|
|
1490
1490
|
V("p", null, P(h.label), 1),
|
|
1491
1491
|
n[19] || (n[19] = V("div", { class: "grow" }, null, -1)),
|
|
1492
|
-
h.closeable ? (v(), M(
|
|
1492
|
+
h.closeable ? (v(), M(p, {
|
|
1493
1493
|
key: 0,
|
|
1494
1494
|
icon: "close",
|
|
1495
1495
|
variant: "tertiary",
|
|
1496
1496
|
size: "md",
|
|
1497
|
-
onClick: n[0] || (n[0] = ve((
|
|
1497
|
+
onClick: n[0] || (n[0] = ve((y) => F("click-close"), ["stop"]))
|
|
1498
1498
|
})) : O("", !0)
|
|
1499
1499
|
]),
|
|
1500
1500
|
content: R(() => [
|
|
1501
1501
|
r(Ol, {
|
|
1502
1502
|
modelValue: a.value,
|
|
1503
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1503
|
+
"onUpdate:modelValue": n[1] || (n[1] = (y) => a.value = y),
|
|
1504
1504
|
label: l(w)("report.section.schema.title")
|
|
1505
1505
|
}, null, 8, ["modelValue", "label"]),
|
|
1506
1506
|
r(ze, {
|
|
1507
1507
|
modelValue: a.value.dimensions,
|
|
1508
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
1509
|
-
options:
|
|
1508
|
+
"onUpdate:modelValue": n[2] || (n[2] = (y) => a.value.dimensions = y),
|
|
1509
|
+
options: C.value,
|
|
1510
1510
|
config: a.value,
|
|
1511
1511
|
max: h.config.maxDimension,
|
|
1512
1512
|
"has-row-column": !0,
|
|
1513
|
-
onConfig: n[3] || (n[3] = (
|
|
1514
|
-
a.value =
|
|
1513
|
+
onConfig: n[3] || (n[3] = (y) => {
|
|
1514
|
+
a.value = y;
|
|
1515
1515
|
})
|
|
1516
1516
|
}, null, 8, ["modelValue", "options", "config", "max"]),
|
|
1517
1517
|
r(u, {
|
|
1518
1518
|
"label-placement": "right",
|
|
1519
1519
|
label: l(w)("report.section.datasource.comparable"),
|
|
1520
1520
|
"model-value": a.value.isComparable ?? !1,
|
|
1521
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
1522
|
-
a.value.isComparable =
|
|
1521
|
+
"onUpdate:modelValue": n[4] || (n[4] = (y) => {
|
|
1522
|
+
a.value.isComparable = y;
|
|
1523
1523
|
})
|
|
1524
1524
|
}, null, 8, ["label", "model-value"]),
|
|
1525
|
-
|
|
1525
|
+
b.value ? (v(), M(u, {
|
|
1526
1526
|
key: 0,
|
|
1527
1527
|
"label-placement": "right",
|
|
1528
1528
|
label: l(w)("report.section.datasource.cumulative"),
|
|
1529
1529
|
"model-value": a.value.isCumulative ?? !1,
|
|
1530
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
1531
|
-
a.value.isCumulative =
|
|
1530
|
+
"onUpdate:modelValue": n[5] || (n[5] = (y) => {
|
|
1531
|
+
a.value.isCumulative = y;
|
|
1532
1532
|
})
|
|
1533
1533
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
1534
1534
|
h.config.isDrillConfigurable && i.value ? (v(), M(u, {
|
|
@@ -1536,35 +1536,35 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1536
1536
|
label: l(w)("report.section.datasource.drill"),
|
|
1537
1537
|
"label-placement": "right",
|
|
1538
1538
|
"model-value": a.value.isDrillable ?? !1,
|
|
1539
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
1540
|
-
a.value.isDrillable =
|
|
1539
|
+
"onUpdate:modelValue": n[6] || (n[6] = (y) => {
|
|
1540
|
+
a.value.isDrillable = y;
|
|
1541
1541
|
})
|
|
1542
1542
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
1543
1543
|
i.value ? (v(), M(u, {
|
|
1544
1544
|
key: 2,
|
|
1545
1545
|
modelValue: a.value.isBlend,
|
|
1546
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
1546
|
+
"onUpdate:modelValue": n[7] || (n[7] = (y) => a.value.isBlend = y),
|
|
1547
1547
|
label: l(w)("report.section.datasource.blend"),
|
|
1548
1548
|
"label-placement": "right"
|
|
1549
1549
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
1550
1550
|
h.config.canRollup && i.value ? (v(), M(m, {
|
|
1551
|
-
key:
|
|
1551
|
+
key: S.value,
|
|
1552
1552
|
modelValue: a.value.rollup,
|
|
1553
|
-
"onUpdate:modelValue": n[8] || (n[8] = (
|
|
1553
|
+
"onUpdate:modelValue": n[8] || (n[8] = (y) => a.value.rollup = y),
|
|
1554
1554
|
label: l(w)("report.section.datasource.subTotal"),
|
|
1555
1555
|
items: N.value
|
|
1556
1556
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
1557
1557
|
i.value ? O("", !0) : (v(), M(m, {
|
|
1558
1558
|
key: `periodType-${l(t)}`,
|
|
1559
1559
|
modelValue: a.value.periodType,
|
|
1560
|
-
"onUpdate:modelValue": n[9] || (n[9] = (
|
|
1560
|
+
"onUpdate:modelValue": n[9] || (n[9] = (y) => a.value.periodType = y),
|
|
1561
1561
|
label: l(w)("report.section.datasource.periodType.label"),
|
|
1562
|
-
items:
|
|
1562
|
+
items: f.value
|
|
1563
1563
|
}, null, 8, ["modelValue", "label", "items"])),
|
|
1564
1564
|
h.config.canTranspose && i.value ? (v(), M(u, {
|
|
1565
1565
|
key: 5,
|
|
1566
1566
|
modelValue: a.value.isTransposed,
|
|
1567
|
-
"onUpdate:modelValue": n[10] || (n[10] = (
|
|
1567
|
+
"onUpdate:modelValue": n[10] || (n[10] = (y) => a.value.isTransposed = y),
|
|
1568
1568
|
label: l(w)("report.section.datasource.transpose"),
|
|
1569
1569
|
"label-placement": "right"
|
|
1570
1570
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
@@ -1573,53 +1573,53 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1573
1573
|
"model-value": a.value.breakdownDimension ? [a.value.breakdownDimension] : [],
|
|
1574
1574
|
label: "breakdownDimension",
|
|
1575
1575
|
max: 1,
|
|
1576
|
-
options:
|
|
1577
|
-
"onUpdate:modelValue": n[11] || (n[11] = (
|
|
1578
|
-
a.value.breakdownDimension =
|
|
1576
|
+
options: C.value,
|
|
1577
|
+
"onUpdate:modelValue": n[11] || (n[11] = (y) => {
|
|
1578
|
+
a.value.breakdownDimension = y[0];
|
|
1579
1579
|
})
|
|
1580
1580
|
}, null, 8, ["model-value", "options"])) : O("", !0),
|
|
1581
|
-
|
|
1581
|
+
k.value ? (v(), M(ze, {
|
|
1582
1582
|
key: 7,
|
|
1583
1583
|
"model-value": a.value.sparklineDimension ? [a.value.sparklineDimension] : [],
|
|
1584
1584
|
label: "sparklineDimension",
|
|
1585
1585
|
max: 1,
|
|
1586
|
-
options:
|
|
1587
|
-
"onUpdate:modelValue": n[12] || (n[12] = (
|
|
1588
|
-
a.value.sparklineDimension =
|
|
1586
|
+
options: C.value,
|
|
1587
|
+
"onUpdate:modelValue": n[12] || (n[12] = (y) => {
|
|
1588
|
+
a.value.sparklineDimension = y[0];
|
|
1589
1589
|
})
|
|
1590
1590
|
}, null, 8, ["model-value", "options"])) : O("", !0),
|
|
1591
1591
|
r(ql, {
|
|
1592
1592
|
modelValue: a.value.metrics,
|
|
1593
|
-
"onUpdate:modelValue": n[13] || (n[13] = (
|
|
1594
|
-
options:
|
|
1593
|
+
"onUpdate:modelValue": n[13] || (n[13] = (y) => a.value.metrics = y),
|
|
1594
|
+
options: C.value,
|
|
1595
1595
|
max: h.config.maxMetric,
|
|
1596
1596
|
config: a.value,
|
|
1597
|
-
"has-row-column": h.config.type === l(
|
|
1597
|
+
"has-row-column": h.config.type === l(z).Table,
|
|
1598
1598
|
"has-xy": h.config.hasXy,
|
|
1599
|
-
onConfig: n[14] || (n[14] = (
|
|
1600
|
-
a.value =
|
|
1599
|
+
onConfig: n[14] || (n[14] = (y) => {
|
|
1600
|
+
a.value = y;
|
|
1601
1601
|
})
|
|
1602
1602
|
}, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-xy"]),
|
|
1603
1603
|
r(yl, {
|
|
1604
1604
|
modelValue: a.value.filters,
|
|
1605
|
-
"onUpdate:modelValue": n[15] || (n[15] = (
|
|
1606
|
-
options:
|
|
1605
|
+
"onUpdate:modelValue": n[15] || (n[15] = (y) => a.value.filters = y),
|
|
1606
|
+
options: C.value
|
|
1607
1607
|
}, null, 8, ["modelValue", "options"]),
|
|
1608
1608
|
r(Ql, {
|
|
1609
1609
|
modelValue: a.value.sorts,
|
|
1610
|
-
"onUpdate:modelValue": n[16] || (n[16] = (
|
|
1611
|
-
options:
|
|
1610
|
+
"onUpdate:modelValue": n[16] || (n[16] = (y) => a.value.sorts = y),
|
|
1611
|
+
options: C.value
|
|
1612
1612
|
}, null, 8, ["modelValue", "options"]),
|
|
1613
1613
|
r(lo, {
|
|
1614
1614
|
modelValue: a.value.limit,
|
|
1615
|
-
"onUpdate:modelValue": n[17] || (n[17] = (
|
|
1615
|
+
"onUpdate:modelValue": n[17] || (n[17] = (y) => a.value.limit = y)
|
|
1616
1616
|
}, null, 8, ["modelValue"]),
|
|
1617
1617
|
a.value.conditions ? (v(), M(io, {
|
|
1618
1618
|
key: 8,
|
|
1619
1619
|
modelValue: a.value.conditions,
|
|
1620
|
-
"onUpdate:modelValue": n[18] || (n[18] = (
|
|
1621
|
-
"join-field-options":
|
|
1622
|
-
"main-field-options":
|
|
1620
|
+
"onUpdate:modelValue": n[18] || (n[18] = (y) => a.value.conditions = y),
|
|
1621
|
+
"join-field-options": C.value,
|
|
1622
|
+
"main-field-options": c.value
|
|
1623
1623
|
}, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : O("", !0)
|
|
1624
1624
|
]),
|
|
1625
1625
|
_: 1
|
|
@@ -1641,14 +1641,14 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1641
1641
|
setup(D) {
|
|
1642
1642
|
const { t: d } = ie(), e = me(D, "modelValue"), s = D;
|
|
1643
1643
|
return (a, h) => {
|
|
1644
|
-
const
|
|
1645
|
-
return v(),
|
|
1644
|
+
const F = $("FmIcon");
|
|
1645
|
+
return v(), A("div", {
|
|
1646
1646
|
class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
|
|
1647
1647
|
onClick: h[0] || (h[0] = (g) => e.value = !e.value)
|
|
1648
1648
|
}, [
|
|
1649
1649
|
V("p", so, P(l(d)("report.tile.setting")), 1),
|
|
1650
1650
|
h[1] || (h[1] = V("div", { class: "grow" }, null, -1)),
|
|
1651
|
-
r(
|
|
1651
|
+
r(F, {
|
|
1652
1652
|
name: s.icon
|
|
1653
1653
|
}, null, 8, ["name"])
|
|
1654
1654
|
]);
|
|
@@ -1663,7 +1663,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1663
1663
|
emits: ["update:modelValue"],
|
|
1664
1664
|
setup(D) {
|
|
1665
1665
|
const d = me(D, "modelValue");
|
|
1666
|
-
return (e, s) => (v(),
|
|
1666
|
+
return (e, s) => (v(), A(se, null, [
|
|
1667
1667
|
r(Xe, {
|
|
1668
1668
|
modelValue: d.value,
|
|
1669
1669
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => d.value = a),
|
|
@@ -1683,7 +1683,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1683
1683
|
const d = me(D, "modelValue");
|
|
1684
1684
|
return (e, s) => {
|
|
1685
1685
|
const a = $("FmTopSheet");
|
|
1686
|
-
return v(),
|
|
1686
|
+
return v(), A("div", uo, [
|
|
1687
1687
|
r(Xe, {
|
|
1688
1688
|
modelValue: d.value,
|
|
1689
1689
|
"onUpdate:modelValue": s[0] || (s[0] = (h) => d.value = h),
|
|
@@ -1714,32 +1714,32 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1714
1714
|
},
|
|
1715
1715
|
emits: ["update:model"],
|
|
1716
1716
|
setup(D, { emit: d }) {
|
|
1717
|
-
const e = D, s = d, { t: a } = ie(), h =
|
|
1717
|
+
const e = D, s = d, { t: a } = ie(), h = T({
|
|
1718
1718
|
get: () => e.model.showTitle ?? !1,
|
|
1719
1719
|
set: (t) => s("update:model", { ...e.model, showTitle: t })
|
|
1720
|
-
}),
|
|
1720
|
+
}), F = T({
|
|
1721
1721
|
get: () => e.model.titleFontSize ?? 14,
|
|
1722
1722
|
set: (t) => s("update:model", { ...e.model, titleFontSize: Math.min(Number(t), 24) })
|
|
1723
|
-
}), g =
|
|
1723
|
+
}), g = T({
|
|
1724
1724
|
get: () => e.model.titleBold ?? !1,
|
|
1725
1725
|
set: (t) => s("update:model", { ...e.model, titleBold: t })
|
|
1726
|
-
}), w =
|
|
1726
|
+
}), w = T({
|
|
1727
1727
|
get: () => e.model.titleItalic ?? !1,
|
|
1728
1728
|
set: (t) => s("update:model", { ...e.model, titleItalic: t })
|
|
1729
|
-
}),
|
|
1729
|
+
}), _ = T({
|
|
1730
1730
|
get: () => e.model.titleUnderline ?? !1,
|
|
1731
1731
|
set: (t) => s("update:model", { ...e.model, titleUnderline: t })
|
|
1732
1732
|
});
|
|
1733
1733
|
return (t, i) => {
|
|
1734
|
-
const
|
|
1735
|
-
return v(),
|
|
1734
|
+
const b = $("FmStepperField"), x = $("FmButton"), k = $("FmSwitch");
|
|
1735
|
+
return v(), A(se, null, [
|
|
1736
1736
|
V("div", null, [
|
|
1737
1737
|
V("div", co, [
|
|
1738
1738
|
V("div", po, [
|
|
1739
1739
|
V("p", fo, P(l(a)("report.section.datasource.title.titleFontSize")), 1),
|
|
1740
|
-
r(
|
|
1741
|
-
modelValue:
|
|
1742
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1740
|
+
r(b, {
|
|
1741
|
+
modelValue: F.value,
|
|
1742
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => F.value = c),
|
|
1743
1743
|
max: 24,
|
|
1744
1744
|
min: 1,
|
|
1745
1745
|
type: "number"
|
|
@@ -1748,45 +1748,45 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1748
1748
|
V("div", vo, [
|
|
1749
1749
|
V("p", go, P(l(a)("report.section.datasource.title.textStyleFormat")), 1),
|
|
1750
1750
|
V("div", bo, [
|
|
1751
|
-
r(
|
|
1751
|
+
r(x, {
|
|
1752
1752
|
"append-icon": "format_bold",
|
|
1753
1753
|
"model-value": t.model.titleBold ?? !1,
|
|
1754
1754
|
variant: "tertiary",
|
|
1755
1755
|
"icon-color": t.model.titleBold ? "neutral-gray-400" : "neutral-gray-300",
|
|
1756
1756
|
"bg-color": t.model.titleBold ? "neutral-gray-100" : "neutral-white",
|
|
1757
1757
|
class: "rounded-sm",
|
|
1758
|
-
onClick: i[1] || (i[1] = (
|
|
1758
|
+
onClick: i[1] || (i[1] = (c) => g.value = !g.value)
|
|
1759
1759
|
}, null, 8, ["model-value", "icon-color", "bg-color"]),
|
|
1760
|
-
r(
|
|
1760
|
+
r(x, {
|
|
1761
1761
|
"append-icon": "format_italic",
|
|
1762
1762
|
"model-value": t.model.titleItalic ?? !1,
|
|
1763
1763
|
"icon-color": t.model.titleItalic ? "neutral-gray-400" : "neutral-gray-300",
|
|
1764
1764
|
"bg-color": t.model.titleItalic ? "neutral-gray-100" : "neutral-white",
|
|
1765
1765
|
class: "rounded-sm",
|
|
1766
|
-
onClick: i[2] || (i[2] = (
|
|
1766
|
+
onClick: i[2] || (i[2] = (c) => w.value = !w.value)
|
|
1767
1767
|
}, null, 8, ["model-value", "icon-color", "bg-color"]),
|
|
1768
|
-
r(
|
|
1768
|
+
r(x, {
|
|
1769
1769
|
"append-icon": "format_underlined",
|
|
1770
1770
|
"model-value": t.model.titleUnderline ?? !1,
|
|
1771
1771
|
"icon-color": t.model.titleUnderline ? "neutral-gray-400" : "neutral-gray-300",
|
|
1772
1772
|
"bg-color": t.model.titleUnderline ? "neutral-gray-100" : "neutral-white",
|
|
1773
1773
|
class: "rounded-sm",
|
|
1774
|
-
onClick: i[3] || (i[3] = (
|
|
1774
|
+
onClick: i[3] || (i[3] = (c) => _.value = !_.value)
|
|
1775
1775
|
}, null, 8, ["model-value", "icon-color", "bg-color"])
|
|
1776
1776
|
])
|
|
1777
1777
|
])
|
|
1778
1778
|
])
|
|
1779
1779
|
]),
|
|
1780
|
-
r(
|
|
1780
|
+
r(k, {
|
|
1781
1781
|
modelValue: h.value,
|
|
1782
|
-
"onUpdate:modelValue": i[4] || (i[4] = (
|
|
1782
|
+
"onUpdate:modelValue": i[4] || (i[4] = (c) => h.value = c),
|
|
1783
1783
|
label: l(a)("report.section.datasource.title.showTitle"),
|
|
1784
1784
|
"label-placement": "right"
|
|
1785
1785
|
}, null, 8, ["modelValue", "label"])
|
|
1786
1786
|
], 64);
|
|
1787
1787
|
};
|
|
1788
1788
|
}
|
|
1789
|
-
}), ho = { class: "flex flex-col gap-8" }, wo = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" },
|
|
1789
|
+
}), ho = { class: "flex flex-col gap-8" }, wo = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Co = { class: "flex flex-row gap-2" }, Vo = {
|
|
1790
1790
|
key: 0,
|
|
1791
1791
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
1792
1792
|
}, Fo = /* @__PURE__ */ ae({
|
|
@@ -1796,41 +1796,41 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1796
1796
|
},
|
|
1797
1797
|
emits: ["update:layout"],
|
|
1798
1798
|
setup(D, { emit: d }) {
|
|
1799
|
-
const { t: e } = ie(), s = D, a = d, { isEditing: h, colWidths:
|
|
1800
|
-
|
|
1799
|
+
const { t: e } = ie(), s = D, a = d, { isEditing: h, colWidths: F, rowHeight: g } = Ve(Me()), { enableCellResizing: w, cancelResizingChanges: _, resetStore: t, disableEditMode: i } = Me();
|
|
1800
|
+
T(
|
|
1801
1801
|
() => {
|
|
1802
|
-
var
|
|
1803
|
-
return (((
|
|
1802
|
+
var x, k, c;
|
|
1803
|
+
return (((k = (x = s.layout) == null ? void 0 : x.colWidths) == null ? void 0 : k.length) ?? 0) > 0 || F.value.length > 0 || (((c = s.layout) == null ? void 0 : c.rowHeight) ?? 0) > 0 || g.value > 0;
|
|
1804
1804
|
}
|
|
1805
1805
|
);
|
|
1806
|
-
function
|
|
1806
|
+
function b() {
|
|
1807
1807
|
t(), i(), a("update:layout", {
|
|
1808
1808
|
...s.layout,
|
|
1809
1809
|
rowHeight: void 0,
|
|
1810
1810
|
colWidths: void 0
|
|
1811
1811
|
});
|
|
1812
|
-
const
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1812
|
+
const x = document.querySelector("table");
|
|
1813
|
+
if (x) {
|
|
1814
|
+
x.classList.remove("table-fixed"), x.classList.add("table-auto"), x.style.width = "";
|
|
1815
|
+
const k = x.querySelectorAll("th"), c = x.querySelectorAll("td"), C = x.querySelectorAll("tr");
|
|
1816
|
+
k.forEach((N) => {
|
|
1817
1817
|
N.style.width = "";
|
|
1818
|
-
}),
|
|
1818
|
+
}), c.forEach((N) => {
|
|
1819
1819
|
N.style.width = "";
|
|
1820
|
-
}),
|
|
1820
|
+
}), C.forEach((N) => {
|
|
1821
1821
|
N.style.height = "";
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
1825
|
return We(() => {
|
|
1826
|
-
var
|
|
1827
|
-
((
|
|
1828
|
-
}), (
|
|
1829
|
-
const
|
|
1830
|
-
return v(),
|
|
1826
|
+
var x, k;
|
|
1827
|
+
((x = s.layout) == null ? void 0 : x.rowHeight) !== void 0 && (g.value = s.layout.rowHeight), (k = s.layout) != null && k.colWidths && (F.value = [...s.layout.colWidths]);
|
|
1828
|
+
}), (x, k) => {
|
|
1829
|
+
const c = $("FmButton");
|
|
1830
|
+
return v(), A("div", ho, [
|
|
1831
1831
|
V("p", wo, P(l(e)("report.section.datasource.tableLayout")), 1),
|
|
1832
|
-
V("div",
|
|
1833
|
-
l(h) ? O("", !0) : (v(), M(
|
|
1832
|
+
V("div", Co, [
|
|
1833
|
+
l(h) ? O("", !0) : (v(), M(c, {
|
|
1834
1834
|
key: 0,
|
|
1835
1835
|
label: l(e)("report.section.datasource.resizeTable"),
|
|
1836
1836
|
variant: "secondary",
|
|
@@ -1839,29 +1839,29 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1839
1839
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1840
1840
|
onClick: l(w)
|
|
1841
1841
|
}, null, 8, ["label", "onClick"])),
|
|
1842
|
-
l(h) ? (v(), M(
|
|
1842
|
+
l(h) ? (v(), M(c, {
|
|
1843
1843
|
key: 1,
|
|
1844
1844
|
label: l(e)("report.common.cancel"),
|
|
1845
1845
|
variant: "primary",
|
|
1846
1846
|
icon: "close",
|
|
1847
1847
|
"icon-position": "prepend",
|
|
1848
1848
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1849
|
-
onClick: l(
|
|
1849
|
+
onClick: l(_)
|
|
1850
1850
|
}, null, 8, ["label", "onClick"])) : O("", !0),
|
|
1851
|
-
r(
|
|
1851
|
+
r(c, {
|
|
1852
1852
|
label: l(e)("report.section.datasource.resetSize"),
|
|
1853
1853
|
variant: "secondary",
|
|
1854
1854
|
icon: "restore",
|
|
1855
1855
|
"icon-position": "prepend",
|
|
1856
1856
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1857
|
-
onClick:
|
|
1857
|
+
onClick: b
|
|
1858
1858
|
}, null, 8, ["label"])
|
|
1859
1859
|
]),
|
|
1860
|
-
l(h) ? (v(),
|
|
1860
|
+
l(h) ? (v(), A("p", Vo, P(l(e)("report.section.datasource.resizeTableHelper")), 1)) : O("", !0)
|
|
1861
1861
|
]);
|
|
1862
1862
|
};
|
|
1863
1863
|
}
|
|
1864
|
-
}),
|
|
1864
|
+
}), ko = { class: "flex gap-16 justify-center items-center" }, xo = { class: "fm-typo-en-title-sm-600" }, So = { class: "fm-typo-en-body-lg-600" }, _o = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, To = { class: "h-[40x]" }, Ze = "YYYY-MM-DD", ul = /* @__PURE__ */ ae({
|
|
1865
1865
|
__name: "TileEditorTab",
|
|
1866
1866
|
props: /* @__PURE__ */ re({
|
|
1867
1867
|
hideConfiguration: {
|
|
@@ -1876,21 +1876,21 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1876
1876
|
}),
|
|
1877
1877
|
emits: /* @__PURE__ */ re(["hideConfiguration"], ["update:modelValue"]),
|
|
1878
1878
|
setup(D, { emit: d }) {
|
|
1879
|
-
var n,
|
|
1880
|
-
const e = il(), { dateRange: s, timezone: a } =
|
|
1879
|
+
var n, p;
|
|
1880
|
+
const e = il(), { dateRange: s, timezone: a } = Ve(e), h = {
|
|
1881
1881
|
startDate: s.value.startDate,
|
|
1882
1882
|
endDate: s.value.endDate
|
|
1883
|
-
},
|
|
1884
|
-
startDate: (n =
|
|
1885
|
-
endDate: (
|
|
1883
|
+
}, F = ee({
|
|
1884
|
+
startDate: (n = Ue(s.value.startDate)) == null ? void 0 : n.tz(a.value).format(Ze),
|
|
1885
|
+
endDate: (p = Ue(s.value.endDate)) == null ? void 0 : p.tz(a.value).format(Ze)
|
|
1886
1886
|
});
|
|
1887
1887
|
ye(
|
|
1888
|
-
|
|
1888
|
+
F,
|
|
1889
1889
|
() => {
|
|
1890
|
-
|
|
1890
|
+
F.value.endDate || (F.value.endDate = F.value.startDate);
|
|
1891
1891
|
const u = {
|
|
1892
|
-
startDate:
|
|
1893
|
-
endDate:
|
|
1892
|
+
startDate: Ue.tz(F.value.startDate, a.value).startOf("day").utc().toISOString(),
|
|
1893
|
+
endDate: Ue.tz(F.value.endDate, a.value).endOf("day").utc().toISOString()
|
|
1894
1894
|
};
|
|
1895
1895
|
s.value = u;
|
|
1896
1896
|
},
|
|
@@ -1898,13 +1898,13 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1898
1898
|
), cl(() => {
|
|
1899
1899
|
s.value = { ...h };
|
|
1900
1900
|
});
|
|
1901
|
-
const g = me(D, "modelValue"), { breakpoints: w } = al(),
|
|
1902
|
-
function
|
|
1901
|
+
const g = me(D, "modelValue"), { breakpoints: w } = al(), _ = D, { promptMessage: t } = tl(), i = d, { t: b, locale: x } = ie();
|
|
1902
|
+
function k(u) {
|
|
1903
1903
|
g.value = Pl(u);
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function c() {
|
|
1906
1906
|
const u = [...g.value.widget.config.joinDatasources || []];
|
|
1907
|
-
u.push({ ...wl(g.value.widget.type), conditions: [] }),
|
|
1907
|
+
u.push({ ...wl(g.value.widget.type), conditions: [] }), k({
|
|
1908
1908
|
...g.value,
|
|
1909
1909
|
widget: {
|
|
1910
1910
|
...g.value.widget,
|
|
@@ -1915,50 +1915,50 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
}
|
|
1918
|
-
async function
|
|
1918
|
+
async function C(u) {
|
|
1919
1919
|
if (!await t({
|
|
1920
|
-
title:
|
|
1921
|
-
message:
|
|
1920
|
+
title: b("report.tile.datasource.remove"),
|
|
1921
|
+
message: b("report.tile.datasource.confirmRemove", { index: u + 1 })
|
|
1922
1922
|
})) return;
|
|
1923
|
-
const
|
|
1924
|
-
|
|
1923
|
+
const y = [...g.value.widget.config.joinDatasources || []];
|
|
1924
|
+
y.splice(u, 1), k({
|
|
1925
1925
|
...g.value,
|
|
1926
1926
|
widget: {
|
|
1927
1927
|
...g.value.widget,
|
|
1928
1928
|
config: {
|
|
1929
1929
|
...g.value.widget.config,
|
|
1930
|
-
joinDatasources:
|
|
1930
|
+
joinDatasources: y
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
const N = (u, m) => {
|
|
1936
|
-
let
|
|
1936
|
+
let y = 1, I = 1;
|
|
1937
1937
|
switch (u) {
|
|
1938
|
-
case
|
|
1939
|
-
|
|
1938
|
+
case z.Scorecard:
|
|
1939
|
+
y = 1, I = 2;
|
|
1940
1940
|
break;
|
|
1941
|
-
case
|
|
1942
|
-
case
|
|
1943
|
-
case
|
|
1944
|
-
case
|
|
1945
|
-
case
|
|
1946
|
-
|
|
1941
|
+
case z.BarChart:
|
|
1942
|
+
case z.StackBarChart:
|
|
1943
|
+
case z.ClusteredStackBarChart:
|
|
1944
|
+
case z.LineChart:
|
|
1945
|
+
case z.StackLineChart:
|
|
1946
|
+
y = 4, I = 6;
|
|
1947
1947
|
break;
|
|
1948
|
-
case
|
|
1949
|
-
|
|
1948
|
+
case z.Table:
|
|
1949
|
+
y = 4, I = 12;
|
|
1950
1950
|
break;
|
|
1951
|
-
case
|
|
1952
|
-
|
|
1951
|
+
case z.Circular:
|
|
1952
|
+
y = 4, I = 4;
|
|
1953
1953
|
break;
|
|
1954
|
-
case
|
|
1955
|
-
|
|
1954
|
+
case z.Spacer:
|
|
1955
|
+
y = 0, I = 12;
|
|
1956
1956
|
break;
|
|
1957
1957
|
}
|
|
1958
1958
|
return {
|
|
1959
1959
|
id: m.id,
|
|
1960
1960
|
size: {
|
|
1961
|
-
height:
|
|
1961
|
+
height: y,
|
|
1962
1962
|
width: I
|
|
1963
1963
|
},
|
|
1964
1964
|
widget: {
|
|
@@ -1966,9 +1966,9 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1966
1966
|
type: u
|
|
1967
1967
|
}
|
|
1968
1968
|
};
|
|
1969
|
-
},
|
|
1969
|
+
}, S = T(
|
|
1970
1970
|
() => je.find((u) => u.type === g.value.widget.type)
|
|
1971
|
-
),
|
|
1971
|
+
), f = T(() => g.value.widget.config.joinDatasources), o = Ne((u) => {
|
|
1972
1972
|
g.value.widget.title = u;
|
|
1973
1973
|
}, 500);
|
|
1974
1974
|
return ye(
|
|
@@ -1982,10 +1982,10 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1982
1982
|
u < 1 && (g.value.size.width = 1), u > 12 && (g.value.size.width = 12);
|
|
1983
1983
|
}
|
|
1984
1984
|
), (u, m) => {
|
|
1985
|
-
const
|
|
1985
|
+
const y = $("FmCircularProgress"), I = $("FmSimpleDateRangePicker"), K = $("FmTextField"), W = $("FmTextarea"), X = $("FmStepperField"), Y = $("FmButton"), te = $("FmForm");
|
|
1986
1986
|
return v(), M(ll(l(w).lg || l(w).md ? ro : mo), {
|
|
1987
|
-
"model-value":
|
|
1988
|
-
"onUpdate:modelValue": m[9] || (m[9] = (
|
|
1987
|
+
"model-value": _.hideConfiguration,
|
|
1988
|
+
"onUpdate:modelValue": m[9] || (m[9] = (B) => i("hideConfiguration", B))
|
|
1989
1989
|
}, {
|
|
1990
1990
|
default: R(() => [
|
|
1991
1991
|
g.value ? (v(), M(te, {
|
|
@@ -1994,72 +1994,72 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
1994
1994
|
class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
|
|
1995
1995
|
}, {
|
|
1996
1996
|
default: R(() => [
|
|
1997
|
-
V("div",
|
|
1997
|
+
V("div", ko, [
|
|
1998
1998
|
(v(), M(I, {
|
|
1999
|
-
key: `date-picker-${l(
|
|
2000
|
-
modelValue:
|
|
2001
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1999
|
+
key: `date-picker-${l(x)}`,
|
|
2000
|
+
modelValue: F.value,
|
|
2001
|
+
"onUpdate:modelValue": m[0] || (m[0] = (B) => F.value = B)
|
|
2002
2002
|
}, null, 8, ["modelValue"]))
|
|
2003
2003
|
]),
|
|
2004
2004
|
r(Re, null, {
|
|
2005
2005
|
header: R(() => [
|
|
2006
|
-
V("p",
|
|
2006
|
+
V("p", xo, P(l(b)("report.tile.widget.details")), 1),
|
|
2007
2007
|
m[10] || (m[10] = V("div", { class: "grow" }, null, -1))
|
|
2008
2008
|
]),
|
|
2009
2009
|
content: R(() => [
|
|
2010
2010
|
r(K, {
|
|
2011
2011
|
"model-value": g.value.widget.title,
|
|
2012
|
-
label: l(
|
|
2013
|
-
placeholder: l(
|
|
2012
|
+
label: l(b)("report.tile.widget.title"),
|
|
2013
|
+
placeholder: l(b)("report.tile.widget.titlePlaceholder"),
|
|
2014
2014
|
"onUpdate:modelValue": l(o)
|
|
2015
2015
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2016
2016
|
r(W, {
|
|
2017
2017
|
modelValue: g.value.widget.description,
|
|
2018
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
2018
|
+
"onUpdate:modelValue": m[1] || (m[1] = (B) => g.value.widget.description = B),
|
|
2019
2019
|
disabled: g.value.widget.title === "",
|
|
2020
|
-
placeholder: l(
|
|
2021
|
-
"helper-text": l(
|
|
2020
|
+
placeholder: l(b)("report.tile.widget.descriptionPlaceholder"),
|
|
2021
|
+
"helper-text": l(b)("report.tile.widget.descriptionHelper")
|
|
2022
2022
|
}, {
|
|
2023
2023
|
label: R(() => [
|
|
2024
|
-
V("p", So, P(l(
|
|
2025
|
-
V("p", _o, " (" + P(l(
|
|
2024
|
+
V("p", So, P(l(b)("report.tile.widget.widgetDescription")), 1),
|
|
2025
|
+
V("p", _o, " (" + P(l(b)("report.tile.widget.optional")) + ") ", 1)
|
|
2026
2026
|
]),
|
|
2027
2027
|
_: 1
|
|
2028
2028
|
}, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
|
|
2029
2029
|
r(yo, {
|
|
2030
2030
|
model: g.value.widget.config,
|
|
2031
|
-
"onUpdate:model": m[2] || (m[2] = (
|
|
2031
|
+
"onUpdate:model": m[2] || (m[2] = (B) => g.value.widget.config = B)
|
|
2032
2032
|
}, null, 8, ["model"]),
|
|
2033
2033
|
V("div", {
|
|
2034
2034
|
class: Ee(["flex flex-row", `${l(w).sm || l(w).xs ? "gap-16" : "gap-2"}`])
|
|
2035
2035
|
}, [
|
|
2036
2036
|
r(X, {
|
|
2037
2037
|
modelValue: g.value.size.width,
|
|
2038
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
2039
|
-
label: l(
|
|
2038
|
+
"onUpdate:modelValue": m[3] || (m[3] = (B) => g.value.size.width = B),
|
|
2039
|
+
label: l(b)("report.tile.widget.width"),
|
|
2040
2040
|
min: 1,
|
|
2041
2041
|
max: 12
|
|
2042
2042
|
}, null, 8, ["modelValue", "label"]),
|
|
2043
2043
|
r(X, {
|
|
2044
2044
|
modelValue: g.value.size.height,
|
|
2045
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
2046
|
-
label: l(
|
|
2045
|
+
"onUpdate:modelValue": m[4] || (m[4] = (B) => g.value.size.height = B),
|
|
2046
|
+
label: l(b)("report.tile.widget.height"),
|
|
2047
2047
|
min: 1,
|
|
2048
2048
|
max: 12,
|
|
2049
|
-
disabled: g.value.widget.type === l(
|
|
2049
|
+
disabled: g.value.widget.type === l(z).Scorecard
|
|
2050
2050
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
2051
2051
|
], 2),
|
|
2052
|
-
g.value.widget.type === l(
|
|
2052
|
+
g.value.widget.type === l(z).Table ? (v(), M(Fo, {
|
|
2053
2053
|
key: 0,
|
|
2054
2054
|
layout: g.value.widget.config,
|
|
2055
|
-
"onUpdate:layout": m[5] || (m[5] = (
|
|
2055
|
+
"onUpdate:layout": m[5] || (m[5] = (B) => g.value.widget.config = B)
|
|
2056
2056
|
}, null, 8, ["layout"])) : O("", !0)
|
|
2057
2057
|
]),
|
|
2058
2058
|
_: 1
|
|
2059
2059
|
}),
|
|
2060
2060
|
r(Re, null, {
|
|
2061
2061
|
header: R(() => [
|
|
2062
|
-
V("p", null, P(l(
|
|
2062
|
+
V("p", null, P(l(b)("report.tile.widget.type")), 1),
|
|
2063
2063
|
m[11] || (m[11] = V("div", { class: "grow" }, null, -1))
|
|
2064
2064
|
]),
|
|
2065
2065
|
content: R(() => [
|
|
@@ -2068,79 +2068,79 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2068
2068
|
"model-value": g.value.widget.type,
|
|
2069
2069
|
class: "grid grid-cols-1 gap-2",
|
|
2070
2070
|
"child-class": "flex flex-row p-[8px] gap-2",
|
|
2071
|
-
"exclude-widge-type": [l(
|
|
2072
|
-
"onUpdate:modelValue": m[6] || (m[6] = (
|
|
2071
|
+
"exclude-widge-type": [l(z).Spacer],
|
|
2072
|
+
"onUpdate:modelValue": m[6] || (m[6] = (B) => g.value = N(B, g.value))
|
|
2073
2073
|
}, null, 8, ["model-value", "exclude-widge-type"])
|
|
2074
2074
|
]),
|
|
2075
2075
|
_: 1
|
|
2076
2076
|
}),
|
|
2077
2077
|
r(Qe, {
|
|
2078
2078
|
modelValue: g.value.widget.config,
|
|
2079
|
-
"onUpdate:modelValue": m[7] || (m[7] = (
|
|
2080
|
-
label: l(
|
|
2081
|
-
config:
|
|
2079
|
+
"onUpdate:modelValue": m[7] || (m[7] = (B) => g.value.widget.config = B),
|
|
2080
|
+
label: l(b)("report.tile.datasource.main"),
|
|
2081
|
+
config: S.value
|
|
2082
2082
|
}, null, 8, ["modelValue", "label", "config"]),
|
|
2083
|
-
|
|
2083
|
+
f.value ? (v(!0), A(se, { key: 0 }, be(f.value, (B, G) => (v(), A("div", { key: G }, [
|
|
2084
2084
|
r(Qe, {
|
|
2085
|
-
modelValue:
|
|
2086
|
-
"onUpdate:modelValue": (
|
|
2087
|
-
label: l(
|
|
2088
|
-
config:
|
|
2085
|
+
modelValue: f.value[G],
|
|
2086
|
+
"onUpdate:modelValue": (oe) => f.value[G] = oe,
|
|
2087
|
+
label: l(b)("report.tile.datasource.join", { index: G + 1 }),
|
|
2088
|
+
config: S.value,
|
|
2089
2089
|
"main-datasource-config": g.value.widget.config,
|
|
2090
2090
|
closeable: !0,
|
|
2091
|
-
onClickClose: (
|
|
2091
|
+
onClickClose: (oe) => C(G)
|
|
2092
2092
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
|
|
2093
2093
|
]))), 128)) : O("", !0),
|
|
2094
2094
|
V("div", To, [
|
|
2095
2095
|
r(Y, {
|
|
2096
|
-
label: l(
|
|
2096
|
+
label: l(b)("report.tile.datasource.joinButton"),
|
|
2097
2097
|
variant: "secondary",
|
|
2098
2098
|
icon: "add",
|
|
2099
2099
|
"icon-position": "prepend",
|
|
2100
2100
|
"border-color": "primary",
|
|
2101
2101
|
"text-color": "primary",
|
|
2102
2102
|
class: "w-full",
|
|
2103
|
-
onClick: m[8] || (m[8] = (
|
|
2103
|
+
onClick: m[8] || (m[8] = (B) => c())
|
|
2104
2104
|
}, null, 8, ["label"])
|
|
2105
2105
|
])
|
|
2106
2106
|
]),
|
|
2107
2107
|
_: 1
|
|
2108
|
-
}, 512)) : (v(), M(
|
|
2108
|
+
}, 512)) : (v(), M(y, { key: 0 }))
|
|
2109
2109
|
]),
|
|
2110
2110
|
_: 1
|
|
2111
2111
|
}, 8, ["model-value"]);
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
|
-
}), $o = { class: "flex flex-col gap-8" }, Do = { class: "pl-32 flex flex-col gap-8" },
|
|
2114
|
+
}), $o = { class: "flex flex-col gap-8" }, Do = { class: "pl-32 flex flex-col gap-8" }, Bo = { class: "fm-typo-en-body-lg-600" }, Uo = { class: "flex flex-row gap-8" }, Lo = { class: "fm-typo-en-body-lg-600" }, Mo = { class: "flex flex-row gap-8" }, No = /* @__PURE__ */ ae({
|
|
2115
2115
|
__name: "LabelSection",
|
|
2116
2116
|
props: {
|
|
2117
2117
|
model: {}
|
|
2118
2118
|
},
|
|
2119
2119
|
emits: ["update:model"],
|
|
2120
2120
|
setup(D, { emit: d }) {
|
|
2121
|
-
const e = D, s = d, { t: a } = ie(), h =
|
|
2121
|
+
const e = D, s = d, { t: a } = ie(), h = T({
|
|
2122
2122
|
get: () => e.model.showLabel ?? !1,
|
|
2123
|
-
set: (
|
|
2124
|
-
s("update:model", { ...e.model, showLabel:
|
|
2123
|
+
set: (x) => {
|
|
2124
|
+
s("update:model", { ...e.model, showLabel: x });
|
|
2125
2125
|
}
|
|
2126
|
-
}),
|
|
2126
|
+
}), F = T({
|
|
2127
2127
|
get: () => e.model.labelRotation ?? 0,
|
|
2128
|
-
set: (
|
|
2129
|
-
}), g =
|
|
2128
|
+
set: (x) => s("update:model", { ...e.model, labelRotation: x })
|
|
2129
|
+
}), g = T({
|
|
2130
2130
|
get: () => e.model.labelOffset ?? 0,
|
|
2131
|
-
set: (
|
|
2132
|
-
}), w =
|
|
2131
|
+
set: (x) => s("update:model", { ...e.model, labelOffset: x })
|
|
2132
|
+
}), w = T({
|
|
2133
2133
|
get: () => e.model.labelFontSize ?? 12,
|
|
2134
|
-
set: (
|
|
2135
|
-
}),
|
|
2134
|
+
set: (x) => s("update:model", { ...e.model, labelFontSize: x })
|
|
2135
|
+
}), _ = (x) => {
|
|
2136
2136
|
s("update:model", {
|
|
2137
2137
|
...e.model,
|
|
2138
|
-
labelAlign: e.model.labelAlign ===
|
|
2138
|
+
labelAlign: e.model.labelAlign === x ? void 0 : x
|
|
2139
2139
|
});
|
|
2140
|
-
}, t = (
|
|
2140
|
+
}, t = (x) => {
|
|
2141
2141
|
s("update:model", {
|
|
2142
2142
|
...e.model,
|
|
2143
|
-
labelAnchor: e.model.labelAnchor ===
|
|
2143
|
+
labelAnchor: e.model.labelAnchor === x ? void 0 : x
|
|
2144
2144
|
});
|
|
2145
2145
|
}, i = [
|
|
2146
2146
|
{ icon: "align_horizontal_left", value: we.left, tooltip: "alignLeft" },
|
|
@@ -2150,40 +2150,40 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2150
2150
|
{ icon: "align_justify_flex_end", value: we.end, tooltip: "alignEnd" },
|
|
2151
2151
|
{ icon: "align_flex_start", value: we.top, tooltip: "alignTop" },
|
|
2152
2152
|
{ icon: "align_flex_end", value: we.bottom, tooltip: "alignBottom" }
|
|
2153
|
-
],
|
|
2153
|
+
], b = [
|
|
2154
2154
|
{ icon: "format_align_left", value: Le.start, tooltip: "anchorStart" },
|
|
2155
2155
|
{ icon: "format_align_center", value: Le.center, tooltip: "anchorCenter" },
|
|
2156
2156
|
{ icon: "format_align_right", value: Le.end, tooltip: "anchorEnd" }
|
|
2157
2157
|
];
|
|
2158
|
-
return (
|
|
2159
|
-
const
|
|
2160
|
-
return v(),
|
|
2161
|
-
r(
|
|
2158
|
+
return (x, k) => {
|
|
2159
|
+
const c = $("FmCheckbox"), C = $("FmButton"), N = $("FmTooltip"), S = $("FmTextField"), f = $("FmStepperField");
|
|
2160
|
+
return v(), A("div", $o, [
|
|
2161
|
+
r(c, {
|
|
2162
2162
|
modelValue: h.value,
|
|
2163
|
-
"onUpdate:modelValue":
|
|
2163
|
+
"onUpdate:modelValue": k[0] || (k[0] = (o) => h.value = o),
|
|
2164
2164
|
value: !1,
|
|
2165
2165
|
label: l(a)("report.section.datasource.label.showLabel"),
|
|
2166
2166
|
"label-placement": "right",
|
|
2167
2167
|
class: "fm-typo-en-body-lg-400"
|
|
2168
2168
|
}, null, 8, ["modelValue", "label"]),
|
|
2169
2169
|
he(V("div", Do, [
|
|
2170
|
-
V("p",
|
|
2171
|
-
V("div",
|
|
2172
|
-
(v(),
|
|
2170
|
+
V("p", Bo, P(l(a)("report.section.datasource.alignment.textAlignment")), 1),
|
|
2171
|
+
V("div", Uo, [
|
|
2172
|
+
(v(), A(se, null, be(i, ({ icon: o, value: n, tooltip: p }) => r(N, {
|
|
2173
2173
|
key: n,
|
|
2174
2174
|
variant: "plain",
|
|
2175
2175
|
placement: "top",
|
|
2176
|
-
content: l(a)(`report.section.datasource.alignment.alignOptions.${
|
|
2176
|
+
content: l(a)(`report.section.datasource.alignment.alignOptions.${p}`),
|
|
2177
2177
|
"z-index": 50
|
|
2178
2178
|
}, {
|
|
2179
2179
|
default: R(() => [
|
|
2180
|
-
r(
|
|
2180
|
+
r(C, {
|
|
2181
2181
|
"append-icon": o,
|
|
2182
2182
|
variant: "tertiary",
|
|
2183
|
-
"icon-color":
|
|
2184
|
-
"bg-color":
|
|
2183
|
+
"icon-color": x.model.labelAlign === n ? "neutral-gray-400" : "neutral-gray-300",
|
|
2184
|
+
"bg-color": x.model.labelAlign === n ? "neutral-gray-100" : "neutral-white",
|
|
2185
2185
|
class: "rounded-sm",
|
|
2186
|
-
onClick: (u) =>
|
|
2186
|
+
onClick: (u) => _(n)
|
|
2187
2187
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2188
2188
|
]),
|
|
2189
2189
|
_: 2
|
|
@@ -2191,19 +2191,19 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2191
2191
|
]),
|
|
2192
2192
|
V("p", Lo, P(l(a)("report.section.datasource.alignment.anchor")), 1),
|
|
2193
2193
|
V("div", Mo, [
|
|
2194
|
-
(v(),
|
|
2194
|
+
(v(), A(se, null, be(b, ({ icon: o, value: n, tooltip: p }) => r(N, {
|
|
2195
2195
|
key: n,
|
|
2196
2196
|
variant: "plain",
|
|
2197
2197
|
placement: "top",
|
|
2198
|
-
content: l(a)(`report.section.datasource.alignment.anchorOptions.${
|
|
2198
|
+
content: l(a)(`report.section.datasource.alignment.anchorOptions.${p}`),
|
|
2199
2199
|
"z-index": 50
|
|
2200
2200
|
}, {
|
|
2201
2201
|
default: R(() => [
|
|
2202
|
-
r(
|
|
2202
|
+
r(C, {
|
|
2203
2203
|
"append-icon": o,
|
|
2204
2204
|
variant: "tertiary",
|
|
2205
|
-
"icon-color":
|
|
2206
|
-
"bg-color":
|
|
2205
|
+
"icon-color": x.model.labelAnchor === n ? "neutral-gray-400" : "neutral-gray-300",
|
|
2206
|
+
"bg-color": x.model.labelAnchor === n ? "neutral-gray-100" : "neutral-white",
|
|
2207
2207
|
class: "rounded-sm",
|
|
2208
2208
|
onClick: (u) => t(n)
|
|
2209
2209
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
@@ -2211,30 +2211,30 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2211
2211
|
_: 2
|
|
2212
2212
|
}, 1032, ["content"])), 64))
|
|
2213
2213
|
]),
|
|
2214
|
-
r(
|
|
2215
|
-
modelValue:
|
|
2216
|
-
"onUpdate:modelValue":
|
|
2214
|
+
r(S, {
|
|
2215
|
+
modelValue: F.value,
|
|
2216
|
+
"onUpdate:modelValue": k[1] || (k[1] = (o) => F.value = o),
|
|
2217
2217
|
label: l(a)("report.section.datasource.alignment.rotation"),
|
|
2218
2218
|
type: "number",
|
|
2219
2219
|
min: -180,
|
|
2220
2220
|
max: 180,
|
|
2221
2221
|
step: 1
|
|
2222
2222
|
}, null, 8, ["modelValue", "label"]),
|
|
2223
|
-
r(
|
|
2223
|
+
r(S, {
|
|
2224
2224
|
modelValue: g.value,
|
|
2225
|
-
"onUpdate:modelValue":
|
|
2225
|
+
"onUpdate:modelValue": k[2] || (k[2] = (o) => g.value = o),
|
|
2226
2226
|
label: l(a)("report.section.datasource.alignment.offset"),
|
|
2227
2227
|
type: "number"
|
|
2228
2228
|
}, null, 8, ["modelValue", "label"]),
|
|
2229
|
-
r(
|
|
2229
|
+
r(f, {
|
|
2230
2230
|
modelValue: w.value,
|
|
2231
|
-
"onUpdate:modelValue":
|
|
2231
|
+
"onUpdate:modelValue": k[3] || (k[3] = (o) => w.value = o),
|
|
2232
2232
|
label: l(a)("report.section.datasource.fontSize"),
|
|
2233
2233
|
type: "number",
|
|
2234
2234
|
min: 1
|
|
2235
2235
|
}, null, 8, ["modelValue", "label"])
|
|
2236
2236
|
], 512), [
|
|
2237
|
-
[
|
|
2237
|
+
[Ce, h.value]
|
|
2238
2238
|
])
|
|
2239
2239
|
]);
|
|
2240
2240
|
};
|
|
@@ -2246,184 +2246,184 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2246
2246
|
},
|
|
2247
2247
|
emits: ["update:model"],
|
|
2248
2248
|
setup(D, { emit: d }) {
|
|
2249
|
-
const e = D, s = d, { t: a } = ie(), h =
|
|
2249
|
+
const e = D, s = d, { t: a } = ie(), h = T({
|
|
2250
2250
|
get: () => e.model.showX ?? !0,
|
|
2251
|
-
set: (
|
|
2252
|
-
s("update:model", { ...e.model, showX:
|
|
2251
|
+
set: (c) => {
|
|
2252
|
+
s("update:model", { ...e.model, showX: c });
|
|
2253
2253
|
}
|
|
2254
|
-
}),
|
|
2254
|
+
}), F = T({
|
|
2255
2255
|
get: () => e.model.showXGrid ?? !1,
|
|
2256
|
-
set: (
|
|
2257
|
-
s("update:model", { ...e.model, showXGrid:
|
|
2256
|
+
set: (c) => {
|
|
2257
|
+
s("update:model", { ...e.model, showXGrid: c });
|
|
2258
2258
|
}
|
|
2259
|
-
}), g =
|
|
2259
|
+
}), g = T({
|
|
2260
2260
|
get: () => e.model.showXTick ?? !0,
|
|
2261
|
-
set: (
|
|
2262
|
-
s("update:model", { ...e.model, showXTick:
|
|
2261
|
+
set: (c) => {
|
|
2262
|
+
s("update:model", { ...e.model, showXTick: c });
|
|
2263
2263
|
}
|
|
2264
|
-
}), w =
|
|
2264
|
+
}), w = T({
|
|
2265
2265
|
get: () => e.model.showY ?? !0,
|
|
2266
|
-
set: (
|
|
2267
|
-
s("update:model", { ...e.model, showY:
|
|
2266
|
+
set: (c) => {
|
|
2267
|
+
s("update:model", { ...e.model, showY: c });
|
|
2268
2268
|
}
|
|
2269
|
-
}),
|
|
2269
|
+
}), _ = T({
|
|
2270
2270
|
get: () => e.model.showYGrid ?? !0,
|
|
2271
|
-
set: (
|
|
2272
|
-
s("update:model", { ...e.model, showYGrid:
|
|
2271
|
+
set: (c) => {
|
|
2272
|
+
s("update:model", { ...e.model, showYGrid: c });
|
|
2273
2273
|
}
|
|
2274
|
-
}), t =
|
|
2274
|
+
}), t = T({
|
|
2275
2275
|
get: () => e.model.showYTick ?? !0,
|
|
2276
|
-
set: (
|
|
2277
|
-
s("update:model", { ...e.model, showYTick:
|
|
2276
|
+
set: (c) => {
|
|
2277
|
+
s("update:model", { ...e.model, showYTick: c });
|
|
2278
2278
|
}
|
|
2279
|
-
}), i =
|
|
2279
|
+
}), i = T({
|
|
2280
2280
|
get: () => e.model.showXTitle ?? !1,
|
|
2281
|
-
set: (
|
|
2282
|
-
s("update:model", { ...e.model, showXTitle:
|
|
2281
|
+
set: (c) => {
|
|
2282
|
+
s("update:model", { ...e.model, showXTitle: c });
|
|
2283
2283
|
}
|
|
2284
|
-
}),
|
|
2284
|
+
}), b = T({
|
|
2285
2285
|
get: () => e.model.showYTitle ?? !1,
|
|
2286
|
-
set: (
|
|
2287
|
-
s("update:model", { ...e.model, showYTitle:
|
|
2286
|
+
set: (c) => {
|
|
2287
|
+
s("update:model", { ...e.model, showYTitle: c });
|
|
2288
2288
|
}
|
|
2289
|
-
}),
|
|
2290
|
-
s("update:model", { ...e.model, xTitle:
|
|
2291
|
-
}, 500),
|
|
2292
|
-
s("update:model", { ...e.model, yTitle:
|
|
2289
|
+
}), x = Ne((c) => {
|
|
2290
|
+
s("update:model", { ...e.model, xTitle: c });
|
|
2291
|
+
}, 500), k = Ne((c) => {
|
|
2292
|
+
s("update:model", { ...e.model, yTitle: c });
|
|
2293
2293
|
}, 500);
|
|
2294
2294
|
return We(() => {
|
|
2295
|
-
var
|
|
2296
|
-
!e.model.xTitle && ((
|
|
2297
|
-
}), (
|
|
2298
|
-
const N = $("FmCheckbox"),
|
|
2299
|
-
return v(),
|
|
2295
|
+
var c, C, N, S;
|
|
2296
|
+
!e.model.xTitle && ((C = (c = e.model.metrics) == null ? void 0 : c[0]) != null && C.label) && x(e.model.metrics[0].label), !e.model.yTitle && ((S = (N = e.model.dimensions) == null ? void 0 : N[0]) != null && S.label) && k(e.model.dimensions[0].label);
|
|
2297
|
+
}), (c, C) => {
|
|
2298
|
+
const N = $("FmCheckbox"), S = $("FmStepperField"), f = $("FmTextField");
|
|
2299
|
+
return v(), A("div", Oo, [
|
|
2300
2300
|
r(N, {
|
|
2301
2301
|
modelValue: h.value,
|
|
2302
|
-
"onUpdate:modelValue":
|
|
2302
|
+
"onUpdate:modelValue": C[0] || (C[0] = (o) => h.value = o),
|
|
2303
2303
|
label: l(a)("report.section.datasource.axis.showX"),
|
|
2304
2304
|
"label-placement": "right",
|
|
2305
2305
|
value: !0
|
|
2306
2306
|
}, null, 8, ["modelValue", "label"]),
|
|
2307
2307
|
he(V("div", Io, [
|
|
2308
2308
|
r(N, {
|
|
2309
|
-
modelValue:
|
|
2310
|
-
"onUpdate:modelValue":
|
|
2309
|
+
modelValue: F.value,
|
|
2310
|
+
"onUpdate:modelValue": C[1] || (C[1] = (o) => F.value = o),
|
|
2311
2311
|
label: l(a)("report.section.datasource.axis.showGrid"),
|
|
2312
2312
|
"label-placement": "right",
|
|
2313
2313
|
value: !1
|
|
2314
2314
|
}, null, 8, ["modelValue", "label"]),
|
|
2315
2315
|
r(N, {
|
|
2316
2316
|
modelValue: g.value,
|
|
2317
|
-
"onUpdate:modelValue":
|
|
2317
|
+
"onUpdate:modelValue": C[2] || (C[2] = (o) => g.value = o),
|
|
2318
2318
|
label: l(a)("report.section.datasource.axis.showTick"),
|
|
2319
2319
|
"label-placement": "right",
|
|
2320
2320
|
value: !0
|
|
2321
2321
|
}, null, 8, ["modelValue", "label"]),
|
|
2322
2322
|
he(V("div", jo, [
|
|
2323
|
-
r(
|
|
2323
|
+
r(S, {
|
|
2324
2324
|
label: l(a)("report.section.datasource.fontSize"),
|
|
2325
2325
|
type: "number",
|
|
2326
|
-
"model-value":
|
|
2326
|
+
"model-value": c.model.xTickFontSize ?? 12,
|
|
2327
2327
|
min: 1,
|
|
2328
|
-
"onUpdate:modelValue":
|
|
2329
|
-
s("update:model", { ...
|
|
2328
|
+
"onUpdate:modelValue": C[3] || (C[3] = (o) => {
|
|
2329
|
+
s("update:model", { ...c.model, xTickFontSize: Number(o) });
|
|
2330
2330
|
})
|
|
2331
2331
|
}, null, 8, ["label", "model-value"])
|
|
2332
2332
|
], 512), [
|
|
2333
|
-
[
|
|
2333
|
+
[Ce, c.model.showXTick ?? !0]
|
|
2334
2334
|
]),
|
|
2335
2335
|
r(N, {
|
|
2336
2336
|
modelValue: i.value,
|
|
2337
|
-
"onUpdate:modelValue":
|
|
2337
|
+
"onUpdate:modelValue": C[4] || (C[4] = (o) => i.value = o),
|
|
2338
2338
|
label: l(a)("report.section.datasource.axis.showTitle"),
|
|
2339
2339
|
"label-placement": "right",
|
|
2340
2340
|
value: !0
|
|
2341
2341
|
}, null, 8, ["modelValue", "label"]),
|
|
2342
2342
|
he(V("div", zo, [
|
|
2343
|
-
r(
|
|
2344
|
-
"model-value":
|
|
2343
|
+
r(f, {
|
|
2344
|
+
"model-value": c.model.xTitle,
|
|
2345
2345
|
label: l(a)("report.common.title"),
|
|
2346
2346
|
placeholder: l(a)("report.tile.widget.titlePlaceholder"),
|
|
2347
|
-
"onUpdate:modelValue": l(
|
|
2347
|
+
"onUpdate:modelValue": l(x)
|
|
2348
2348
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2349
|
-
r(
|
|
2349
|
+
r(S, {
|
|
2350
2350
|
label: l(a)("report.section.datasource.fontSize"),
|
|
2351
2351
|
type: "number",
|
|
2352
|
-
"model-value":
|
|
2352
|
+
"model-value": c.model.xTitleFontSize ?? 12,
|
|
2353
2353
|
min: 1,
|
|
2354
|
-
"onUpdate:modelValue":
|
|
2355
|
-
s("update:model", { ...
|
|
2354
|
+
"onUpdate:modelValue": C[5] || (C[5] = (o) => {
|
|
2355
|
+
s("update:model", { ...c.model, xTitleFontSize: Number(o) });
|
|
2356
2356
|
})
|
|
2357
2357
|
}, null, 8, ["label", "model-value"])
|
|
2358
2358
|
], 512), [
|
|
2359
|
-
[
|
|
2359
|
+
[Ce, i.value]
|
|
2360
2360
|
])
|
|
2361
2361
|
], 512), [
|
|
2362
|
-
[
|
|
2362
|
+
[Ce, c.model.showX ?? !0]
|
|
2363
2363
|
]),
|
|
2364
2364
|
r(N, {
|
|
2365
2365
|
modelValue: w.value,
|
|
2366
|
-
"onUpdate:modelValue":
|
|
2366
|
+
"onUpdate:modelValue": C[6] || (C[6] = (o) => w.value = o),
|
|
2367
2367
|
label: l(a)("report.section.datasource.axis.showY"),
|
|
2368
2368
|
"label-placement": "right",
|
|
2369
2369
|
value: !0
|
|
2370
2370
|
}, null, 8, ["modelValue", "label"]),
|
|
2371
2371
|
he(V("div", Ao, [
|
|
2372
2372
|
r(N, {
|
|
2373
|
-
modelValue:
|
|
2374
|
-
"onUpdate:modelValue":
|
|
2373
|
+
modelValue: _.value,
|
|
2374
|
+
"onUpdate:modelValue": C[7] || (C[7] = (o) => _.value = o),
|
|
2375
2375
|
label: l(a)("report.section.datasource.axis.showGrid"),
|
|
2376
2376
|
"label-placement": "right",
|
|
2377
2377
|
value: !1
|
|
2378
2378
|
}, null, 8, ["modelValue", "label"]),
|
|
2379
2379
|
r(N, {
|
|
2380
2380
|
modelValue: t.value,
|
|
2381
|
-
"onUpdate:modelValue":
|
|
2381
|
+
"onUpdate:modelValue": C[8] || (C[8] = (o) => t.value = o),
|
|
2382
2382
|
label: l(a)("report.section.datasource.axis.showTick"),
|
|
2383
2383
|
"label-placement": "right",
|
|
2384
2384
|
value: !0
|
|
2385
2385
|
}, null, 8, ["modelValue", "label"]),
|
|
2386
2386
|
he(V("div", Ro, [
|
|
2387
|
-
r(
|
|
2387
|
+
r(S, {
|
|
2388
2388
|
label: l(a)("report.section.datasource.fontSize"),
|
|
2389
2389
|
type: "number",
|
|
2390
|
-
"model-value":
|
|
2390
|
+
"model-value": c.model.yTickFontSize ?? 12,
|
|
2391
2391
|
min: 1,
|
|
2392
|
-
"onUpdate:modelValue":
|
|
2393
|
-
s("update:model", { ...
|
|
2392
|
+
"onUpdate:modelValue": C[9] || (C[9] = (o) => {
|
|
2393
|
+
s("update:model", { ...c.model, yTickFontSize: Number(o) });
|
|
2394
2394
|
})
|
|
2395
2395
|
}, null, 8, ["label", "model-value"])
|
|
2396
2396
|
], 512), [
|
|
2397
|
-
[
|
|
2397
|
+
[Ce, c.model.showYTick ?? !0]
|
|
2398
2398
|
]),
|
|
2399
2399
|
r(N, {
|
|
2400
|
-
modelValue:
|
|
2401
|
-
"onUpdate:modelValue":
|
|
2400
|
+
modelValue: b.value,
|
|
2401
|
+
"onUpdate:modelValue": C[10] || (C[10] = (o) => b.value = o),
|
|
2402
2402
|
label: l(a)("report.section.datasource.axis.showTitle"),
|
|
2403
2403
|
"label-placement": "right",
|
|
2404
2404
|
value: !0
|
|
2405
2405
|
}, null, 8, ["modelValue", "label"]),
|
|
2406
2406
|
he(V("div", Po, [
|
|
2407
|
-
r(
|
|
2408
|
-
"model-value":
|
|
2407
|
+
r(f, {
|
|
2408
|
+
"model-value": c.model.yTitle,
|
|
2409
2409
|
label: l(a)("report.common.title"),
|
|
2410
2410
|
placeholder: l(a)("report.tile.widget.titlePlaceholder"),
|
|
2411
|
-
"onUpdate:modelValue": l(
|
|
2411
|
+
"onUpdate:modelValue": l(k)
|
|
2412
2412
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2413
|
-
r(
|
|
2413
|
+
r(S, {
|
|
2414
2414
|
label: l(a)("report.section.datasource.fontSize"),
|
|
2415
2415
|
type: "number",
|
|
2416
|
-
"model-value":
|
|
2416
|
+
"model-value": c.model.yTitleFontSize ?? 12,
|
|
2417
2417
|
min: 1,
|
|
2418
|
-
"onUpdate:modelValue":
|
|
2419
|
-
s("update:model", { ...
|
|
2418
|
+
"onUpdate:modelValue": C[11] || (C[11] = (o) => {
|
|
2419
|
+
s("update:model", { ...c.model, yTitleFontSize: Number(o) });
|
|
2420
2420
|
})
|
|
2421
2421
|
}, null, 8, ["label", "model-value"])
|
|
2422
2422
|
], 512), [
|
|
2423
|
-
[
|
|
2423
|
+
[Ce, b.value]
|
|
2424
2424
|
])
|
|
2425
2425
|
], 512), [
|
|
2426
|
-
[
|
|
2426
|
+
[Ce, c.model.showY ?? !0]
|
|
2427
2427
|
])
|
|
2428
2428
|
]);
|
|
2429
2429
|
};
|
|
@@ -2441,65 +2441,65 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2441
2441
|
{ label: a("report.section.datasource.position.bottom"), value: "bottom" },
|
|
2442
2442
|
{ label: a("report.section.datasource.position.left"), value: "left" },
|
|
2443
2443
|
{ label: a("report.section.datasource.position.right"), value: "right" }
|
|
2444
|
-
],
|
|
2444
|
+
], F = T({
|
|
2445
2445
|
get: () => e.model.showLegend !== void 0 ? e.model.showLegend : e.isCircularWidget === !0,
|
|
2446
|
-
set: (
|
|
2447
|
-
s("update:model", { ...e.model, showLegend:
|
|
2446
|
+
set: (k) => {
|
|
2447
|
+
s("update:model", { ...e.model, showLegend: k });
|
|
2448
2448
|
}
|
|
2449
|
-
}), g =
|
|
2449
|
+
}), g = T({
|
|
2450
2450
|
get: () => e.model.usePointStyle ?? !0,
|
|
2451
|
-
set: (
|
|
2452
|
-
s("update:model", { ...e.model, usePointStyle:
|
|
2451
|
+
set: (k) => {
|
|
2452
|
+
s("update:model", { ...e.model, usePointStyle: k });
|
|
2453
2453
|
}
|
|
2454
|
-
}), w =
|
|
2454
|
+
}), w = T({
|
|
2455
2455
|
get: () => e.model.legendFontSize ?? null,
|
|
2456
|
-
set: (
|
|
2457
|
-
if (
|
|
2456
|
+
set: (k) => {
|
|
2457
|
+
if (k == null) {
|
|
2458
2458
|
s("update:model", { ...e.model, legendFontSize: void 0 });
|
|
2459
2459
|
return;
|
|
2460
2460
|
}
|
|
2461
|
-
s("update:model", { ...e.model, legendFontSize: Math.min(Number(
|
|
2461
|
+
s("update:model", { ...e.model, legendFontSize: Math.min(Number(k), 24) });
|
|
2462
2462
|
}
|
|
2463
|
-
}),
|
|
2463
|
+
}), _ = T(() => e.model.legendColor ?? "#6b6b6b"), t = ee(_.value), i = ee(null);
|
|
2464
2464
|
ye(
|
|
2465
2465
|
() => e.model.legendColor,
|
|
2466
|
-
(
|
|
2467
|
-
t.value =
|
|
2466
|
+
(k) => {
|
|
2467
|
+
t.value = k ?? "#6b6b6b";
|
|
2468
2468
|
}
|
|
2469
2469
|
);
|
|
2470
|
-
function
|
|
2470
|
+
function b() {
|
|
2471
2471
|
s("update:model", { ...e.model, legendColor: t.value });
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2474
|
-
var
|
|
2475
|
-
(
|
|
2473
|
+
function x() {
|
|
2474
|
+
var k;
|
|
2475
|
+
(k = i.value) == null || k.click();
|
|
2476
2476
|
}
|
|
2477
|
-
return (
|
|
2478
|
-
const
|
|
2479
|
-
return v(),
|
|
2480
|
-
r(
|
|
2481
|
-
modelValue:
|
|
2482
|
-
"onUpdate:modelValue":
|
|
2477
|
+
return (k, c) => {
|
|
2478
|
+
const C = $("FmCheckbox"), N = $("FmSelect"), S = $("FmStepperField"), f = $("FmButton");
|
|
2479
|
+
return v(), A("div", Wo, [
|
|
2480
|
+
r(C, {
|
|
2481
|
+
modelValue: F.value,
|
|
2482
|
+
"onUpdate:modelValue": c[0] || (c[0] = (o) => F.value = o),
|
|
2483
2483
|
class: "fm-typo-en-body-lg-400",
|
|
2484
2484
|
value: !1,
|
|
2485
2485
|
label: l(a)("report.section.datasource.legend.showLegend")
|
|
2486
2486
|
}, null, 8, ["modelValue", "label"]),
|
|
2487
2487
|
he(V("div", Eo, [
|
|
2488
|
-
r(
|
|
2488
|
+
r(C, {
|
|
2489
2489
|
modelValue: g.value,
|
|
2490
|
-
"onUpdate:modelValue":
|
|
2490
|
+
"onUpdate:modelValue": c[1] || (c[1] = (o) => g.value = o),
|
|
2491
2491
|
label: l(a)("report.section.datasource.legend.usePointStyle"),
|
|
2492
2492
|
value: !1
|
|
2493
2493
|
}, null, 8, ["modelValue", "label"]),
|
|
2494
2494
|
r(N, {
|
|
2495
2495
|
label: l(a)("report.section.datasource.position.showPosition"),
|
|
2496
2496
|
items: h,
|
|
2497
|
-
"model-value":
|
|
2498
|
-
"onUpdate:modelValue":
|
|
2497
|
+
"model-value": k.model.legendPosition ?? "top",
|
|
2498
|
+
"onUpdate:modelValue": c[2] || (c[2] = (o) => s("update:model", { ...k.model, legendPosition: o }))
|
|
2499
2499
|
}, null, 8, ["label", "model-value"]),
|
|
2500
|
-
r(
|
|
2500
|
+
r(S, {
|
|
2501
2501
|
modelValue: w.value,
|
|
2502
|
-
"onUpdate:modelValue":
|
|
2502
|
+
"onUpdate:modelValue": c[3] || (c[3] = (o) => w.value = o),
|
|
2503
2503
|
label: l(a)("report.section.datasource.legend.fontSize"),
|
|
2504
2504
|
max: 24,
|
|
2505
2505
|
min: 1,
|
|
@@ -2511,53 +2511,53 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2511
2511
|
class: "fm-field fm-field--sm flex items-center justify-between gap-8 border rounded-md p-2 border-[#c7c7cc] cursor-pointer",
|
|
2512
2512
|
role: "button",
|
|
2513
2513
|
tabindex: "0",
|
|
2514
|
-
onClick:
|
|
2514
|
+
onClick: x,
|
|
2515
2515
|
onKeydown: [
|
|
2516
|
-
qe(ve(
|
|
2517
|
-
qe(ve(
|
|
2516
|
+
qe(ve(x, ["prevent"]), ["enter"]),
|
|
2517
|
+
qe(ve(x, ["prevent"]), ["space"])
|
|
2518
2518
|
]
|
|
2519
2519
|
}, [
|
|
2520
2520
|
he(V("input", {
|
|
2521
2521
|
ref_key: "colorInputRef",
|
|
2522
2522
|
ref: i,
|
|
2523
|
-
"onUpdate:modelValue":
|
|
2523
|
+
"onUpdate:modelValue": c[4] || (c[4] = (o) => t.value = o),
|
|
2524
2524
|
type: "color",
|
|
2525
2525
|
class: "legend-color-input cursor-pointer"
|
|
2526
2526
|
}, null, 512), [
|
|
2527
2527
|
[pl, t.value]
|
|
2528
2528
|
])
|
|
2529
2529
|
], 40, qo),
|
|
2530
|
-
r(
|
|
2530
|
+
r(f, {
|
|
2531
2531
|
size: "md",
|
|
2532
2532
|
label: l(a)("report.common.apply"),
|
|
2533
|
-
disabled: t.value ===
|
|
2534
|
-
onClick:
|
|
2533
|
+
disabled: t.value === _.value,
|
|
2534
|
+
onClick: b
|
|
2535
2535
|
}, null, 8, ["label", "disabled"]),
|
|
2536
|
-
|
|
2536
|
+
k.model.legendPosition === "top" || k.model.legendPosition === "bottom" || !k.model.legendPosition ? (v(), M(S, {
|
|
2537
2537
|
key: 0,
|
|
2538
2538
|
label: l(a)("report.section.datasource.legend.maxLines"),
|
|
2539
|
-
"model-value":
|
|
2540
|
-
"onUpdate:modelValue":
|
|
2539
|
+
"model-value": k.model.legendMaxLines ?? null,
|
|
2540
|
+
"onUpdate:modelValue": c[5] || (c[5] = (o) => s("update:model", { ...k.model, legendMaxLines: o ?? void 0 })),
|
|
2541
2541
|
min: 1,
|
|
2542
2542
|
type: "number",
|
|
2543
2543
|
placeholder: "Auto"
|
|
2544
2544
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
2545
|
-
|
|
2545
|
+
k.model.legendPosition === "top" || k.model.legendPosition === "bottom" || !k.model.legendPosition ? (v(), M(S, {
|
|
2546
2546
|
key: 1,
|
|
2547
2547
|
label: l(a)("report.section.datasource.legend.maxHeight"),
|
|
2548
|
-
"model-value":
|
|
2549
|
-
"onUpdate:modelValue":
|
|
2548
|
+
"model-value": k.model.legendMaxHeight ?? null,
|
|
2549
|
+
"onUpdate:modelValue": c[6] || (c[6] = (o) => s("update:model", { ...k.model, legendMaxHeight: o ?? void 0 })),
|
|
2550
2550
|
placeholder: "Auto"
|
|
2551
2551
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
2552
|
-
|
|
2552
|
+
k.model.legendPosition === "left" || k.model.legendPosition === "right" ? (v(), M(S, {
|
|
2553
2553
|
key: 2,
|
|
2554
2554
|
label: l(a)("report.section.datasource.legend.maxWidth"),
|
|
2555
|
-
"model-value":
|
|
2556
|
-
"onUpdate:modelValue":
|
|
2555
|
+
"model-value": k.model.legendMaxWidth ?? null,
|
|
2556
|
+
"onUpdate:modelValue": c[7] || (c[7] = (o) => s("update:model", { ...k.model, legendMaxWidth: o ?? void 0 })),
|
|
2557
2557
|
placeholder: "Auto"
|
|
2558
2558
|
}, null, 8, ["label", "model-value"])) : O("", !0)
|
|
2559
2559
|
], 512), [
|
|
2560
|
-
[
|
|
2560
|
+
[Ce, F.value]
|
|
2561
2561
|
])
|
|
2562
2562
|
]);
|
|
2563
2563
|
};
|
|
@@ -2569,21 +2569,21 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2569
2569
|
},
|
|
2570
2570
|
emits: ["update:model"],
|
|
2571
2571
|
setup(D, { emit: d }) {
|
|
2572
|
-
const e = D, s = d, { t: a } = ie(), h =
|
|
2572
|
+
const e = D, s = d, { t: a } = ie(), h = T({
|
|
2573
2573
|
get: () => e.model.chartHeight ?? null,
|
|
2574
2574
|
set: (g) => {
|
|
2575
2575
|
s("update:model", { ...e.model, chartHeight: g ?? void 0 });
|
|
2576
2576
|
}
|
|
2577
|
-
}),
|
|
2577
|
+
}), F = T({
|
|
2578
2578
|
get: () => e.model.chartWidth ?? null,
|
|
2579
2579
|
set: (g) => {
|
|
2580
2580
|
s("update:model", { ...e.model, chartWidth: g ?? void 0 });
|
|
2581
2581
|
}
|
|
2582
2582
|
});
|
|
2583
2583
|
return (g, w) => {
|
|
2584
|
-
const
|
|
2585
|
-
return v(),
|
|
2586
|
-
r(
|
|
2584
|
+
const _ = $("FmStepperField");
|
|
2585
|
+
return v(), A("div", Go, [
|
|
2586
|
+
r(_, {
|
|
2587
2587
|
modelValue: h.value,
|
|
2588
2588
|
"onUpdate:modelValue": w[0] || (w[0] = (t) => h.value = t),
|
|
2589
2589
|
type: "number",
|
|
@@ -2592,9 +2592,9 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2592
2592
|
min: 1,
|
|
2593
2593
|
placeholder: "Auto"
|
|
2594
2594
|
}, null, 8, ["modelValue", "label"]),
|
|
2595
|
-
r(
|
|
2596
|
-
modelValue:
|
|
2597
|
-
"onUpdate:modelValue": w[1] || (w[1] = (t) =>
|
|
2595
|
+
r(_, {
|
|
2596
|
+
modelValue: F.value,
|
|
2597
|
+
"onUpdate:modelValue": w[1] || (w[1] = (t) => F.value = t),
|
|
2598
2598
|
type: "number",
|
|
2599
2599
|
label: l(a)("report.section.datasource.chartWidth"),
|
|
2600
2600
|
suffix: "px",
|
|
@@ -2604,56 +2604,62 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2604
2604
|
]);
|
|
2605
2605
|
};
|
|
2606
2606
|
}
|
|
2607
|
-
}), Qo = { class: "flex flex-col gap-8" }, Zo = { class: "flex items-center justify-between" }, et = { class: "fm-typo-en-body-
|
|
2607
|
+
}), Qo = { class: "flex flex-col gap-8" }, Zo = { class: "flex items-center justify-between" }, et = { class: "fm-typo-en-body-md-400" }, lt = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, ot = {
|
|
2608
2608
|
key: 1,
|
|
2609
2609
|
class: "grid grid-cols-2 gap-8"
|
|
2610
|
-
}, tt = { class: "fm-typo-en-body-
|
|
2610
|
+
}, tt = { class: "fm-typo-en-body-md-400" }, at = { class: "flex items-center gap-8" }, nt = ["value", "onInput"], it = {
|
|
2611
2611
|
key: 2,
|
|
2612
2612
|
class: "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100"
|
|
2613
2613
|
}, st = { class: "fm-typo-en-body-md-400" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = ["value", "disabled", "onInput"], dt = /* @__PURE__ */ ae({
|
|
2614
2614
|
__name: "ChartColorSection",
|
|
2615
2615
|
props: {
|
|
2616
2616
|
model: {},
|
|
2617
|
-
showLayerControl: { type: Boolean }
|
|
2617
|
+
showLayerControl: { type: Boolean },
|
|
2618
|
+
limitToSeriesMode: { type: Boolean }
|
|
2618
2619
|
},
|
|
2619
2620
|
emits: ["update:model"],
|
|
2620
2621
|
setup(D, { emit: d }) {
|
|
2621
|
-
const e = D, s = d, { t: a } = ie(), h =
|
|
2622
|
+
const e = D, s = d, { t: a } = ie(), h = T(() => e.limitToSeriesMode ? [
|
|
2623
|
+
{
|
|
2624
|
+
label: a("report.section.datasource.styleTarget.series"),
|
|
2625
|
+
value: le.series
|
|
2626
|
+
}
|
|
2627
|
+
] : [
|
|
2622
2628
|
{
|
|
2623
2629
|
label: a("report.section.datasource.styleTarget.series"),
|
|
2624
|
-
value:
|
|
2630
|
+
value: le.series
|
|
2625
2631
|
},
|
|
2626
2632
|
{
|
|
2627
2633
|
label: a("report.section.datasource.styleTarget.metric"),
|
|
2628
|
-
value:
|
|
2634
|
+
value: le.metric
|
|
2629
2635
|
},
|
|
2630
2636
|
...i.value.length > 0 ? [
|
|
2631
2637
|
{
|
|
2632
2638
|
label: a("report.section.datasource.styleTarget.breakdown"),
|
|
2633
|
-
value:
|
|
2639
|
+
value: le.breakdown
|
|
2634
2640
|
}
|
|
2635
2641
|
] : []
|
|
2636
2642
|
]);
|
|
2637
|
-
function
|
|
2638
|
-
return
|
|
2643
|
+
function F(U) {
|
|
2644
|
+
return e.limitToSeriesMode ? le.series : U === le.breakdown ? le.breakdown : U === le.metric ? le.metric : le.series;
|
|
2639
2645
|
}
|
|
2640
2646
|
function g() {
|
|
2641
|
-
const
|
|
2647
|
+
const U = Array.isArray(e.model.metrics) ? e.model.metrics : [];
|
|
2642
2648
|
if (!e.model.isBlend)
|
|
2643
|
-
return
|
|
2649
|
+
return U;
|
|
2644
2650
|
const L = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
2645
2651
|
(j) => Array.isArray(j == null ? void 0 : j.metrics) ? j.metrics : []
|
|
2646
2652
|
) : [];
|
|
2647
|
-
return [...
|
|
2653
|
+
return [...U, ...L];
|
|
2648
2654
|
}
|
|
2649
|
-
function w(
|
|
2655
|
+
function w(U, L) {
|
|
2650
2656
|
var H, J;
|
|
2651
|
-
return
|
|
2657
|
+
return U ? ((H = U.label) == null ? void 0 : H.trim()) || ((J = U.name) == null ? void 0 : J.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${L + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${L + 1}`;
|
|
2652
2658
|
}
|
|
2653
|
-
function
|
|
2654
|
-
if (
|
|
2659
|
+
function _(U) {
|
|
2660
|
+
if (U === le.breakdown)
|
|
2655
2661
|
return [];
|
|
2656
|
-
if (
|
|
2662
|
+
if (U === le.metric) {
|
|
2657
2663
|
const L = g();
|
|
2658
2664
|
if (L.length > 0)
|
|
2659
2665
|
return L.map((j, H) => w(j, H));
|
|
@@ -2662,41 +2668,41 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2662
2668
|
(L, j) => `${a("report.section.datasource.chartColor.series")} ${j + 1}`
|
|
2663
2669
|
);
|
|
2664
2670
|
}
|
|
2665
|
-
const t =
|
|
2666
|
-
const
|
|
2667
|
-
return
|
|
2668
|
-
}), i =
|
|
2669
|
-
() => Array.isArray(e.model.chartBreakdownDimensionValues) ? e.model.chartBreakdownDimensionValues.filter((
|
|
2671
|
+
const t = T(() => {
|
|
2672
|
+
const U = g();
|
|
2673
|
+
return U.length === 0 ? [a("report.section.datasource.styleTarget.metric")] : U.map((L, j) => w(L, j));
|
|
2674
|
+
}), i = T(
|
|
2675
|
+
() => Array.isArray(e.model.chartBreakdownDimensionValues) ? e.model.chartBreakdownDimensionValues.filter((U) => !!U) : []
|
|
2670
2676
|
);
|
|
2671
|
-
function
|
|
2672
|
-
const j = N(
|
|
2677
|
+
function b(U, L) {
|
|
2678
|
+
const j = N(U) ?? "#000000", H = (J) => {
|
|
2673
2679
|
const q = Number.parseInt(j.slice(J, J + 2), 16);
|
|
2674
2680
|
return Math.round(q + (255 - q) * L).toString(16).padStart(2, "0").toUpperCase();
|
|
2675
2681
|
};
|
|
2676
2682
|
return `#${H(1)}${H(3)}${H(5)}`;
|
|
2677
2683
|
}
|
|
2678
|
-
function
|
|
2679
|
-
return Math.min(0.55 + (
|
|
2684
|
+
function x(U) {
|
|
2685
|
+
return Math.min(0.55 + (U - 1) * 0.18, 0.95);
|
|
2680
2686
|
}
|
|
2681
|
-
function
|
|
2682
|
-
return
|
|
2687
|
+
function k(U, L, j) {
|
|
2688
|
+
return U * j + L;
|
|
2683
2689
|
}
|
|
2684
|
-
function
|
|
2690
|
+
function c(U, L, j, H) {
|
|
2685
2691
|
const J = L.length;
|
|
2686
|
-
return
|
|
2687
|
-
const ge = ce[Z % ce.length], fe = j == null ? void 0 : j[
|
|
2688
|
-
return L.map((Rt,
|
|
2689
|
-
const dl =
|
|
2690
|
-
return H &&
|
|
2692
|
+
return U.length === 0 || J <= 0 ? [] : U.flatMap((q, Z) => {
|
|
2693
|
+
const ge = ce[Z % ce.length], fe = j == null ? void 0 : j[k(Z, 0, J)], ke = N(fe) ?? ge;
|
|
2694
|
+
return L.map((Rt, Be) => {
|
|
2695
|
+
const dl = k(Z, Be, J), He = Be === 0 ? ke : b(ke, x(Be));
|
|
2696
|
+
return H && Be > 0 ? He : N(j == null ? void 0 : j[dl]) ?? He;
|
|
2691
2697
|
});
|
|
2692
2698
|
});
|
|
2693
2699
|
}
|
|
2694
|
-
const
|
|
2695
|
-
function N(
|
|
2696
|
-
if (!
|
|
2700
|
+
const C = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
2701
|
+
function N(U) {
|
|
2702
|
+
if (!U)
|
|
2697
2703
|
return null;
|
|
2698
|
-
const L =
|
|
2699
|
-
if (!
|
|
2704
|
+
const L = U.trim();
|
|
2705
|
+
if (!C.test(L))
|
|
2700
2706
|
return null;
|
|
2701
2707
|
if (L.length === 4) {
|
|
2702
2708
|
const j = L.charAt(1), H = L.charAt(2), J = L.charAt(3);
|
|
@@ -2704,20 +2710,20 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2704
2710
|
}
|
|
2705
2711
|
return L.toUpperCase();
|
|
2706
2712
|
}
|
|
2707
|
-
function
|
|
2708
|
-
return !Array.isArray(
|
|
2713
|
+
function S(U, L) {
|
|
2714
|
+
return !Array.isArray(U) || U.length === 0 ? Array.from({ length: L }).map(
|
|
2709
2715
|
(j, H) => ce[H % ce.length]
|
|
2710
2716
|
) : Array.from({ length: L }).map((j, H) => {
|
|
2711
2717
|
const J = ce[H % ce.length];
|
|
2712
|
-
return N(
|
|
2718
|
+
return N(U[H]) ?? J;
|
|
2713
2719
|
});
|
|
2714
2720
|
}
|
|
2715
|
-
function
|
|
2721
|
+
function f(U, L) {
|
|
2716
2722
|
if (L <= 0)
|
|
2717
2723
|
return [];
|
|
2718
2724
|
const j = Array.from({ length: L }, () => 0), H = /* @__PURE__ */ new Set();
|
|
2719
2725
|
for (let q = 0; q < L; q++) {
|
|
2720
|
-
const Z = Number(
|
|
2726
|
+
const Z = Number(U == null ? void 0 : U[q]);
|
|
2721
2727
|
Number.isInteger(Z) && Z >= 1 && Z <= L && !H.has(Z) && (j[q] = Z, H.add(Z));
|
|
2722
2728
|
}
|
|
2723
2729
|
let J = 1;
|
|
@@ -2729,28 +2735,28 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2729
2735
|
}
|
|
2730
2736
|
return j;
|
|
2731
2737
|
}
|
|
2732
|
-
const o =
|
|
2733
|
-
() =>
|
|
2734
|
-
), n =
|
|
2735
|
-
() => Array.from({ length: n.value.length }).map((
|
|
2738
|
+
const o = T(
|
|
2739
|
+
() => F(e.model.chartColorBinding)
|
|
2740
|
+
), n = T(() => _(B.value)), p = T(
|
|
2741
|
+
() => Array.from({ length: n.value.length }).map((U, L) => ({
|
|
2736
2742
|
label: `L${L + 1}`,
|
|
2737
2743
|
value: L + 1
|
|
2738
2744
|
}))
|
|
2739
|
-
), u =
|
|
2740
|
-
() =>
|
|
2741
|
-
),
|
|
2742
|
-
() =>
|
|
2745
|
+
), u = T(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap), m = T(
|
|
2746
|
+
() => S(e.model.chartColors, _(o.value).length)
|
|
2747
|
+
), y = T(
|
|
2748
|
+
() => f(
|
|
2743
2749
|
e.model.chartColorLayers,
|
|
2744
|
-
|
|
2750
|
+
_(o.value).length
|
|
2745
2751
|
)
|
|
2746
|
-
), I =
|
|
2747
|
-
() =>
|
|
2752
|
+
), I = T(() => e.model.chartUseSecondaryMetricShades !== !1), K = T(
|
|
2753
|
+
() => c(
|
|
2748
2754
|
i.value,
|
|
2749
2755
|
t.value,
|
|
2750
2756
|
e.model.chartBreakdownColors,
|
|
2751
2757
|
I.value
|
|
2752
2758
|
)
|
|
2753
|
-
), W = ee([]), X = ee([]), Y = ee([]), te = ee(!0),
|
|
2759
|
+
), W = ee([]), X = ee([]), Y = ee([]), te = ee(!0), B = ee(le.series);
|
|
2754
2760
|
ye(
|
|
2755
2761
|
[
|
|
2756
2762
|
() => e.model.chartColors,
|
|
@@ -2762,13 +2768,13 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2762
2768
|
() => e.model.isBlend,
|
|
2763
2769
|
() => e.model.joinDatasources
|
|
2764
2770
|
],
|
|
2765
|
-
([
|
|
2766
|
-
|
|
2767
|
-
const j =
|
|
2768
|
-
W.value =
|
|
2769
|
-
|
|
2771
|
+
([U, L]) => {
|
|
2772
|
+
B.value = F(L);
|
|
2773
|
+
const j = _(B.value).length;
|
|
2774
|
+
W.value = S(
|
|
2775
|
+
U,
|
|
2770
2776
|
j
|
|
2771
|
-
), X.value =
|
|
2777
|
+
), X.value = f(e.model.chartColorLayers, j), te.value = e.model.chartUseSecondaryMetricShades !== !1, Y.value = c(
|
|
2772
2778
|
i.value,
|
|
2773
2779
|
t.value,
|
|
2774
2780
|
e.model.chartBreakdownColors,
|
|
@@ -2777,43 +2783,45 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2777
2783
|
},
|
|
2778
2784
|
{ immediate: !0, deep: !0 }
|
|
2779
2785
|
);
|
|
2780
|
-
const G =
|
|
2781
|
-
function
|
|
2782
|
-
const j = [...W.value], H = ce[
|
|
2783
|
-
j[
|
|
2784
|
-
}
|
|
2785
|
-
function pe(
|
|
2786
|
-
|
|
2787
|
-
|
|
2786
|
+
const G = T(() => B.value !== o.value || W.value.length !== m.value.length || X.value.length !== y.value.length || X.value.some((U, L) => U !== y.value[L]) || te.value !== I.value || Y.value.length !== K.value.length || Y.value.some((U, L) => U !== K.value[L]) ? !0 : W.value.some((U, L) => U !== m.value[L]));
|
|
2787
|
+
function oe(U, L) {
|
|
2788
|
+
const j = [...W.value], H = ce[U % ce.length];
|
|
2789
|
+
j[U] = N(L) ?? H, W.value = j;
|
|
2790
|
+
}
|
|
2791
|
+
function pe(U) {
|
|
2792
|
+
if (e.limitToSeriesMode)
|
|
2793
|
+
return;
|
|
2794
|
+
const L = F(U);
|
|
2795
|
+
if (L === B.value)
|
|
2788
2796
|
return;
|
|
2789
|
-
const j =
|
|
2790
|
-
|
|
2797
|
+
const j = _(L).length;
|
|
2798
|
+
B.value = L, W.value = S(W.value, j), X.value = f(X.value, j), L === le.breakdown && (Y.value = c(
|
|
2791
2799
|
i.value,
|
|
2792
2800
|
t.value,
|
|
2793
2801
|
Y.value,
|
|
2794
2802
|
te.value
|
|
2795
2803
|
));
|
|
2796
2804
|
}
|
|
2797
|
-
function E(
|
|
2805
|
+
function E(U, L) {
|
|
2798
2806
|
const j = X.value.length;
|
|
2799
2807
|
if (j <= 0)
|
|
2800
2808
|
return;
|
|
2801
2809
|
const H = Number(L);
|
|
2802
2810
|
if (!Number.isInteger(H) || H < 1 || H > j)
|
|
2803
2811
|
return;
|
|
2804
|
-
const J = [...X.value], q = J[
|
|
2812
|
+
const J = [...X.value], q = J[U];
|
|
2805
2813
|
if (q === H)
|
|
2806
2814
|
return;
|
|
2807
2815
|
const Z = J.findIndex(
|
|
2808
|
-
(ge, fe) => fe !==
|
|
2816
|
+
(ge, fe) => fe !== U && ge === H
|
|
2809
2817
|
);
|
|
2810
|
-
Z >= 0 && (J[Z] = q), J[
|
|
2818
|
+
Z >= 0 && (J[Z] = q), J[U] = H, X.value = J;
|
|
2811
2819
|
}
|
|
2812
|
-
function ue(
|
|
2820
|
+
function ue(U, L) {
|
|
2813
2821
|
const j = L.target;
|
|
2814
|
-
j &&
|
|
2822
|
+
j && oe(U, j.value);
|
|
2815
2823
|
}
|
|
2816
|
-
function Te(
|
|
2824
|
+
function Te(U, L, j) {
|
|
2817
2825
|
const H = j.target;
|
|
2818
2826
|
if (!H)
|
|
2819
2827
|
return;
|
|
@@ -2823,16 +2831,16 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2823
2831
|
const q = t.value.length;
|
|
2824
2832
|
if (q <= 0)
|
|
2825
2833
|
return;
|
|
2826
|
-
const Z =
|
|
2834
|
+
const Z = k(U, L, q), ge = [...Y.value];
|
|
2827
2835
|
if (ge[Z] = J, te.value && L === 0)
|
|
2828
2836
|
for (let fe = 1; fe < q; fe++) {
|
|
2829
|
-
const
|
|
2830
|
-
ge[
|
|
2837
|
+
const ke = k(U, fe, q);
|
|
2838
|
+
ge[ke] = b(J, x(fe));
|
|
2831
2839
|
}
|
|
2832
2840
|
Y.value = ge;
|
|
2833
2841
|
}
|
|
2834
|
-
function $e(
|
|
2835
|
-
te.value =
|
|
2842
|
+
function $e(U) {
|
|
2843
|
+
te.value = U, Y.value = c(
|
|
2836
2844
|
i.value,
|
|
2837
2845
|
t.value,
|
|
2838
2846
|
Y.value,
|
|
@@ -2840,7 +2848,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2840
2848
|
);
|
|
2841
2849
|
}
|
|
2842
2850
|
function De() {
|
|
2843
|
-
|
|
2851
|
+
B.value = le.series, W.value = S(void 0, ce.length), X.value = f(void 0, ce.length), te.value = !0, Y.value = c(
|
|
2844
2852
|
i.value,
|
|
2845
2853
|
t.value,
|
|
2846
2854
|
void 0,
|
|
@@ -2848,9 +2856,9 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2848
2856
|
);
|
|
2849
2857
|
}
|
|
2850
2858
|
function Q() {
|
|
2851
|
-
const
|
|
2859
|
+
const U = B.value === le.series, L = W.value.every(
|
|
2852
2860
|
(q, Z) => q === ce[Z % ce.length]
|
|
2853
|
-
), j = X.value.every((q, Z) => q === Z + 1), H =
|
|
2861
|
+
), j = X.value.every((q, Z) => q === Z + 1), H = c(
|
|
2854
2862
|
i.value,
|
|
2855
2863
|
t.value,
|
|
2856
2864
|
void 0,
|
|
@@ -2858,16 +2866,16 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2858
2866
|
), J = Y.value.length === H.length && Y.value.every((q, Z) => q === H[Z]);
|
|
2859
2867
|
s("update:model", {
|
|
2860
2868
|
...e.model,
|
|
2861
|
-
chartColorBinding:
|
|
2869
|
+
chartColorBinding: U ? void 0 : B.value,
|
|
2862
2870
|
chartColors: L ? void 0 : [...W.value],
|
|
2863
2871
|
chartColorLayers: j ? void 0 : [...X.value],
|
|
2864
2872
|
chartBreakdownColors: J ? void 0 : [...Y.value],
|
|
2865
2873
|
chartUseSecondaryMetricShades: te.value
|
|
2866
2874
|
});
|
|
2867
2875
|
}
|
|
2868
|
-
return (
|
|
2876
|
+
return (U, L) => {
|
|
2869
2877
|
const j = $("FmButton"), H = $("FmSelect"), J = $("FmCheckbox");
|
|
2870
|
-
return v(),
|
|
2878
|
+
return v(), A("div", Qo, [
|
|
2871
2879
|
V("div", Zo, [
|
|
2872
2880
|
V("p", et, P(l(a)("report.section.datasource.chartColor.title")), 1),
|
|
2873
2881
|
V("div", lt, [
|
|
@@ -2881,11 +2889,11 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2881
2889
|
])
|
|
2882
2890
|
]),
|
|
2883
2891
|
r(H, {
|
|
2884
|
-
"model-value":
|
|
2892
|
+
"model-value": B.value,
|
|
2885
2893
|
items: h.value,
|
|
2886
2894
|
"onUpdate:modelValue": pe
|
|
2887
2895
|
}, null, 8, ["model-value", "items"]),
|
|
2888
|
-
|
|
2896
|
+
B.value === l(le).breakdown ? (v(), M(J, {
|
|
2889
2897
|
key: 0,
|
|
2890
2898
|
"model-value": te.value,
|
|
2891
2899
|
value: !1,
|
|
@@ -2893,8 +2901,8 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2893
2901
|
"onUpdate:modelValue": L[0] || (L[0] = (q) => $e(!!q)),
|
|
2894
2902
|
class: "p-4"
|
|
2895
2903
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
2896
|
-
|
|
2897
|
-
(v(!0),
|
|
2904
|
+
B.value !== l(le).breakdown ? (v(), A("div", ot, [
|
|
2905
|
+
(v(!0), A(se, null, be(W.value, (q, Z) => (v(), A("div", {
|
|
2898
2906
|
key: Z,
|
|
2899
2907
|
class: "fm-shadow-light-100 flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
|
|
2900
2908
|
}, [
|
|
@@ -2903,7 +2911,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2903
2911
|
u.value ? (v(), M(H, {
|
|
2904
2912
|
key: 0,
|
|
2905
2913
|
"model-value": X.value[Z],
|
|
2906
|
-
items:
|
|
2914
|
+
items: p.value,
|
|
2907
2915
|
"onUpdate:modelValue": (ge) => E(Z, ge)
|
|
2908
2916
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : O("", !0),
|
|
2909
2917
|
V("input", {
|
|
@@ -2914,30 +2922,30 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2914
2922
|
}, null, 40, nt)
|
|
2915
2923
|
])
|
|
2916
2924
|
]))), 128))
|
|
2917
|
-
])) : (v(),
|
|
2925
|
+
])) : (v(), A("div", it, [
|
|
2918
2926
|
V("div", {
|
|
2919
2927
|
class: "grid gap-8 border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-10 p-8",
|
|
2920
2928
|
style: Ae({ gridTemplateColumns: `minmax(120px, 1fr) repeat(${t.value.length}, minmax(52px, 80px))` })
|
|
2921
2929
|
}, [
|
|
2922
2930
|
V("p", st, P(l(a)("report.section.dimension.breakdownDimension")), 1),
|
|
2923
|
-
(v(!0),
|
|
2931
|
+
(v(!0), A(se, null, be(t.value, (q) => (v(), A("p", {
|
|
2924
2932
|
key: q,
|
|
2925
2933
|
class: "fm-typo-en-body-md-400"
|
|
2926
2934
|
}, P(q), 1))), 128))
|
|
2927
2935
|
], 4),
|
|
2928
|
-
(v(!0),
|
|
2936
|
+
(v(!0), A(se, null, be(i.value, (q, Z) => (v(), A("div", {
|
|
2929
2937
|
key: q,
|
|
2930
2938
|
class: "grid items-center gap-8 border-b border-fm-color-neutral-gray-100 p-8 last:border-b-0",
|
|
2931
2939
|
style: Ae({ gridTemplateColumns: `minmax(120px, 1fr) repeat(${t.value.length}, minmax(52px, 80px))` })
|
|
2932
2940
|
}, [
|
|
2933
2941
|
V("span", rt, P(q), 1),
|
|
2934
|
-
(v(!0),
|
|
2942
|
+
(v(!0), A(se, null, be(t.value, (ge, fe) => (v(), A("input", {
|
|
2935
2943
|
key: `${q}-${fe}`,
|
|
2936
2944
|
type: "color",
|
|
2937
|
-
value: Y.value[
|
|
2945
|
+
value: Y.value[k(Z, fe, t.value.length)],
|
|
2938
2946
|
class: "h-24 w-24 cursor-pointer rounded border border-fm-color-neutral-gray-100 bg-transparent p-0",
|
|
2939
2947
|
disabled: te.value && fe > 0,
|
|
2940
|
-
onInput: (
|
|
2948
|
+
onInput: (ke) => Te(Z, fe, ke)
|
|
2941
2949
|
}, null, 40, ut))), 128))
|
|
2942
2950
|
], 4))), 128))
|
|
2943
2951
|
])),
|
|
@@ -2958,43 +2966,43 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
2958
2966
|
},
|
|
2959
2967
|
emits: ["update:model"],
|
|
2960
2968
|
setup(D, { emit: d }) {
|
|
2961
|
-
const e = D, s = d, { t: a } = ie(), h =
|
|
2969
|
+
const e = D, s = d, { t: a } = ie(), h = T(() => [
|
|
2962
2970
|
{
|
|
2963
2971
|
label: a("report.section.datasource.styleTarget.series"),
|
|
2964
|
-
value:
|
|
2972
|
+
value: le.series
|
|
2965
2973
|
},
|
|
2966
2974
|
{
|
|
2967
2975
|
label: a("report.section.datasource.styleTarget.metric"),
|
|
2968
|
-
value:
|
|
2976
|
+
value: le.metric
|
|
2969
2977
|
}
|
|
2970
2978
|
]);
|
|
2971
|
-
function
|
|
2972
|
-
return m && typeof m == "object" && "value" in m ?
|
|
2979
|
+
function F(m) {
|
|
2980
|
+
return m && typeof m == "object" && "value" in m ? F(m.value) : m === le.metric ? le.metric : le.series;
|
|
2973
2981
|
}
|
|
2974
|
-
function g(m,
|
|
2982
|
+
function g(m, y) {
|
|
2975
2983
|
var K, W;
|
|
2976
|
-
return m ? ((K = m.label) == null ? void 0 : K.trim()) || ((W = m.name) == null ? void 0 : W.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${
|
|
2984
|
+
return m ? ((K = m.label) == null ? void 0 : K.trim()) || ((W = m.name) == null ? void 0 : W.trim()) || `${a("report.section.datasource.styleTarget.metric")} ${y + 1}` : `${a("report.section.datasource.styleTarget.metric")} ${y + 1}`;
|
|
2977
2985
|
}
|
|
2978
2986
|
function w() {
|
|
2979
2987
|
const m = Array.isArray(e.model.metrics) ? e.model.metrics : [];
|
|
2980
2988
|
if (!e.model.isBlend)
|
|
2981
2989
|
return m;
|
|
2982
|
-
const
|
|
2990
|
+
const y = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
2983
2991
|
(I) => Array.isArray(I == null ? void 0 : I.metrics) ? I.metrics : []
|
|
2984
2992
|
) : [];
|
|
2985
|
-
return [...m, ...
|
|
2993
|
+
return [...m, ...y];
|
|
2986
2994
|
}
|
|
2987
|
-
function
|
|
2988
|
-
if (m ===
|
|
2989
|
-
const
|
|
2990
|
-
if (
|
|
2991
|
-
return
|
|
2995
|
+
function _(m) {
|
|
2996
|
+
if (m === le.metric) {
|
|
2997
|
+
const y = w();
|
|
2998
|
+
if (y.length > 0)
|
|
2999
|
+
return y.map((I, K) => g(I, K));
|
|
2992
3000
|
}
|
|
2993
3001
|
return ce.map(
|
|
2994
|
-
(
|
|
3002
|
+
(y, I) => `${a("report.section.datasource.lineStyle.series")} ${I + 1}`
|
|
2995
3003
|
);
|
|
2996
3004
|
}
|
|
2997
|
-
const t =
|
|
3005
|
+
const t = T(() => [
|
|
2998
3006
|
{
|
|
2999
3007
|
label: a("report.section.datasource.lineStyle.solid"),
|
|
3000
3008
|
value: "solid"
|
|
@@ -3011,19 +3019,19 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3011
3019
|
function i(m) {
|
|
3012
3020
|
return m && typeof m == "object" && "value" in m ? i(m.value) : m === "dashed" || m === "DASHED" ? "dashed" : m === "dotted" || m === "DOTTED" ? "dotted" : "solid";
|
|
3013
3021
|
}
|
|
3014
|
-
function
|
|
3022
|
+
function b(m) {
|
|
3015
3023
|
return m === "dashed" ? "line-style-icon--dashed" : m === "dotted" ? "line-style-icon--dotted" : "line-style-icon--solid";
|
|
3016
3024
|
}
|
|
3017
|
-
function
|
|
3018
|
-
return !Array.isArray(m) || m.length === 0 ? Array.from({ length:
|
|
3025
|
+
function x(m, y) {
|
|
3026
|
+
return !Array.isArray(m) || m.length === 0 ? Array.from({ length: y }).map(
|
|
3019
3027
|
(I, K) => Ke[K] ?? "solid"
|
|
3020
|
-
) : Array.from({ length:
|
|
3028
|
+
) : Array.from({ length: y }).map((I, K) => i(m[K]));
|
|
3021
3029
|
}
|
|
3022
|
-
const
|
|
3023
|
-
() =>
|
|
3024
|
-
),
|
|
3025
|
-
() =>
|
|
3026
|
-
), N = ee([]),
|
|
3030
|
+
const k = T(
|
|
3031
|
+
() => F(e.model.lineStyleBinding)
|
|
3032
|
+
), c = T(() => _(S.value)), C = T(
|
|
3033
|
+
() => x(e.model.lineStyles, _(k.value).length)
|
|
3034
|
+
), N = ee([]), S = ee(le.series);
|
|
3027
3035
|
ye(
|
|
3028
3036
|
[
|
|
3029
3037
|
() => e.model.lineStyles,
|
|
@@ -3032,40 +3040,40 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3032
3040
|
() => e.model.isBlend,
|
|
3033
3041
|
() => e.model.joinDatasources
|
|
3034
3042
|
],
|
|
3035
|
-
([m,
|
|
3036
|
-
|
|
3043
|
+
([m, y]) => {
|
|
3044
|
+
S.value = F(y), N.value = x(
|
|
3037
3045
|
m,
|
|
3038
|
-
|
|
3046
|
+
_(S.value).length
|
|
3039
3047
|
);
|
|
3040
3048
|
},
|
|
3041
3049
|
{ immediate: !0, deep: !0 }
|
|
3042
3050
|
);
|
|
3043
|
-
const
|
|
3044
|
-
function o(m,
|
|
3051
|
+
const f = T(() => S.value !== k.value || N.value.length !== C.value.length ? !0 : N.value.some((m, y) => m !== C.value[y]));
|
|
3052
|
+
function o(m, y) {
|
|
3045
3053
|
const I = [...N.value];
|
|
3046
|
-
I[m] = i(
|
|
3054
|
+
I[m] = i(y), N.value = I;
|
|
3047
3055
|
}
|
|
3048
3056
|
function n(m) {
|
|
3049
|
-
const
|
|
3050
|
-
if (
|
|
3057
|
+
const y = F(m);
|
|
3058
|
+
if (y === S.value)
|
|
3051
3059
|
return;
|
|
3052
|
-
const I =
|
|
3053
|
-
|
|
3060
|
+
const I = _(y).length;
|
|
3061
|
+
S.value = y, N.value = x(N.value, I);
|
|
3054
3062
|
}
|
|
3055
|
-
function
|
|
3056
|
-
|
|
3063
|
+
function p() {
|
|
3064
|
+
S.value = le.series, N.value = [...Ke];
|
|
3057
3065
|
}
|
|
3058
3066
|
function u() {
|
|
3059
|
-
const m =
|
|
3067
|
+
const m = S.value === le.series, y = N.value.every((I) => I === "solid");
|
|
3060
3068
|
s("update:model", {
|
|
3061
3069
|
...e.model,
|
|
3062
|
-
lineStyleBinding: m ? void 0 :
|
|
3063
|
-
lineStyles:
|
|
3070
|
+
lineStyleBinding: m ? void 0 : S.value,
|
|
3071
|
+
lineStyles: y ? void 0 : [...N.value]
|
|
3064
3072
|
});
|
|
3065
3073
|
}
|
|
3066
|
-
return (m,
|
|
3074
|
+
return (m, y) => {
|
|
3067
3075
|
const I = $("FmButton"), K = $("FmSelect");
|
|
3068
|
-
return v(),
|
|
3076
|
+
return v(), A("div", mt, [
|
|
3069
3077
|
V("div", ct, [
|
|
3070
3078
|
V("p", pt, P(l(a)("report.section.datasource.lineStyle.title")), 1),
|
|
3071
3079
|
V("div", ft, [
|
|
@@ -3074,27 +3082,27 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3074
3082
|
"text-color": "text-fm-color-system-info-300",
|
|
3075
3083
|
size: "md",
|
|
3076
3084
|
label: l(a)("report.section.datasource.lineStyle.reset"),
|
|
3077
|
-
onClick:
|
|
3085
|
+
onClick: p
|
|
3078
3086
|
}, null, 8, ["label"])
|
|
3079
3087
|
])
|
|
3080
3088
|
]),
|
|
3081
3089
|
r(K, {
|
|
3082
|
-
"model-value":
|
|
3090
|
+
"model-value": S.value,
|
|
3083
3091
|
items: h.value,
|
|
3084
3092
|
label: l(a)("report.section.datasource.styleTarget.title"),
|
|
3085
3093
|
"onUpdate:modelValue": n
|
|
3086
3094
|
}, null, 8, ["model-value", "items", "label"]),
|
|
3087
3095
|
V("div", vt, [
|
|
3088
|
-
(v(!0),
|
|
3096
|
+
(v(!0), A(se, null, be(N.value, (W, X) => (v(), A("div", {
|
|
3089
3097
|
key: X,
|
|
3090
3098
|
class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
|
|
3091
3099
|
}, [
|
|
3092
3100
|
V("div", gt, [
|
|
3093
3101
|
V("span", {
|
|
3094
|
-
class: Ee(["line-style-icon",
|
|
3102
|
+
class: Ee(["line-style-icon", b(W)]),
|
|
3095
3103
|
"aria-hidden": "true"
|
|
3096
3104
|
}, null, 2),
|
|
3097
|
-
V("span", bt, P(
|
|
3105
|
+
V("span", bt, P(c.value[X] || `${l(a)("report.section.datasource.lineStyle.line")} ${X + 1}`), 1)
|
|
3098
3106
|
]),
|
|
3099
3107
|
r(K, {
|
|
3100
3108
|
"model-value": W,
|
|
@@ -3107,16 +3115,16 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3107
3115
|
r(I, {
|
|
3108
3116
|
size: "md",
|
|
3109
3117
|
label: l(a)("report.common.apply"),
|
|
3110
|
-
disabled: !
|
|
3118
|
+
disabled: !f.value,
|
|
3111
3119
|
onClick: u
|
|
3112
3120
|
}, null, 8, ["label", "disabled"])
|
|
3113
3121
|
]);
|
|
3114
3122
|
};
|
|
3115
3123
|
}
|
|
3116
|
-
}), ht = /* @__PURE__ */ nl(yt, [["__scopeId", "data-v-0df77216"]]), wt = { class: "flex flex-col gap-16" },
|
|
3124
|
+
}), ht = /* @__PURE__ */ nl(yt, [["__scopeId", "data-v-0df77216"]]), wt = { class: "flex flex-col gap-16" }, Ct = {
|
|
3117
3125
|
key: 2,
|
|
3118
3126
|
class: "h-px w-full bg-fm-color-neutral-gray-100"
|
|
3119
|
-
},
|
|
3127
|
+
}, Vt = { class: "flex flex-col gap-8" }, Ft = { class: "fm-typo-en-body-lg-600" }, kt = { class: "flex flex-col gap-8" }, xt = /* @__PURE__ */ ae({
|
|
3120
3128
|
__name: "StyleDatasource",
|
|
3121
3129
|
props: /* @__PURE__ */ re({
|
|
3122
3130
|
label: {
|
|
@@ -3151,14 +3159,14 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3151
3159
|
ye(
|
|
3152
3160
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
3153
3161
|
() => {
|
|
3154
|
-
const { rowIds: i, columnIds:
|
|
3155
|
-
e.value.rowIds = i, e.value.columnIds =
|
|
3162
|
+
const { rowIds: i, columnIds: b } = Oe(e.value);
|
|
3163
|
+
e.value.rowIds = i, e.value.columnIds = b;
|
|
3156
3164
|
},
|
|
3157
3165
|
{ deep: !0 }
|
|
3158
3166
|
);
|
|
3159
|
-
const s = D, a = d, { t: h } = ie(),
|
|
3160
|
-
() => s.config.type ===
|
|
3161
|
-
),
|
|
3167
|
+
const s = D, a = d, { t: h } = ie(), F = T(() => s.config.type === z.Circular), g = T(() => s.config.type === z.StackBarChart || s.config.type === z.ClusteredStackBarChart), w = T(
|
|
3168
|
+
() => s.config.type === z.LineChart || s.config.type === z.StackLineChart
|
|
3169
|
+
), _ = T({
|
|
3162
3170
|
get: () => e.value.maxTooltipItems ?? null,
|
|
3163
3171
|
set: (i) => {
|
|
3164
3172
|
e.value = {
|
|
@@ -3166,7 +3174,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3166
3174
|
maxTooltipItems: i ?? void 0
|
|
3167
3175
|
};
|
|
3168
3176
|
}
|
|
3169
|
-
}), t =
|
|
3177
|
+
}), t = T({
|
|
3170
3178
|
get: () => e.value.stackBarOverlap ?? !1,
|
|
3171
3179
|
set: (i) => {
|
|
3172
3180
|
e.value = {
|
|
@@ -3175,66 +3183,67 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3175
3183
|
};
|
|
3176
3184
|
}
|
|
3177
3185
|
});
|
|
3178
|
-
return (i,
|
|
3179
|
-
const
|
|
3180
|
-
return v(),
|
|
3181
|
-
|
|
3182
|
-
s.closeable ? (v(), M(
|
|
3186
|
+
return (i, b) => {
|
|
3187
|
+
const x = $("FmButton"), k = $("FmCheckbox"), c = $("FmStepperField");
|
|
3188
|
+
return v(), A(se, null, [
|
|
3189
|
+
b[10] || (b[10] = V("div", { class: "grow" }, null, -1)),
|
|
3190
|
+
s.closeable ? (v(), M(x, {
|
|
3183
3191
|
key: 0,
|
|
3184
3192
|
icon: "close",
|
|
3185
3193
|
variant: "tertiary",
|
|
3186
3194
|
size: "md",
|
|
3187
|
-
onClick:
|
|
3195
|
+
onClick: b[0] || (b[0] = ve((C) => a("click-close"), ["stop"]))
|
|
3188
3196
|
})) : O("", !0),
|
|
3189
3197
|
V("div", wt, [
|
|
3190
3198
|
s.config.hasChart ? (v(), M(Ko, {
|
|
3191
3199
|
key: 0,
|
|
3192
3200
|
model: e.value,
|
|
3193
|
-
"onUpdate:model":
|
|
3201
|
+
"onUpdate:model": b[1] || (b[1] = (C) => e.value = C)
|
|
3194
3202
|
}, null, 8, ["model"])) : O("", !0),
|
|
3195
3203
|
s.config.hasChart ? (v(), M(dt, {
|
|
3196
3204
|
key: 1,
|
|
3197
3205
|
model: e.value,
|
|
3198
3206
|
"show-layer-control": g.value && t.value,
|
|
3199
|
-
"
|
|
3200
|
-
|
|
3201
|
-
|
|
3207
|
+
"limit-to-series-mode": F.value,
|
|
3208
|
+
"onUpdate:model": b[2] || (b[2] = (C) => e.value = C)
|
|
3209
|
+
}, null, 8, ["model", "show-layer-control", "limit-to-series-mode"])) : O("", !0),
|
|
3210
|
+
s.config.hasChart && w.value ? (v(), A("div", Ct)) : O("", !0),
|
|
3202
3211
|
s.config.hasChart && w.value ? (v(), M(ht, {
|
|
3203
3212
|
key: 3,
|
|
3204
3213
|
model: e.value,
|
|
3205
|
-
"onUpdate:model":
|
|
3214
|
+
"onUpdate:model": b[3] || (b[3] = (C) => e.value = C)
|
|
3206
3215
|
}, null, 8, ["model"])) : O("", !0),
|
|
3207
|
-
|
|
3208
|
-
V("div",
|
|
3216
|
+
b[9] || (b[9] = V("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3217
|
+
V("div", Vt, [
|
|
3209
3218
|
V("p", Ft, P(l(h)("report.section.style.configuration")), 1),
|
|
3210
|
-
V("div",
|
|
3211
|
-
g.value ? (v(), M(
|
|
3219
|
+
V("div", kt, [
|
|
3220
|
+
g.value ? (v(), M(k, {
|
|
3212
3221
|
key: 0,
|
|
3213
3222
|
modelValue: t.value,
|
|
3214
|
-
"onUpdate:modelValue":
|
|
3223
|
+
"onUpdate:modelValue": b[4] || (b[4] = (C) => t.value = C),
|
|
3215
3224
|
class: "fm-typo-en-body-lg-400",
|
|
3216
3225
|
label: l(h)("report.section.datasource.stackBar.overlapBars")
|
|
3217
3226
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
3218
3227
|
s.config.hasLabel ? (v(), M(No, {
|
|
3219
3228
|
key: 1,
|
|
3220
3229
|
model: e.value,
|
|
3221
|
-
"onUpdate:model":
|
|
3230
|
+
"onUpdate:model": b[5] || (b[5] = (C) => e.value = C)
|
|
3222
3231
|
}, null, 8, ["model"])) : O("", !0),
|
|
3223
3232
|
s.config.hasLegend ? (v(), M(Jo, {
|
|
3224
3233
|
key: 2,
|
|
3225
3234
|
model: e.value,
|
|
3226
|
-
"is-circular-widget":
|
|
3227
|
-
"onUpdate:model":
|
|
3235
|
+
"is-circular-widget": F.value,
|
|
3236
|
+
"onUpdate:model": b[6] || (b[6] = (C) => e.value = C)
|
|
3228
3237
|
}, null, 8, ["model", "is-circular-widget"])) : O("", !0),
|
|
3229
3238
|
s.config.hasXy ? (v(), M(Xo, {
|
|
3230
3239
|
key: 3,
|
|
3231
3240
|
model: e.value,
|
|
3232
|
-
"onUpdate:model":
|
|
3241
|
+
"onUpdate:model": b[7] || (b[7] = (C) => e.value = C)
|
|
3233
3242
|
}, null, 8, ["model"])) : O("", !0),
|
|
3234
|
-
s.config.hasXy ? (v(), M(
|
|
3243
|
+
s.config.hasXy ? (v(), M(c, {
|
|
3235
3244
|
key: 4,
|
|
3236
|
-
modelValue:
|
|
3237
|
-
"onUpdate:modelValue":
|
|
3245
|
+
modelValue: _.value,
|
|
3246
|
+
"onUpdate:modelValue": b[8] || (b[8] = (C) => _.value = C),
|
|
3238
3247
|
type: "number",
|
|
3239
3248
|
label: l(h)("report.section.datasource.tooltip.maxTooltipItems"),
|
|
3240
3249
|
min: 2,
|
|
@@ -3258,9 +3267,9 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3258
3267
|
},
|
|
3259
3268
|
emits: ["update:modelValue", "update:isStyleEditing"],
|
|
3260
3269
|
setup(D) {
|
|
3261
|
-
const { t: d } = ie(), e = me(D, "modelValue"), s =
|
|
3270
|
+
const { t: d } = ie(), e = me(D, "modelValue"), s = T(
|
|
3262
3271
|
() => je.find((g) => g.type === e.value.widget.type)
|
|
3263
|
-
), a = me(D, "isStyleEditing"), h =
|
|
3272
|
+
), a = me(D, "isStyleEditing"), h = T(() => {
|
|
3264
3273
|
var g;
|
|
3265
3274
|
return {
|
|
3266
3275
|
chartHeight: void 0,
|
|
@@ -3295,7 +3304,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3295
3304
|
showYTitle: !1,
|
|
3296
3305
|
yTitle: "",
|
|
3297
3306
|
yTitleFontSize: 12,
|
|
3298
|
-
showLegend: ((g = s.value) == null ? void 0 : g.type) ===
|
|
3307
|
+
showLegend: ((g = s.value) == null ? void 0 : g.type) === z.Circular,
|
|
3299
3308
|
legendPosition: _l.top,
|
|
3300
3309
|
usePointStyle: !0,
|
|
3301
3310
|
legendFontSize: void 0,
|
|
@@ -3307,17 +3316,17 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3307
3316
|
stackBarOverlap: !1
|
|
3308
3317
|
};
|
|
3309
3318
|
});
|
|
3310
|
-
function
|
|
3319
|
+
function F() {
|
|
3311
3320
|
e.value && (e.value.widget.config = {
|
|
3312
3321
|
...e.value.widget.config,
|
|
3313
3322
|
...h.value
|
|
3314
3323
|
});
|
|
3315
3324
|
}
|
|
3316
3325
|
return (g, w) => {
|
|
3317
|
-
const
|
|
3326
|
+
const _ = $("FmCircularProgress"), t = $("FmButton"), i = $("FmSideSheet");
|
|
3318
3327
|
return v(), M(i, {
|
|
3319
3328
|
modelValue: a.value,
|
|
3320
|
-
"onUpdate:modelValue": w[2] || (w[2] = (
|
|
3329
|
+
"onUpdate:modelValue": w[2] || (w[2] = (b) => a.value = b),
|
|
3321
3330
|
"close-button": !1,
|
|
3322
3331
|
"no-overlay": "",
|
|
3323
3332
|
"dismiss-away": !0,
|
|
@@ -3339,7 +3348,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3339
3348
|
"prepend-icon": "arrow_back",
|
|
3340
3349
|
variant: "tertiary",
|
|
3341
3350
|
class: "fm-icon--rounded fm-icon--md text-fm-color-black",
|
|
3342
|
-
onClick: w[0] || (w[0] = (
|
|
3351
|
+
onClick: w[0] || (w[0] = (b) => a.value = !1)
|
|
3343
3352
|
}),
|
|
3344
3353
|
V("p", Tt, P(l(d)("report.section.style.title")), 1),
|
|
3345
3354
|
V("div", $t, [
|
|
@@ -3347,17 +3356,17 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3347
3356
|
label: l(d)("report.section.style.reset"),
|
|
3348
3357
|
variant: "tertiary",
|
|
3349
3358
|
size: "md",
|
|
3350
|
-
onClick:
|
|
3359
|
+
onClick: F,
|
|
3351
3360
|
"text-color": "text-fm-color-system-info-300"
|
|
3352
3361
|
}, null, 8, ["label"])
|
|
3353
3362
|
])
|
|
3354
3363
|
])
|
|
3355
3364
|
]),
|
|
3356
3365
|
default: R(() => [
|
|
3357
|
-
e.value ? O("", !0) : (v(), M(
|
|
3358
|
-
r(
|
|
3366
|
+
e.value ? O("", !0) : (v(), M(_, { key: 0 })),
|
|
3367
|
+
r(xt, {
|
|
3359
3368
|
modelValue: e.value.widget.config,
|
|
3360
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
3369
|
+
"onUpdate:modelValue": w[1] || (w[1] = (b) => e.value.widget.config = b),
|
|
3361
3370
|
config: s.value
|
|
3362
3371
|
}, null, 8, ["modelValue", "config"])
|
|
3363
3372
|
]),
|
|
@@ -3365,7 +3374,7 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3365
3374
|
}, 8, ["modelValue"]);
|
|
3366
3375
|
};
|
|
3367
3376
|
}
|
|
3368
|
-
}),
|
|
3377
|
+
}), Bt = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, Ut = { class: "flex bg-fm-color-neutral-white w-[88px]" }, Lt = { class: "w-full overflow-y-auto" }, Mt = {
|
|
3369
3378
|
class: "grid grid-cols-12 w-full p-24",
|
|
3370
3379
|
style: { backgroundColor: "#F6F8FC" }
|
|
3371
3380
|
}, Nt = /* @__PURE__ */ ae({
|
|
@@ -3381,58 +3390,64 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3381
3390
|
}),
|
|
3382
3391
|
emits: /* @__PURE__ */ re(["hideConfiguration"], ["update:modelValue"]),
|
|
3383
3392
|
setup(D, { emit: d }) {
|
|
3384
|
-
const e = me(D, "modelValue"), s = D, a =
|
|
3393
|
+
const e = me(D, "modelValue"), s = D, a = T(
|
|
3385
3394
|
() => je.find((t) => {
|
|
3386
3395
|
var i;
|
|
3387
3396
|
return t.type === ((i = e.value) == null ? void 0 : i.widget.type);
|
|
3388
3397
|
})
|
|
3389
|
-
), h = d,
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
], g =
|
|
3397
|
-
function
|
|
3398
|
-
if (
|
|
3398
|
+
), h = d, F = [
|
|
3399
|
+
z.BarChart,
|
|
3400
|
+
z.StackBarChart,
|
|
3401
|
+
z.ClusteredStackBarChart,
|
|
3402
|
+
z.LineChart,
|
|
3403
|
+
z.StackLineChart,
|
|
3404
|
+
z.Circular
|
|
3405
|
+
], g = T(() => F.includes(e.value.widget.type)), w = ee(!1);
|
|
3406
|
+
function _(t) {
|
|
3407
|
+
if (![
|
|
3408
|
+
z.BarChart,
|
|
3409
|
+
z.StackBarChart,
|
|
3410
|
+
z.ClusteredStackBarChart,
|
|
3411
|
+
z.LineChart,
|
|
3412
|
+
z.StackLineChart
|
|
3413
|
+
].includes(e.value.widget.type))
|
|
3399
3414
|
return;
|
|
3400
|
-
const
|
|
3401
|
-
|
|
3415
|
+
const b = t.filter((c) => !!c), x = e.value.widget.config.chartBreakdownDimensionValues ?? [];
|
|
3416
|
+
x.length === b.length && x.every((c, C) => c === b[C]) || (e.value.widget.config = {
|
|
3402
3417
|
...e.value.widget.config,
|
|
3403
|
-
chartBreakdownDimensionValues:
|
|
3418
|
+
chartBreakdownDimensionValues: b.length > 0 ? [...b] : void 0
|
|
3404
3419
|
});
|
|
3405
3420
|
}
|
|
3406
3421
|
return (t, i) => {
|
|
3407
|
-
const
|
|
3408
|
-
return v(),
|
|
3409
|
-
e.value ? (v(),
|
|
3410
|
-
r(
|
|
3422
|
+
const b = $("FmCircularProgress"), x = $("FmButton");
|
|
3423
|
+
return v(), A("div", null, [
|
|
3424
|
+
e.value ? (v(), A(se, { key: 1 }, [
|
|
3425
|
+
r(Cl, {
|
|
3411
3426
|
"model-value": !D.hideConfiguration
|
|
3412
3427
|
}, {
|
|
3413
3428
|
right: R(() => [
|
|
3414
|
-
V("div",
|
|
3429
|
+
V("div", Bt, [
|
|
3415
3430
|
r(ul, {
|
|
3416
3431
|
modelValue: e.value,
|
|
3417
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3432
|
+
"onUpdate:modelValue": i[0] || (i[0] = (k) => e.value = k),
|
|
3418
3433
|
config: a.value,
|
|
3419
3434
|
"hide-configuration": D.hideConfiguration,
|
|
3420
|
-
onHideConfiguration: i[1] || (i[1] = (
|
|
3421
|
-
h("hideConfiguration",
|
|
3435
|
+
onHideConfiguration: i[1] || (i[1] = (k) => {
|
|
3436
|
+
h("hideConfiguration", k);
|
|
3422
3437
|
})
|
|
3423
3438
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
3424
3439
|
])
|
|
3425
3440
|
]),
|
|
3426
3441
|
left: R(() => [
|
|
3427
|
-
V("div",
|
|
3428
|
-
r(
|
|
3442
|
+
V("div", Ut, [
|
|
3443
|
+
r(x, {
|
|
3429
3444
|
variant: "secondary",
|
|
3430
3445
|
icon: "keyboard_double_arrow_right",
|
|
3431
3446
|
"border-color": l(Ge).ColorPrimary,
|
|
3432
3447
|
"text-color": l(Ge).ColorPrimary,
|
|
3433
3448
|
class: "m-24 my-16",
|
|
3434
3449
|
size: "md",
|
|
3435
|
-
onClick: i[2] || (i[2] = (
|
|
3450
|
+
onClick: i[2] || (i[2] = (k) => h("hideConfiguration", !s.hideConfiguration))
|
|
3436
3451
|
}, null, 8, ["border-color", "text-color"])
|
|
3437
3452
|
])
|
|
3438
3453
|
]),
|
|
@@ -3446,22 +3461,22 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3446
3461
|
index: s.index,
|
|
3447
3462
|
"hide-export": !0,
|
|
3448
3463
|
"is-style-editing": w.value,
|
|
3449
|
-
"onUpdate:breakdownDimensionValues":
|
|
3464
|
+
"onUpdate:breakdownDimensionValues": _
|
|
3450
3465
|
}, null, 8, ["model-value", "index", "is-style-editing"])) : (v(), M(rl, { key: 1 }))
|
|
3451
3466
|
])
|
|
3452
3467
|
]),
|
|
3453
3468
|
g.value ? (v(), M(Dt, {
|
|
3454
3469
|
key: 0,
|
|
3455
3470
|
modelValue: e.value,
|
|
3456
|
-
"onUpdate:modelValue": i[3] || (i[3] = (
|
|
3471
|
+
"onUpdate:modelValue": i[3] || (i[3] = (k) => e.value = k),
|
|
3457
3472
|
"is-style-editing": w.value,
|
|
3458
|
-
"onUpdate:isStyleEditing": i[4] || (i[4] = (
|
|
3473
|
+
"onUpdate:isStyleEditing": i[4] || (i[4] = (k) => w.value = k),
|
|
3459
3474
|
"hide-configuration": D.hideConfiguration,
|
|
3460
|
-
onHideConfiguration: i[5] || (i[5] = (
|
|
3461
|
-
h("hideConfiguration",
|
|
3475
|
+
onHideConfiguration: i[5] || (i[5] = (k) => {
|
|
3476
|
+
h("hideConfiguration", k);
|
|
3462
3477
|
})
|
|
3463
3478
|
}, null, 8, ["modelValue", "is-style-editing", "hide-configuration"])) : O("", !0)
|
|
3464
|
-
], 64)) : (v(), M(
|
|
3479
|
+
], 64)) : (v(), M(b, { key: 0 }))
|
|
3465
3480
|
]);
|
|
3466
3481
|
};
|
|
3467
3482
|
}
|
|
@@ -3481,32 +3496,38 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3481
3496
|
}),
|
|
3482
3497
|
emits: /* @__PURE__ */ re(["hideConfiguration"], ["update:modelValue"]),
|
|
3483
3498
|
setup(D, { emit: d }) {
|
|
3484
|
-
const e = me(D, "modelValue"), s = D, a =
|
|
3499
|
+
const e = me(D, "modelValue"), s = D, a = T(
|
|
3485
3500
|
() => je.find((g) => {
|
|
3486
3501
|
var w;
|
|
3487
3502
|
return g.type === ((w = e.value) == null ? void 0 : w.widget.type);
|
|
3488
3503
|
})
|
|
3489
3504
|
), h = d;
|
|
3490
|
-
function
|
|
3491
|
-
if (
|
|
3505
|
+
function F(g) {
|
|
3506
|
+
if (![
|
|
3507
|
+
z.BarChart,
|
|
3508
|
+
z.StackBarChart,
|
|
3509
|
+
z.ClusteredStackBarChart,
|
|
3510
|
+
z.LineChart,
|
|
3511
|
+
z.StackLineChart
|
|
3512
|
+
].includes(e.value.widget.type))
|
|
3492
3513
|
return;
|
|
3493
|
-
const
|
|
3494
|
-
|
|
3514
|
+
const _ = g.filter((b) => !!b), t = e.value.widget.config.chartBreakdownDimensionValues ?? [];
|
|
3515
|
+
t.length === _.length && t.every((b, x) => b === _[x]) || (e.value.widget.config = {
|
|
3495
3516
|
...e.value.widget.config,
|
|
3496
|
-
chartBreakdownDimensionValues:
|
|
3517
|
+
chartBreakdownDimensionValues: _.length > 0 ? [..._] : void 0
|
|
3497
3518
|
});
|
|
3498
3519
|
}
|
|
3499
3520
|
return (g, w) => {
|
|
3500
|
-
const
|
|
3501
|
-
return v(),
|
|
3502
|
-
e.value ? (v(),
|
|
3521
|
+
const _ = $("FmCircularProgress");
|
|
3522
|
+
return v(), A("div", null, [
|
|
3523
|
+
e.value ? (v(), A(se, { key: 1 }, [
|
|
3503
3524
|
V("div", It, [
|
|
3504
3525
|
e.value ? (v(), M(sl, {
|
|
3505
3526
|
key: 0,
|
|
3506
3527
|
"model-value": e.value,
|
|
3507
3528
|
index: s.index,
|
|
3508
3529
|
"hide-export": !0,
|
|
3509
|
-
"onUpdate:breakdownDimensionValues":
|
|
3530
|
+
"onUpdate:breakdownDimensionValues": F
|
|
3510
3531
|
}, null, 8, ["model-value", "index"])) : (v(), M(rl, { key: 1 }))
|
|
3511
3532
|
]),
|
|
3512
3533
|
r(ul, {
|
|
@@ -3518,8 +3539,8 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3518
3539
|
h("hideConfiguration", t);
|
|
3519
3540
|
})
|
|
3520
3541
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
3521
|
-
], 64)) : (v(),
|
|
3522
|
-
r(
|
|
3542
|
+
], 64)) : (v(), A("div", Ot, [
|
|
3543
|
+
r(_)
|
|
3523
3544
|
]))
|
|
3524
3545
|
]);
|
|
3525
3546
|
};
|
|
@@ -3533,72 +3554,72 @@ const Xl = { class: "flex flex-col my-2 gap-8" }, Wl = { class: "fm-typo-en-body
|
|
|
3533
3554
|
}, oa = /* @__PURE__ */ ae({
|
|
3534
3555
|
__name: "TileEditor",
|
|
3535
3556
|
setup(D) {
|
|
3536
|
-
const { rowHeight: d, colWidths: e } =
|
|
3537
|
-
var
|
|
3538
|
-
const o = (
|
|
3557
|
+
const { rowHeight: d, colWidths: e } = Ve(Me()), s = vl(), a = gl(), h = xl(), { globalFilters: F } = Ve(il()), { currentSelectWidgetType: g, editingReport: w, editingTile: _, editingTileIndex: t } = Ve(h), { breakpoints: i } = al(), { promptMessage: b } = tl(), { t: x, te: k } = ie(), c = T(() => {
|
|
3558
|
+
var p;
|
|
3559
|
+
const o = (p = _.value) == null ? void 0 : p.widget.type;
|
|
3539
3560
|
if (!o)
|
|
3540
|
-
return
|
|
3561
|
+
return x("report.editor.newReport");
|
|
3541
3562
|
const n = `report.widget.types.${o.toLowerCase()}`;
|
|
3542
|
-
return
|
|
3543
|
-
}),
|
|
3563
|
+
return k(n) ? x(n) : o;
|
|
3564
|
+
}), C = ee(!1);
|
|
3544
3565
|
function N() {
|
|
3545
|
-
g.value = void 0,
|
|
3566
|
+
g.value = void 0, _.value = void 0, t.value = -1, a.back();
|
|
3546
3567
|
}
|
|
3547
|
-
async function
|
|
3568
|
+
async function S() {
|
|
3548
3569
|
var n;
|
|
3549
3570
|
if (!w.value) return;
|
|
3550
|
-
await
|
|
3551
|
-
title:
|
|
3552
|
-
message:
|
|
3553
|
-
}) &&
|
|
3554
|
-
...
|
|
3571
|
+
await b({
|
|
3572
|
+
title: x("report.tile.save.title"),
|
|
3573
|
+
message: x("report.tile.save.confirm", { title: (n = _.value) == null ? void 0 : n.widget.title })
|
|
3574
|
+
}) && _.value && (_.value.widget.config = {
|
|
3575
|
+
..._.value.widget.config,
|
|
3555
3576
|
rowHeight: d.value,
|
|
3556
3577
|
colWidths: [...e.value]
|
|
3557
|
-
}, t.value === -1 ? w.value.tiles.push(
|
|
3578
|
+
}, t.value === -1 ? w.value.tiles.push(_.value) : w.value.tiles[t.value] = _.value, N());
|
|
3558
3579
|
}
|
|
3559
|
-
async function
|
|
3580
|
+
async function f() {
|
|
3560
3581
|
var n;
|
|
3561
3582
|
if (!w.value) return;
|
|
3562
|
-
await
|
|
3563
|
-
title:
|
|
3564
|
-
message:
|
|
3583
|
+
await b({
|
|
3584
|
+
title: x("report.tile.cancel.title"),
|
|
3585
|
+
message: x("report.tile.cancel.confirm", { title: (n = _.value) == null ? void 0 : n.widget.title })
|
|
3565
3586
|
}) && N();
|
|
3566
3587
|
}
|
|
3567
3588
|
return We(() => {
|
|
3568
3589
|
w.value || a.push({ name: "reports" });
|
|
3569
3590
|
}), (o, n) => {
|
|
3570
|
-
const
|
|
3571
|
-
return v(), M(
|
|
3591
|
+
const p = $("FmPageHead");
|
|
3592
|
+
return v(), M(Vl, null, {
|
|
3572
3593
|
default: R(() => [
|
|
3573
|
-
r(
|
|
3594
|
+
r(p, {
|
|
3574
3595
|
actions: [
|
|
3575
|
-
{ label: l(
|
|
3576
|
-
{ label: l(
|
|
3596
|
+
{ label: l(x)("report.common.cancel"), value: "cancel", isPrimary: !1 },
|
|
3597
|
+
{ label: l(x)("report.common.save"), value: "save", isPrimary: !0 }
|
|
3577
3598
|
],
|
|
3578
3599
|
"onClick:action": n[0] || (n[0] = (u) => {
|
|
3579
|
-
u === "cancel" &&
|
|
3600
|
+
u === "cancel" && f(), u === "save" && S();
|
|
3580
3601
|
})
|
|
3581
3602
|
}, {
|
|
3582
3603
|
title: R(() => [
|
|
3583
|
-
l(i).lg || l(i).md ? (v(),
|
|
3604
|
+
l(i).lg || l(i).md ? (v(), A("p", zt, P(c.value), 1)) : O("", !0)
|
|
3584
3605
|
]),
|
|
3585
3606
|
_: 1
|
|
3586
3607
|
}, 8, ["actions"]),
|
|
3587
|
-
l(
|
|
3588
|
-
const m = u.tileIds,
|
|
3589
|
-
return Array.isArray(m) && typeof
|
|
3590
|
-
}) ? (v(),
|
|
3608
|
+
l(_) && (l(F) || []).some((u) => {
|
|
3609
|
+
const m = u.tileIds, y = l(_) && l(_).id;
|
|
3610
|
+
return Array.isArray(m) && typeof y == "string" && m.includes(y);
|
|
3611
|
+
}) ? (v(), A("div", At, [
|
|
3591
3612
|
r(Dl)
|
|
3592
3613
|
])) : O("", !0),
|
|
3593
|
-
l(
|
|
3614
|
+
l(_) ? (v(), M(ll(l(i).lg || l(i).md ? Nt : jt), {
|
|
3594
3615
|
key: 1,
|
|
3595
|
-
modelValue: l(
|
|
3596
|
-
"onUpdate:modelValue": n[1] || (n[1] = (u) => fl(
|
|
3616
|
+
modelValue: l(_),
|
|
3617
|
+
"onUpdate:modelValue": n[1] || (n[1] = (u) => fl(_) ? _.value = u : null),
|
|
3597
3618
|
class: Ee(`${l(i).lg || l(i).md ? "flex" : ""} w-full`),
|
|
3598
3619
|
style: Ae({ height: `calc( 100% - ${l(i).lg || l(i).md ? 72 : 64}px)` }),
|
|
3599
|
-
"hide-configuration":
|
|
3620
|
+
"hide-configuration": C.value,
|
|
3600
3621
|
index: Number(l(s).params.tileIndex),
|
|
3601
|
-
onHideConfiguration: n[2] || (n[2] = (u) =>
|
|
3622
|
+
onHideConfiguration: n[2] || (n[2] = (u) => C.value = u)
|
|
3602
3623
|
}, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : O("", !0)
|
|
3603
3624
|
]),
|
|
3604
3625
|
_: 1
|