@feedmepos/mf-report 5.4.13-beta.3 → 5.4.13-beta.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.
|
@@ -77,7 +77,7 @@ const me = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, de
|
|
|
77
77
|
}), X(() => {
|
|
78
78
|
d(le);
|
|
79
79
|
}), j(() => {
|
|
80
|
-
console.log("5.4.13-beta.
|
|
80
|
+
console.log("5.4.13-beta.4", !0), window.addEventListener("message", C), window.addEventListener("message", $);
|
|
81
81
|
});
|
|
82
82
|
const F = ae(), B = ie();
|
|
83
83
|
z(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, mergeModels as w, useModel as R, ref as N, computed as U, resolveComponent as m, createBlock as y, openBlock as r, withCtx as u, createElementVNode as _, createVNode as t, normalizeClass as D, unref as l, createTextVNode as pe, createElementBlock as F, Fragment as B, renderSlot as A, createCommentVNode as O, watch as ce, resolveDynamicComponent as G, isRef as Y, toDisplayString as L, renderList as z, onMounted as fe, normalizeStyle as ve } from "vue";
|
|
2
2
|
import { W as ge, i as _e, S as ye, d as Ce, T as be, _ as Ve } from "./TransitionFade-ijtXaz1S.js";
|
|
3
3
|
import { a as j, v as K } from "./v4-Cb0oLva6.js";
|
|
4
4
|
import { _ as ke } from "./HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js";
|
|
@@ -9,7 +9,7 @@ import { u as ee } from "./message-dialog-UoMWOnil.js";
|
|
|
9
9
|
import { _ as oe } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DVqkXuFU.js";
|
|
10
10
|
import { _ as te } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
|
|
11
11
|
import { d as xe } from "./global-loader-CMC9fgBi.js";
|
|
12
|
-
const we = /* @__PURE__ */
|
|
12
|
+
const we = /* @__PURE__ */ $({
|
|
13
13
|
__name: "WidgetDialog",
|
|
14
14
|
props: /* @__PURE__ */ w({
|
|
15
15
|
isOpen: { type: Boolean }
|
|
@@ -28,7 +28,7 @@ const we = /* @__PURE__ */ h({
|
|
|
28
28
|
}
|
|
29
29
|
const v = N(), i = U(() => !v.value);
|
|
30
30
|
return (k, b) => {
|
|
31
|
-
const
|
|
31
|
+
const h = m("FmButton"), M = m("FmDialog");
|
|
32
32
|
return r(), y(M, {
|
|
33
33
|
"model-value": s.isOpen
|
|
34
34
|
}, {
|
|
@@ -45,12 +45,12 @@ const we = /* @__PURE__ */ h({
|
|
|
45
45
|
]),
|
|
46
46
|
"dialog-footer": u(() => [
|
|
47
47
|
b[2] || (b[2] = _("div", { class: "grow" }, null, -1)),
|
|
48
|
-
t(
|
|
48
|
+
t(h, {
|
|
49
49
|
label: "Cancel",
|
|
50
50
|
variant: "tertiary",
|
|
51
51
|
onClick: e
|
|
52
52
|
}),
|
|
53
|
-
t(
|
|
53
|
+
t(h, {
|
|
54
54
|
label: "Confirm",
|
|
55
55
|
disabled: i.value,
|
|
56
56
|
onClick: f
|
|
@@ -60,7 +60,7 @@ const we = /* @__PURE__ */ h({
|
|
|
60
60
|
}, 8, ["model-value"]);
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
}), P = /* @__PURE__ */
|
|
63
|
+
}), P = /* @__PURE__ */ $({
|
|
64
64
|
__name: "ReportEditorTabHeader",
|
|
65
65
|
props: /* @__PURE__ */ w({
|
|
66
66
|
icon: {
|
|
@@ -88,7 +88,7 @@ const we = /* @__PURE__ */ h({
|
|
|
88
88
|
]);
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), he = /* @__PURE__ */ $({
|
|
92
92
|
__name: "ReportEditorTabDesktop",
|
|
93
93
|
props: {
|
|
94
94
|
modelValue: { required: !0, default: !1 },
|
|
@@ -106,7 +106,7 @@ const we = /* @__PURE__ */ h({
|
|
|
106
106
|
A(o.$slots, "default")
|
|
107
107
|
], 64));
|
|
108
108
|
}
|
|
109
|
-
}),
|
|
109
|
+
}), $e = /* @__PURE__ */ $({
|
|
110
110
|
__name: "ReportEditorTabMobile",
|
|
111
111
|
props: {
|
|
112
112
|
modelValue: { required: !0, default: !1 },
|
|
@@ -144,7 +144,7 @@ const we = /* @__PURE__ */ h({
|
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
}), Se = { class: "flex flex-col gap-24 top-0 bg-fm-color-neutral-white z-10" }, Re = { class: "flex flex-col gap-24" }, Te = { class: "line-clamp-2 overflow-hidden" }, le = /* @__PURE__ */
|
|
147
|
+
}), Se = { class: "flex flex-col gap-24 top-0 bg-fm-color-neutral-white z-10" }, Re = { class: "flex flex-col gap-24" }, Te = { class: "line-clamp-2 overflow-hidden" }, le = /* @__PURE__ */ $({
|
|
148
148
|
__name: "ReportEditorTab",
|
|
149
149
|
props: /* @__PURE__ */ w({
|
|
150
150
|
hideConfiguration: {
|
|
@@ -157,11 +157,11 @@ const we = /* @__PURE__ */ h({
|
|
|
157
157
|
}),
|
|
158
158
|
emits: /* @__PURE__ */ w(["hideConfiguration"], ["update:modelValue"]),
|
|
159
159
|
setup(c, { emit: n }) {
|
|
160
|
-
const o = R(c, "modelValue"), { breakpoints: a } = I(), s = c, C = n, e = X(), f = Z(), v = N(), { currentSelectWidgetType: i, categories: k, editingTile: b, editingIndex:
|
|
160
|
+
const o = R(c, "modelValue"), { breakpoints: a } = I(), s = c, C = n, e = X(), f = Z(), v = N(), { currentSelectWidgetType: i, categories: k, editingTile: b, editingIndex: h } = Q(j()), { promptMessage: M } = ee(), S = N(!1);
|
|
161
161
|
ce(
|
|
162
162
|
() => i.value,
|
|
163
163
|
() => {
|
|
164
|
-
i.value !== void 0 && (o.value.tiles.push(_e(i.value)),
|
|
164
|
+
i.value !== void 0 && (o.value.tiles.push(_e(i.value)), h.value = o.value.tiles.length - 1, b.value = o.value.tiles[o.value.tiles.length - 1], e.push({
|
|
165
165
|
name: "tileEditor",
|
|
166
166
|
query: f.query
|
|
167
167
|
}));
|
|
@@ -174,7 +174,7 @@ const we = /* @__PURE__ */ h({
|
|
|
174
174
|
selected: !1,
|
|
175
175
|
variant: "tertiary",
|
|
176
176
|
onClick: (d) => {
|
|
177
|
-
|
|
177
|
+
h.value = d, b.value = JSON.parse(JSON.stringify(o.value.tiles[d])), e.push({
|
|
178
178
|
name: "tileEditor",
|
|
179
179
|
query: f.query
|
|
180
180
|
});
|
|
@@ -202,7 +202,7 @@ const we = /* @__PURE__ */ h({
|
|
|
202
202
|
], x = U(() => k.value.map((d) => ({ label: d.name, value: d.id })));
|
|
203
203
|
return (d, p) => {
|
|
204
204
|
const T = m("FmTextField"), E = m("FmSelect"), H = m("FmButton"), ne = m("FmIcon"), ae = m("FmTooltip"), re = m("FmMenuItem"), ie = m("FmMenu"), ue = m("FmListItem"), se = m("FmList"), de = m("FmForm");
|
|
205
|
-
return r(), y(G(l(a).lg || l(a).md ?
|
|
205
|
+
return r(), y(G(l(a).lg || l(a).md ? he : $e), {
|
|
206
206
|
"model-value": s.hideConfiguration,
|
|
207
207
|
"onUpdate:modelValue": p[5] || (p[5] = (g) => C("hideConfiguration", g))
|
|
208
208
|
}, {
|
|
@@ -257,14 +257,19 @@ const we = /* @__PURE__ */ h({
|
|
|
257
257
|
t(l(Ce), {
|
|
258
258
|
list: o.value.tiles,
|
|
259
259
|
"item-key": "id",
|
|
260
|
-
class: "flex flex-col gap-2 cursor-grab"
|
|
260
|
+
class: "flex flex-col gap-2 cursor-grab",
|
|
261
|
+
handle: ".handle"
|
|
261
262
|
}, {
|
|
262
263
|
item: u(({ element: g, index: W }) => [
|
|
263
264
|
t(ue, { class: "!cursor-grab border rounded-md border-neutral-300" }, {
|
|
264
265
|
default: u(() => [
|
|
265
|
-
t(ne, {
|
|
266
|
+
t(ne, {
|
|
267
|
+
name: "drag_handle",
|
|
268
|
+
class: "handle"
|
|
269
|
+
}),
|
|
266
270
|
t(ae, {
|
|
267
|
-
content: g.widget.title.length <= 0 ? `Widget ${W}` : g.widget.title
|
|
271
|
+
content: g.widget.title.length <= 0 ? `Widget ${W}` : g.widget.title,
|
|
272
|
+
class: "handle"
|
|
268
273
|
}, {
|
|
269
274
|
default: u(() => [
|
|
270
275
|
_("p", Te, L(g.widget.title.length <= 0 ? `Widget ${W}` : g.widget.title), 1)
|
|
@@ -322,7 +327,7 @@ const we = /* @__PURE__ */ h({
|
|
|
322
327
|
key: 0,
|
|
323
328
|
class: "w-full grid grid-cols-12 gap-[24px] p-24",
|
|
324
329
|
style: { backgroundColor: "#F6F8FC" }
|
|
325
|
-
}, Ne = /* @__PURE__ */
|
|
330
|
+
}, Ne = /* @__PURE__ */ $({
|
|
326
331
|
__name: "ReportEditorDesktop",
|
|
327
332
|
props: /* @__PURE__ */ w({
|
|
328
333
|
hideConfiguration: { type: Boolean, required: !0, default: !1 }
|
|
@@ -386,7 +391,7 @@ const we = /* @__PURE__ */ h({
|
|
|
386
391
|
}), Ue = {
|
|
387
392
|
key: 0,
|
|
388
393
|
class: "grid grid-cols-12 gap-[16px]"
|
|
389
|
-
}, De = /* @__PURE__ */
|
|
394
|
+
}, De = /* @__PURE__ */ $({
|
|
390
395
|
__name: "ReportEditorMobile",
|
|
391
396
|
props: /* @__PURE__ */ w({
|
|
392
397
|
hideConfiguration: { type: Boolean, required: !0, default: !1 }
|
|
@@ -428,7 +433,7 @@ const we = /* @__PURE__ */ h({
|
|
|
428
433
|
]);
|
|
429
434
|
};
|
|
430
435
|
}
|
|
431
|
-
}), Ke = /* @__PURE__ */
|
|
436
|
+
}), Ke = /* @__PURE__ */ $({
|
|
432
437
|
__name: "ReportEditor",
|
|
433
438
|
setup(c) {
|
|
434
439
|
const n = X(), o = Z(), a = j(), { promptLoader: s } = xe(), { currentReport: C, editingReport: e } = Q(a), { breakpoints: f } = I(), v = U(() => {
|
|
@@ -437,7 +442,7 @@ const we = /* @__PURE__ */ h({
|
|
|
437
442
|
}), i = U(() => {
|
|
438
443
|
var V;
|
|
439
444
|
return ((V = e.value) == null ? void 0 : V.name) ?? "New Report";
|
|
440
|
-
}), k = Fe(), { promptMessage: b } = ee(),
|
|
445
|
+
}), k = Fe(), { promptMessage: b } = ee(), h = N(!1);
|
|
441
446
|
async function M() {
|
|
442
447
|
if (!e.value || e.value.tiles.length === 0) {
|
|
443
448
|
k.open({ message: "No Widget", type: "error" });
|
|
@@ -511,8 +516,8 @@ const we = /* @__PURE__ */ h({
|
|
|
511
516
|
"onUpdate:modelValue": x[0] || (x[0] = (T) => Y(e) ? e.value = T : null),
|
|
512
517
|
class: D(`${l(f).lg || l(f).md ? "flex" : ""} w-full`),
|
|
513
518
|
style: ve({ height: `calc( 100% - ${l(f).lg || l(f).md ? 72 : 64}px)` }),
|
|
514
|
-
"hide-configuration":
|
|
515
|
-
onHideConfiguration: x[1] || (x[1] = (T) =>
|
|
519
|
+
"hide-configuration": h.value,
|
|
520
|
+
onHideConfiguration: x[1] || (x[1] = (T) => h.value = T)
|
|
516
521
|
}, null, 40, ["modelValue", "class", "style", "hide-configuration"])) : O("", !0)
|
|
517
522
|
]),
|
|
518
523
|
_: 1
|
package/dist/app.js
CHANGED
|
@@ -33,7 +33,7 @@ const r = {
|
|
|
33
33
|
{
|
|
34
34
|
path: "/report-editor",
|
|
35
35
|
name: "reportEditor",
|
|
36
|
-
component: () => import("./ReportEditor-
|
|
36
|
+
component: () => import("./ReportEditor-BGdGF3a5.js")
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
path: "/report-editor/tile-editor",
|
|
@@ -79,7 +79,7 @@ o({
|
|
|
79
79
|
const c = {
|
|
80
80
|
"en-US": n,
|
|
81
81
|
"zh-CN": i
|
|
82
|
-
}, h = t(() => import("./App-
|
|
82
|
+
}, h = t(() => import("./App-ElC_82W0.js"));
|
|
83
83
|
export {
|
|
84
84
|
h as FmApp,
|
|
85
85
|
c as i18nMessages,
|