@feedmepos/mf-report 5.4.13-beta.2 → 5.4.13-beta.3
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-DPNfsf_I.js → App-BA_8z26u.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CRAHJk3-.js → MenuTab.vue_vue_type_script_setup_true_lang-h87kWy1E.js} +83 -80
- package/dist/{OverviewView-BzaDodpK.js → OverviewView-DXDijN1N.js} +1 -1
- package/dist/{ReportView-D1JSo1GP.js → ReportView-BZxsyu2i.js} +1 -1
- package/dist/app.js +3 -3
- package/package.json +1 -1
|
@@ -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.3", !0), window.addEventListener("message", C), window.addEventListener("message", $);
|
|
81
81
|
});
|
|
82
82
|
const F = ae(), B = ie();
|
|
83
83
|
z(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { g as
|
|
3
|
-
import { storeToRefs as
|
|
1
|
+
import { defineComponent as M, mergeModels as L, useModel as N, ref as J, watch as q, resolveComponent as i, createBlock as x, openBlock as p, withCtx as y, createElementVNode as r, createVNode as u, createElementBlock as R, createCommentVNode as S, Fragment as V, renderList as G, createTextVNode as K, withDirectives as Q, toDisplayString as D, vShow as W, unref as l, isRef as h, normalizeClass as j } from "vue";
|
|
2
|
+
import { g as w, a as P } from "./global-loader-CMC9fgBi.js";
|
|
3
|
+
import { storeToRefs as z } from "pinia";
|
|
4
4
|
import { _ as X } from "./LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js";
|
|
5
5
|
import { a as Y, _ as Z } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js";
|
|
6
|
-
import { t as
|
|
6
|
+
import { t as E, s as ee } from "./timeFormat-BF-F4Rnt.js";
|
|
7
7
|
import { useBreakpoints as te } from "@feedmepos/ui-library";
|
|
8
|
-
const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "text-fm-color-typo-primary" }, le = { class: "text-fm-color-typo-secondary" }, ae = { class: "flex items-center justify-center w-full" },
|
|
8
|
+
const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "text-fm-color-typo-primary" }, le = { class: "text-fm-color-typo-secondary" }, ae = { class: "flex items-center justify-center w-full" }, ue = { class: "flex items-center justify-center" }, me = { class: "flex flex-row mb-4 px-4 gap-2" }, se = "HH:mm", re = /* @__PURE__ */ M({
|
|
9
9
|
__name: "TimeRangeSelect",
|
|
10
10
|
props: /* @__PURE__ */ L({
|
|
11
11
|
defaultDateRange: {
|
|
@@ -36,48 +36,51 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
36
36
|
}),
|
|
37
37
|
emits: ["update:timeRange", "update:selectTimeDefault"],
|
|
38
38
|
setup(b) {
|
|
39
|
-
const a =
|
|
39
|
+
const a = N(b, "timeRange"), m = b, s = N(b, "selectTimeDefault");
|
|
40
40
|
function f(t, e = se) {
|
|
41
|
-
return
|
|
41
|
+
return w().set("hour", t.hour).set("minute", t.minute).format(e);
|
|
42
42
|
}
|
|
43
43
|
function _(t) {
|
|
44
|
-
t && (a.value = t),
|
|
44
|
+
t && (a.value = t), d.value = !1;
|
|
45
45
|
}
|
|
46
46
|
function c(t) {
|
|
47
|
-
const e = t.split(":"), v =
|
|
47
|
+
const e = t.split(":"), v = w().set("hour", Number(e[0])).set("minute", Number(e[1]));
|
|
48
48
|
return {
|
|
49
49
|
hours: Number(v.format("h")),
|
|
50
50
|
minutes: Number(v.format("m")),
|
|
51
51
|
period: v.format("A")
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const n =
|
|
54
|
+
const n = J(JSON.parse(JSON.stringify(a.value)));
|
|
55
55
|
function T(t, e) {
|
|
56
56
|
n.value.start = JSON.parse(JSON.stringify(t)), n.value.end = JSON.parse(JSON.stringify(e));
|
|
57
57
|
}
|
|
58
58
|
q(
|
|
59
|
-
() => a.value,
|
|
59
|
+
() => [() => a.value, () => s.value],
|
|
60
60
|
() => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
if (a.value) {
|
|
62
|
+
const t = m.defaultDateRange.findIndex(
|
|
63
|
+
(e) => {
|
|
64
|
+
var v, F, $, C;
|
|
65
|
+
return e.startTime.hour === ((v = a.value.start) == null ? void 0 : v.hour) && e.startTime.minute === ((F = a.value.start) == null ? void 0 : F.minute) && e.endTime.hour === (($ = a.value.end) == null ? void 0 : $.hour) && e.endTime.minute === ((C = a.value.end) == null ? void 0 : C.minute);
|
|
66
|
+
}
|
|
67
|
+
) + 1;
|
|
68
|
+
t !== 0 ? s.value = t : s.value = m.defaultDateRange.length + 1;
|
|
69
|
+
}
|
|
67
70
|
},
|
|
68
71
|
{ deep: !0 }
|
|
69
72
|
);
|
|
70
|
-
const
|
|
73
|
+
const d = J(!1);
|
|
71
74
|
return (t, e) => {
|
|
72
|
-
const v =
|
|
73
|
-
return
|
|
75
|
+
const v = i("FmChip"), F = i("FmRadio"), $ = i("FmMenuDivider"), C = i("FmRadioGroup"), O = i("FmTimeInput"), I = i("FmButton"), H = i("FmPopover");
|
|
76
|
+
return p(), x(H, {
|
|
74
77
|
placement: "bottom",
|
|
75
78
|
class: "min-w-[212px]",
|
|
76
|
-
"show-popover":
|
|
77
|
-
onPopoverChanged: e[5] || (e[5] = (
|
|
79
|
+
"show-popover": d.value,
|
|
80
|
+
onPopoverChanged: e[5] || (e[5] = (k) => d.value = k)
|
|
78
81
|
}, {
|
|
79
82
|
"popover-button": y(() => [
|
|
80
|
-
|
|
83
|
+
u(Y, {
|
|
81
84
|
"left-icon": "schedule",
|
|
82
85
|
label: `${f(a.value.start ?? { hour: 0, minute: 0 }, "h:mmA")} - ${f(
|
|
83
86
|
a.value.end ?? { hour: 23, minute: 59 },
|
|
@@ -86,24 +89,24 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
86
89
|
}, null, 8, ["label"])
|
|
87
90
|
]),
|
|
88
91
|
default: y(() => {
|
|
89
|
-
var
|
|
92
|
+
var k, U, A, B;
|
|
90
93
|
return [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
modelValue:
|
|
94
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
94
|
+
r("div", oe, [
|
|
95
|
+
u(C, {
|
|
96
|
+
modelValue: s.value,
|
|
97
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => s.value = o)
|
|
95
98
|
}, {
|
|
96
99
|
default: y(() => [
|
|
97
|
-
(
|
|
100
|
+
(p(!0), R(V, null, G(m.defaultDateRange, (o, g) => (p(), x(F, {
|
|
98
101
|
key: `range_${g}`,
|
|
99
102
|
value: g + 1,
|
|
100
103
|
label: o.name,
|
|
101
104
|
onClick: (fe) => T(o.startTime, o.endTime)
|
|
102
105
|
}, {
|
|
103
106
|
label: y(() => [
|
|
104
|
-
|
|
105
|
-
K(
|
|
106
|
-
Q(
|
|
107
|
+
r("p", ne, [
|
|
108
|
+
K(D(o.name) + " ", 1),
|
|
109
|
+
Q(u(v, {
|
|
107
110
|
label: "Default",
|
|
108
111
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
109
112
|
compact: ""
|
|
@@ -111,53 +114,53 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
111
114
|
[W, o.isDefault]
|
|
112
115
|
])
|
|
113
116
|
]),
|
|
114
|
-
|
|
117
|
+
r("p", le, D(l(E)(o.startTime)) + " - " + D(l(E)(o.endTime)) + " " + D(l(ee)(o.startTime, o.endTime)), 1)
|
|
115
118
|
]),
|
|
116
119
|
_: 2
|
|
117
120
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
u($),
|
|
122
|
+
u(F, {
|
|
120
123
|
key: "range_custom",
|
|
121
124
|
label: "Custom",
|
|
122
|
-
value:
|
|
125
|
+
value: m.defaultDateRange.length + 1
|
|
123
126
|
}, null, 8, ["value"])
|
|
124
127
|
]),
|
|
125
128
|
_: 1
|
|
126
129
|
}, 8, ["modelValue"]),
|
|
127
|
-
|
|
128
|
-
e[6] || (e[6] =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"model-value": c(`${(
|
|
130
|
+
s.value === m.defaultDateRange.length + 1 ? (p(), R(V, { key: 0 }, [
|
|
131
|
+
e[6] || (e[6] = r("p", { class: "fm-typo-en-body-lg-600 mb-8" }, "Starting time", -1)),
|
|
132
|
+
r("div", ae, [
|
|
133
|
+
u(O, {
|
|
134
|
+
"model-value": c(`${(k = n.value.start) == null ? void 0 : k.hour}:${(U = n.value.start) == null ? void 0 : U.minute}`),
|
|
132
135
|
"onUpdate:modelValue": e[1] || (e[1] = (o) => {
|
|
133
136
|
if (n.value.start) {
|
|
134
|
-
const g = l(
|
|
137
|
+
const g = l(w)(`${o.hours}:${o.minutes} ${o.period}`, "h:m A");
|
|
135
138
|
n.value.start.hour = g.get("hour"), n.value.start.minute = g.get("minute");
|
|
136
139
|
}
|
|
137
140
|
})
|
|
138
141
|
}, null, 8, ["model-value"])
|
|
139
142
|
]),
|
|
140
|
-
e[7] || (e[7] =
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"model-value": c(`${(
|
|
143
|
+
e[7] || (e[7] = r("p", { class: "fm-typo-en-body-lg-600 mb-8" }, "Closing time", -1)),
|
|
144
|
+
r("div", ue, [
|
|
145
|
+
u(O, {
|
|
146
|
+
"model-value": c(`${(A = n.value.end) == null ? void 0 : A.hour}:${(B = n.value.end) == null ? void 0 : B.minute}`),
|
|
144
147
|
"onUpdate:modelValue": e[2] || (e[2] = (o) => {
|
|
145
148
|
if (n.value.end) {
|
|
146
|
-
const g = l(
|
|
149
|
+
const g = l(w)(`${o.hours}:${o.minutes} ${o.period}`, "h:m A");
|
|
147
150
|
n.value.end.hour = g.get("hour"), n.value.end.minute = g.get("minute");
|
|
148
151
|
}
|
|
149
152
|
})
|
|
150
153
|
}, null, 8, ["model-value"])
|
|
151
154
|
])
|
|
152
|
-
], 64)) :
|
|
153
|
-
|
|
154
|
-
e[8] || (e[8] =
|
|
155
|
-
|
|
155
|
+
], 64)) : S("", !0),
|
|
156
|
+
r("div", me, [
|
|
157
|
+
e[8] || (e[8] = r("div", { class: "grow" }, null, -1)),
|
|
158
|
+
u(I, {
|
|
156
159
|
label: "Cancel",
|
|
157
160
|
variant: "tertiary",
|
|
158
|
-
onClick: e[3] || (e[3] = (o) =>
|
|
161
|
+
onClick: e[3] || (e[3] = (o) => d.value = !1)
|
|
159
162
|
}),
|
|
160
|
-
|
|
163
|
+
u(I, {
|
|
161
164
|
label: "Apply",
|
|
162
165
|
onClick: e[4] || (e[4] = () => _(JSON.parse(JSON.stringify(n.value))))
|
|
163
166
|
})
|
|
@@ -169,18 +172,18 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
169
172
|
}, 8, ["show-popover"]);
|
|
170
173
|
};
|
|
171
174
|
}
|
|
172
|
-
}), ie = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, de = /* @__PURE__ */
|
|
175
|
+
}), ie = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, de = /* @__PURE__ */ M({
|
|
173
176
|
__name: "Filter",
|
|
174
177
|
setup(b) {
|
|
175
|
-
const a =
|
|
176
|
-
return (
|
|
177
|
-
|
|
178
|
-
modelValue: l(
|
|
179
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) => h(
|
|
180
|
-
options: l(
|
|
178
|
+
const a = P(), { locations: m, selectedLocationIds: s } = z(P()), { dateRange: f, compareDateRange: _, timeRange: c, defaultDateSetting: n, selectTimeDefault: T } = z(a);
|
|
179
|
+
return (d, t) => (p(), R("div", ie, [
|
|
180
|
+
u(X, {
|
|
181
|
+
modelValue: l(s),
|
|
182
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => h(s) ? s.value = e : null),
|
|
183
|
+
options: l(m)
|
|
181
184
|
}, {
|
|
182
185
|
default: y(() => [
|
|
183
|
-
|
|
186
|
+
u(Z, {
|
|
184
187
|
"date-range": l(f),
|
|
185
188
|
"onUpdate:dateRange": t[0] || (t[0] = (e) => h(f) ? f.value = e : null),
|
|
186
189
|
"compare-date-range": l(_),
|
|
@@ -189,7 +192,7 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
189
192
|
"onUpdate:compareType": t[2] || (t[2] = (e) => l(n).defaultCompareType = e),
|
|
190
193
|
compare: ""
|
|
191
194
|
}, null, 8, ["date-range", "compare-date-range", "compare-type"]),
|
|
192
|
-
|
|
195
|
+
u(re, {
|
|
193
196
|
"time-range": l(c),
|
|
194
197
|
"onUpdate:timeRange": t[3] || (t[3] = (e) => h(c) ? c.value = e : null),
|
|
195
198
|
"select-time-default": l(T),
|
|
@@ -201,7 +204,7 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
201
204
|
}, 8, ["modelValue", "options"])
|
|
202
205
|
]));
|
|
203
206
|
}
|
|
204
|
-
}), pe = { class: "fm-typo-en-body-md-400" }, Fe = /* @__PURE__ */
|
|
207
|
+
}), pe = { class: "fm-typo-en-body-md-400" }, Fe = /* @__PURE__ */ M({
|
|
205
208
|
__name: "MenuTab",
|
|
206
209
|
props: {
|
|
207
210
|
modelValue: { required: !1, default: [] },
|
|
@@ -209,23 +212,23 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
209
212
|
},
|
|
210
213
|
emits: ["update:modelValue"],
|
|
211
214
|
setup(b) {
|
|
212
|
-
const a =
|
|
213
|
-
return (
|
|
214
|
-
const _ =
|
|
215
|
-
return
|
|
216
|
-
class:
|
|
215
|
+
const a = N(b, "modelValue"), { breakpoints: m } = te();
|
|
216
|
+
return (s, f) => {
|
|
217
|
+
const _ = i("FmButton"), c = i("FmIcon"), n = i("FmMenuItem"), T = i("FmMenu");
|
|
218
|
+
return p(), R("div", {
|
|
219
|
+
class: j(["flex items-center pb-6 px-24", `${l(m).lg || l(m).md ? "px-24" : "pl-3"}`])
|
|
217
220
|
}, [
|
|
218
|
-
|
|
219
|
-
f[0] || (f[0] =
|
|
220
|
-
a.value.length > 0 ? (
|
|
221
|
+
u(de),
|
|
222
|
+
f[0] || (f[0] = r("div", { class: "flex grow" }, null, -1)),
|
|
223
|
+
a.value.length > 0 ? (p(), x(T, {
|
|
221
224
|
key: 0,
|
|
222
225
|
trigger: "click",
|
|
223
226
|
placement: "left",
|
|
224
227
|
shift: !0,
|
|
225
|
-
class:
|
|
228
|
+
class: j(l(m).sm || l(m).xs ? "pr-3" : "")
|
|
226
229
|
}, {
|
|
227
230
|
"menu-button": y(() => [
|
|
228
|
-
|
|
231
|
+
u(_, {
|
|
229
232
|
"append-icon": "more_vert",
|
|
230
233
|
variant: "tertiary",
|
|
231
234
|
size: "md",
|
|
@@ -233,22 +236,22 @@ const oe = { class: "px-24 py-16 rounded-lg shadow-light-300" }, ne = { class: "
|
|
|
233
236
|
})
|
|
234
237
|
]),
|
|
235
238
|
default: y(() => [
|
|
236
|
-
(
|
|
239
|
+
(p(!0), R(V, null, G(a.value, (d, t) => (p(), x(n, {
|
|
237
240
|
key: `button-${t}`,
|
|
238
|
-
onClick:
|
|
241
|
+
onClick: d.onClick
|
|
239
242
|
}, {
|
|
240
243
|
label: y(() => [
|
|
241
|
-
|
|
244
|
+
d.prependIcon ?? !1 ? (p(), x(c, {
|
|
242
245
|
key: 0,
|
|
243
|
-
name:
|
|
244
|
-
}, null, 8, ["name"])) :
|
|
245
|
-
|
|
246
|
+
name: d.icon
|
|
247
|
+
}, null, 8, ["name"])) : S("", !0),
|
|
248
|
+
r("p", pe, D(d.label), 1)
|
|
246
249
|
]),
|
|
247
250
|
_: 2
|
|
248
251
|
}, 1032, ["onClick"]))), 128))
|
|
249
252
|
]),
|
|
250
253
|
_: 1
|
|
251
|
-
}, 8, ["class"])) :
|
|
254
|
+
}, 8, ["class"])) : S("", !0)
|
|
252
255
|
], 2);
|
|
253
256
|
};
|
|
254
257
|
}
|
|
@@ -5,7 +5,7 @@ import { _ as D } from "./Default.vue_vue_type_script_setup_true_lang-DHCCdCwk.j
|
|
|
5
5
|
import { a as F } from "./v4-Cb0oLva6.js";
|
|
6
6
|
import { storeToRefs as P } from "pinia";
|
|
7
7
|
import { _ as R } from "./NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js";
|
|
8
|
-
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-h87kWy1E.js";
|
|
9
9
|
const q = /* @__PURE__ */ x({
|
|
10
10
|
__name: "OverviewView",
|
|
11
11
|
setup(V) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, computed as f, resolveComponent as J, createBlock as v, openBlock as s, withCtx as L, createVNode as x, createElementVNode as T, unref as t, normalizeStyle as V, normalizeClass as w, createElementBlock as S, Fragment as z, renderList as H } from "vue";
|
|
2
2
|
import { useSnackbar as M, useBreakpoints as Y } from "@feedmepos/ui-library";
|
|
3
|
-
import { _ as G } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as G } from "./MenuTab.vue_vue_type_script_setup_true_lang-h87kWy1E.js";
|
|
4
4
|
import { _ as Q } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DVqkXuFU.js";
|
|
5
5
|
import { useRouter as U, useRoute as W } from "vue-router";
|
|
6
6
|
import { _ as j } from "./Default.vue_vue_type_script_setup_true_lang-DHCCdCwk.js";
|
package/dist/app.js
CHANGED
|
@@ -13,7 +13,7 @@ const r = {
|
|
|
13
13
|
path: "/overview",
|
|
14
14
|
alias: ["/"],
|
|
15
15
|
name: "overview",
|
|
16
|
-
component: () => import("./OverviewView-
|
|
16
|
+
component: () => import("./OverviewView-DXDijN1N.js")
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
path: "/report",
|
|
@@ -28,7 +28,7 @@ const r = {
|
|
|
28
28
|
{
|
|
29
29
|
path: "/report-view",
|
|
30
30
|
name: "reportView",
|
|
31
|
-
component: () => import("./ReportView-
|
|
31
|
+
component: () => import("./ReportView-BZxsyu2i.js")
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
path: "/report-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-BA_8z26u.js"));
|
|
83
83
|
export {
|
|
84
84
|
h as FmApp,
|
|
85
85
|
c as i18nMessages,
|