@feedmepos/mf-report 5.25.3 → 5.25.4
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-CnFZJmzp.js → App-zRHXHcPT.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-RUTqJF5H.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CcMbnaoi.js → Default.vue_vue_type_script_setup_true_lang-By3S17dA.js} +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js +4939 -0
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BY_KN_C1.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js} +2 -2
- package/dist/{InsightView-DKrfAidQ.js → InsightView-BBhWazOR.js} +4 -4
- package/dist/{Integration-BNW5e7Qk.js → Integration-DwrH45Cv.js} +254 -254
- package/dist/{Integrations-DItxcgrC.js → Integrations-B2oXCMtI.js} +2 -2
- package/dist/{Layout-GLIcaoCe.js → Layout-8K-hl0GX.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-pOrfpYWl.js → MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CBAiRY5H.js → NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js} +6 -6
- package/dist/{OverviewView-V-17Kj3C.js → OverviewView-VK-QiYBv.js} +4 -4
- package/dist/{Report-Cawu6GrR.js → Report-DjEakQjd.js} +3 -3
- package/dist/{ReportEditor-ChZgxHxU.js → ReportEditor-DkDpoEA1.js} +3 -3
- package/dist/{ReportView-Dfb_owW8.js → ReportView-D7pPDt9i.js} +6 -6
- package/dist/{Setting-bPYUv_iE.js → Setting-Cj8FNkcg.js} +3 -3
- package/dist/{TileEditor-CZ_n5OKa.js → TileEditor-DiIeHLZ2.js} +1351 -1317
- package/dist/{TransitionFade-DCyLVIwo.js → TransitionFade-D3p2nUld.js} +4 -4
- package/dist/{app-AKUT_6m_.js → app-t7VSpu_w.js} +102 -54
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-251v8GZD.js → useRestaurantPermission-ClMBdaFt.js} +1 -1
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-COXEyuoF.js +0 -4689
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { h as
|
|
4
|
-
import { W as
|
|
1
|
+
import { defineComponent as ie, mergeModels as pe, useModel as fe, computed as T, ref as oe, resolveComponent as $, createElementBlock as H, openBlock as f, createVNode as u, createElementVNode as C, unref as l, withCtx as G, toDisplayString as Q, Fragment as ue, renderList as xe, withModifiers as ye, createTextVNode as Le, watch as he, createCommentVNode as O, createBlock as N, onUnmounted as Nl, renderSlot as dl, onMounted as Ke, onBeforeUnmount as ml, resolveDynamicComponent as cl, normalizeClass as ke, withDirectives as Ce, vShow as we, withKeys as ol, vModelText as jl, normalizeStyle as He, isRef as zl } from "vue";
|
|
2
|
+
import { useRoute as Rl, useRouter as Il } from "vue-router";
|
|
3
|
+
import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-D3p2nUld.js";
|
|
4
|
+
import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js";
|
|
5
5
|
import { storeToRefs as Se } from "pinia";
|
|
6
|
-
import { u as
|
|
7
|
-
import { useSnackbar as
|
|
8
|
-
import { b as
|
|
9
|
-
import { u as
|
|
10
|
-
import { r as
|
|
11
|
-
import { g as
|
|
12
|
-
import { a as
|
|
13
|
-
import { a as
|
|
14
|
-
const
|
|
6
|
+
import { u as fl } from "./message-dialog-UoMWOnil.js";
|
|
7
|
+
import { useSnackbar as Ql, useBreakpoints as gl, FmButtonColorThemeVariant as nl } from "@feedmepos/ui-library";
|
|
8
|
+
import { b as ve, a as yl, _ as bl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
9
|
+
import { u as me } from "./vue-i18n-DVWuTfed.js";
|
|
10
|
+
import { r as de } from "./i18n-CI_sQ5d_.js";
|
|
11
|
+
import { g as _e, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js";
|
|
12
|
+
import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js";
|
|
13
|
+
import { a as oo, d as Oe } from "./app-t7VSpu_w.js";
|
|
14
|
+
const Pe = [
|
|
15
15
|
{
|
|
16
|
-
type:
|
|
16
|
+
type: K.Circular,
|
|
17
17
|
maxDimension: null,
|
|
18
18
|
maxMetric: 1,
|
|
19
19
|
hasBreakdownDimension: !1,
|
|
@@ -30,7 +30,7 @@ const Ie = [
|
|
|
30
30
|
periodType: null
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
type:
|
|
33
|
+
type: K.Table,
|
|
34
34
|
maxDimension: null,
|
|
35
35
|
maxMetric: null,
|
|
36
36
|
hasBreakdownDimension: !1,
|
|
@@ -47,7 +47,7 @@ const Ie = [
|
|
|
47
47
|
periodType: null
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
type:
|
|
50
|
+
type: K.BarChart,
|
|
51
51
|
maxDimension: null,
|
|
52
52
|
maxMetric: 1,
|
|
53
53
|
hasBreakdownDimension: !0,
|
|
@@ -64,7 +64,7 @@ const Ie = [
|
|
|
64
64
|
periodType: null
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
type:
|
|
67
|
+
type: K.LineChart,
|
|
68
68
|
maxDimension: null,
|
|
69
69
|
maxMetric: 1,
|
|
70
70
|
hasBreakdownDimension: !0,
|
|
@@ -81,7 +81,7 @@ const Ie = [
|
|
|
81
81
|
periodType: null
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
type:
|
|
84
|
+
type: K.StackBarChart,
|
|
85
85
|
maxDimension: null,
|
|
86
86
|
maxMetric: 1,
|
|
87
87
|
hasBreakdownDimension: !0,
|
|
@@ -98,7 +98,7 @@ const Ie = [
|
|
|
98
98
|
periodType: null
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
type:
|
|
101
|
+
type: K.ClusteredStackBarChart,
|
|
102
102
|
maxDimension: null,
|
|
103
103
|
maxMetric: 1,
|
|
104
104
|
hasBreakdownDimension: !0,
|
|
@@ -115,7 +115,7 @@ const Ie = [
|
|
|
115
115
|
periodType: null
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
type:
|
|
118
|
+
type: K.StackLineChart,
|
|
119
119
|
maxDimension: null,
|
|
120
120
|
maxMetric: 1,
|
|
121
121
|
hasBreakdownDimension: !0,
|
|
@@ -132,7 +132,7 @@ const Ie = [
|
|
|
132
132
|
periodType: null
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
type:
|
|
135
|
+
type: K.Scorecard,
|
|
136
136
|
maxDimension: null,
|
|
137
137
|
maxMetric: 1,
|
|
138
138
|
hasBreakdownDimension: !1,
|
|
@@ -149,7 +149,7 @@ const Ie = [
|
|
|
149
149
|
periodType: null
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
type:
|
|
152
|
+
type: K.Spacer,
|
|
153
153
|
maxDimension: 0,
|
|
154
154
|
maxMetric: 0,
|
|
155
155
|
hasBreakdownDimension: !1,
|
|
@@ -165,9 +165,9 @@ const Ie = [
|
|
|
165
165
|
canSearch: !1,
|
|
166
166
|
periodType: null
|
|
167
167
|
}
|
|
168
|
-
],
|
|
168
|
+
], to = { class: "flex flex-col my-2 gap-8" }, ao = { class: "fm-typo-en-body-lg-600" }, no = { class: "text-sm text-fm-color-neutral-gray-400" }, io = ["onClick"], so = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, ro = /* @__PURE__ */ ie({
|
|
169
169
|
__name: "SchemaSection",
|
|
170
|
-
props: /* @__PURE__ */
|
|
170
|
+
props: /* @__PURE__ */ pe({
|
|
171
171
|
options: {
|
|
172
172
|
type: Array,
|
|
173
173
|
default: () => []
|
|
@@ -182,41 +182,41 @@ const Ie = [
|
|
|
182
182
|
}),
|
|
183
183
|
emits: ["update:modelValue"],
|
|
184
184
|
setup(D) {
|
|
185
|
-
const { t: m, te: e } =
|
|
186
|
-
() => w.value.map((
|
|
187
|
-
label:
|
|
188
|
-
value:
|
|
189
|
-
raw:
|
|
185
|
+
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, { schemas: w } = Se(pl()), x = T(
|
|
186
|
+
() => w.value.map((h) => ({
|
|
187
|
+
label: h.label,
|
|
188
|
+
value: h.name,
|
|
189
|
+
raw: h
|
|
190
190
|
}))
|
|
191
|
-
), p =
|
|
191
|
+
), p = T(() => {
|
|
192
192
|
if (s.value.schemaNames.length === 0 || o.value === 0)
|
|
193
|
-
return
|
|
193
|
+
return x.value.filter((h) => !h.raw.isJoinOnly);
|
|
194
194
|
{
|
|
195
|
-
const
|
|
196
|
-
return
|
|
195
|
+
const h = s.value.schemaNames[0], F = w.value.find((k) => k.name === h), z = ((F == null ? void 0 : F.joins) || []).map((k) => k);
|
|
196
|
+
return x.value.filter((k) => z.includes(k.raw.name));
|
|
197
197
|
}
|
|
198
|
-
}), B = oe(!1), U = oe(""), o = oe(), r =
|
|
199
|
-
function
|
|
200
|
-
var
|
|
201
|
-
return
|
|
198
|
+
}), B = oe(!1), U = oe(""), o = oe(), r = Ql();
|
|
199
|
+
function v(h) {
|
|
200
|
+
var F;
|
|
201
|
+
return de(
|
|
202
202
|
m,
|
|
203
203
|
e,
|
|
204
|
-
(
|
|
204
|
+
(F = w.value.find((z) => z.name === h)) == null ? void 0 : F.label,
|
|
205
205
|
"schema"
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
o.value =
|
|
208
|
+
function b(h) {
|
|
209
|
+
o.value = h, B.value = !0, h !== void 0 ? U.value = s.value.schemaNames[h] : U.value = "";
|
|
210
210
|
}
|
|
211
211
|
function L() {
|
|
212
212
|
U.value !== "" ? (o.value !== void 0 ? s.value.schemaNames[o.value] = U.value : s.value.schemaNames.push(U.value), B.value = !1) : r.open({ message: m("report.section.schema.nothingSelected"), type: "error" });
|
|
213
213
|
}
|
|
214
|
-
return (
|
|
215
|
-
const z = $("FmForm"),
|
|
216
|
-
return
|
|
217
|
-
u(
|
|
214
|
+
return (h, F) => {
|
|
215
|
+
const z = $("FmForm"), k = $("FmIcon"), d = $("FmField");
|
|
216
|
+
return f(), H("div", to, [
|
|
217
|
+
u(Ae, {
|
|
218
218
|
modelValue: B.value,
|
|
219
|
-
"onUpdate:modelValue":
|
|
219
|
+
"onUpdate:modelValue": F[1] || (F[1] = (a) => B.value = a),
|
|
220
220
|
title: t.label,
|
|
221
221
|
"primary-button-label": l(m)("report.common.confirm"),
|
|
222
222
|
"secondary-button-label": l(m)("report.common.cancel"),
|
|
@@ -225,15 +225,15 @@ const Ie = [
|
|
|
225
225
|
content: G(() => [
|
|
226
226
|
u(z, { ref: "form" }, {
|
|
227
227
|
default: G(() => [
|
|
228
|
-
u(
|
|
228
|
+
u(ve, {
|
|
229
229
|
modelValue: U.value,
|
|
230
|
-
"onUpdate:modelValue":
|
|
230
|
+
"onUpdate:modelValue": F[0] || (F[0] = (a) => U.value = a),
|
|
231
231
|
label: l(m)("report.section.schema.title"),
|
|
232
|
-
items: o.value === 0 ?
|
|
233
|
-
label: l(
|
|
232
|
+
items: o.value === 0 ? x.value.map((a) => ({
|
|
233
|
+
label: l(de)(l(m), l(e), a.label, "schema"),
|
|
234
234
|
value: a.value
|
|
235
235
|
})) : p.value.map((a) => ({
|
|
236
|
-
label: l(
|
|
236
|
+
label: l(de)(l(m), l(e), a.label, "schema"),
|
|
237
237
|
value: a.value
|
|
238
238
|
}))
|
|
239
239
|
}, null, 8, ["modelValue", "label", "items"])
|
|
@@ -243,51 +243,51 @@ const Ie = [
|
|
|
243
243
|
]),
|
|
244
244
|
_: 1
|
|
245
245
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
C("div", null, [
|
|
247
|
+
C("p", ao, Q(l(m)("report.section.schema.title")), 1),
|
|
248
|
+
C("p", no, Q(l(m)("report.section.schema.description")), 1)
|
|
249
249
|
]),
|
|
250
|
-
(
|
|
250
|
+
(f(!0), H(ue, null, xe(s.value.schemaNames, (a, g) => (f(), H("div", {
|
|
251
251
|
key: g,
|
|
252
252
|
class: "flex flex-col gap-2 w-full"
|
|
253
253
|
}, [
|
|
254
|
-
|
|
254
|
+
C("div", {
|
|
255
255
|
class: "flex items-center gap-2 border rounded-md border-neutral-300 p-2 h-[40px]",
|
|
256
|
-
onClick: (c) =>
|
|
256
|
+
onClick: (c) => b(g)
|
|
257
257
|
}, [
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
u(
|
|
258
|
+
C("p", so, Q(v(a)), 1),
|
|
259
|
+
F[3] || (F[3] = C("div", { class: "grow" }, null, -1)),
|
|
260
|
+
u(k, {
|
|
261
261
|
name: "close",
|
|
262
262
|
onClick: ye(
|
|
263
263
|
() => {
|
|
264
|
-
s.value.schemaNames = l(
|
|
264
|
+
s.value.schemaNames = l(Pl)(s.value.schemaNames, g);
|
|
265
265
|
},
|
|
266
266
|
["stop"]
|
|
267
267
|
)
|
|
268
268
|
}, null, 8, ["onClick"])
|
|
269
|
-
], 8,
|
|
269
|
+
], 8, io)
|
|
270
270
|
]))), 128)),
|
|
271
271
|
u(d, {
|
|
272
272
|
class: "text-fm-color-typo-tertiary",
|
|
273
|
-
onClick:
|
|
274
|
-
|
|
273
|
+
onClick: F[2] || (F[2] = () => {
|
|
274
|
+
b();
|
|
275
275
|
})
|
|
276
276
|
}, {
|
|
277
277
|
default: G(() => [
|
|
278
|
-
|
|
278
|
+
Le(Q(l(m)("report.section.schema.add")), 1)
|
|
279
279
|
]),
|
|
280
280
|
_: 1
|
|
281
281
|
})
|
|
282
282
|
]);
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), uo = {
|
|
286
286
|
key: 0,
|
|
287
287
|
class: "flex flex-col my-2 gap-8"
|
|
288
|
-
},
|
|
288
|
+
}, mo = { class: "fm-typo-en-body-lg-600 text-ellipsis line-clamp-1" }, co = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, po = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, qe = /* @__PURE__ */ ie({
|
|
289
289
|
__name: "DimensionSection",
|
|
290
|
-
props: /* @__PURE__ */
|
|
290
|
+
props: /* @__PURE__ */ pe({
|
|
291
291
|
options: {
|
|
292
292
|
type: Array,
|
|
293
293
|
default: () => []
|
|
@@ -318,33 +318,33 @@ const Ie = [
|
|
|
318
318
|
}),
|
|
319
319
|
emits: ["update:modelValue"],
|
|
320
320
|
setup(D) {
|
|
321
|
-
const { t: m, te: e } =
|
|
322
|
-
() => s.value.map((c,
|
|
323
|
-
index:
|
|
321
|
+
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.dimension.${t.label}`)), x = oe(!1), p = T(
|
|
322
|
+
() => s.value.map((c, S) => ({
|
|
323
|
+
index: S,
|
|
324
324
|
labels: [c.label || c.name],
|
|
325
325
|
value: c
|
|
326
326
|
}))
|
|
327
327
|
), B = oe(s.value.length > 0 ? 0 : void 0);
|
|
328
328
|
function U(c) {
|
|
329
|
-
var
|
|
330
|
-
|
|
329
|
+
var S, i, n, A;
|
|
330
|
+
x.value = !0, o.value = c != null && c.value ? JSON.parse(
|
|
331
331
|
JSON.stringify({
|
|
332
332
|
...c.value,
|
|
333
|
-
label:
|
|
334
|
-
moveToColumn: (((i = t.config) == null ? void 0 : i.columnIds) || []).includes(
|
|
333
|
+
label: de(m, e, (S = c.value) == null ? void 0 : S.label, "other"),
|
|
334
|
+
moveToColumn: (((i = t.config) == null ? void 0 : i.columnIds) || []).includes(_e(c.value))
|
|
335
335
|
})
|
|
336
336
|
) : void 0, B.value = c == null ? void 0 : c.index, r.value = !!((n = o.value) != null && n.dataFormula || (A = o.value) != null && A.displayFormula), o.value && o.value.formatter === void 0 && (t.options.find(
|
|
337
|
-
(
|
|
338
|
-
var
|
|
339
|
-
return
|
|
337
|
+
(E) => {
|
|
338
|
+
var J, te;
|
|
339
|
+
return E.schemaName === ((J = o.value) == null ? void 0 : J.schemaName) && E.name === ((te = o.value) == null ? void 0 : te.name);
|
|
340
340
|
}
|
|
341
341
|
), c != null && c.value.timeFormatter && o.value.formatter === void 0 && (o.value.formatter = c == null ? void 0 : c.value.timeFormatter, o.value.timeFormatter = void 0));
|
|
342
342
|
}
|
|
343
|
-
const o = oe(void 0), r = oe(!1),
|
|
343
|
+
const o = oe(void 0), r = oe(!1), v = T(
|
|
344
344
|
() => t.options.find(
|
|
345
345
|
(c) => {
|
|
346
|
-
var
|
|
347
|
-
return c.schemaName === ((
|
|
346
|
+
var S, i;
|
|
347
|
+
return c.schemaName === ((S = o.value) == null ? void 0 : S.schemaName) && c.name === ((i = o.value) == null ? void 0 : i.name);
|
|
348
348
|
}
|
|
349
349
|
) ?? {}
|
|
350
350
|
);
|
|
@@ -354,171 +354,171 @@ const Ie = [
|
|
|
354
354
|
return (c = o.value) == null ? void 0 : c.option;
|
|
355
355
|
},
|
|
356
356
|
() => {
|
|
357
|
-
!
|
|
357
|
+
!b.value && o.value && (o.value.fillGap = !1);
|
|
358
358
|
}
|
|
359
359
|
);
|
|
360
|
-
const
|
|
360
|
+
const b = T(
|
|
361
361
|
() => {
|
|
362
|
-
var c,
|
|
363
|
-
return (i = (c =
|
|
362
|
+
var c, S, i;
|
|
363
|
+
return (i = (c = v.value) == null ? void 0 : c.fillGapDimensionOptions) == null ? void 0 : i.includes(((S = o.value) == null ? void 0 : S.option) || "");
|
|
364
364
|
}
|
|
365
365
|
);
|
|
366
366
|
function L(c) {
|
|
367
|
-
var
|
|
368
|
-
(c.schemaName !== ((
|
|
367
|
+
var S, i;
|
|
368
|
+
(c.schemaName !== ((S = o.value) == null ? void 0 : S.schemaName) || c.name !== ((i = o.value) == null ? void 0 : i.name)) && (o.value = {
|
|
369
369
|
schemaName: c.schemaName,
|
|
370
370
|
name: c.name,
|
|
371
371
|
option: c.dimensionOptions[0],
|
|
372
|
-
label:
|
|
372
|
+
label: de(m, e, c.label, "other"),
|
|
373
373
|
decimal: c.isNumericType ? 2 : void 0,
|
|
374
374
|
hide: !1
|
|
375
375
|
}, r.value = !1);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function h() {
|
|
378
378
|
if (!o.value) {
|
|
379
379
|
console.error("new field is undefined");
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
|
-
const c = [...p.value.map((
|
|
383
|
-
r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), B.value !== void 0 ? c[B.value] = o.value : c.push(o.value), s.value = c,
|
|
382
|
+
const c = [...p.value.map((S) => S.value)];
|
|
383
|
+
r.value || (o.value.dataFormula = void 0, o.value.displayFormula = void 0), B.value !== void 0 ? c[B.value] = o.value : c.push(o.value), s.value = c, x.value = !1;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function F(c) {
|
|
386
386
|
const i = [...p.value.map((n) => n.value)].filter((n, A) => A !== c);
|
|
387
387
|
s.value = i;
|
|
388
388
|
}
|
|
389
389
|
function z(c) {
|
|
390
390
|
o.value && (o.value.decimal = Number(c));
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
const
|
|
394
|
-
return e(
|
|
392
|
+
function k(c) {
|
|
393
|
+
const S = `report.section.filter.${De(c)}`;
|
|
394
|
+
return e(S) ? m(S) : de(m, e, c, "field");
|
|
395
395
|
}
|
|
396
396
|
function d(c) {
|
|
397
|
-
const
|
|
398
|
-
return e(
|
|
397
|
+
const S = `report.section.metric.formatterType.${c}`;
|
|
398
|
+
return e(S) ? m(S) : c;
|
|
399
399
|
}
|
|
400
400
|
function a(c) {
|
|
401
401
|
return Array.isArray(c) ? c.length > 0 : c;
|
|
402
402
|
}
|
|
403
|
-
const g =
|
|
403
|
+
const g = T(
|
|
404
404
|
() => t.options.map((c) => ({
|
|
405
405
|
label: c.labels.join(" "),
|
|
406
406
|
value: c
|
|
407
407
|
}))
|
|
408
408
|
);
|
|
409
|
-
return (c,
|
|
410
|
-
const i = $("FmTextField"), n = $("FmStepperField"), A = $("FmCheckbox"),
|
|
411
|
-
return D.max !== 0 ? (
|
|
412
|
-
u(
|
|
413
|
-
modelValue:
|
|
414
|
-
"onUpdate:modelValue":
|
|
409
|
+
return (c, S) => {
|
|
410
|
+
const i = $("FmTextField"), n = $("FmStepperField"), A = $("FmCheckbox"), E = $("FmTextarea"), J = $("FmForm"), te = $("FmIcon"), M = $("FmButton"), ge = $("FmListItem"), X = $("FmList"), j = $("FmField");
|
|
411
|
+
return D.max !== 0 ? (f(), H("div", uo, [
|
|
412
|
+
u(Ae, {
|
|
413
|
+
modelValue: x.value,
|
|
414
|
+
"onUpdate:modelValue": S[12] || (S[12] = (Y) => x.value = Y),
|
|
415
415
|
title: w.value,
|
|
416
416
|
"primary-button-label": l(m)("report.common.confirm"),
|
|
417
417
|
"secondary-button-label": l(m)("report.common.cancel"),
|
|
418
|
-
onConfirm:
|
|
418
|
+
onConfirm: h
|
|
419
419
|
}, {
|
|
420
420
|
content: G(() => [
|
|
421
|
-
u(
|
|
421
|
+
u(J, {
|
|
422
422
|
ref: "form",
|
|
423
423
|
class: "flex flex-col gap-2 w-[490px]"
|
|
424
424
|
}, {
|
|
425
425
|
default: G(() => {
|
|
426
|
-
var
|
|
426
|
+
var Y, ee, I, se, Te, be, Me;
|
|
427
427
|
return [
|
|
428
|
-
u(
|
|
429
|
-
"model-value":
|
|
428
|
+
u(ve, {
|
|
429
|
+
"model-value": v.value,
|
|
430
430
|
items: g.value,
|
|
431
431
|
placeholder: w.value,
|
|
432
432
|
label: w.value,
|
|
433
|
-
"onUpdate:modelValue":
|
|
433
|
+
"onUpdate:modelValue": S[0] || (S[0] = (ne) => L(ne))
|
|
434
434
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
435
|
-
o.value ? (
|
|
435
|
+
o.value ? (f(), H(ue, { key: 0 }, [
|
|
436
436
|
u(i, {
|
|
437
437
|
modelValue: o.value.label,
|
|
438
|
-
"onUpdate:modelValue":
|
|
438
|
+
"onUpdate:modelValue": S[1] || (S[1] = (ne) => o.value.label = ne),
|
|
439
439
|
label: l(m)("report.section.dimension.label")
|
|
440
440
|
}, null, 8, ["modelValue", "label"]),
|
|
441
|
-
(((
|
|
441
|
+
(((Y = v.value) == null ? void 0 : Y.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
|
|
442
442
|
key: 0,
|
|
443
443
|
modelValue: o.value.option,
|
|
444
|
-
"onUpdate:modelValue":
|
|
445
|
-
items: ((
|
|
446
|
-
label:
|
|
447
|
-
value:
|
|
444
|
+
"onUpdate:modelValue": S[2] || (S[2] = (ne) => o.value.option = ne),
|
|
445
|
+
items: ((ee = v.value) == null ? void 0 : ee.dimensionOptions.map((ne) => ({
|
|
446
|
+
label: k(ne),
|
|
447
|
+
value: ne
|
|
448
448
|
}))) ?? []
|
|
449
449
|
}, null, 8, ["modelValue", "items"])) : O("", !0),
|
|
450
|
-
(
|
|
450
|
+
(I = v.value) != null && I.isNumericType ? (f(), N(n, {
|
|
451
451
|
key: 1,
|
|
452
452
|
label: l(m)("report.common.decimal"),
|
|
453
|
-
"model-value": ((
|
|
454
|
-
"onUpdate:modelValue":
|
|
455
|
-
z(
|
|
453
|
+
"model-value": ((se = o.value) == null ? void 0 : se.decimal) ?? 2,
|
|
454
|
+
"onUpdate:modelValue": S[3] || (S[3] = (ne) => {
|
|
455
|
+
z(ne);
|
|
456
456
|
})
|
|
457
457
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
458
|
-
(
|
|
458
|
+
(Te = v.value) != null && Te.isNumericType ? (f(), N(ve, {
|
|
459
459
|
key: 2,
|
|
460
460
|
modelValue: o.value.formatter,
|
|
461
|
-
"onUpdate:modelValue":
|
|
461
|
+
"onUpdate:modelValue": S[4] || (S[4] = (ne) => o.value.formatter = ne),
|
|
462
462
|
placeholder: l(m)("report.section.dimension.formatter"),
|
|
463
463
|
label: l(m)("report.section.dimension.formatter"),
|
|
464
464
|
items: [
|
|
465
465
|
{ label: l(m)("report.section.metric.formatterType.NONE"), value: null },
|
|
466
|
-
...(((
|
|
467
|
-
label: d(
|
|
468
|
-
value:
|
|
466
|
+
...(((be = v.value) == null ? void 0 : be.formatters) || []).map((ne) => ({
|
|
467
|
+
label: d(ne),
|
|
468
|
+
value: ne
|
|
469
469
|
}))
|
|
470
470
|
]
|
|
471
471
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : O("", !0),
|
|
472
|
-
|
|
472
|
+
b.value ? (f(), N(A, {
|
|
473
473
|
key: 3,
|
|
474
474
|
"model-value": o.value.fillGap ?? !1,
|
|
475
475
|
label: l(m)("report.section.dimension.fillGap"),
|
|
476
476
|
value: "",
|
|
477
477
|
placeholder: "Fill gap",
|
|
478
|
-
"onUpdate:modelValue":
|
|
479
|
-
o.value && (o.value.fillGap = a(
|
|
478
|
+
"onUpdate:modelValue": S[5] || (S[5] = (ne) => {
|
|
479
|
+
o.value && (o.value.fillGap = a(ne));
|
|
480
480
|
})
|
|
481
481
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
482
|
-
((
|
|
482
|
+
((Me = v.value) == null ? void 0 : Me.type) === l(Yl).Timestamp ? (f(), N(A, {
|
|
483
483
|
key: 4,
|
|
484
484
|
"model-value": o.value.dateComparison ?? !1,
|
|
485
485
|
label: l(m)("report.section.dimension.dateComparison"),
|
|
486
486
|
value: "",
|
|
487
|
-
"onUpdate:modelValue":
|
|
488
|
-
o.value && (o.value.dateComparison = a(
|
|
487
|
+
"onUpdate:modelValue": S[6] || (S[6] = (ne) => {
|
|
488
|
+
o.value && (o.value.dateComparison = a(ne));
|
|
489
489
|
})
|
|
490
490
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
491
491
|
u(A, {
|
|
492
492
|
modelValue: o.value.hide,
|
|
493
|
-
"onUpdate:modelValue":
|
|
493
|
+
"onUpdate:modelValue": S[7] || (S[7] = (ne) => o.value.hide = ne),
|
|
494
494
|
label: l(m)("report.section.dimension.hide"),
|
|
495
495
|
value: ""
|
|
496
496
|
}, null, 8, ["modelValue", "label"]),
|
|
497
|
-
t.hasRowColumn ? (
|
|
497
|
+
t.hasRowColumn ? (f(), N(A, {
|
|
498
498
|
key: 5,
|
|
499
499
|
"model-value": o.value.moveToColumn ?? !1,
|
|
500
500
|
label: l(m)("report.section.dimension.moveToColumn"),
|
|
501
501
|
value: "",
|
|
502
|
-
"onUpdate:modelValue":
|
|
503
|
-
o.value && (o.value.moveToColumn = a(
|
|
502
|
+
"onUpdate:modelValue": S[8] || (S[8] = (ne) => {
|
|
503
|
+
o.value && (o.value.moveToColumn = a(ne));
|
|
504
504
|
})
|
|
505
505
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
506
506
|
u(A, {
|
|
507
507
|
modelValue: r.value,
|
|
508
|
-
"onUpdate:modelValue":
|
|
508
|
+
"onUpdate:modelValue": S[9] || (S[9] = (ne) => r.value = ne),
|
|
509
509
|
label: l(m)("report.section.dimension.advance"),
|
|
510
510
|
value: !0
|
|
511
511
|
}, null, 8, ["modelValue", "label"]),
|
|
512
|
-
r.value ? (
|
|
512
|
+
r.value ? (f(), N(E, {
|
|
513
513
|
key: 6,
|
|
514
514
|
modelValue: o.value.dataFormula,
|
|
515
|
-
"onUpdate:modelValue":
|
|
515
|
+
"onUpdate:modelValue": S[10] || (S[10] = (ne) => o.value.dataFormula = ne),
|
|
516
516
|
placeholder: l(m)("report.section.dimension.dataFormula")
|
|
517
517
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0),
|
|
518
|
-
r.value ? (
|
|
518
|
+
r.value ? (f(), N(E, {
|
|
519
519
|
key: 7,
|
|
520
520
|
modelValue: o.value.displayFormula,
|
|
521
|
-
"onUpdate:modelValue":
|
|
521
|
+
"onUpdate:modelValue": S[11] || (S[11] = (ne) => o.value.displayFormula = ne),
|
|
522
522
|
placeholder: l(m)("report.section.dimension.displayFormula")
|
|
523
523
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0)
|
|
524
524
|
], 64)) : O("", !0)
|
|
@@ -529,31 +529,31 @@ const Ie = [
|
|
|
529
529
|
]),
|
|
530
530
|
_: 1
|
|
531
531
|
}, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
532
|
+
C("div", null, [
|
|
533
|
+
C("p", mo, Q(w.value), 1),
|
|
534
|
+
C("p", co, Q(l(m)("report.section.dimension.description")), 1)
|
|
535
535
|
]),
|
|
536
|
-
u(
|
|
536
|
+
u(X, null, {
|
|
537
537
|
default: G(() => [
|
|
538
|
-
u(l(
|
|
538
|
+
u(l(Ie), {
|
|
539
539
|
list: s.value,
|
|
540
|
-
"item-key": (
|
|
540
|
+
"item-key": (Y) => l(_e)(Y),
|
|
541
541
|
class: "flex flex-col gap-2"
|
|
542
542
|
}, {
|
|
543
|
-
item: G(({ element:
|
|
544
|
-
u(
|
|
543
|
+
item: G(({ element: Y, index: ee }) => [
|
|
544
|
+
u(ge, {
|
|
545
545
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
546
|
-
onClick: ye((
|
|
546
|
+
onClick: ye((I) => U(p.value[ee]), ["stop"])
|
|
547
547
|
}, {
|
|
548
548
|
default: G(() => [
|
|
549
|
-
u(
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
u(te, { name: "drag_handle" }),
|
|
550
|
+
C("p", po, Q(l(de)(l(m), l(e), Y.label, "other")), 1),
|
|
551
|
+
S[14] || (S[14] = C("div", { class: "grow" }, null, -1)),
|
|
552
552
|
u(M, {
|
|
553
553
|
icon: "close",
|
|
554
554
|
size: "md",
|
|
555
555
|
variant: "tertiary",
|
|
556
|
-
onClick: ye((
|
|
556
|
+
onClick: ye((I) => F(ee), ["stop"])
|
|
557
557
|
}, null, 8, ["onClick"])
|
|
558
558
|
]),
|
|
559
559
|
_: 2
|
|
@@ -564,39 +564,39 @@ const Ie = [
|
|
|
564
564
|
]),
|
|
565
565
|
_: 1
|
|
566
566
|
}),
|
|
567
|
-
u(
|
|
567
|
+
u(j, {
|
|
568
568
|
class: "text-fm-color-typo-tertiary",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: S[13] || (S[13] = () => {
|
|
570
570
|
U();
|
|
571
571
|
})
|
|
572
572
|
}, {
|
|
573
573
|
default: G(() => [
|
|
574
|
-
|
|
574
|
+
Le(Q(l(m)("report.section.dimension.add")), 1)
|
|
575
575
|
]),
|
|
576
576
|
_: 1
|
|
577
577
|
})
|
|
578
578
|
])) : O("", !0);
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
}),
|
|
581
|
+
}), Ge = {
|
|
582
582
|
value: "_metric_name"
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function vo(D, m, e) {
|
|
585
585
|
switch (D) {
|
|
586
|
-
case
|
|
587
|
-
case
|
|
588
|
-
case
|
|
589
|
-
case
|
|
590
|
-
case
|
|
591
|
-
case
|
|
586
|
+
case K.BarChart:
|
|
587
|
+
case K.StackBarChart:
|
|
588
|
+
case K.ClusteredStackBarChart:
|
|
589
|
+
case K.LineChart:
|
|
590
|
+
case K.StackLineChart:
|
|
591
|
+
case K.Circular:
|
|
592
592
|
return m.length > 1;
|
|
593
593
|
default:
|
|
594
594
|
return e;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function fo(D) {
|
|
598
598
|
var s;
|
|
599
|
-
const { rowIds: m, columnIds: e } =
|
|
599
|
+
const { rowIds: m, columnIds: e } = Re(D.widget.config);
|
|
600
600
|
return {
|
|
601
601
|
...D,
|
|
602
602
|
widget: {
|
|
@@ -605,39 +605,39 @@ function uo(D) {
|
|
|
605
605
|
...D.widget.config,
|
|
606
606
|
rowIds: m,
|
|
607
607
|
columnIds: e,
|
|
608
|
-
isDrillable:
|
|
608
|
+
isDrillable: vo(
|
|
609
609
|
D.widget.type,
|
|
610
610
|
D.widget.config.dimensions,
|
|
611
611
|
D.widget.config.isDrillable
|
|
612
612
|
),
|
|
613
613
|
joinDatasources: (s = D.widget.config.joinDatasources) == null ? void 0 : s.map((t) => {
|
|
614
|
-
const { rowIds: w, columnIds:
|
|
614
|
+
const { rowIds: w, columnIds: x } = Re(t);
|
|
615
615
|
return {
|
|
616
616
|
...t,
|
|
617
617
|
rowIds: w,
|
|
618
|
-
columnIds:
|
|
618
|
+
columnIds: x
|
|
619
619
|
};
|
|
620
620
|
})
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
};
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
const m = D.dimensions.filter((
|
|
627
|
-
s && D.metrics.find((
|
|
625
|
+
function Re(D) {
|
|
626
|
+
const m = D.dimensions.filter((x) => x.hide !== !0 && !x.moveToColumn).map((x) => _e(x)), e = D.dimensions.filter((x) => x.hide !== !0 && x.moveToColumn == !0).map((x) => _e(x)), s = D.metrics.length > 0;
|
|
627
|
+
s && D.metrics.find((x) => x.moveToRow == !0) ? m.push(Ge.value) : s && e.push(Ge.value);
|
|
628
628
|
const t = [], w = [];
|
|
629
|
-
for (const
|
|
630
|
-
t.push(
|
|
631
|
-
for (const
|
|
632
|
-
w.push(
|
|
629
|
+
for (const x of m)
|
|
630
|
+
t.push(x);
|
|
631
|
+
for (const x of e)
|
|
632
|
+
w.push(x);
|
|
633
633
|
return {
|
|
634
634
|
rowIds: t,
|
|
635
635
|
columnIds: w
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
const
|
|
638
|
+
const go = { class: "flex flex-col my-2 gap-8" }, yo = { class: "fm-typo-en-body-lg-600" }, bo = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, ho = { class: "fm-typo-en-body-lg-400 overflow-hidden text-ellipsis line-clamp-1" }, Co = /* @__PURE__ */ ie({
|
|
639
639
|
__name: "MetricSection",
|
|
640
|
-
props: /* @__PURE__ */
|
|
640
|
+
props: /* @__PURE__ */ pe({
|
|
641
641
|
options: {
|
|
642
642
|
type: Array,
|
|
643
643
|
default: () => []
|
|
@@ -667,11 +667,11 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
667
667
|
modelValue: { required: !1, default: [] },
|
|
668
668
|
modelModifiers: {}
|
|
669
669
|
}),
|
|
670
|
-
emits: /* @__PURE__ */
|
|
670
|
+
emits: /* @__PURE__ */ pe(["config"], ["update:modelValue"]),
|
|
671
671
|
setup(D, { emit: m }) {
|
|
672
|
-
const { t: e, te: s } =
|
|
673
|
-
|
|
674
|
-
const
|
|
672
|
+
const { t: e, te: s } = me(), t = fe(D, "modelValue"), w = D;
|
|
673
|
+
T(() => !!w.max && t.value.length === w.max);
|
|
674
|
+
const x = T(() => e(`report.section.metric.${w.label}`)), p = oe(!1), B = T(
|
|
675
675
|
() => t.value.map((a, g) => ({
|
|
676
676
|
index: g,
|
|
677
677
|
labels: [a.label || a.name],
|
|
@@ -679,20 +679,20 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
679
679
|
}))
|
|
680
680
|
), U = oe(t.value.length > 0 ? 0 : void 0);
|
|
681
681
|
function o(a) {
|
|
682
|
-
var g, c,
|
|
682
|
+
var g, c, S;
|
|
683
683
|
p.value = !0, r.value = a != null && a.value ? JSON.parse(
|
|
684
684
|
JSON.stringify({
|
|
685
685
|
...a.value,
|
|
686
|
-
label:
|
|
686
|
+
label: de(e, s, a.value.label, "other")
|
|
687
687
|
})
|
|
688
|
-
) : void 0, U.value = a == null ? void 0 : a.index,
|
|
688
|
+
) : void 0, U.value = a == null ? void 0 : a.index, v.value = !!((g = r.value) != null && g.dataFormula || (c = r.value) != null && c.displayFormula), r.value && r.value.formatter === void 0 && (w.options.find(
|
|
689
689
|
(i) => {
|
|
690
690
|
var n, A;
|
|
691
691
|
return i.schemaName === ((n = r.value) == null ? void 0 : n.schemaName) && i.name === ((A = r.value) == null ? void 0 : A.name);
|
|
692
692
|
}
|
|
693
|
-
), a != null && a.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = a == null ? void 0 : a.value.timeFormatter, r.value.timeFormatter = void 0)), ((
|
|
693
|
+
), a != null && a.value.timeFormatter && r.value.formatter === void 0 && (r.value.formatter = a == null ? void 0 : a.value.timeFormatter, r.value.timeFormatter = void 0)), ((S = w.config.rowIds) == null ? void 0 : S.findIndex((i) => i === Ge.value)) !== -1 && r.value && (r.value.moveToRow = !0), r.value && (!w.hasXy || r.value.nullable === void 0) && (r.value.nullable = !1);
|
|
694
694
|
}
|
|
695
|
-
const r = oe(void 0),
|
|
695
|
+
const r = oe(void 0), v = oe(!1), b = T(
|
|
696
696
|
() => w.options.find(
|
|
697
697
|
(a) => {
|
|
698
698
|
var g, c;
|
|
@@ -704,49 +704,49 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
704
704
|
var c;
|
|
705
705
|
return (a == null ? void 0 : a.isNumericType) || ((c = a == null ? void 0 : a.isNumericAggregations) == null ? void 0 : c.includes(g || ""));
|
|
706
706
|
}
|
|
707
|
-
const
|
|
707
|
+
const h = T(
|
|
708
708
|
() => {
|
|
709
709
|
var a;
|
|
710
|
-
return L(
|
|
710
|
+
return L(b.value, (a = r.value) == null ? void 0 : a.aggregation);
|
|
711
711
|
}
|
|
712
712
|
);
|
|
713
|
-
he(
|
|
713
|
+
he(h, (a) => {
|
|
714
714
|
r.value && (a ? r.value.decimal = typeof r.value.decimal != "number" ? 2 : r.value.decimal : r.value.decimal = void 0);
|
|
715
715
|
});
|
|
716
|
-
function
|
|
716
|
+
function F(a) {
|
|
717
717
|
var g, c;
|
|
718
718
|
(a.schemaName !== ((g = r.value) == null ? void 0 : g.schemaName) || a.name !== ((c = r.value) == null ? void 0 : c.name)) && (r.value = {
|
|
719
719
|
schemaName: a.schemaName,
|
|
720
720
|
name: a.name,
|
|
721
721
|
aggregation: a.aggregations[0],
|
|
722
|
-
label:
|
|
722
|
+
label: de(e, s, a.label, "other"),
|
|
723
723
|
nullable: !1,
|
|
724
724
|
decimal: L(a, a.aggregations[0]) ? 2 : void 0,
|
|
725
725
|
moveToRow: !1,
|
|
726
726
|
hide: !1
|
|
727
|
-
},
|
|
727
|
+
}, v.value = !1);
|
|
728
728
|
}
|
|
729
729
|
function z() {
|
|
730
730
|
const a = [...B.value.map((g) => g.value)];
|
|
731
|
-
r.value && (
|
|
731
|
+
r.value && (v.value || (r.value.dataFormula = void 0, r.value.displayFormula = void 0), w.hasXy || (r.value.nullable = !1), U.value !== void 0 ? a[U.value] = r.value : a.push(r.value)), t.value = a, p.value = !1;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function k(a) {
|
|
734
734
|
const g = [...B.value.map((c) => c.value)];
|
|
735
735
|
g.splice(a, 1), t.value = g;
|
|
736
736
|
}
|
|
737
|
-
const d =
|
|
737
|
+
const d = T(
|
|
738
738
|
() => w.options.map((a) => ({
|
|
739
739
|
label: a.labels.join(" "),
|
|
740
740
|
value: a
|
|
741
741
|
}))
|
|
742
742
|
);
|
|
743
743
|
return (a, g) => {
|
|
744
|
-
const c = $("FmTextField"),
|
|
745
|
-
return
|
|
746
|
-
u(
|
|
744
|
+
const c = $("FmTextField"), S = $("FmStepperField"), i = $("FmCheckbox"), n = $("FmTextarea"), A = $("FmForm"), E = $("FmIcon"), J = $("FmButton"), te = $("FmListItem"), M = $("FmList"), ge = $("FmField");
|
|
745
|
+
return f(), H("div", go, [
|
|
746
|
+
u(Ae, {
|
|
747
747
|
modelValue: p.value,
|
|
748
|
-
"onUpdate:modelValue": g[11] || (g[11] = (
|
|
749
|
-
title:
|
|
748
|
+
"onUpdate:modelValue": g[11] || (g[11] = (X) => p.value = X),
|
|
749
|
+
title: x.value,
|
|
750
750
|
onConfirm: z
|
|
751
751
|
}, {
|
|
752
752
|
content: G(() => [
|
|
@@ -755,91 +755,91 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
755
755
|
class: "flex flex-col gap-2 w-[490px]"
|
|
756
756
|
}, {
|
|
757
757
|
default: G(() => {
|
|
758
|
-
var
|
|
758
|
+
var X, j, Y, ee;
|
|
759
759
|
return [
|
|
760
|
-
u(
|
|
761
|
-
"model-value":
|
|
760
|
+
u(ve, {
|
|
761
|
+
"model-value": b.value,
|
|
762
762
|
items: d.value,
|
|
763
|
-
placeholder:
|
|
764
|
-
label:
|
|
765
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
763
|
+
placeholder: x.value,
|
|
764
|
+
label: x.value,
|
|
765
|
+
"onUpdate:modelValue": g[0] || (g[0] = (I) => F(I))
|
|
766
766
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
767
|
-
r.value ? (
|
|
767
|
+
r.value ? (f(), H(ue, { key: 0 }, [
|
|
768
768
|
u(c, {
|
|
769
769
|
modelValue: r.value.label,
|
|
770
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
770
|
+
"onUpdate:modelValue": g[1] || (g[1] = (I) => r.value.label = I),
|
|
771
771
|
label: l(e)("report.section.metric.label")
|
|
772
772
|
}, null, 8, ["modelValue", "label"]),
|
|
773
|
-
(((
|
|
773
|
+
(((X = b.value) == null ? void 0 : X.aggregations) || []).length > 0 ? (f(), N(ve, {
|
|
774
774
|
key: 0,
|
|
775
775
|
modelValue: r.value.aggregation,
|
|
776
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
776
|
+
"onUpdate:modelValue": g[2] || (g[2] = (I) => r.value.aggregation = I),
|
|
777
777
|
label: l(e)("report.section.metric.aggregation"),
|
|
778
|
-
items: ((
|
|
779
|
-
label: l(s)(`report.section.metric.aggregationType.${
|
|
780
|
-
value:
|
|
778
|
+
items: ((j = b.value) == null ? void 0 : j.aggregations.map((I) => ({
|
|
779
|
+
label: l(s)(`report.section.metric.aggregationType.${I}`) ? l(e)(`report.section.metric.aggregationType.${I}`) : l(de)(l(e), l(s), I, "field"),
|
|
780
|
+
value: I
|
|
781
781
|
}))) ?? []
|
|
782
782
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
783
|
-
|
|
783
|
+
h.value ? (f(), N(S, {
|
|
784
784
|
key: 1,
|
|
785
785
|
label: l(e)("report.common.decimal"),
|
|
786
|
-
"model-value": ((
|
|
787
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
788
|
-
r.value && (r.value.decimal =
|
|
786
|
+
"model-value": ((Y = r.value) == null ? void 0 : Y.decimal) ?? 2,
|
|
787
|
+
"onUpdate:modelValue": g[3] || (g[3] = (I) => {
|
|
788
|
+
r.value && (r.value.decimal = I);
|
|
789
789
|
})
|
|
790
790
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
791
|
-
|
|
791
|
+
h.value ? (f(), N(ve, {
|
|
792
792
|
key: 2,
|
|
793
793
|
modelValue: r.value.formatter,
|
|
794
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
794
|
+
"onUpdate:modelValue": g[4] || (g[4] = (I) => r.value.formatter = I),
|
|
795
795
|
placeholder: l(e)("report.section.metric.formatter"),
|
|
796
796
|
label: l(e)("report.section.metric.formatter"),
|
|
797
797
|
items: [
|
|
798
798
|
{ label: l(e)("report.section.metric.formatterType.NONE"), value: null },
|
|
799
|
-
...(((
|
|
800
|
-
label: l(s)(`report.section.metric.formatterType.${
|
|
801
|
-
value:
|
|
799
|
+
...(((ee = b.value) == null ? void 0 : ee.formatters) || []).map((I) => ({
|
|
800
|
+
label: l(s)(`report.section.metric.formatterType.${I}`) ? l(e)(`report.section.metric.formatterType.${I}`) : l(de)(l(e), l(s), I, "field"),
|
|
801
|
+
value: I
|
|
802
802
|
}))
|
|
803
803
|
]
|
|
804
804
|
}, null, 8, ["modelValue", "placeholder", "label", "items"])) : O("", !0),
|
|
805
805
|
u(i, {
|
|
806
806
|
modelValue: r.value.hide,
|
|
807
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
807
|
+
"onUpdate:modelValue": g[5] || (g[5] = (I) => r.value.hide = I),
|
|
808
808
|
label: l(e)("report.section.metric.hide"),
|
|
809
809
|
value: ""
|
|
810
810
|
}, null, 8, ["modelValue", "label"]),
|
|
811
|
-
w.hasXy ? (
|
|
811
|
+
w.hasXy ? (f(), N(i, {
|
|
812
812
|
key: 3,
|
|
813
813
|
"model-value": r.value.nullable ?? !1,
|
|
814
814
|
label: l(e)("report.section.metric.nullable"),
|
|
815
815
|
value: !0,
|
|
816
|
-
"onUpdate:modelValue": g[6] || (g[6] = (
|
|
817
|
-
r.value && (r.value.nullable =
|
|
816
|
+
"onUpdate:modelValue": g[6] || (g[6] = (I) => {
|
|
817
|
+
r.value && (r.value.nullable = I);
|
|
818
818
|
})
|
|
819
819
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
820
|
-
w.hasRowColumn ? (
|
|
820
|
+
w.hasRowColumn ? (f(), N(i, {
|
|
821
821
|
key: 4,
|
|
822
822
|
modelValue: r.value.moveToRow,
|
|
823
|
-
"onUpdate:modelValue": g[7] || (g[7] = (
|
|
823
|
+
"onUpdate:modelValue": g[7] || (g[7] = (I) => r.value.moveToRow = I),
|
|
824
824
|
label: l(e)("report.section.metric.moveToRow"),
|
|
825
825
|
value: ""
|
|
826
826
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
827
827
|
u(i, {
|
|
828
|
-
modelValue:
|
|
829
|
-
"onUpdate:modelValue": g[8] || (g[8] = (
|
|
828
|
+
modelValue: v.value,
|
|
829
|
+
"onUpdate:modelValue": g[8] || (g[8] = (I) => v.value = I),
|
|
830
830
|
label: l(e)("report.section.metric.advance"),
|
|
831
831
|
value: !0
|
|
832
832
|
}, null, 8, ["modelValue", "label"]),
|
|
833
|
-
|
|
833
|
+
v.value ? (f(), N(n, {
|
|
834
834
|
key: 5,
|
|
835
835
|
modelValue: r.value.dataFormula,
|
|
836
|
-
"onUpdate:modelValue": g[9] || (g[9] = (
|
|
836
|
+
"onUpdate:modelValue": g[9] || (g[9] = (I) => r.value.dataFormula = I),
|
|
837
837
|
placeholder: l(e)("report.section.metric.dataFormula")
|
|
838
838
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0),
|
|
839
|
-
|
|
839
|
+
v.value ? (f(), N(n, {
|
|
840
840
|
key: 6,
|
|
841
841
|
modelValue: r.value.displayFormula,
|
|
842
|
-
"onUpdate:modelValue": g[10] || (g[10] = (
|
|
842
|
+
"onUpdate:modelValue": g[10] || (g[10] = (I) => r.value.displayFormula = I),
|
|
843
843
|
placeholder: l(e)("report.section.metric.displayFormula")
|
|
844
844
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0)
|
|
845
845
|
], 64)) : O("", !0)
|
|
@@ -850,31 +850,31 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
850
850
|
]),
|
|
851
851
|
_: 1
|
|
852
852
|
}, 8, ["modelValue", "title"]),
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
853
|
+
C("div", null, [
|
|
854
|
+
C("p", yo, Q(x.value), 1),
|
|
855
|
+
C("p", bo, Q(l(e)("report.section.metric.description")), 1)
|
|
856
856
|
]),
|
|
857
857
|
u(M, null, {
|
|
858
858
|
default: G(() => [
|
|
859
|
-
u(l(
|
|
859
|
+
u(l(Ie), {
|
|
860
860
|
list: t.value,
|
|
861
861
|
"item-key": "id",
|
|
862
862
|
class: "flex flex-col gap-2 w-full"
|
|
863
863
|
}, {
|
|
864
|
-
item: G(({ element:
|
|
865
|
-
u(
|
|
864
|
+
item: G(({ element: X, index: j }) => [
|
|
865
|
+
u(te, {
|
|
866
866
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
867
|
-
onClick: ye((
|
|
867
|
+
onClick: ye((Y) => o(B.value[j]), ["stop"])
|
|
868
868
|
}, {
|
|
869
869
|
default: G(() => [
|
|
870
|
-
u(
|
|
871
|
-
|
|
872
|
-
g[13] || (g[13] =
|
|
873
|
-
u(
|
|
870
|
+
u(E, { name: "drag_handle" }),
|
|
871
|
+
C("p", ho, Q(l(de)(l(e), l(s), X.label, "other")), 1),
|
|
872
|
+
g[13] || (g[13] = C("div", { class: "grow" }, null, -1)),
|
|
873
|
+
u(J, {
|
|
874
874
|
icon: "close",
|
|
875
875
|
size: "md",
|
|
876
876
|
variant: "tertiary",
|
|
877
|
-
onClick: ye((
|
|
877
|
+
onClick: ye((Y) => k(j), ["stop"])
|
|
878
878
|
}, null, 8, ["onClick"])
|
|
879
879
|
]),
|
|
880
880
|
_: 2
|
|
@@ -885,23 +885,23 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
885
885
|
]),
|
|
886
886
|
_: 1
|
|
887
887
|
}),
|
|
888
|
-
u(
|
|
888
|
+
u(ge, {
|
|
889
889
|
class: "text-fm-color-typo-tertiary",
|
|
890
890
|
onClick: g[12] || (g[12] = () => {
|
|
891
891
|
o();
|
|
892
892
|
})
|
|
893
893
|
}, {
|
|
894
894
|
default: G(() => [
|
|
895
|
-
|
|
895
|
+
Le(Q(l(e)("report.section.metric.add")), 1)
|
|
896
896
|
]),
|
|
897
897
|
_: 1
|
|
898
898
|
})
|
|
899
899
|
]);
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
}),
|
|
902
|
+
}), wo = { class: "flex flex-col my-2 gap-8" }, xo = { class: "fm-typo-en-body-lg-600" }, Vo = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Fo = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, ko = /* @__PURE__ */ ie({
|
|
903
903
|
__name: "SortSection",
|
|
904
|
-
props: /* @__PURE__ */
|
|
904
|
+
props: /* @__PURE__ */ pe({
|
|
905
905
|
options: {
|
|
906
906
|
type: Array,
|
|
907
907
|
default: () => []
|
|
@@ -916,38 +916,38 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
916
916
|
}),
|
|
917
917
|
emits: ["update:modelValue"],
|
|
918
918
|
setup(D) {
|
|
919
|
-
const { t: m, te: e } =
|
|
920
|
-
() => s.value.map((
|
|
919
|
+
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.sort.${t.label}`)), x = oe(!1), p = T(
|
|
920
|
+
() => s.value.map((k, d) => {
|
|
921
921
|
const a = t.options.find(
|
|
922
|
-
(c) => c.schemaName ===
|
|
923
|
-
), g = (a == null ? void 0 : a.labels) || [
|
|
922
|
+
(c) => c.schemaName === k.schemaName && c.name === k.name
|
|
923
|
+
), g = (a == null ? void 0 : a.labels) || [k.schemaName, k.name];
|
|
924
924
|
return {
|
|
925
925
|
index: d,
|
|
926
|
-
label: g.map((c) =>
|
|
927
|
-
value:
|
|
926
|
+
label: g.map((c) => de(m, e, c, "other")).join(" "),
|
|
927
|
+
value: k
|
|
928
928
|
};
|
|
929
929
|
})
|
|
930
930
|
), B = oe(s.value.length > 0 ? 0 : void 0);
|
|
931
|
-
function U(
|
|
931
|
+
function U(k) {
|
|
932
932
|
var d;
|
|
933
|
-
|
|
933
|
+
x.value = !0, o.value = k != null && k.value ? JSON.parse(JSON.stringify(k.value)) : void 0, B.value = k == null ? void 0 : k.index, r.value = !!((d = o.value) != null && d.dataFormula);
|
|
934
934
|
}
|
|
935
|
-
const o = oe(void 0), r = oe(!1),
|
|
935
|
+
const o = oe(void 0), r = oe(!1), v = T(
|
|
936
936
|
() => t.options.find(
|
|
937
|
-
(
|
|
937
|
+
(k) => {
|
|
938
938
|
var d, a;
|
|
939
|
-
return
|
|
939
|
+
return k.schemaName === ((d = o.value) == null ? void 0 : d.schemaName) && k.name === ((a = o.value) == null ? void 0 : a.name);
|
|
940
940
|
}
|
|
941
941
|
) ?? {}
|
|
942
942
|
);
|
|
943
|
-
function
|
|
943
|
+
function b(k) {
|
|
944
944
|
var d, a;
|
|
945
|
-
(
|
|
946
|
-
schemaName:
|
|
947
|
-
name:
|
|
948
|
-
dimensionOption:
|
|
945
|
+
(k.schemaName !== ((d = o.value) == null ? void 0 : d.schemaName) || k.name !== ((a = o.value) == null ? void 0 : a.name)) && (o.value = {
|
|
946
|
+
schemaName: k.schemaName,
|
|
947
|
+
name: k.name,
|
|
948
|
+
dimensionOption: k.dimensionOptions[0],
|
|
949
949
|
aggregation: null,
|
|
950
|
-
type:
|
|
950
|
+
type: tl.Asc
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
function L() {
|
|
@@ -955,29 +955,29 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
955
955
|
console.log("new sort is undefined");
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
const
|
|
959
|
-
r.value || (o.value.dataFormula = void 0), B.value !== void 0 ?
|
|
958
|
+
const k = [...p.value.map((d) => d.value)];
|
|
959
|
+
r.value || (o.value.dataFormula = void 0), B.value !== void 0 ? k[B.value] = o.value : k.push(o.value), s.value = k, x.value = !1;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function h(k) {
|
|
962
962
|
const d = [...p.value.map((a) => a.value)];
|
|
963
|
-
d.splice(
|
|
963
|
+
d.splice(k, 1), s.value = d, x.value = !1;
|
|
964
964
|
}
|
|
965
|
-
function k
|
|
966
|
-
const d = `report.section.filter.${
|
|
967
|
-
return e(d) ? m(d) :
|
|
965
|
+
function F(k) {
|
|
966
|
+
const d = `report.section.filter.${De(k)}`;
|
|
967
|
+
return e(d) ? m(d) : de(m, e, k, "field");
|
|
968
968
|
}
|
|
969
|
-
const z =
|
|
970
|
-
() => t.options.map((
|
|
971
|
-
label:
|
|
972
|
-
value:
|
|
969
|
+
const z = T(
|
|
970
|
+
() => t.options.map((k) => ({
|
|
971
|
+
label: k.labels.join(" "),
|
|
972
|
+
value: k
|
|
973
973
|
}))
|
|
974
974
|
);
|
|
975
|
-
return (
|
|
976
|
-
const a = $("FmCheckbox"), g = $("FmTextarea"), c = $("FmForm"),
|
|
977
|
-
return
|
|
978
|
-
u(
|
|
979
|
-
modelValue:
|
|
980
|
-
"onUpdate:modelValue": d[6] || (d[6] = (
|
|
975
|
+
return (k, d) => {
|
|
976
|
+
const a = $("FmCheckbox"), g = $("FmTextarea"), c = $("FmForm"), S = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), A = $("FmList"), E = $("FmField");
|
|
977
|
+
return f(), H("div", wo, [
|
|
978
|
+
u(Ae, {
|
|
979
|
+
modelValue: x.value,
|
|
980
|
+
"onUpdate:modelValue": d[6] || (d[6] = (J) => x.value = J),
|
|
981
981
|
title: w.value,
|
|
982
982
|
onConfirm: L
|
|
983
983
|
}, {
|
|
@@ -987,58 +987,58 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
987
987
|
class: "flex flex-col gap-2 w-[490px]"
|
|
988
988
|
}, {
|
|
989
989
|
default: G(() => {
|
|
990
|
-
var
|
|
990
|
+
var J, te, M, ge;
|
|
991
991
|
return [
|
|
992
|
-
u(
|
|
993
|
-
"model-value":
|
|
992
|
+
u(ve, {
|
|
993
|
+
"model-value": v.value,
|
|
994
994
|
items: z.value,
|
|
995
995
|
placeholder: w.value,
|
|
996
996
|
label: w.value,
|
|
997
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
997
|
+
"onUpdate:modelValue": d[0] || (d[0] = (X) => b(X))
|
|
998
998
|
}, null, 8, ["model-value", "items", "placeholder", "label"]),
|
|
999
|
-
o.value ? (
|
|
1000
|
-
(((
|
|
999
|
+
o.value ? (f(), H(ue, { key: 0 }, [
|
|
1000
|
+
(((J = v.value) == null ? void 0 : J.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
|
|
1001
1001
|
key: 0,
|
|
1002
1002
|
modelValue: o.value.dimensionOption,
|
|
1003
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
1004
|
-
items: ((
|
|
1005
|
-
label:
|
|
1006
|
-
value:
|
|
1003
|
+
"onUpdate:modelValue": d[1] || (d[1] = (X) => o.value.dimensionOption = X),
|
|
1004
|
+
items: ((te = v.value) == null ? void 0 : te.dimensionOptions.map((X) => ({
|
|
1005
|
+
label: F(X),
|
|
1006
|
+
value: X
|
|
1007
1007
|
}))) ?? [],
|
|
1008
1008
|
placeholder: l(m)("report.section.sort.format"),
|
|
1009
1009
|
label: l(m)("report.section.sort.format")
|
|
1010
1010
|
}, null, 8, ["modelValue", "items", "placeholder", "label"])) : O("", !0),
|
|
1011
|
-
(((M =
|
|
1011
|
+
(((M = v.value) == null ? void 0 : M.aggregations) || []).length > 0 ? (f(), N(ve, {
|
|
1012
1012
|
key: 1,
|
|
1013
1013
|
modelValue: o.value.aggregation,
|
|
1014
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
1015
|
-
items: ((
|
|
1016
|
-
label: l(e)(`report.section.metric.aggregationType.${
|
|
1017
|
-
value:
|
|
1014
|
+
"onUpdate:modelValue": d[2] || (d[2] = (X) => o.value.aggregation = X),
|
|
1015
|
+
items: ((ge = v.value) == null ? void 0 : ge.aggregations.map((X) => ({
|
|
1016
|
+
label: l(e)(`report.section.metric.aggregationType.${X}`) ? l(m)(`report.section.metric.aggregationType.${X}`) : X,
|
|
1017
|
+
value: X
|
|
1018
1018
|
}))) ?? [],
|
|
1019
1019
|
label: l(m)("report.section.sort.aggregation"),
|
|
1020
1020
|
placeholder: l(m)("report.section.sort.aggregation")
|
|
1021
1021
|
}, null, 8, ["modelValue", "items", "label", "placeholder"])) : O("", !0),
|
|
1022
|
-
u(
|
|
1022
|
+
u(ve, {
|
|
1023
1023
|
modelValue: o.value.type,
|
|
1024
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
1025
|
-
items: Object.values(l(
|
|
1026
|
-
label: l(e)(`report.section.sort.sortType.${
|
|
1027
|
-
value:
|
|
1024
|
+
"onUpdate:modelValue": d[3] || (d[3] = (X) => o.value.type = X),
|
|
1025
|
+
items: Object.values(l(tl)).map((X) => ({
|
|
1026
|
+
label: l(e)(`report.section.sort.sortType.${X}`) ? l(m)(`report.section.sort.sortType.${X}`) : X,
|
|
1027
|
+
value: X
|
|
1028
1028
|
})),
|
|
1029
1029
|
placeholder: l(m)("report.section.sort.order"),
|
|
1030
1030
|
label: l(m)("report.section.sort.order")
|
|
1031
1031
|
}, null, 8, ["modelValue", "items", "placeholder", "label"]),
|
|
1032
1032
|
u(a, {
|
|
1033
1033
|
modelValue: r.value,
|
|
1034
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
1034
|
+
"onUpdate:modelValue": d[4] || (d[4] = (X) => r.value = X),
|
|
1035
1035
|
label: l(m)("report.section.sort.advance"),
|
|
1036
1036
|
value: !0
|
|
1037
1037
|
}, null, 8, ["modelValue", "label"]),
|
|
1038
|
-
r.value ? (
|
|
1038
|
+
r.value ? (f(), N(g, {
|
|
1039
1039
|
key: 2,
|
|
1040
1040
|
modelValue: o.value.dataFormula,
|
|
1041
|
-
"onUpdate:modelValue": d[5] || (d[5] = (
|
|
1041
|
+
"onUpdate:modelValue": d[5] || (d[5] = (X) => o.value.dataFormula = X),
|
|
1042
1042
|
placeholder: l(m)("report.section.sort.dataFormula")
|
|
1043
1043
|
}, null, 8, ["modelValue", "placeholder"])) : O("", !0)
|
|
1044
1044
|
], 64)) : O("", !0)
|
|
@@ -1049,31 +1049,31 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1049
1049
|
]),
|
|
1050
1050
|
_: 1
|
|
1051
1051
|
}, 8, ["modelValue", "title"]),
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1052
|
+
C("div", null, [
|
|
1053
|
+
C("p", xo, Q(w.value), 1),
|
|
1054
|
+
C("p", Vo, Q(l(m)("report.section.sort.description")), 1)
|
|
1055
1055
|
]),
|
|
1056
1056
|
u(A, null, {
|
|
1057
1057
|
default: G(() => [
|
|
1058
|
-
u(l(
|
|
1058
|
+
u(l(Ie), {
|
|
1059
1059
|
list: s.value,
|
|
1060
1060
|
"item-key": "id",
|
|
1061
1061
|
class: "flex flex-col gap-2 w-full"
|
|
1062
1062
|
}, {
|
|
1063
|
-
item: G(({ element:
|
|
1063
|
+
item: G(({ element: J, index: te }) => [
|
|
1064
1064
|
u(n, {
|
|
1065
1065
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1066
|
-
onClick: ye((M) => U(p.value[
|
|
1066
|
+
onClick: ye((M) => U(p.value[te]), ["stop"])
|
|
1067
1067
|
}, {
|
|
1068
1068
|
default: G(() => [
|
|
1069
|
-
u(
|
|
1070
|
-
|
|
1071
|
-
d[8] || (d[8] =
|
|
1069
|
+
u(S, { name: "drag_handle" }),
|
|
1070
|
+
C("p", Fo, Q(p.value[te].label), 1),
|
|
1071
|
+
d[8] || (d[8] = C("div", { class: "grow" }, null, -1)),
|
|
1072
1072
|
u(i, {
|
|
1073
1073
|
icon: "close",
|
|
1074
1074
|
size: "md",
|
|
1075
1075
|
variant: "tertiary",
|
|
1076
|
-
onClick: ye((M) =>
|
|
1076
|
+
onClick: ye((M) => h(te), ["stop"])
|
|
1077
1077
|
}, null, 8, ["onClick"])
|
|
1078
1078
|
]),
|
|
1079
1079
|
_: 2
|
|
@@ -1084,21 +1084,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1084
1084
|
]),
|
|
1085
1085
|
_: 1
|
|
1086
1086
|
}),
|
|
1087
|
-
u(
|
|
1087
|
+
u(E, {
|
|
1088
1088
|
class: "text-fm-color-typo-tertiary",
|
|
1089
1089
|
onClick: d[7] || (d[7] = () => {
|
|
1090
1090
|
U();
|
|
1091
1091
|
})
|
|
1092
1092
|
}, {
|
|
1093
1093
|
default: G(() => [
|
|
1094
|
-
|
|
1094
|
+
Le(Q(l(m)("report.section.sort.add")), 1)
|
|
1095
1095
|
]),
|
|
1096
1096
|
_: 1
|
|
1097
1097
|
})
|
|
1098
1098
|
]);
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
|
-
}),
|
|
1101
|
+
}), So = { class: "fm-typo-en-body-lg-600" }, _o = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, To = /* @__PURE__ */ ie({
|
|
1102
1102
|
__name: "LimitSection",
|
|
1103
1103
|
props: {
|
|
1104
1104
|
modelValue: { required: !0, default: null },
|
|
@@ -1106,17 +1106,17 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1106
1106
|
},
|
|
1107
1107
|
emits: ["update:modelValue"],
|
|
1108
1108
|
setup(D) {
|
|
1109
|
-
const { t: m } =
|
|
1109
|
+
const { t: m } = me(), e = fe(D, "modelValue"), s = ze((t) => {
|
|
1110
1110
|
t !== "" ? e.value = t : e.value = null;
|
|
1111
1111
|
}, 1e3);
|
|
1112
1112
|
return (t, w) => {
|
|
1113
|
-
const
|
|
1114
|
-
return
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1113
|
+
const x = $("FmTextField");
|
|
1114
|
+
return f(), H(ue, null, [
|
|
1115
|
+
C("div", null, [
|
|
1116
|
+
C("p", So, Q(l(m)("report.section.limit.title")), 1),
|
|
1117
|
+
C("p", _o, Q(l(m)("report.section.limit.description")), 1)
|
|
1118
1118
|
]),
|
|
1119
|
-
u(
|
|
1119
|
+
u(x, {
|
|
1120
1120
|
"model-value": e.value,
|
|
1121
1121
|
inputmode: "numeric",
|
|
1122
1122
|
placeholder: l(m)("report.section.limit.placeholder"),
|
|
@@ -1125,9 +1125,9 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1125
1125
|
], 64);
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
|
-
}),
|
|
1128
|
+
}), $o = { class: "flex flex-col my-2 gap-8" }, Uo = { class: "fm-typo-en-body-lg-600" }, Do = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, Bo = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Lo = /* @__PURE__ */ ie({
|
|
1129
1129
|
__name: "ConditionSection",
|
|
1130
|
-
props: /* @__PURE__ */
|
|
1130
|
+
props: /* @__PURE__ */ pe({
|
|
1131
1131
|
joinFieldOptions: {
|
|
1132
1132
|
type: Array,
|
|
1133
1133
|
default: () => []
|
|
@@ -1146,21 +1146,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1146
1146
|
}),
|
|
1147
1147
|
emits: ["update:modelValue"],
|
|
1148
1148
|
setup(D) {
|
|
1149
|
-
const { t: m, te: e } =
|
|
1149
|
+
const { t: m, te: e } = me(), s = fe(D, "modelValue"), t = D, w = T(() => m(`report.section.condition.${t.label}`)), x = oe(!1), p = T(
|
|
1150
1150
|
() => s.value.map((d, a) => {
|
|
1151
|
-
var
|
|
1151
|
+
var S, i;
|
|
1152
1152
|
const g = t.joinFieldOptions.find(
|
|
1153
1153
|
(n) => {
|
|
1154
|
-
var A,
|
|
1155
|
-
return n.schemaName === ((A = d.joinDimension) == null ? void 0 : A.schemaName) && n.name === ((
|
|
1154
|
+
var A, E;
|
|
1155
|
+
return n.schemaName === ((A = d.joinDimension) == null ? void 0 : A.schemaName) && n.name === ((E = d.joinDimension) == null ? void 0 : E.name);
|
|
1156
1156
|
}
|
|
1157
1157
|
), c = (g == null ? void 0 : g.labels) || [
|
|
1158
|
-
(
|
|
1158
|
+
(S = d.joinDimension) == null ? void 0 : S.schemaName,
|
|
1159
1159
|
(i = d.joinDimension) == null ? void 0 : i.name
|
|
1160
1160
|
];
|
|
1161
1161
|
return {
|
|
1162
1162
|
index: a,
|
|
1163
|
-
label: c.map((n) =>
|
|
1163
|
+
label: c.map((n) => de(m, e, n, "other")).join(" "),
|
|
1164
1164
|
value: d
|
|
1165
1165
|
};
|
|
1166
1166
|
})
|
|
@@ -1170,16 +1170,16 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1170
1170
|
joinDimension: null,
|
|
1171
1171
|
operator: "",
|
|
1172
1172
|
mainDimensions: []
|
|
1173
|
-
}, B.value = void 0),
|
|
1173
|
+
}, B.value = void 0), x.value = !0;
|
|
1174
1174
|
}
|
|
1175
|
-
const o = oe(void 0), r =
|
|
1175
|
+
const o = oe(void 0), r = T(
|
|
1176
1176
|
() => t.joinFieldOptions.find(
|
|
1177
1177
|
(d) => {
|
|
1178
1178
|
var a, g;
|
|
1179
1179
|
return d.schemaName === ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) && d.name === o.value.joinDimension.name;
|
|
1180
1180
|
}
|
|
1181
1181
|
) ?? {}
|
|
1182
|
-
),
|
|
1182
|
+
), v = T(
|
|
1183
1183
|
() => {
|
|
1184
1184
|
var d;
|
|
1185
1185
|
return (((d = o.value) == null ? void 0 : d.mainDimensions) || []).map(
|
|
@@ -1188,12 +1188,12 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1188
1188
|
) ?? {}
|
|
1189
1189
|
);
|
|
1190
1190
|
}
|
|
1191
|
-
),
|
|
1191
|
+
), b = T(
|
|
1192
1192
|
() => t.joinFieldOptions.map((d) => ({ label: d.labels.join(" "), value: d }))
|
|
1193
1193
|
);
|
|
1194
1194
|
function L(d) {
|
|
1195
|
-
var a, g, c,
|
|
1196
|
-
o.value && (o.value && d.schemaName !== ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) || d.name !== ((
|
|
1195
|
+
var a, g, c, S;
|
|
1196
|
+
o.value && (o.value && d.schemaName !== ((g = (a = o.value) == null ? void 0 : a.joinDimension) == null ? void 0 : g.schemaName) || d.name !== ((S = (c = o.value) == null ? void 0 : c.joinDimension) == null ? void 0 : S.name)) && (o.value = {
|
|
1197
1197
|
...o.value,
|
|
1198
1198
|
joinDimension: {
|
|
1199
1199
|
schemaName: d.schemaName,
|
|
@@ -1202,11 +1202,11 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1202
1202
|
label: `_${d.label}`,
|
|
1203
1203
|
hide: !0
|
|
1204
1204
|
}
|
|
1205
|
-
}, d.joinConditionOperators.includes(o.value.operator) ||
|
|
1205
|
+
}, d.joinConditionOperators.includes(o.value.operator) || F(d.joinConditionOperators[0]));
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var g, c,
|
|
1209
|
-
if (o.value && a >= 0 && (o.value && d.schemaName !== ((c = (g = o.value) == null ? void 0 : g.mainDimensions[a]) == null ? void 0 : c.schemaName) || d.name !== ((i = (
|
|
1207
|
+
function h(d, a) {
|
|
1208
|
+
var g, c, S, i;
|
|
1209
|
+
if (o.value && a >= 0 && (o.value && d.schemaName !== ((c = (g = o.value) == null ? void 0 : g.mainDimensions[a]) == null ? void 0 : c.schemaName) || d.name !== ((i = (S = o.value) == null ? void 0 : S.mainDimensions[a]) == null ? void 0 : i.name))) {
|
|
1210
1210
|
const n = [...o.value.mainDimensions];
|
|
1211
1211
|
n[a] = {
|
|
1212
1212
|
schemaName: d.schemaName,
|
|
@@ -1220,10 +1220,10 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function F(d) {
|
|
1224
1224
|
if (o.value)
|
|
1225
1225
|
switch (d) {
|
|
1226
|
-
case
|
|
1226
|
+
case Gl.Between:
|
|
1227
1227
|
o.value = {
|
|
1228
1228
|
...o.value,
|
|
1229
1229
|
operator: d,
|
|
@@ -1243,18 +1243,18 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1243
1243
|
const d = [...p.value.map((a) => a.value)];
|
|
1244
1244
|
o.value && (o.value.mainDimensions = o.value.mainDimensions.filter(
|
|
1245
1245
|
(a) => a !== "" && a != null
|
|
1246
|
-
), B.value !== void 0 ? d[B.value] = o.value : d.push(o.value)), s.value = d,
|
|
1246
|
+
), B.value !== void 0 ? d[B.value] = o.value : d.push(o.value)), s.value = d, x.value = !1;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function k(d) {
|
|
1249
1249
|
const a = [...p.value.map((g) => g.value)];
|
|
1250
1250
|
a.splice(d, 1), s.value = a;
|
|
1251
1251
|
}
|
|
1252
1252
|
return (d, a) => {
|
|
1253
|
-
const g = $("FmMenuDivider"), c = $("FmForm"),
|
|
1254
|
-
return
|
|
1255
|
-
u(
|
|
1256
|
-
modelValue:
|
|
1257
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
1253
|
+
const g = $("FmMenuDivider"), c = $("FmForm"), S = $("FmIcon"), i = $("FmButton"), n = $("FmListItem"), A = $("FmList"), E = $("FmField");
|
|
1254
|
+
return f(), H("div", $o, [
|
|
1255
|
+
u(Ae, {
|
|
1256
|
+
modelValue: x.value,
|
|
1257
|
+
"onUpdate:modelValue": a[2] || (a[2] = (J) => x.value = J),
|
|
1258
1258
|
title: w.value,
|
|
1259
1259
|
onConfirm: z
|
|
1260
1260
|
}, {
|
|
@@ -1264,58 +1264,58 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1264
1264
|
class: "flex flex-col gap-2 w-[490px]"
|
|
1265
1265
|
}, {
|
|
1266
1266
|
default: G(() => {
|
|
1267
|
-
var
|
|
1267
|
+
var J, te, M, ge, X;
|
|
1268
1268
|
return [
|
|
1269
|
-
u(
|
|
1269
|
+
u(ve, {
|
|
1270
1270
|
label: l(m)("report.section.condition.joinDatasource"),
|
|
1271
1271
|
"model-value": r.value,
|
|
1272
|
-
items:
|
|
1272
|
+
items: b.value,
|
|
1273
1273
|
placeholder: l(m)("report.section.condition.joinDimension"),
|
|
1274
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1274
|
+
"onUpdate:modelValue": a[0] || (a[0] = (j) => L(j))
|
|
1275
1275
|
}, null, 8, ["label", "model-value", "items", "placeholder"]),
|
|
1276
1276
|
u(g),
|
|
1277
|
-
(
|
|
1277
|
+
(J = o.value) != null && J.joinDimension && (((te = r.value) == null ? void 0 : te.dimensionOptions) || []).length > 0 ? (f(), N(ve, {
|
|
1278
1278
|
key: 0,
|
|
1279
1279
|
modelValue: o.value.joinDimension.option,
|
|
1280
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1280
|
+
"onUpdate:modelValue": a[1] || (a[1] = (j) => o.value.joinDimension.option = j),
|
|
1281
1281
|
label: l(m)("report.section.condition.format"),
|
|
1282
|
-
items: ((M = r.value) == null ? void 0 : M.dimensionOptions.map((
|
|
1283
|
-
label: l(e)(`report.section.filter.${l(
|
|
1284
|
-
value:
|
|
1282
|
+
items: ((M = r.value) == null ? void 0 : M.dimensionOptions.map((j) => ({
|
|
1283
|
+
label: l(e)(`report.section.filter.${l(De)(j)}`) ? l(m)(`report.section.filter.${l(De)(j)}`) : j,
|
|
1284
|
+
value: j
|
|
1285
1285
|
}))) ?? []
|
|
1286
1286
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
1287
|
-
o.value && (((
|
|
1287
|
+
o.value && (((ge = r.value) == null ? void 0 : ge.joinConditionOperators) || []).length > 0 ? (f(), N(ve, {
|
|
1288
1288
|
key: 1,
|
|
1289
1289
|
"model-value": o.value.operator,
|
|
1290
1290
|
label: l(m)("report.section.condition.operator"),
|
|
1291
|
-
items: r.value.joinConditionOperators.map((
|
|
1292
|
-
label: l(m)("report.section.comparisonOperator." +
|
|
1293
|
-
value:
|
|
1291
|
+
items: r.value.joinConditionOperators.map((j) => ({
|
|
1292
|
+
label: l(m)("report.section.comparisonOperator." + j),
|
|
1293
|
+
value: j
|
|
1294
1294
|
})) ?? [],
|
|
1295
|
-
"onUpdate:modelValue":
|
|
1295
|
+
"onUpdate:modelValue": F
|
|
1296
1296
|
}, null, 8, ["model-value", "label", "items"])) : O("", !0),
|
|
1297
|
-
(
|
|
1298
|
-
var
|
|
1299
|
-
return
|
|
1300
|
-
key:
|
|
1297
|
+
(f(!0), H(ue, null, xe(((X = o.value) == null ? void 0 : X.mainDimensions) || [], (j, Y) => {
|
|
1298
|
+
var ee, I;
|
|
1299
|
+
return f(), H("div", {
|
|
1300
|
+
key: Y,
|
|
1301
1301
|
class: "flex flex-col gap-2"
|
|
1302
1302
|
}, [
|
|
1303
|
-
u(
|
|
1304
|
-
"model-value":
|
|
1305
|
-
label: l(m)("report.section.condition.mainDatasource", { index:
|
|
1306
|
-
items: t.mainFieldOptions.map((
|
|
1307
|
-
label:
|
|
1308
|
-
value:
|
|
1303
|
+
u(ve, {
|
|
1304
|
+
"model-value": v.value[Y],
|
|
1305
|
+
label: l(m)("report.section.condition.mainDatasource", { index: Y + 1 }),
|
|
1306
|
+
items: t.mainFieldOptions.map((se) => ({
|
|
1307
|
+
label: se.labels.join(" "),
|
|
1308
|
+
value: se
|
|
1309
1309
|
})),
|
|
1310
|
-
"onUpdate:modelValue": (
|
|
1310
|
+
"onUpdate:modelValue": (se) => h(se, Y)
|
|
1311
1311
|
}, null, 8, ["model-value", "label", "items", "onUpdate:modelValue"]),
|
|
1312
|
-
|
|
1312
|
+
j && (((ee = v.value[Y]) == null ? void 0 : ee.dimensionOptions) || []).length > 0 && j ? (f(), N(ve, {
|
|
1313
1313
|
key: 0,
|
|
1314
|
-
modelValue:
|
|
1315
|
-
"onUpdate:modelValue": (
|
|
1316
|
-
items: (
|
|
1317
|
-
label: l(e)(`report.section.filter.${l(
|
|
1318
|
-
value:
|
|
1314
|
+
modelValue: j.option,
|
|
1315
|
+
"onUpdate:modelValue": (se) => j.option = se,
|
|
1316
|
+
items: (I = v.value[Y]) == null ? void 0 : I.dimensionOptions.map((se) => ({
|
|
1317
|
+
label: l(e)(`report.section.filter.${l(De)(se)}`) ? l(m)(`report.section.filter.${l(De)(se)}`) : se,
|
|
1318
|
+
value: se
|
|
1319
1319
|
}))
|
|
1320
1320
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : O("", !0),
|
|
1321
1321
|
u(g)
|
|
@@ -1328,37 +1328,37 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1328
1328
|
]),
|
|
1329
1329
|
_: 1
|
|
1330
1330
|
}, 8, ["modelValue", "title"]),
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1331
|
+
C("div", null, [
|
|
1332
|
+
C("p", Uo, Q(w.value), 1),
|
|
1333
|
+
C("p", Do, Q(l(m)("report.section.condition.description")), 1)
|
|
1334
1334
|
]),
|
|
1335
1335
|
u(A, { class: "flex flex-col gap-2" }, {
|
|
1336
1336
|
default: G(() => [
|
|
1337
|
-
u(l(
|
|
1337
|
+
u(l(Ie), {
|
|
1338
1338
|
list: s.value,
|
|
1339
|
-
"item-key": (
|
|
1340
|
-
var
|
|
1341
|
-
return `${(
|
|
1339
|
+
"item-key": (J) => {
|
|
1340
|
+
var te, M;
|
|
1341
|
+
return `${(te = J.joinDimension) == null ? void 0 : te.schemaName}:${(M = J.joinDimension) == null ? void 0 : M.name}`;
|
|
1342
1342
|
},
|
|
1343
1343
|
class: "flex flex-col gap-2 w-full"
|
|
1344
1344
|
}, {
|
|
1345
1345
|
item: G(({
|
|
1346
|
-
element:
|
|
1347
|
-
index:
|
|
1346
|
+
element: J,
|
|
1347
|
+
index: te
|
|
1348
1348
|
}) => [
|
|
1349
1349
|
u(n, {
|
|
1350
1350
|
class: "!cursor-grab border rounded-md border-neutral-300 h-[40px] !p-[8px]",
|
|
1351
|
-
onClick: ye((M) => U(p.value[
|
|
1351
|
+
onClick: ye((M) => U(p.value[te]), ["stop"])
|
|
1352
1352
|
}, {
|
|
1353
1353
|
default: G(() => [
|
|
1354
|
-
u(
|
|
1355
|
-
|
|
1356
|
-
a[4] || (a[4] =
|
|
1354
|
+
u(S, { name: "drag_handle" }),
|
|
1355
|
+
C("p", Bo, Q(p.value[te].label), 1),
|
|
1356
|
+
a[4] || (a[4] = C("div", { class: "grow" }, null, -1)),
|
|
1357
1357
|
u(i, {
|
|
1358
1358
|
icon: "close",
|
|
1359
1359
|
size: "md",
|
|
1360
1360
|
variant: "tertiary",
|
|
1361
|
-
onClick: ye((M) =>
|
|
1361
|
+
onClick: ye((M) => k(te), ["stop"])
|
|
1362
1362
|
}, null, 8, ["onClick"])
|
|
1363
1363
|
]),
|
|
1364
1364
|
_: 2
|
|
@@ -1369,21 +1369,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1369
1369
|
]),
|
|
1370
1370
|
_: 1
|
|
1371
1371
|
}),
|
|
1372
|
-
u(
|
|
1372
|
+
u(E, {
|
|
1373
1373
|
class: "text-fm-color-typo-tertiary cursor-pointer",
|
|
1374
|
-
onClick: a[3] || (a[3] = (
|
|
1374
|
+
onClick: a[3] || (a[3] = (J) => U())
|
|
1375
1375
|
}, {
|
|
1376
1376
|
default: G(() => [
|
|
1377
|
-
|
|
1377
|
+
Le(Q(l(m)("report.section.condition.add")), 1)
|
|
1378
1378
|
]),
|
|
1379
1379
|
_: 1
|
|
1380
1380
|
})
|
|
1381
1381
|
]);
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
|
-
}),
|
|
1384
|
+
}), rl = /* @__PURE__ */ ie({
|
|
1385
1385
|
__name: "Datasource",
|
|
1386
|
-
props: /* @__PURE__ */
|
|
1386
|
+
props: /* @__PURE__ */ pe({
|
|
1387
1387
|
label: {
|
|
1388
1388
|
type: String,
|
|
1389
1389
|
default: "Label"
|
|
@@ -1410,44 +1410,44 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1410
1410
|
modelValue: { required: !0 },
|
|
1411
1411
|
modelModifiers: {}
|
|
1412
1412
|
}),
|
|
1413
|
-
emits: /* @__PURE__ */
|
|
1413
|
+
emits: /* @__PURE__ */ pe(["click-close"], ["update:modelValue"]),
|
|
1414
1414
|
setup(D, { emit: m }) {
|
|
1415
|
-
const { disableEditMode: e, resetStore: s } =
|
|
1415
|
+
const { disableEditMode: e, resetStore: s } = je(), t = fe(D, "modelValue");
|
|
1416
1416
|
he(
|
|
1417
1417
|
[() => t.value.dimensions, () => t.value.metrics],
|
|
1418
1418
|
() => {
|
|
1419
|
-
const { rowIds: i, columnIds: n } =
|
|
1419
|
+
const { rowIds: i, columnIds: n } = Re(t.value);
|
|
1420
1420
|
t.value.rowIds = i, t.value.columnIds = n;
|
|
1421
1421
|
},
|
|
1422
1422
|
{ deep: !0 }
|
|
1423
1423
|
);
|
|
1424
|
-
const w = D,
|
|
1424
|
+
const w = D, x = m, { schemas: p } = Se(pl()), { editingReport: B } = Se(vl()), U = T(() => {
|
|
1425
1425
|
var i;
|
|
1426
1426
|
return ((i = B.value) == null ? void 0 : i.queryVersion) === "v2";
|
|
1427
1427
|
});
|
|
1428
|
-
|
|
1428
|
+
Nl(() => {
|
|
1429
1429
|
e(), s();
|
|
1430
1430
|
});
|
|
1431
|
-
const { t: o, te: r, locale:
|
|
1432
|
-
() => [
|
|
1433
|
-
),
|
|
1431
|
+
const { t: o, te: r, locale: v } = me(), b = T(() => !w.mainDatasourceConfig), L = T(
|
|
1432
|
+
() => [K.BarChart, K.LineChart, K.Scorecard].includes(w.config.type)
|
|
1433
|
+
), h = T(() => {
|
|
1434
1434
|
const i = [...t.value.dimensions].filter((n) => !n.hide);
|
|
1435
1435
|
return i.sort(
|
|
1436
|
-
(n, A) => (t.value.rowIds || []).indexOf(
|
|
1436
|
+
(n, A) => (t.value.rowIds || []).indexOf(_e(n)) - (t.value.rowIds || []).indexOf(_e(A))
|
|
1437
1437
|
), i;
|
|
1438
|
-
}),
|
|
1438
|
+
}), F = T(() => w.config.type === K.Scorecard), z = T(
|
|
1439
1439
|
() => {
|
|
1440
1440
|
var i;
|
|
1441
1441
|
return (((i = w.mainDatasourceConfig) == null ? void 0 : i.schemaNames) || []).reduce(
|
|
1442
1442
|
(n, A) => {
|
|
1443
|
-
const
|
|
1444
|
-
return
|
|
1443
|
+
const E = p.value.find((J) => J.name === A);
|
|
1444
|
+
return E && (n = [
|
|
1445
1445
|
...n,
|
|
1446
|
-
...
|
|
1447
|
-
...
|
|
1446
|
+
...E.fields.map((J) => ({
|
|
1447
|
+
...J,
|
|
1448
1448
|
labels: [
|
|
1449
|
-
|
|
1450
|
-
|
|
1449
|
+
de(o, r, E.label, "schema"),
|
|
1450
|
+
de(o, r, J.label || J.name, "other")
|
|
1451
1451
|
]
|
|
1452
1452
|
}))
|
|
1453
1453
|
]), n;
|
|
@@ -1455,75 +1455,75 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1455
1455
|
[]
|
|
1456
1456
|
);
|
|
1457
1457
|
}
|
|
1458
|
-
),
|
|
1458
|
+
), k = T(
|
|
1459
1459
|
() => t.value.schemaNames.reduce((i, n) => {
|
|
1460
|
-
const A = p.value.find((
|
|
1460
|
+
const A = p.value.find((E) => E.name === n);
|
|
1461
1461
|
return A && (i = [
|
|
1462
1462
|
...i,
|
|
1463
|
-
...A.fields.map((
|
|
1464
|
-
...
|
|
1463
|
+
...A.fields.map((E) => ({
|
|
1464
|
+
...E,
|
|
1465
1465
|
labels: [
|
|
1466
|
-
|
|
1467
|
-
|
|
1466
|
+
de(o, r, A.label, "schema"),
|
|
1467
|
+
de(o, r, E.label || E.name, "other")
|
|
1468
1468
|
]
|
|
1469
1469
|
}))
|
|
1470
1470
|
]), i;
|
|
1471
1471
|
}, [])
|
|
1472
|
-
), d =
|
|
1472
|
+
), d = T(() => [
|
|
1473
1473
|
{ label: o("report.section.datasource.none"), value: null },
|
|
1474
1474
|
{ label: o("report.section.datasource.grandTotal"), value: 0 },
|
|
1475
|
-
...[...
|
|
1476
|
-
label:
|
|
1475
|
+
...[...h.value].slice(0, h.value.length - 1).map((i, n) => ({
|
|
1476
|
+
label: de(o, r, i.label, "other"),
|
|
1477
1477
|
value: n + 1
|
|
1478
1478
|
}))
|
|
1479
|
-
]), a =
|
|
1479
|
+
]), a = T(() => [
|
|
1480
1480
|
{
|
|
1481
1481
|
label: o("report.section.datasource.position.top"),
|
|
1482
|
-
value:
|
|
1482
|
+
value: il.top
|
|
1483
1483
|
},
|
|
1484
1484
|
{
|
|
1485
1485
|
label: o("report.section.datasource.position.bottom"),
|
|
1486
|
-
value:
|
|
1486
|
+
value: il.bottom
|
|
1487
1487
|
}
|
|
1488
|
-
]), g =
|
|
1489
|
-
() => `rollup-${
|
|
1490
|
-
), c =
|
|
1488
|
+
]), g = T(
|
|
1489
|
+
() => `rollup-${v.value}-${h.value.map((i) => _e(i)).join("|")}`
|
|
1490
|
+
), c = T(() => [
|
|
1491
1491
|
{
|
|
1492
1492
|
label: o("report.section.datasource.none"),
|
|
1493
1493
|
value: null
|
|
1494
1494
|
},
|
|
1495
|
-
...Object.keys(
|
|
1495
|
+
...Object.keys(al).map((i) => ({
|
|
1496
1496
|
label: r(`report.section.datasource.periodType.${i}`) ? o(`report.section.datasource.periodType.${i}`) : i,
|
|
1497
|
-
value:
|
|
1497
|
+
value: al[i]
|
|
1498
1498
|
}))
|
|
1499
|
-
]),
|
|
1499
|
+
]), S = T(() => [
|
|
1500
1500
|
{ label: o("report.section.datasource.joinType.left"), value: "LEFT" },
|
|
1501
1501
|
{ label: o("report.section.datasource.joinType.fullOuter"), value: "FULL_OUTER" }
|
|
1502
1502
|
]);
|
|
1503
1503
|
return (i, n) => {
|
|
1504
|
-
const A = $("FmButton"),
|
|
1505
|
-
return
|
|
1504
|
+
const A = $("FmButton"), E = $("FmSwitch"), J = $("FmSelect"), te = $("FmTextField");
|
|
1505
|
+
return f(), N(Ye, null, {
|
|
1506
1506
|
header: G(() => [
|
|
1507
|
-
|
|
1508
|
-
n[22] || (n[22] =
|
|
1509
|
-
w.closeable ? (
|
|
1507
|
+
C("p", null, Q(w.label), 1),
|
|
1508
|
+
n[22] || (n[22] = C("div", { class: "grow" }, null, -1)),
|
|
1509
|
+
w.closeable ? (f(), N(A, {
|
|
1510
1510
|
key: 0,
|
|
1511
1511
|
icon: "close",
|
|
1512
1512
|
variant: "tertiary",
|
|
1513
1513
|
size: "md",
|
|
1514
|
-
onClick: n[0] || (n[0] = ye((M) =>
|
|
1514
|
+
onClick: n[0] || (n[0] = ye((M) => x("click-close"), ["stop"]))
|
|
1515
1515
|
})) : O("", !0)
|
|
1516
1516
|
]),
|
|
1517
1517
|
content: G(() => [
|
|
1518
|
-
u(
|
|
1518
|
+
u(ro, {
|
|
1519
1519
|
modelValue: t.value,
|
|
1520
1520
|
"onUpdate:modelValue": n[1] || (n[1] = (M) => t.value = M),
|
|
1521
1521
|
label: l(o)("report.section.schema.title")
|
|
1522
1522
|
}, null, 8, ["modelValue", "label"]),
|
|
1523
|
-
u(
|
|
1523
|
+
u(qe, {
|
|
1524
1524
|
modelValue: t.value.dimensions,
|
|
1525
1525
|
"onUpdate:modelValue": n[2] || (n[2] = (M) => t.value.dimensions = M),
|
|
1526
|
-
options:
|
|
1526
|
+
options: k.value,
|
|
1527
1527
|
config: t.value,
|
|
1528
1528
|
max: w.config.maxDimension,
|
|
1529
1529
|
"has-row-column": !0,
|
|
@@ -1531,7 +1531,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1531
1531
|
t.value = M;
|
|
1532
1532
|
})
|
|
1533
1533
|
}, null, 8, ["modelValue", "options", "config", "max"]),
|
|
1534
|
-
u(
|
|
1534
|
+
u(E, {
|
|
1535
1535
|
"label-placement": "right",
|
|
1536
1536
|
label: l(o)("report.section.datasource.comparable"),
|
|
1537
1537
|
"model-value": t.value.isComparable ?? !1,
|
|
@@ -1539,7 +1539,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1539
1539
|
t.value.isComparable = M;
|
|
1540
1540
|
})
|
|
1541
1541
|
}, null, 8, ["label", "model-value"]),
|
|
1542
|
-
L.value ? (
|
|
1542
|
+
L.value ? (f(), N(E, {
|
|
1543
1543
|
key: 0,
|
|
1544
1544
|
"label-placement": "right",
|
|
1545
1545
|
label: l(o)("report.section.datasource.cumulative"),
|
|
@@ -1548,7 +1548,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1548
1548
|
t.value.isCumulative = M;
|
|
1549
1549
|
})
|
|
1550
1550
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
1551
|
-
w.config.isDrillConfigurable &&
|
|
1551
|
+
w.config.isDrillConfigurable && b.value ? (f(), N(E, {
|
|
1552
1552
|
key: 1,
|
|
1553
1553
|
label: l(o)("report.section.datasource.drill"),
|
|
1554
1554
|
"label-placement": "right",
|
|
@@ -1557,108 +1557,108 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1557
1557
|
t.value.isDrillable = M;
|
|
1558
1558
|
})
|
|
1559
1559
|
}, null, 8, ["label", "model-value"])) : O("", !0),
|
|
1560
|
-
|
|
1560
|
+
b.value ? (f(), N(E, {
|
|
1561
1561
|
key: 2,
|
|
1562
1562
|
modelValue: t.value.isBlend,
|
|
1563
1563
|
"onUpdate:modelValue": n[7] || (n[7] = (M) => t.value.isBlend = M),
|
|
1564
1564
|
label: l(o)("report.section.datasource.blend"),
|
|
1565
1565
|
"label-placement": "right"
|
|
1566
1566
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
1567
|
-
w.config.canRollup &&
|
|
1567
|
+
w.config.canRollup && b.value ? (f(), N(J, {
|
|
1568
1568
|
key: g.value,
|
|
1569
1569
|
modelValue: t.value.rollup,
|
|
1570
1570
|
"onUpdate:modelValue": n[8] || (n[8] = (M) => t.value.rollup = M),
|
|
1571
1571
|
label: l(o)("report.section.datasource.subTotal"),
|
|
1572
1572
|
items: d.value
|
|
1573
1573
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
1574
|
-
w.config.showRollupPosition &&
|
|
1575
|
-
key: `rollup-position-${l(
|
|
1574
|
+
w.config.showRollupPosition && b.value ? (f(), N(J, {
|
|
1575
|
+
key: `rollup-position-${l(v)}`,
|
|
1576
1576
|
modelValue: t.value.rollupPosition,
|
|
1577
1577
|
"onUpdate:modelValue": n[9] || (n[9] = (M) => t.value.rollupPosition = M),
|
|
1578
1578
|
label: l(o)("report.section.datasource.position.showPosition"),
|
|
1579
1579
|
items: a.value
|
|
1580
1580
|
}, null, 8, ["modelValue", "label", "items"])) : O("", !0),
|
|
1581
|
-
w.config.type === l(
|
|
1581
|
+
w.config.type === l(K).Table && b.value ? (f(), N(te, {
|
|
1582
1582
|
key: 5,
|
|
1583
1583
|
modelValue: t.value.grandTotalLabel,
|
|
1584
1584
|
"onUpdate:modelValue": n[10] || (n[10] = (M) => t.value.grandTotalLabel = M),
|
|
1585
1585
|
label: l(o)("report.section.datasource.grandTotalLabel"),
|
|
1586
1586
|
placeholder: l(o)("report.section.datasource.grandTotal")
|
|
1587
1587
|
}, null, 8, ["modelValue", "label", "placeholder"])) : O("", !0),
|
|
1588
|
-
|
|
1589
|
-
key: `periodType-${l(
|
|
1588
|
+
b.value ? O("", !0) : (f(), N(J, {
|
|
1589
|
+
key: `periodType-${l(v)}`,
|
|
1590
1590
|
modelValue: t.value.periodType,
|
|
1591
1591
|
"onUpdate:modelValue": n[11] || (n[11] = (M) => t.value.periodType = M),
|
|
1592
1592
|
label: l(o)("report.section.datasource.periodType.label"),
|
|
1593
1593
|
items: c.value
|
|
1594
1594
|
}, null, 8, ["modelValue", "label", "items"])),
|
|
1595
|
-
w.config.canTranspose &&
|
|
1595
|
+
w.config.canTranspose && b.value ? (f(), N(E, {
|
|
1596
1596
|
key: 7,
|
|
1597
1597
|
modelValue: t.value.isTransposed,
|
|
1598
1598
|
"onUpdate:modelValue": n[12] || (n[12] = (M) => t.value.isTransposed = M),
|
|
1599
1599
|
label: l(o)("report.section.datasource.transpose"),
|
|
1600
1600
|
"label-placement": "right"
|
|
1601
1601
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
1602
|
-
w.config.hasBreakdownDimension ? (
|
|
1602
|
+
w.config.hasBreakdownDimension ? (f(), N(qe, {
|
|
1603
1603
|
key: 8,
|
|
1604
1604
|
"model-value": t.value.breakdownDimension ? [t.value.breakdownDimension] : [],
|
|
1605
1605
|
label: "breakdownDimension",
|
|
1606
1606
|
max: 1,
|
|
1607
|
-
options:
|
|
1607
|
+
options: k.value,
|
|
1608
1608
|
"onUpdate:modelValue": n[13] || (n[13] = (M) => {
|
|
1609
1609
|
t.value.breakdownDimension = M[0];
|
|
1610
1610
|
})
|
|
1611
1611
|
}, null, 8, ["model-value", "options"])) : O("", !0),
|
|
1612
|
-
|
|
1612
|
+
F.value ? (f(), N(qe, {
|
|
1613
1613
|
key: 9,
|
|
1614
1614
|
"model-value": t.value.sparklineDimension ? [t.value.sparklineDimension] : [],
|
|
1615
1615
|
label: "sparklineDimension",
|
|
1616
1616
|
max: 1,
|
|
1617
|
-
options:
|
|
1617
|
+
options: k.value,
|
|
1618
1618
|
"onUpdate:modelValue": n[14] || (n[14] = (M) => {
|
|
1619
1619
|
t.value.sparklineDimension = M[0];
|
|
1620
1620
|
})
|
|
1621
1621
|
}, null, 8, ["model-value", "options"])) : O("", !0),
|
|
1622
|
-
u(
|
|
1622
|
+
u(Co, {
|
|
1623
1623
|
modelValue: t.value.metrics,
|
|
1624
1624
|
"onUpdate:modelValue": n[15] || (n[15] = (M) => t.value.metrics = M),
|
|
1625
|
-
options:
|
|
1625
|
+
options: k.value,
|
|
1626
1626
|
max: w.config.maxMetric,
|
|
1627
1627
|
config: t.value,
|
|
1628
|
-
"has-row-column": w.config.type === l(
|
|
1628
|
+
"has-row-column": w.config.type === l(K).Table,
|
|
1629
1629
|
"has-xy": w.config.hasXy,
|
|
1630
1630
|
onConfig: n[16] || (n[16] = (M) => {
|
|
1631
1631
|
t.value = M;
|
|
1632
1632
|
})
|
|
1633
1633
|
}, null, 8, ["modelValue", "options", "max", "config", "has-row-column", "has-xy"]),
|
|
1634
|
-
u(
|
|
1634
|
+
u(El, {
|
|
1635
1635
|
modelValue: t.value.filters,
|
|
1636
1636
|
"onUpdate:modelValue": n[17] || (n[17] = (M) => t.value.filters = M),
|
|
1637
|
-
options:
|
|
1637
|
+
options: k.value
|
|
1638
1638
|
}, null, 8, ["modelValue", "options"]),
|
|
1639
|
-
u(
|
|
1639
|
+
u(ko, {
|
|
1640
1640
|
modelValue: t.value.sorts,
|
|
1641
1641
|
"onUpdate:modelValue": n[18] || (n[18] = (M) => t.value.sorts = M),
|
|
1642
|
-
options:
|
|
1642
|
+
options: k.value
|
|
1643
1643
|
}, null, 8, ["modelValue", "options"]),
|
|
1644
|
-
u(
|
|
1644
|
+
u(To, {
|
|
1645
1645
|
modelValue: t.value.limit,
|
|
1646
1646
|
"onUpdate:modelValue": n[19] || (n[19] = (M) => t.value.limit = M)
|
|
1647
1647
|
}, null, 8, ["modelValue"]),
|
|
1648
|
-
t.value.conditions && U.value ? (
|
|
1648
|
+
t.value.conditions && U.value ? (f(), N(J, {
|
|
1649
1649
|
key: 10,
|
|
1650
1650
|
"model-value": t.value.joinType ?? "LEFT",
|
|
1651
1651
|
label: l(o)("report.section.datasource.joinType.label"),
|
|
1652
|
-
items:
|
|
1652
|
+
items: S.value,
|
|
1653
1653
|
"onUpdate:modelValue": n[20] || (n[20] = (M) => {
|
|
1654
1654
|
t.value.joinType = M;
|
|
1655
1655
|
})
|
|
1656
1656
|
}, null, 8, ["model-value", "label", "items"])) : O("", !0),
|
|
1657
|
-
t.value.conditions ? (
|
|
1657
|
+
t.value.conditions ? (f(), N(Lo, {
|
|
1658
1658
|
key: 11,
|
|
1659
1659
|
modelValue: t.value.conditions,
|
|
1660
1660
|
"onUpdate:modelValue": n[21] || (n[21] = (M) => t.value.conditions = M),
|
|
1661
|
-
"join-field-options":
|
|
1661
|
+
"join-field-options": k.value,
|
|
1662
1662
|
"main-field-options": z.value
|
|
1663
1663
|
}, null, 8, ["modelValue", "join-field-options", "main-field-options"])) : O("", !0)
|
|
1664
1664
|
]),
|
|
@@ -1666,9 +1666,9 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1666
1666
|
});
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
|
-
}),
|
|
1669
|
+
}), Ao = { class: "fm-typo-en-title-sm-600" }, Je = /* @__PURE__ */ ie({
|
|
1670
1670
|
__name: "TileEditorTabHeader",
|
|
1671
|
-
props: /* @__PURE__ */
|
|
1671
|
+
props: /* @__PURE__ */ pe({
|
|
1672
1672
|
icon: {
|
|
1673
1673
|
type: String,
|
|
1674
1674
|
required: !0
|
|
@@ -1679,22 +1679,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1679
1679
|
}),
|
|
1680
1680
|
emits: ["update:modelValue"],
|
|
1681
1681
|
setup(D) {
|
|
1682
|
-
const { t: m } =
|
|
1682
|
+
const { t: m } = me(), e = fe(D, "modelValue"), s = D;
|
|
1683
1683
|
return (t, w) => {
|
|
1684
|
-
const
|
|
1685
|
-
return
|
|
1684
|
+
const x = $("FmIcon");
|
|
1685
|
+
return f(), H("div", {
|
|
1686
1686
|
class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
|
|
1687
1687
|
onClick: w[0] || (w[0] = (p) => e.value = !e.value)
|
|
1688
1688
|
}, [
|
|
1689
|
-
|
|
1690
|
-
w[1] || (w[1] =
|
|
1691
|
-
u(
|
|
1689
|
+
C("p", Ao, Q(l(m)("report.tile.setting")), 1),
|
|
1690
|
+
w[1] || (w[1] = C("div", { class: "grow" }, null, -1)),
|
|
1691
|
+
u(x, {
|
|
1692
1692
|
name: s.icon
|
|
1693
1693
|
}, null, 8, ["name"])
|
|
1694
1694
|
]);
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
}),
|
|
1697
|
+
}), Mo = /* @__PURE__ */ ie({
|
|
1698
1698
|
__name: "TileEditorTabDesktop",
|
|
1699
1699
|
props: {
|
|
1700
1700
|
modelValue: { required: !0, default: !1 },
|
|
@@ -1702,17 +1702,17 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1702
1702
|
},
|
|
1703
1703
|
emits: ["update:modelValue"],
|
|
1704
1704
|
setup(D) {
|
|
1705
|
-
const m =
|
|
1706
|
-
return (e, s) => (
|
|
1707
|
-
u(
|
|
1705
|
+
const m = fe(D, "modelValue");
|
|
1706
|
+
return (e, s) => (f(), H(ue, null, [
|
|
1707
|
+
u(Je, {
|
|
1708
1708
|
modelValue: m.value,
|
|
1709
1709
|
"onUpdate:modelValue": s[0] || (s[0] = (t) => m.value = t),
|
|
1710
1710
|
icon: "keyboard_double_arrow_left"
|
|
1711
1711
|
}, null, 8, ["modelValue"]),
|
|
1712
|
-
|
|
1712
|
+
dl(e.$slots, "default")
|
|
1713
1713
|
], 64));
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), Oo = { class: "fixed bottom-0 w-full" }, No = /* @__PURE__ */ ie({
|
|
1716
1716
|
__name: "TileEditorTabMobile",
|
|
1717
1717
|
props: {
|
|
1718
1718
|
modelValue: { required: !0, default: !1 },
|
|
@@ -1720,11 +1720,11 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1720
1720
|
},
|
|
1721
1721
|
emits: ["update:modelValue"],
|
|
1722
1722
|
setup(D) {
|
|
1723
|
-
const m =
|
|
1723
|
+
const m = fe(D, "modelValue");
|
|
1724
1724
|
return (e, s) => {
|
|
1725
1725
|
const t = $("FmTopSheet");
|
|
1726
|
-
return
|
|
1727
|
-
u(
|
|
1726
|
+
return f(), H("div", Oo, [
|
|
1727
|
+
u(Je, {
|
|
1728
1728
|
modelValue: m.value,
|
|
1729
1729
|
"onUpdate:modelValue": s[0] || (s[0] = (w) => m.value = w),
|
|
1730
1730
|
icon: "keyboard_double_arrow_up"
|
|
@@ -1735,83 +1735,83 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1735
1735
|
"fullscreen-size": "sm"
|
|
1736
1736
|
}, {
|
|
1737
1737
|
default: G(() => [
|
|
1738
|
-
u(
|
|
1738
|
+
u(Je, {
|
|
1739
1739
|
modelValue: m.value,
|
|
1740
1740
|
"onUpdate:modelValue": s[1] || (s[1] = (w) => m.value = w),
|
|
1741
1741
|
icon: "keyboard_double_arrow_down"
|
|
1742
1742
|
}, null, 8, ["modelValue"]),
|
|
1743
|
-
m.value ?
|
|
1743
|
+
m.value ? dl(e.$slots, "default", { key: 0 }) : O("", !0)
|
|
1744
1744
|
]),
|
|
1745
1745
|
_: 3
|
|
1746
1746
|
}, 8, ["modelValue"])
|
|
1747
1747
|
]);
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
}),
|
|
1750
|
+
}), jo = { class: "flex gap-16" }, zo = { class: "flex flex-col gap-8 max-w-[120px]" }, Ro = { class: "fm-typo-en-body-lg-600" }, Io = { class: "flex flex-col gap-16" }, Po = { class: "fm-typo-en-body-lg-600" }, Eo = { class: "flex flex-row gap-8" }, Xo = /* @__PURE__ */ ie({
|
|
1751
1751
|
__name: "TitleSection",
|
|
1752
1752
|
props: {
|
|
1753
1753
|
model: {}
|
|
1754
1754
|
},
|
|
1755
1755
|
emits: ["update:model"],
|
|
1756
1756
|
setup(D, { emit: m }) {
|
|
1757
|
-
const e = D, s = m, { t } =
|
|
1757
|
+
const e = D, s = m, { t } = me(), w = T({
|
|
1758
1758
|
get: () => e.model.showTitle ?? !1,
|
|
1759
1759
|
set: (o) => s("update:model", { ...e.model, showTitle: o })
|
|
1760
|
-
}),
|
|
1760
|
+
}), x = T({
|
|
1761
1761
|
get: () => e.model.titleFontSize ?? 14,
|
|
1762
1762
|
set: (o) => s("update:model", { ...e.model, titleFontSize: Math.min(Number(o), 24) })
|
|
1763
|
-
}), p =
|
|
1763
|
+
}), p = T({
|
|
1764
1764
|
get: () => e.model.titleBold ?? !1,
|
|
1765
1765
|
set: (o) => s("update:model", { ...e.model, titleBold: o })
|
|
1766
|
-
}), B =
|
|
1766
|
+
}), B = T({
|
|
1767
1767
|
get: () => e.model.titleItalic ?? !1,
|
|
1768
1768
|
set: (o) => s("update:model", { ...e.model, titleItalic: o })
|
|
1769
|
-
}), U =
|
|
1769
|
+
}), U = T({
|
|
1770
1770
|
get: () => e.model.titleUnderline ?? !1,
|
|
1771
1771
|
set: (o) => s("update:model", { ...e.model, titleUnderline: o })
|
|
1772
1772
|
});
|
|
1773
1773
|
return (o, r) => {
|
|
1774
|
-
const
|
|
1775
|
-
return
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
u(
|
|
1781
|
-
modelValue:
|
|
1782
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1774
|
+
const v = $("FmStepperField"), b = $("FmButton"), L = $("FmSwitch");
|
|
1775
|
+
return f(), H(ue, null, [
|
|
1776
|
+
C("div", null, [
|
|
1777
|
+
C("div", jo, [
|
|
1778
|
+
C("div", zo, [
|
|
1779
|
+
C("p", Ro, Q(l(t)("report.section.datasource.title.titleFontSize")), 1),
|
|
1780
|
+
u(v, {
|
|
1781
|
+
modelValue: x.value,
|
|
1782
|
+
"onUpdate:modelValue": r[0] || (r[0] = (h) => x.value = h),
|
|
1783
1783
|
max: 24,
|
|
1784
1784
|
min: 1,
|
|
1785
1785
|
type: "number"
|
|
1786
1786
|
}, null, 8, ["modelValue"])
|
|
1787
1787
|
]),
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
u(
|
|
1788
|
+
C("div", Io, [
|
|
1789
|
+
C("p", Po, Q(l(t)("report.section.datasource.title.textStyleFormat")), 1),
|
|
1790
|
+
C("div", Eo, [
|
|
1791
|
+
u(b, {
|
|
1792
1792
|
"append-icon": "format_bold",
|
|
1793
1793
|
"model-value": o.model.titleBold ?? !1,
|
|
1794
1794
|
variant: "tertiary",
|
|
1795
1795
|
"icon-color": o.model.titleBold ? "neutral-gray-400" : "neutral-gray-300",
|
|
1796
1796
|
"bg-color": o.model.titleBold ? "neutral-gray-100" : "neutral-white",
|
|
1797
1797
|
class: "rounded-sm",
|
|
1798
|
-
onClick: r[1] || (r[1] = (
|
|
1798
|
+
onClick: r[1] || (r[1] = (h) => p.value = !p.value)
|
|
1799
1799
|
}, null, 8, ["model-value", "icon-color", "bg-color"]),
|
|
1800
|
-
u(
|
|
1800
|
+
u(b, {
|
|
1801
1801
|
"append-icon": "format_italic",
|
|
1802
1802
|
"model-value": o.model.titleItalic ?? !1,
|
|
1803
1803
|
"icon-color": o.model.titleItalic ? "neutral-gray-400" : "neutral-gray-300",
|
|
1804
1804
|
"bg-color": o.model.titleItalic ? "neutral-gray-100" : "neutral-white",
|
|
1805
1805
|
class: "rounded-sm",
|
|
1806
|
-
onClick: r[2] || (r[2] = (
|
|
1806
|
+
onClick: r[2] || (r[2] = (h) => B.value = !B.value)
|
|
1807
1807
|
}, null, 8, ["model-value", "icon-color", "bg-color"]),
|
|
1808
|
-
u(
|
|
1808
|
+
u(b, {
|
|
1809
1809
|
"append-icon": "format_underlined",
|
|
1810
1810
|
"model-value": o.model.titleUnderline ?? !1,
|
|
1811
1811
|
"icon-color": o.model.titleUnderline ? "neutral-gray-400" : "neutral-gray-300",
|
|
1812
1812
|
"bg-color": o.model.titleUnderline ? "neutral-gray-100" : "neutral-white",
|
|
1813
1813
|
class: "rounded-sm",
|
|
1814
|
-
onClick: r[3] || (r[3] = (
|
|
1814
|
+
onClick: r[3] || (r[3] = (h) => U.value = !U.value)
|
|
1815
1815
|
}, null, 8, ["model-value", "icon-color", "bg-color"])
|
|
1816
1816
|
])
|
|
1817
1817
|
])
|
|
@@ -1819,58 +1819,58 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1819
1819
|
]),
|
|
1820
1820
|
u(L, {
|
|
1821
1821
|
modelValue: w.value,
|
|
1822
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
1822
|
+
"onUpdate:modelValue": r[4] || (r[4] = (h) => w.value = h),
|
|
1823
1823
|
label: l(t)("report.section.datasource.title.showTitle"),
|
|
1824
1824
|
"label-placement": "right"
|
|
1825
1825
|
}, null, 8, ["modelValue", "label"])
|
|
1826
1826
|
], 64);
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
|
-
}),
|
|
1829
|
+
}), Wo = { class: "flex flex-col gap-8" }, qo = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Ho = { class: "flex flex-row gap-2" }, Yo = {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
1832
|
-
},
|
|
1832
|
+
}, Go = /* @__PURE__ */ ie({
|
|
1833
1833
|
__name: "TableResizeSection",
|
|
1834
1834
|
props: {
|
|
1835
1835
|
layout: {}
|
|
1836
1836
|
},
|
|
1837
1837
|
emits: ["update:layout"],
|
|
1838
1838
|
setup(D, { emit: m }) {
|
|
1839
|
-
const { t: e } =
|
|
1840
|
-
|
|
1839
|
+
const { t: e } = me(), s = D, t = m, { isEditing: w, colWidths: x, rowHeight: p } = Se(je()), { enableCellResizing: B, cancelResizingChanges: U, resetStore: o, disableEditMode: r } = je();
|
|
1840
|
+
T(
|
|
1841
1841
|
() => {
|
|
1842
|
-
var
|
|
1843
|
-
return (((L = (
|
|
1842
|
+
var b, L, h;
|
|
1843
|
+
return (((L = (b = s.layout) == null ? void 0 : b.colWidths) == null ? void 0 : L.length) ?? 0) > 0 || x.value.length > 0 || (((h = s.layout) == null ? void 0 : h.rowHeight) ?? 0) > 0 || p.value > 0;
|
|
1844
1844
|
}
|
|
1845
1845
|
);
|
|
1846
|
-
function
|
|
1846
|
+
function v() {
|
|
1847
1847
|
o(), r(), t("update:layout", {
|
|
1848
1848
|
...s.layout,
|
|
1849
1849
|
rowHeight: void 0,
|
|
1850
1850
|
colWidths: void 0
|
|
1851
1851
|
});
|
|
1852
|
-
const
|
|
1853
|
-
if (
|
|
1854
|
-
|
|
1855
|
-
const L =
|
|
1852
|
+
const b = document.querySelector("table");
|
|
1853
|
+
if (b) {
|
|
1854
|
+
b.classList.remove("table-fixed"), b.classList.add("table-auto"), b.style.width = "";
|
|
1855
|
+
const L = b.querySelectorAll("th"), h = b.querySelectorAll("td"), F = b.querySelectorAll("tr");
|
|
1856
1856
|
L.forEach((z) => {
|
|
1857
1857
|
z.style.width = "";
|
|
1858
|
-
}),
|
|
1858
|
+
}), h.forEach((z) => {
|
|
1859
1859
|
z.style.width = "";
|
|
1860
|
-
}),
|
|
1860
|
+
}), F.forEach((z) => {
|
|
1861
1861
|
z.style.height = "";
|
|
1862
1862
|
});
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
|
-
return
|
|
1866
|
-
var
|
|
1867
|
-
((
|
|
1868
|
-
}), (
|
|
1869
|
-
const
|
|
1870
|
-
return
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
l(w) ? O("", !0) : (
|
|
1865
|
+
return Ke(() => {
|
|
1866
|
+
var b, L;
|
|
1867
|
+
((b = s.layout) == null ? void 0 : b.rowHeight) !== void 0 && (p.value = s.layout.rowHeight), (L = s.layout) != null && L.colWidths && (x.value = [...s.layout.colWidths]);
|
|
1868
|
+
}), (b, L) => {
|
|
1869
|
+
const h = $("FmButton");
|
|
1870
|
+
return f(), H("div", Wo, [
|
|
1871
|
+
C("p", qo, Q(l(e)("report.section.datasource.tableLayout")), 1),
|
|
1872
|
+
C("div", Ho, [
|
|
1873
|
+
l(w) ? O("", !0) : (f(), N(h, {
|
|
1874
1874
|
key: 0,
|
|
1875
1875
|
label: l(e)("report.section.datasource.resizeTable"),
|
|
1876
1876
|
variant: "secondary",
|
|
@@ -1879,7 +1879,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1879
1879
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1880
1880
|
onClick: l(B)
|
|
1881
1881
|
}, null, 8, ["label", "onClick"])),
|
|
1882
|
-
l(w) ? (
|
|
1882
|
+
l(w) ? (f(), N(h, {
|
|
1883
1883
|
key: 1,
|
|
1884
1884
|
label: l(e)("report.common.cancel"),
|
|
1885
1885
|
variant: "primary",
|
|
@@ -1888,22 +1888,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1888
1888
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1889
1889
|
onClick: l(U)
|
|
1890
1890
|
}, null, 8, ["label", "onClick"])) : O("", !0),
|
|
1891
|
-
u(
|
|
1891
|
+
u(h, {
|
|
1892
1892
|
label: l(e)("report.section.datasource.resetSize"),
|
|
1893
1893
|
variant: "secondary",
|
|
1894
1894
|
icon: "restore",
|
|
1895
1895
|
"icon-position": "prepend",
|
|
1896
1896
|
class: "[&_.label]:line-clamp-none w-full",
|
|
1897
|
-
onClick:
|
|
1897
|
+
onClick: v
|
|
1898
1898
|
}, null, 8, ["label"])
|
|
1899
1899
|
]),
|
|
1900
|
-
l(w) ? (
|
|
1900
|
+
l(w) ? (f(), H("p", Yo, Q(l(e)("report.section.datasource.resizeTableHelper")), 1)) : O("", !0)
|
|
1901
1901
|
]);
|
|
1902
1902
|
};
|
|
1903
1903
|
}
|
|
1904
|
-
}),
|
|
1904
|
+
}), Jo = { class: "flex gap-16 justify-center items-center" }, Ko = { class: "fm-typo-en-title-sm-600" }, Qo = { class: "fm-typo-en-body-lg-600" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, et = { class: "h-[40x]" }, ul = "YYYY-MM-DD", Cl = /* @__PURE__ */ ie({
|
|
1905
1905
|
__name: "TileEditorTab",
|
|
1906
|
-
props: /* @__PURE__ */
|
|
1906
|
+
props: /* @__PURE__ */ pe({
|
|
1907
1907
|
hideConfiguration: {
|
|
1908
1908
|
type: Boolean,
|
|
1909
1909
|
default: !1
|
|
@@ -1914,37 +1914,37 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1914
1914
|
},
|
|
1915
1915
|
modelModifiers: {}
|
|
1916
1916
|
}),
|
|
1917
|
-
emits: /* @__PURE__ */
|
|
1917
|
+
emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
|
|
1918
1918
|
setup(D, { emit: m }) {
|
|
1919
|
-
var c,
|
|
1920
|
-
const e =
|
|
1919
|
+
var c, S;
|
|
1920
|
+
const e = oo(), { dateRange: s, timezone: t } = Se(e), w = {
|
|
1921
1921
|
startDate: s.value.startDate,
|
|
1922
1922
|
endDate: s.value.endDate
|
|
1923
|
-
},
|
|
1924
|
-
startDate: (c =
|
|
1925
|
-
endDate: (
|
|
1923
|
+
}, x = oe({
|
|
1924
|
+
startDate: (c = Oe(s.value.startDate)) == null ? void 0 : c.tz(t.value).format(ul),
|
|
1925
|
+
endDate: (S = Oe(s.value.endDate)) == null ? void 0 : S.tz(t.value).format(ul)
|
|
1926
1926
|
});
|
|
1927
1927
|
he(
|
|
1928
|
-
|
|
1928
|
+
x,
|
|
1929
1929
|
() => {
|
|
1930
|
-
|
|
1930
|
+
x.value.endDate || (x.value.endDate = x.value.startDate);
|
|
1931
1931
|
const i = {
|
|
1932
|
-
startDate:
|
|
1933
|
-
endDate:
|
|
1932
|
+
startDate: Oe.tz(x.value.startDate, t.value).startOf("day").utc().toISOString(),
|
|
1933
|
+
endDate: Oe.tz(x.value.endDate, t.value).endOf("day").utc().toISOString()
|
|
1934
1934
|
};
|
|
1935
1935
|
s.value = i;
|
|
1936
1936
|
},
|
|
1937
1937
|
{ deep: !0 }
|
|
1938
|
-
),
|
|
1938
|
+
), ml(() => {
|
|
1939
1939
|
s.value = { ...w };
|
|
1940
1940
|
});
|
|
1941
|
-
const p =
|
|
1941
|
+
const p = fe(D, "modelValue"), { breakpoints: B } = gl(), U = D, { promptMessage: o } = fl(), r = m, { t: v, locale: b } = me();
|
|
1942
1942
|
function L(i) {
|
|
1943
|
-
p.value =
|
|
1943
|
+
p.value = fo(i);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function h() {
|
|
1946
1946
|
const i = [...p.value.widget.config.joinDatasources || []];
|
|
1947
|
-
i.push({ ...
|
|
1947
|
+
i.push({ ...Wl(p.value.widget.type), conditions: [] }), L({
|
|
1948
1948
|
...p.value,
|
|
1949
1949
|
widget: {
|
|
1950
1950
|
...p.value.widget,
|
|
@@ -1955,10 +1955,10 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1955
1955
|
}
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
|
-
async function
|
|
1958
|
+
async function F(i) {
|
|
1959
1959
|
if (!await o({
|
|
1960
|
-
title:
|
|
1961
|
-
message:
|
|
1960
|
+
title: v("report.tile.datasource.remove"),
|
|
1961
|
+
message: v("report.tile.datasource.confirmRemove", { index: i + 1 })
|
|
1962
1962
|
})) return;
|
|
1963
1963
|
const A = [...p.value.widget.config.joinDatasources || []];
|
|
1964
1964
|
A.splice(i, 1), L({
|
|
@@ -1973,44 +1973,44 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
1973
1973
|
});
|
|
1974
1974
|
}
|
|
1975
1975
|
const z = (i, n) => {
|
|
1976
|
-
let A = 1,
|
|
1976
|
+
let A = 1, E = 1;
|
|
1977
1977
|
switch (i) {
|
|
1978
|
-
case
|
|
1979
|
-
A = 1,
|
|
1978
|
+
case K.Scorecard:
|
|
1979
|
+
A = 1, E = 2;
|
|
1980
1980
|
break;
|
|
1981
|
-
case
|
|
1982
|
-
case
|
|
1983
|
-
case
|
|
1984
|
-
case
|
|
1985
|
-
case
|
|
1986
|
-
A = 4,
|
|
1981
|
+
case K.BarChart:
|
|
1982
|
+
case K.StackBarChart:
|
|
1983
|
+
case K.ClusteredStackBarChart:
|
|
1984
|
+
case K.LineChart:
|
|
1985
|
+
case K.StackLineChart:
|
|
1986
|
+
A = 4, E = 6;
|
|
1987
1987
|
break;
|
|
1988
|
-
case
|
|
1989
|
-
A = 4,
|
|
1988
|
+
case K.Table:
|
|
1989
|
+
A = 4, E = 12;
|
|
1990
1990
|
break;
|
|
1991
|
-
case
|
|
1992
|
-
A = 4,
|
|
1991
|
+
case K.Circular:
|
|
1992
|
+
A = 4, E = 4;
|
|
1993
1993
|
break;
|
|
1994
|
-
case
|
|
1995
|
-
A = 0,
|
|
1994
|
+
case K.Spacer:
|
|
1995
|
+
A = 0, E = 12;
|
|
1996
1996
|
break;
|
|
1997
1997
|
}
|
|
1998
1998
|
return {
|
|
1999
1999
|
id: n.id,
|
|
2000
2000
|
size: {
|
|
2001
2001
|
height: A,
|
|
2002
|
-
width:
|
|
2002
|
+
width: E
|
|
2003
2003
|
},
|
|
2004
2004
|
widget: {
|
|
2005
2005
|
...n.widget,
|
|
2006
2006
|
type: i
|
|
2007
2007
|
}
|
|
2008
2008
|
};
|
|
2009
|
-
},
|
|
2010
|
-
() =>
|
|
2011
|
-
), d =
|
|
2009
|
+
}, k = T(
|
|
2010
|
+
() => Pe.find((i) => i.type === p.value.widget.type)
|
|
2011
|
+
), d = T(() => p.value.widget.config.joinDatasources), a = ze((i) => {
|
|
2012
2012
|
p.value.widget.title = i;
|
|
2013
|
-
}, 500), g =
|
|
2013
|
+
}, 500), g = T({
|
|
2014
2014
|
get: () => ({
|
|
2015
2015
|
rowHeight: p.value.widget.config.rowHeight,
|
|
2016
2016
|
colWidths: p.value.widget.config.colWidths
|
|
@@ -2030,165 +2030,165 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2030
2030
|
i < 1 && (p.value.size.width = 1), i > 12 && (p.value.size.width = 12);
|
|
2031
2031
|
}
|
|
2032
2032
|
), (i, n) => {
|
|
2033
|
-
const A = $("FmCircularProgress"),
|
|
2034
|
-
return
|
|
2033
|
+
const A = $("FmCircularProgress"), E = $("FmSimpleDateRangePicker"), J = $("FmTextField"), te = $("FmTextarea"), M = $("FmStepperField"), ge = $("FmButton"), X = $("FmForm");
|
|
2034
|
+
return f(), N(cl(l(B).lg || l(B).md ? Mo : No), {
|
|
2035
2035
|
"model-value": U.hideConfiguration,
|
|
2036
|
-
"onUpdate:modelValue": n[9] || (n[9] = (
|
|
2036
|
+
"onUpdate:modelValue": n[9] || (n[9] = (j) => r("hideConfiguration", j))
|
|
2037
2037
|
}, {
|
|
2038
2038
|
default: G(() => [
|
|
2039
|
-
p.value ? (
|
|
2039
|
+
p.value ? (f(), N(X, {
|
|
2040
2040
|
key: 1,
|
|
2041
2041
|
ref: "form",
|
|
2042
2042
|
class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
|
|
2043
2043
|
}, {
|
|
2044
2044
|
default: G(() => [
|
|
2045
|
-
|
|
2046
|
-
(
|
|
2047
|
-
key: `date-picker-${l(
|
|
2048
|
-
modelValue:
|
|
2049
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2045
|
+
C("div", Jo, [
|
|
2046
|
+
(f(), N(E, {
|
|
2047
|
+
key: `date-picker-${l(b)}`,
|
|
2048
|
+
modelValue: x.value,
|
|
2049
|
+
"onUpdate:modelValue": n[0] || (n[0] = (j) => x.value = j)
|
|
2050
2050
|
}, null, 8, ["modelValue"]))
|
|
2051
2051
|
]),
|
|
2052
|
-
u(
|
|
2052
|
+
u(Ye, null, {
|
|
2053
2053
|
header: G(() => [
|
|
2054
|
-
|
|
2055
|
-
n[10] || (n[10] =
|
|
2054
|
+
C("p", Ko, Q(l(v)("report.tile.widget.details")), 1),
|
|
2055
|
+
n[10] || (n[10] = C("div", { class: "grow" }, null, -1))
|
|
2056
2056
|
]),
|
|
2057
2057
|
content: G(() => [
|
|
2058
|
-
u(
|
|
2058
|
+
u(J, {
|
|
2059
2059
|
"model-value": p.value.widget.title,
|
|
2060
|
-
label: l(
|
|
2061
|
-
placeholder: l(
|
|
2060
|
+
label: l(v)("report.tile.widget.title"),
|
|
2061
|
+
placeholder: l(v)("report.tile.widget.titlePlaceholder"),
|
|
2062
2062
|
"onUpdate:modelValue": l(a)
|
|
2063
2063
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2064
|
-
u(
|
|
2064
|
+
u(te, {
|
|
2065
2065
|
modelValue: p.value.widget.description,
|
|
2066
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2066
|
+
"onUpdate:modelValue": n[1] || (n[1] = (j) => p.value.widget.description = j),
|
|
2067
2067
|
disabled: p.value.widget.title === "",
|
|
2068
|
-
placeholder: l(
|
|
2069
|
-
"helper-text": l(
|
|
2068
|
+
placeholder: l(v)("report.tile.widget.descriptionPlaceholder"),
|
|
2069
|
+
"helper-text": l(v)("report.tile.widget.descriptionHelper")
|
|
2070
2070
|
}, {
|
|
2071
2071
|
label: G(() => [
|
|
2072
|
-
|
|
2073
|
-
|
|
2072
|
+
C("p", Qo, Q(l(v)("report.tile.widget.widgetDescription")), 1),
|
|
2073
|
+
C("p", Zo, " (" + Q(l(v)("report.tile.widget.optional")) + ") ", 1)
|
|
2074
2074
|
]),
|
|
2075
2075
|
_: 1
|
|
2076
2076
|
}, 8, ["modelValue", "disabled", "placeholder", "helper-text"]),
|
|
2077
|
-
u(
|
|
2077
|
+
u(Xo, {
|
|
2078
2078
|
model: p.value.widget.config,
|
|
2079
|
-
"onUpdate:model": n[2] || (n[2] = (
|
|
2079
|
+
"onUpdate:model": n[2] || (n[2] = (j) => p.value.widget.config = j)
|
|
2080
2080
|
}, null, 8, ["model"]),
|
|
2081
|
-
|
|
2081
|
+
C("div", {
|
|
2082
2082
|
class: ke(["flex flex-row", `${l(B).sm || l(B).xs ? "gap-16" : "gap-2"}`])
|
|
2083
2083
|
}, [
|
|
2084
2084
|
u(M, {
|
|
2085
2085
|
modelValue: p.value.size.width,
|
|
2086
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
2087
|
-
label: l(
|
|
2086
|
+
"onUpdate:modelValue": n[3] || (n[3] = (j) => p.value.size.width = j),
|
|
2087
|
+
label: l(v)("report.tile.widget.width"),
|
|
2088
2088
|
min: 1,
|
|
2089
2089
|
max: 12
|
|
2090
2090
|
}, null, 8, ["modelValue", "label"]),
|
|
2091
2091
|
u(M, {
|
|
2092
2092
|
modelValue: p.value.size.height,
|
|
2093
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
2094
|
-
label: l(
|
|
2093
|
+
"onUpdate:modelValue": n[4] || (n[4] = (j) => p.value.size.height = j),
|
|
2094
|
+
label: l(v)("report.tile.widget.height"),
|
|
2095
2095
|
min: 1,
|
|
2096
2096
|
max: 12,
|
|
2097
|
-
disabled: p.value.widget.type === l(
|
|
2097
|
+
disabled: p.value.widget.type === l(K).Scorecard
|
|
2098
2098
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
2099
2099
|
], 2),
|
|
2100
|
-
p.value.widget.type === l(
|
|
2100
|
+
p.value.widget.type === l(K).Table ? (f(), N(Go, {
|
|
2101
2101
|
key: 0,
|
|
2102
2102
|
layout: g.value,
|
|
2103
|
-
"onUpdate:layout": n[5] || (n[5] = (
|
|
2103
|
+
"onUpdate:layout": n[5] || (n[5] = (j) => g.value = j)
|
|
2104
2104
|
}, null, 8, ["layout"])) : O("", !0)
|
|
2105
2105
|
]),
|
|
2106
2106
|
_: 1
|
|
2107
2107
|
}),
|
|
2108
|
-
u(
|
|
2108
|
+
u(Ye, null, {
|
|
2109
2109
|
header: G(() => [
|
|
2110
|
-
|
|
2111
|
-
n[11] || (n[11] =
|
|
2110
|
+
C("p", null, Q(l(v)("report.tile.widget.type")), 1),
|
|
2111
|
+
n[11] || (n[11] = C("div", { class: "grow" }, null, -1))
|
|
2112
2112
|
]),
|
|
2113
2113
|
content: G(() => [
|
|
2114
|
-
u(
|
|
2114
|
+
u(Xl, {
|
|
2115
2115
|
"is-list": !0,
|
|
2116
2116
|
"model-value": p.value.widget.type,
|
|
2117
2117
|
class: "grid grid-cols-1 gap-2",
|
|
2118
2118
|
"child-class": "flex flex-row p-[8px] gap-2",
|
|
2119
|
-
"exclude-widge-type": [l(
|
|
2120
|
-
"onUpdate:modelValue": n[6] || (n[6] = (
|
|
2119
|
+
"exclude-widge-type": [l(K).Spacer],
|
|
2120
|
+
"onUpdate:modelValue": n[6] || (n[6] = (j) => p.value = z(j, p.value))
|
|
2121
2121
|
}, null, 8, ["model-value", "exclude-widge-type"])
|
|
2122
2122
|
]),
|
|
2123
2123
|
_: 1
|
|
2124
2124
|
}),
|
|
2125
|
-
u(
|
|
2125
|
+
u(rl, {
|
|
2126
2126
|
modelValue: p.value.widget.config,
|
|
2127
|
-
"onUpdate:modelValue": n[7] || (n[7] = (
|
|
2128
|
-
label: l(
|
|
2129
|
-
config:
|
|
2127
|
+
"onUpdate:modelValue": n[7] || (n[7] = (j) => p.value.widget.config = j),
|
|
2128
|
+
label: l(v)("report.tile.datasource.main"),
|
|
2129
|
+
config: k.value
|
|
2130
2130
|
}, null, 8, ["modelValue", "label", "config"]),
|
|
2131
|
-
d.value ? (
|
|
2132
|
-
u(
|
|
2133
|
-
modelValue: d.value[
|
|
2134
|
-
"onUpdate:modelValue": (
|
|
2135
|
-
label: l(
|
|
2136
|
-
config:
|
|
2131
|
+
d.value ? (f(!0), H(ue, { key: 0 }, xe(d.value, (j, Y) => (f(), H("div", { key: Y }, [
|
|
2132
|
+
u(rl, {
|
|
2133
|
+
modelValue: d.value[Y],
|
|
2134
|
+
"onUpdate:modelValue": (ee) => d.value[Y] = ee,
|
|
2135
|
+
label: l(v)("report.tile.datasource.join", { index: Y + 1 }),
|
|
2136
|
+
config: k.value,
|
|
2137
2137
|
"main-datasource-config": p.value.widget.config,
|
|
2138
2138
|
closeable: !0,
|
|
2139
|
-
onClickClose: (
|
|
2139
|
+
onClickClose: (ee) => F(Y)
|
|
2140
2140
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "config", "main-datasource-config", "onClickClose"])
|
|
2141
2141
|
]))), 128)) : O("", !0),
|
|
2142
|
-
|
|
2143
|
-
u(
|
|
2144
|
-
label: l(
|
|
2142
|
+
C("div", et, [
|
|
2143
|
+
u(ge, {
|
|
2144
|
+
label: l(v)("report.tile.datasource.joinButton"),
|
|
2145
2145
|
variant: "secondary",
|
|
2146
2146
|
icon: "add",
|
|
2147
2147
|
"icon-position": "prepend",
|
|
2148
2148
|
"border-color": "primary",
|
|
2149
2149
|
"text-color": "primary",
|
|
2150
2150
|
class: "w-full",
|
|
2151
|
-
onClick: n[8] || (n[8] = (
|
|
2151
|
+
onClick: n[8] || (n[8] = (j) => h())
|
|
2152
2152
|
}, null, 8, ["label"])
|
|
2153
2153
|
])
|
|
2154
2154
|
]),
|
|
2155
2155
|
_: 1
|
|
2156
|
-
}, 512)) : (
|
|
2156
|
+
}, 512)) : (f(), N(A, { key: 0 }))
|
|
2157
2157
|
]),
|
|
2158
2158
|
_: 1
|
|
2159
2159
|
}, 8, ["model-value"]);
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
|
-
}),
|
|
2162
|
+
}), lt = { class: "flex flex-col gap-8" }, ot = { class: "pl-32 flex flex-col gap-8" }, tt = { class: "fm-typo-en-body-lg-600" }, at = { class: "flex flex-row gap-8" }, nt = { class: "fm-typo-en-body-lg-600" }, it = { class: "flex flex-row gap-8" }, st = /* @__PURE__ */ ie({
|
|
2163
2163
|
__name: "LabelSection",
|
|
2164
2164
|
props: {
|
|
2165
2165
|
model: {}
|
|
2166
2166
|
},
|
|
2167
2167
|
emits: ["update:model"],
|
|
2168
2168
|
setup(D, { emit: m }) {
|
|
2169
|
-
const e = D, s = m, { t } =
|
|
2169
|
+
const e = D, s = m, { t } = me(), w = T({
|
|
2170
2170
|
get: () => e.model.showLabel ?? !1,
|
|
2171
|
-
set: (
|
|
2172
|
-
s("update:model", { ...e.model, showLabel:
|
|
2171
|
+
set: (b) => {
|
|
2172
|
+
s("update:model", { ...e.model, showLabel: b });
|
|
2173
2173
|
}
|
|
2174
|
-
}),
|
|
2174
|
+
}), x = T({
|
|
2175
2175
|
get: () => e.model.labelRotation ?? 0,
|
|
2176
|
-
set: (
|
|
2177
|
-
}), p =
|
|
2176
|
+
set: (b) => s("update:model", { ...e.model, labelRotation: b })
|
|
2177
|
+
}), p = T({
|
|
2178
2178
|
get: () => e.model.labelOffset ?? 0,
|
|
2179
|
-
set: (
|
|
2180
|
-
}), B =
|
|
2179
|
+
set: (b) => s("update:model", { ...e.model, labelOffset: b })
|
|
2180
|
+
}), B = T({
|
|
2181
2181
|
get: () => e.model.labelFontSize ?? 12,
|
|
2182
|
-
set: (
|
|
2183
|
-
}), U = (
|
|
2182
|
+
set: (b) => s("update:model", { ...e.model, labelFontSize: b })
|
|
2183
|
+
}), U = (b) => {
|
|
2184
2184
|
s("update:model", {
|
|
2185
2185
|
...e.model,
|
|
2186
|
-
labelAlign: e.model.labelAlign ===
|
|
2186
|
+
labelAlign: e.model.labelAlign === b ? void 0 : b
|
|
2187
2187
|
});
|
|
2188
|
-
}, o = (
|
|
2188
|
+
}, o = (b) => {
|
|
2189
2189
|
s("update:model", {
|
|
2190
2190
|
...e.model,
|
|
2191
|
-
labelAnchor: e.model.labelAnchor ===
|
|
2191
|
+
labelAnchor: e.model.labelAnchor === b ? void 0 : b
|
|
2192
2192
|
});
|
|
2193
2193
|
}, r = [
|
|
2194
2194
|
{ icon: "align_horizontal_left", value: Fe.left, tooltip: "alignLeft" },
|
|
@@ -2198,15 +2198,15 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2198
2198
|
{ icon: "align_justify_flex_end", value: Fe.end, tooltip: "alignEnd" },
|
|
2199
2199
|
{ icon: "align_flex_start", value: Fe.top, tooltip: "alignTop" },
|
|
2200
2200
|
{ icon: "align_flex_end", value: Fe.bottom, tooltip: "alignBottom" }
|
|
2201
|
-
],
|
|
2201
|
+
], v = [
|
|
2202
2202
|
{ icon: "format_align_left", value: Ne.start, tooltip: "anchorStart" },
|
|
2203
2203
|
{ icon: "format_align_center", value: Ne.center, tooltip: "anchorCenter" },
|
|
2204
2204
|
{ icon: "format_align_right", value: Ne.end, tooltip: "anchorEnd" }
|
|
2205
2205
|
];
|
|
2206
|
-
return (
|
|
2207
|
-
const
|
|
2208
|
-
return
|
|
2209
|
-
u(
|
|
2206
|
+
return (b, L) => {
|
|
2207
|
+
const h = $("FmCheckbox"), F = $("FmButton"), z = $("FmTooltip"), k = $("FmTextField"), d = $("FmStepperField");
|
|
2208
|
+
return f(), H("div", lt, [
|
|
2209
|
+
u(h, {
|
|
2210
2210
|
modelValue: w.value,
|
|
2211
2211
|
"onUpdate:modelValue": L[0] || (L[0] = (a) => w.value = a),
|
|
2212
2212
|
value: !1,
|
|
@@ -2214,10 +2214,10 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2214
2214
|
"label-placement": "right",
|
|
2215
2215
|
class: "fm-typo-en-body-lg-400"
|
|
2216
2216
|
}, null, 8, ["modelValue", "label"]),
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
(
|
|
2217
|
+
Ce(C("div", ot, [
|
|
2218
|
+
C("p", tt, Q(l(t)("report.section.datasource.alignment.textAlignment")), 1),
|
|
2219
|
+
C("div", at, [
|
|
2220
|
+
(f(), H(ue, null, xe(r, ({ icon: a, value: g, tooltip: c }) => u(z, {
|
|
2221
2221
|
key: g,
|
|
2222
2222
|
variant: "plain",
|
|
2223
2223
|
placement: "top",
|
|
@@ -2225,21 +2225,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2225
2225
|
"z-index": 50
|
|
2226
2226
|
}, {
|
|
2227
2227
|
default: G(() => [
|
|
2228
|
-
u(
|
|
2228
|
+
u(F, {
|
|
2229
2229
|
"append-icon": a,
|
|
2230
2230
|
variant: "tertiary",
|
|
2231
|
-
"icon-color":
|
|
2232
|
-
"bg-color":
|
|
2231
|
+
"icon-color": b.model.labelAlign === g ? "neutral-gray-400" : "neutral-gray-300",
|
|
2232
|
+
"bg-color": b.model.labelAlign === g ? "neutral-gray-100" : "neutral-white",
|
|
2233
2233
|
class: "rounded-sm",
|
|
2234
|
-
onClick: (
|
|
2234
|
+
onClick: (S) => U(g)
|
|
2235
2235
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2236
2236
|
]),
|
|
2237
2237
|
_: 2
|
|
2238
2238
|
}, 1032, ["content"])), 64))
|
|
2239
2239
|
]),
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
(
|
|
2240
|
+
C("p", nt, Q(l(t)("report.section.datasource.alignment.anchor")), 1),
|
|
2241
|
+
C("div", it, [
|
|
2242
|
+
(f(), H(ue, null, xe(v, ({ icon: a, value: g, tooltip: c }) => u(z, {
|
|
2243
2243
|
key: g,
|
|
2244
2244
|
variant: "plain",
|
|
2245
2245
|
placement: "top",
|
|
@@ -2247,28 +2247,28 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2247
2247
|
"z-index": 50
|
|
2248
2248
|
}, {
|
|
2249
2249
|
default: G(() => [
|
|
2250
|
-
u(
|
|
2250
|
+
u(F, {
|
|
2251
2251
|
"append-icon": a,
|
|
2252
2252
|
variant: "tertiary",
|
|
2253
|
-
"icon-color":
|
|
2254
|
-
"bg-color":
|
|
2253
|
+
"icon-color": b.model.labelAnchor === g ? "neutral-gray-400" : "neutral-gray-300",
|
|
2254
|
+
"bg-color": b.model.labelAnchor === g ? "neutral-gray-100" : "neutral-white",
|
|
2255
2255
|
class: "rounded-sm",
|
|
2256
|
-
onClick: (
|
|
2256
|
+
onClick: (S) => o(g)
|
|
2257
2257
|
}, null, 8, ["append-icon", "icon-color", "bg-color", "onClick"])
|
|
2258
2258
|
]),
|
|
2259
2259
|
_: 2
|
|
2260
2260
|
}, 1032, ["content"])), 64))
|
|
2261
2261
|
]),
|
|
2262
|
-
u(
|
|
2263
|
-
modelValue:
|
|
2264
|
-
"onUpdate:modelValue": L[1] || (L[1] = (a) =>
|
|
2262
|
+
u(k, {
|
|
2263
|
+
modelValue: x.value,
|
|
2264
|
+
"onUpdate:modelValue": L[1] || (L[1] = (a) => x.value = a),
|
|
2265
2265
|
label: l(t)("report.section.datasource.alignment.rotation"),
|
|
2266
2266
|
type: "number",
|
|
2267
2267
|
min: -180,
|
|
2268
2268
|
max: 180,
|
|
2269
2269
|
step: 1
|
|
2270
2270
|
}, null, 8, ["modelValue", "label"]),
|
|
2271
|
-
u(
|
|
2271
|
+
u(k, {
|
|
2272
2272
|
modelValue: p.value,
|
|
2273
2273
|
"onUpdate:modelValue": L[2] || (L[2] = (a) => p.value = a),
|
|
2274
2274
|
label: l(t)("report.section.datasource.alignment.offset"),
|
|
@@ -2282,201 +2282,201 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2282
2282
|
min: 1
|
|
2283
2283
|
}, null, 8, ["modelValue", "label"])
|
|
2284
2284
|
], 512), [
|
|
2285
|
-
[
|
|
2285
|
+
[we, w.value]
|
|
2286
2286
|
])
|
|
2287
2287
|
]);
|
|
2288
2288
|
};
|
|
2289
2289
|
}
|
|
2290
|
-
}),
|
|
2290
|
+
}), rt = { class: "flex flex-col gap-8" }, ut = { class: "pl-32 flex flex-col gap-8" }, dt = { class: "pl-32 flex flex-col gap-8" }, mt = { class: "pl-32 flex flex-col gap-8" }, ct = { class: "pl-32 flex flex-col gap-8" }, pt = { class: "pl-32 flex flex-col gap-8" }, vt = { class: "pl-32 flex flex-col gap-8" }, ft = /* @__PURE__ */ ie({
|
|
2291
2291
|
__name: "XySection",
|
|
2292
2292
|
props: {
|
|
2293
2293
|
model: {}
|
|
2294
2294
|
},
|
|
2295
2295
|
emits: ["update:model"],
|
|
2296
2296
|
setup(D, { emit: m }) {
|
|
2297
|
-
const e = D, s = m, { t } =
|
|
2297
|
+
const e = D, s = m, { t } = me(), w = T({
|
|
2298
2298
|
get: () => e.model.showX ?? !0,
|
|
2299
|
-
set: (
|
|
2300
|
-
s("update:model", { ...e.model, showX:
|
|
2299
|
+
set: (h) => {
|
|
2300
|
+
s("update:model", { ...e.model, showX: h });
|
|
2301
2301
|
}
|
|
2302
|
-
}),
|
|
2302
|
+
}), x = T({
|
|
2303
2303
|
get: () => e.model.showXGrid ?? !1,
|
|
2304
|
-
set: (
|
|
2305
|
-
s("update:model", { ...e.model, showXGrid:
|
|
2304
|
+
set: (h) => {
|
|
2305
|
+
s("update:model", { ...e.model, showXGrid: h });
|
|
2306
2306
|
}
|
|
2307
|
-
}), p =
|
|
2307
|
+
}), p = T({
|
|
2308
2308
|
get: () => e.model.showXTick ?? !0,
|
|
2309
|
-
set: (
|
|
2310
|
-
s("update:model", { ...e.model, showXTick:
|
|
2309
|
+
set: (h) => {
|
|
2310
|
+
s("update:model", { ...e.model, showXTick: h });
|
|
2311
2311
|
}
|
|
2312
|
-
}), B =
|
|
2312
|
+
}), B = T({
|
|
2313
2313
|
get: () => e.model.showY ?? !0,
|
|
2314
|
-
set: (
|
|
2315
|
-
s("update:model", { ...e.model, showY:
|
|
2314
|
+
set: (h) => {
|
|
2315
|
+
s("update:model", { ...e.model, showY: h });
|
|
2316
2316
|
}
|
|
2317
|
-
}), U =
|
|
2317
|
+
}), U = T({
|
|
2318
2318
|
get: () => e.model.showYGrid ?? !1,
|
|
2319
|
-
set: (
|
|
2320
|
-
s("update:model", { ...e.model, showYGrid:
|
|
2319
|
+
set: (h) => {
|
|
2320
|
+
s("update:model", { ...e.model, showYGrid: h });
|
|
2321
2321
|
}
|
|
2322
|
-
}), o =
|
|
2322
|
+
}), o = T({
|
|
2323
2323
|
get: () => e.model.showYTick ?? !0,
|
|
2324
|
-
set: (
|
|
2325
|
-
s("update:model", { ...e.model, showYTick:
|
|
2324
|
+
set: (h) => {
|
|
2325
|
+
s("update:model", { ...e.model, showYTick: h });
|
|
2326
2326
|
}
|
|
2327
|
-
}), r =
|
|
2327
|
+
}), r = T({
|
|
2328
2328
|
get: () => e.model.showXTitle ?? !1,
|
|
2329
|
-
set: (
|
|
2330
|
-
s("update:model", { ...e.model, showXTitle:
|
|
2329
|
+
set: (h) => {
|
|
2330
|
+
s("update:model", { ...e.model, showXTitle: h });
|
|
2331
2331
|
}
|
|
2332
|
-
}),
|
|
2332
|
+
}), v = T({
|
|
2333
2333
|
get: () => e.model.showYTitle ?? !1,
|
|
2334
|
-
set: (
|
|
2335
|
-
s("update:model", { ...e.model, showYTitle:
|
|
2334
|
+
set: (h) => {
|
|
2335
|
+
s("update:model", { ...e.model, showYTitle: h });
|
|
2336
2336
|
}
|
|
2337
|
-
}),
|
|
2338
|
-
s("update:model", { ...e.model, xTitle:
|
|
2339
|
-
}, 500), L =
|
|
2340
|
-
s("update:model", { ...e.model, yTitle:
|
|
2337
|
+
}), b = ze((h) => {
|
|
2338
|
+
s("update:model", { ...e.model, xTitle: h });
|
|
2339
|
+
}, 500), L = ze((h) => {
|
|
2340
|
+
s("update:model", { ...e.model, yTitle: h });
|
|
2341
2341
|
}, 500);
|
|
2342
|
-
return
|
|
2343
|
-
var
|
|
2344
|
-
!e.model.xTitle && ((
|
|
2345
|
-
}), (
|
|
2346
|
-
const z = $("FmCheckbox"),
|
|
2347
|
-
return
|
|
2342
|
+
return Ke(() => {
|
|
2343
|
+
var h, F, z, k;
|
|
2344
|
+
!e.model.xTitle && ((F = (h = e.model.metrics) == null ? void 0 : h[0]) != null && F.label) && b(e.model.metrics[0].label), !e.model.yTitle && ((k = (z = e.model.dimensions) == null ? void 0 : z[0]) != null && k.label) && L(e.model.dimensions[0].label);
|
|
2345
|
+
}), (h, F) => {
|
|
2346
|
+
const z = $("FmCheckbox"), k = $("FmStepperField"), d = $("FmTextField");
|
|
2347
|
+
return f(), H("div", rt, [
|
|
2348
2348
|
u(z, {
|
|
2349
2349
|
modelValue: w.value,
|
|
2350
|
-
"onUpdate:modelValue":
|
|
2350
|
+
"onUpdate:modelValue": F[0] || (F[0] = (a) => w.value = a),
|
|
2351
2351
|
label: l(t)("report.section.datasource.axis.showX"),
|
|
2352
2352
|
"label-placement": "right",
|
|
2353
2353
|
value: !0
|
|
2354
2354
|
}, null, 8, ["modelValue", "label"]),
|
|
2355
|
-
|
|
2355
|
+
Ce(C("div", ut, [
|
|
2356
2356
|
u(z, {
|
|
2357
|
-
modelValue:
|
|
2358
|
-
"onUpdate:modelValue":
|
|
2357
|
+
modelValue: x.value,
|
|
2358
|
+
"onUpdate:modelValue": F[1] || (F[1] = (a) => x.value = a),
|
|
2359
2359
|
label: l(t)("report.section.datasource.axis.showGrid"),
|
|
2360
2360
|
"label-placement": "right",
|
|
2361
2361
|
value: !1
|
|
2362
2362
|
}, null, 8, ["modelValue", "label"]),
|
|
2363
2363
|
u(z, {
|
|
2364
2364
|
modelValue: p.value,
|
|
2365
|
-
"onUpdate:modelValue":
|
|
2365
|
+
"onUpdate:modelValue": F[2] || (F[2] = (a) => p.value = a),
|
|
2366
2366
|
label: l(t)("report.section.datasource.axis.showTick"),
|
|
2367
2367
|
"label-placement": "right",
|
|
2368
2368
|
value: !0
|
|
2369
2369
|
}, null, 8, ["modelValue", "label"]),
|
|
2370
|
-
|
|
2371
|
-
u(
|
|
2370
|
+
Ce(C("div", dt, [
|
|
2371
|
+
u(k, {
|
|
2372
2372
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2373
2373
|
type: "number",
|
|
2374
|
-
"model-value":
|
|
2374
|
+
"model-value": h.model.xTickFontSize ?? 12,
|
|
2375
2375
|
min: 1,
|
|
2376
|
-
"onUpdate:modelValue":
|
|
2377
|
-
s("update:model", { ...
|
|
2376
|
+
"onUpdate:modelValue": F[3] || (F[3] = (a) => {
|
|
2377
|
+
s("update:model", { ...h.model, xTickFontSize: Number(a) });
|
|
2378
2378
|
})
|
|
2379
2379
|
}, null, 8, ["label", "model-value"])
|
|
2380
2380
|
], 512), [
|
|
2381
|
-
[
|
|
2381
|
+
[we, h.model.showXTick ?? !0]
|
|
2382
2382
|
]),
|
|
2383
2383
|
u(z, {
|
|
2384
2384
|
modelValue: r.value,
|
|
2385
|
-
"onUpdate:modelValue":
|
|
2385
|
+
"onUpdate:modelValue": F[4] || (F[4] = (a) => r.value = a),
|
|
2386
2386
|
label: l(t)("report.section.datasource.axis.showTitle"),
|
|
2387
2387
|
"label-placement": "right",
|
|
2388
2388
|
value: !0
|
|
2389
2389
|
}, null, 8, ["modelValue", "label"]),
|
|
2390
|
-
|
|
2390
|
+
Ce(C("div", mt, [
|
|
2391
2391
|
u(d, {
|
|
2392
|
-
"model-value":
|
|
2392
|
+
"model-value": h.model.xTitle,
|
|
2393
2393
|
label: l(t)("report.common.title"),
|
|
2394
2394
|
placeholder: l(t)("report.tile.widget.titlePlaceholder"),
|
|
2395
|
-
"onUpdate:modelValue": l(
|
|
2395
|
+
"onUpdate:modelValue": l(b)
|
|
2396
2396
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2397
|
-
u(
|
|
2397
|
+
u(k, {
|
|
2398
2398
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2399
2399
|
type: "number",
|
|
2400
|
-
"model-value":
|
|
2400
|
+
"model-value": h.model.xTitleFontSize ?? 12,
|
|
2401
2401
|
min: 1,
|
|
2402
|
-
"onUpdate:modelValue":
|
|
2403
|
-
s("update:model", { ...
|
|
2402
|
+
"onUpdate:modelValue": F[5] || (F[5] = (a) => {
|
|
2403
|
+
s("update:model", { ...h.model, xTitleFontSize: Number(a) });
|
|
2404
2404
|
})
|
|
2405
2405
|
}, null, 8, ["label", "model-value"])
|
|
2406
2406
|
], 512), [
|
|
2407
|
-
[
|
|
2407
|
+
[we, r.value]
|
|
2408
2408
|
])
|
|
2409
2409
|
], 512), [
|
|
2410
|
-
[
|
|
2410
|
+
[we, h.model.showX ?? !0]
|
|
2411
2411
|
]),
|
|
2412
2412
|
u(z, {
|
|
2413
2413
|
modelValue: B.value,
|
|
2414
|
-
"onUpdate:modelValue":
|
|
2414
|
+
"onUpdate:modelValue": F[6] || (F[6] = (a) => B.value = a),
|
|
2415
2415
|
label: l(t)("report.section.datasource.axis.showY"),
|
|
2416
2416
|
"label-placement": "right",
|
|
2417
2417
|
value: !0
|
|
2418
2418
|
}, null, 8, ["modelValue", "label"]),
|
|
2419
|
-
|
|
2419
|
+
Ce(C("div", ct, [
|
|
2420
2420
|
u(z, {
|
|
2421
2421
|
modelValue: U.value,
|
|
2422
|
-
"onUpdate:modelValue":
|
|
2422
|
+
"onUpdate:modelValue": F[7] || (F[7] = (a) => U.value = a),
|
|
2423
2423
|
label: l(t)("report.section.datasource.axis.showGrid"),
|
|
2424
2424
|
"label-placement": "right",
|
|
2425
2425
|
value: !1
|
|
2426
2426
|
}, null, 8, ["modelValue", "label"]),
|
|
2427
2427
|
u(z, {
|
|
2428
2428
|
modelValue: o.value,
|
|
2429
|
-
"onUpdate:modelValue":
|
|
2429
|
+
"onUpdate:modelValue": F[8] || (F[8] = (a) => o.value = a),
|
|
2430
2430
|
label: l(t)("report.section.datasource.axis.showTick"),
|
|
2431
2431
|
"label-placement": "right",
|
|
2432
2432
|
value: !0
|
|
2433
2433
|
}, null, 8, ["modelValue", "label"]),
|
|
2434
|
-
|
|
2435
|
-
u(
|
|
2434
|
+
Ce(C("div", pt, [
|
|
2435
|
+
u(k, {
|
|
2436
2436
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2437
2437
|
type: "number",
|
|
2438
|
-
"model-value":
|
|
2438
|
+
"model-value": h.model.yTickFontSize ?? 12,
|
|
2439
2439
|
min: 1,
|
|
2440
|
-
"onUpdate:modelValue":
|
|
2441
|
-
s("update:model", { ...
|
|
2440
|
+
"onUpdate:modelValue": F[9] || (F[9] = (a) => {
|
|
2441
|
+
s("update:model", { ...h.model, yTickFontSize: Number(a) });
|
|
2442
2442
|
})
|
|
2443
2443
|
}, null, 8, ["label", "model-value"])
|
|
2444
2444
|
], 512), [
|
|
2445
|
-
[
|
|
2445
|
+
[we, h.model.showYTick ?? !0]
|
|
2446
2446
|
]),
|
|
2447
2447
|
u(z, {
|
|
2448
|
-
modelValue:
|
|
2449
|
-
"onUpdate:modelValue":
|
|
2448
|
+
modelValue: v.value,
|
|
2449
|
+
"onUpdate:modelValue": F[10] || (F[10] = (a) => v.value = a),
|
|
2450
2450
|
label: l(t)("report.section.datasource.axis.showTitle"),
|
|
2451
2451
|
"label-placement": "right",
|
|
2452
2452
|
value: !0
|
|
2453
2453
|
}, null, 8, ["modelValue", "label"]),
|
|
2454
|
-
|
|
2454
|
+
Ce(C("div", vt, [
|
|
2455
2455
|
u(d, {
|
|
2456
|
-
"model-value":
|
|
2456
|
+
"model-value": h.model.yTitle,
|
|
2457
2457
|
label: l(t)("report.common.title"),
|
|
2458
2458
|
placeholder: l(t)("report.tile.widget.titlePlaceholder"),
|
|
2459
2459
|
"onUpdate:modelValue": l(L)
|
|
2460
2460
|
}, null, 8, ["model-value", "label", "placeholder", "onUpdate:modelValue"]),
|
|
2461
|
-
u(
|
|
2461
|
+
u(k, {
|
|
2462
2462
|
label: l(t)("report.section.datasource.fontSize"),
|
|
2463
2463
|
type: "number",
|
|
2464
|
-
"model-value":
|
|
2464
|
+
"model-value": h.model.yTitleFontSize ?? 12,
|
|
2465
2465
|
min: 1,
|
|
2466
|
-
"onUpdate:modelValue":
|
|
2467
|
-
s("update:model", { ...
|
|
2466
|
+
"onUpdate:modelValue": F[11] || (F[11] = (a) => {
|
|
2467
|
+
s("update:model", { ...h.model, yTitleFontSize: Number(a) });
|
|
2468
2468
|
})
|
|
2469
2469
|
}, null, 8, ["label", "model-value"])
|
|
2470
2470
|
], 512), [
|
|
2471
|
-
[
|
|
2471
|
+
[we, v.value]
|
|
2472
2472
|
])
|
|
2473
2473
|
], 512), [
|
|
2474
|
-
[
|
|
2474
|
+
[we, h.model.showY ?? !0]
|
|
2475
2475
|
])
|
|
2476
2476
|
]);
|
|
2477
2477
|
};
|
|
2478
2478
|
}
|
|
2479
|
-
}),
|
|
2479
|
+
}), gt = { class: "flex flex-col gap-8" }, yt = { class: "pl-32 flex flex-col gap-8" }, bt = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, ht = ["onKeydown"], Ct = /* @__PURE__ */ ie({
|
|
2480
2480
|
__name: "LegendSection",
|
|
2481
2481
|
props: {
|
|
2482
2482
|
model: {},
|
|
@@ -2484,22 +2484,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2484
2484
|
},
|
|
2485
2485
|
emits: ["update:model"],
|
|
2486
2486
|
setup(D, { emit: m }) {
|
|
2487
|
-
const e = D, s = m, { t } =
|
|
2487
|
+
const e = D, s = m, { t } = me(), w = [
|
|
2488
2488
|
{ label: t("report.section.datasource.position.top"), value: "top" },
|
|
2489
2489
|
{ label: t("report.section.datasource.position.bottom"), value: "bottom" },
|
|
2490
2490
|
{ label: t("report.section.datasource.position.left"), value: "left" },
|
|
2491
2491
|
{ label: t("report.section.datasource.position.right"), value: "right" }
|
|
2492
|
-
],
|
|
2492
|
+
], x = T({
|
|
2493
2493
|
get: () => e.model.showLegend !== void 0 ? e.model.showLegend : e.isCircularWidget === !0,
|
|
2494
2494
|
set: (L) => {
|
|
2495
2495
|
s("update:model", { ...e.model, showLegend: L });
|
|
2496
2496
|
}
|
|
2497
|
-
}), p =
|
|
2497
|
+
}), p = T({
|
|
2498
2498
|
get: () => e.model.usePointStyle ?? !0,
|
|
2499
2499
|
set: (L) => {
|
|
2500
2500
|
s("update:model", { ...e.model, usePointStyle: L });
|
|
2501
2501
|
}
|
|
2502
|
-
}), B =
|
|
2502
|
+
}), B = T({
|
|
2503
2503
|
get: () => e.model.legendFontSize ?? null,
|
|
2504
2504
|
set: (L) => {
|
|
2505
2505
|
if (L == null) {
|
|
@@ -2508,34 +2508,34 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2508
2508
|
}
|
|
2509
2509
|
s("update:model", { ...e.model, legendFontSize: Math.min(Number(L), 24) });
|
|
2510
2510
|
}
|
|
2511
|
-
}), U =
|
|
2511
|
+
}), U = T(() => e.model.legendColor ?? "#6b6b6b"), o = oe(U.value), r = oe(null);
|
|
2512
2512
|
he(
|
|
2513
2513
|
() => e.model.legendColor,
|
|
2514
2514
|
(L) => {
|
|
2515
2515
|
o.value = L ?? "#6b6b6b";
|
|
2516
2516
|
}
|
|
2517
2517
|
);
|
|
2518
|
-
function
|
|
2518
|
+
function v() {
|
|
2519
2519
|
s("update:model", { ...e.model, legendColor: o.value });
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2521
|
+
function b() {
|
|
2522
2522
|
var L;
|
|
2523
2523
|
(L = r.value) == null || L.click();
|
|
2524
2524
|
}
|
|
2525
|
-
return (L,
|
|
2526
|
-
const
|
|
2527
|
-
return
|
|
2528
|
-
u(
|
|
2529
|
-
modelValue:
|
|
2530
|
-
"onUpdate:modelValue":
|
|
2525
|
+
return (L, h) => {
|
|
2526
|
+
const F = $("FmCheckbox"), z = $("FmSelect"), k = $("FmStepperField"), d = $("FmButton");
|
|
2527
|
+
return f(), H("div", gt, [
|
|
2528
|
+
u(F, {
|
|
2529
|
+
modelValue: x.value,
|
|
2530
|
+
"onUpdate:modelValue": h[0] || (h[0] = (a) => x.value = a),
|
|
2531
2531
|
class: "fm-typo-en-body-lg-400",
|
|
2532
2532
|
value: !1,
|
|
2533
2533
|
label: l(t)("report.section.datasource.legend.showLegend")
|
|
2534
2534
|
}, null, 8, ["modelValue", "label"]),
|
|
2535
|
-
|
|
2536
|
-
u(
|
|
2535
|
+
Ce(C("div", yt, [
|
|
2536
|
+
u(F, {
|
|
2537
2537
|
modelValue: p.value,
|
|
2538
|
-
"onUpdate:modelValue":
|
|
2538
|
+
"onUpdate:modelValue": h[1] || (h[1] = (a) => p.value = a),
|
|
2539
2539
|
label: l(t)("report.section.datasource.legend.usePointStyle"),
|
|
2540
2540
|
value: !1
|
|
2541
2541
|
}, null, 8, ["modelValue", "label"]),
|
|
@@ -2543,70 +2543,70 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2543
2543
|
label: l(t)("report.section.datasource.position.showPosition"),
|
|
2544
2544
|
items: w,
|
|
2545
2545
|
"model-value": L.model.legendPosition ?? "top",
|
|
2546
|
-
"onUpdate:modelValue":
|
|
2546
|
+
"onUpdate:modelValue": h[2] || (h[2] = (a) => s("update:model", { ...L.model, legendPosition: a }))
|
|
2547
2547
|
}, null, 8, ["label", "model-value"]),
|
|
2548
|
-
u(
|
|
2548
|
+
u(k, {
|
|
2549
2549
|
modelValue: B.value,
|
|
2550
|
-
"onUpdate:modelValue":
|
|
2550
|
+
"onUpdate:modelValue": h[3] || (h[3] = (a) => B.value = a),
|
|
2551
2551
|
label: l(t)("report.section.datasource.legend.fontSize"),
|
|
2552
2552
|
max: 24,
|
|
2553
2553
|
min: 1,
|
|
2554
2554
|
type: "number",
|
|
2555
2555
|
placeholder: "Auto"
|
|
2556
2556
|
}, null, 8, ["modelValue", "label"]),
|
|
2557
|
-
|
|
2558
|
-
|
|
2557
|
+
C("p", bt, Q(l(t)("report.section.datasource.legend.color")), 1),
|
|
2558
|
+
C("div", {
|
|
2559
2559
|
class: "fm-field fm-field--sm flex items-center justify-between gap-8 border rounded-md p-2 border-[#c7c7cc] cursor-pointer",
|
|
2560
2560
|
role: "button",
|
|
2561
2561
|
tabindex: "0",
|
|
2562
|
-
onClick:
|
|
2562
|
+
onClick: b,
|
|
2563
2563
|
onKeydown: [
|
|
2564
|
-
|
|
2565
|
-
|
|
2564
|
+
ol(ye(b, ["prevent"]), ["enter"]),
|
|
2565
|
+
ol(ye(b, ["prevent"]), ["space"])
|
|
2566
2566
|
]
|
|
2567
2567
|
}, [
|
|
2568
|
-
|
|
2568
|
+
Ce(C("input", {
|
|
2569
2569
|
ref_key: "colorInputRef",
|
|
2570
2570
|
ref: r,
|
|
2571
|
-
"onUpdate:modelValue":
|
|
2571
|
+
"onUpdate:modelValue": h[4] || (h[4] = (a) => o.value = a),
|
|
2572
2572
|
type: "color",
|
|
2573
2573
|
class: "legend-color-input cursor-pointer"
|
|
2574
2574
|
}, null, 512), [
|
|
2575
|
-
[
|
|
2575
|
+
[jl, o.value]
|
|
2576
2576
|
])
|
|
2577
|
-
], 40,
|
|
2577
|
+
], 40, ht),
|
|
2578
2578
|
u(d, {
|
|
2579
2579
|
size: "md",
|
|
2580
2580
|
label: l(t)("report.common.apply"),
|
|
2581
2581
|
disabled: o.value === U.value,
|
|
2582
|
-
onClick:
|
|
2582
|
+
onClick: v
|
|
2583
2583
|
}, null, 8, ["label", "disabled"]),
|
|
2584
|
-
L.model.legendPosition === "left" || L.model.legendPosition === "right" ? (
|
|
2584
|
+
L.model.legendPosition === "left" || L.model.legendPosition === "right" ? (f(), N(k, {
|
|
2585
2585
|
key: 0,
|
|
2586
2586
|
label: l(t)("report.section.datasource.legend.maxWidth"),
|
|
2587
2587
|
"model-value": L.model.legendMaxWidth ?? null,
|
|
2588
|
-
"onUpdate:modelValue":
|
|
2588
|
+
"onUpdate:modelValue": h[5] || (h[5] = (a) => s("update:model", { ...L.model, legendMaxWidth: a ?? void 0 })),
|
|
2589
2589
|
placeholder: "Auto"
|
|
2590
2590
|
}, null, 8, ["label", "model-value"])) : O("", !0)
|
|
2591
2591
|
], 512), [
|
|
2592
|
-
[
|
|
2592
|
+
[we, x.value]
|
|
2593
2593
|
])
|
|
2594
2594
|
]);
|
|
2595
2595
|
};
|
|
2596
2596
|
}
|
|
2597
|
-
}),
|
|
2597
|
+
}), wt = /* @__PURE__ */ yl(Ct, [["__scopeId", "data-v-0f6af12a"]]), xt = { class: "flex flex-row gap-16" }, Vt = /* @__PURE__ */ ie({
|
|
2598
2598
|
__name: "ChartSizeSection",
|
|
2599
2599
|
props: {
|
|
2600
2600
|
model: {}
|
|
2601
2601
|
},
|
|
2602
2602
|
emits: ["update:model"],
|
|
2603
2603
|
setup(D, { emit: m }) {
|
|
2604
|
-
const e = D, s = m, { t } =
|
|
2604
|
+
const e = D, s = m, { t } = me(), w = T({
|
|
2605
2605
|
get: () => e.model.chartHeight ?? null,
|
|
2606
2606
|
set: (p) => {
|
|
2607
2607
|
s("update:model", { ...e.model, chartHeight: p ?? void 0 });
|
|
2608
2608
|
}
|
|
2609
|
-
}),
|
|
2609
|
+
}), x = T({
|
|
2610
2610
|
get: () => e.model.chartWidth ?? null,
|
|
2611
2611
|
set: (p) => {
|
|
2612
2612
|
s("update:model", { ...e.model, chartWidth: p ?? void 0 });
|
|
@@ -2614,7 +2614,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2614
2614
|
});
|
|
2615
2615
|
return (p, B) => {
|
|
2616
2616
|
const U = $("FmStepperField");
|
|
2617
|
-
return
|
|
2617
|
+
return f(), H("div", xt, [
|
|
2618
2618
|
u(U, {
|
|
2619
2619
|
modelValue: w.value,
|
|
2620
2620
|
"onUpdate:modelValue": B[0] || (B[0] = (o) => w.value = o),
|
|
@@ -2625,8 +2625,8 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2625
2625
|
placeholder: "Auto"
|
|
2626
2626
|
}, null, 8, ["modelValue", "label"]),
|
|
2627
2627
|
u(U, {
|
|
2628
|
-
modelValue:
|
|
2629
|
-
"onUpdate:modelValue": B[1] || (B[1] = (o) =>
|
|
2628
|
+
modelValue: x.value,
|
|
2629
|
+
"onUpdate:modelValue": B[1] || (B[1] = (o) => x.value = o),
|
|
2630
2630
|
type: "number",
|
|
2631
2631
|
label: l(t)("report.section.datasource.chartWidth"),
|
|
2632
2632
|
suffix: "px",
|
|
@@ -2636,22 +2636,22 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2636
2636
|
]);
|
|
2637
2637
|
};
|
|
2638
2638
|
}
|
|
2639
|
-
}),
|
|
2639
|
+
}), Ft = { class: "flex flex-col gap-8" }, kt = { class: "flex gap-8" }, St = {
|
|
2640
2640
|
key: 0,
|
|
2641
2641
|
class: "flex items-center gap-8 text-fm-color-system-info-300"
|
|
2642
|
-
},
|
|
2642
|
+
}, _t = { class: "flex flex-col gap-8" }, Tt = {
|
|
2643
2643
|
key: 1,
|
|
2644
2644
|
class: "grid grid-cols-1 gap-8 sm:grid-cols-2"
|
|
2645
|
-
},
|
|
2645
|
+
}, $t = ["title"], Ut = ["aria-label"], Dt = { class: "text-[12px] uppercase leading-none tracking-[0.02em] text-[#6b6b6b]" }, Bt = ["value", "onInput", "onChange"], Lt = {
|
|
2646
2646
|
key: 0,
|
|
2647
2647
|
class: "flex items-center gap-8"
|
|
2648
|
-
},
|
|
2648
|
+
}, At = {
|
|
2649
2649
|
key: 2,
|
|
2650
2650
|
class: "flex flex-col gap-8"
|
|
2651
|
-
},
|
|
2651
|
+
}, Mt = { class: "fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white p-10" }, Ot = { class: "mb-8 flex min-w-0 items-center gap-[8px] pb-8" }, Nt = ["title"], jt = ["title"], zt = ["aria-label"], Rt = { class: "text-[12px] uppercase leading-none tracking-[0.02em]" }, It = ["value", "disabled", "onInput", "onChange"], Pt = {
|
|
2652
2652
|
key: 0,
|
|
2653
2653
|
class: "flex items-center gap-8"
|
|
2654
|
-
}, Ve = 10,
|
|
2654
|
+
}, Ve = 10, Et = /* @__PURE__ */ ie({
|
|
2655
2655
|
__name: "ChartColorSection",
|
|
2656
2656
|
props: {
|
|
2657
2657
|
model: {},
|
|
@@ -2660,170 +2660,176 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2660
2660
|
},
|
|
2661
2661
|
emits: ["update:model"],
|
|
2662
2662
|
setup(D, { emit: m }) {
|
|
2663
|
-
const e = D, s = m, { t } =
|
|
2663
|
+
const e = D, s = m, { t } = me(), w = T(() => e.limitToSeriesMode ? [
|
|
2664
2664
|
{
|
|
2665
2665
|
label: t("report.section.datasource.styleTarget.series"),
|
|
2666
|
-
value:
|
|
2666
|
+
value: ae.series
|
|
2667
2667
|
}
|
|
2668
2668
|
] : [
|
|
2669
2669
|
{
|
|
2670
2670
|
label: t("report.section.datasource.styleTarget.series"),
|
|
2671
|
-
value:
|
|
2671
|
+
value: ae.series
|
|
2672
2672
|
},
|
|
2673
2673
|
{
|
|
2674
2674
|
label: t("report.section.datasource.styleTarget.metric"),
|
|
2675
|
-
value:
|
|
2675
|
+
value: ae.metric
|
|
2676
2676
|
},
|
|
2677
2677
|
{
|
|
2678
2678
|
label: t("report.section.datasource.styleTarget.breakdown"),
|
|
2679
|
-
value:
|
|
2679
|
+
value: ae.breakdown
|
|
2680
2680
|
}
|
|
2681
2681
|
]);
|
|
2682
|
-
function
|
|
2683
|
-
return e.limitToSeriesMode ?
|
|
2682
|
+
function x(y) {
|
|
2683
|
+
return e.limitToSeriesMode ? ae.series : y === ae.breakdown ? ae.breakdown : y === ae.metric ? ae.metric : ae.series;
|
|
2684
2684
|
}
|
|
2685
2685
|
function p() {
|
|
2686
|
-
const
|
|
2686
|
+
const y = Array.isArray(e.model.metrics) ? e.model.metrics : [];
|
|
2687
2687
|
if (!e.model.isBlend)
|
|
2688
|
-
return
|
|
2689
|
-
const
|
|
2690
|
-
(
|
|
2688
|
+
return y;
|
|
2689
|
+
const V = Array.isArray(e.model.joinDatasources) ? e.model.joinDatasources.flatMap(
|
|
2690
|
+
(_) => Array.isArray(_ == null ? void 0 : _.metrics) ? _.metrics : []
|
|
2691
2691
|
) : [];
|
|
2692
|
-
return [...
|
|
2692
|
+
return [...y, ...V];
|
|
2693
2693
|
}
|
|
2694
|
-
function B(
|
|
2695
|
-
var R,
|
|
2696
|
-
return
|
|
2694
|
+
function B(y, V) {
|
|
2695
|
+
var R, q;
|
|
2696
|
+
return y ? ((R = y.label) == null ? void 0 : R.trim()) || ((q = y.name) == null ? void 0 : q.trim()) || `${t("report.section.datasource.styleTarget.metric")} ${V + 1}` : `${t("report.section.datasource.styleTarget.metric")} ${V + 1}`;
|
|
2697
2697
|
}
|
|
2698
|
-
function U(
|
|
2699
|
-
if (
|
|
2698
|
+
function U(y) {
|
|
2699
|
+
if (y === ae.breakdown)
|
|
2700
2700
|
return [];
|
|
2701
|
-
if (
|
|
2702
|
-
const
|
|
2703
|
-
if (
|
|
2704
|
-
return
|
|
2701
|
+
if (y === ae.metric) {
|
|
2702
|
+
const V = p();
|
|
2703
|
+
if (V.length > 0)
|
|
2704
|
+
return V.map((_, R) => B(_, R));
|
|
2705
2705
|
}
|
|
2706
|
-
return
|
|
2707
|
-
(
|
|
2706
|
+
return ce.map(
|
|
2707
|
+
(V, _) => `${t("report.section.datasource.chartColor.series")} ${_ + 1}`
|
|
2708
2708
|
);
|
|
2709
2709
|
}
|
|
2710
|
-
function o(
|
|
2711
|
-
return Array.from({ length: Math.max(1,
|
|
2712
|
-
(
|
|
2710
|
+
function o(y) {
|
|
2711
|
+
return Array.from({ length: Math.max(1, y) }).map(
|
|
2712
|
+
(V, _) => `${t("report.section.datasource.chartColor.series")} ${_ + 1}`
|
|
2713
2713
|
);
|
|
2714
2714
|
}
|
|
2715
|
-
function r(
|
|
2716
|
-
const
|
|
2717
|
-
return Math.max(
|
|
2718
|
-
}
|
|
2719
|
-
const
|
|
2720
|
-
const
|
|
2721
|
-
return
|
|
2722
|
-
}),
|
|
2723
|
-
function
|
|
2724
|
-
const
|
|
2725
|
-
return Math.max(
|
|
2726
|
-
}
|
|
2727
|
-
const
|
|
2728
|
-
const
|
|
2729
|
-
return Array.from({ length:
|
|
2730
|
-
(
|
|
2715
|
+
function r(y, V) {
|
|
2716
|
+
const _ = Array.isArray(y) ? y.length : 0, R = Array.isArray(V) ? V.length : 0;
|
|
2717
|
+
return Math.max(ce.length, _, R, 1);
|
|
2718
|
+
}
|
|
2719
|
+
const v = T(() => {
|
|
2720
|
+
const y = p();
|
|
2721
|
+
return y.length === 0 ? [t("report.section.datasource.styleTarget.metric")] : y.map((V, _) => B(V, _));
|
|
2722
|
+
}), b = oe(ce.length), L = oe(ce.length);
|
|
2723
|
+
function h(y, V) {
|
|
2724
|
+
const _ = Math.max(1, V), R = Array.isArray(y) ? y.length : 0, q = R > 0 ? Math.ceil(R / _) : 0;
|
|
2725
|
+
return Math.max(ce.length, q, 1);
|
|
2726
|
+
}
|
|
2727
|
+
const F = T(() => {
|
|
2728
|
+
const y = Math.max(1, L.value);
|
|
2729
|
+
return Array.from({ length: y }).map(
|
|
2730
|
+
(V, _) => `${t("report.section.datasource.styleTarget.breakdown")} ${_ + 1}`
|
|
2731
2731
|
);
|
|
2732
2732
|
});
|
|
2733
|
-
function z(
|
|
2734
|
-
const
|
|
2735
|
-
const
|
|
2736
|
-
return Math.round(
|
|
2733
|
+
function z(y, V) {
|
|
2734
|
+
const _ = c(y) ?? "#000000", R = (q) => {
|
|
2735
|
+
const P = Number.parseInt(_.slice(q, q + 2), 16);
|
|
2736
|
+
return Math.round(P + (255 - P) * V).toString(16).padStart(2, "0").toUpperCase();
|
|
2737
2737
|
};
|
|
2738
2738
|
return `#${R(1)}${R(3)}${R(5)}`;
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2741
|
-
return Math.min(0.55 + (
|
|
2740
|
+
function k(y) {
|
|
2741
|
+
return Math.min(0.55 + (y - 1) * 0.18, 0.95);
|
|
2742
2742
|
}
|
|
2743
|
-
function d(
|
|
2744
|
-
return
|
|
2743
|
+
function d(y, V, _) {
|
|
2744
|
+
return y * _ + V;
|
|
2745
2745
|
}
|
|
2746
|
-
function a(
|
|
2747
|
-
const
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2746
|
+
function a(y, V, _, R) {
|
|
2747
|
+
const q = V.length;
|
|
2748
|
+
if (y.length === 0 || q <= 0)
|
|
2749
|
+
return [];
|
|
2750
|
+
const P = We(y.length);
|
|
2751
|
+
return y.flatMap((W, le) => {
|
|
2752
|
+
const Z = P[le], re = _ == null ? void 0 : _[d(le, 0, q)], $e = c(re) ?? Z;
|
|
2753
|
+
return V.map((Xe, Ue) => {
|
|
2754
|
+
const Ol = d(le, Ue, q), ll = Ue === 0 ? $e : z($e, k(Ue));
|
|
2755
|
+
return R && Ue > 0 ? ll : c(_ == null ? void 0 : _[Ol]) ?? ll;
|
|
2753
2756
|
});
|
|
2754
2757
|
});
|
|
2755
2758
|
}
|
|
2756
2759
|
const g = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
2757
|
-
function c(
|
|
2758
|
-
if (!
|
|
2760
|
+
function c(y) {
|
|
2761
|
+
if (!y)
|
|
2759
2762
|
return null;
|
|
2760
|
-
const
|
|
2761
|
-
if (!g.test(
|
|
2763
|
+
const V = y.trim();
|
|
2764
|
+
if (!g.test(V))
|
|
2762
2765
|
return null;
|
|
2763
|
-
if (
|
|
2764
|
-
const
|
|
2765
|
-
return `#${
|
|
2766
|
+
if (V.length === 4) {
|
|
2767
|
+
const _ = V.charAt(1), R = V.charAt(2), q = V.charAt(3);
|
|
2768
|
+
return `#${_}${_}${R}${R}${q}${q}`.toUpperCase();
|
|
2766
2769
|
}
|
|
2767
|
-
return
|
|
2768
|
-
}
|
|
2769
|
-
function
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2770
|
+
return V.toUpperCase();
|
|
2771
|
+
}
|
|
2772
|
+
function S() {
|
|
2773
|
+
const y = () => Math.floor(Math.random() * 256).toString(16).padStart(2, "0").toUpperCase();
|
|
2774
|
+
return `#${y()}${y()}${y()}`;
|
|
2775
|
+
}
|
|
2776
|
+
function i(y, V) {
|
|
2777
|
+
const _ = We(V);
|
|
2778
|
+
return !Array.isArray(y) || y.length === 0 ? _ : Array.from({ length: V }).map((R, q) => {
|
|
2779
|
+
const P = _[q];
|
|
2780
|
+
return c(y[q]) ?? P;
|
|
2775
2781
|
});
|
|
2776
2782
|
}
|
|
2777
|
-
function
|
|
2778
|
-
if (
|
|
2783
|
+
function n(y, V) {
|
|
2784
|
+
if (V <= 0)
|
|
2779
2785
|
return [];
|
|
2780
|
-
const
|
|
2781
|
-
for (let
|
|
2782
|
-
const
|
|
2783
|
-
Number.isInteger(
|
|
2786
|
+
const _ = Array.from({ length: V }, () => 0), R = /* @__PURE__ */ new Set();
|
|
2787
|
+
for (let P = 0; P < V; P++) {
|
|
2788
|
+
const W = Number(y == null ? void 0 : y[P]);
|
|
2789
|
+
Number.isInteger(W) && W >= 1 && W <= V && !R.has(W) && (_[P] = W, R.add(W));
|
|
2784
2790
|
}
|
|
2785
|
-
let
|
|
2786
|
-
for (let
|
|
2787
|
-
if (
|
|
2788
|
-
for (; R.has(
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
+
let q = 1;
|
|
2792
|
+
for (let P = 0; P < V; P++)
|
|
2793
|
+
if (_[P] === 0) {
|
|
2794
|
+
for (; R.has(q) && q <= V; )
|
|
2795
|
+
q++;
|
|
2796
|
+
_[P] = Math.min(q, V), R.add(_[P]);
|
|
2791
2797
|
}
|
|
2792
|
-
return
|
|
2798
|
+
return _;
|
|
2793
2799
|
}
|
|
2794
|
-
const
|
|
2795
|
-
() =>
|
|
2796
|
-
),
|
|
2800
|
+
const A = T(
|
|
2801
|
+
() => x(e.model.chartColorBinding)
|
|
2802
|
+
), E = T(
|
|
2797
2803
|
() => r(e.model.chartColors, e.model.chartColorLayers)
|
|
2798
|
-
),
|
|
2799
|
-
() => Array.from({ length:
|
|
2800
|
-
label: `L${
|
|
2801
|
-
value:
|
|
2804
|
+
), J = T(() => I.value === ae.series ? o(b.value) : U(I.value)), te = T(
|
|
2805
|
+
() => Array.from({ length: J.value.length }).map((y, V) => ({
|
|
2806
|
+
label: `L${V + 1}`,
|
|
2807
|
+
value: V + 1
|
|
2802
2808
|
}))
|
|
2803
|
-
),
|
|
2804
|
-
|
|
2805
|
-
() =>
|
|
2809
|
+
), M = T(() => typeof e.showLayerControl == "boolean" ? e.showLayerControl : !!e.model.stackBarOverlap);
|
|
2810
|
+
T(
|
|
2811
|
+
() => i(
|
|
2806
2812
|
e.model.chartColors,
|
|
2807
|
-
|
|
2813
|
+
A.value === ae.series ? E.value : U(A.value).length
|
|
2808
2814
|
)
|
|
2809
|
-
),
|
|
2810
|
-
() =>
|
|
2815
|
+
), T(
|
|
2816
|
+
() => n(
|
|
2811
2817
|
e.model.chartColorLayers,
|
|
2812
|
-
|
|
2818
|
+
A.value === ae.series ? E.value : U(A.value).length
|
|
2813
2819
|
)
|
|
2814
2820
|
);
|
|
2815
|
-
const
|
|
2821
|
+
const ge = T(
|
|
2816
2822
|
() => e.model.chartUseSecondaryMetricShades !== !1
|
|
2817
2823
|
);
|
|
2818
|
-
|
|
2824
|
+
T(
|
|
2819
2825
|
() => a(
|
|
2820
|
-
|
|
2821
|
-
|
|
2826
|
+
F.value,
|
|
2827
|
+
v.value,
|
|
2822
2828
|
e.model.chartBreakdownColors,
|
|
2823
|
-
|
|
2829
|
+
ge.value
|
|
2824
2830
|
)
|
|
2825
2831
|
);
|
|
2826
|
-
const
|
|
2832
|
+
const X = oe([]), j = oe([]), Y = oe([]), ee = oe(!0), I = oe(ae.series), se = oe(!0), Te = oe(!1), be = oe(!1);
|
|
2827
2833
|
he(
|
|
2828
2834
|
[
|
|
2829
2835
|
() => e.model.chartColors,
|
|
@@ -2834,391 +2840,419 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
2834
2840
|
() => e.model.isBlend,
|
|
2835
2841
|
() => e.model.joinDatasources
|
|
2836
2842
|
],
|
|
2837
|
-
([
|
|
2838
|
-
|
|
2839
|
-
|
|
2843
|
+
([y, V]) => {
|
|
2844
|
+
Te.value = !0, I.value = x(V), b.value = r(
|
|
2845
|
+
y,
|
|
2840
2846
|
e.model.chartColorLayers
|
|
2841
|
-
), L.value =
|
|
2847
|
+
), L.value = h(
|
|
2842
2848
|
e.model.chartBreakdownColors,
|
|
2843
|
-
Math.max(1,
|
|
2849
|
+
Math.max(1, v.value.length)
|
|
2844
2850
|
);
|
|
2845
|
-
const
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2851
|
+
const _ = I.value === ae.series ? b.value : U(I.value).length;
|
|
2852
|
+
X.value = i(y, _), j.value = n(e.model.chartColorLayers, _), ee.value = e.model.chartUseSecondaryMetricShades !== !1, Y.value = a(
|
|
2853
|
+
F.value,
|
|
2854
|
+
v.value,
|
|
2849
2855
|
e.model.chartBreakdownColors,
|
|
2850
|
-
|
|
2851
|
-
),
|
|
2856
|
+
ee.value
|
|
2857
|
+
), Te.value = !1;
|
|
2852
2858
|
},
|
|
2853
2859
|
{ immediate: !0, deep: !0 }
|
|
2854
2860
|
);
|
|
2855
|
-
function
|
|
2856
|
-
const
|
|
2857
|
-
Array.from({ length:
|
|
2858
|
-
|
|
2861
|
+
function Me() {
|
|
2862
|
+
const y = I.value === ae.series, V = I.value === ae.series ? ce.length : U(I.value).length, _ = i(void 0, V), R = n(void 0, V), q = X.value.length === _.length && X.value.every((Z, re) => Z === _[re]), P = j.value.length === R.length && j.value.every((Z, re) => Z === R[re]), W = a(
|
|
2863
|
+
Array.from({ length: ce.length }, (Z, re) => `breakdown-${re + 1}`),
|
|
2864
|
+
v.value,
|
|
2859
2865
|
void 0,
|
|
2860
|
-
|
|
2861
|
-
),
|
|
2866
|
+
ee.value
|
|
2867
|
+
), le = Y.value.length === W.length && Y.value.every((Z, re) => Z === W[re]);
|
|
2862
2868
|
return {
|
|
2863
2869
|
...e.model,
|
|
2864
|
-
chartColorBinding:
|
|
2865
|
-
chartColors:
|
|
2866
|
-
chartColorLayers:
|
|
2867
|
-
chartBreakdownColors:
|
|
2868
|
-
chartUseSecondaryMetricShades:
|
|
2870
|
+
chartColorBinding: y ? void 0 : I.value,
|
|
2871
|
+
chartColors: q ? void 0 : [...X.value],
|
|
2872
|
+
chartColorLayers: P ? void 0 : [...j.value],
|
|
2873
|
+
chartBreakdownColors: le ? void 0 : [...Y.value],
|
|
2874
|
+
chartUseSecondaryMetricShades: ee.value
|
|
2869
2875
|
};
|
|
2870
2876
|
}
|
|
2871
|
-
function
|
|
2872
|
-
const
|
|
2873
|
-
|
|
2877
|
+
function ne() {
|
|
2878
|
+
const y = Me();
|
|
2879
|
+
Bl(y) || s("update:model", y);
|
|
2874
2880
|
}
|
|
2875
|
-
function
|
|
2876
|
-
|
|
2881
|
+
function Be() {
|
|
2882
|
+
Te.value || be.value || ne();
|
|
2877
2883
|
}
|
|
2878
2884
|
he(
|
|
2879
2885
|
[
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
+
X,
|
|
2887
|
+
j,
|
|
2888
|
+
Y,
|
|
2889
|
+
ee,
|
|
2890
|
+
I,
|
|
2891
|
+
b,
|
|
2886
2892
|
L
|
|
2887
2893
|
],
|
|
2888
2894
|
() => {
|
|
2889
|
-
|
|
2895
|
+
Be();
|
|
2890
2896
|
},
|
|
2891
2897
|
{ deep: !0 }
|
|
2892
2898
|
);
|
|
2893
|
-
function
|
|
2894
|
-
const
|
|
2895
|
-
|
|
2899
|
+
function Ee(y, V) {
|
|
2900
|
+
const _ = [...X.value], R = We(Math.max(_.length, y + 1))[y];
|
|
2901
|
+
_[y] = c(V) ?? R, X.value = _;
|
|
2896
2902
|
}
|
|
2897
|
-
function
|
|
2903
|
+
function wl(y) {
|
|
2904
|
+
Ee(y, S());
|
|
2905
|
+
}
|
|
2906
|
+
function xl(y) {
|
|
2898
2907
|
if (e.limitToSeriesMode)
|
|
2899
2908
|
return;
|
|
2900
|
-
const
|
|
2901
|
-
if (
|
|
2909
|
+
const V = x(y);
|
|
2910
|
+
if (V === I.value)
|
|
2902
2911
|
return;
|
|
2903
|
-
const
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2912
|
+
const _ = V === ae.series ? b.value : U(V).length;
|
|
2913
|
+
I.value = V, X.value = i(X.value, _), j.value = n(j.value, _), V === ae.breakdown && (Y.value = a(
|
|
2914
|
+
F.value,
|
|
2915
|
+
v.value,
|
|
2916
|
+
Y.value,
|
|
2917
|
+
ee.value
|
|
2909
2918
|
));
|
|
2910
2919
|
}
|
|
2911
|
-
function
|
|
2912
|
-
return
|
|
2920
|
+
function Qe(y, V) {
|
|
2921
|
+
return y + 1 === V ? "add" : "remove";
|
|
2913
2922
|
}
|
|
2914
|
-
function
|
|
2915
|
-
const
|
|
2916
|
-
if (
|
|
2917
|
-
const Z =
|
|
2918
|
-
|
|
2923
|
+
function Vl(y) {
|
|
2924
|
+
const V = Math.max(ce.length, b.value), _ = y + 1;
|
|
2925
|
+
if (_ === V) {
|
|
2926
|
+
const Z = V + Ve;
|
|
2927
|
+
b.value = Z, X.value = i(X.value, Z), j.value = n(j.value, Z);
|
|
2919
2928
|
return;
|
|
2920
2929
|
}
|
|
2921
|
-
if (
|
|
2930
|
+
if (V <= ce.length)
|
|
2922
2931
|
return;
|
|
2923
|
-
const
|
|
2924
|
-
|
|
2925
|
-
}
|
|
2926
|
-
function
|
|
2927
|
-
const
|
|
2928
|
-
if (
|
|
2929
|
-
const
|
|
2930
|
-
L.value =
|
|
2931
|
-
Array.from({ length:
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2932
|
+
const q = _, P = Math.max(ce.length, V - Ve), W = [...X.value], le = [...j.value];
|
|
2933
|
+
W.splice(q, Ve), le.splice(q, Ve), b.value = P, X.value = i(W, P), j.value = n(le, P);
|
|
2934
|
+
}
|
|
2935
|
+
function Fl(y) {
|
|
2936
|
+
const V = Math.max(ce.length, L.value), _ = y + 1;
|
|
2937
|
+
if (_ === V) {
|
|
2938
|
+
const $e = V + Ve;
|
|
2939
|
+
L.value = $e, Y.value = a(
|
|
2940
|
+
Array.from({ length: $e }, (Xe, Ue) => `breakdown-${Ue + 1}`),
|
|
2941
|
+
v.value,
|
|
2942
|
+
Y.value,
|
|
2943
|
+
ee.value
|
|
2935
2944
|
);
|
|
2936
2945
|
return;
|
|
2937
2946
|
}
|
|
2938
|
-
if (
|
|
2947
|
+
if (V <= ce.length)
|
|
2939
2948
|
return;
|
|
2940
|
-
const
|
|
2941
|
-
|
|
2942
|
-
Array.from({ length: Z }, (
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2949
|
+
const q = Math.max(1, v.value.length), W = _ * q, le = Ve * q, Z = Math.max(ce.length, V - Ve), re = [...Y.value];
|
|
2950
|
+
re.splice(W, le), L.value = Z, Y.value = a(
|
|
2951
|
+
Array.from({ length: Z }, ($e, Xe) => `breakdown-${Xe + 1}`),
|
|
2952
|
+
v.value,
|
|
2953
|
+
re,
|
|
2954
|
+
ee.value
|
|
2946
2955
|
);
|
|
2947
2956
|
}
|
|
2948
|
-
function
|
|
2949
|
-
const
|
|
2950
|
-
if (
|
|
2957
|
+
function kl(y, V) {
|
|
2958
|
+
const _ = j.value.length;
|
|
2959
|
+
if (_ <= 0)
|
|
2951
2960
|
return;
|
|
2952
|
-
const R = Number(
|
|
2953
|
-
if (!Number.isInteger(R) || R < 1 || R >
|
|
2961
|
+
const R = Number(V);
|
|
2962
|
+
if (!Number.isInteger(R) || R < 1 || R > _)
|
|
2954
2963
|
return;
|
|
2955
|
-
const
|
|
2956
|
-
if (
|
|
2964
|
+
const q = [...j.value], P = q[y];
|
|
2965
|
+
if (P === R)
|
|
2957
2966
|
return;
|
|
2958
|
-
const
|
|
2959
|
-
(
|
|
2967
|
+
const W = q.findIndex(
|
|
2968
|
+
(le, Z) => Z !== y && le === R
|
|
2960
2969
|
);
|
|
2961
|
-
|
|
2970
|
+
W >= 0 && (q[W] = P), q[y] = R, j.value = q;
|
|
2962
2971
|
}
|
|
2963
|
-
function
|
|
2964
|
-
const
|
|
2965
|
-
|
|
2972
|
+
function Sl(y, V) {
|
|
2973
|
+
const _ = V.target;
|
|
2974
|
+
_ && (be.value = !0, Ee(y, _.value));
|
|
2966
2975
|
}
|
|
2967
|
-
function
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2976
|
+
function _l(y, V) {
|
|
2977
|
+
const _ = V.target;
|
|
2978
|
+
_ && (Ee(y, _.value), be.value = !1, Be());
|
|
2970
2979
|
}
|
|
2971
|
-
function
|
|
2972
|
-
const R =
|
|
2980
|
+
function Tl(y, V, _) {
|
|
2981
|
+
const R = _.target;
|
|
2973
2982
|
if (!R)
|
|
2974
2983
|
return;
|
|
2975
2984
|
be.value = !0;
|
|
2976
|
-
const
|
|
2977
|
-
if (!
|
|
2985
|
+
const q = c(R.value);
|
|
2986
|
+
if (!q)
|
|
2978
2987
|
return;
|
|
2979
|
-
const
|
|
2980
|
-
if (
|
|
2988
|
+
const P = v.value.length;
|
|
2989
|
+
if (P <= 0)
|
|
2981
2990
|
return;
|
|
2982
|
-
const
|
|
2983
|
-
if (
|
|
2984
|
-
for (let Z = 1; Z <
|
|
2985
|
-
const
|
|
2986
|
-
|
|
2991
|
+
const W = d(y, V, P), le = [...Y.value];
|
|
2992
|
+
if (le[W] = q, ee.value && V === 0)
|
|
2993
|
+
for (let Z = 1; Z < P; Z++) {
|
|
2994
|
+
const re = d(y, Z, P);
|
|
2995
|
+
le[re] = z(q, k(Z));
|
|
2987
2996
|
}
|
|
2988
|
-
|
|
2997
|
+
Y.value = le;
|
|
2989
2998
|
}
|
|
2990
|
-
function
|
|
2991
|
-
const R =
|
|
2999
|
+
function $l(y, V, _) {
|
|
3000
|
+
const R = _.target;
|
|
2992
3001
|
if (!R)
|
|
2993
3002
|
return;
|
|
2994
|
-
const
|
|
2995
|
-
if (!
|
|
2996
|
-
be.value = !1,
|
|
3003
|
+
const q = c(R.value);
|
|
3004
|
+
if (!q) {
|
|
3005
|
+
be.value = !1, Be();
|
|
2997
3006
|
return;
|
|
2998
3007
|
}
|
|
2999
|
-
const
|
|
3000
|
-
if (
|
|
3001
|
-
be.value = !1,
|
|
3008
|
+
const P = v.value.length;
|
|
3009
|
+
if (P <= 0) {
|
|
3010
|
+
be.value = !1, Be();
|
|
3002
3011
|
return;
|
|
3003
3012
|
}
|
|
3004
|
-
const
|
|
3005
|
-
if (
|
|
3006
|
-
for (let Z = 1; Z <
|
|
3007
|
-
const
|
|
3008
|
-
|
|
3013
|
+
const W = d(y, V, P), le = [...Y.value];
|
|
3014
|
+
if (le[W] = q, ee.value && V === 0)
|
|
3015
|
+
for (let Z = 1; Z < P; Z++) {
|
|
3016
|
+
const re = d(y, Z, P);
|
|
3017
|
+
le[re] = z(q, k(Z));
|
|
3018
|
+
}
|
|
3019
|
+
Y.value = le, be.value = !1, Be();
|
|
3020
|
+
}
|
|
3021
|
+
function Ul(y, V) {
|
|
3022
|
+
const _ = S(), R = v.value.length;
|
|
3023
|
+
if (R <= 0)
|
|
3024
|
+
return;
|
|
3025
|
+
const q = d(y, V, R), P = [...Y.value];
|
|
3026
|
+
if (P[q] = _, ee.value && V === 0)
|
|
3027
|
+
for (let W = 1; W < R; W++) {
|
|
3028
|
+
const le = d(y, W, R);
|
|
3029
|
+
P[le] = z(_, k(W));
|
|
3009
3030
|
}
|
|
3010
|
-
|
|
3031
|
+
Y.value = P;
|
|
3011
3032
|
}
|
|
3012
|
-
function
|
|
3013
|
-
const
|
|
3014
|
-
return
|
|
3033
|
+
function Ze(y, V) {
|
|
3034
|
+
const _ = Array.isArray(y) ? y : [], R = Array.isArray(V) ? V : [];
|
|
3035
|
+
return _.length !== R.length ? !1 : _.every((q, P) => q === R[P]);
|
|
3015
3036
|
}
|
|
3016
|
-
function
|
|
3017
|
-
const
|
|
3018
|
-
return
|
|
3037
|
+
function Dl(y, V) {
|
|
3038
|
+
const _ = Array.isArray(y) ? y : [], R = Array.isArray(V) ? V : [];
|
|
3039
|
+
return _.length !== R.length ? !1 : _.every((q, P) => Number(q) === Number(R[P]));
|
|
3019
3040
|
}
|
|
3020
|
-
function
|
|
3021
|
-
return
|
|
3041
|
+
function Bl(y) {
|
|
3042
|
+
return y.chartColorBinding === e.model.chartColorBinding && y.chartUseSecondaryMetricShades === e.model.chartUseSecondaryMetricShades && Ze(y.chartColors, e.model.chartColors) && Dl(y.chartColorLayers, e.model.chartColorLayers) && Ze(y.chartBreakdownColors, e.model.chartBreakdownColors);
|
|
3022
3043
|
}
|
|
3023
|
-
function
|
|
3024
|
-
|
|
3025
|
-
Array.from({ length: L.value }, (
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3044
|
+
function Ll(y) {
|
|
3045
|
+
ee.value = y, Y.value = a(
|
|
3046
|
+
Array.from({ length: L.value }, (V, _) => `breakdown-${_ + 1}`),
|
|
3047
|
+
v.value,
|
|
3048
|
+
Y.value,
|
|
3049
|
+
ee.value
|
|
3029
3050
|
);
|
|
3030
3051
|
}
|
|
3031
|
-
function
|
|
3032
|
-
|
|
3033
|
-
Array.from({ length:
|
|
3034
|
-
|
|
3052
|
+
function Al() {
|
|
3053
|
+
I.value = ae.series, b.value = ce.length, L.value = ce.length, X.value = i(void 0, ce.length), j.value = n(void 0, ce.length), ee.value = !0, Y.value = a(
|
|
3054
|
+
Array.from({ length: ce.length }, (y, V) => `breakdown-${V + 1}`),
|
|
3055
|
+
v.value,
|
|
3035
3056
|
void 0,
|
|
3036
3057
|
!0
|
|
3037
3058
|
);
|
|
3038
3059
|
}
|
|
3039
|
-
function
|
|
3040
|
-
|
|
3060
|
+
function Ml() {
|
|
3061
|
+
se.value = !se.value;
|
|
3041
3062
|
}
|
|
3042
|
-
function
|
|
3043
|
-
return (
|
|
3063
|
+
function el(y) {
|
|
3064
|
+
return (y + 1) % Ve === 0;
|
|
3044
3065
|
}
|
|
3045
|
-
return
|
|
3066
|
+
return ml(() => {
|
|
3046
3067
|
be.value = !1;
|
|
3047
|
-
}), (
|
|
3048
|
-
const
|
|
3049
|
-
return
|
|
3050
|
-
|
|
3051
|
-
u(
|
|
3068
|
+
}), (y, V) => {
|
|
3069
|
+
const _ = $("FmButton"), R = $("FmSelect"), q = $("FmCheckbox");
|
|
3070
|
+
return f(), H("div", Ft, [
|
|
3071
|
+
C("div", kt, [
|
|
3072
|
+
u(_, {
|
|
3052
3073
|
variant: "tertiary",
|
|
3053
3074
|
size: "md",
|
|
3054
3075
|
class: "min-w-0 flex-1 !justify-start",
|
|
3055
3076
|
label: l(t)("report.section.datasource.chartColor.title"),
|
|
3056
|
-
"prepend-icon":
|
|
3057
|
-
"aria-expanded":
|
|
3058
|
-
onClick:
|
|
3077
|
+
"prepend-icon": se.value ? "expand_less" : "expand_more",
|
|
3078
|
+
"aria-expanded": se.value ? "true" : "false",
|
|
3079
|
+
onClick: Ml
|
|
3059
3080
|
}, null, 8, ["label", "prepend-icon", "aria-expanded"]),
|
|
3060
|
-
|
|
3061
|
-
u(
|
|
3081
|
+
se.value ? (f(), H("div", St, [
|
|
3082
|
+
u(_, {
|
|
3062
3083
|
variant: "tertiary",
|
|
3063
3084
|
"text-color": "text-fm-color-system-info-300",
|
|
3064
3085
|
size: "md",
|
|
3065
3086
|
label: l(t)("report.section.datasource.chartColor.reset"),
|
|
3066
|
-
onClick:
|
|
3087
|
+
onClick: Al
|
|
3067
3088
|
}, null, 8, ["label"])
|
|
3068
3089
|
])) : O("", !0)
|
|
3069
3090
|
]),
|
|
3070
|
-
|
|
3091
|
+
Ce(C("div", _t, [
|
|
3071
3092
|
u(R, {
|
|
3072
|
-
"model-value":
|
|
3093
|
+
"model-value": I.value,
|
|
3073
3094
|
items: w.value,
|
|
3074
|
-
"onUpdate:modelValue":
|
|
3095
|
+
"onUpdate:modelValue": xl
|
|
3075
3096
|
}, null, 8, ["model-value", "items"]),
|
|
3076
|
-
|
|
3097
|
+
I.value === l(ae).breakdown ? (f(), N(q, {
|
|
3077
3098
|
key: 0,
|
|
3078
|
-
"model-value":
|
|
3099
|
+
"model-value": ee.value,
|
|
3079
3100
|
value: !1,
|
|
3080
3101
|
label: l(t)("report.section.datasource.chartColor.secondaryMetricAutoShade"),
|
|
3081
|
-
"onUpdate:modelValue":
|
|
3102
|
+
"onUpdate:modelValue": V[0] || (V[0] = (P) => Ll(!!P)),
|
|
3082
3103
|
class: "p-4"
|
|
3083
3104
|
}, null, 8, ["model-value", "label"])) : O("", !0),
|
|
3084
|
-
|
|
3085
|
-
(
|
|
3086
|
-
key: `series-color-${
|
|
3105
|
+
I.value !== l(ae).breakdown ? (f(), H("div", Tt, [
|
|
3106
|
+
(f(!0), H(ue, null, xe(X.value, (P, W) => (f(), H(ue, {
|
|
3107
|
+
key: `series-color-${W}`
|
|
3087
3108
|
}, [
|
|
3088
|
-
|
|
3109
|
+
C("div", {
|
|
3089
3110
|
class: ke([
|
|
3090
3111
|
"fm-shadow-light-100 rounded-md border border-fm-color-neutral-gray-100 p-10",
|
|
3091
|
-
|
|
3112
|
+
M.value ? "flex flex-col gap-8" : "flex items-center justify-between gap-12"
|
|
3092
3113
|
])
|
|
3093
3114
|
}, [
|
|
3094
|
-
|
|
3095
|
-
class: ke(["fm-typo-en-body-lg-600 min-w-0",
|
|
3096
|
-
title:
|
|
3097
|
-
},
|
|
3098
|
-
|
|
3099
|
-
class: ke(["flex items-center gap-8",
|
|
3115
|
+
C("span", {
|
|
3116
|
+
class: ke(["fm-typo-en-body-lg-600 min-w-0", M.value ? "line-clamp-2 break-words" : "flex-1"]),
|
|
3117
|
+
title: J.value[W] || `${l(t)("report.section.datasource.chartColor.color")} ${W + 1}`
|
|
3118
|
+
}, Q(J.value[W] || `${l(t)("report.section.datasource.chartColor.color")} ${W + 1}`), 11, $t),
|
|
3119
|
+
C("div", {
|
|
3120
|
+
class: ke(["flex items-center gap-8", M.value ? "justify-between" : "shrink-0"])
|
|
3100
3121
|
}, [
|
|
3101
|
-
|
|
3122
|
+
M.value ? (f(), N(R, {
|
|
3102
3123
|
key: 0,
|
|
3103
3124
|
class: "min-w-[92px]",
|
|
3104
|
-
"model-value":
|
|
3105
|
-
items:
|
|
3106
|
-
"onUpdate:modelValue": (
|
|
3125
|
+
"model-value": j.value[W],
|
|
3126
|
+
items: te.value,
|
|
3127
|
+
"onUpdate:modelValue": (le) => kl(W, le)
|
|
3107
3128
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])) : O("", !0),
|
|
3108
|
-
|
|
3129
|
+
C("label", {
|
|
3109
3130
|
class: "relative inline-flex min-h-[34px] cursor-pointer items-center gap-[8px] rounded-[8px] border border-[#d8d8d8] bg-white py-[4px] pl-[4px] pr-[8px]",
|
|
3110
|
-
"aria-label": `Color ${
|
|
3131
|
+
"aria-label": `Color ${W + 1}`
|
|
3111
3132
|
}, [
|
|
3112
|
-
|
|
3133
|
+
C("span", {
|
|
3113
3134
|
class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
|
|
3114
|
-
style:
|
|
3135
|
+
style: He({ backgroundColor: P })
|
|
3115
3136
|
}, null, 4),
|
|
3116
|
-
|
|
3117
|
-
|
|
3137
|
+
C("span", Dt, Q(P), 1),
|
|
3138
|
+
C("input", {
|
|
3118
3139
|
type: "color",
|
|
3119
|
-
value:
|
|
3140
|
+
value: P,
|
|
3120
3141
|
class: "absolute inset-0 cursor-pointer opacity-0",
|
|
3121
|
-
onInput: (
|
|
3122
|
-
onChange: (
|
|
3123
|
-
}, null, 40,
|
|
3124
|
-
], 8,
|
|
3142
|
+
onInput: (le) => Sl(W, le),
|
|
3143
|
+
onChange: (le) => _l(W, le)
|
|
3144
|
+
}, null, 40, Bt)
|
|
3145
|
+
], 8, Ut),
|
|
3146
|
+
u(_, {
|
|
3147
|
+
variant: "tertiary",
|
|
3148
|
+
size: "md",
|
|
3149
|
+
icon: "casino",
|
|
3150
|
+
onClick: (le) => wl(W)
|
|
3151
|
+
}, null, 8, ["onClick"])
|
|
3125
3152
|
], 2)
|
|
3126
3153
|
], 2),
|
|
3127
|
-
|
|
3128
|
-
u(
|
|
3154
|
+
el(W) ? (f(), H("div", Lt, [
|
|
3155
|
+
u(_, {
|
|
3129
3156
|
class: "w-full",
|
|
3130
3157
|
size: "md",
|
|
3131
|
-
icon:
|
|
3132
|
-
onClick: (
|
|
3158
|
+
icon: Qe(W, b.value),
|
|
3159
|
+
onClick: (le) => Vl(W)
|
|
3133
3160
|
}, null, 8, ["icon", "onClick"])
|
|
3134
3161
|
])) : O("", !0)
|
|
3135
3162
|
], 64))), 128))
|
|
3136
|
-
])) : (
|
|
3137
|
-
(
|
|
3138
|
-
key: `breakdown-group-${
|
|
3163
|
+
])) : (f(), H("div", At, [
|
|
3164
|
+
(f(!0), H(ue, null, xe(F.value, (P, W) => (f(), H(ue, {
|
|
3165
|
+
key: `breakdown-group-${W}`
|
|
3139
3166
|
}, [
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3167
|
+
C("div", Mt, [
|
|
3168
|
+
C("div", Ot, [
|
|
3169
|
+
C("span", {
|
|
3143
3170
|
class: "fm-typo-en-body-lg-600 min-w-0 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
3144
|
-
title:
|
|
3145
|
-
},
|
|
3171
|
+
title: P
|
|
3172
|
+
}, Q(P), 9, Nt)
|
|
3146
3173
|
]),
|
|
3147
|
-
(
|
|
3148
|
-
key: `${
|
|
3174
|
+
(f(!0), H(ue, null, xe(v.value, (le, Z) => (f(), H("div", {
|
|
3175
|
+
key: `${P}-${le}-${Z}`,
|
|
3149
3176
|
class: "flex items-center justify-between gap-8 py-4"
|
|
3150
3177
|
}, [
|
|
3151
|
-
|
|
3178
|
+
C("span", {
|
|
3152
3179
|
class: "fm-typo-en-body-md-400 min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
3153
|
-
title:
|
|
3154
|
-
},
|
|
3155
|
-
|
|
3180
|
+
title: le
|
|
3181
|
+
}, Q(le), 9, jt),
|
|
3182
|
+
C("label", {
|
|
3156
3183
|
class: ke(["relative inline-flex min-h-[34px] w-full max-w-[126px] items-center gap-[8px] rounded-[8px] border border-[#d8d8d8] bg-white py-[4px] pl-[4px] pr-[8px]", {
|
|
3157
|
-
"cursor-not-allowed opacity-[0.55]":
|
|
3158
|
-
"cursor-pointer": !(
|
|
3184
|
+
"cursor-not-allowed opacity-[0.55]": ee.value && Z > 0,
|
|
3185
|
+
"cursor-pointer": !(ee.value && Z > 0)
|
|
3159
3186
|
}]),
|
|
3160
|
-
"aria-label": `Breakdown color ${
|
|
3187
|
+
"aria-label": `Breakdown color ${W + 1}-${Z + 1}`
|
|
3161
3188
|
}, [
|
|
3162
|
-
|
|
3189
|
+
C("span", {
|
|
3163
3190
|
class: "inline-block h-[20px] w-[28px] rounded-[4px] border border-[#cfcfcf]",
|
|
3164
|
-
style:
|
|
3165
|
-
backgroundColor:
|
|
3191
|
+
style: He({
|
|
3192
|
+
backgroundColor: Y.value[d(W, Z, v.value.length)]
|
|
3166
3193
|
})
|
|
3167
3194
|
}, null, 4),
|
|
3168
|
-
|
|
3169
|
-
|
|
3195
|
+
C("span", Rt, Q(Y.value[d(W, Z, v.value.length)]), 1),
|
|
3196
|
+
C("input", {
|
|
3170
3197
|
type: "color",
|
|
3171
|
-
value:
|
|
3198
|
+
value: Y.value[d(W, Z, v.value.length)],
|
|
3172
3199
|
class: ke(["absolute inset-0 opacity-0", {
|
|
3173
|
-
"cursor-not-allowed":
|
|
3174
|
-
"cursor-pointer": !(
|
|
3200
|
+
"cursor-not-allowed": ee.value && Z > 0,
|
|
3201
|
+
"cursor-pointer": !(ee.value && Z > 0)
|
|
3175
3202
|
}]),
|
|
3176
|
-
disabled:
|
|
3177
|
-
onInput: (
|
|
3178
|
-
onChange: (
|
|
3179
|
-
}, null, 42,
|
|
3180
|
-
], 10,
|
|
3203
|
+
disabled: ee.value && Z > 0,
|
|
3204
|
+
onInput: (re) => Tl(W, Z, re),
|
|
3205
|
+
onChange: (re) => $l(W, Z, re)
|
|
3206
|
+
}, null, 42, It)
|
|
3207
|
+
], 10, zt),
|
|
3208
|
+
u(_, {
|
|
3209
|
+
variant: "tertiary",
|
|
3210
|
+
size: "md",
|
|
3211
|
+
icon: "casino",
|
|
3212
|
+
disabled: ee.value && Z > 0,
|
|
3213
|
+
onClick: (re) => Ul(W, Z)
|
|
3214
|
+
}, null, 8, ["disabled", "onClick"])
|
|
3181
3215
|
]))), 128))
|
|
3182
3216
|
]),
|
|
3183
|
-
|
|
3184
|
-
u(
|
|
3217
|
+
el(W) ? (f(), H("div", Pt, [
|
|
3218
|
+
u(_, {
|
|
3185
3219
|
class: "w-full",
|
|
3186
3220
|
size: "md",
|
|
3187
|
-
icon:
|
|
3188
|
-
onClick: (
|
|
3221
|
+
icon: Qe(W, L.value),
|
|
3222
|
+
onClick: (le) => Fl(W)
|
|
3189
3223
|
}, null, 8, ["icon", "onClick"])
|
|
3190
3224
|
])) : O("", !0)
|
|
3191
3225
|
], 64))), 128))
|
|
3192
3226
|
]))
|
|
3193
3227
|
], 512), [
|
|
3194
|
-
[
|
|
3228
|
+
[we, se.value]
|
|
3195
3229
|
])
|
|
3196
3230
|
]);
|
|
3197
3231
|
};
|
|
3198
3232
|
}
|
|
3199
|
-
}),
|
|
3233
|
+
}), Xt = { class: "flex flex-col gap-8" }, Wt = { class: "flex items-center justify-between" }, qt = { class: "fm-typo-en-body-lg-600" }, Ht = { class: "flex items-center gap-8 text-fm-color-system-info-300" }, Yt = { class: "grid grid-cols-2 gap-8" }, Gt = { class: "flex items-center gap-8" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = /* @__PURE__ */ ie({
|
|
3200
3234
|
__name: "ChartLineStyleSection",
|
|
3201
3235
|
props: {
|
|
3202
3236
|
model: {}
|
|
3203
3237
|
},
|
|
3204
3238
|
emits: ["update:model"],
|
|
3205
3239
|
setup(D, { emit: m }) {
|
|
3206
|
-
const e = D, s = m, { t } =
|
|
3240
|
+
const e = D, s = m, { t } = me(), w = T(() => [
|
|
3207
3241
|
{
|
|
3208
3242
|
label: t("report.section.datasource.styleTarget.series"),
|
|
3209
|
-
value:
|
|
3243
|
+
value: ae.series
|
|
3210
3244
|
},
|
|
3211
3245
|
{
|
|
3212
3246
|
label: t("report.section.datasource.styleTarget.metric"),
|
|
3213
|
-
value:
|
|
3247
|
+
value: ae.metric
|
|
3214
3248
|
}
|
|
3215
3249
|
]);
|
|
3216
|
-
function
|
|
3217
|
-
return i && typeof i == "object" && "value" in i ?
|
|
3250
|
+
function x(i) {
|
|
3251
|
+
return i && typeof i == "object" && "value" in i ? x(i.value) : i === ae.metric ? ae.metric : ae.series;
|
|
3218
3252
|
}
|
|
3219
3253
|
function p(i, n) {
|
|
3220
|
-
var
|
|
3221
|
-
return i ? ((
|
|
3254
|
+
var E, J;
|
|
3255
|
+
return i ? ((E = i.label) == null ? void 0 : E.trim()) || ((J = i.name) == null ? void 0 : J.trim()) || `${t("report.section.datasource.styleTarget.metric")} ${n + 1}` : `${t("report.section.datasource.styleTarget.metric")} ${n + 1}`;
|
|
3222
3256
|
}
|
|
3223
3257
|
function B() {
|
|
3224
3258
|
const i = Array.isArray(e.model.metrics) ? e.model.metrics : [];
|
|
@@ -3230,16 +3264,16 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3230
3264
|
return [...i, ...n];
|
|
3231
3265
|
}
|
|
3232
3266
|
function U(i) {
|
|
3233
|
-
if (i ===
|
|
3267
|
+
if (i === ae.metric) {
|
|
3234
3268
|
const n = B();
|
|
3235
3269
|
if (n.length > 0)
|
|
3236
|
-
return n.map((A,
|
|
3270
|
+
return n.map((A, E) => p(A, E));
|
|
3237
3271
|
}
|
|
3238
|
-
return
|
|
3272
|
+
return ce.map(
|
|
3239
3273
|
(n, A) => `${t("report.section.datasource.lineStyle.series")} ${A + 1}`
|
|
3240
3274
|
);
|
|
3241
3275
|
}
|
|
3242
|
-
const o =
|
|
3276
|
+
const o = T(() => [
|
|
3243
3277
|
{
|
|
3244
3278
|
label: t("report.section.datasource.lineStyle.solid"),
|
|
3245
3279
|
value: "solid"
|
|
@@ -3256,21 +3290,21 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3256
3290
|
function r(i) {
|
|
3257
3291
|
return i && typeof i == "object" && "value" in i ? r(i.value) : i === "dashed" || i === "DASHED" ? "dashed" : i === "dotted" || i === "DOTTED" ? "dotted" : "solid";
|
|
3258
3292
|
}
|
|
3259
|
-
function
|
|
3293
|
+
function v(i) {
|
|
3260
3294
|
return i === "dashed" ? "line-style-icon--dashed" : i === "dotted" ? "line-style-icon--dotted" : "line-style-icon--solid";
|
|
3261
3295
|
}
|
|
3262
|
-
function
|
|
3296
|
+
function b(i, n) {
|
|
3263
3297
|
return !Array.isArray(i) || i.length === 0 ? Array.from({ length: n }).map(
|
|
3264
|
-
(A,
|
|
3298
|
+
(A, E) => sl[E] ?? "solid"
|
|
3265
3299
|
) : Array.from({ length: n }).map(
|
|
3266
|
-
(A,
|
|
3300
|
+
(A, E) => r(i[E])
|
|
3267
3301
|
);
|
|
3268
3302
|
}
|
|
3269
|
-
const L =
|
|
3270
|
-
() =>
|
|
3271
|
-
),
|
|
3272
|
-
() =>
|
|
3273
|
-
), z = oe([]),
|
|
3303
|
+
const L = T(
|
|
3304
|
+
() => x(e.model.lineStyleBinding)
|
|
3305
|
+
), h = T(() => U(k.value)), F = T(
|
|
3306
|
+
() => b(e.model.lineStyles, U(L.value).length)
|
|
3307
|
+
), z = oe([]), k = oe(ae.series);
|
|
3274
3308
|
he(
|
|
3275
3309
|
[
|
|
3276
3310
|
() => e.model.lineStyles,
|
|
@@ -3280,42 +3314,42 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3280
3314
|
() => e.model.joinDatasources
|
|
3281
3315
|
],
|
|
3282
3316
|
([i, n]) => {
|
|
3283
|
-
|
|
3317
|
+
k.value = x(n), z.value = b(
|
|
3284
3318
|
i,
|
|
3285
|
-
U(
|
|
3319
|
+
U(k.value).length
|
|
3286
3320
|
);
|
|
3287
3321
|
},
|
|
3288
3322
|
{ immediate: !0, deep: !0 }
|
|
3289
3323
|
);
|
|
3290
|
-
const d =
|
|
3324
|
+
const d = T(() => k.value !== L.value || z.value.length !== F.value.length ? !0 : z.value.some((i, n) => i !== F.value[n]));
|
|
3291
3325
|
function a(i, n) {
|
|
3292
3326
|
const A = [...z.value];
|
|
3293
3327
|
A[i] = r(n), z.value = A;
|
|
3294
3328
|
}
|
|
3295
3329
|
function g(i) {
|
|
3296
|
-
const n =
|
|
3297
|
-
if (n ===
|
|
3330
|
+
const n = x(i);
|
|
3331
|
+
if (n === k.value)
|
|
3298
3332
|
return;
|
|
3299
3333
|
const A = U(n).length;
|
|
3300
|
-
|
|
3334
|
+
k.value = n, z.value = b(z.value, A);
|
|
3301
3335
|
}
|
|
3302
3336
|
function c() {
|
|
3303
|
-
|
|
3337
|
+
k.value = ae.series, z.value = [...sl];
|
|
3304
3338
|
}
|
|
3305
|
-
function
|
|
3306
|
-
const i =
|
|
3339
|
+
function S() {
|
|
3340
|
+
const i = k.value === ae.series, n = z.value.every((A) => A === "solid");
|
|
3307
3341
|
s("update:model", {
|
|
3308
3342
|
...e.model,
|
|
3309
|
-
lineStyleBinding: i ? void 0 :
|
|
3343
|
+
lineStyleBinding: i ? void 0 : k.value,
|
|
3310
3344
|
lineStyles: n ? void 0 : [...z.value]
|
|
3311
3345
|
});
|
|
3312
3346
|
}
|
|
3313
3347
|
return (i, n) => {
|
|
3314
|
-
const A = $("FmButton"),
|
|
3315
|
-
return
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3348
|
+
const A = $("FmButton"), E = $("FmSelect");
|
|
3349
|
+
return f(), H("div", Xt, [
|
|
3350
|
+
C("div", Wt, [
|
|
3351
|
+
C("p", qt, Q(l(t)("report.section.datasource.lineStyle.title")), 1),
|
|
3352
|
+
C("div", Ht, [
|
|
3319
3353
|
u(A, {
|
|
3320
3354
|
variant: "tertiary",
|
|
3321
3355
|
"text-color": "text-fm-color-system-info-300",
|
|
@@ -3325,29 +3359,29 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3325
3359
|
}, null, 8, ["label"])
|
|
3326
3360
|
])
|
|
3327
3361
|
]),
|
|
3328
|
-
u(
|
|
3329
|
-
"model-value":
|
|
3362
|
+
u(E, {
|
|
3363
|
+
"model-value": k.value,
|
|
3330
3364
|
items: w.value,
|
|
3331
3365
|
label: l(t)("report.section.datasource.styleTarget.title"),
|
|
3332
3366
|
"onUpdate:modelValue": g
|
|
3333
3367
|
}, null, 8, ["model-value", "items", "label"]),
|
|
3334
|
-
|
|
3335
|
-
(
|
|
3336
|
-
key:
|
|
3368
|
+
C("div", Yt, [
|
|
3369
|
+
(f(!0), H(ue, null, xe(z.value, (J, te) => (f(), H("div", {
|
|
3370
|
+
key: te,
|
|
3337
3371
|
class: "flex items-center justify-between gap-8 rounded-md border border-fm-color-neutral-gray-100 px-8 py-6"
|
|
3338
3372
|
}, [
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
class: ke(["line-style-icon",
|
|
3373
|
+
C("div", Gt, [
|
|
3374
|
+
C("span", {
|
|
3375
|
+
class: ke(["line-style-icon", v(J)]),
|
|
3342
3376
|
"aria-hidden": "true"
|
|
3343
3377
|
}, null, 2),
|
|
3344
|
-
|
|
3378
|
+
C("span", Jt, Q(h.value[te] || `${l(t)("report.section.datasource.lineStyle.line")} ${te + 1}`), 1)
|
|
3345
3379
|
]),
|
|
3346
|
-
u(
|
|
3347
|
-
"model-value":
|
|
3380
|
+
u(E, {
|
|
3381
|
+
"model-value": J,
|
|
3348
3382
|
items: o.value,
|
|
3349
3383
|
class: "w-[130px]",
|
|
3350
|
-
"onUpdate:modelValue": (M) => a(
|
|
3384
|
+
"onUpdate:modelValue": (M) => a(te, M)
|
|
3351
3385
|
}, null, 8, ["model-value", "items", "onUpdate:modelValue"])
|
|
3352
3386
|
]))), 128))
|
|
3353
3387
|
]),
|
|
@@ -3355,17 +3389,17 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3355
3389
|
size: "md",
|
|
3356
3390
|
label: l(t)("report.common.apply"),
|
|
3357
3391
|
disabled: !d.value,
|
|
3358
|
-
onClick:
|
|
3392
|
+
onClick: S
|
|
3359
3393
|
}, null, 8, ["label", "disabled"])
|
|
3360
3394
|
]);
|
|
3361
3395
|
};
|
|
3362
3396
|
}
|
|
3363
|
-
}),
|
|
3397
|
+
}), Qt = /* @__PURE__ */ yl(Kt, [["__scopeId", "data-v-f1c35513"]]), Zt = { class: "flex flex-col gap-16" }, ea = {
|
|
3364
3398
|
key: 2,
|
|
3365
3399
|
class: "h-px w-full bg-fm-color-neutral-gray-100"
|
|
3366
|
-
},
|
|
3400
|
+
}, la = { class: "flex flex-col gap-8" }, oa = { class: "fm-typo-en-body-lg-600" }, ta = { class: "flex flex-col gap-8" }, aa = /* @__PURE__ */ ie({
|
|
3367
3401
|
__name: "StyleDatasource",
|
|
3368
|
-
props: /* @__PURE__ */
|
|
3402
|
+
props: /* @__PURE__ */ pe({
|
|
3369
3403
|
label: {
|
|
3370
3404
|
type: String,
|
|
3371
3405
|
default: "Label"
|
|
@@ -3392,20 +3426,20 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3392
3426
|
modelValue: { required: !0 },
|
|
3393
3427
|
modelModifiers: {}
|
|
3394
3428
|
}),
|
|
3395
|
-
emits: /* @__PURE__ */
|
|
3429
|
+
emits: /* @__PURE__ */ pe(["click-close"], ["update:modelValue"]),
|
|
3396
3430
|
setup(D, { emit: m }) {
|
|
3397
|
-
const e =
|
|
3431
|
+
const e = fe(D, "modelValue");
|
|
3398
3432
|
he(
|
|
3399
3433
|
[() => e.value.dimensions, () => e.value.metrics],
|
|
3400
3434
|
() => {
|
|
3401
|
-
const { rowIds: r, columnIds:
|
|
3402
|
-
e.value.rowIds = r, e.value.columnIds =
|
|
3435
|
+
const { rowIds: r, columnIds: v } = Re(e.value);
|
|
3436
|
+
e.value.rowIds = r, e.value.columnIds = v;
|
|
3403
3437
|
},
|
|
3404
3438
|
{ deep: !0 }
|
|
3405
3439
|
);
|
|
3406
|
-
const s = D, t = m, { t: w } =
|
|
3407
|
-
() => s.config.type ===
|
|
3408
|
-
), U =
|
|
3440
|
+
const s = D, t = m, { t: w } = me(), x = T(() => s.config.type === K.Circular), p = T(() => s.config.type === K.StackBarChart || s.config.type === K.ClusteredStackBarChart), B = T(
|
|
3441
|
+
() => s.config.type === K.LineChart || s.config.type === K.StackLineChart
|
|
3442
|
+
), U = T({
|
|
3409
3443
|
get: () => e.value.maxTooltipItems ?? null,
|
|
3410
3444
|
set: (r) => {
|
|
3411
3445
|
e.value = {
|
|
@@ -3413,7 +3447,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3413
3447
|
maxTooltipItems: r ?? void 0
|
|
3414
3448
|
};
|
|
3415
3449
|
}
|
|
3416
|
-
}), o =
|
|
3450
|
+
}), o = T({
|
|
3417
3451
|
get: () => e.value.stackBarOverlap ?? !1,
|
|
3418
3452
|
set: (r) => {
|
|
3419
3453
|
e.value = {
|
|
@@ -3422,67 +3456,67 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3422
3456
|
};
|
|
3423
3457
|
}
|
|
3424
3458
|
});
|
|
3425
|
-
return (r,
|
|
3426
|
-
const
|
|
3427
|
-
return
|
|
3428
|
-
|
|
3429
|
-
s.closeable ? (
|
|
3459
|
+
return (r, v) => {
|
|
3460
|
+
const b = $("FmButton"), L = $("FmCheckbox"), h = $("FmStepperField");
|
|
3461
|
+
return f(), H(ue, null, [
|
|
3462
|
+
v[10] || (v[10] = C("div", { class: "grow" }, null, -1)),
|
|
3463
|
+
s.closeable ? (f(), N(b, {
|
|
3430
3464
|
key: 0,
|
|
3431
3465
|
icon: "close",
|
|
3432
3466
|
variant: "tertiary",
|
|
3433
3467
|
size: "md",
|
|
3434
|
-
onClick:
|
|
3468
|
+
onClick: v[0] || (v[0] = ye((F) => t("click-close"), ["stop"]))
|
|
3435
3469
|
})) : O("", !0),
|
|
3436
|
-
|
|
3437
|
-
s.config.hasChart ? (
|
|
3470
|
+
C("div", Zt, [
|
|
3471
|
+
s.config.hasChart ? (f(), N(Vt, {
|
|
3438
3472
|
key: 0,
|
|
3439
3473
|
model: e.value,
|
|
3440
|
-
"onUpdate:model":
|
|
3474
|
+
"onUpdate:model": v[1] || (v[1] = (F) => e.value = F)
|
|
3441
3475
|
}, null, 8, ["model"])) : O("", !0),
|
|
3442
|
-
s.config.hasChart ? (
|
|
3476
|
+
s.config.hasChart ? (f(), N(Et, {
|
|
3443
3477
|
key: 1,
|
|
3444
3478
|
model: e.value,
|
|
3445
3479
|
"show-layer-control": p.value && o.value,
|
|
3446
|
-
"limit-to-series-mode":
|
|
3447
|
-
"onUpdate:model":
|
|
3480
|
+
"limit-to-series-mode": x.value,
|
|
3481
|
+
"onUpdate:model": v[2] || (v[2] = (F) => e.value = F)
|
|
3448
3482
|
}, null, 8, ["model", "show-layer-control", "limit-to-series-mode"])) : O("", !0),
|
|
3449
|
-
s.config.hasChart && B.value ? (
|
|
3450
|
-
s.config.hasChart && B.value ? (
|
|
3483
|
+
s.config.hasChart && B.value ? (f(), H("div", ea)) : O("", !0),
|
|
3484
|
+
s.config.hasChart && B.value ? (f(), N(Qt, {
|
|
3451
3485
|
key: 3,
|
|
3452
3486
|
model: e.value,
|
|
3453
|
-
"onUpdate:model":
|
|
3487
|
+
"onUpdate:model": v[3] || (v[3] = (F) => e.value = F)
|
|
3454
3488
|
}, null, 8, ["model"])) : O("", !0),
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
p.value ? (
|
|
3489
|
+
v[9] || (v[9] = C("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
3490
|
+
C("div", la, [
|
|
3491
|
+
C("p", oa, Q(l(w)("report.section.style.configuration")), 1),
|
|
3492
|
+
C("div", ta, [
|
|
3493
|
+
p.value ? (f(), N(L, {
|
|
3460
3494
|
key: 0,
|
|
3461
3495
|
modelValue: o.value,
|
|
3462
|
-
"onUpdate:modelValue":
|
|
3496
|
+
"onUpdate:modelValue": v[4] || (v[4] = (F) => o.value = F),
|
|
3463
3497
|
class: "fm-typo-en-body-lg-400",
|
|
3464
3498
|
label: l(w)("report.section.datasource.stackBar.overlapBars")
|
|
3465
3499
|
}, null, 8, ["modelValue", "label"])) : O("", !0),
|
|
3466
|
-
s.config.hasLabel ? (
|
|
3500
|
+
s.config.hasLabel ? (f(), N(st, {
|
|
3467
3501
|
key: 1,
|
|
3468
3502
|
model: e.value,
|
|
3469
|
-
"onUpdate:model":
|
|
3503
|
+
"onUpdate:model": v[5] || (v[5] = (F) => e.value = F)
|
|
3470
3504
|
}, null, 8, ["model"])) : O("", !0),
|
|
3471
|
-
s.config.hasLegend ? (
|
|
3505
|
+
s.config.hasLegend ? (f(), N(wt, {
|
|
3472
3506
|
key: 2,
|
|
3473
3507
|
model: e.value,
|
|
3474
|
-
"is-circular-widget":
|
|
3475
|
-
"onUpdate:model":
|
|
3508
|
+
"is-circular-widget": x.value,
|
|
3509
|
+
"onUpdate:model": v[6] || (v[6] = (F) => e.value = F)
|
|
3476
3510
|
}, null, 8, ["model", "is-circular-widget"])) : O("", !0),
|
|
3477
|
-
s.config.hasXy ? (
|
|
3511
|
+
s.config.hasXy ? (f(), N(ft, {
|
|
3478
3512
|
key: 3,
|
|
3479
3513
|
model: e.value,
|
|
3480
|
-
"onUpdate:model":
|
|
3514
|
+
"onUpdate:model": v[7] || (v[7] = (F) => e.value = F)
|
|
3481
3515
|
}, null, 8, ["model"])) : O("", !0),
|
|
3482
|
-
s.config.hasXy ? (
|
|
3516
|
+
s.config.hasXy ? (f(), N(h, {
|
|
3483
3517
|
key: 4,
|
|
3484
3518
|
modelValue: U.value,
|
|
3485
|
-
"onUpdate:modelValue":
|
|
3519
|
+
"onUpdate:modelValue": v[8] || (v[8] = (F) => U.value = F),
|
|
3486
3520
|
type: "number",
|
|
3487
3521
|
label: l(w)("report.section.datasource.tooltip.maxTooltipItems"),
|
|
3488
3522
|
min: 2,
|
|
@@ -3495,7 +3529,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3495
3529
|
], 64);
|
|
3496
3530
|
};
|
|
3497
3531
|
}
|
|
3498
|
-
}),
|
|
3532
|
+
}), na = { class: "fixed bottom-6 right-6" }, ia = { class: "flex w-full items-center gap-8" }, sa = { class: "fm-typo-en-title-sm-600" }, ra = { class: "ml-auto text-fm-color-system-info-300" }, ua = /* @__PURE__ */ ie({
|
|
3499
3533
|
__name: "StyleEditorTab",
|
|
3500
3534
|
props: {
|
|
3501
3535
|
modelValue: {
|
|
@@ -3507,9 +3541,9 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3507
3541
|
},
|
|
3508
3542
|
emits: ["update:modelValue", "update:isStyleEditing"],
|
|
3509
3543
|
setup(D) {
|
|
3510
|
-
const { t: m } =
|
|
3511
|
-
() =>
|
|
3512
|
-
), t =
|
|
3544
|
+
const { t: m } = me(), e = fe(D, "modelValue"), s = T(
|
|
3545
|
+
() => Pe.find((p) => p.type === e.value.widget.type)
|
|
3546
|
+
), t = fe(D, "isStyleEditing"), w = T(() => {
|
|
3513
3547
|
var p;
|
|
3514
3548
|
return {
|
|
3515
3549
|
chartHeight: void 0,
|
|
@@ -3528,7 +3562,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3528
3562
|
labelOffset: 0,
|
|
3529
3563
|
labelFontSize: 12,
|
|
3530
3564
|
showX: !0,
|
|
3531
|
-
xPosition:
|
|
3565
|
+
xPosition: lo.bottom,
|
|
3532
3566
|
showXGrid: !1,
|
|
3533
3567
|
showXTick: !0,
|
|
3534
3568
|
xTickFontSize: 12,
|
|
@@ -3536,15 +3570,15 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3536
3570
|
xTitle: "",
|
|
3537
3571
|
xTitleFontSize: 12,
|
|
3538
3572
|
showY: !0,
|
|
3539
|
-
yPosition:
|
|
3573
|
+
yPosition: eo.left,
|
|
3540
3574
|
showYGrid: !1,
|
|
3541
3575
|
showYTick: !0,
|
|
3542
3576
|
yTickFontSize: 12,
|
|
3543
3577
|
showYTitle: !1,
|
|
3544
3578
|
yTitle: "",
|
|
3545
3579
|
yTitleFontSize: 12,
|
|
3546
|
-
showLegend: ((p = s.value) == null ? void 0 : p.type) ===
|
|
3547
|
-
legendPosition:
|
|
3580
|
+
showLegend: ((p = s.value) == null ? void 0 : p.type) === K.Circular,
|
|
3581
|
+
legendPosition: Zl.top,
|
|
3548
3582
|
usePointStyle: !0,
|
|
3549
3583
|
legendFontSize: void 0,
|
|
3550
3584
|
legendColor: "#6b6b6b",
|
|
@@ -3553,7 +3587,7 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3553
3587
|
stackBarOverlap: !1
|
|
3554
3588
|
};
|
|
3555
3589
|
});
|
|
3556
|
-
function
|
|
3590
|
+
function x() {
|
|
3557
3591
|
e.value && (e.value.widget.config = {
|
|
3558
3592
|
...e.value.widget.config,
|
|
3559
3593
|
...w.value
|
|
@@ -3561,16 +3595,16 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3561
3595
|
}
|
|
3562
3596
|
return (p, B) => {
|
|
3563
3597
|
const U = $("FmCircularProgress"), o = $("FmButton"), r = $("FmSideSheet");
|
|
3564
|
-
return
|
|
3598
|
+
return f(), N(r, {
|
|
3565
3599
|
modelValue: t.value,
|
|
3566
|
-
"onUpdate:modelValue": B[2] || (B[2] = (
|
|
3600
|
+
"onUpdate:modelValue": B[2] || (B[2] = (v) => t.value = v),
|
|
3567
3601
|
"close-button": !1,
|
|
3568
3602
|
"no-overlay": "",
|
|
3569
3603
|
"dismiss-away": !0,
|
|
3570
3604
|
"max-width": 500
|
|
3571
3605
|
}, {
|
|
3572
3606
|
"side-sheet-button": G(() => [
|
|
3573
|
-
|
|
3607
|
+
C("div", na, [
|
|
3574
3608
|
u(o, {
|
|
3575
3609
|
label: l(m)("report.section.style.button"),
|
|
3576
3610
|
icon: "edit",
|
|
@@ -3580,30 +3614,30 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3580
3614
|
])
|
|
3581
3615
|
]),
|
|
3582
3616
|
"side-sheet-header": G(() => [
|
|
3583
|
-
|
|
3617
|
+
C("div", ia, [
|
|
3584
3618
|
u(o, {
|
|
3585
3619
|
"prepend-icon": "arrow_back",
|
|
3586
3620
|
variant: "tertiary",
|
|
3587
3621
|
class: "fm-icon--rounded fm-icon--md text-fm-color-black",
|
|
3588
|
-
onClick: B[0] || (B[0] = (
|
|
3622
|
+
onClick: B[0] || (B[0] = (v) => t.value = !1)
|
|
3589
3623
|
}),
|
|
3590
|
-
|
|
3591
|
-
|
|
3624
|
+
C("p", sa, Q(l(m)("report.section.style.title")), 1),
|
|
3625
|
+
C("div", ra, [
|
|
3592
3626
|
u(o, {
|
|
3593
3627
|
label: l(m)("report.section.style.reset"),
|
|
3594
3628
|
variant: "tertiary",
|
|
3595
3629
|
size: "md",
|
|
3596
|
-
onClick:
|
|
3630
|
+
onClick: x,
|
|
3597
3631
|
"text-color": "text-fm-color-system-info-300"
|
|
3598
3632
|
}, null, 8, ["label"])
|
|
3599
3633
|
])
|
|
3600
3634
|
])
|
|
3601
3635
|
]),
|
|
3602
3636
|
default: G(() => [
|
|
3603
|
-
e.value ? O("", !0) : (
|
|
3604
|
-
u(
|
|
3637
|
+
e.value ? O("", !0) : (f(), N(U, { key: 0 })),
|
|
3638
|
+
u(aa, {
|
|
3605
3639
|
modelValue: e.value.widget.config,
|
|
3606
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
3640
|
+
"onUpdate:modelValue": B[1] || (B[1] = (v) => e.value.widget.config = v),
|
|
3607
3641
|
config: s.value
|
|
3608
3642
|
}, null, 8, ["modelValue", "config"])
|
|
3609
3643
|
]),
|
|
@@ -3611,12 +3645,12 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3611
3645
|
}, 8, ["modelValue"]);
|
|
3612
3646
|
};
|
|
3613
3647
|
}
|
|
3614
|
-
}),
|
|
3648
|
+
}), da = { class: "bg-fm-color-neutral-white flex flex-col h-full w-[510px]" }, ma = { class: "flex bg-fm-color-neutral-white w-[88px]" }, ca = { class: "w-full overflow-y-auto" }, pa = {
|
|
3615
3649
|
class: "grid grid-cols-12 w-full p-24",
|
|
3616
3650
|
style: { backgroundColor: "#F6F8FC" }
|
|
3617
|
-
},
|
|
3651
|
+
}, va = /* @__PURE__ */ ie({
|
|
3618
3652
|
__name: "TileEditorDesktop",
|
|
3619
|
-
props: /* @__PURE__ */
|
|
3653
|
+
props: /* @__PURE__ */ pe({
|
|
3620
3654
|
hideConfiguration: { type: Boolean, required: !0, default: !1 },
|
|
3621
3655
|
index: { type: Number, required: !0, default: 0 }
|
|
3622
3656
|
}, {
|
|
@@ -3625,88 +3659,88 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3625
3659
|
},
|
|
3626
3660
|
modelModifiers: {}
|
|
3627
3661
|
}),
|
|
3628
|
-
emits: /* @__PURE__ */
|
|
3662
|
+
emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
|
|
3629
3663
|
setup(D, { emit: m }) {
|
|
3630
|
-
const e =
|
|
3631
|
-
() =>
|
|
3664
|
+
const e = fe(D, "modelValue"), s = D, t = T(
|
|
3665
|
+
() => Pe.find((U) => {
|
|
3632
3666
|
var o;
|
|
3633
3667
|
return U.type === ((o = e.value) == null ? void 0 : o.widget.type);
|
|
3634
3668
|
})
|
|
3635
|
-
), w = m,
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
], p =
|
|
3669
|
+
), w = m, x = [
|
|
3670
|
+
K.BarChart,
|
|
3671
|
+
K.StackBarChart,
|
|
3672
|
+
K.ClusteredStackBarChart,
|
|
3673
|
+
K.LineChart,
|
|
3674
|
+
K.StackLineChart,
|
|
3675
|
+
K.Circular
|
|
3676
|
+
], p = T(() => x.includes(e.value.widget.type)), B = oe(!1);
|
|
3643
3677
|
return (U, o) => {
|
|
3644
|
-
const r = $("FmCircularProgress"),
|
|
3645
|
-
return
|
|
3646
|
-
e.value ? (
|
|
3647
|
-
u(
|
|
3678
|
+
const r = $("FmCircularProgress"), v = $("FmButton");
|
|
3679
|
+
return f(), H("div", null, [
|
|
3680
|
+
e.value ? (f(), H(ue, { key: 1 }, [
|
|
3681
|
+
u(ql, {
|
|
3648
3682
|
"model-value": !D.hideConfiguration
|
|
3649
3683
|
}, {
|
|
3650
3684
|
right: G(() => [
|
|
3651
|
-
|
|
3652
|
-
u(
|
|
3685
|
+
C("div", da, [
|
|
3686
|
+
u(Cl, {
|
|
3653
3687
|
modelValue: e.value,
|
|
3654
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3688
|
+
"onUpdate:modelValue": o[0] || (o[0] = (b) => e.value = b),
|
|
3655
3689
|
config: t.value,
|
|
3656
3690
|
"hide-configuration": D.hideConfiguration,
|
|
3657
|
-
onHideConfiguration: o[1] || (o[1] = (
|
|
3658
|
-
w("hideConfiguration",
|
|
3691
|
+
onHideConfiguration: o[1] || (o[1] = (b) => {
|
|
3692
|
+
w("hideConfiguration", b);
|
|
3659
3693
|
})
|
|
3660
3694
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
3661
3695
|
])
|
|
3662
3696
|
]),
|
|
3663
3697
|
left: G(() => [
|
|
3664
|
-
|
|
3665
|
-
u(
|
|
3698
|
+
C("div", ma, [
|
|
3699
|
+
u(v, {
|
|
3666
3700
|
variant: "secondary",
|
|
3667
3701
|
icon: "keyboard_double_arrow_right",
|
|
3668
|
-
"border-color": l(
|
|
3669
|
-
"text-color": l(
|
|
3702
|
+
"border-color": l(nl).ColorPrimary,
|
|
3703
|
+
"text-color": l(nl).ColorPrimary,
|
|
3670
3704
|
class: "m-24 my-16",
|
|
3671
3705
|
size: "md",
|
|
3672
|
-
onClick: o[2] || (o[2] = (
|
|
3706
|
+
onClick: o[2] || (o[2] = (b) => w("hideConfiguration", !s.hideConfiguration))
|
|
3673
3707
|
}, null, 8, ["border-color", "text-color"])
|
|
3674
3708
|
])
|
|
3675
3709
|
]),
|
|
3676
3710
|
_: 1
|
|
3677
3711
|
}, 8, ["model-value"]),
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
e.value ? (
|
|
3712
|
+
C("div", ca, [
|
|
3713
|
+
C("div", pa, [
|
|
3714
|
+
e.value ? (f(), N(hl, {
|
|
3681
3715
|
key: 0,
|
|
3682
3716
|
"model-value": e.value,
|
|
3683
3717
|
index: s.index,
|
|
3684
3718
|
"hide-export": !0,
|
|
3685
3719
|
"is-style-editing": B.value
|
|
3686
|
-
}, null, 8, ["model-value", "index", "is-style-editing"])) : (
|
|
3720
|
+
}, null, 8, ["model-value", "index", "is-style-editing"])) : (f(), N(bl, { key: 1 }))
|
|
3687
3721
|
])
|
|
3688
3722
|
]),
|
|
3689
|
-
p.value ? (
|
|
3723
|
+
p.value ? (f(), N(ua, {
|
|
3690
3724
|
key: 0,
|
|
3691
3725
|
modelValue: e.value,
|
|
3692
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
|
3726
|
+
"onUpdate:modelValue": o[3] || (o[3] = (b) => e.value = b),
|
|
3693
3727
|
"is-style-editing": B.value,
|
|
3694
|
-
"onUpdate:isStyleEditing": o[4] || (o[4] = (
|
|
3728
|
+
"onUpdate:isStyleEditing": o[4] || (o[4] = (b) => B.value = b),
|
|
3695
3729
|
"hide-configuration": D.hideConfiguration,
|
|
3696
|
-
onHideConfiguration: o[5] || (o[5] = (
|
|
3697
|
-
w("hideConfiguration",
|
|
3730
|
+
onHideConfiguration: o[5] || (o[5] = (b) => {
|
|
3731
|
+
w("hideConfiguration", b);
|
|
3698
3732
|
})
|
|
3699
3733
|
}, null, 8, ["modelValue", "is-style-editing", "hide-configuration"])) : O("", !0)
|
|
3700
|
-
], 64)) : (
|
|
3734
|
+
], 64)) : (f(), N(r, { key: 0 }))
|
|
3701
3735
|
]);
|
|
3702
3736
|
};
|
|
3703
3737
|
}
|
|
3704
|
-
}),
|
|
3738
|
+
}), fa = {
|
|
3705
3739
|
key: 0,
|
|
3706
3740
|
class: "flex w-full justify-center items-center"
|
|
3707
|
-
},
|
|
3741
|
+
}, ga = { class: "w-full grid grid-cols-12 pb-28 pt-5 px-5 h-full" }, ya = /* @__PURE__ */ ie({
|
|
3708
3742
|
__name: "TileEditorMobile",
|
|
3709
|
-
props: /* @__PURE__ */
|
|
3743
|
+
props: /* @__PURE__ */ pe({
|
|
3710
3744
|
hideConfiguration: { type: Boolean, required: !0, default: !1 },
|
|
3711
3745
|
index: { type: Number, required: !0, default: 0 }
|
|
3712
3746
|
}, {
|
|
@@ -3715,27 +3749,27 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3715
3749
|
},
|
|
3716
3750
|
modelModifiers: {}
|
|
3717
3751
|
}),
|
|
3718
|
-
emits: /* @__PURE__ */
|
|
3752
|
+
emits: /* @__PURE__ */ pe(["hideConfiguration"], ["update:modelValue"]),
|
|
3719
3753
|
setup(D, { emit: m }) {
|
|
3720
|
-
const e =
|
|
3721
|
-
() =>
|
|
3754
|
+
const e = fe(D, "modelValue"), s = D, t = T(
|
|
3755
|
+
() => Pe.find((x) => {
|
|
3722
3756
|
var p;
|
|
3723
|
-
return
|
|
3757
|
+
return x.type === ((p = e.value) == null ? void 0 : p.widget.type);
|
|
3724
3758
|
})
|
|
3725
3759
|
), w = m;
|
|
3726
|
-
return (
|
|
3760
|
+
return (x, p) => {
|
|
3727
3761
|
const B = $("FmCircularProgress");
|
|
3728
|
-
return
|
|
3729
|
-
e.value ? (
|
|
3730
|
-
|
|
3731
|
-
e.value ? (
|
|
3762
|
+
return f(), H("div", null, [
|
|
3763
|
+
e.value ? (f(), H(ue, { key: 1 }, [
|
|
3764
|
+
C("div", ga, [
|
|
3765
|
+
e.value ? (f(), N(hl, {
|
|
3732
3766
|
key: 0,
|
|
3733
3767
|
"model-value": e.value,
|
|
3734
3768
|
index: s.index,
|
|
3735
3769
|
"hide-export": !0
|
|
3736
|
-
}, null, 8, ["model-value", "index"])) : (
|
|
3770
|
+
}, null, 8, ["model-value", "index"])) : (f(), N(bl, { key: 1 }))
|
|
3737
3771
|
]),
|
|
3738
|
-
u(
|
|
3772
|
+
u(Cl, {
|
|
3739
3773
|
modelValue: e.value,
|
|
3740
3774
|
"onUpdate:modelValue": p[0] || (p[0] = (U) => e.value = U),
|
|
3741
3775
|
config: t.value,
|
|
@@ -3744,38 +3778,38 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3744
3778
|
w("hideConfiguration", U);
|
|
3745
3779
|
})
|
|
3746
3780
|
}, null, 8, ["modelValue", "config", "hide-configuration"])
|
|
3747
|
-
], 64)) : (
|
|
3781
|
+
], 64)) : (f(), H("div", fa, [
|
|
3748
3782
|
u(B)
|
|
3749
3783
|
]))
|
|
3750
3784
|
]);
|
|
3751
3785
|
};
|
|
3752
3786
|
}
|
|
3753
|
-
}),
|
|
3787
|
+
}), ba = {
|
|
3754
3788
|
key: 0,
|
|
3755
3789
|
class: "fm-typo-en-title-md-600"
|
|
3756
|
-
},
|
|
3790
|
+
}, ha = {
|
|
3757
3791
|
key: 0,
|
|
3758
3792
|
class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
|
|
3759
|
-
},
|
|
3793
|
+
}, La = /* @__PURE__ */ ie({
|
|
3760
3794
|
__name: "TileEditor",
|
|
3761
3795
|
setup(D) {
|
|
3762
|
-
const { rowHeight: m, colWidths: e } = Se(
|
|
3796
|
+
const { rowHeight: m, colWidths: e } = Se(je()), s = Rl(), t = Il(), w = vl(), { globalFilters: x } = Se(Jl()), { currentSelectWidgetType: p, editingReport: B, editingTile: U, editingTileIndex: o } = Se(w), { breakpoints: r } = gl(), { promptMessage: v } = fl(), { t: b, te: L } = me(), h = T(() => {
|
|
3763
3797
|
var c;
|
|
3764
3798
|
const a = (c = U.value) == null ? void 0 : c.widget.type;
|
|
3765
3799
|
if (!a)
|
|
3766
|
-
return
|
|
3800
|
+
return b("report.editor.newReport");
|
|
3767
3801
|
const g = `report.widget.types.${a.toLowerCase()}`;
|
|
3768
|
-
return L(g) ?
|
|
3769
|
-
}),
|
|
3802
|
+
return L(g) ? b(g) : a;
|
|
3803
|
+
}), F = oe(!1);
|
|
3770
3804
|
function z() {
|
|
3771
3805
|
p.value = void 0, U.value = void 0, o.value = -1, t.back();
|
|
3772
3806
|
}
|
|
3773
|
-
async function
|
|
3807
|
+
async function k() {
|
|
3774
3808
|
var g;
|
|
3775
3809
|
if (!B.value) return;
|
|
3776
|
-
await
|
|
3777
|
-
title:
|
|
3778
|
-
message:
|
|
3810
|
+
await v({
|
|
3811
|
+
title: b("report.tile.save.title"),
|
|
3812
|
+
message: b("report.tile.save.confirm", { title: (g = U.value) == null ? void 0 : g.widget.title })
|
|
3779
3813
|
}) && U.value && (U.value.widget.config = {
|
|
3780
3814
|
...U.value.widget.config,
|
|
3781
3815
|
rowHeight: m.value,
|
|
@@ -3785,46 +3819,46 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3785
3819
|
async function d() {
|
|
3786
3820
|
var g;
|
|
3787
3821
|
if (!B.value) return;
|
|
3788
|
-
await
|
|
3789
|
-
title:
|
|
3790
|
-
message:
|
|
3822
|
+
await v({
|
|
3823
|
+
title: b("report.tile.cancel.title"),
|
|
3824
|
+
message: b("report.tile.cancel.confirm", { title: (g = U.value) == null ? void 0 : g.widget.title })
|
|
3791
3825
|
}) && z();
|
|
3792
3826
|
}
|
|
3793
|
-
return
|
|
3827
|
+
return Ke(() => {
|
|
3794
3828
|
B.value || t.push({ name: "reports" });
|
|
3795
3829
|
}), (a, g) => {
|
|
3796
3830
|
const c = $("FmPageHead");
|
|
3797
|
-
return
|
|
3831
|
+
return f(), N(Hl, null, {
|
|
3798
3832
|
default: G(() => [
|
|
3799
3833
|
u(c, {
|
|
3800
3834
|
actions: [
|
|
3801
|
-
{ label: l(
|
|
3802
|
-
{ label: l(
|
|
3835
|
+
{ label: l(b)("report.common.cancel"), value: "cancel", isPrimary: !1 },
|
|
3836
|
+
{ label: l(b)("report.common.save"), value: "save", isPrimary: !0 }
|
|
3803
3837
|
],
|
|
3804
|
-
"onClick:action": g[0] || (g[0] = (
|
|
3805
|
-
|
|
3838
|
+
"onClick:action": g[0] || (g[0] = (S) => {
|
|
3839
|
+
S === "cancel" && d(), S === "save" && k();
|
|
3806
3840
|
})
|
|
3807
3841
|
}, {
|
|
3808
3842
|
title: G(() => [
|
|
3809
|
-
l(r).lg || l(r).md ? (
|
|
3843
|
+
l(r).lg || l(r).md ? (f(), H("p", ba, Q(h.value), 1)) : O("", !0)
|
|
3810
3844
|
]),
|
|
3811
3845
|
_: 1
|
|
3812
3846
|
}, 8, ["actions"]),
|
|
3813
|
-
l(U) && (l(
|
|
3814
|
-
const i =
|
|
3847
|
+
l(U) && (l(x) || []).some((S) => {
|
|
3848
|
+
const i = S.tileIds, n = l(U) && l(U).id;
|
|
3815
3849
|
return Array.isArray(i) && typeof n == "string" && i.includes(n);
|
|
3816
|
-
}) ? (
|
|
3817
|
-
u(
|
|
3850
|
+
}) ? (f(), H("div", ha, [
|
|
3851
|
+
u(Kl)
|
|
3818
3852
|
])) : O("", !0),
|
|
3819
|
-
l(U) ? (
|
|
3853
|
+
l(U) ? (f(), N(cl(l(r).lg || l(r).md ? va : ya), {
|
|
3820
3854
|
key: 1,
|
|
3821
3855
|
modelValue: l(U),
|
|
3822
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
3856
|
+
"onUpdate:modelValue": g[1] || (g[1] = (S) => zl(U) ? U.value = S : null),
|
|
3823
3857
|
class: ke(`${l(r).lg || l(r).md ? "flex" : ""} w-full`),
|
|
3824
|
-
style:
|
|
3825
|
-
"hide-configuration":
|
|
3858
|
+
style: He({ height: `calc( 100% - ${l(r).lg || l(r).md ? 72 : 64}px)` }),
|
|
3859
|
+
"hide-configuration": F.value,
|
|
3826
3860
|
index: Number(l(s).params.tileIndex),
|
|
3827
|
-
onHideConfiguration: g[2] || (g[2] = (
|
|
3861
|
+
onHideConfiguration: g[2] || (g[2] = (S) => F.value = S)
|
|
3828
3862
|
}, null, 40, ["modelValue", "class", "style", "hide-configuration", "index"])) : O("", !0)
|
|
3829
3863
|
]),
|
|
3830
3864
|
_: 1
|
|
@@ -3833,5 +3867,5 @@ const mo = { class: "flex flex-col my-2 gap-8" }, co = { class: "fm-typo-en-body
|
|
|
3833
3867
|
}
|
|
3834
3868
|
});
|
|
3835
3869
|
export {
|
|
3836
|
-
|
|
3870
|
+
La as default
|
|
3837
3871
|
};
|