@feedmepos/mf-report 5.9.2-beta.0 → 5.9.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,7 +93,7 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
93
93
|
}), Z(() => {
|
|
94
94
|
l(de);
|
|
95
95
|
}), T(() => {
|
|
96
|
-
console.log("5.9.
|
|
96
|
+
console.log("5.9.3-beta.0", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
98
|
const E = ie(), L = me();
|
|
99
99
|
M(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, mergeModels as J, useModel as j, ref as W, computed as N, resolveComponent as v, createBlock as x, openBlock as i, withCtx as s, createElementVNode as b, createVNode as a, unref as e, normalizeClass as le, createTextVNode as ue, toDisplayString as P, createElementBlock as
|
|
1
|
+
import { defineComponent as G, mergeModels as J, useModel as j, ref as W, computed as N, resolveComponent as v, createBlock as x, openBlock as i, withCtx as s, createElementVNode as b, createVNode as a, unref as e, normalizeClass as le, createTextVNode as ue, toDisplayString as P, createElementBlock as V, Fragment as L, renderSlot as Ce, createCommentVNode as Y, watch as de, renderList as Q, resolveDynamicComponent as Be, isRef as ke, normalizeStyle as me, onMounted as Ue } from "vue";
|
|
2
2
|
import { W as De, i as We, S as he, d as ye, T as Re, _ as qe } from "./TransitionFade-DNs7JUcf.js";
|
|
3
3
|
import { D as K, c as Ie, C as _e, a as Ve, b as Pe, v as ee } from "./v4-CAyILVZZ.js";
|
|
4
4
|
import { storeToRefs as ce } from "pinia";
|
|
@@ -77,7 +77,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
77
77
|
const { t: u } = te(), n = j(F, "modelValue"), r = F;
|
|
78
78
|
return (y, d) => {
|
|
79
79
|
const w = v("FmIcon");
|
|
80
|
-
return i(),
|
|
80
|
+
return i(), V("div", {
|
|
81
81
|
class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
|
|
82
82
|
onClick: d[0] || (d[0] = (m) => n.value = !n.value)
|
|
83
83
|
}, [
|
|
@@ -98,7 +98,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
98
98
|
emits: ["update:modelValue"],
|
|
99
99
|
setup(F) {
|
|
100
100
|
const u = j(F, "modelValue");
|
|
101
|
-
return (n, r) => (i(),
|
|
101
|
+
return (n, r) => (i(), V(L, null, [
|
|
102
102
|
a(pe, {
|
|
103
103
|
modelValue: u.value,
|
|
104
104
|
"onUpdate:modelValue": r[0] || (r[0] = (y) => u.value = y),
|
|
@@ -171,18 +171,18 @@ const ze = /* @__PURE__ */ G({
|
|
|
171
171
|
setup(F) {
|
|
172
172
|
const { t: u } = te(), n = j(F, "globalFilter"), r = j(F, "isOpen"), y = Oe(), d = F, w = W(), m = W(), C = W(), c = W([]);
|
|
173
173
|
de(r, (p) => {
|
|
174
|
-
var t,
|
|
174
|
+
var t, k, U;
|
|
175
175
|
p && (w.value = ((t = n.value) == null ? void 0 : t.label) || "", m.value = d.schemas.find(
|
|
176
176
|
(D) => {
|
|
177
177
|
var T;
|
|
178
178
|
return D.name === ((T = n.value) == null ? void 0 : T.schemaName);
|
|
179
179
|
}
|
|
180
|
-
), C.value = (
|
|
180
|
+
), C.value = (k = q.value.find(
|
|
181
181
|
(D) => {
|
|
182
182
|
var T;
|
|
183
183
|
return D.value.name === ((T = n.value) == null ? void 0 : T.name);
|
|
184
184
|
}
|
|
185
|
-
)) == null ? void 0 :
|
|
185
|
+
)) == null ? void 0 : k.value, c.value = ((U = n.value) == null ? void 0 : U.tileIds) || []);
|
|
186
186
|
});
|
|
187
187
|
const R = N(
|
|
188
188
|
() => d.schemas.map((p) => ({
|
|
@@ -192,19 +192,19 @@ const ze = /* @__PURE__ */ G({
|
|
|
192
192
|
), q = N(() => {
|
|
193
193
|
var p;
|
|
194
194
|
return (((p = m.value) == null ? void 0 : p.fields) || []).reduce(
|
|
195
|
-
(t,
|
|
196
|
-
label:
|
|
197
|
-
value:
|
|
195
|
+
(t, k) => ([K.Bool, K.String, K.Timestamp].includes(k.type) && t.push({
|
|
196
|
+
label: k.label,
|
|
197
|
+
value: k
|
|
198
198
|
}), t),
|
|
199
199
|
[]
|
|
200
200
|
);
|
|
201
|
-
}), O = N(() => d.tiles.reduce((p, t,
|
|
201
|
+
}), O = N(() => d.tiles.reduce((p, t, k) => {
|
|
202
202
|
var T, z;
|
|
203
203
|
const U = t.widget.config.schemaNames ?? [], D = (t.widget.config.joinDatasources ?? []).flatMap(
|
|
204
204
|
(_) => _.schemaNames ?? []
|
|
205
205
|
);
|
|
206
206
|
return [...U, ...D].includes(((T = m.value) == null ? void 0 : T.name) || "") && p.push({
|
|
207
|
-
label: (z = t == null ? void 0 : t.widget.title) != null && z.trim() ? t.widget.title : `Widget ${
|
|
207
|
+
label: (z = t == null ? void 0 : t.widget.title) != null && z.trim() ? t.widget.title : `Widget ${k + 1}`,
|
|
208
208
|
value: t.id
|
|
209
209
|
}), p;
|
|
210
210
|
}, []));
|
|
@@ -239,13 +239,13 @@ const ze = /* @__PURE__ */ G({
|
|
|
239
239
|
option: C.value.type === K.Timestamp ? Ie.DateTime : null,
|
|
240
240
|
tileIds: [...c.value],
|
|
241
241
|
filters: []
|
|
242
|
-
},
|
|
242
|
+
}, r.value = !1;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function S() {
|
|
245
245
|
r.value = !1;
|
|
246
246
|
}
|
|
247
247
|
return (p, t) => {
|
|
248
|
-
const
|
|
248
|
+
const k = v("FmTextField"), U = v("FmLabel"), D = v("FmCheckbox"), T = v("FmForm"), z = v("FmButton"), _ = v("FmDialog");
|
|
249
249
|
return i(), x(_, {
|
|
250
250
|
modelValue: r.value,
|
|
251
251
|
"onUpdate:modelValue": t[4] || (t[4] = (o) => r.value = o),
|
|
@@ -261,7 +261,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
261
261
|
class: "flex flex-col gap-2 w-[490px]"
|
|
262
262
|
}, {
|
|
263
263
|
default: s(() => [
|
|
264
|
-
a(
|
|
264
|
+
a(k, {
|
|
265
265
|
modelValue: w.value,
|
|
266
266
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => w.value = o),
|
|
267
267
|
placeholder: e(u)("report.section.filter.displayName"),
|
|
@@ -288,8 +288,8 @@ const ze = /* @__PURE__ */ G({
|
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
290
|
}),
|
|
291
|
-
F.tiles.length > 0 ? (i(),
|
|
292
|
-
(i(!0),
|
|
291
|
+
F.tiles.length > 0 ? (i(), V("div", je, [
|
|
292
|
+
(i(!0), V(L, null, Q(O.value, (o) => (i(), x(D, {
|
|
293
293
|
key: o.value,
|
|
294
294
|
modelValue: c.value,
|
|
295
295
|
"onUpdate:modelValue": t[3] || (t[3] = (l) => c.value = l),
|
|
@@ -310,7 +310,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
310
310
|
a(z, {
|
|
311
311
|
label: e(u)("report.common.cancel"),
|
|
312
312
|
variant: "tertiary",
|
|
313
|
-
onClick:
|
|
313
|
+
onClick: S
|
|
314
314
|
}, null, 8, ["label"]),
|
|
315
315
|
a(z, {
|
|
316
316
|
label: e(u)("report.common.confirm"),
|
|
@@ -341,7 +341,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
341
341
|
editingTileIndex: O,
|
|
342
342
|
editingGlobalFilter: B,
|
|
343
343
|
editingGlobalFilterIndex: g
|
|
344
|
-
} = ce(Ve()), { schemas: $ } = ce(Pe()), { promptMessage: A } = Te(),
|
|
344
|
+
} = ce(Ve()), { schemas: $ } = ce(Pe()), { promptMessage: A } = Te(), S = W(!1), p = W(!1), { t, te: k } = te(), U = W(void 0), D = N(() => {
|
|
345
345
|
const o = n.value.tiles.flatMap((l) => {
|
|
346
346
|
var f;
|
|
347
347
|
const I = l.widget.config.schemaNames ?? [], M = ((f = l.widget.config.joinDatasources) == null ? void 0 : f.flatMap((E) => E.schemaNames ?? [])) ?? [];
|
|
@@ -420,7 +420,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
420
420
|
variant: "tertiary",
|
|
421
421
|
onClick: (o) => {
|
|
422
422
|
var l;
|
|
423
|
-
g.value = o, B.value = JSON.parse(JSON.stringify((l = n.value.globalFilters) == null ? void 0 : l[o])),
|
|
423
|
+
g.value = o, B.value = JSON.parse(JSON.stringify((l = n.value.globalFilters) == null ? void 0 : l[o])), S.value = !0;
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
426
|
{
|
|
@@ -451,13 +451,13 @@ const ze = /* @__PURE__ */ G({
|
|
|
451
451
|
}, {
|
|
452
452
|
default: s(() => [
|
|
453
453
|
a(Ge, {
|
|
454
|
-
"is-open":
|
|
455
|
-
"onUpdate:isOpen": l[0] || (l[0] = (h) =>
|
|
454
|
+
"is-open": S.value,
|
|
455
|
+
"onUpdate:isOpen": l[0] || (l[0] = (h) => S.value = h),
|
|
456
456
|
"global-filter": e(B),
|
|
457
457
|
tiles: n.value.tiles,
|
|
458
458
|
schemas: D.value,
|
|
459
459
|
"onUpdate:globalFilter": l[1] || (l[1] = (h) => {
|
|
460
|
-
|
|
460
|
+
h && (n.value.globalFilters || (n.value.globalFilters = []), typeof e(g) == "number" && e(g) >= 0 ? n.value.globalFilters[e(g)] = h : n.value.globalFilters.push(h));
|
|
461
461
|
})
|
|
462
462
|
}, null, 8, ["is-open", "global-filter", "tiles", "schemas"]),
|
|
463
463
|
a(ze, {
|
|
@@ -513,7 +513,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
513
513
|
"border-color": e(X).ColorPrimary,
|
|
514
514
|
"text-color": e(X).ColorPrimary,
|
|
515
515
|
onClick: l[6] || (l[6] = () => {
|
|
516
|
-
g.value = null, B.value = null,
|
|
516
|
+
g.value = null, B.value = null, S.value = !0;
|
|
517
517
|
})
|
|
518
518
|
}, null, 8, ["label", "border-color", "text-color"]),
|
|
519
519
|
a(be, null, {
|
|
@@ -571,7 +571,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
571
571
|
})
|
|
572
572
|
]),
|
|
573
573
|
default: s(() => [
|
|
574
|
-
(i(),
|
|
574
|
+
(i(), V(L, null, Q(z, (H, ne) => a(ve, {
|
|
575
575
|
key: ne,
|
|
576
576
|
onClick: (Ne) => H.onClick(Z)
|
|
577
577
|
}, {
|
|
@@ -626,11 +626,11 @@ const ze = /* @__PURE__ */ G({
|
|
|
626
626
|
class: "handle"
|
|
627
627
|
}),
|
|
628
628
|
a(oe, {
|
|
629
|
-
content: h.widget.title ? e(we)(e(t), e(
|
|
629
|
+
content: h.widget.title ? e(we)(e(t), e(k), h.widget.title, "other") : e(t)("report.editor.widget", { index: Z + 1 }),
|
|
630
630
|
class: "handle"
|
|
631
631
|
}, {
|
|
632
632
|
default: s(() => [
|
|
633
|
-
b("p", Ze, P(h.widget.title ? e(we)(e(t), e(
|
|
633
|
+
b("p", Ze, P(h.widget.title ? e(we)(e(t), e(k), h.widget.title, "other") : e(t)("report.editor.widget", { index: Z + 1 })), 1)
|
|
634
634
|
]),
|
|
635
635
|
_: 2
|
|
636
636
|
}, 1032, ["content"]),
|
|
@@ -647,7 +647,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
647
647
|
})
|
|
648
648
|
]),
|
|
649
649
|
default: s(() => [
|
|
650
|
-
(i(),
|
|
650
|
+
(i(), V(L, null, Q(T, (H, ne) => a(ve, {
|
|
651
651
|
key: ne,
|
|
652
652
|
onClick: (Ne) => H.onClick(Z)
|
|
653
653
|
}, {
|
|
@@ -714,8 +714,8 @@ const ze = /* @__PURE__ */ G({
|
|
|
714
714
|
const { breakpoints: n } = ae(), r = j(F, "modelValue"), y = F, d = N(() => y.previewWidth > 0 && y.previewHeight > 0), w = N(() => n.value.sm || n.value.xs), m = u;
|
|
715
715
|
return (C, c) => {
|
|
716
716
|
const R = v("FmCircularProgress"), q = v("FmButton"), O = v("FmMenuDivider"), B = v("FmCard");
|
|
717
|
-
return i(),
|
|
718
|
-
r.value ? (i(),
|
|
717
|
+
return i(), V("div", el, [
|
|
718
|
+
r.value ? (i(), V(L, { key: 1 }, [
|
|
719
719
|
d.value ? Y("", !0) : (i(), x(Re, {
|
|
720
720
|
key: 0,
|
|
721
721
|
"model-value": !y.hideConfiguration
|
|
@@ -750,20 +750,20 @@ const ze = /* @__PURE__ */ G({
|
|
|
750
750
|
vertical: "",
|
|
751
751
|
style: { margin: "0px" }
|
|
752
752
|
}),
|
|
753
|
-
!w.value && !d.value ? (i(),
|
|
754
|
-
r.value.tiles.length > 0 ? (i(),
|
|
755
|
-
(i(!0),
|
|
753
|
+
!w.value && !d.value ? (i(), V("div", ol, [
|
|
754
|
+
r.value.tiles.length > 0 ? (i(), V("div", al, [
|
|
755
|
+
(i(!0), V(L, null, Q(r.value.tiles, (g, $) => (i(), x(ie, {
|
|
756
756
|
key: `${e(ee)()}_${$}`,
|
|
757
757
|
"model-value": g,
|
|
758
758
|
index: $,
|
|
759
759
|
"hide-export": !0
|
|
760
760
|
}, null, 8, ["model-value", "index"]))), 128))
|
|
761
761
|
])) : (i(), x(se, { key: 1 }))
|
|
762
|
-
])) : w.value && !d.value ? (i(),
|
|
762
|
+
])) : w.value && !d.value ? (i(), V("div", nl, [
|
|
763
763
|
a(B, { class: "px-5 pb-28" }, {
|
|
764
764
|
default: s(() => [
|
|
765
|
-
r.value.tiles.length > 0 ? (i(),
|
|
766
|
-
(i(!0),
|
|
765
|
+
r.value.tiles.length > 0 ? (i(), V("div", rl, [
|
|
766
|
+
(i(!0), V(L, null, Q(r.value.tiles, (g, $) => (i(), x(ie, {
|
|
767
767
|
key: `${e(ee)()}_${$}`,
|
|
768
768
|
"model-value": g,
|
|
769
769
|
index: $,
|
|
@@ -782,7 +782,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
782
782
|
m("hideConfiguration", g);
|
|
783
783
|
})
|
|
784
784
|
}, null, 8, ["modelValue", "hide-configuration"])) : Y("", !0)
|
|
785
|
-
])) : (i(),
|
|
785
|
+
])) : (i(), V("div", il, [
|
|
786
786
|
b("div", {
|
|
787
787
|
style: me({
|
|
788
788
|
transformOrigin: "top center",
|
|
@@ -796,8 +796,8 @@ const ze = /* @__PURE__ */ G({
|
|
|
796
796
|
height: y.previewHeight + "px"
|
|
797
797
|
})
|
|
798
798
|
}, [
|
|
799
|
-
r.value.tiles.length > 0 ? (i(),
|
|
800
|
-
(i(!0),
|
|
799
|
+
r.value.tiles.length > 0 ? (i(), V("div", sl, [
|
|
800
|
+
(i(!0), V(L, null, Q(r.value.tiles, (g, $) => (i(), x(ie, {
|
|
801
801
|
key: `${e(ee)()}_${$}`,
|
|
802
802
|
"model-value": g,
|
|
803
803
|
index: $,
|
|
@@ -883,13 +883,13 @@ const ze = /* @__PURE__ */ G({
|
|
|
883
883
|
width: 390,
|
|
884
884
|
height: 859
|
|
885
885
|
}
|
|
886
|
-
],
|
|
886
|
+
], S = W(A[0]), p = W(!1), t = N(() => p.value ? Math.max(S.value.width || 0, S.value.height || 0) : Math.min(S.value.width || 0, S.value.height || 0)), k = N(() => p.value ? Math.min(S.value.width || 0, S.value.height || 0) : Math.max(S.value.width || 0, S.value.height || 0)), U = N(() => window.innerHeight - 72 - 56), D = N(() => {
|
|
887
887
|
if (!t.value) return 1;
|
|
888
|
-
let _ = (U.value - 48) / t.value, o =
|
|
889
|
-
return o > window.innerWidth && (_ = window.innerWidth /
|
|
888
|
+
let _ = (U.value - 48) / t.value, o = k.value * _;
|
|
889
|
+
return o > window.innerWidth && (_ = window.innerWidth / k.value, o = k.value * _), _ > 1 ? 1 : _;
|
|
890
890
|
});
|
|
891
891
|
function T(_) {
|
|
892
|
-
|
|
892
|
+
S.value = _;
|
|
893
893
|
}
|
|
894
894
|
function z() {
|
|
895
895
|
p.value = !p.value;
|
|
@@ -922,12 +922,12 @@ const ze = /* @__PURE__ */ G({
|
|
|
922
922
|
}, 8, ["content"]),
|
|
923
923
|
b("div", ml, [
|
|
924
924
|
b("div", cl, [
|
|
925
|
-
(i(),
|
|
925
|
+
(i(), V(L, null, Q(A, (f) => {
|
|
926
926
|
var E;
|
|
927
927
|
return a(I, {
|
|
928
928
|
key: f.label,
|
|
929
929
|
label: f.label,
|
|
930
|
-
variant: ((E =
|
|
930
|
+
variant: ((E = S.value) == null ? void 0 : E.label) === f.label ? "primary" : "secondary",
|
|
931
931
|
size: "md",
|
|
932
932
|
onClick: (oe) => T(f)
|
|
933
933
|
}, null, 8, ["label", "variant", "onClick"]);
|
|
@@ -952,7 +952,7 @@ const ze = /* @__PURE__ */ G({
|
|
|
952
952
|
style: me({ height: U.value + "px" }),
|
|
953
953
|
class: le(e(C).lg || e(C).md ? "flex" : ""),
|
|
954
954
|
"hide-configuration": B.value,
|
|
955
|
-
"preview-width":
|
|
955
|
+
"preview-width": k.value,
|
|
956
956
|
"preview-height": t.value,
|
|
957
957
|
"preview-scale": D.value,
|
|
958
958
|
onHideConfiguration: o[2] || (o[2] = (f) => B.value = f)
|
package/dist/app.js
CHANGED
|
@@ -4525,7 +4525,7 @@ const a = {
|
|
|
4525
4525
|
{
|
|
4526
4526
|
path: "/report-editor",
|
|
4527
4527
|
name: "reportEditor",
|
|
4528
|
-
component: () => import("./ReportEditor-
|
|
4528
|
+
component: () => import("./ReportEditor-BH4AV5b0.js")
|
|
4529
4529
|
},
|
|
4530
4530
|
{
|
|
4531
4531
|
path: "/report-editor/tile-editor",
|
|
@@ -4573,7 +4573,7 @@ const u = {
|
|
|
4573
4573
|
"zh-CN": m,
|
|
4574
4574
|
"th-TH": c,
|
|
4575
4575
|
"zh-Hant": p
|
|
4576
|
-
}, h = e(() => import("./App-
|
|
4576
|
+
}, h = e(() => import("./App-BRF4io7t.js"));
|
|
4577
4577
|
export {
|
|
4578
4578
|
h as FmApp,
|
|
4579
4579
|
u as i18nMessages,
|