@feedmepos/mf-report 5.21.31 → 5.21.32
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-ChGxGAvb.js → App-BVPfeKM1.js} +4 -4
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-QzLGWBvd.js → BaseDialog.vue_vue_type_script_setup_true_lang-BNTtoXSl.js} +944 -944
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cg6ChdaG.js} +87 -87
- package/dist/{Default.vue_vue_type_script_setup_true_lang-oPfgV8Ba.js → Default.vue_vue_type_script_setup_true_lang-BlAfWU6A.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BEOZulO4.js → FilterSelector.vue_vue_type_script_setup_true_lang-DpUWWlZ7.js} +968 -969
- package/dist/{InsightView-B3zeWLpB.js → InsightView-D0FQmOAa.js} +5 -5
- package/dist/{Integration-Ne6z0Ue8.js → Integration-DUauFkbS.js} +2 -2
- package/dist/{Integrations-SXV9M3b-.js → Integrations-BPvh4SIF.js} +3 -3
- package/dist/{Layout-BfhdHhdb.js → Layout-DG-JKjLP.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Chon4gVE.js → MenuTab.vue_vue_type_script_setup_true_lang-BHrs_LW4.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-M3kgeSAQ.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js} +4647 -4584
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js → NoData.vue_vue_type_script_setup_true_lang-BRz75rkR.js} +1 -1
- package/dist/{OverviewView-DYJsgAMF.js → OverviewView-DUqScbfn.js} +5 -5
- package/dist/{Report-CDyfJ8O3.js → Report-DYicrOSm.js} +4 -4
- package/dist/{ReportEditor-DtfEQ_8T.js → ReportEditor-D7GGcHre.js} +392 -376
- package/dist/{ReportView-B4LtH-DO.js → ReportView-BzZR7ZLF.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js → SelectComponent.vue_vue_type_script_setup_true_lang-BXZkFRRh.js} +1 -1
- package/dist/{Setting-8zch0HnP.js → Setting-BCyliq0w.js} +4 -4
- package/dist/{TileEditor-lcd84uaM.js → TileEditor-DB6cd_RH.js} +7 -7
- package/dist/{TransitionFade-CP8HKs9i.js → TransitionFade-B-yJvnSS.js} +5 -5
- package/dist/app.js +20 -12
- package/dist/assets/{formatChartData.worker-B3aFFvRN.js → formatChartData.worker-DHyKAOan.js} +26 -26
- package/dist/assets/{processTableData.worker-C9Y9NVCl.js → processTableData.worker-BAeQAKT3.js} +30 -30
- package/dist/{vue-i18n-D1iec8Wy.js → vue-i18n-D4W4y-_2.js} +2151 -2219
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { d as
|
|
1
|
+
import { defineComponent as P, resolveComponent as S, createBlock as p, openBlock as y, withCtx as z, createCommentVNode as M, createElementVNode as R, toDisplayString as A, renderSlot as B, mergeModels as C, useModel as b, ref as k, watch as x, createElementBlock as U, unref as f, createVNode as O } from "vue";
|
|
2
|
+
import { d as l, u as W, b as q, T as G, C as H } from "./vue-i18n-D4W4y-_2.js";
|
|
3
3
|
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
4
|
-
import { storeToRefs as
|
|
4
|
+
import { storeToRefs as K } from "pinia";
|
|
5
5
|
var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {});
|
|
6
|
-
function
|
|
6
|
+
function ne(e, t = 100) {
|
|
7
7
|
let n = null;
|
|
8
8
|
const a = function(...o) {
|
|
9
|
-
return n && clearTimeout(n), new Promise((
|
|
9
|
+
return n && clearTimeout(n), new Promise((r) => {
|
|
10
10
|
n = setTimeout(() => {
|
|
11
11
|
n = null;
|
|
12
12
|
const m = e(...o);
|
|
13
|
-
|
|
13
|
+
r(m);
|
|
14
14
|
}, t);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
@@ -18,10 +18,10 @@ function le(e, t = 100) {
|
|
|
18
18
|
n && (clearTimeout(n), n = null);
|
|
19
19
|
}, a;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return [...Array(12).keys()].map((e) =>
|
|
21
|
+
function L() {
|
|
22
|
+
return [...Array(12).keys()].map((e) => l().month(e).format("MMM"));
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function le(e, t, n = "") {
|
|
25
25
|
switch (e.type) {
|
|
26
26
|
case v.Day:
|
|
27
27
|
return t("report.schedule.everyDay");
|
|
@@ -37,8 +37,8 @@ function oe(e, t, n = "") {
|
|
|
37
37
|
t("report.days.saturday")
|
|
38
38
|
];
|
|
39
39
|
if (e.days)
|
|
40
|
-
for (let
|
|
41
|
-
a = a + o[e.days[
|
|
40
|
+
for (let r = 0; r < e.days.length; r++)
|
|
41
|
+
a = a + o[e.days[r]] + (r !== e.days.length - 1 ? "," : "");
|
|
42
42
|
return a;
|
|
43
43
|
}
|
|
44
44
|
case v.Month: {
|
|
@@ -50,8 +50,8 @@ function oe(e, t, n = "") {
|
|
|
50
50
|
return t("report.schedule.customDate");
|
|
51
51
|
let a = `${t("report.schedule.everyYear")} `;
|
|
52
52
|
if (e.months) {
|
|
53
|
-
const o =
|
|
54
|
-
a = a + e.months.map((
|
|
53
|
+
const o = L();
|
|
54
|
+
a = a + e.months.map((r) => o[r - 1]).join(",");
|
|
55
55
|
}
|
|
56
56
|
return e.months && e.days && (a = a + ` ${t("report.common.and")} `), e.days && (a = a + e.days.join(",")), a;
|
|
57
57
|
}
|
|
@@ -59,27 +59,28 @@ function oe(e, t, n = "") {
|
|
|
59
59
|
return n;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function V(e = {
|
|
63
63
|
startDate: null,
|
|
64
64
|
endDate: null,
|
|
65
|
-
locale: "en-US"
|
|
65
|
+
locale: "en-US",
|
|
66
|
+
timezone: void 0
|
|
66
67
|
}) {
|
|
67
68
|
if (!e.startDate || !e.endDate)
|
|
68
69
|
return "No comparison";
|
|
69
|
-
let t =
|
|
70
|
-
return e.startDate && (t =
|
|
70
|
+
let t = l().subtract(1, "day").endOf("day"), n = l().endOf("day");
|
|
71
|
+
return e.startDate && (t = e.timezone ? l(e.startDate).tz(e.timezone).locale(e.locale) : l(e.startDate).locale(e.locale)), e.endDate && (n = e.timezone ? l(e.endDate).tz(e.timezone).locale(e.locale) : l(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function re(e = {
|
|
73
74
|
startTime: null,
|
|
74
75
|
endTime: null,
|
|
75
76
|
locale: "en-US"
|
|
76
77
|
}) {
|
|
77
78
|
const t = "hh:mmA", { startTime: n, endTime: a, locale: o } = e;
|
|
78
79
|
if (!n || !a) return "";
|
|
79
|
-
const
|
|
80
|
-
return `${
|
|
80
|
+
const r = l().set("hour", n.hour).set("minute", n.minute).locale(o), m = l().set("hour", a.hour).set("minute", a.minute).locale(o);
|
|
81
|
+
return `${r.format(t)}-${m.format(t)}`;
|
|
81
82
|
}
|
|
82
|
-
const
|
|
83
|
+
const J = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, Q = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, X = { class: "whitespace-nowrap flex-none" }, E = /* @__PURE__ */ P({
|
|
83
84
|
__name: "FilterChip",
|
|
84
85
|
props: {
|
|
85
86
|
label: {
|
|
@@ -102,29 +103,29 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
102
103
|
setup(e) {
|
|
103
104
|
const t = e;
|
|
104
105
|
return (n, a) => {
|
|
105
|
-
const o = S("FmIcon"),
|
|
106
|
-
return
|
|
107
|
-
default:
|
|
108
|
-
e.leftIcon ? (
|
|
106
|
+
const o = S("FmIcon"), r = S("FmChip");
|
|
107
|
+
return y(), p(r, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit flex items-center gap-1" }, {
|
|
108
|
+
default: z(() => [
|
|
109
|
+
e.leftIcon ? (y(), p(o, {
|
|
109
110
|
key: 0,
|
|
110
111
|
name: t.leftIcon,
|
|
111
112
|
size: "sm",
|
|
112
113
|
outline: "",
|
|
113
114
|
class: "flex-none"
|
|
114
115
|
}, null, 8, ["name"])) : M("", !0),
|
|
115
|
-
R("div",
|
|
116
|
-
R("span",
|
|
117
|
-
e.rightIcon ? (
|
|
116
|
+
R("div", J, [
|
|
117
|
+
R("span", Q, A(t.label), 1),
|
|
118
|
+
e.rightIcon ? (y(), p(o, {
|
|
118
119
|
key: 0,
|
|
119
120
|
name: e.rightIcon,
|
|
120
121
|
size: "sm",
|
|
121
122
|
outline: "",
|
|
122
123
|
class: "flex-none"
|
|
123
124
|
}, null, 8, ["name"])) : M("", !0),
|
|
124
|
-
R("span",
|
|
125
|
-
|
|
125
|
+
R("span", X, [
|
|
126
|
+
B(n.$slots, "default")
|
|
126
127
|
]),
|
|
127
|
-
e.trailingIcon ? (
|
|
128
|
+
e.trailingIcon ? (y(), p(o, {
|
|
128
129
|
key: 1,
|
|
129
130
|
name: e.trailingIcon,
|
|
130
131
|
size: "sm",
|
|
@@ -137,7 +138,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
137
138
|
});
|
|
138
139
|
};
|
|
139
140
|
}
|
|
140
|
-
}),
|
|
141
|
+
}), Z = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", oe = /* @__PURE__ */ P({
|
|
141
142
|
__name: "DateRangeSelect",
|
|
142
143
|
props: /* @__PURE__ */ C({
|
|
143
144
|
compare: {
|
|
@@ -146,7 +147,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
146
147
|
},
|
|
147
148
|
datePredefinedRanges: {
|
|
148
149
|
type: Array,
|
|
149
|
-
default: () =>
|
|
150
|
+
default: () => G()
|
|
150
151
|
},
|
|
151
152
|
label: {
|
|
152
153
|
type: String,
|
|
@@ -161,7 +162,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
161
162
|
}, {
|
|
162
163
|
compareType: {
|
|
163
164
|
type: String,
|
|
164
|
-
default:
|
|
165
|
+
default: H.PRECEDING_PERIOD
|
|
165
166
|
},
|
|
166
167
|
compareTypeModifiers: {},
|
|
167
168
|
dateRange: {
|
|
@@ -183,48 +184,47 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
183
184
|
}),
|
|
184
185
|
emits: /* @__PURE__ */ C(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
|
|
185
186
|
setup(e, { emit: t }) {
|
|
186
|
-
var
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
endDate: g.value.endDate ? (x = r(g.value.endDate)) == null ? void 0 : x.tz(i.value).format(Y) : null
|
|
187
|
+
var I, T, $, w;
|
|
188
|
+
const { t: n, locale: a } = W(), o = t, r = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = K(q()), s = k({
|
|
189
|
+
startDate: m.value.startDate ? (I = l(m.value.startDate)) == null ? void 0 : I.tz(i.value).format(Y) : null,
|
|
190
|
+
endDate: m.value.endDate ? (T = l(m.value.endDate)) == null ? void 0 : T.tz(i.value).format(Y) : null
|
|
191
|
+
}), D = k({
|
|
192
|
+
startDate: g.value.startDate ? ($ = l(g.value.startDate)) == null ? void 0 : $.tz(i.value).format(Y) : null,
|
|
193
|
+
endDate: g.value.endDate ? (w = l(g.value.endDate)) == null ? void 0 : w.tz(i.value).format(Y) : null
|
|
194
194
|
});
|
|
195
|
-
|
|
196
|
-
[() =>
|
|
195
|
+
x(
|
|
196
|
+
[() => s.value],
|
|
197
197
|
() => {
|
|
198
|
-
|
|
199
|
-
const
|
|
200
|
-
startDate:
|
|
201
|
-
endDate:
|
|
198
|
+
s.value.endDate || (s.value.endDate = s.value.startDate);
|
|
199
|
+
const u = {
|
|
200
|
+
startDate: l.tz(s.value.startDate, i.value).startOf("day").utc().toISOString(),
|
|
201
|
+
endDate: l.tz(s.value.endDate, i.value).endOf("day").utc().toISOString()
|
|
202
202
|
};
|
|
203
|
-
m.value =
|
|
203
|
+
m.value = u, o("update", u);
|
|
204
204
|
},
|
|
205
205
|
{ deep: !0 }
|
|
206
|
-
),
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
).startOf("day").tz(i.value, !0).toISOString() : void 0, c =
|
|
206
|
+
), x([() => D.value], () => {
|
|
207
|
+
const u = D.value.startDate, d = D.value.endDate, h = u ? l(
|
|
208
|
+
u instanceof Date ? u : l(u).toDate()
|
|
209
|
+
).startOf("day").tz(i.value, !0).toISOString() : void 0, c = d ? l(d instanceof Date ? d : l(d).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
|
|
210
210
|
g.value = {
|
|
211
211
|
startDate: h,
|
|
212
212
|
endDate: c
|
|
213
213
|
};
|
|
214
214
|
});
|
|
215
|
-
function N(
|
|
216
|
-
|
|
215
|
+
function N(u) {
|
|
216
|
+
r.value = u;
|
|
217
217
|
}
|
|
218
|
-
function j(
|
|
219
|
-
o("chip-closed",
|
|
218
|
+
function j(u) {
|
|
219
|
+
o("chip-closed", u);
|
|
220
220
|
}
|
|
221
|
-
return (
|
|
221
|
+
return (u, d) => {
|
|
222
222
|
const h = S("FmSimpleDateRangePicker");
|
|
223
|
-
return
|
|
224
|
-
(
|
|
223
|
+
return y(), U("div", Z, [
|
|
224
|
+
(y(), p(h, {
|
|
225
225
|
key: `date-picker-${f(a)}`,
|
|
226
|
-
modelValue:
|
|
227
|
-
"onUpdate:modelValue":
|
|
226
|
+
modelValue: s.value,
|
|
227
|
+
"onUpdate:modelValue": d[1] || (d[1] = (c) => s.value = c),
|
|
228
228
|
"show-predefined-range": "",
|
|
229
229
|
"predefined-range": e.datePredefinedRanges.map((c) => ({
|
|
230
230
|
...c,
|
|
@@ -232,36 +232,36 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
232
232
|
})),
|
|
233
233
|
class: "w-2/6"
|
|
234
234
|
}, {
|
|
235
|
-
"trigger-button":
|
|
236
|
-
|
|
235
|
+
"trigger-button": z(() => [
|
|
236
|
+
O(E, {
|
|
237
237
|
"left-icon": e.label ? "filter_alt" : "calendar_month",
|
|
238
|
-
label: e.label ?? f(
|
|
239
|
-
startDate:
|
|
240
|
-
endDate:
|
|
238
|
+
label: e.label ?? f(V)({
|
|
239
|
+
startDate: s.value.startDate ?? "",
|
|
240
|
+
endDate: s.value.endDate ?? "",
|
|
241
241
|
locale: f(F)()
|
|
242
242
|
}),
|
|
243
243
|
removable: e.removable,
|
|
244
|
-
onChipClosed:
|
|
244
|
+
onChipClosed: d[0] || (d[0] = (c) => j(!0))
|
|
245
245
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
246
246
|
]),
|
|
247
247
|
_: 1
|
|
248
248
|
}, 8, ["modelValue", "predefined-range"])),
|
|
249
|
-
e.compare ? (
|
|
249
|
+
e.compare ? (y(), p(h, {
|
|
250
250
|
key: `compare-date-picker-${f(a)}`,
|
|
251
|
-
modelValue:
|
|
252
|
-
"onUpdate:modelValue":
|
|
253
|
-
"compare-type":
|
|
254
|
-
"onUpdate:compareType":
|
|
251
|
+
modelValue: D.value,
|
|
252
|
+
"onUpdate:modelValue": d[2] || (d[2] = (c) => D.value = c),
|
|
253
|
+
"compare-type": r.value,
|
|
254
|
+
"onUpdate:compareType": d[3] || (d[3] = (c) => r.value = c),
|
|
255
255
|
"show-predefined-range": "",
|
|
256
|
-
"compare-target":
|
|
257
|
-
"default-compare-type":
|
|
256
|
+
"compare-target": s.value,
|
|
257
|
+
"default-compare-type": r.value,
|
|
258
258
|
onSelectComparison: N
|
|
259
259
|
}, {
|
|
260
|
-
"trigger-button":
|
|
261
|
-
|
|
262
|
-
label: `${f(n)("report.common.compare")}: ${f(
|
|
263
|
-
startDate:
|
|
264
|
-
endDate:
|
|
260
|
+
"trigger-button": z(() => [
|
|
261
|
+
O(E, {
|
|
262
|
+
label: `${f(n)("report.common.compare")}: ${f(V)({
|
|
263
|
+
startDate: D.value.startDate ?? null,
|
|
264
|
+
endDate: D.value.endDate ?? null,
|
|
265
265
|
locale: f(F)()
|
|
266
266
|
})}`
|
|
267
267
|
}, null, 8, ["label"])
|
|
@@ -274,11 +274,11 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
|
|
|
274
274
|
});
|
|
275
275
|
export {
|
|
276
276
|
v as C,
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
oe as _,
|
|
278
|
+
E as a,
|
|
279
|
+
V as b,
|
|
280
|
+
re as c,
|
|
281
|
+
ne as d,
|
|
282
|
+
le as e,
|
|
283
|
+
L as g
|
|
284
284
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
|
-
import { u as q, f as w } from "./vue-i18n-
|
|
5
|
+
import { u as q, f as w } from "./vue-i18n-D4W4y-_2.js";
|
|
6
6
|
import { useRoute as B } from "vue-router";
|
|
7
7
|
const $ = {
|
|
8
8
|
key: 1,
|