@feedmepos/mf-report 5.22.25 → 5.22.26

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 (34) hide show
  1. package/dist/App-3HFmWp7u.js +298 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js → BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js} +1128 -1292
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js} +5 -5
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-C55xh4bx.js → Default.vue_vue_type_script_setup_true_lang-BUIcdcLn.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-D2K2ghV_.js → FilterSelector.vue_vue_type_script_setup_true_lang-jDZZAdUQ.js} +19 -19
  6. package/dist/InsightView-B8Wrd2SX.js +664 -0
  7. package/dist/{Integration-CAsNSCR4.js → Integration-D_jZxPMn.js} +40 -40
  8. package/dist/{Integrations-CIeyn0dF.js → Integrations-B1igzxZG.js} +14 -13
  9. package/dist/Layout-Dt6yE5XC.js +19 -0
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CBY5Meyc.js → MenuTab.vue_vue_type_script_setup_true_lang-Dtv5xe0O.js} +13 -13
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js → NavigationTab.vue_vue_type_script_setup_true_lang-lfncwvdP.js} +24 -24
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
  13. package/dist/OverviewView-hz2kZmm7.js +62 -0
  14. package/dist/{Report-CMYhrVbI.js → Report-nrJWlkN-.js} +15 -14
  15. package/dist/{ReportEditor-BU6Hq9yx.js → ReportEditor-YV-2UXDU.js} +24 -23
  16. package/dist/{ReportView-8F14F_jz.js → ReportView-CM1PfMk6.js} +18 -17
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
  18. package/dist/Setting-B1Xrl09c.js +326 -0
  19. package/dist/{TileEditor-BRHXTLEK.js → TileEditor-CF0aNTKV.js} +131 -131
  20. package/dist/{TransitionFade-DbsPAg2T.js → TransitionFade-D2bsz2iV.js} +12 -12
  21. package/dist/app-C2vt2B-i.js +11540 -0
  22. package/dist/app.js +1 -1
  23. package/dist/useRestaurantPermission-DRvKGVtO.js +65 -0
  24. package/dist/vue-i18n-DVWuTfed.js +2727 -0
  25. package/package.json +1 -1
  26. package/dist/App-C5_KJN8G.js +0 -294
  27. package/dist/InsightView-BCZKzqRM.js +0 -670
  28. package/dist/Layout-BFvrEBq5.js +0 -29
  29. package/dist/NoPermission.vue_vue_type_script_setup_true_lang-obph7BUZ.js +0 -25
  30. package/dist/OverviewView-gvsp6532.js +0 -63
  31. package/dist/Setting-BtWmZpk0.js +0 -328
  32. package/dist/app-WBPZfxon.js +0 -6658
  33. package/dist/useRestaurantPermission-BtPLwoC9.js +0 -64
  34. package/dist/vue-i18n-CvU0g5WR.js +0 -7253
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as x, createElementBlock as U, unref as f, createVNode as O } from "vue";
2
- import { u as W, b as q, S as G, C as H } from "./vue-i18n-CvU0g5WR.js";
3
- import { d as r } from "./app-WBPZfxon.js";
2
+ import { d as r, a as W, Y as q, C as G } from "./app-C2vt2B-i.js";
4
3
  import { detectLocale as E } from "@feedmepos/mf-common";
4
+ import { u as H } from "./vue-i18n-DVWuTfed.js";
5
5
  import { storeToRefs as K } from "pinia";
6
6
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
7
7
  function le(e, t = 100) {
@@ -148,7 +148,7 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
148
148
  },
149
149
  datePredefinedRanges: {
150
150
  type: Array,
151
- default: () => G()
151
+ default: () => q()
152
152
  },
153
153
  label: {
154
154
  type: String,
@@ -163,7 +163,7 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
163
163
  }, {
164
164
  compareType: {
165
165
  type: String,
166
- default: H.PRECEDING_PERIOD
166
+ default: G.PRECEDING_PERIOD
167
167
  },
168
168
  compareTypeModifiers: {},
169
169
  dateRange: {
@@ -186,7 +186,7 @@ const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
186
186
  emits: /* @__PURE__ */ k(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
187
187
  setup(e, { emit: t }) {
188
188
  var z, I, $, w;
189
- const { t: n, locale: a } = W(), o = t, l = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = K(q()), s = C({
189
+ const { t: n, locale: a } = H(), o = t, l = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = K(W()), s = C({
190
190
  startDate: m.value.startDate ? (z = r(m.value.startDate)) == null ? void 0 : z.tz(i.value).format(Y) : null,
191
191
  endDate: m.value.endDate ? (I = r(m.value.endDate)) == null ? void 0 : I.tz(i.value).format(Y) : null
192
192
  }), D = C({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DsOmTqFV.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-lfncwvdP.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, e as w } from "./vue-i18n-CvU0g5WR.js";
5
+ import { u as q, a as w } from "./vue-i18n-DVWuTfed.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,15 +1,15 @@
1
1
  import { computed as v, defineComponent as at, ref as L, onMounted as it, onBeforeUnmount as da, resolveComponent as ve, createBlock as we, openBlock as Y, Transition as Ka, withCtx as $e, createElementBlock as ge, createCommentVNode as Le, createElementVNode as J, unref as r, normalizeStyle as Ze, withModifiers as Tt, toDisplayString as Ge, createVNode as fe, Fragment as Qe, renderList as Lt, normalizeClass as Ye, watch as Re, nextTick as tt, mergeModels as gt, useModel as ct, renderSlot as yt, h as on, createSlots as qa, resolveDynamicComponent as fa, toRaw as Ya, markRaw as Xa, createTextVNode as bn, onUnmounted as ha, withDirectives as Ga, vShow as ja } from "vue";
2
- import { W as se, f as Ht, g as Ja, S as St, v as Xt, h as Za, i as vn, j as ma, q as pa, R as Ft, k as Qa, D as mt, d as Je, C as st, a as eo, b as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CD7LSCLM.js";
3
- import { u as wt, b as Gt, a as Bn, h as ao } from "./vue-i18n-CvU0g5WR.js";
4
- import { d as Cn, _ as oo, a as ro, b as lo, c as so } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BP474uxj.js";
2
+ import { W as se, d as Ht, e as Ja, S as St, v as Xt, f as Za, g as vn, h as ma, q as pa, R as Ft, i as Qa, D as mt, b as Je, C as st, u as eo, a as to, _ as no } from "./BaseDialog.vue_vue_type_script_setup_true_lang-B2CdeeFj.js";
3
+ import { k as ao, z as oo, l as ro, m as lo, a as Gt, u as Bn, d as Bt, i as so } from "./app-C2vt2B-i.js";
4
+ import { d as Cn, _ as io, a as uo, b as co, c as fo } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DlpbyWWd.js";
5
5
  import { storeToRefs as vt, defineStore as va } from "pinia";
6
6
  import { C as wn } from "./chart-DDDh8zNk.js";
7
- import { detectLocale as io } from "@feedmepos/mf-common";
8
- import { useBreakpoints as fn, useSnackbar as Vn, components as uo } from "@feedmepos/ui-library";
9
- import { t as co, z as fo, a as ho, e as mo, d as Bt } from "./app-WBPZfxon.js";
10
- import { _ as ga } from "./SelectComponent.vue_vue_type_script_setup_true_lang-SWjNNZ_J.js";
7
+ import { detectLocale as ho } from "@feedmepos/mf-common";
8
+ import { useBreakpoints as fn, useSnackbar as Vn, components as mo } from "@feedmepos/ui-library";
9
+ import { u as wt } from "./vue-i18n-DVWuTfed.js";
10
+ import { _ as ga } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js";
11
11
  import { r as _t } from "./i18n-CI_sQ5d_.js";
12
- import { _ as xn } from "./NoData.vue_vue_type_script_setup_true_lang-BcdcgnzD.js";
12
+ import { _ as xn } from "./NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js";
13
13
  var Sn = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Sn || {}), bt = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(bt || {}), _n = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(_n || {}), kn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(kn || {}), Tn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Tn || {}), Ln = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Dn || {}), Ke = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Ke || {});
14
14
  se.Circular, se.Table, se.BarChart, se.LineChart, se.StackBarChart, se.ClusteredStackBarChart, se.StackLineChart, se.Scorecard, se.Spacer;
15
15
  const po = [
@@ -398,13 +398,13 @@ function Mo() {
398
398
  };
399
399
  }
400
400
  const qt = {
401
- "en-US": mo.report.widget.comparisonTooltip.viewBreakdown,
402
- "zh-CN": ho.report.widget.comparisonTooltip.viewBreakdown,
403
- "zh-Hant": fo.report.widget.comparisonTooltip.viewBreakdown,
404
- "th-TH": co.report.widget.comparisonTooltip.viewBreakdown
401
+ "en-US": lo.report.widget.comparisonTooltip.viewBreakdown,
402
+ "zh-CN": ro.report.widget.comparisonTooltip.viewBreakdown,
403
+ "zh-Hant": oo.report.widget.comparisonTooltip.viewBreakdown,
404
+ "th-TH": ao.report.widget.comparisonTooltip.viewBreakdown
405
405
  };
406
406
  function xa() {
407
- const e = io();
407
+ const e = ho();
408
408
  return e in qt ? qt[e] : e.startsWith("zh") ? qt["zh-CN"] : e.startsWith("th") ? qt["th-TH"] : qt["en-US"];
409
409
  }
410
410
  function Fo(e) {
@@ -3984,7 +3984,7 @@ const dl = { class: "widget-content" }, fl = /* @__PURE__ */ at({
3984
3984
  }),
3985
3985
  emits: ["update:modelValue"],
3986
3986
  setup(e) {
3987
- const { t: n } = wt(), { FmForm: t } = uo, a = e, l = L(), s = ct(e, "modelValue"), i = L(!0), h = L(!1), c = Vn(), { selectedLocationIds: _, dateRange: B, timeRange: H } = vt(Gt()), T = L(vn.PORTRAIT);
3987
+ const { t: n } = wt(), { FmForm: t } = mo, a = e, l = L(), s = ct(e, "modelValue"), i = L(!0), h = L(!1), c = Vn(), { selectedLocationIds: _, dateRange: B, timeRange: H } = vt(Gt()), T = L(vn.PORTRAIT);
3988
3988
  function C() {
3989
3989
  var F;
3990
3990
  (F = l.value) == null || F.validateInputs();
@@ -5238,11 +5238,11 @@ const wl = va(Cl, () => {
5238
5238
  }
5239
5239
  function ee(u) {
5240
5240
  var Xe, Ne, je, Fe, de;
5241
- const E = ao(u.filter), Q = u.options.length > 0 ? "(0 selected)" : "";
5241
+ const E = so(u.filter), Q = u.options.length > 0 ? "(0 selected)" : "";
5242
5242
  if (u.type === mt.Timestamp && !D(u.filter)) {
5243
5243
  const W = ((Xe = u.filter.values) == null ? void 0 : Xe.length) === 2;
5244
5244
  if (u.filter.option === Je.DateTime)
5245
- return { preview: W ? `${E} is between ${lo({
5245
+ return { preview: W ? `${E} is between ${co({
5246
5246
  startDate: ((Ne = u.filter.values) == null ? void 0 : Ne[0]) || null,
5247
5247
  endDate: ((je = u.filter.values) == null ? void 0 : je[1]) || null,
5248
5248
  locale: t.value,
@@ -5250,7 +5250,7 @@ const wl = va(Cl, () => {
5250
5250
  })}` : E, suffix: "" };
5251
5251
  if (u.filter.option === Je.TimeOfDay) {
5252
5252
  const Se = (Fe = u.filter.values) != null && Fe[0] ? Bt(u.filter.values[0]).tz(B.value) : null, Te = (de = u.filter.values) != null && de[1] ? Bt(u.filter.values[1]).tz(B.value) : null, De = (Be) => Be && Be.isValid() ? { hour: Be.hour(), minute: Be.minute() } : null;
5253
- return { preview: W ? `${E} is between ${so({
5253
+ return { preview: W ? `${E} is between ${fo({
5254
5254
  startTime: De(Se),
5255
5255
  endTime: De(Te),
5256
5256
  locale: t.value
@@ -5307,7 +5307,7 @@ const wl = va(Cl, () => {
5307
5307
  return Y(), ge("div", {
5308
5308
  key: W.id
5309
5309
  }, [
5310
- W.filter.option === r(Je).DateTime && !D(W.filter) ? (Y(), we(oo, {
5310
+ W.filter.option === r(Je).DateTime && !D(W.filter) ? (Y(), we(io, {
5311
5311
  key: 0,
5312
5312
  "model-value": { startDate: (Te = W.filter.values) == null ? void 0 : Te[0], endDate: (De = W.filter.values) == null ? void 0 : De[1] },
5313
5313
  class: "w-full",
@@ -5331,7 +5331,7 @@ const wl = va(Cl, () => {
5331
5331
  }, {
5332
5332
  "menu-button": $e(() => [
5333
5333
  J("div", Sl, [
5334
- fe(ro, {
5334
+ fe(uo, {
5335
5335
  "left-icon": "filter_alt",
5336
5336
  "trailing-icon": "expand_more",
5337
5337
  label: ee(W).preview,