@feedmepos/mf-report 5.21.31 → 5.21.32

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 (25) hide show
  1. package/dist/{App-ChGxGAvb.js → App-BVPfeKM1.js} +4 -4
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-QzLGWBvd.js → BaseDialog.vue_vue_type_script_setup_true_lang-BNTtoXSl.js} +944 -944
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CS10GX8d.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cg6ChdaG.js} +87 -87
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-oPfgV8Ba.js → Default.vue_vue_type_script_setup_true_lang-BlAfWU6A.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BEOZulO4.js → FilterSelector.vue_vue_type_script_setup_true_lang-DpUWWlZ7.js} +968 -969
  6. package/dist/{InsightView-B3zeWLpB.js → InsightView-D0FQmOAa.js} +5 -5
  7. package/dist/{Integration-Ne6z0Ue8.js → Integration-DUauFkbS.js} +2 -2
  8. package/dist/{Integrations-SXV9M3b-.js → Integrations-BPvh4SIF.js} +3 -3
  9. package/dist/{Layout-BfhdHhdb.js → Layout-DG-JKjLP.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Chon4gVE.js → MenuTab.vue_vue_type_script_setup_true_lang-BHrs_LW4.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-M3kgeSAQ.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js} +4647 -4584
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-DDKbpI_N.js → NoData.vue_vue_type_script_setup_true_lang-BRz75rkR.js} +1 -1
  13. package/dist/{OverviewView-DYJsgAMF.js → OverviewView-DUqScbfn.js} +5 -5
  14. package/dist/{Report-CDyfJ8O3.js → Report-DYicrOSm.js} +4 -4
  15. package/dist/{ReportEditor-DtfEQ_8T.js → ReportEditor-D7GGcHre.js} +392 -376
  16. package/dist/{ReportView-B4LtH-DO.js → ReportView-BzZR7ZLF.js} +8 -8
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BhWCLEfp.js → SelectComponent.vue_vue_type_script_setup_true_lang-BXZkFRRh.js} +1 -1
  18. package/dist/{Setting-8zch0HnP.js → Setting-BCyliq0w.js} +4 -4
  19. package/dist/{TileEditor-lcd84uaM.js → TileEditor-DB6cd_RH.js} +7 -7
  20. package/dist/{TransitionFade-CP8HKs9i.js → TransitionFade-B-yJvnSS.js} +5 -5
  21. package/dist/app.js +20 -12
  22. package/dist/assets/{formatChartData.worker-B3aFFvRN.js → formatChartData.worker-DHyKAOan.js} +26 -26
  23. package/dist/assets/{processTableData.worker-C9Y9NVCl.js → processTableData.worker-BAeQAKT3.js} +30 -30
  24. package/dist/{vue-i18n-D1iec8Wy.js → vue-i18n-D4W4y-_2.js} +2151 -2219
  25. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as E, resolveComponent as S, createBlock as y, openBlock as D, withCtx as I, createCommentVNode as M, createElementVNode as R, toDisplayString as A, renderSlot as U, mergeModels as C, useModel as b, ref as k, watch as O, createElementBlock as B, unref as f, createVNode as z } from "vue";
2
- import { d as r, m as W, t as q, u as G, b as H, U as K, C as L } from "./vue-i18n-D1iec8Wy.js";
1
+ import { defineComponent as P, resolveComponent as S, createBlock as p, openBlock as y, withCtx as z, createCommentVNode as M, createElementVNode as R, toDisplayString as A, renderSlot as B, mergeModels as C, useModel as b, ref as k, watch as x, createElementBlock as U, unref as f, createVNode as O } from "vue";
2
+ import { d as l, u as W, b as q, T as G, C as H } from "./vue-i18n-D4W4y-_2.js";
3
3
  import { detectLocale as F } from "@feedmepos/mf-common";
4
- import { storeToRefs as J } from "pinia";
4
+ import { storeToRefs as K } from "pinia";
5
5
  var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {});
6
- function le(e, t = 100) {
6
+ function ne(e, t = 100) {
7
7
  let n = null;
8
8
  const a = function(...o) {
9
- return n && clearTimeout(n), new Promise((l) => {
9
+ return n && clearTimeout(n), new Promise((r) => {
10
10
  n = setTimeout(() => {
11
11
  n = null;
12
12
  const m = e(...o);
13
- l(m);
13
+ r(m);
14
14
  }, t);
15
15
  });
16
16
  };
@@ -18,10 +18,10 @@ function le(e, t = 100) {
18
18
  n && (clearTimeout(n), n = null);
19
19
  }, a;
20
20
  }
21
- function Q() {
22
- return [...Array(12).keys()].map((e) => r().month(e).format("MMM"));
21
+ function L() {
22
+ return [...Array(12).keys()].map((e) => l().month(e).format("MMM"));
23
23
  }
24
- function oe(e, t, n = "") {
24
+ function le(e, t, n = "") {
25
25
  switch (e.type) {
26
26
  case v.Day:
27
27
  return t("report.schedule.everyDay");
@@ -37,8 +37,8 @@ function oe(e, t, n = "") {
37
37
  t("report.days.saturday")
38
38
  ];
39
39
  if (e.days)
40
- for (let l = 0; l < e.days.length; l++)
41
- a = a + o[e.days[l]] + (l !== e.days.length - 1 ? "," : "");
40
+ for (let r = 0; r < e.days.length; r++)
41
+ a = a + o[e.days[r]] + (r !== e.days.length - 1 ? "," : "");
42
42
  return a;
43
43
  }
44
44
  case v.Month: {
@@ -50,8 +50,8 @@ function oe(e, t, n = "") {
50
50
  return t("report.schedule.customDate");
51
51
  let a = `${t("report.schedule.everyYear")} `;
52
52
  if (e.months) {
53
- const o = Q();
54
- a = a + e.months.map((l) => o[l - 1]).join(",");
53
+ const o = L();
54
+ a = a + e.months.map((r) => o[r - 1]).join(",");
55
55
  }
56
56
  return e.months && e.days && (a = a + ` ${t("report.common.and")} `), e.days && (a = a + e.days.join(",")), a;
57
57
  }
@@ -59,27 +59,28 @@ function oe(e, t, n = "") {
59
59
  return n;
60
60
  }
61
61
  }
62
- function P(e = {
62
+ function V(e = {
63
63
  startDate: null,
64
64
  endDate: null,
65
- locale: "en-US"
65
+ locale: "en-US",
66
+ timezone: void 0
66
67
  }) {
67
68
  if (!e.startDate || !e.endDate)
68
69
  return "No comparison";
69
- let t = r().subtract(1, "day").endOf("day"), n = r().endOf("day");
70
- return e.startDate && (t = r(e.startDate).locale(e.locale)), e.endDate && (n = r(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
70
+ let t = l().subtract(1, "day").endOf("day"), n = l().endOf("day");
71
+ return e.startDate && (t = e.timezone ? l(e.startDate).tz(e.timezone).locale(e.locale) : l(e.startDate).locale(e.locale)), e.endDate && (n = e.timezone ? l(e.endDate).tz(e.timezone).locale(e.locale) : l(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
71
72
  }
72
- function se(e = {
73
+ function re(e = {
73
74
  startTime: null,
74
75
  endTime: null,
75
76
  locale: "en-US"
76
77
  }) {
77
78
  const t = "hh:mmA", { startTime: n, endTime: a, locale: o } = e;
78
79
  if (!n || !a) return "";
79
- const l = r().set("hour", n.hour).set("minute", n.minute).locale(o), m = r().set("hour", a.hour).set("minute", a.minute).locale(o);
80
- return `${l.format(t)}-${m.format(t)}`;
80
+ const r = l().set("hour", n.hour).set("minute", n.minute).locale(o), m = l().set("hour", a.hour).set("minute", a.minute).locale(o);
81
+ return `${r.format(t)}-${m.format(t)}`;
81
82
  }
82
- const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, Z = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, _ = { class: "whitespace-nowrap flex-none" }, V = /* @__PURE__ */ E({
83
+ const J = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, Q = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, X = { class: "whitespace-nowrap flex-none" }, E = /* @__PURE__ */ P({
83
84
  __name: "FilterChip",
84
85
  props: {
85
86
  label: {
@@ -102,29 +103,29 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
102
103
  setup(e) {
103
104
  const t = e;
104
105
  return (n, a) => {
105
- const o = S("FmIcon"), l = S("FmChip");
106
- return D(), y(l, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit flex items-center gap-1" }, {
107
- default: I(() => [
108
- e.leftIcon ? (D(), y(o, {
106
+ const o = S("FmIcon"), r = S("FmChip");
107
+ return y(), p(r, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit flex items-center gap-1" }, {
108
+ default: z(() => [
109
+ e.leftIcon ? (y(), p(o, {
109
110
  key: 0,
110
111
  name: t.leftIcon,
111
112
  size: "sm",
112
113
  outline: "",
113
114
  class: "flex-none"
114
115
  }, null, 8, ["name"])) : M("", !0),
115
- R("div", X, [
116
- R("span", Z, A(t.label), 1),
117
- e.rightIcon ? (D(), y(o, {
116
+ R("div", J, [
117
+ R("span", Q, A(t.label), 1),
118
+ e.rightIcon ? (y(), p(o, {
118
119
  key: 0,
119
120
  name: e.rightIcon,
120
121
  size: "sm",
121
122
  outline: "",
122
123
  class: "flex-none"
123
124
  }, null, 8, ["name"])) : M("", !0),
124
- R("span", _, [
125
- U(n.$slots, "default")
125
+ R("span", X, [
126
+ B(n.$slots, "default")
126
127
  ]),
127
- e.trailingIcon ? (D(), y(o, {
128
+ e.trailingIcon ? (y(), p(o, {
128
129
  key: 1,
129
130
  name: e.trailingIcon,
130
131
  size: "sm",
@@ -137,7 +138,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
137
138
  });
138
139
  };
139
140
  }
140
- }), ee = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", de = /* @__PURE__ */ E({
141
+ }), Z = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", oe = /* @__PURE__ */ P({
141
142
  __name: "DateRangeSelect",
142
143
  props: /* @__PURE__ */ C({
143
144
  compare: {
@@ -146,7 +147,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
146
147
  },
147
148
  datePredefinedRanges: {
148
149
  type: Array,
149
- default: () => K()
150
+ default: () => G()
150
151
  },
151
152
  label: {
152
153
  type: String,
@@ -161,7 +162,7 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
161
162
  }, {
162
163
  compareType: {
163
164
  type: String,
164
- default: L.PRECEDING_PERIOD
165
+ default: H.PRECEDING_PERIOD
165
166
  },
166
167
  compareTypeModifiers: {},
167
168
  dateRange: {
@@ -183,48 +184,47 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
183
184
  }),
184
185
  emits: /* @__PURE__ */ C(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
185
186
  setup(e, { emit: t }) {
186
- var $, T, w, x;
187
- r.extend(W), r.extend(q);
188
- const { t: n, locale: a } = G(), o = t, l = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = J(H()), u = k({
189
- startDate: m.value.startDate ? ($ = r(m.value.startDate)) == null ? void 0 : $.tz(i.value).format(Y) : null,
190
- endDate: m.value.endDate ? (T = r(m.value.endDate)) == null ? void 0 : T.tz(i.value).format(Y) : null
191
- }), p = k({
192
- startDate: g.value.startDate ? (w = r(g.value.startDate)) == null ? void 0 : w.tz(i.value).format(Y) : null,
193
- endDate: g.value.endDate ? (x = r(g.value.endDate)) == null ? void 0 : x.tz(i.value).format(Y) : null
187
+ var I, T, $, w;
188
+ const { t: n, locale: a } = W(), o = t, r = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = K(q()), s = k({
189
+ startDate: m.value.startDate ? (I = l(m.value.startDate)) == null ? void 0 : I.tz(i.value).format(Y) : null,
190
+ endDate: m.value.endDate ? (T = l(m.value.endDate)) == null ? void 0 : T.tz(i.value).format(Y) : null
191
+ }), D = k({
192
+ startDate: g.value.startDate ? ($ = l(g.value.startDate)) == null ? void 0 : $.tz(i.value).format(Y) : null,
193
+ endDate: g.value.endDate ? (w = l(g.value.endDate)) == null ? void 0 : w.tz(i.value).format(Y) : null
194
194
  });
195
- O(
196
- [() => u.value],
195
+ x(
196
+ [() => s.value],
197
197
  () => {
198
- u.value.endDate || (u.value.endDate = u.value.startDate);
199
- const d = {
200
- startDate: r.tz(u.value.startDate, i.value).startOf("day").utc().toISOString(),
201
- endDate: r.tz(u.value.endDate, i.value).endOf("day").utc().toISOString()
198
+ s.value.endDate || (s.value.endDate = s.value.startDate);
199
+ const u = {
200
+ startDate: l.tz(s.value.startDate, i.value).startOf("day").utc().toISOString(),
201
+ endDate: l.tz(s.value.endDate, i.value).endOf("day").utc().toISOString()
202
202
  };
203
- m.value = d, o("update", d);
203
+ m.value = u, o("update", u);
204
204
  },
205
205
  { deep: !0 }
206
- ), O([() => p.value], () => {
207
- const d = p.value.startDate, s = p.value.endDate, h = d ? r(
208
- d instanceof Date ? d : r(d).toDate()
209
- ).startOf("day").tz(i.value, !0).toISOString() : void 0, c = s ? r(s instanceof Date ? s : r(s).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
206
+ ), x([() => D.value], () => {
207
+ const u = D.value.startDate, d = D.value.endDate, h = u ? l(
208
+ u instanceof Date ? u : l(u).toDate()
209
+ ).startOf("day").tz(i.value, !0).toISOString() : void 0, c = d ? l(d instanceof Date ? d : l(d).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
210
210
  g.value = {
211
211
  startDate: h,
212
212
  endDate: c
213
213
  };
214
214
  });
215
- function N(d) {
216
- l.value = d;
215
+ function N(u) {
216
+ r.value = u;
217
217
  }
218
- function j(d) {
219
- o("chip-closed", d);
218
+ function j(u) {
219
+ o("chip-closed", u);
220
220
  }
221
- return (d, s) => {
221
+ return (u, d) => {
222
222
  const h = S("FmSimpleDateRangePicker");
223
- return D(), B("div", ee, [
224
- (D(), y(h, {
223
+ return y(), U("div", Z, [
224
+ (y(), p(h, {
225
225
  key: `date-picker-${f(a)}`,
226
- modelValue: u.value,
227
- "onUpdate:modelValue": s[1] || (s[1] = (c) => u.value = c),
226
+ modelValue: s.value,
227
+ "onUpdate:modelValue": d[1] || (d[1] = (c) => s.value = c),
228
228
  "show-predefined-range": "",
229
229
  "predefined-range": e.datePredefinedRanges.map((c) => ({
230
230
  ...c,
@@ -232,36 +232,36 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
232
232
  })),
233
233
  class: "w-2/6"
234
234
  }, {
235
- "trigger-button": I(() => [
236
- z(V, {
235
+ "trigger-button": z(() => [
236
+ O(E, {
237
237
  "left-icon": e.label ? "filter_alt" : "calendar_month",
238
- label: e.label ?? f(P)({
239
- startDate: u.value.startDate ?? "",
240
- endDate: u.value.endDate ?? "",
238
+ label: e.label ?? f(V)({
239
+ startDate: s.value.startDate ?? "",
240
+ endDate: s.value.endDate ?? "",
241
241
  locale: f(F)()
242
242
  }),
243
243
  removable: e.removable,
244
- onChipClosed: s[0] || (s[0] = (c) => j(!0))
244
+ onChipClosed: d[0] || (d[0] = (c) => j(!0))
245
245
  }, null, 8, ["left-icon", "label", "removable"])
246
246
  ]),
247
247
  _: 1
248
248
  }, 8, ["modelValue", "predefined-range"])),
249
- e.compare ? (D(), y(h, {
249
+ e.compare ? (y(), p(h, {
250
250
  key: `compare-date-picker-${f(a)}`,
251
- modelValue: p.value,
252
- "onUpdate:modelValue": s[2] || (s[2] = (c) => p.value = c),
253
- "compare-type": l.value,
254
- "onUpdate:compareType": s[3] || (s[3] = (c) => l.value = c),
251
+ modelValue: D.value,
252
+ "onUpdate:modelValue": d[2] || (d[2] = (c) => D.value = c),
253
+ "compare-type": r.value,
254
+ "onUpdate:compareType": d[3] || (d[3] = (c) => r.value = c),
255
255
  "show-predefined-range": "",
256
- "compare-target": u.value,
257
- "default-compare-type": l.value,
256
+ "compare-target": s.value,
257
+ "default-compare-type": r.value,
258
258
  onSelectComparison: N
259
259
  }, {
260
- "trigger-button": I(() => [
261
- z(V, {
262
- label: `${f(n)("report.common.compare")}: ${f(P)({
263
- startDate: p.value.startDate ?? null,
264
- endDate: p.value.endDate ?? null,
260
+ "trigger-button": z(() => [
261
+ O(E, {
262
+ label: `${f(n)("report.common.compare")}: ${f(V)({
263
+ startDate: D.value.startDate ?? null,
264
+ endDate: D.value.endDate ?? null,
265
265
  locale: f(F)()
266
266
  })}`
267
267
  }, null, 8, ["label"])
@@ -274,11 +274,11 @@ const X = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-
274
274
  });
275
275
  export {
276
276
  v as C,
277
- de as _,
278
- V as a,
279
- P as b,
280
- se as c,
281
- le as d,
282
- oe as e,
283
- Q as g
277
+ oe as _,
278
+ E as a,
279
+ V as b,
280
+ re as c,
281
+ ne as d,
282
+ le as e,
283
+ L as g
284
284
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, 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-M3kgeSAQ.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cl2n4jUd.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, f as w } from "./vue-i18n-D1iec8Wy.js";
5
+ import { u as q, f as w } from "./vue-i18n-D4W4y-_2.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,