@feedmepos/mf-report 5.24.2 → 5.24.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.
Files changed (30) hide show
  1. package/dist/{App-mqLN8UFM.js → App-CH45KtMi.js} +4 -4
  2. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-C3gJtMm-.js +380 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-BzVweuOL.js → Default.vue_vue_type_script_setup_true_lang-Duu-LyqL.js} +1 -1
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-CtV3BEJO.js +4661 -0
  5. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-C731Br2T.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BDXjO_Sp.js} +8299 -7427
  6. package/dist/{InsightView-ADisfb4R.js → InsightView-BWVD5IIN.js} +5 -5
  7. package/dist/{Integration-CDqNMoR0.js → Integration-BVN352PX.js} +22 -22
  8. package/dist/{Integrations-DQIv4LVI.js → Integrations-BUojqghs.js} +13 -12
  9. package/dist/{Layout-DMSB8Kfu.js → Layout-B5kumbJ0.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-2gpx86l4.js → MenuTab.vue_vue_type_script_setup_true_lang-D1-Jlcbz.js} +26 -27
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DHUUdyp2.js → NavigationTab.vue_vue_type_script_setup_true_lang-DDbNobqI.js} +6342 -6322
  12. package/dist/{OverviewView-CRg2cFuh.js → OverviewView-DJOcIDmH.js} +5 -5
  13. package/dist/{Report-BwqcLICQ.js → Report-CuZpyzTW.js} +4 -4
  14. package/dist/{ReportEditor-DGY3SxpW.js → ReportEditor-B3haFTU6.js} +571 -573
  15. package/dist/{ReportView-BIY-5Lbi.js → ReportView-4JWtTu3y.js} +16 -17
  16. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js +143 -0
  17. package/dist/{Setting-CpfDtK_s.js → Setting-Dl8HsHao.js} +4 -4
  18. package/dist/{TileEditor-D5jwVXhB.js → TileEditor-1hvqccL1.js} +325 -323
  19. package/dist/{TransitionFade-CC0PpKBo.js → TransitionFade-9A8VZ8Fm.js} +18 -18
  20. package/dist/{app-CILH73ZA.js → app-CBHDMsDR.js} +2229 -2311
  21. package/dist/app.js +1 -1
  22. package/dist/assets/{formatChartData.worker-C3U_CcDO.js → formatChartData.worker-DaLXwMTs.js} +2 -2
  23. package/dist/assets/{processTableData.worker-D_oiIvNW.js → processTableData.worker-Be0ZD94L.js} +2 -2
  24. package/dist/style.css +1 -1
  25. package/dist/{useRestaurantPermission-UJ4KkZq1.js → useRestaurantPermission-CGonMXA-.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-BYxYhdsf.js +0 -286
  28. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-LZyZxm7z.js +0 -5467
  29. package/dist/NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js +0 -38
  30. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js +0 -110
@@ -1,22 +1,21 @@
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-2gpx86l4.js";
3
- import { _ as ie } from "./FilterSelector.vue_vue_type_script_setup_true_lang-LZyZxm7z.js";
2
+ import { _ as le } from "./MenuTab.vue_vue_type_script_setup_true_lang-D1-Jlcbz.js";
3
+ import { _ as ie } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CtV3BEJO.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-BzVweuOL.js";
6
- import { u as me, s as de } from "./BaseDialog.vue_vue_type_script_setup_true_lang-C731Br2T.js";
5
+ import { _ as pe } from "./Default.vue_vue_type_script_setup_true_lang-Duu-LyqL.js";
6
+ import { u as me, s as de } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BDXjO_Sp.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-DHUUdyp2.js";
9
- import { _ as be } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
10
- import { useSnackbar as _e, useBreakpoints as we } from "@feedmepos/ui-library";
11
- import { u as Se, a as ke } from "./vue-i18n-DVWuTfed.js";
12
- import { u as xe } from "./message-dialog-UoMWOnil.js";
13
- import { e as he, g as Ce } from "./app-CILH73ZA.js";
14
- import { r as Re } from "./i18n-CI_sQ5d_.js";
15
- import { _ as Pe } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
8
+ import { b as ve, c as fe, u as ge, g as ye } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DDbNobqI.js";
9
+ import { _ as be, a as _e } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
10
+ import { useSnackbar as we, useBreakpoints as Se } from "@feedmepos/ui-library";
11
+ import { u as ke, a as xe } from "./vue-i18n-DVWuTfed.js";
12
+ import { u as he } from "./message-dialog-UoMWOnil.js";
13
+ import { e as Ce, g as Re } from "./app-CBHDMsDR.js";
14
+ import { r as Pe } from "./i18n-CI_sQ5d_.js";
16
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({
17
16
  __name: "ReportView",
18
17
  setup($e) {
19
- const { t: e, te: B } = Se(), g = ue(), v = ce(), l = _e(), { promptMessage: q } = xe(), p = me(), x = ve(), { promptLoader: y } = ke(), { breakpoints: i } = we(), { isOpenAccountingDialog: F } = f(fe()), { isOpenScheduleDialog: h } = f(ge()), { disabled: C } = f(he()), R = oe(null), P = c(
18
+ const { t: e, te: B } = ke(), g = ue(), v = ce(), l = we(), { promptMessage: q } = he(), p = me(), x = ve(), { promptLoader: y } = xe(), { breakpoints: i } = Se(), { isOpenAccountingDialog: F } = f(fe()), { isOpenScheduleDialog: h } = f(ge()), { disabled: C } = f(Ce()), R = oe(null), P = c(
20
19
  () => {
21
20
  var r;
22
21
  return ((r = R.value) == null ? void 0 : r.reportId) === u.value;
@@ -33,7 +32,7 @@ const De = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
33
32
  editingReport: U,
34
33
  canCreateCustomReport: H,
35
34
  customReportQuota: D
36
- } = f(p), { canUpdate: M, canDuplicate: Y } = Ce();
35
+ } = f(p), { canUpdate: M, canDuplicate: Y } = Re();
37
36
  te(
38
37
  () => u.value,
39
38
  async () => R.value = await ye(u.value),
@@ -200,7 +199,7 @@ const De = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
200
199
  ], !C.value && P.value && o.push({ label: e("report.common.accountingExport"), value: "export", isPrimary: !1 }), o = o.filter((m) => m.value !== "edit")), o;
201
200
  }), b = c(() => {
202
201
  var r;
203
- return Re(e, B, (r = t == null ? void 0 : t.value) == null ? void 0 : r.name, "other");
202
+ return Pe(e, B, (r = t == null ? void 0 : t.value) == null ? void 0 : r.name, "other");
204
203
  });
205
204
  return (r, o) => {
206
205
  const n = J("FmTooltip"), m = J("FmPageHead");
@@ -259,7 +258,7 @@ const De = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-h
259
258
  });
260
259
  };
261
260
  }
262
- }), Ye = /* @__PURE__ */ Pe(Ie, [["__scopeId", "data-v-b926988a"]]);
261
+ }), Me = /* @__PURE__ */ _e(Ie, [["__scopeId", "data-v-75e63bb5"]]);
263
262
  export {
264
- Ye as default
263
+ Me as default
265
264
  };
@@ -0,0 +1,143 @@
1
+ import { defineComponent as S, computed as p, resolveComponent as r, createElementBlock as y, openBlock as f, renderSlot as N, createVNode as d, withCtx as i, createCommentVNode as O, createElementVNode as c, toDisplayString as _, mergeModels as j, useModel as A, ref as F, createBlock as x, normalizeStyle as B, withDirectives as P, unref as z, vShow as L, Fragment as R, renderList as U, normalizeClass as E } from "vue";
2
+ import { u as w } from "./vue-i18n-DVWuTfed.js";
3
+ const Z = (s, n) => {
4
+ const e = s.__vccOpts || s;
5
+ for (const [t, m] of n)
6
+ e[t] = m;
7
+ return e;
8
+ }, H = { class: "flex flex-col h-full" }, q = ["src"], G = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, J = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, ee = /* @__PURE__ */ S({
9
+ __name: "NoData",
10
+ props: {
11
+ title: { default: "report.messages.noData" },
12
+ subTitle: { default: "report.messages.adjustFiltersOrSelectADifferentTimeRange" },
13
+ svgPath: { default: "" }
14
+ },
15
+ setup(s) {
16
+ const { t: n } = w(), e = s, t = p(() => e.title === "report.messages.noData" ? n("report.messages.noData") : e.title), m = p(() => e.subTitle === "report.messages.adjustFiltersOrSelectADifferentTimeRange" ? n("report.messages.adjustFiltersOrSelectADifferentTimeRange") : e.subTitle);
17
+ return (l, v) => {
18
+ const h = r("FmCard");
19
+ return f(), y("div", H, [
20
+ N(l.$slots, "menu"),
21
+ d(h, {
22
+ class: "p-24 h-full flex flex-col gap-2 items-center justify-center",
23
+ variant: "flat"
24
+ }, {
25
+ default: i(() => [
26
+ l.svgPath ? (f(), y("img", {
27
+ key: 0,
28
+ src: l.svgPath,
29
+ alt: "No data illustration",
30
+ class: "mb-4 w-80 h-80"
31
+ }, null, 8, q)) : O("", !0),
32
+ c("p", G, _(t.value), 1),
33
+ c("p", J, _(m.value), 1)
34
+ ]),
35
+ _: 1
36
+ })
37
+ ]);
38
+ };
39
+ }
40
+ }), K = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary" }, Q = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, W = { class: "sticky top-0" }, te = /* @__PURE__ */ S({
41
+ __name: "SelectComponent",
42
+ props: /* @__PURE__ */ j({
43
+ items: {
44
+ type: Array,
45
+ default: () => []
46
+ },
47
+ placeHolder: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ label: {
52
+ type: String,
53
+ default: ""
54
+ },
55
+ disableSearch: {
56
+ type: Boolean,
57
+ default: !1
58
+ }
59
+ }, {
60
+ modelValue: { required: !0 },
61
+ modelModifiers: {}
62
+ }),
63
+ emits: ["update:modelValue"],
64
+ setup(s) {
65
+ const { t: n } = w(), e = A(s, "modelValue"), t = s, m = (o) => {
66
+ e.value = o.value, setTimeout(() => {
67
+ l.value = !1;
68
+ }, 0);
69
+ }, l = F(!1), v = F(""), h = p(
70
+ () => t.items.filter(
71
+ (o) => o.label.toLowerCase().indexOf(v.value.toLowerCase()) !== -1
72
+ )
73
+ ), C = p(
74
+ () => {
75
+ var o;
76
+ return ((o = t.items.find((u) => u.value === e.value)) == null ? void 0 : o.label) ?? n("report.common.select");
77
+ }
78
+ ), V = p(() => t.items.filter((o) => o.value === e.value));
79
+ return (o, u) => {
80
+ const D = r("FmIcon"), M = r("FmField"), k = r("FmSearch"), T = r("FmMenuDivider"), I = r("FmMenuItem"), $ = r("FmMenu");
81
+ return f(), x($, {
82
+ trigger: "click",
83
+ shift: !0,
84
+ "max-height": 300,
85
+ width: 200,
86
+ onMenuChanged: u[1] || (u[1] = (g) => {
87
+ l.value = g;
88
+ })
89
+ }, {
90
+ "menu-button": i(() => [
91
+ c("p", K, _(t.label), 1),
92
+ d(M, {
93
+ class: E(["cursor-pointer", `${l.value ? "border-fm-color-primary" : ""}`]),
94
+ focused: l.value
95
+ }, {
96
+ append: i(() => [
97
+ d(D, {
98
+ color: "black",
99
+ name: l.value ? "expand_less" : "expand_more",
100
+ size: "md"
101
+ }, null, 8, ["name"])
102
+ ]),
103
+ default: i(() => [
104
+ c("div", Q, _(C.value), 1)
105
+ ]),
106
+ _: 1
107
+ }, 8, ["class", "focused"])
108
+ ]),
109
+ "menu-wrapper": i(({ maxHeight: g }) => [
110
+ c("div", {
111
+ style: B({ maxHeight: `${g}px` }),
112
+ class: "bg-fm-color-neutral-white overflow-y-auto overflow-x-hidden rounded-md shadow-light-300 w-[250px]"
113
+ }, [
114
+ P(c("div", W, [
115
+ d(k, {
116
+ modelValue: v.value,
117
+ "onUpdate:modelValue": u[0] || (u[0] = (a) => v.value = a),
118
+ placeholder: z(n)("report.select.filterPlaceholder")
119
+ }, null, 8, ["modelValue", "placeholder"]),
120
+ d(T)
121
+ ], 512), [
122
+ [L, !t.disableSearch]
123
+ ]),
124
+ (f(!0), y(R, null, U(h.value, (a) => (f(), x(I, {
125
+ key: a.value,
126
+ label: a.label,
127
+ sublabel: a.sublabel,
128
+ "model-value": V.value.some((b) => b.value === a.value),
129
+ value: a.value,
130
+ "onUpdate:modelValue": (b) => m(a)
131
+ }, null, 8, ["label", "sublabel", "model-value", "value", "onUpdate:modelValue"]))), 128))
132
+ ], 4)
133
+ ]),
134
+ _: 1
135
+ });
136
+ };
137
+ }
138
+ });
139
+ export {
140
+ ee as _,
141
+ Z as a,
142
+ te as b
143
+ };
@@ -1,12 +1,12 @@
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-BzVweuOL.js";
3
- import { d as L, C as q, D as pe, a as ce } from "./app-CILH73ZA.js";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-Duu-LyqL.js";
3
+ import { d as L, C as q, D as pe, a as ce } from "./app-CBHDMsDR.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, j as fe } from "./BaseDialog.vue_vue_type_script_setup_true_lang-C731Br2T.js";
5
+ import { t as N, o as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BDXjO_Sp.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";
9
- import { a as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
9
+ import { b as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js";
10
10
  import { storeToRefs as _e } from "pinia";
11
11
  const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, De = { class: "flex items-center w-full gap-3" }, Te = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
12
12
  __name: "ReportHour",