@feedmepos/mf-report 5.33.3 → 5.34.1-beta.0

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 (46) hide show
  1. package/dist/{App-BgRqim5d.js → App-BdSGNJ3L.js} +114 -113
  2. package/dist/{DateRangeSelect-XyU5XG5c.js → DateRangeSelect-Cre6UJLD.js} +67 -67
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CC7fE3F8.js → Default.vue_vue_type_script_setup_true_lang-CvM5oewZ.js} +3 -3
  4. package/dist/DigestListView-BuB4JOlT.js +876 -0
  5. package/dist/{DigestReaderView-DSNoAESE.js → DigestReaderView-DdpTY1Ax.js} +63 -63
  6. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CsDiXGUk.js → DynamicWidget.vue_vue_type_script_setup_true_lang-4qBcakJs.js} +733 -733
  7. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-D7Rsh-uY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BL3kxHFR.js} +526 -526
  8. package/dist/{InsightView-CF8mQJha.js → InsightView-CZOStmyJ.js} +88 -88
  9. package/dist/{Integration-QMdYwTwW.js → Integration-BC-DWRpD.js} +1983 -1967
  10. package/dist/{Integrations-Dbx1ScOv.js → Integrations-ibKrdipe.js} +10 -10
  11. package/dist/{Layout-CgiplBHM.js → Layout-D0W7xdty.js} +3 -3
  12. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-zW8JA7j3.js → LocationSelect.vue_vue_type_script_setup_true_lang-CJCSJkT_.js} +306 -306
  13. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B0q9V1x8.js → MenuTab.vue_vue_type_script_setup_true_lang-DnPC8AcN.js} +6 -6
  14. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BVWZ8vTw.js → NavigationTab.vue_vue_type_script_setup_true_lang-CKaMBQka.js} +12784 -11760
  15. package/dist/{OverviewView-BbZ8WkLb.js → OverviewView-AOwgvPBq.js} +7 -7
  16. package/dist/{Report-BYi0pPZs.js → Report-Bs5sy1OF.js} +12 -12
  17. package/dist/{ReportCanvasView-CfFtVomc.js → ReportCanvasView-CYai96pI.js} +426 -426
  18. package/dist/{ReportEditor-BLEkGUVR.js → ReportEditor-BbsLe4B7.js} +32 -32
  19. package/dist/{ReportView-TG78Krm2.js → ReportView-B5Fqspyn.js} +13 -13
  20. package/dist/{ReportViewRoute-BUADf4Cr.js → ReportViewRoute-D2wI79x9.js} +5 -5
  21. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Cxx-TQz9.js +137 -0
  22. package/dist/{Setting-Curkhv9_.js → Setting-DdYXi5qR.js} +6 -6
  23. package/dist/{Template-BN_ds698.js → Template-YEa1E6oz.js} +80 -80
  24. package/dist/{TileEditor-Cfb0uXGr.js → TileEditor-CnmEhIab.js} +1566 -1566
  25. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-1FKwWbpC.js → TilePageStack.vue_vue_type_script_setup_true_lang-CqWXV57r.js} +82 -82
  26. package/dist/{TransitionFade-D0_ZoB-O.js → TransitionFade-BmItOXFf.js} +170 -170
  27. package/dist/{XeroRedirect-CuTrP62C.js → XeroRedirect-D4sHbZe7.js} +3 -3
  28. package/dist/_plugin-vue_export-helper-Bx7s49ra.js +2828 -0
  29. package/dist/{app-LKjvcmXa.js → app-BmNusIzI.js} +5688 -13890
  30. package/dist/app.js +1 -1
  31. package/dist/assets/{formatChartData.worker-DvK7K5ca.js → formatChartData.worker-Cpgnh20a.js} +62 -62
  32. package/dist/assets/{processTableData.worker-C3l4iUXL.js → processTableData.worker-B7I6PElJ.js} +64 -64
  33. package/dist/{chart-BywXiz4O.js → chart-DU0N9V2o.js} +7 -4
  34. package/dist/currency-DAk-bsf8.js +12 -0
  35. package/dist/index-6T_rmIM_.js +24722 -0
  36. package/dist/{report-Ci2ElGpp.js → report-NKl3Yb5J.js} +23 -23
  37. package/dist/style.css +1 -1
  38. package/dist/{useDigestFont-BxXC7U3d.js → useDigestFont-Bxq6g3WO.js} +80 -80
  39. package/dist/{useReportCanvasPanel-BjmRiMSh.js → useReportCanvasPanel-BN-Gq7Uj.js} +975 -976
  40. package/dist/{useRestaurantPermission-DX52YBfA.js → useRestaurantPermission-D8b3oI0-.js} +2 -2
  41. package/package.json +11 -11
  42. package/dist/DigestListView-Bqp4LA1w.js +0 -876
  43. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js +0 -137
  44. package/dist/_plugin-vue_export-helper-C6QDExPN.js +0 -2718
  45. package/dist/currency-DFN_8rRJ.js +0 -12
  46. package/dist/index-xdTpLFHc.js +0 -25511
@@ -1,18 +1,18 @@
1
- import { defineComponent as ne, resolveComponent as A, createBlock as b, openBlock as C, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, mergeModels as K, useModel as L, ref as P, computed as z, watch as M, nextTick as Z, onMounted as pe, onBeforeUnmount as ve, createElementBlock as ge, unref as $, createVNode as J } from "vue";
2
- import { d as i, a as he, i as Q, z as X, C as E, s as Ce, t as be } from "./app-LKjvcmXa.js";
1
+ import { defineComponent as ne, resolveComponent as A, openBlock as C, createBlock as b, normalizeClass as fe, withCtx as U, createCommentVNode as F, createElementVNode as I, toDisplayString as De, renderSlot as ye, useModel as L, ref as P, computed as z, watch as M, nextTick as K, onMounted as ve, onBeforeUnmount as pe, createElementBlock as ge, unref as $, createVNode as Z, mergeModels as J } from "vue";
2
+ import { d as i, a as he, i as Q, z as X, C as E, s as Ce, t as be } from "./app-BmNusIzI.js";
3
3
  import { detectLocale as _ } from "@feedmepos/mf-common";
4
- import { u as Re, _ as Me } from "./_plugin-vue_export-helper-C6QDExPN.js";
4
+ import { u as Re, _ as Me } from "./_plugin-vue_export-helper-Bx7s49ra.js";
5
5
  import { storeToRefs as Ye } from "pinia";
6
6
  import { useSnackbar as $e } from "@feedmepos/ui-library";
7
7
  var S = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(S || {}), Se = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(Se || {});
8
8
  function Ne(e, n = 100) {
9
9
  let l = null;
10
10
  const f = function(...D) {
11
- return l && clearTimeout(l), new Promise((d) => {
11
+ return l && clearTimeout(l), new Promise((c) => {
12
12
  l = setTimeout(() => {
13
13
  l = null;
14
14
  const h = e(...D);
15
- d(h);
15
+ c(h);
16
16
  }, n);
17
17
  });
18
18
  };
@@ -24,14 +24,14 @@ function Te() {
24
24
  return [...Array(12).keys()].map((e) => i().month(e).format("MMM"));
25
25
  }
26
26
  function Be(e, n, l = "") {
27
- const f = (r) => /^[\x00-\x7F]*$/.test(r) ? " " : "", D = (r) => /^每年/.test(r), d = (r) => /^每周|^每週/.test(r), h = (r) => /^每月/.test(r);
27
+ const f = (r) => /^[\x00-\x7F]*$/.test(r) ? " " : "", D = (r) => /^每年/.test(r), c = (r) => /^每周|^每週/.test(r), h = (r) => /^每月/.test(r);
28
28
  switch (e.type) {
29
29
  case S.Day:
30
30
  return n("report.schedule.everyDay");
31
31
  case S.Week: {
32
- const r = n("report.schedule.everyWeek"), y = d(r);
32
+ const r = n("report.schedule.everyWeek"), y = c(r);
33
33
  let s = `${r}${f(r)}`;
34
- const p = [
34
+ const v = [
35
35
  n("report.days.sunday"),
36
36
  n("report.days.monday"),
37
37
  n("report.days.tuesday"),
@@ -42,7 +42,7 @@ function Be(e, n, l = "") {
42
42
  ];
43
43
  if (e.days)
44
44
  for (let m = 0; m < e.days.length; m++) {
45
- const T = y ? p[e.days[m]].replace(/^[周週]/, "") : p[e.days[m]];
45
+ const T = y ? v[e.days[m]].replace(/^[周週]/, "") : v[e.days[m]];
46
46
  s = s + T + (m !== e.days.length - 1 ? "," : "");
47
47
  }
48
48
  return s;
@@ -50,7 +50,7 @@ function Be(e, n, l = "") {
50
50
  case S.Month: {
51
51
  const r = n("report.schedule.everyMonth"), y = h(r);
52
52
  let s = `${r}${f(r)}`;
53
- return e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
53
+ return e.days && (s = s + (y ? e.days.map((v) => `${v}日`).join(",") : e.days.join(","))), s;
54
54
  }
55
55
  case S.Year: {
56
56
  if (!e.months && !e.days)
@@ -58,10 +58,10 @@ function Be(e, n, l = "") {
58
58
  const r = n("report.schedule.everyYear"), y = D(r);
59
59
  let s = `${r}${y ? " " : f(r)}`;
60
60
  if (e.months) {
61
- const p = Te();
62
- s = s + e.months.map((m) => p[m - 1]).join(",");
61
+ const v = Te();
62
+ s = s + e.months.map((m) => v[m - 1]).join(",");
63
63
  }
64
- return e.months && e.days && (s = y ? `${s} 的 ` : `${s} ${n("report.common.and")} `), e.days && (s = s + (y ? e.days.map((p) => `${p}日`).join(",") : e.days.join(","))), s;
64
+ return e.months && e.days && (s = y ? `${s} 的 ` : `${s} ${n("report.common.and")} `), e.days && (s = s + (y ? e.days.map((v) => `${v}日`).join(",") : e.days.join(","))), s;
65
65
  }
66
66
  default:
67
67
  return l;
@@ -85,8 +85,8 @@ function Ve(e = {
85
85
  }) {
86
86
  const n = "hh:mmA", { startTime: l, endTime: f, locale: D } = e;
87
87
  if (!l || !f) return "";
88
- const d = i().set("hour", l.hour).set("minute", l.minute).locale(D), h = i().set("hour", f.hour).set("minute", f.minute).locale(D);
89
- return `${d.format(n)}-${h.format(n)}`;
88
+ const c = i().set("hour", l.hour).set("minute", l.minute).locale(D), h = i().set("hour", f.hour).set("minute", f.minute).locale(D);
89
+ return `${c.format(n)}-${h.format(n)}`;
90
90
  }
91
91
  const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, xe = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, ke = { class: "whitespace-nowrap flex-none" }, te = /* @__PURE__ */ ne({
92
92
  __name: "FilterChip",
@@ -115,7 +115,7 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
115
115
  setup(e) {
116
116
  const n = e;
117
117
  return (l, f) => {
118
- const D = A("FmIcon"), d = A("FmCircularProgress"), h = A("FmChip");
118
+ const D = A("FmIcon"), c = A("FmCircularProgress"), h = A("FmChip");
119
119
  return C(), b(h, {
120
120
  "aria-busy": n.loading,
121
121
  class: fe([
@@ -143,7 +143,7 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
143
143
  I("span", ke, [
144
144
  ye(l.$slots, "default")
145
145
  ]),
146
- n.loading ? (C(), b(d, {
146
+ n.loading ? (C(), b(c, {
147
147
  key: 1,
148
148
  size: "md",
149
149
  class: "flex-none scale-75"
@@ -162,7 +162,7 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
162
162
  }
163
163
  }), Pe = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", ae = ".fm-calendar__cell[id]", Ee = ".fm-calendar__cell__button", Ae = /* @__PURE__ */ ne({
164
164
  __name: "DateRangeSelect",
165
- props: /* @__PURE__ */ K({
165
+ props: /* @__PURE__ */ J({
166
166
  compare: {
167
167
  type: Boolean,
168
168
  default: !1
@@ -209,13 +209,13 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
209
209
  },
210
210
  compareDateRangeModifiers: {}
211
211
  }),
212
- emits: /* @__PURE__ */ K(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
212
+ emits: /* @__PURE__ */ J(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
213
213
  setup(e, { emit: n }) {
214
214
  const { t: l, locale: f } = Re(), D = $e();
215
- function d(t) {
216
- return t ? be(t, p.value) : null;
215
+ function c(t) {
216
+ return t ? be(t, v.value) : null;
217
217
  }
218
- const h = n, r = L(e, "compareType"), y = L(e, "dateRange"), s = L(e, "compareDateRange"), { timezone: p } = Ye(he());
218
+ const h = n, r = L(e, "compareType"), y = L(e, "dateRange"), s = L(e, "compareDateRange"), { timezone: v } = Ye(he());
219
219
  let m = null, T = 0, R = null;
220
220
  const w = /* @__PURE__ */ new Set(), N = P(!1), B = P(!1), x = z(
221
221
  () => N.value || B.value
@@ -279,47 +279,47 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
279
279
  function k(t, a) {
280
280
  return t.startDate === a.startDate && t.endDate === a.endDate;
281
281
  }
282
- const c = P({
283
- startDate: d(y.value.startDate),
284
- endDate: d(y.value.endDate)
285
- }), v = P({
286
- startDate: s.value.startDate ? d(s.value.startDate) : null,
287
- endDate: s.value.endDate ? d(s.value.endDate) : null
282
+ const d = P({
283
+ startDate: c(y.value.startDate),
284
+ endDate: c(y.value.endDate)
285
+ }), p = P({
286
+ startDate: s.value.startDate ? c(s.value.startDate) : null,
287
+ endDate: s.value.endDate ? c(s.value.endDate) : null
288
288
  });
289
289
  M(
290
- [() => c.value],
290
+ [() => d.value],
291
291
  () => {
292
- const t = G(c.value);
293
- if (!k(t, c.value)) {
294
- c.value = t;
292
+ const t = G(d.value);
293
+ if (!k(t, d.value)) {
294
+ d.value = t;
295
295
  return;
296
296
  }
297
- c.value.endDate || (c.value.endDate = c.value.startDate);
297
+ d.value.endDate || (d.value.endDate = d.value.startDate);
298
298
  const a = {
299
- startDate: X(c.value.startDate, p.value),
300
- endDate: Q(c.value.endDate, p.value)
299
+ startDate: X(d.value.startDate, v.value),
300
+ endDate: Q(d.value.endDate, v.value)
301
301
  };
302
302
  y.value = a, h("update", a);
303
303
  },
304
304
  { deep: !0 }
305
- ), M([() => v.value], () => {
306
- const t = G(v.value, {
305
+ ), M([() => p.value], () => {
306
+ const t = G(p.value, {
307
307
  notify: r.value === E.CUSTOM
308
308
  });
309
- if (!k(t, v.value)) {
310
- v.value = t;
309
+ if (!k(t, p.value)) {
310
+ p.value = t;
311
311
  return;
312
312
  }
313
- const a = v.value.startDate, u = v.value.endDate, o = a ? X(
313
+ const a = p.value.startDate, u = p.value.endDate, o = a ? X(
314
314
  i(
315
315
  a instanceof Date ? a : i(a).toDate()
316
316
  ).format(Y),
317
- p.value
317
+ v.value
318
318
  ) : void 0, g = u ? Q(
319
319
  i(
320
320
  u instanceof Date ? u : i(u).toDate()
321
321
  ).format(Y),
322
- p.value
322
+ v.value
323
323
  ) : void 0;
324
324
  s.value = {
325
325
  startDate: o,
@@ -329,35 +329,35 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
329
329
  () => y.value,
330
330
  () => {
331
331
  const t = {
332
- startDate: d(y.value.startDate),
333
- endDate: d(y.value.endDate)
332
+ startDate: c(y.value.startDate),
333
+ endDate: c(y.value.endDate)
334
334
  };
335
- k(t, c.value) || (c.value = t);
335
+ k(t, d.value) || (d.value = t);
336
336
  },
337
337
  { deep: !0 }
338
338
  ), M(
339
339
  () => s.value,
340
340
  () => {
341
341
  const t = {
342
- startDate: d(s.value.startDate),
343
- endDate: d(s.value.endDate)
342
+ startDate: c(s.value.startDate),
343
+ endDate: c(s.value.endDate)
344
344
  };
345
- k(t, v.value) || (v.value = t);
345
+ k(t, p.value) || (p.value = t);
346
346
  },
347
347
  { deep: !0 }
348
348
  ), M(
349
349
  () => e.minDate,
350
350
  async () => {
351
- await Z(), O();
351
+ await K(), O();
352
352
  }
353
353
  ), M(
354
354
  () => x.value,
355
355
  async () => {
356
- await Z(), O();
356
+ await K(), O();
357
357
  }
358
- ), pe(() => {
358
+ ), ve(() => {
359
359
  O();
360
- }), ve(() => {
360
+ }), pe(() => {
361
361
  W();
362
362
  });
363
363
  function ue(t) {
@@ -366,16 +366,16 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
366
366
  function ie(t) {
367
367
  N.value = t;
368
368
  }
369
- function de(t) {
369
+ function ce(t) {
370
370
  B.value = t;
371
371
  }
372
- function ce(t) {
372
+ function de(t) {
373
373
  h("chip-closed", t);
374
374
  }
375
375
  const me = z(() => {
376
376
  const t = _(), a = t.startsWith("zh") ? "" : " ", u = l("report.common.comparedTo"), o = ee({
377
- startDate: v.value.startDate ?? null,
378
- endDate: v.value.endDate ?? null,
377
+ startDate: p.value.startDate ?? null,
378
+ endDate: p.value.endDate ?? null,
379
379
  locale: t
380
380
  });
381
381
  return r.value === E.NO_COMPARISON ? `${u}: ${l(`report.compare.${r.value}`)}` : r.value === E.CUSTOM ? `${u}: ${o}` : `${u}${a}${l(`report.compare.${r.value}`).toLowerCase()}: ${o}`;
@@ -385,8 +385,8 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
385
385
  return C(), ge("div", Pe, [
386
386
  (C(), b(u, {
387
387
  key: `date-picker-${$(f)}`,
388
- modelValue: c.value,
389
- "onUpdate:modelValue": a[1] || (a[1] = (o) => c.value = o),
388
+ modelValue: d.value,
389
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => d.value = o),
390
390
  "show-predefined-range": "",
391
391
  min: e.minDate,
392
392
  "predefined-range": e.datePredefinedRanges.map((o) => ({
@@ -397,34 +397,34 @@ const we = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w
397
397
  onPopoverChanged: ie
398
398
  }, {
399
399
  "trigger-button": U(() => [
400
- J(te, {
400
+ Z(te, {
401
401
  "left-icon": e.label ? "filter_alt" : "calendar_month",
402
402
  label: e.label ?? $(ee)({
403
- startDate: c.value.startDate ?? "",
404
- endDate: c.value.endDate ?? "",
403
+ startDate: d.value.startDate ?? "",
404
+ endDate: d.value.endDate ?? "",
405
405
  locale: $(_)()
406
406
  }),
407
407
  removable: e.removable,
408
- onChipClosed: a[0] || (a[0] = (o) => ce(!0))
408
+ onChipClosed: a[0] || (a[0] = (o) => de(!0))
409
409
  }, null, 8, ["left-icon", "label", "removable"])
410
410
  ]),
411
411
  _: 1
412
412
  }, 8, ["modelValue", "min", "predefined-range"])),
413
413
  e.compare ? (C(), b(u, {
414
414
  key: `compare-date-picker-${$(f)}`,
415
- modelValue: v.value,
416
- "onUpdate:modelValue": a[2] || (a[2] = (o) => v.value = o),
415
+ modelValue: p.value,
416
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => p.value = o),
417
417
  "compare-type": r.value,
418
418
  "onUpdate:compareType": a[3] || (a[3] = (o) => r.value = o),
419
419
  "show-predefined-range": "",
420
420
  min: e.minDate,
421
- "compare-target": c.value,
421
+ "compare-target": d.value,
422
422
  "default-compare-type": r.value,
423
- onPopoverChanged: de,
423
+ onPopoverChanged: ce,
424
424
  onSelectComparison: ue
425
425
  }, {
426
426
  "trigger-button": U(() => [
427
- J(te, { label: me.value }, null, 8, ["label"])
427
+ Z(te, { label: me.value }, null, 8, ["label"])
428
428
  ]),
429
429
  _: 1
430
430
  }, 8, ["modelValue", "compare-type", "min", "compare-target", "default-compare-type"])) : F("", !0)
@@ -1,10 +1,10 @@
1
- import { defineComponent as u, computed as p, resolveComponent as f, createElementBlock as r, 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-BVWZ8vTw.js";
1
+ import { defineComponent as u, computed as p, resolveComponent as f, openBlock as t, createElementBlock as r, normalizeStyle as n, unref as e, normalizeClass as d, 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-CKaMBQka.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
5
  import { u as q } from "./global-loader-BuxFfehu.js";
6
6
  import { useRoute as w } from "vue-router";
7
- import { u as B } from "./_plugin-vue_export-helper-C6QDExPN.js";
7
+ import { u as B } from "./_plugin-vue_export-helper-Bx7s49ra.js";
8
8
  const $ = {
9
9
  key: 1,
10
10
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"