@feedmepos/mf-report 5.25.4 → 5.25.5
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-zRHXHcPT.js → App-Ccjd26jp.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BVdgmiki.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-B41r4DUK.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-By3S17dA.js → Default.vue_vue_type_script_setup_true_lang-fx-ezLui.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-nqE6iEkZ.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BUsjxuup.js} +1089 -1090
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CeERNo7f.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js} +2420 -2408
- package/dist/{InsightView-BBhWazOR.js → InsightView-B3tQKQ4l.js} +4 -4
- package/dist/{Integration-DwrH45Cv.js → Integration-C1XwpjGG.js} +3 -3
- package/dist/{Integrations-B2oXCMtI.js → Integrations-BZrhylFB.js} +2 -2
- package/dist/{Layout-8K-hl0GX.js → Layout-DOUWfwrr.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Bk13wM8J.js → MenuTab.vue_vue_type_script_setup_true_lang-af5QiV6L.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DJQmFNyV.js → NavigationTab.vue_vue_type_script_setup_true_lang-BeUD_Dh7.js} +3 -3
- package/dist/{OverviewView-VK-QiYBv.js → OverviewView-CGSOgfjl.js} +4 -4
- package/dist/{Report-DjEakQjd.js → Report-CFAtG59I.js} +47 -49
- package/dist/{ReportEditor-DkDpoEA1.js → ReportEditor-Bnzlsf4R.js} +3 -3
- package/dist/{ReportView-D7pPDt9i.js → ReportView-BtIuFGBQ.js} +6 -6
- package/dist/{Setting-Cj8FNkcg.js → Setting-BbT-Wp1I.js} +3 -3
- package/dist/{TileEditor-DiIeHLZ2.js → TileEditor-BqqZpWqf.js} +5 -5
- package/dist/{TransitionFade-D3p2nUld.js → TransitionFade-BdIMwfIt.js} +4 -4
- package/dist/{app-t7VSpu_w.js → app-CvPMDNkk.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-ClMBdaFt.js → useRestaurantPermission-CJxAvLVn.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-fx-ezLui.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as R, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as p, unref as e, isRef as i, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as C, Fragment as w, renderList as M, toDisplayString as T } from "vue";
|
|
2
|
-
import { a as B } from "./app-
|
|
2
|
+
import { a as B } from "./app-CvPMDNkk.js";
|
|
3
3
|
import { storeToRefs as D } from "pinia";
|
|
4
|
-
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as N, b as S } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BeUD_Dh7.js";
|
|
5
|
+
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B41r4DUK.js";
|
|
6
|
+
import { _ as N, b as S } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
7
7
|
import { useRoute as z } from "vue-router";
|
|
8
8
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
9
9
|
const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ R({
|
|
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => I5(e, typeof r != "symbol" ? r + "" : r, t);
|
|
|
4
4
|
import { defineComponent as tr, computed as Ge, useModel as Sn, ref as Fe, watch as Nr, resolveComponent as me, createBlock as Ke, unref as V, openBlock as re, withCtx as je, createElementVNode as Q, createVNode as _, toDisplayString as Ne, withDirectives as Ii, createElementBlock as Pe, Fragment as gt, renderList as Xt, vShow as Gs, createTextVNode as _r, mergeModels as fi, createCommentVNode as at, normalizeClass as ci, onMounted as o0, withKeys as zh, withModifiers as ii, isRef as wa, vModelText as Xh, normalizeStyle as ac, renderSlot as Hh, mergeProps as F5, nextTick as V5, resolveDynamicComponent as Hu, createSlots as L5 } from "vue";
|
|
5
5
|
import { useRouter as qh, useRoute as Wh } from "vue-router";
|
|
6
6
|
import { storeToRefs as Lr, defineStore as f0 } from "pinia";
|
|
7
|
-
import { u as ol, p as kd, r as N5, l as ai, R as Wa, n as Qs, w as Gl, _ as c0, e as M5, v as R5, d as B5, x as z5, b as jh, m as X5, y as H5, z as wn, A as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as ol, p as kd, r as N5, l as ai, R as Wa, n as Qs, w as Gl, _ as c0, e as M5, v as R5, d as B5, x as z5, b as jh, m as X5, y as H5, z as wn, A as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
8
8
|
import { useBreakpoints as ko, components as Fi, useSnackbar as Xi, useDialog as W5, useDialogChild as j5, FmButtonVariant as xd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as ha } from "./vue-i18n-DVWuTfed.js";
|
|
10
10
|
import { b as Td, a as Uh } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
11
|
-
import { C as hr, g as U5, b as ti, e as Zh, f as Z5, _ as Yh, p as Y5 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as Za, F as Ya, r as fl, a as Hi, d as Ot, q as xo, h as Gh, j as G5, k as Q5, e as K5, l as Il, m as Qh, c as J5, n as _5 } from "./app-
|
|
11
|
+
import { C as hr, g as U5, b as ti, e as Zh, f as Z5, _ as Yh, p as Y5 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B41r4DUK.js";
|
|
12
|
+
import { u as Za, F as Ya, r as fl, a as Hi, d as Ot, q as xo, h as Gh, j as G5, k as Q5, e as K5, l as Il, m as Qh, c as J5, n as _5 } from "./app-CvPMDNkk.js";
|
|
13
13
|
import { detectLocale as $5, useCoreStore as e8 } from "@feedmepos/mf-common";
|
|
14
14
|
const t8 = { class: "flex flex-col" }, r8 = { class: "fm-typo-en-title-sm-600" }, a8 = { class: "grow" }, n8 = { class: "flex flex-col gap-8" }, i8 = { class: "flex flex-col w-full" }, s8 = { class: "flex flex-col gap-5 p-6" }, l8 = { class: "flex" }, Cd = {
|
|
15
15
|
// sales: [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as w, computed as c, resolveComponent as $, createBlock as l, openBlock as r, withCtx as y, createVNode as u, createElementVNode as h, unref as e, normalizeStyle as C, normalizeClass as d, createElementBlock as _, Fragment as b, renderList as B } from "vue";
|
|
2
|
-
import { _ as F } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as P } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as F } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BUsjxuup.js";
|
|
3
|
+
import { _ as L } from "./Default.vue_vue_type_script_setup_true_lang-fx-ezLui.js";
|
|
4
|
+
import { u as P } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
6
|
import { _ as S } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.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-af5QiV6L.js";
|
|
9
9
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
10
10
|
import { r as E } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
const M = /* @__PURE__ */ w({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as
|
|
1
|
+
import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as S, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as k, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Le, toDisplayString as J, createTextVNode as Pe, vShow as Q } from "vue";
|
|
2
2
|
import { storeToRefs as de } from "pinia";
|
|
3
|
-
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
4
|
+
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-fx-ezLui.js";
|
|
5
5
|
import { u as Ae } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { a as Je } from "./vue-i18n-DVWuTfed.js";
|
|
7
7
|
import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as Ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
9
|
-
import { c as Ke, a as fe, g as Me } from "./app-
|
|
9
|
+
import { c as Ke, a as fe, g as Me } from "./app-CvPMDNkk.js";
|
|
10
10
|
import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
|
|
11
11
|
import { useI18n as Ge } from "@feedmepos/mf-common";
|
|
12
12
|
import { r as W } from "./i18n-CI_sQ5d_.js";
|
|
@@ -16,11 +16,11 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
16
16
|
const { t: a, te: z } = Ge(), X = Ye(), Z = qe(), d = Ne(), ve = Ke(), { business: ge } = de(fe()), {
|
|
17
17
|
reports: f,
|
|
18
18
|
overviewReport: B,
|
|
19
|
-
categories:
|
|
20
|
-
pinReport:
|
|
19
|
+
categories: $,
|
|
20
|
+
pinReport: D,
|
|
21
21
|
isOpenAddReportDialog: ye,
|
|
22
22
|
scrollPositionY: ee,
|
|
23
|
-
customReportQuota:
|
|
23
|
+
customReportQuota: I,
|
|
24
24
|
canCreateCustomReport: te
|
|
25
25
|
} = de(d), { promptMessage: oe } = Ae(), { promptLoader: T } = Je(), i = ze(), { breakpoints: u } = Be(), { canRead: ae, canUpdate: re, canDuplicate: be, canDelete: ne, canCreateReport: we } = Me(), C = j();
|
|
26
26
|
je(() => {
|
|
@@ -30,9 +30,9 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
30
30
|
C.value.$el.children[0].scrollTop = ee.value;
|
|
31
31
|
}, 200);
|
|
32
32
|
});
|
|
33
|
-
const U = b(() =>
|
|
33
|
+
const U = b(() => D.value && f.value ? f.value.filter((o) => {
|
|
34
34
|
var t;
|
|
35
|
-
return (t =
|
|
35
|
+
return (t = D.value) == null ? void 0 : t.includes(o.id);
|
|
36
36
|
}) : []);
|
|
37
37
|
pe(
|
|
38
38
|
[() => ge.value],
|
|
@@ -45,13 +45,13 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
45
45
|
(o) => U.value.findIndex((t) => t.id === o.id) === -1
|
|
46
46
|
) : f.value), { FmButton: Ce, FmMenu: E, FmMenuItem: h, FmIcon: K, FmChip: M } = Te, le = b(() => [
|
|
47
47
|
{ value: void 0, label: "All" },
|
|
48
|
-
|
|
48
|
+
...$.value.map((o) => ({
|
|
49
49
|
value: o.id,
|
|
50
50
|
label: o.name
|
|
51
51
|
}))
|
|
52
|
-
]),
|
|
52
|
+
]), F = j(le.value[0]), Y = j(""), R = b(() => se.value.length === 0 || $.value.length === 0 ? [] : [
|
|
53
53
|
...U.value.map((t) => {
|
|
54
|
-
const r =
|
|
54
|
+
const r = $.value.find((l) => l.id === t.category);
|
|
55
55
|
return {
|
|
56
56
|
name: W(a, z, t.name, "other"),
|
|
57
57
|
categoryId: (r == null ? void 0 : r.id) ?? "",
|
|
@@ -65,7 +65,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
65
65
|
};
|
|
66
66
|
}),
|
|
67
67
|
...se.value.map((t) => {
|
|
68
|
-
const r =
|
|
68
|
+
const r = $.value.find((l) => l.id === t.category);
|
|
69
69
|
return {
|
|
70
70
|
name: W(a, z, t.name, "other"),
|
|
71
71
|
categoryId: (r == null ? void 0 : r.id) ?? "",
|
|
@@ -78,7 +78,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
78
78
|
canRead: ae(t)
|
|
79
79
|
};
|
|
80
80
|
})
|
|
81
|
-
].filter((t) =>
|
|
81
|
+
].filter((t) => F.value.value && t.categoryId !== F.value.value ? !1 : `${(t == null ? void 0 : t.name) || ""}${(t == null ? void 0 : t.description) || ""}`.toLowerCase().indexOf(Y.value.toLowerCase()) !== -1)), he = b(
|
|
82
82
|
() => R.value.map((o) => `${o.name}${o.category}`).toString()
|
|
83
83
|
), Re = b(() => [
|
|
84
84
|
{
|
|
@@ -133,17 +133,17 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
133
133
|
},
|
|
134
134
|
cell: (o) => {
|
|
135
135
|
var g;
|
|
136
|
-
const t = o.row.original, r = t.reportId, l = f.value.find((s) => s.id === r), q = r === ((g = B.value) == null ? void 0 : g.id),
|
|
136
|
+
const t = o.row.original, r = t.reportId, l = f.value.find((s) => s.id === r), q = r === ((g = B.value) == null ? void 0 : g.id), N = !t.canRead, _ = l ? be(l) : !1, V = l ? ne(l) : !1, n = [
|
|
137
137
|
{
|
|
138
138
|
label: a("report.common.duplicate"),
|
|
139
139
|
onClick: () => {
|
|
140
|
-
l &&
|
|
140
|
+
l && _ ? ue(l) : _ || i.open({
|
|
141
141
|
message: a("report.messages.noPermissionDuplicateReport"),
|
|
142
142
|
type: "error"
|
|
143
143
|
});
|
|
144
144
|
},
|
|
145
145
|
variant: "",
|
|
146
|
-
disabled:
|
|
146
|
+
disabled: !_
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
label: a(q ? "report.common.unsetAsOverview" : "report.common.setAsOverview"),
|
|
@@ -175,14 +175,12 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
175
175
|
p(
|
|
176
176
|
"button",
|
|
177
177
|
{
|
|
178
|
-
disabled:
|
|
179
|
-
title:
|
|
178
|
+
disabled: N,
|
|
179
|
+
title: N ? a("report.messages.noPermission") : void 0,
|
|
180
180
|
onClick: De(() => {
|
|
181
181
|
l && me(l);
|
|
182
182
|
}, ["stop"]),
|
|
183
|
-
class: `text-fm-color-neutral-gray-400 ${t.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center
|
|
184
|
-
disabled: S,
|
|
185
|
-
title: S ? a("report.messages.noPermission") : void 0
|
|
183
|
+
class: `text-fm-color-neutral-gray-400 ${t.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
|
|
186
184
|
},
|
|
187
185
|
{
|
|
188
186
|
default: () => [
|
|
@@ -301,8 +299,8 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
301
299
|
if (te.value)
|
|
302
300
|
await Se(o);
|
|
303
301
|
else {
|
|
304
|
-
let t = `Your current plan only support up to ${
|
|
305
|
-
|
|
302
|
+
let t = `Your current plan only support up to ${I.value} custom reports.`;
|
|
303
|
+
I.value === 0 && (t = "Your current plan does not support custom report."), i.open({
|
|
306
304
|
message: t,
|
|
307
305
|
type: "error"
|
|
308
306
|
});
|
|
@@ -319,8 +317,8 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
319
317
|
if (te.value)
|
|
320
318
|
ye.value = !0;
|
|
321
319
|
else {
|
|
322
|
-
let o = `Your current plan only support up to ${
|
|
323
|
-
|
|
320
|
+
let o = `Your current plan only support up to ${I.value} custom reports.`;
|
|
321
|
+
I.value === 0 && (o = "Your current plan does not support custom report."), i.open({
|
|
324
322
|
message: o,
|
|
325
323
|
type: "error"
|
|
326
324
|
});
|
|
@@ -328,7 +326,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
328
326
|
}
|
|
329
327
|
function me(o) {
|
|
330
328
|
const t = W(a, z, o.name, "other") ?? "";
|
|
331
|
-
|
|
329
|
+
D.value && D.value.includes(o.id) ? (i.open({
|
|
332
330
|
message: `${a("report.common.unpin")} ${t} ${a("report.common.successful")}`,
|
|
333
331
|
type: "success"
|
|
334
332
|
}), d.clearPinReport(o.id)) : (i.open({
|
|
@@ -337,11 +335,11 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
337
335
|
}), d.cachePinReport(o));
|
|
338
336
|
}
|
|
339
337
|
function xe(o) {
|
|
340
|
-
|
|
338
|
+
F.value = o;
|
|
341
339
|
}
|
|
342
|
-
const { selectedLocationIds:
|
|
340
|
+
const { selectedLocationIds: x, dateRange: O, compareDateRange: L, timeRange: v, locations: _e } = fe(), P = b(() => x.length === _e.length);
|
|
343
341
|
return (o, t) => {
|
|
344
|
-
const r =
|
|
342
|
+
const r = S("FmPageHead"), l = S("FmSearch"), q = S("FmForm"), N = S("FmListItem"), _ = S("FmList"), V = S("FmTable");
|
|
345
343
|
return A(), G(Ve, null, {
|
|
346
344
|
default: m(() => [
|
|
347
345
|
c(r, {
|
|
@@ -358,25 +356,25 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
358
356
|
"onClick:action": t[0] || (t[0] = (n) => ke())
|
|
359
357
|
}, null, 8, ["title", "actions"]),
|
|
360
358
|
w("div", {
|
|
361
|
-
class:
|
|
359
|
+
class: k(`overflow-y-hidden flex flex-col gap-8 ${e(u).sm || e(u).xs ? "mb-20" : ""}`),
|
|
362
360
|
style: Ie({ height: `calc(100% - ${e(u).lg || e(u).md ? 72 : 64}px)` })
|
|
363
361
|
}, [
|
|
364
362
|
c(q, {
|
|
365
|
-
class:
|
|
363
|
+
class: k(`flex items-center gap-2 ${e(u).sm || e(u).xs ? "px-3" : "px-24"}`)
|
|
366
364
|
}, {
|
|
367
365
|
default: m(() => [
|
|
368
366
|
c(e(E), null, {
|
|
369
367
|
"menu-button": m(() => [
|
|
370
368
|
c(e(M), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
|
|
371
369
|
default: m(() => [
|
|
372
|
-
w("p", null, J(e(a)(`report.category.${
|
|
370
|
+
w("p", null, J(e(a)(`report.category.${F.value.label}`)), 1),
|
|
373
371
|
c(e(K), { name: "expand_more" })
|
|
374
372
|
]),
|
|
375
373
|
_: 1
|
|
376
374
|
})
|
|
377
375
|
]),
|
|
378
376
|
default: m(() => [
|
|
379
|
-
(A(!0), Fe(Oe, null,
|
|
377
|
+
(A(!0), Fe(Oe, null, Le(le.value, (n, g) => (A(), G(e(h), {
|
|
380
378
|
key: g,
|
|
381
379
|
label: e(a)(`report.category.${n.label}`),
|
|
382
380
|
onClick: () => xe(n)
|
|
@@ -385,7 +383,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
385
383
|
_: 1
|
|
386
384
|
}),
|
|
387
385
|
w("div", {
|
|
388
|
-
class:
|
|
386
|
+
class: k(`flex ${e(u).sm || e(u).xs ? "justify-center items-center" : ""}`)
|
|
389
387
|
}, [
|
|
390
388
|
w("p", He, J(e(a)("report.common.results", { count: R.value.length })), 1)
|
|
391
389
|
], 2),
|
|
@@ -394,7 +392,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
394
392
|
c(l, {
|
|
395
393
|
modelValue: Y.value,
|
|
396
394
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => Y.value = n),
|
|
397
|
-
class:
|
|
395
|
+
class: k(`${e(u).lg || e(u).md ? "grow" : ""}`)
|
|
398
396
|
}, null, 8, ["modelValue", "class"])
|
|
399
397
|
])
|
|
400
398
|
]),
|
|
@@ -404,7 +402,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
404
402
|
key: he.value,
|
|
405
403
|
ref_key: "table",
|
|
406
404
|
ref: C,
|
|
407
|
-
class:
|
|
405
|
+
class: k([e(u).sm || e(u).xs ? "px-0" : "px-24", "report-table"]),
|
|
408
406
|
style: { height: "calc(100% - 40px)" },
|
|
409
407
|
"column-defs": Re.value,
|
|
410
408
|
"row-data": R.value,
|
|
@@ -424,20 +422,20 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
424
422
|
query: {
|
|
425
423
|
...e(Z).query,
|
|
426
424
|
reportId: n.original.reportId,
|
|
427
|
-
startDate: e(
|
|
428
|
-
endDate: e(
|
|
425
|
+
startDate: e(O).startDate,
|
|
426
|
+
endDate: e(O).endDate,
|
|
429
427
|
compareStartDate: e(L).startDate,
|
|
430
428
|
compareEndDate: e(L).endDate,
|
|
431
429
|
timeStart: e(v).start ? JSON.stringify(e(v).start) : null,
|
|
432
430
|
timeEnd: e(v).end ? JSON.stringify(e(v).end) : null,
|
|
433
|
-
isAllLocation:
|
|
434
|
-
locationIds:
|
|
431
|
+
isAllLocation: P.value.toString(),
|
|
432
|
+
locationIds: P.value ? void 0 : e(x) ? JSON.stringify(e(x)) : void 0
|
|
435
433
|
}
|
|
436
434
|
});
|
|
437
435
|
})
|
|
438
436
|
}, {
|
|
439
437
|
"list-row": m(({ original: n }) => [
|
|
440
|
-
c(
|
|
438
|
+
c(_, {
|
|
441
439
|
onClick: () => {
|
|
442
440
|
if (!n.canRead) {
|
|
443
441
|
e(i).open({
|
|
@@ -451,27 +449,27 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
451
449
|
query: {
|
|
452
450
|
...e(Z).query,
|
|
453
451
|
reportId: n.reportId,
|
|
454
|
-
startDate: e(
|
|
455
|
-
endDate: e(
|
|
452
|
+
startDate: e(O).startDate,
|
|
453
|
+
endDate: e(O).endDate,
|
|
456
454
|
compareStartDate: e(L).startDate,
|
|
457
455
|
compareEndDate: e(L).endDate,
|
|
458
456
|
timeStart: e(v).start ? JSON.stringify(e(v).start) : null,
|
|
459
457
|
timeEnd: e(v).end ? JSON.stringify(e(v).end) : null,
|
|
460
|
-
isAllLocation:
|
|
461
|
-
locationIds:
|
|
458
|
+
isAllLocation: P.value.toString(),
|
|
459
|
+
locationIds: P.value ? void 0 : e(x) ? JSON.stringify(e(x)) : void 0
|
|
462
460
|
}
|
|
463
461
|
}));
|
|
464
462
|
}
|
|
465
463
|
}, {
|
|
466
464
|
default: m(() => [
|
|
467
|
-
c(
|
|
465
|
+
c(N, {
|
|
468
466
|
tag: "label",
|
|
469
467
|
label: n.name,
|
|
470
468
|
clickable: ""
|
|
471
469
|
}, {
|
|
472
470
|
append: m(() => [
|
|
473
471
|
c(e(M), {
|
|
474
|
-
class:
|
|
472
|
+
class: k(
|
|
475
473
|
n.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
|
|
476
474
|
),
|
|
477
475
|
compact: !0
|
|
@@ -534,7 +532,7 @@ const He = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe
|
|
|
534
532
|
}
|
|
535
533
|
}, {
|
|
536
534
|
label: m(() => [
|
|
537
|
-
|
|
535
|
+
Pe(J(e(a)("report.common.delete")), 1)
|
|
538
536
|
]),
|
|
539
537
|
_: 2
|
|
540
538
|
}, 1032, ["label", "onClick"]), [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as ye, mergeModels as ge, useModel as be, ref as I, computed as S, resolveComponent as _, createBlock as T, openBlock as s, withCtx as p, createElementVNode as h, createVNode as a, unref as o, normalizeClass as ke, createTextVNode as Le, toDisplayString as Y, createElementBlock as C, Fragment as ee, renderSlot as Ye, createCommentVNode as A, watch as fe, renderList as ce, resolveDynamicComponent as sl, isRef as Ze, normalizeStyle as He, onMounted as ul } from "vue";
|
|
2
|
-
import { W as dl, g as ml, _ as cl, a as pl, i as vl, S as Ae, d as Ge, T as fl, b as gl } from "./TransitionFade-
|
|
3
|
-
import { C as ve, D as X, c as Ve, g as bl, u as el, a as yl, d as Ke, v as Oe, b as Qe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as dl, g as ml, _ as cl, a as pl, i as vl, S as Ae, d as Ge, T as fl, b as gl } from "./TransitionFade-BdIMwfIt.js";
|
|
3
|
+
import { C as ve, D as X, c as Ve, g as bl, u as el, a as yl, d as Ke, v as Oe, b as Qe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
4
4
|
import { storeToRefs as Re } from "pinia";
|
|
5
5
|
import { useRouter as ll, useRoute as tl } from "vue-router";
|
|
6
6
|
import { useBreakpoints as Ie, useSnackbar as ol, FmButtonColorThemeVariant as xe } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as al } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { u as Ne, a as hl } from "./vue-i18n-DVWuTfed.js";
|
|
9
9
|
import { r as $e } from "./i18n-CI_sQ5d_.js";
|
|
10
|
-
import { _ as Ee } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Ee } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BUsjxuup.js";
|
|
11
11
|
import { b as Pe, _ as Je } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
12
12
|
import { useCoreStore as _l } from "@feedmepos/mf-common";
|
|
13
13
|
const wl = /* @__PURE__ */ ye({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as oe, computed as c, watch as te, resolveComponent as J, createBlock as _, openBlock as d, withCtx as w, createVNode as S, createElementVNode as k, unref as s, toDisplayString as re, normalizeStyle as ae, normalizeClass as T, createElementBlock as N, Fragment as se, renderList as ne } from "vue";
|
|
2
|
-
import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as ie } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-af5QiV6L.js";
|
|
3
|
+
import { _ as ie } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BUsjxuup.js";
|
|
4
4
|
import { useRouter as ue, useRoute as ce } from "vue-router";
|
|
5
|
-
import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as me, s as de } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-fx-ezLui.js";
|
|
6
|
+
import { u as me, s as de } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
7
7
|
import { storeToRefs as f } from "pinia";
|
|
8
|
-
import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BeUD_Dh7.js";
|
|
9
9
|
import { _ as be, a as _e } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
10
10
|
import { useSnackbar as we, useBreakpoints as Se } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as ke, a as xe } from "./vue-i18n-DVWuTfed.js";
|
|
12
12
|
import { u as he } from "./message-dialog-UoMWOnil.js";
|
|
13
|
-
import { e as Ce, g as Re } from "./app-
|
|
13
|
+
import { e as Ce, g as Re } from "./app-CvPMDNkk.js";
|
|
14
14
|
import { r as Pe } from "./i18n-CI_sQ5d_.js";
|
|
15
15
|
const De = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Oe = { class: "sticky top-0 z-10 bg-white" }, Ie = /* @__PURE__ */ ee({
|
|
16
16
|
__name: "ReportView",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as B, ref as H, useModel as M, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as A, renderList as G, createTextVNode as ie, withDirectives as K, vShow as Q, watch as me, normalizeStyle as ue } from "vue";
|
|
2
|
-
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as L, C as q, D as pe, a as ce } from "./app-
|
|
2
|
+
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-fx-ezLui.js";
|
|
3
|
+
import { d as L, C as q, D as pe, a as ce } from "./app-CvPMDNkk.js";
|
|
4
4
|
import { components as z, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as I } from "@feedmepos/ui-library";
|
|
5
|
-
import { t as N, o as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { t as N, o as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
6
6
|
import { u as ve } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { u as U } from "./vue-i18n-DVWuTfed.js";
|
|
8
8
|
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as ie, mergeModels as pe, useModel as fe, computed as T, ref as oe, resolveComponent as $, createElementBlock as H, openBlock as f, createVNode as u, createElementVNode as C, unref as l, withCtx as G, toDisplayString as Q, Fragment as ue, renderList as xe, withModifiers as ye, createTextVNode as Le, watch as he, createCommentVNode as O, createBlock as N, onUnmounted as Nl, renderSlot as dl, onMounted as Ke, onBeforeUnmount as ml, resolveDynamicComponent as cl, normalizeClass as ke, withDirectives as Ce, vShow as we, withKeys as ol, vModelText as jl, normalizeStyle as He, isRef as zl } from "vue";
|
|
2
2
|
import { useRoute as Rl, useRouter as Il } from "vue-router";
|
|
3
|
-
import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-
|
|
4
|
-
import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { h as Pl, d as Ie, S as Ye, a as El, W as Xl, c as Wl, T as ql, b as Hl } from "./TransitionFade-BdIMwfIt.js";
|
|
4
|
+
import { W as K, a as pl, e as Ae, D as Yl, S as tl, C as Gl, u as vl, P as al, d as Jl, b as Kl } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
5
5
|
import { storeToRefs as Se } from "pinia";
|
|
6
6
|
import { u as fl } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as Ql, useBreakpoints as gl, FmButtonColorThemeVariant as nl } from "@feedmepos/ui-library";
|
|
8
8
|
import { b as ve, a as yl, _ as bl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
9
9
|
import { u as me } from "./vue-i18n-DVWuTfed.js";
|
|
10
10
|
import { r as de } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { g as _e, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { a as oo, d as Oe } from "./app-
|
|
11
|
+
import { g as _e, u as je, R as il, L as Fe, a as Ne, S as ae, d as ce, b as We, c as sl, e as Zl, Y as eo, X as lo, _ as hl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BUsjxuup.js";
|
|
12
|
+
import { a as De, d as ze } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B41r4DUK.js";
|
|
13
|
+
import { a as oo, d as Oe } from "./app-CvPMDNkk.js";
|
|
14
14
|
const Pe = [
|
|
15
15
|
{
|
|
16
16
|
type: K.Circular,
|
|
@@ -3,11 +3,11 @@ import { u as Pt, a as Pn } from "./vue-i18n-DVWuTfed.js";
|
|
|
3
3
|
import { useCoreStore as Vn } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as Mn } from "pinia";
|
|
5
5
|
import { useRoute as Ln } from "vue-router";
|
|
6
|
-
import { W as F, I as Be, f as rn, h as an, c as De, g as Bn, e as $n } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { p as Rn, a as ln, d as Xn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { W as F, I as Be, f as rn, h as an, c as De, g as Bn, e as $n } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BdrOuj63.js";
|
|
7
|
+
import { p as Rn, a as ln, d as Xn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-B41r4DUK.js";
|
|
8
8
|
import { a as Vt, b as Wt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
|
|
9
|
-
import { R as Yn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { d as ht } from "./app-
|
|
9
|
+
import { R as Yn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BUsjxuup.js";
|
|
10
|
+
import { d as ht } from "./app-CvPMDNkk.js";
|
|
11
11
|
import { r as Wn } from "./i18n-CI_sQ5d_.js";
|
|
12
12
|
import { useSnackbar as Un } from "@feedmepos/ui-library";
|
|
13
13
|
const jn = {
|
|
@@ -11576,7 +11576,7 @@ const oA = [
|
|
|
11576
11576
|
path: "/overview",
|
|
11577
11577
|
alias: ["/"],
|
|
11578
11578
|
name: "overview",
|
|
11579
|
-
component: ft(() => import("./OverviewView-
|
|
11579
|
+
component: ft(() => import("./OverviewView-CGSOgfjl.js")),
|
|
11580
11580
|
meta: {
|
|
11581
11581
|
validationManifest: pt(
|
|
11582
11582
|
z.report_accessOverview
|
|
@@ -11586,12 +11586,12 @@ const oA = [
|
|
|
11586
11586
|
{
|
|
11587
11587
|
path: "/report",
|
|
11588
11588
|
name: "reports",
|
|
11589
|
-
component: () => import("./Report-
|
|
11589
|
+
component: () => import("./Report-CFAtG59I.js")
|
|
11590
11590
|
},
|
|
11591
11591
|
{
|
|
11592
11592
|
path: "/insights",
|
|
11593
11593
|
name: "insights",
|
|
11594
|
-
component: ft(() => import("./InsightView-
|
|
11594
|
+
component: ft(() => import("./InsightView-B3tQKQ4l.js")),
|
|
11595
11595
|
meta: {
|
|
11596
11596
|
validationManifest: pt(
|
|
11597
11597
|
z.report_accessInsight
|
|
@@ -11601,22 +11601,22 @@ const oA = [
|
|
|
11601
11601
|
{
|
|
11602
11602
|
path: "/report-view",
|
|
11603
11603
|
name: "reportView",
|
|
11604
|
-
component: () => import("./ReportView-
|
|
11604
|
+
component: () => import("./ReportView-BtIuFGBQ.js")
|
|
11605
11605
|
},
|
|
11606
11606
|
{
|
|
11607
11607
|
path: "/report-editor",
|
|
11608
11608
|
name: "reportEditor",
|
|
11609
|
-
component: () => import("./ReportEditor-
|
|
11609
|
+
component: () => import("./ReportEditor-Bnzlsf4R.js")
|
|
11610
11610
|
},
|
|
11611
11611
|
{
|
|
11612
11612
|
path: "/report-editor/tile-editor",
|
|
11613
11613
|
name: "tileEditor",
|
|
11614
|
-
component: () => import("./TileEditor-
|
|
11614
|
+
component: () => import("./TileEditor-BqqZpWqf.js")
|
|
11615
11615
|
},
|
|
11616
11616
|
{
|
|
11617
11617
|
path: "/setting",
|
|
11618
11618
|
name: "setting",
|
|
11619
|
-
component: ft(() => import("./Setting-
|
|
11619
|
+
component: ft(() => import("./Setting-BbT-Wp1I.js")),
|
|
11620
11620
|
meta: {
|
|
11621
11621
|
validationManifest: pt(
|
|
11622
11622
|
z.report_accessSetting
|
|
@@ -11625,7 +11625,7 @@ const oA = [
|
|
|
11625
11625
|
},
|
|
11626
11626
|
{
|
|
11627
11627
|
path: "/integration",
|
|
11628
|
-
component: ft(() => import("./Layout-
|
|
11628
|
+
component: ft(() => import("./Layout-DOUWfwrr.js")),
|
|
11629
11629
|
meta: {
|
|
11630
11630
|
validationManifest: pt(
|
|
11631
11631
|
z.report_accessIntegration
|
|
@@ -11635,12 +11635,12 @@ const oA = [
|
|
|
11635
11635
|
{
|
|
11636
11636
|
name: "integrations",
|
|
11637
11637
|
path: "",
|
|
11638
|
-
component: () => import("./Integrations-
|
|
11638
|
+
component: () => import("./Integrations-BZrhylFB.js")
|
|
11639
11639
|
},
|
|
11640
11640
|
{
|
|
11641
11641
|
name: "integration",
|
|
11642
11642
|
path: "/integration/:id",
|
|
11643
|
-
component: () => import("./Integration-
|
|
11643
|
+
component: () => import("./Integration-C1XwpjGG.js")
|
|
11644
11644
|
}
|
|
11645
11645
|
]
|
|
11646
11646
|
},
|
|
@@ -11664,7 +11664,7 @@ const WA = {
|
|
|
11664
11664
|
"zh-CN": dn,
|
|
11665
11665
|
"th-TH": pn,
|
|
11666
11666
|
"zh-Hant": gn
|
|
11667
|
-
}, ZA = _o(() => import("./App-
|
|
11667
|
+
}, ZA = _o(() => import("./App-Ccjd26jp.js"));
|
|
11668
11668
|
export {
|
|
11669
11669
|
bc as A,
|
|
11670
11670
|
xc as B,
|
package/dist/app.js
CHANGED
|
@@ -2,7 +2,7 @@ import { computed as u } from "vue";
|
|
|
2
2
|
import { u as c } from "./vue-i18n-DVWuTfed.js";
|
|
3
3
|
import { useSnackbar as f } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
5
|
-
import { V as l, W as i } from "./app-
|
|
5
|
+
import { V as l, W as i } from "./app-CvPMDNkk.js";
|
|
6
6
|
function g(t) {
|
|
7
7
|
return Array.isArray(t) ? t : [];
|
|
8
8
|
}
|