@feedmepos/mf-report 5.31.1 → 5.31.2
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-Zg9Nkn-X.js → App-DoZB9B38.js} +101 -101
- package/dist/{DateRangeSelect-DlAzWqnp.js → DateRangeSelect-B-OUPLDB.js} +129 -121
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BnkrjWB3.js → Default.vue_vue_type_script_setup_true_lang-BuTwhR1W.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DWTr59nu.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DVqKtAYR.js} +7 -7
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DMIpD0Oo.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CG8fCQW1.js} +453 -453
- package/dist/{InsightView-BveDydBM.js → InsightView-ChQ0BSqE.js} +5 -5
- package/dist/{Integration-D5cZHGJP.js → Integration-B0kp5Ip2.js} +174 -174
- package/dist/{Integrations-CwGuJAUq.js → Integrations-Co3m2GbW.js} +2 -2
- package/dist/{Layout-B85IdhpJ.js → Layout-D1rSBMaa.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-CzZlZnJ1.js → LocationSelect.vue_vue_type_script_setup_true_lang-mGjvhC5F.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-eRW_ry8V.js → MenuTab.vue_vue_type_script_setup_true_lang-DSYywVnI.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-6pkps4_3.js → NavigationTab.vue_vue_type_script_setup_true_lang-DCkznynv.js} +5 -5
- package/dist/{OverviewView-BaxcnLPg.js → OverviewView-CzfPmLL6.js} +5 -5
- package/dist/{Report-Dl0RVdnn.js → Report-8pOJt9j7.js} +3 -3
- package/dist/{ReportCanvasView-C2Y4wH4B.js → ReportCanvasView-DGMnwS9i.js} +5 -5
- package/dist/{ReportEditor-DEjzoJiJ.js → ReportEditor-DfI8f6n5.js} +7 -7
- package/dist/{ReportView-DhNKM2yU.js → ReportView-CjuoUhur.js} +6 -6
- package/dist/{ReportViewRoute-BV9dHygI.js → ReportViewRoute-DWQlfv7Y.js} +2 -2
- package/dist/{Setting-ClOpXx9i.js → Setting-BM4J1bGC.js} +3 -3
- package/dist/{Template-eE7pM1rQ.js → Template-Cm9n0DNY.js} +3 -3
- package/dist/TileEditor-BwuehIJP.js +4183 -0
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-D--qKpZi.js → TilePageStack.vue_vue_type_script_setup_true_lang-cAHeLbGq.js} +2 -2
- package/dist/{TransitionFade-Dnsvw7P8.js → TransitionFade-BRxnhaJy.js} +5 -5
- package/dist/{app-5-1VploO.js → app-0yX5NkWR.js} +2337 -2297
- package/dist/app.js +1 -1
- package/dist/assets/{processTableData.worker-r9RKAQPd.js → formatChartData.worker-UoGYoYc3.js} +30 -42
- package/dist/assets/{formatChartData.worker-DcIXAZPX.js → processTableData.worker-DxE4bjxG.js} +33 -45
- package/dist/{currency-Da4VuYyM.js → currency-C0VJTl19.js} +1 -1
- package/dist/{index-DzEFpeJN.js → index-DJ3gCuhy.js} +552 -564
- package/dist/{report-Zdnz-pse.js → report-DWa0N3Ys.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-CxQKtJOk.js → useRestaurantPermission-BEaHLbHH.js} +3 -3
- package/package.json +1 -1
- package/dist/TileEditor-BApSzqn2.js +0 -4184
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { d as
|
|
3
|
-
import { detectLocale as
|
|
4
|
-
import { u as
|
|
5
|
-
import { storeToRefs as
|
|
6
|
-
import { useSnackbar as
|
|
7
|
-
var
|
|
8
|
-
function
|
|
1
|
+
import { defineComponent as ne, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, mergeModels as K, useModel as L, ref as P, computed as z, watch as M, nextTick as Z, onMounted as pe, onBeforeUnmount as ve, createElementBlock as ge, unref as $, createVNode as J } from "vue";
|
|
2
|
+
import { d as i, a as he, h as Q, z as X, C as E, k as Ce, t as be } from "./app-0yX5NkWR.js";
|
|
3
|
+
import { detectLocale as _ } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as Re, _ as Me } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
5
|
+
import { storeToRefs as Ye } from "pinia";
|
|
6
|
+
import { useSnackbar as $e } from "@feedmepos/ui-library";
|
|
7
|
+
var S = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(S || {}), Se = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(Se || {});
|
|
8
|
+
function Ne(e, n = 100) {
|
|
9
9
|
let l = null;
|
|
10
10
|
const f = function(...D) {
|
|
11
11
|
return l && clearTimeout(l), new Promise((d) => {
|
|
@@ -20,15 +20,15 @@ function ze(e, n = 100) {
|
|
|
20
20
|
l && (clearTimeout(l), l = null);
|
|
21
21
|
}, f;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return [...Array(12).keys()].map((e) =>
|
|
23
|
+
function Te() {
|
|
24
|
+
return [...Array(12).keys()].map((e) => i().month(e).format("MMM"));
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Be(e, n, l = "") {
|
|
27
27
|
const f = (r) => /^[\x00-\x7F]*$/.test(r) ? " " : "", D = (r) => /^每年/.test(r), d = (r) => /^每周|^每週/.test(r), h = (r) => /^每月/.test(r);
|
|
28
28
|
switch (e.type) {
|
|
29
|
-
case
|
|
29
|
+
case S.Day:
|
|
30
30
|
return n("report.schedule.everyDay");
|
|
31
|
-
case
|
|
31
|
+
case S.Week: {
|
|
32
32
|
const r = n("report.schedule.everyWeek"), y = d(r);
|
|
33
33
|
let s = `${r}${f(r)}`;
|
|
34
34
|
const p = [
|
|
@@ -47,18 +47,18 @@ function Le(e, n, l = "") {
|
|
|
47
47
|
}
|
|
48
48
|
return s;
|
|
49
49
|
}
|
|
50
|
-
case
|
|
50
|
+
case S.Month: {
|
|
51
51
|
const r = n("report.schedule.everyMonth"), y = h(r);
|
|
52
52
|
let s = `${r}${f(r)}`;
|
|
53
53
|
return e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
|
|
54
54
|
}
|
|
55
|
-
case
|
|
55
|
+
case S.Year: {
|
|
56
56
|
if (!e.months && !e.days)
|
|
57
57
|
return n("report.schedule.customDate");
|
|
58
58
|
const r = n("report.schedule.everyYear"), y = D(r);
|
|
59
59
|
let s = `${r}${y ? " " : f(r)}`;
|
|
60
60
|
if (e.months) {
|
|
61
|
-
const p =
|
|
61
|
+
const p = Te();
|
|
62
62
|
s = s + e.months.map((m) => p[m - 1]).join(",");
|
|
63
63
|
}
|
|
64
64
|
return e.months && e.days && (s = y ? `${s} 的 ` : `${s} ${n("report.common.and")} `), e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
|
|
@@ -67,7 +67,7 @@ function Le(e, n, l = "") {
|
|
|
67
67
|
return l;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ee(e = {
|
|
71
71
|
startDate: null,
|
|
72
72
|
endDate: null,
|
|
73
73
|
locale: "en-US",
|
|
@@ -75,20 +75,20 @@ function Z(e = {
|
|
|
75
75
|
}) {
|
|
76
76
|
if (!e.startDate || !e.endDate)
|
|
77
77
|
return "No comparison";
|
|
78
|
-
let n =
|
|
79
|
-
return e.startDate && (n = e.timezone ?
|
|
78
|
+
let n = i().subtract(1, "day").endOf("day"), l = i().endOf("day");
|
|
79
|
+
return e.startDate && (n = e.timezone ? i(e.startDate).tz(e.timezone).locale(e.locale) : i(e.startDate).locale(e.locale)), e.endDate && (l = e.timezone ? i(e.endDate).tz(e.timezone).locale(e.locale) : i(e.endDate).locale(e.locale)), n.format("YYYY") !== l.format("YYYY") ? `${n.format("DD MMM YYYY")} - ${l.format("DD MMM YYYY")}` : `${n.format("DD MMM")} - ${l.format("DD MMM YYYY")}`;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ve(e = {
|
|
82
82
|
startTime: null,
|
|
83
83
|
endTime: null,
|
|
84
84
|
locale: "en-US"
|
|
85
85
|
}) {
|
|
86
86
|
const n = "hh:mmA", { startTime: l, endTime: f, locale: D } = e;
|
|
87
87
|
if (!l || !f) return "";
|
|
88
|
-
const d =
|
|
88
|
+
const d = i().set("hour", l.hour).set("minute", l.minute).locale(D), h = i().set("hour", f.hour).set("minute", f.minute).locale(D);
|
|
89
89
|
return `${d.format(n)}-${h.format(n)}`;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const ke = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, we = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, xe = { class: "whitespace-nowrap flex-none" }, te = /* @__PURE__ */ ne({
|
|
92
92
|
__name: "FilterChip",
|
|
93
93
|
props: {
|
|
94
94
|
label: {
|
|
@@ -118,7 +118,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
118
118
|
const D = A("FmIcon"), d = A("FmCircularProgress"), h = A("FmChip");
|
|
119
119
|
return C(), b(h, {
|
|
120
120
|
"aria-busy": n.loading,
|
|
121
|
-
class:
|
|
121
|
+
class: fe([
|
|
122
122
|
"bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-[400px] flex items-center gap-1 transition-opacity",
|
|
123
123
|
n.loading && "opacity-80"
|
|
124
124
|
])
|
|
@@ -130,18 +130,18 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
130
130
|
size: "sm",
|
|
131
131
|
outline: "",
|
|
132
132
|
class: "flex-none"
|
|
133
|
-
}, null, 8, ["name"])) :
|
|
134
|
-
I("div",
|
|
135
|
-
I("span",
|
|
133
|
+
}, null, 8, ["name"])) : F("", !0),
|
|
134
|
+
I("div", ke, [
|
|
135
|
+
I("span", we, De(n.label), 1),
|
|
136
136
|
e.rightIcon ? (C(), b(D, {
|
|
137
137
|
key: 0,
|
|
138
138
|
name: e.rightIcon,
|
|
139
139
|
size: "sm",
|
|
140
140
|
outline: "",
|
|
141
141
|
class: "flex-none"
|
|
142
|
-
}, null, 8, ["name"])) :
|
|
143
|
-
I("span",
|
|
144
|
-
|
|
142
|
+
}, null, 8, ["name"])) : F("", !0),
|
|
143
|
+
I("span", xe, [
|
|
144
|
+
ye(l.$slots, "default")
|
|
145
145
|
]),
|
|
146
146
|
n.loading ? (C(), b(d, {
|
|
147
147
|
key: 1,
|
|
@@ -153,14 +153,14 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
153
153
|
size: "sm",
|
|
154
154
|
outline: "",
|
|
155
155
|
class: "flex-none"
|
|
156
|
-
}, null, 8, ["name"])) :
|
|
156
|
+
}, null, 8, ["name"])) : F("", !0)
|
|
157
157
|
])
|
|
158
158
|
]),
|
|
159
159
|
_: 3
|
|
160
160
|
}, 8, ["aria-busy", "class"]);
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), Pe = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", ae = ".fm-calendar__cell[id]", Ee = ".fm-calendar__cell__button", Ae = /* @__PURE__ */ ne({
|
|
164
164
|
__name: "DateRangeSelect",
|
|
165
165
|
props: /* @__PURE__ */ K({
|
|
166
166
|
compare: {
|
|
@@ -169,7 +169,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
169
169
|
},
|
|
170
170
|
datePredefinedRanges: {
|
|
171
171
|
type: Array,
|
|
172
|
-
default: () =>
|
|
172
|
+
default: () => Ce()
|
|
173
173
|
},
|
|
174
174
|
label: {
|
|
175
175
|
type: String,
|
|
@@ -189,7 +189,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
189
189
|
}, {
|
|
190
190
|
compareType: {
|
|
191
191
|
type: String,
|
|
192
|
-
default:
|
|
192
|
+
default: E.PRECEDING_PERIOD
|
|
193
193
|
},
|
|
194
194
|
compareTypeModifiers: {},
|
|
195
195
|
dateRange: {
|
|
@@ -211,78 +211,78 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
211
211
|
}),
|
|
212
212
|
emits: /* @__PURE__ */ K(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
|
|
213
213
|
setup(e, { emit: n }) {
|
|
214
|
-
const { t: l, locale: f } =
|
|
214
|
+
const { t: l, locale: f } = Re(), D = $e();
|
|
215
215
|
function d(t) {
|
|
216
|
-
return t ? t
|
|
216
|
+
return t ? be(t, p.value) : null;
|
|
217
217
|
}
|
|
218
|
-
const h = n, r =
|
|
218
|
+
const h = n, r = L(e, "compareType"), y = L(e, "dateRange"), s = L(e, "compareDateRange"), { timezone: p } = Ye(he());
|
|
219
219
|
let m = null, T = 0, R = null;
|
|
220
|
-
const
|
|
220
|
+
const k = /* @__PURE__ */ new Set(), N = P(!1), B = P(!1), w = z(
|
|
221
221
|
() => N.value || B.value
|
|
222
|
-
), V =
|
|
222
|
+
), V = z(
|
|
223
223
|
() => e.minDate ? l("report.messages.noPermissionDateAccess", { date: e.minDate }) : ""
|
|
224
224
|
);
|
|
225
225
|
function j(t) {
|
|
226
|
-
return !!(e.minDate &&
|
|
226
|
+
return !!(e.minDate && i(t).isBefore(i(e.minDate, Y), "day"));
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function re() {
|
|
229
229
|
const t = Date.now();
|
|
230
230
|
t - T < 1e3 || (T = t, D == null || D.open({
|
|
231
231
|
type: "error",
|
|
232
232
|
message: V.value
|
|
233
233
|
}));
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
return t instanceof HTMLElement && t.matches(
|
|
235
|
+
function oe(t) {
|
|
236
|
+
return t instanceof HTMLElement && t.matches(ae) ? [t] : "querySelectorAll" in t ? Array.from(t.querySelectorAll(ae)) : [];
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
e.minDate &&
|
|
240
|
-
const
|
|
241
|
-
a.classList.toggle("report-date-access-disabled", o),
|
|
238
|
+
function le(t = document) {
|
|
239
|
+
e.minDate && oe(t).forEach((a) => {
|
|
240
|
+
const u = i(a.id), o = u.isValid() && j(u), g = a.querySelector(Ee);
|
|
241
|
+
a.classList.toggle("report-date-access-disabled", o), g && (g.setAttribute("aria-disabled", String(o)), g.title = o ? V.value : "");
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
function q(t = [document]) {
|
|
245
|
-
!e.minDate || !
|
|
245
|
+
!e.minDate || !w.value || (t.forEach((a) => k.add(a)), R === null && (R = window.requestAnimationFrame(() => {
|
|
246
246
|
R = null;
|
|
247
|
-
const a = Array.from(
|
|
248
|
-
|
|
247
|
+
const a = Array.from(k);
|
|
248
|
+
k.clear(), a.length || a.push(document), a.forEach((u) => le(u));
|
|
249
249
|
})));
|
|
250
250
|
}
|
|
251
251
|
function W() {
|
|
252
|
-
m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null),
|
|
252
|
+
m == null || m.disconnect(), m = null, R !== null && (window.cancelAnimationFrame(R), R = null), k.clear();
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
m || !e.minDate || !
|
|
254
|
+
function se() {
|
|
255
|
+
m || !e.minDate || !w.value || (m = new MutationObserver((t) => {
|
|
256
256
|
const a = /* @__PURE__ */ new Set();
|
|
257
|
-
t.forEach((
|
|
258
|
-
a.add(
|
|
257
|
+
t.forEach((u) => {
|
|
258
|
+
a.add(u.target), u.addedNodes.forEach((o) => {
|
|
259
259
|
o instanceof HTMLElement && a.add(o);
|
|
260
260
|
});
|
|
261
261
|
}), q(Array.from(a));
|
|
262
262
|
}), m.observe(document.body, { childList: !0, subtree: !0 }));
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
if (!e.minDate || !
|
|
264
|
+
function O() {
|
|
265
|
+
if (!e.minDate || !w.value) {
|
|
266
266
|
W();
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
se(), q();
|
|
270
270
|
}
|
|
271
271
|
function H(t, a = !0) {
|
|
272
|
-
return t && (j(
|
|
272
|
+
return t && (j(i(t, Y)) ? (a && re(), e.minDate) : t);
|
|
273
273
|
}
|
|
274
274
|
function G(t, a = {}) {
|
|
275
|
-
const
|
|
276
|
-
let o = H(t.startDate,
|
|
277
|
-
return o &&
|
|
275
|
+
const u = a.notify ?? !0;
|
|
276
|
+
let o = H(t.startDate, u), g = H(t.endDate, u);
|
|
277
|
+
return o && g && i(o, Y).isAfter(i(g, Y), "day") && (o = e.minDate ?? g, g = o), { startDate: o, endDate: g };
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function x(t, a) {
|
|
280
280
|
return t.startDate === a.startDate && t.endDate === a.endDate;
|
|
281
281
|
}
|
|
282
|
-
const c =
|
|
282
|
+
const c = P({
|
|
283
283
|
startDate: d(y.value.startDate),
|
|
284
284
|
endDate: d(y.value.endDate)
|
|
285
|
-
}),
|
|
285
|
+
}), v = P({
|
|
286
286
|
startDate: s.value.startDate ? d(s.value.startDate) : null,
|
|
287
287
|
endDate: s.value.endDate ? d(s.value.endDate) : null
|
|
288
288
|
});
|
|
@@ -290,32 +290,40 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
290
290
|
[() => c.value],
|
|
291
291
|
() => {
|
|
292
292
|
const t = G(c.value);
|
|
293
|
-
if (!
|
|
293
|
+
if (!x(t, c.value)) {
|
|
294
294
|
c.value = t;
|
|
295
295
|
return;
|
|
296
296
|
}
|
|
297
297
|
c.value.endDate || (c.value.endDate = c.value.startDate);
|
|
298
298
|
const a = {
|
|
299
|
-
startDate:
|
|
300
|
-
endDate:
|
|
299
|
+
startDate: X(c.value.startDate, p.value),
|
|
300
|
+
endDate: Q(c.value.endDate, p.value)
|
|
301
301
|
};
|
|
302
302
|
y.value = a, h("update", a);
|
|
303
303
|
},
|
|
304
304
|
{ deep: !0 }
|
|
305
|
-
), M([() =>
|
|
306
|
-
const t = G(
|
|
307
|
-
notify: r.value ===
|
|
305
|
+
), M([() => v.value], () => {
|
|
306
|
+
const t = G(v.value, {
|
|
307
|
+
notify: r.value === E.CUSTOM
|
|
308
308
|
});
|
|
309
|
-
if (!
|
|
310
|
-
|
|
309
|
+
if (!x(t, v.value)) {
|
|
310
|
+
v.value = t;
|
|
311
311
|
return;
|
|
312
312
|
}
|
|
313
|
-
const a =
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
const a = v.value.startDate, u = v.value.endDate, o = a ? X(
|
|
314
|
+
i(
|
|
315
|
+
a instanceof Date ? a : i(a).toDate()
|
|
316
|
+
).format(Y),
|
|
317
|
+
p.value
|
|
318
|
+
) : void 0, g = u ? Q(
|
|
319
|
+
i(
|
|
320
|
+
u instanceof Date ? u : i(u).toDate()
|
|
321
|
+
).format(Y),
|
|
322
|
+
p.value
|
|
323
|
+
) : void 0;
|
|
316
324
|
s.value = {
|
|
317
325
|
startDate: o,
|
|
318
|
-
endDate:
|
|
326
|
+
endDate: g
|
|
319
327
|
};
|
|
320
328
|
}), M(
|
|
321
329
|
() => y.value,
|
|
@@ -324,7 +332,7 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
324
332
|
startDate: d(y.value.startDate),
|
|
325
333
|
endDate: d(y.value.endDate)
|
|
326
334
|
};
|
|
327
|
-
|
|
335
|
+
x(t, c.value) || (c.value = t);
|
|
328
336
|
},
|
|
329
337
|
{ deep: !0 }
|
|
330
338
|
), M(
|
|
@@ -334,104 +342,104 @@ const Ye = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
|
|
|
334
342
|
startDate: d(s.value.startDate),
|
|
335
343
|
endDate: d(s.value.endDate)
|
|
336
344
|
};
|
|
337
|
-
|
|
345
|
+
x(t, v.value) || (v.value = t);
|
|
338
346
|
},
|
|
339
347
|
{ deep: !0 }
|
|
340
348
|
), M(
|
|
341
349
|
() => e.minDate,
|
|
342
350
|
async () => {
|
|
343
|
-
await
|
|
351
|
+
await Z(), O();
|
|
344
352
|
}
|
|
345
353
|
), M(
|
|
346
|
-
() =>
|
|
354
|
+
() => w.value,
|
|
347
355
|
async () => {
|
|
348
|
-
await
|
|
356
|
+
await Z(), O();
|
|
349
357
|
}
|
|
350
|
-
),
|
|
351
|
-
|
|
352
|
-
}),
|
|
358
|
+
), pe(() => {
|
|
359
|
+
O();
|
|
360
|
+
}), ve(() => {
|
|
353
361
|
W();
|
|
354
362
|
});
|
|
355
|
-
function
|
|
363
|
+
function ue(t) {
|
|
356
364
|
r.value = t;
|
|
357
365
|
}
|
|
358
|
-
function
|
|
366
|
+
function ie(t) {
|
|
359
367
|
N.value = t;
|
|
360
368
|
}
|
|
361
|
-
function
|
|
369
|
+
function de(t) {
|
|
362
370
|
B.value = t;
|
|
363
371
|
}
|
|
364
|
-
function
|
|
372
|
+
function ce(t) {
|
|
365
373
|
h("chip-closed", t);
|
|
366
374
|
}
|
|
367
|
-
const
|
|
368
|
-
const t =
|
|
369
|
-
startDate:
|
|
370
|
-
endDate:
|
|
375
|
+
const me = z(() => {
|
|
376
|
+
const t = _(), a = t.startsWith("zh") ? "" : " ", u = l("report.common.comparedTo"), o = ee({
|
|
377
|
+
startDate: v.value.startDate ?? null,
|
|
378
|
+
endDate: v.value.endDate ?? null,
|
|
371
379
|
locale: t
|
|
372
380
|
});
|
|
373
|
-
return r.value ===
|
|
381
|
+
return r.value === E.NO_COMPARISON ? `${u}: ${l(`report.compare.${r.value}`)}` : r.value === E.CUSTOM ? `${u}: ${o}` : `${u}${a}${l(`report.compare.${r.value}`).toLowerCase()}: ${o}`;
|
|
374
382
|
});
|
|
375
383
|
return (t, a) => {
|
|
376
|
-
const
|
|
377
|
-
return C(),
|
|
378
|
-
(C(), b(
|
|
379
|
-
key: `date-picker-${
|
|
384
|
+
const u = A("FmSimpleDateRangePicker");
|
|
385
|
+
return C(), ge("div", Pe, [
|
|
386
|
+
(C(), b(u, {
|
|
387
|
+
key: `date-picker-${$(f)}`,
|
|
380
388
|
modelValue: c.value,
|
|
381
389
|
"onUpdate:modelValue": a[1] || (a[1] = (o) => c.value = o),
|
|
382
390
|
"show-predefined-range": "",
|
|
383
391
|
min: e.minDate,
|
|
384
392
|
"predefined-range": e.datePredefinedRanges.map((o) => ({
|
|
385
393
|
...o,
|
|
386
|
-
label:
|
|
394
|
+
label: $(l)(`report.date.${o.label}`)
|
|
387
395
|
})),
|
|
388
396
|
class: "w-2/6",
|
|
389
|
-
onPopoverChanged:
|
|
397
|
+
onPopoverChanged: ie
|
|
390
398
|
}, {
|
|
391
399
|
"trigger-button": U(() => [
|
|
392
|
-
|
|
400
|
+
J(te, {
|
|
393
401
|
"left-icon": e.label ? "filter_alt" : "calendar_month",
|
|
394
|
-
label: e.label ??
|
|
402
|
+
label: e.label ?? $(ee)({
|
|
395
403
|
startDate: c.value.startDate ?? "",
|
|
396
404
|
endDate: c.value.endDate ?? "",
|
|
397
|
-
locale:
|
|
405
|
+
locale: $(_)()
|
|
398
406
|
}),
|
|
399
407
|
removable: e.removable,
|
|
400
|
-
onChipClosed: a[0] || (a[0] = (o) =>
|
|
408
|
+
onChipClosed: a[0] || (a[0] = (o) => ce(!0))
|
|
401
409
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
402
410
|
]),
|
|
403
411
|
_: 1
|
|
404
412
|
}, 8, ["modelValue", "min", "predefined-range"])),
|
|
405
|
-
e.compare ? (C(), b(
|
|
406
|
-
key: `compare-date-picker-${
|
|
407
|
-
modelValue:
|
|
408
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) =>
|
|
413
|
+
e.compare ? (C(), b(u, {
|
|
414
|
+
key: `compare-date-picker-${$(f)}`,
|
|
415
|
+
modelValue: v.value,
|
|
416
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => v.value = o),
|
|
409
417
|
"compare-type": r.value,
|
|
410
418
|
"onUpdate:compareType": a[3] || (a[3] = (o) => r.value = o),
|
|
411
419
|
"show-predefined-range": "",
|
|
412
420
|
min: e.minDate,
|
|
413
421
|
"compare-target": c.value,
|
|
414
422
|
"default-compare-type": r.value,
|
|
415
|
-
onPopoverChanged:
|
|
416
|
-
onSelectComparison:
|
|
423
|
+
onPopoverChanged: de,
|
|
424
|
+
onSelectComparison: ue
|
|
417
425
|
}, {
|
|
418
426
|
"trigger-button": U(() => [
|
|
419
|
-
|
|
427
|
+
J(te, { label: me.value }, null, 8, ["label"])
|
|
420
428
|
]),
|
|
421
429
|
_: 1
|
|
422
|
-
}, 8, ["modelValue", "compare-type", "min", "compare-target", "default-compare-type"])) :
|
|
430
|
+
}, 8, ["modelValue", "compare-type", "min", "compare-target", "default-compare-type"])) : F("", !0)
|
|
423
431
|
]);
|
|
424
432
|
};
|
|
425
433
|
}
|
|
426
|
-
}),
|
|
434
|
+
}), je = /* @__PURE__ */ Me(Ae, [["__scopeId", "data-v-8a5bb212"]]);
|
|
427
435
|
export {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
_,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
436
|
+
S as C,
|
|
437
|
+
je as D,
|
|
438
|
+
te as _,
|
|
439
|
+
Se as a,
|
|
440
|
+
Be as b,
|
|
441
|
+
Ve as c,
|
|
442
|
+
Ne as d,
|
|
443
|
+
ee as e,
|
|
444
|
+
Te as g
|
|
437
445
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, 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-DCkznynv.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as q } from "./global-loader-BuxFfehu.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as c, defineComponent as ze, ref as k, watch as Le, onMounted as Gt, onBeforeUnmount as Eo, resolveComponent as be, createBlock as ye, openBlock as j, Transition as Ya, withCtx as Re, createElementBlock as pe, createCommentVNode as we, createElementVNode as Q, unref as l, normalizeStyle as Ve, withModifiers as Cn, toDisplayString as Me, createVNode as Ce, Fragment as Ye, renderList as St, normalizeClass as Fe, nextTick as jo, mergeModels as ot, useModel as at, renderSlot as gt, h as Pt, createSlots as Xa, resolveDynamicComponent as Go, markRaw as So, toRaw as Ea, createTextVNode as ja, onUnmounted as Yn, provide as Ga, inject as qa, withDirectives as Ja, vShow as Za } from "vue";
|
|
2
|
-
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as Ln,
|
|
4
|
-
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-
|
|
5
|
-
import { c as Dn, w as Et } from "./currency-
|
|
6
|
-
import { d as Xn } from "./DateRangeSelect-
|
|
2
|
+
import { u as Qa, h as er, i as qo, j as tr, q as ko, k as nr } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CG8fCQW1.js";
|
|
3
|
+
import { u as Ln, a3 as xn, a as _n, a4 as or } from "./app-0yX5NkWR.js";
|
|
4
|
+
import { W as Z, S as Je, v as Kt, F as Ot, c as gn, w as Hn, d as ar, o as rr, x as lr, E as Mt, y as sr } from "./report-DWa0N3Ys.js";
|
|
5
|
+
import { c as Dn, w as Et } from "./currency-C0VJTl19.js";
|
|
6
|
+
import { d as Xn } from "./DateRangeSelect-B-OUPLDB.js";
|
|
7
7
|
import { storeToRefs as At } from "pinia";
|
|
8
8
|
import { detectLocale as oo } from "@feedmepos/mf-common";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-DJ3gCuhy.js";
|
|
10
10
|
import { C as En, t as ir } from "./chart-BywXiz4O.js";
|
|
11
11
|
import { useBreakpoints as qt, useSnackbar as Sn, components as ur } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as kt, _ as Jo } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
@@ -3227,7 +3227,7 @@ function fs(e, t) {
|
|
|
3227
3227
|
const n = be("FmMenuDivider");
|
|
3228
3228
|
return j(), ye(n);
|
|
3229
3229
|
}
|
|
3230
|
-
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-
|
|
3230
|
+
const ms = /* @__PURE__ */ Jo(ds, [["render", fs]]), ps = "/assets/processTableData.worker-DxE4bjxG.js", gs = { class: "flex h-full flex-col" }, hs = { class: "my-4 shrink-0" }, vs = {
|
|
3231
3231
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3232
3232
|
style: { backgroundColor: "#f9f9f9" }
|
|
3233
3233
|
}, ys = { class: "font-bold" }, bs = { class: "text-fm-color-neutral-gray-300" }, Cs = /* @__PURE__ */ ze({
|