@feedmepos/mf-report 5.27.39 → 5.27.40
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-S90BTDsA.js → App-gwDfjs0u.js} +51 -51
- package/dist/{DateRangeSelect-D8yWjVRH.js → DateRangeSelect-UoFskU18.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js → Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-aP-DhJoD.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js} +1383 -1377
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js} +2 -2
- package/dist/{InsightView-9dc7VxLd.js → InsightView-BOM8sS76.js} +4 -4
- package/dist/{Integration-DgT3WP7T.js → Integration-Balw3Mat.js} +3 -3
- package/dist/{Integrations-DTjuN8ir.js → Integrations-mur9Phe_.js} +2 -2
- package/dist/{Layout-BhTbEl_I.js → Layout-ChpQW6k2.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js → MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js → NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js} +1248 -1252
- package/dist/{OverviewView-CLUe1Opn.js → OverviewView-Cf3MrDd_.js} +4 -4
- package/dist/{Report-BtKLh93q.js → Report-D0ybaqZN.js} +3 -3
- package/dist/{ReportEditor-BSoWyCZA.js → ReportEditor-BAOUNxIf.js} +6 -6
- package/dist/{ReportView-DMah7z_A.js → ReportView-BaHqhBsX.js} +6 -6
- package/dist/Setting-IDAzH_zb.js +366 -0
- package/dist/{Template-CoM9-uOV.js → Template-C1Ei0GcR.js} +3 -3
- package/dist/{TileEditor-DDtA5B1e.js → TileEditor-D5lXwoDY.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js → TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js} +2 -2
- package/dist/{TransitionFade-cviixQkL.js → TransitionFade-CtE41B0o.js} +4 -4
- package/dist/{app-CuP9NY1I.js → app-FVupSSYM.js} +1610 -1538
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-i9i6cu96.js → useRestaurantPermission-DivfYXir.js} +1 -1
- package/package.json +2 -2
- package/dist/Setting-DbZY2zk5.js +0 -327
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as w, computed as l, resolveComponent as y, createBlock as p, openBlock as s, withCtx as k, createVNode as i, createElementVNode as c, unref as e, normalizeStyle as b, normalizeClass as d, createElementBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js";
|
|
3
|
+
import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
4
|
+
import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
|
|
5
5
|
import { storeToRefs as z } from "pinia";
|
|
6
6
|
import { _ as P } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
7
7
|
import { useBreakpoints as R } from "@feedmepos/ui-library";
|
|
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-VIJ3DR4n.js";
|
|
9
9
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
10
10
|
import { r as D } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
const E = { class: "sticky top-0 z-10 bg-white" }, M = /* @__PURE__ */ w({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
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-DT2SiGub.js";
|
|
4
|
+
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
|
|
5
5
|
import { u as Ae } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { a as Je } from "./_plugin-vue_export-helper-onplcgja.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-CGbb3b5G.js";
|
|
9
|
-
import { c as Ke, a as fe, h as Me } from "./app-
|
|
9
|
+
import { c as Ke, a as fe, h as Me } from "./app-FVupSSYM.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";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as we, mergeModels as ke, useModel as Te, ref as L, computed as b, resolveComponent as C, createBlock as T, openBlock as c, withCtx as _, createElementVNode as v, createVNode as i, unref as o, normalizeClass as Pe, createTextVNode as Ge, toDisplayString as B, createElementBlock as R, Fragment as he, renderSlot as vt, createCommentVNode as M, watch as ge, renderList as qe, onMounted as ft, onUnmounted as St, resolveDynamicComponent as $t, isRef as gt, normalizeStyle as lt } from "vue";
|
|
2
|
-
import { W as Dt, g as Ot, _ as It, a as Ut, e as Oe, S as Le, d as bt, b as yt, T as Bt, c as Nt } from "./TransitionFade-
|
|
3
|
-
import { C as Ve, D as te, d as Re, g as Mt, F as He, e as Ie, u as at, M as ht, r as Rt, f as st, n as zt, h as qt, i as Pt, j as Et, k as Lt, a as Gt, b as ut, m as Xe, o as Wt, Q as je, p as At, l as Ht, c as dt, q as jt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as Dt, g as Ot, _ as It, a as Ut, e as Oe, S as Le, d as bt, b as yt, T as Bt, c as Nt } from "./TransitionFade-CtE41B0o.js";
|
|
3
|
+
import { C as Ve, D as te, d as Re, g as Mt, F as He, e as Ie, u as at, M as ht, r as Rt, f as st, n as zt, h as qt, i as Pt, j as Et, k as Lt, a as Gt, b as ut, m as Xe, o as Wt, Q as je, p as At, l as Ht, c as dt, q as jt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
4
4
|
import { storeToRefs as ze } from "pinia";
|
|
5
5
|
import { useRouter as rt, useRoute as nt } from "vue-router";
|
|
6
6
|
import { useBreakpoints as Je, useSnackbar as wt, FmButtonColorThemeVariant as Ce } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as it } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { u as Ee, a as Jt } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
9
9
|
import { r as We } from "./i18n-CI_sQ5d_.js";
|
|
10
|
-
import { _ as Ze } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Ze } from "./TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js";
|
|
11
11
|
import { a as et, _ as tt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
12
|
-
import { d as Kt, e as Qt, i as Yt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { d as Kt, e as Qt, i as Yt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js";
|
|
13
13
|
import { useCoreStore as Xt } from "@feedmepos/mf-common";
|
|
14
|
-
import { u as Zt, a as el } from "./app-
|
|
15
|
-
import { d as tl } from "./DateRangeSelect-
|
|
14
|
+
import { u as Zt, a as el } from "./app-FVupSSYM.js";
|
|
15
|
+
import { d as tl } from "./DateRangeSelect-UoFskU18.js";
|
|
16
16
|
const ll = /* @__PURE__ */ we({
|
|
17
17
|
__name: "WidgetDialog",
|
|
18
18
|
props: /* @__PURE__ */ ke({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as V, computed as i, createBlock as S, openBlock as f, withCtx as h, renderSlot as ie, ref as ue, watch as ce, resolveComponent as j, createVNode as _, createElementVNode as R, unref as l, toDisplayString as pe, normalizeStyle as me, normalizeClass as F, createElementBlock as de } from "vue";
|
|
2
|
-
import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as fe } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as ye, l as ge, s as be } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js";
|
|
3
|
+
import { _ as fe } from "./TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js";
|
|
4
|
+
import { u as ye, l as ge, s as be } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
5
5
|
import { useRouter as _e, useRoute as we } from "vue-router";
|
|
6
|
-
import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
|
|
7
7
|
import { storeToRefs as w } from "pinia";
|
|
8
|
-
import { b as he, c as Ce, u as xe, g as Te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { b as he, c as Ce, u as xe, g as Te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js";
|
|
9
9
|
import { _ as z } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
10
|
import { useSnackbar as ke, useBreakpoints as Re } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as L, a as Pe, _ as De } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
12
12
|
import { u as Ie } from "./message-dialog-UoMWOnil.js";
|
|
13
|
-
import { e as Oe, h as $e } from "./app-
|
|
13
|
+
import { e as Oe, h as $e } from "./app-FVupSSYM.js";
|
|
14
14
|
import { r as Ae } from "./i18n-CI_sQ5d_.js";
|
|
15
15
|
const Ee = /* @__PURE__ */ V({
|
|
16
16
|
__name: "NoPermission",
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { defineComponent as R, ref as N, useModel as I, resolveComponent as V, createElementBlock as $, openBlock as x, createBlock as L, createElementVNode as t, resolveDynamicComponent as me, unref as e, withCtx as b, createVNode as s, normalizeClass as U, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as ue, withDirectives as Y, vShow as ee, computed as q, watch as de, normalizeStyle as pe } from "vue";
|
|
2
|
+
import { _ as ce } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
|
|
3
|
+
import { d as A, C as G, D as fe, m as _e, n as K, a as ve } from "./app-FVupSSYM.js";
|
|
4
|
+
import { components as Z, useSnackbar as te, useBreakpoints as oe, FmButtonColorThemeVariant as Q } from "@feedmepos/ui-library";
|
|
5
|
+
import { K as B, L as ge } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
6
|
+
import { u as ye } from "./message-dialog-UoMWOnil.js";
|
|
7
|
+
import { u as w } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
8
|
+
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
9
|
+
import { a as j } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
|
+
import { storeToRefs as he } from "pinia";
|
|
11
|
+
const xe = { class: "px-5 py-2" }, be = { class: "flex" }, Ve = { class: "flex px-5 gap-2" }, Te = { class: "flex flex-col gap-2" }, Ce = { class: "fm-typo-en-title-sm-600" }, De = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = { class: "w-full gap-[24px] flex flex-col pt-2" }, Se = { class: "flex items-center w-full gap-3" }, ke = { class: "text-fm-color-typo-primary" }, Fe = { class: "text-fm-color-typo-secondary" }, Re = { class: "flex items-center gap-2" }, we = /* @__PURE__ */ R({
|
|
12
|
+
__name: "ReportHour",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {
|
|
15
|
+
required: !0,
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(T) {
|
|
22
|
+
const l = N(!1), i = N(), o = {
|
|
23
|
+
name: "",
|
|
24
|
+
isDefault: !1,
|
|
25
|
+
startTime: { hour: 0, minute: 0 },
|
|
26
|
+
endTime: { hour: 0, minute: 0 }
|
|
27
|
+
}, { FmForm: p } = Z, f = N(), { promptMessage: h } = ye(), m = te(), n = N(JSON.parse(JSON.stringify(o))), u = I(T, "modelValue"), { t: r } = w(), E = () => {
|
|
28
|
+
l.value = !1, n.value && i.value === void 0 ? u.value.push(n.value) : u.value[i.value] = n.value;
|
|
29
|
+
}, O = () => {
|
|
30
|
+
var v;
|
|
31
|
+
(v = f.value) == null || v.validateInputs();
|
|
32
|
+
}, H = () => {
|
|
33
|
+
l.value = !1, n.value = o;
|
|
34
|
+
}, c = (v) => {
|
|
35
|
+
i.value = v, n.value = JSON.parse(JSON.stringify(u.value[i.value])), l.value = !0;
|
|
36
|
+
}, P = () => {
|
|
37
|
+
n.value = o, l.value = !0;
|
|
38
|
+
}, le = async (v) => {
|
|
39
|
+
const d = u.value.find((C, _) => _ === v);
|
|
40
|
+
if (!d) {
|
|
41
|
+
m.open({ message: `index ${v} cannot be found`, type: "error" });
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (d.isDefault)
|
|
45
|
+
return;
|
|
46
|
+
await h({
|
|
47
|
+
title: r("report.setting.reportHour.deleteTitle"),
|
|
48
|
+
message: r("report.setting.reportHour.deleteConfirm", { name: d.name })
|
|
49
|
+
}) && (u.value = u.value.filter((_, M) => M !== v), u.value.find((_) => _.isDefault) || (u.value[0].isDefault = !0), n.value = o);
|
|
50
|
+
}, ae = (v, d) => {
|
|
51
|
+
v ? u.value = u.value.map((S, C) => ({
|
|
52
|
+
...S,
|
|
53
|
+
isDefault: d === C
|
|
54
|
+
})) : u.value = u.value.map((S, C) => ({
|
|
55
|
+
...S,
|
|
56
|
+
isDefault: C === 0
|
|
57
|
+
}));
|
|
58
|
+
}, { breakpoints: z } = oe(), { FmSideSheet: se, FmTopSheet: ne } = Z;
|
|
59
|
+
return (v, d) => {
|
|
60
|
+
const S = V("FmTextField"), C = V("FmTimePicker"), _ = V("FmButton"), M = V("FmSwitch"), re = V("FmChip"), ie = V("FmCard");
|
|
61
|
+
return x(), $("div", null, [
|
|
62
|
+
(x(), L(me(e(z).lg || e(z).md ? e(se) : e(ne)), {
|
|
63
|
+
modelValue: l.value,
|
|
64
|
+
"onUpdate:modelValue": d[3] || (d[3] = (g) => l.value = g),
|
|
65
|
+
"fullscreen-size": "sm",
|
|
66
|
+
"dismiss-away": !0
|
|
67
|
+
}, {
|
|
68
|
+
"side-sheet-header": b(() => [
|
|
69
|
+
t("p", null, a(e(r)("report.setting.reportHour.addTitle")), 1)
|
|
70
|
+
]),
|
|
71
|
+
"top-sheet-header": b(() => [
|
|
72
|
+
t("div", xe, [
|
|
73
|
+
t("p", null, a(e(r)("report.setting.reportHour.addTitle")), 1)
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
"side-sheet-footer": b(() => [
|
|
77
|
+
t("div", be, [
|
|
78
|
+
s(_, {
|
|
79
|
+
label: "Save",
|
|
80
|
+
variant: "primary",
|
|
81
|
+
onClick: O
|
|
82
|
+
}),
|
|
83
|
+
s(_, {
|
|
84
|
+
label: "Cancel",
|
|
85
|
+
variant: "tertiary",
|
|
86
|
+
onClick: H
|
|
87
|
+
})
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
"top-sheet-footer": b(() => [
|
|
91
|
+
t("div", Ve, [
|
|
92
|
+
s(_, {
|
|
93
|
+
label: "Save",
|
|
94
|
+
variant: "primary",
|
|
95
|
+
onClick: O
|
|
96
|
+
}),
|
|
97
|
+
s(_, {
|
|
98
|
+
label: "Cancel",
|
|
99
|
+
variant: "tertiary",
|
|
100
|
+
onClick: H
|
|
101
|
+
})
|
|
102
|
+
])
|
|
103
|
+
]),
|
|
104
|
+
default: b(() => [
|
|
105
|
+
s(e(p), {
|
|
106
|
+
ref_key: "form",
|
|
107
|
+
ref: f,
|
|
108
|
+
class: U(["flex flex-col gap-2", `${e(z).sm || e(z).xs ? "px-24" : ""}`]),
|
|
109
|
+
onValidationSuccess: E
|
|
110
|
+
}, {
|
|
111
|
+
default: b(() => {
|
|
112
|
+
var g, D, k, J;
|
|
113
|
+
return [
|
|
114
|
+
s(S, {
|
|
115
|
+
modelValue: n.value.name,
|
|
116
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => n.value.name = y),
|
|
117
|
+
label: e(r)("report.setting.reportHour.hourSetName"),
|
|
118
|
+
placeholder: e(r)("report.setting.reportHour.namePlaceholder"),
|
|
119
|
+
rules: [(y) => y !== "" || e(r)("report.setting.reportHour.cannotBeEmpty")]
|
|
120
|
+
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
121
|
+
s(C, {
|
|
122
|
+
"model-value": e(A)().hour(((g = n.value.startTime) == null ? void 0 : g.hour) ?? 0).minute(((D = n.value.startTime) == null ? void 0 : D.minute) ?? 0).locale(e(F)()).format("HH:mm"),
|
|
123
|
+
class: "grow",
|
|
124
|
+
label: e(r)("report.setting.reportHour.startTime"),
|
|
125
|
+
"onUpdate:modelValue": d[1] || (d[1] = (y) => {
|
|
126
|
+
y && (n.value.startTime.hour = Number(y.split(":")[0]), n.value.startTime.minute = Number(y.split(":")[1]));
|
|
127
|
+
})
|
|
128
|
+
}, null, 8, ["model-value", "label"]),
|
|
129
|
+
s(C, {
|
|
130
|
+
"model-value": e(A)().hour(((k = n.value.endTime) == null ? void 0 : k.hour) ?? 0).minute(((J = n.value.endTime) == null ? void 0 : J.minute) ?? 0).format("HH:mm"),
|
|
131
|
+
class: "grow",
|
|
132
|
+
label: e(r)("report.setting.reportHour.closeTime"),
|
|
133
|
+
"onUpdate:modelValue": d[2] || (d[2] = (y) => {
|
|
134
|
+
y && (n.value.endTime.hour = Number(y.split(":")[0]), n.value.endTime.minute = Number(y.split(":")[1]));
|
|
135
|
+
})
|
|
136
|
+
}, null, 8, ["model-value", "label"])
|
|
137
|
+
];
|
|
138
|
+
}),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["class"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["modelValue"])),
|
|
144
|
+
t("div", Te, [
|
|
145
|
+
t("p", Ce, a(e(r)("report.setting.reportHour.title")), 1),
|
|
146
|
+
t("p", De, a(e(r)("report.setting.reportHour.description")), 1)
|
|
147
|
+
]),
|
|
148
|
+
t("div", $e, [
|
|
149
|
+
(x(!0), $(W, null, X(u.value, (g, D) => (x(), L(ie, {
|
|
150
|
+
key: `report_${D}`,
|
|
151
|
+
class: "flex p-4",
|
|
152
|
+
variant: "outlined"
|
|
153
|
+
}, {
|
|
154
|
+
default: b(() => [
|
|
155
|
+
t("div", Se, [
|
|
156
|
+
s(M, {
|
|
157
|
+
"model-value": g.isDefault,
|
|
158
|
+
"onUpdate:modelValue": (k) => ae(k, D)
|
|
159
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
160
|
+
t("div", null, [
|
|
161
|
+
t("p", ke, [
|
|
162
|
+
ue(a(g.name) + " ", 1),
|
|
163
|
+
Y(s(re, {
|
|
164
|
+
label: e(r)("report.common.default"),
|
|
165
|
+
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
166
|
+
compact: ""
|
|
167
|
+
}, null, 8, ["label"]), [
|
|
168
|
+
[ee, g.isDefault]
|
|
169
|
+
])
|
|
170
|
+
]),
|
|
171
|
+
t("p", Fe, a(e(B)(g.startTime, e(F)())) + " - " + a(e(B)(g.endTime, e(F)())), 1)
|
|
172
|
+
]),
|
|
173
|
+
d[4] || (d[4] = t("div", { class: "grow" }, null, -1)),
|
|
174
|
+
t("div", Re, [
|
|
175
|
+
s(_, {
|
|
176
|
+
icon: "edit",
|
|
177
|
+
variant: "tertiary",
|
|
178
|
+
onClick: (k) => c(D)
|
|
179
|
+
}, null, 8, ["onClick"]),
|
|
180
|
+
s(_, {
|
|
181
|
+
icon: "delete",
|
|
182
|
+
variant: "tertiary",
|
|
183
|
+
disabled: g.isDefault,
|
|
184
|
+
onClick: (k) => le(D)
|
|
185
|
+
}, null, 8, ["disabled", "onClick"])
|
|
186
|
+
])
|
|
187
|
+
])
|
|
188
|
+
]),
|
|
189
|
+
_: 2
|
|
190
|
+
}, 1024))), 128)),
|
|
191
|
+
t("div", null, [
|
|
192
|
+
s(_, {
|
|
193
|
+
label: e(r)("report.setting.reportHour.add"),
|
|
194
|
+
variant: "secondary",
|
|
195
|
+
icon: "add",
|
|
196
|
+
"icon-position": "prepend",
|
|
197
|
+
"border-color": e(Q).ColorPrimary,
|
|
198
|
+
"text-color": e(Q).ColorPrimary,
|
|
199
|
+
onClick: P
|
|
200
|
+
}, null, 8, ["label", "border-color", "text-color"])
|
|
201
|
+
])
|
|
202
|
+
])
|
|
203
|
+
]);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}), Oe = { class: "py-2 w-full gap-2 flex flex-col" }, He = { class: "fm-typo-en-title-sm-600" }, ze = /* @__PURE__ */ R({
|
|
207
|
+
__name: "CompareRangeSetting",
|
|
208
|
+
props: {
|
|
209
|
+
modelValue: {
|
|
210
|
+
required: !0,
|
|
211
|
+
default: G.PRECEDING_PERIOD
|
|
212
|
+
},
|
|
213
|
+
modelModifiers: {}
|
|
214
|
+
},
|
|
215
|
+
emits: ["update:modelValue"],
|
|
216
|
+
setup(T) {
|
|
217
|
+
const { t: l } = w(), i = I(T, "modelValue"), o = Object.values(G).map((p) => ({
|
|
218
|
+
label: l(`report.compare.${p}`),
|
|
219
|
+
value: p
|
|
220
|
+
})).slice(0, -1);
|
|
221
|
+
return (p, f) => (x(), $("div", Oe, [
|
|
222
|
+
t("p", He, a(e(l)("report.setting.summary.comparisonDateRange")), 1),
|
|
223
|
+
s(j, {
|
|
224
|
+
modelValue: i.value,
|
|
225
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => i.value = h),
|
|
226
|
+
label: e(l)("report.setting.summary.comparisonDateRange"),
|
|
227
|
+
items: e(o),
|
|
228
|
+
"disable-search": !0
|
|
229
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
230
|
+
]));
|
|
231
|
+
}
|
|
232
|
+
}), Ne = { class: "py-2 w-full gap-2 flex flex-col" }, Ue = { class: "fm-typo-en-title-sm-600" }, Be = /* @__PURE__ */ R({
|
|
233
|
+
__name: "DateRangeSetting",
|
|
234
|
+
props: {
|
|
235
|
+
modelValue: { required: !0 },
|
|
236
|
+
modelModifiers: {}
|
|
237
|
+
},
|
|
238
|
+
emits: ["update:modelValue"],
|
|
239
|
+
setup(T) {
|
|
240
|
+
const { t: l } = w(), i = I(T, "modelValue"), o = Object.values(fe).filter((p) => !["This month", "Last month"].includes(p)).map((p) => ({
|
|
241
|
+
label: l(`report.date.${p}`),
|
|
242
|
+
value: p
|
|
243
|
+
}));
|
|
244
|
+
return (p, f) => (x(), $("div", Ne, [
|
|
245
|
+
t("p", Ue, a(e(l)("report.setting.summary.defaultDateRange")), 1),
|
|
246
|
+
s(j, {
|
|
247
|
+
modelValue: i.value,
|
|
248
|
+
"onUpdate:modelValue": f[0] || (f[0] = (h) => i.value = h),
|
|
249
|
+
label: e(l)("report.setting.summary.defaultDateRange"),
|
|
250
|
+
items: e(o),
|
|
251
|
+
"disable-search": !0
|
|
252
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
253
|
+
]));
|
|
254
|
+
}
|
|
255
|
+
}), Ee = { class: "py-2 w-full gap-2 flex flex-col" }, Pe = { class: "fm-typo-en-title-sm-600" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = /* @__PURE__ */ R({
|
|
256
|
+
__name: "TimezoneSetting",
|
|
257
|
+
props: {
|
|
258
|
+
modelValue: {},
|
|
259
|
+
defaultTimezone: {}
|
|
260
|
+
},
|
|
261
|
+
emits: ["update:modelValue"],
|
|
262
|
+
setup(T, { emit: l }) {
|
|
263
|
+
const { t: i } = w(), o = T, p = l, f = q(
|
|
264
|
+
() => _e(
|
|
265
|
+
o.defaultTimezone,
|
|
266
|
+
(m) => i("report.setting.timezone.default", { timezone: m })
|
|
267
|
+
)
|
|
268
|
+
), h = q({
|
|
269
|
+
get: () => o.modelValue ?? K,
|
|
270
|
+
set: (m) => p("update:modelValue", m === K ? null : m)
|
|
271
|
+
});
|
|
272
|
+
return (m, n) => (x(), $("div", Ee, [
|
|
273
|
+
t("p", Pe, a(e(i)("report.setting.timezone.title")), 1),
|
|
274
|
+
t("p", Me, a(e(i)("report.setting.timezone.description")), 1),
|
|
275
|
+
s(j, {
|
|
276
|
+
modelValue: h.value,
|
|
277
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => h.value = u),
|
|
278
|
+
label: e(i)("report.setting.timezone.label"),
|
|
279
|
+
items: f.value
|
|
280
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
281
|
+
]));
|
|
282
|
+
}
|
|
283
|
+
}), Ie = { class: "w-2/4" }, je = { class: "fm-typo-en-title-sm-600" }, Je = { class: "text-fm-color-typo-secondary" }, qe = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "text-fm-color-typo-secondary" }, Ge = { class: "fm-typo-en-body-lg-600" }, Ke = { class: "text-fm-color-typo-secondary" }, Ze = { class: "fm-typo-en-body-lg-600" }, Qe = { class: "text-fm-color-typo-secondary" }, We = { class: "fm-typo-en-body-lg-600" }, it = /* @__PURE__ */ R({
|
|
284
|
+
__name: "Setting",
|
|
285
|
+
setup(T) {
|
|
286
|
+
const { breakpoints: l } = oe(), i = ve(), { defaultDateSetting: o, timezone: p, defaultTimezone: f } = he(i), h = te(), { t: m } = w();
|
|
287
|
+
de(
|
|
288
|
+
[
|
|
289
|
+
() => o.value.defaultCompareType,
|
|
290
|
+
() => o.value.defaultDateRange,
|
|
291
|
+
() => o.value.timeOptions
|
|
292
|
+
],
|
|
293
|
+
() => {
|
|
294
|
+
o.value.timeOptions.length === 0 ? h.open({ message: m("report.setting.reportHour.cannotBeEmptyError"), type: "error" }) : i.createOrUpdateBusinessSetting(o.value);
|
|
295
|
+
},
|
|
296
|
+
{ deep: !0 }
|
|
297
|
+
);
|
|
298
|
+
function n(u) {
|
|
299
|
+
o.value.timezone = u, i.createOrUpdateBusinessSetting(o.value);
|
|
300
|
+
}
|
|
301
|
+
return (u, r) => {
|
|
302
|
+
const E = V("FmPageHead"), O = V("FmMenuDivider"), H = V("FmCard");
|
|
303
|
+
return x(), L(ce, null, {
|
|
304
|
+
default: b(() => [
|
|
305
|
+
s(E, {
|
|
306
|
+
title: e(m)("report.view.setting.title")
|
|
307
|
+
}, null, 8, ["title"]),
|
|
308
|
+
t("div", {
|
|
309
|
+
class: U(`${e(l).sm || e(l).xs ? "pb-20" : ""} overflow-y-auto flex`),
|
|
310
|
+
style: pe({ height: `calc(100% - ${e(l).sm || e(l).xs ? 60 : 72}px)` })
|
|
311
|
+
}, [
|
|
312
|
+
t("div", {
|
|
313
|
+
class: U(`${e(l).lg || e(l).md ? "px-24" : "px-3"} w-full flex flex-col gap-[40px]`)
|
|
314
|
+
}, [
|
|
315
|
+
s(we, {
|
|
316
|
+
modelValue: e(o).timeOptions,
|
|
317
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => e(o).timeOptions = c)
|
|
318
|
+
}, null, 8, ["modelValue"]),
|
|
319
|
+
s(Be, {
|
|
320
|
+
modelValue: e(o).defaultDateRange,
|
|
321
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => e(o).defaultDateRange = c)
|
|
322
|
+
}, null, 8, ["modelValue"]),
|
|
323
|
+
s(ze, {
|
|
324
|
+
modelValue: e(o).defaultCompareType,
|
|
325
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => e(o).defaultCompareType = c)
|
|
326
|
+
}, null, 8, ["modelValue"]),
|
|
327
|
+
s(Le, {
|
|
328
|
+
"model-value": e(o).timezone,
|
|
329
|
+
"default-timezone": e(f),
|
|
330
|
+
"onUpdate:modelValue": n
|
|
331
|
+
}, null, 8, ["model-value", "default-timezone"])
|
|
332
|
+
], 2),
|
|
333
|
+
Y(t("div", Ie, [
|
|
334
|
+
s(H, {
|
|
335
|
+
variant: "outlined",
|
|
336
|
+
class: U(["flex flex-col gap-3", `${e(l).lg || e(l).md ? "mr-5 p-6" : ""}`])
|
|
337
|
+
}, {
|
|
338
|
+
default: b(() => [
|
|
339
|
+
t("p", je, a(e(m)("report.setting.summary.title")), 1),
|
|
340
|
+
s(O),
|
|
341
|
+
t("p", Je, a(e(m)("report.setting.summary.reportHour")), 1),
|
|
342
|
+
(x(!0), $(W, null, X(e(o).timeOptions, (c, P) => (x(), $("div", { key: P }, [
|
|
343
|
+
t("p", qe, a(c.name) + a(c.isDefault ? `(${e(m)("report.setting.reportHour.default")})` : "") + " " + a(e(B)(c.startTime, e(F)())) + " " + a(e(B)(c.endTime, e(F)())) + " " + a(e(ge)(c.startTime, c.endTime)), 1)
|
|
344
|
+
]))), 128)),
|
|
345
|
+
t("p", Ae, a(e(m)("report.setting.summary.defaultDateRange")), 1),
|
|
346
|
+
t("p", Ge, a(e(m)(`report.date.${e(o).defaultDateRange}`)), 1),
|
|
347
|
+
t("p", Ke, a(e(m)("report.setting.summary.comparisonDateRange")), 1),
|
|
348
|
+
t("p", Ze, a(e(m)(`report.compare.${e(o).defaultCompareType}`)), 1),
|
|
349
|
+
t("p", Qe, a(e(m)("report.setting.summary.timezone")), 1),
|
|
350
|
+
t("p", We, a(e(p)), 1)
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
}, 8, ["class"])
|
|
354
|
+
], 512), [
|
|
355
|
+
[ee, e(l).lg || e(l).md]
|
|
356
|
+
])
|
|
357
|
+
], 6)
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
export {
|
|
365
|
+
it as default
|
|
366
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as u, resolveComponent as v, createElementBlock as A, openBlock as _, renderSlot as Ve, createVNode as n, withCtx as s, createCommentVNode as q, createElementVNode as i, toDisplayString as d, ref as b, h as p, onMounted as Le, createBlock as R, unref as l, normalizeStyle as Se, normalizeClass as C, withDirectives as ae, Fragment as $e, renderList as Ie, withModifiers as re, vShow as ne } from "vue";
|
|
2
2
|
import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
3
3
|
import { u as me, a as Pe } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
4
|
-
import { _ as ze } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as ze } from "./Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js";
|
|
5
5
|
import { u as De } from "./message-dialog-UoMWOnil.js";
|
|
6
|
-
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
7
7
|
import { r as se } from "./i18n-CI_sQ5d_.js";
|
|
8
8
|
import { useBreakpoints as Be, useSnackbar as Me, components as Ee, FmButtonColorThemeVariant as Ke } from "@feedmepos/ui-library";
|
|
9
9
|
import { useRouter as Ue, useRoute as He } from "vue-router";
|
|
10
10
|
import { storeToRefs as Oe } from "pinia";
|
|
11
|
-
import { h as je } from "./app-
|
|
11
|
+
import { h as je } from "./app-FVupSSYM.js";
|
|
12
12
|
const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Qe = /* @__PURE__ */ ie({
|
|
13
13
|
__name: "NoTemplate",
|
|
14
14
|
props: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as de, mergeModels as ve, useModel as ge, computed as C, ref as oe, resolveComponent as A, createElementBlock as W, openBlock as m, createVNode as u, createElementVNode as y, unref as l, withCtx as Z, toDisplayString as K, Fragment as me, renderList as $e, withModifiers as he, createTextVNode as We, watch as xe, createCommentVNode as P, createBlock as z, renderSlot as kl, onBeforeUnmount as ul, resolveDynamicComponent as Fl, normalizeClass as Fe, withDirectives as ke, vShow as Te, onMounted as Vl, withKeys as fl, vModelText as El, normalizeStyle as il, isRef as Wl } from "vue";
|
|
2
2
|
import { useRoute as Xl, useRouter as Hl } from "vue-router";
|
|
3
|
-
import { u as dl, f as ml, h as Ee, F as Ne, d as Xe, S as sl, a as ql, W as Gl, T as Yl, c as Jl, b as gl } from "./TransitionFade-
|
|
4
|
-
import { W as J, a as Sl, t as He, D as Je, S as yl, C as Kl, u as _l, P as bl, F as Pe, e as Le, b as Ql, c as Zl, j as et } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as dl, f as ml, h as Ee, F as Ne, d as Xe, S as sl, a as ql, W as Gl, T as Yl, c as Jl, b as gl } from "./TransitionFade-CtE41B0o.js";
|
|
4
|
+
import { W as J, a as Sl, t as He, D as Je, S as yl, C as Kl, u as _l, P as bl, F as Pe, e as Le, b as Ql, c as Zl, j as et } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
5
5
|
import { storeToRefs as Re } from "pinia";
|
|
6
6
|
import { u as Tl } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { useSnackbar as lt, useBreakpoints as $l, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
|
|
8
|
-
import { h as tt, g as Ve, R as hl, d as ot, e as at, j as nt, L as Ae, k as ol, S as re, l as fe, m as al, n as wl, a as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { h as tt, g as Ve, R as hl, d as ot, e as at, j as nt, L as Ae, k as ol, S as re, l as fe, m as al, n as wl, a as Dl } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js";
|
|
9
9
|
import { a as be, _ as Ul } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
10
|
import { u as pe, _ as Bl } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
11
11
|
import { r as ue } from "./i18n-CI_sQ5d_.js";
|
|
12
|
-
import { a as je, d as Ke } from "./DateRangeSelect-
|
|
13
|
-
import { a as it, d as Ye } from "./app-
|
|
12
|
+
import { a as je, d as Ke } from "./DateRangeSelect-UoFskU18.js";
|
|
13
|
+
import { a as it, d as Ye } from "./app-FVupSSYM.js";
|
|
14
14
|
const ll = [
|
|
15
15
|
{
|
|
16
16
|
type: J.Circular,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Q, reactive as G, resolveComponent as g, createElementBlock as d, openBlock as i, Fragment as v, renderList as L, createBlock as $, createCommentVNode as a, normalizeStyle as m, normalizeClass as u, withCtx as S, createVNode as p, createElementVNode as M, toDisplayString as w, mergeProps as R, createSlots as X, withDirectives as Y, vShow as Z } from "vue";
|
|
2
|
-
import { _ as ee, a as P, c as te, b as re, f as oe, t as ne } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { F as z, W as ie } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as ee, a as P, c as te, b as re, f as oe, t as ne } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js";
|
|
3
|
+
import { F as z, W as ie } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
4
4
|
import { useBreakpoints as de } from "@feedmepos/ui-library";
|
|
5
5
|
const se = {
|
|
6
6
|
key: 0,
|
|
@@ -3,13 +3,13 @@ import { u as Lt, a as fo, _ as an } from "./_plugin-vue_export-helper-onplcgja.
|
|
|
3
3
|
import { useCoreStore as po } from "@feedmepos/mf-common";
|
|
4
4
|
import { storeToRefs as In } from "pinia";
|
|
5
5
|
import { useRoute as mo } from "vue-router";
|
|
6
|
-
import { W as xe, Q as ho, I as rt, v as On, w as Sn, d as Ge, g as go, t as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-
|
|
8
|
-
import { u as yo, F as Eo, r as _o, d as Ut } from "./app-
|
|
6
|
+
import { W as xe, Q as ho, I as rt, v as On, w as Sn, d as Ge, g as go, t as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js";
|
|
7
|
+
import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect-UoFskU18.js";
|
|
8
|
+
import { u as yo, F as Eo, r as _o, d as Ut } from "./app-FVupSSYM.js";
|
|
9
9
|
import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
10
|
import { r as fn } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
import { useSnackbar as To } from "@feedmepos/ui-library";
|
|
12
|
-
import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js";
|
|
13
13
|
const wo = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|