@feedmepos/mf-report 5.9.0 → 5.9.1
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-CSOLBHvz.js → App-CCOxieIn.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BEHjV9yH.js → MenuTab.vue_vue_type_script_setup_true_lang-DZMFX2bD.js} +56 -48
- package/dist/{OverviewView-WOEuALSq.js → OverviewView-BjK4qTJT.js} +1 -1
- package/dist/{ReportView-B2dPbjug.js → ReportView-ddVTOe2x.js} +1 -1
- package/dist/app.js +3 -3
- package/package.json +1 -1
|
@@ -93,7 +93,7 @@ const ge = ["src"], he = ["src"], $e = /* @__PURE__ */ O({
|
|
|
93
93
|
}), Z(() => {
|
|
94
94
|
l(me);
|
|
95
95
|
}), T(() => {
|
|
96
|
-
console.log("5.9.
|
|
96
|
+
console.log("5.9.1", !0), window.addEventListener("message", F), window.addEventListener("message", B);
|
|
97
97
|
});
|
|
98
98
|
const L = ie(), R = de();
|
|
99
99
|
M(() => {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as R, computed as W, ref as oe, watch as q, resolveComponent as b, createElementBlock as f, openBlock as u, renderSlot as re, Fragment as
|
|
1
|
+
import { defineComponent as R, computed as W, ref as oe, watch as q, resolveComponent as b, createElementBlock as f, openBlock as u, renderSlot as re, Fragment as D, renderList as U, createBlock as g, unref as r, withCtx as C, createElementVNode as L, createCommentVNode as N, createVNode as p, isRef as S, useModel as ue, normalizeClass as z, toDisplayString as ie } from "vue";
|
|
2
2
|
import { u as me, b as H, d as E, j as de } from "./vue-i18n-DX0diAld.js";
|
|
3
|
-
import { storeToRefs as
|
|
3
|
+
import { storeToRefs as T } from "pinia";
|
|
4
4
|
import { a as pe, d as ce } from "./NavigationTab.vue_vue_type_script_setup_true_lang-gDVPczBf.js";
|
|
5
5
|
import { _ as J, a as fe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js";
|
|
6
|
-
import { a as ve, b as be, D as w, q as _e, W as Y } from "./v4-CboKZWvc.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { d as
|
|
6
|
+
import { a as ve, b as be, D as w, q as _e, W as Y, S as he } from "./v4-CboKZWvc.js";
|
|
7
|
+
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js";
|
|
8
|
+
import { d as ge } from "./helper-CFNxnCtm.js";
|
|
9
9
|
import { detectLocale as Fe } from "@feedmepos/mf-common";
|
|
10
10
|
import { useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
11
|
-
const
|
|
11
|
+
const xe = { class: "flex flex-wrap gap-2" }, we = { class: "flex flex-col gap-1 p-2 bg-fm-color-neutral-white max-h-[300px] overflow-y-auto relative fm-shadow-light-300" }, Ce = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex justify-center my-2"
|
|
14
|
-
},
|
|
14
|
+
}, Se = /* @__PURE__ */ R({
|
|
15
15
|
__name: "FilterSelector",
|
|
16
16
|
setup(I) {
|
|
17
17
|
var G;
|
|
18
|
-
const { t: v } = me(), { currentReport: m } =
|
|
19
|
-
let { globalFilters:
|
|
18
|
+
const { t: v } = me(), { currentReport: m } = T(ve());
|
|
19
|
+
let { globalFilters: F, isGlobalFiltersLoading: i, timeRange: _, dateRange: h, selectedLocationIds: y } = T(H()), { schemas: $ } = T(be());
|
|
20
20
|
const n = W(() => {
|
|
21
21
|
var e;
|
|
22
22
|
return ((e = m.value) == null ? void 0 : e.id) ?? "";
|
|
@@ -24,7 +24,7 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
24
24
|
q(
|
|
25
25
|
((G = m.value) == null ? void 0 : G.globalFilters) || [],
|
|
26
26
|
() => {
|
|
27
|
-
o.value =
|
|
27
|
+
o.value = F.value.map((e) => ({
|
|
28
28
|
filter: e,
|
|
29
29
|
search: "",
|
|
30
30
|
options: [],
|
|
@@ -39,10 +39,10 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
39
39
|
},
|
|
40
40
|
{ deep: !0, immediate: !0 }
|
|
41
41
|
);
|
|
42
|
-
var
|
|
42
|
+
var k = void 0;
|
|
43
43
|
function K(e) {
|
|
44
44
|
var l;
|
|
45
|
-
const t = (l =
|
|
45
|
+
const t = (l = $.value.find((a) => a.name === e.schemaName)) == null ? void 0 : l.fields.find((a) => a.name === e.name);
|
|
46
46
|
return t == null ? void 0 : t.type;
|
|
47
47
|
}
|
|
48
48
|
function Q(e) {
|
|
@@ -62,7 +62,15 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
62
62
|
rowIds: [],
|
|
63
63
|
metrics: [],
|
|
64
64
|
filters: e.filters,
|
|
65
|
-
sorts: [
|
|
65
|
+
sorts: [
|
|
66
|
+
{
|
|
67
|
+
name: e.name ?? "",
|
|
68
|
+
schemaName: e.schemaName ?? "",
|
|
69
|
+
type: he.Asc,
|
|
70
|
+
aggregation: null,
|
|
71
|
+
dimensionOption: null
|
|
72
|
+
}
|
|
73
|
+
],
|
|
66
74
|
joinDatasources: [],
|
|
67
75
|
limit: null,
|
|
68
76
|
rollup: void 0,
|
|
@@ -97,7 +105,7 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
97
105
|
{
|
|
98
106
|
const t = await _e(
|
|
99
107
|
Q(e.filter),
|
|
100
|
-
|
|
108
|
+
k.signal
|
|
101
109
|
), l = (t == null ? void 0 : t.type) === Y.Table ? t.rows.map((a) => {
|
|
102
110
|
var d;
|
|
103
111
|
return ((d = a.cells) == null ? void 0 : d[0]) ?? "";
|
|
@@ -121,7 +129,7 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
121
129
|
}
|
|
122
130
|
async function te() {
|
|
123
131
|
if (!(!n.value || !o.value.length)) {
|
|
124
|
-
|
|
132
|
+
k && (k == null || k.abort()), k = new AbortController();
|
|
125
133
|
try {
|
|
126
134
|
i.value = !0;
|
|
127
135
|
const e = o.value.map(async (t) => {
|
|
@@ -163,7 +171,7 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
163
171
|
const t = de(e.filter);
|
|
164
172
|
switch (e.type) {
|
|
165
173
|
case w.Timestamp:
|
|
166
|
-
return ((l = e.filter.values) == null ? void 0 : l.length) === 2 ? `${t} is between ${
|
|
174
|
+
return ((l = e.filter.values) == null ? void 0 : l.length) === 2 ? `${t} is between ${ge({
|
|
167
175
|
startDate: (a = e.filter.values) == null ? void 0 : a[0],
|
|
168
176
|
endDate: (d = e.filter.values) == null ? void 0 : d[1],
|
|
169
177
|
locale: Fe()
|
|
@@ -174,13 +182,13 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
174
182
|
}
|
|
175
183
|
return (e, t) => {
|
|
176
184
|
const l = b("FmCircularProgress"), a = b("FmTextField"), d = b("FmMenuItem"), x = b("FmMenu");
|
|
177
|
-
return u(), f("div",
|
|
178
|
-
(u(!0), f(
|
|
185
|
+
return u(), f("div", xe, [
|
|
186
|
+
(u(!0), f(D, null, U(o.value, (s, ne) => {
|
|
179
187
|
var B, A, j;
|
|
180
188
|
return u(), f("div", {
|
|
181
189
|
key: `${s.filter.schemaName}-${s.filter.name}`
|
|
182
190
|
}, [
|
|
183
|
-
s.type === r(w).Timestamp ? (u(),
|
|
191
|
+
s.type === r(w).Timestamp ? (u(), g(J, {
|
|
184
192
|
key: 0,
|
|
185
193
|
"model-value": { startDate: (B = s.filter.values) == null ? void 0 : B[0], endDate: (A = s.filter.values) == null ? void 0 : A[1] },
|
|
186
194
|
class: "w-full",
|
|
@@ -188,7 +196,7 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
188
196
|
removable: ((j = s.filter.values) == null ? void 0 : j.length) === 2,
|
|
189
197
|
onUpdate: (c) => M(s.filter, c),
|
|
190
198
|
onChipClosed: () => M(s.filter, null)
|
|
191
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (u(),
|
|
199
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (u(), g(x, {
|
|
192
200
|
key: 1,
|
|
193
201
|
"close-on-click": !1,
|
|
194
202
|
shift: !0
|
|
@@ -201,11 +209,11 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
201
209
|
}, null, 8, ["label"])
|
|
202
210
|
]),
|
|
203
211
|
"menu-wrapper": C(() => [
|
|
204
|
-
|
|
205
|
-
r(i) ? (u(), f("div",
|
|
212
|
+
L("div", we, [
|
|
213
|
+
r(i) ? (u(), f("div", Ce, [
|
|
206
214
|
p(l)
|
|
207
215
|
])) : N("", !0),
|
|
208
|
-
s.options.length > 0 && !r(i) ? (u(), f(
|
|
216
|
+
s.options.length > 0 && !r(i) ? (u(), f(D, { key: 1 }, [
|
|
209
217
|
p(a, {
|
|
210
218
|
modelValue: s.search,
|
|
211
219
|
"onUpdate:modelValue": (c) => s.search = c,
|
|
@@ -221,9 +229,9 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
221
229
|
indeterminate: !0,
|
|
222
230
|
onClick: (c) => X(s)
|
|
223
231
|
}, null, 8, ["label", "model-value", "onClick"]),
|
|
224
|
-
(u(!0), f(
|
|
232
|
+
(u(!0), f(D, null, U(Z.value[ne], (c) => {
|
|
225
233
|
var P;
|
|
226
|
-
return u(),
|
|
234
|
+
return u(), g(d, {
|
|
227
235
|
key: c.value,
|
|
228
236
|
label: c.label,
|
|
229
237
|
"has-checkbox": !0,
|
|
@@ -231,7 +239,7 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
231
239
|
onClick: () => le(s, c.value)
|
|
232
240
|
}, null, 8, ["label", "model-value", "onClick"]);
|
|
233
241
|
}), 128))
|
|
234
|
-
], 64)) : r(i) ? N("", !0) : (u(),
|
|
242
|
+
], 64)) : r(i) ? N("", !0) : (u(), g(ye, { key: 2 }))
|
|
235
243
|
])
|
|
236
244
|
]),
|
|
237
245
|
_: 2
|
|
@@ -242,50 +250,50 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
242
250
|
]);
|
|
243
251
|
};
|
|
244
252
|
}
|
|
245
|
-
}), $e = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, De = { class: "flex flex-col gap-2 py-2" },
|
|
253
|
+
}), $e = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, De = { class: "flex flex-col gap-2 py-2" }, Te = /* @__PURE__ */ R({
|
|
246
254
|
__name: "Filter",
|
|
247
255
|
setup(I) {
|
|
248
256
|
const {
|
|
249
257
|
locations: v,
|
|
250
258
|
selectedLocationIds: m,
|
|
251
|
-
dateRange:
|
|
259
|
+
dateRange: F,
|
|
252
260
|
compareDateRange: i,
|
|
253
261
|
timeRange: _,
|
|
254
262
|
defaultDateSetting: h,
|
|
255
263
|
selectTimeDefault: y
|
|
256
|
-
} =
|
|
257
|
-
return (
|
|
258
|
-
|
|
264
|
+
} = T(H());
|
|
265
|
+
return ($, n) => (u(), f("div", $e, [
|
|
266
|
+
L("div", De, [
|
|
259
267
|
p(pe, {
|
|
260
268
|
modelValue: r(m),
|
|
261
|
-
"onUpdate:modelValue": n[5] || (n[5] = (o) =>
|
|
269
|
+
"onUpdate:modelValue": n[5] || (n[5] = (o) => S(m) ? m.value = o : null),
|
|
262
270
|
options: r(v)
|
|
263
271
|
}, {
|
|
264
272
|
default: C(() => [
|
|
265
273
|
p(J, {
|
|
266
|
-
"date-range": r(
|
|
267
|
-
"onUpdate:dateRange": n[0] || (n[0] = (o) =>
|
|
274
|
+
"date-range": r(F),
|
|
275
|
+
"onUpdate:dateRange": n[0] || (n[0] = (o) => S(F) ? F.value = o : null),
|
|
268
276
|
"compare-date-range": r(i),
|
|
269
|
-
"onUpdate:compareDateRange": n[1] || (n[1] = (o) =>
|
|
277
|
+
"onUpdate:compareDateRange": n[1] || (n[1] = (o) => S(i) ? i.value = o : null),
|
|
270
278
|
"compare-type": r(h).defaultCompareType,
|
|
271
279
|
"onUpdate:compareType": n[2] || (n[2] = (o) => r(h).defaultCompareType = o),
|
|
272
280
|
compare: ""
|
|
273
281
|
}, null, 8, ["date-range", "compare-date-range", "compare-type"]),
|
|
274
282
|
p(ce, {
|
|
275
283
|
"time-range": r(_),
|
|
276
|
-
"onUpdate:timeRange": n[3] || (n[3] = (o) =>
|
|
284
|
+
"onUpdate:timeRange": n[3] || (n[3] = (o) => S(_) ? _.value = o : null),
|
|
277
285
|
"select-time-default": r(y),
|
|
278
|
-
"onUpdate:selectTimeDefault": n[4] || (n[4] = (o) =>
|
|
286
|
+
"onUpdate:selectTimeDefault": n[4] || (n[4] = (o) => S(y) ? y.value = o : null),
|
|
279
287
|
"default-date-range": r(h).timeOptions
|
|
280
288
|
}, null, 8, ["time-range", "select-time-default", "default-date-range"]),
|
|
281
|
-
p(
|
|
289
|
+
p(Se)
|
|
282
290
|
]),
|
|
283
291
|
_: 1
|
|
284
292
|
}, 8, ["modelValue", "options"])
|
|
285
293
|
])
|
|
286
294
|
]));
|
|
287
295
|
}
|
|
288
|
-
}), Le = { class: "fm-typo-en-body-md-400" },
|
|
296
|
+
}), Le = { class: "fm-typo-en-body-md-400" }, je = /* @__PURE__ */ R({
|
|
289
297
|
__name: "MenuTab",
|
|
290
298
|
props: {
|
|
291
299
|
modelValue: { required: !1, default: [] },
|
|
@@ -294,14 +302,14 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
294
302
|
emits: ["update:modelValue"],
|
|
295
303
|
setup(I) {
|
|
296
304
|
const v = ue(I, "modelValue"), { breakpoints: m } = ke();
|
|
297
|
-
return (
|
|
298
|
-
const _ = b("FmButton"), h = b("FmIcon"), y = b("FmMenuItem"),
|
|
305
|
+
return (F, i) => {
|
|
306
|
+
const _ = b("FmButton"), h = b("FmIcon"), y = b("FmMenuItem"), $ = b("FmMenu");
|
|
299
307
|
return u(), f("div", {
|
|
300
308
|
class: z(["flex items-start pb-6 px-24", `${r(m).lg || r(m).md ? "px-24" : "pl-3"}`])
|
|
301
309
|
}, [
|
|
302
|
-
p(
|
|
303
|
-
i[0] || (i[0] =
|
|
304
|
-
v.value.length > 0 ? (u(),
|
|
310
|
+
p(Te),
|
|
311
|
+
i[0] || (i[0] = L("div", { class: "flex grow" }, null, -1)),
|
|
312
|
+
v.value.length > 0 ? (u(), g($, {
|
|
305
313
|
key: 0,
|
|
306
314
|
trigger: "click",
|
|
307
315
|
placement: "left",
|
|
@@ -317,16 +325,16 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
317
325
|
})
|
|
318
326
|
]),
|
|
319
327
|
default: C(() => [
|
|
320
|
-
(u(!0), f(
|
|
328
|
+
(u(!0), f(D, null, U(v.value, (n, o) => (u(), g(y, {
|
|
321
329
|
key: `button-${o}`,
|
|
322
330
|
onClick: n.onClick
|
|
323
331
|
}, {
|
|
324
332
|
label: C(() => [
|
|
325
|
-
n.prependIcon ?? !1 ? (u(),
|
|
333
|
+
n.prependIcon ?? !1 ? (u(), g(h, {
|
|
326
334
|
key: 0,
|
|
327
335
|
name: n.icon
|
|
328
336
|
}, null, 8, ["name"])) : N("", !0),
|
|
329
|
-
|
|
337
|
+
L("p", Le, ie(n.label), 1)
|
|
330
338
|
]),
|
|
331
339
|
_: 2
|
|
332
340
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -338,5 +346,5 @@ const ge = { class: "flex flex-wrap gap-2" }, xe = { class: "flex flex-col gap-1
|
|
|
338
346
|
}
|
|
339
347
|
});
|
|
340
348
|
export {
|
|
341
|
-
|
|
349
|
+
je as _
|
|
342
350
|
};
|
|
@@ -5,7 +5,7 @@ import { a as P } from "./v4-CboKZWvc.js";
|
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
6
|
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js";
|
|
7
7
|
import { useBreakpoints as V } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-DZMFX2bD.js";
|
|
9
9
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
10
10
|
const G = /* @__PURE__ */ g({
|
|
11
11
|
__name: "OverviewView",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as V, computed as v, resolveComponent as z, createBlock as g, openBlock as u, withCtx as H, createVNode as h, createElementVNode as M, unref as o, normalizeStyle as Y, normalizeClass as D, createElementBlock as R, Fragment as G, renderList as Q } from "vue";
|
|
2
|
-
import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-DZMFX2bD.js";
|
|
3
3
|
import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-zgh_zMvL.js";
|
|
4
4
|
import { useRouter as K, useRoute as X } from "vue-router";
|
|
5
5
|
import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-Bk5Aw-iX.js";
|
package/dist/app.js
CHANGED
|
@@ -4505,7 +4505,7 @@ const a = {
|
|
|
4505
4505
|
path: "/overview",
|
|
4506
4506
|
alias: ["/"],
|
|
4507
4507
|
name: "overview",
|
|
4508
|
-
component: () => import("./OverviewView-
|
|
4508
|
+
component: () => import("./OverviewView-BjK4qTJT.js")
|
|
4509
4509
|
},
|
|
4510
4510
|
{
|
|
4511
4511
|
path: "/report",
|
|
@@ -4520,7 +4520,7 @@ const a = {
|
|
|
4520
4520
|
{
|
|
4521
4521
|
path: "/report-view",
|
|
4522
4522
|
name: "reportView",
|
|
4523
|
-
component: () => import("./ReportView-
|
|
4523
|
+
component: () => import("./ReportView-ddVTOe2x.js")
|
|
4524
4524
|
},
|
|
4525
4525
|
{
|
|
4526
4526
|
path: "/report-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-CCOxieIn.js"));
|
|
4577
4577
|
export {
|
|
4578
4578
|
h as FmApp,
|
|
4579
4579
|
u as i18nMessages,
|