@feedmepos/mf-report 5.22.1-remy-beta.2 → 5.22.1-remy.1

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 (26) hide show
  1. package/dist/{App-iSIj8_lS.js → App-cuHcpcZw.js} +26 -26
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-03nmej58.js +19983 -0
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js} +36 -37
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Blc6DBml.js → Default.vue_vue_type_script_setup_true_lang-BhMWXLug.js} +11 -12
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-CHTMrqtt.js → FilterSelector.vue_vue_type_script_setup_true_lang-fzO5gzwh.js} +235 -236
  6. package/dist/{InsightView-Ckkwb92m.js → InsightView-DJJJmFkl.js} +16 -17
  7. package/dist/{Integration-BoYn0XvH.js → Integration-D93eQCHy.js} +4 -5
  8. package/dist/{Integrations-D6Qz0hqf.js → Integrations-jn20KmcD.js} +27 -28
  9. package/dist/{Layout-DIs6pMOT.js → Layout-B1jaac85.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Brwm-7zb.js → MenuTab.vue_vue_type_script_setup_true_lang-BrCMbeEl.js} +9 -9
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DZIauCN0.js → NavigationTab.vue_vue_type_script_setup_true_lang-BZVeEoDt.js} +97 -98
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CW6oZEnc.js → NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js} +1 -1
  13. package/dist/{OverviewView-Bx_6RMle.js → OverviewView-Cuzw4aLB.js} +16 -16
  14. package/dist/{Report-E8GN07k7.js → Report-P_a1NjPi.js} +9 -8
  15. package/dist/{ReportEditor-bz8aajNj.js → ReportEditor-CkNtAVi9.js} +8 -9
  16. package/dist/{ReportView-BEWiRAvV.js → ReportView-BiF6T_r0.js} +12 -12
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CiT09OeD.js → SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js} +1 -1
  18. package/dist/{Setting-B6nnaJaX.js → Setting-DLnskPxP.js} +6 -7
  19. package/dist/{TileEditor-DncjwvcR.js → TileEditor-LFwn_4CK.js} +17 -18
  20. package/dist/{TransitionFade-Bold22aO.js → TransitionFade-12ARL50A.js} +21 -22
  21. package/dist/app.js +5184 -6
  22. package/dist/vue-i18n-BQN8HgvD.js +6457 -0
  23. package/package.json +1 -1
  24. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-Bnu9l9U0.js +0 -315
  25. package/dist/app-CDw9UOqm.js +0 -28808
  26. package/dist/vue-i18n-CQAzKJVO.js +0 -2711
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.22.1-remy-beta.2",
3
+ "version": "5.22.1-remy.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,315 +0,0 @@
1
- import { defineComponent as M, mergeModels as B, useModel as U, ref as O, watch as H, computed as Q, resolveComponent as v, createElementBlock as L, openBlock as D, createVNode as c, withCtx as g, createElementVNode as p, createCommentVNode as Y, Fragment as _, renderList as W, createBlock as q, createTextVNode as z, withDirectives as ee, toDisplayString as b, unref as m, vShow as te, renderSlot as ne } from "vue";
2
- import { c as oe, a as le } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CPniBJgZ.js";
3
- import { d as h } from "./app-CDw9UOqm.js";
4
- import { u as ae } from "./vue-i18n-CQAzKJVO.js";
5
- import { detectLocale as N } from "@feedmepos/mf-common";
6
- var ue = /* @__PURE__ */ ((e) => (e.Scorecard = "SCORECARD", e.Spacer = "SPACER", e.Table = "TABLE", e.BarChart = "BARCHART", e.StackBarChart = "STACKBARCHART", e.LineChart = "LINECHART", e.StackLineChart = "STACKLINECHART", e.Circular = "CIRCULAR", e))(ue || {}), re = /* @__PURE__ */ ((e) => (e.EXCEL = "excel", e.PDF = "pdf", e.PDFFULLSIZE = "pdfFullSize", e.PDFRECEIPT = "pdfReceipt", e))(re || {}), ie = /* @__PURE__ */ ((e) => (e.PORTRAIT = "portrait", e.LANDSCAPE = "landscape", e))(ie || {});
7
- function xe(e) {
8
- switch (e) {
9
- case "excel":
10
- return "Excel";
11
- case "pdf":
12
- return "PDF (A4)";
13
- case "pdfFullSize":
14
- return "PDF";
15
- case "pdfReceipt":
16
- return "PDF (Receipt)";
17
- default:
18
- return "Unknown";
19
- }
20
- }
21
- function Ne(e) {
22
- switch (e) {
23
- case "landscape":
24
- return "report.common.landscape";
25
- case "portrait":
26
- return "report.common.portrait";
27
- default:
28
- return "report.input.unknown";
29
- }
30
- }
31
- let V;
32
- const me = new Uint8Array(16);
33
- function se() {
34
- if (!V && (V = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !V))
35
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
36
- return V(me);
37
- }
38
- const r = [];
39
- for (let e = 0; e < 256; ++e)
40
- r.push((e + 256).toString(16).slice(1));
41
- function de(e, t = 0) {
42
- return r[e[t + 0]] + r[e[t + 1]] + r[e[t + 2]] + r[e[t + 3]] + "-" + r[e[t + 4]] + r[e[t + 5]] + "-" + r[e[t + 6]] + r[e[t + 7]] + "-" + r[e[t + 8]] + r[e[t + 9]] + "-" + r[e[t + 10]] + r[e[t + 11]] + r[e[t + 12]] + r[e[t + 13]] + r[e[t + 14]] + r[e[t + 15]];
43
- }
44
- const ce = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), J = {
45
- randomUUID: ce
46
- };
47
- function Ve(e, t, l) {
48
- if (J.randomUUID && !t && !e)
49
- return J.randomUUID();
50
- e = e || {};
51
- const s = e.random || (e.rng || se)();
52
- if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, t) {
53
- l = l || 0;
54
- for (let a = 0; a < 16; ++a)
55
- t[l + a] = s[a];
56
- return t;
57
- }
58
- return de(s);
59
- }
60
- const j = (e, t = "en") => h().set("hour", e.hour).set("minute", e.minute).locale(t).format("h:mm A"), pe = (e, t) => {
61
- const l = h().set("hour", e.hour).set("minute", e.minute);
62
- return h().set("hour", t.hour).set("minute", t.minute) < l ? "+1" : "";
63
- }, ve = { class: "px-24 py-16 rounded-lg shadow-light-300" }, fe = { class: "text-fm-color-typo-primary" }, ye = { class: "text-fm-color-typo-secondary" }, be = { class: "fm-typo-en-body-lg-600 mb-8" }, ge = { class: "flex items-center justify-center w-full" }, he = { class: "fm-typo-en-body-lg-600 mb-8" }, Ce = { class: "flex items-center justify-center" }, Re = { class: "flex flex-row mb-4 px-4 gap-2" }, Be = /* @__PURE__ */ M({
64
- __name: "TimeRangeSelect",
65
- props: /* @__PURE__ */ B({
66
- defaultDateRange: {
67
- type: Array,
68
- default: () => [
69
- {
70
- name: "All day",
71
- isDefault: !0,
72
- startTime: { hour: 0, minute: 0 },
73
- endTime: { hour: 23, minute: 59 }
74
- }
75
- ]
76
- },
77
- label: {
78
- type: String,
79
- required: !1,
80
- default: null
81
- },
82
- removable: {
83
- type: Boolean,
84
- required: !1,
85
- default: !1
86
- }
87
- }, {
88
- timeRange: {
89
- type: Object,
90
- default: () => ({
91
- start: { hour: 0, minute: 0 },
92
- end: { hour: 23, minute: 59 }
93
- })
94
- },
95
- timeRangeModifiers: {},
96
- selectTimeDefault: {
97
- type: Number,
98
- default: 1
99
- },
100
- selectTimeDefaultModifiers: {}
101
- }),
102
- emits: /* @__PURE__ */ B(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
103
- setup(e, { emit: t }) {
104
- const { t: l, locale: s } = ae(), a = U(e, "timeRange"), S = t, i = U(e, "selectTimeDefault");
105
- function T(d) {
106
- d && (a.value = d, S("update", a.value)), w.value = !1;
107
- }
108
- function F(d) {
109
- const n = d.split(":"), f = h().set("hour", Number(n[0])).set("minute", Number(n[1]));
110
- return {
111
- hours: Number(f.format("h")),
112
- minutes: Number(f.format("m")),
113
- period: f.format("A")
114
- };
115
- }
116
- const u = O(JSON.parse(JSON.stringify(a.value)));
117
- function G(d, n) {
118
- u.value.start = JSON.parse(JSON.stringify(d)), u.value.end = JSON.parse(JSON.stringify(n));
119
- }
120
- H(
121
- () => [() => a.value, () => i.value],
122
- () => {
123
- if (a.value) {
124
- const d = e.defaultDateRange.findIndex(
125
- (n) => {
126
- var f, C, A, x;
127
- return n.startTime.hour === ((f = a.value.start) == null ? void 0 : f.hour) && n.startTime.minute === ((C = a.value.start) == null ? void 0 : C.minute) && n.endTime.hour === ((A = a.value.end) == null ? void 0 : A.hour) && n.endTime.minute === ((x = a.value.end) == null ? void 0 : x.minute);
128
- }
129
- ) + 1;
130
- d !== 0 ? i.value = d : i.value = e.defaultDateRange.length + 1;
131
- }
132
- },
133
- { deep: !0 }
134
- );
135
- const w = O(!1);
136
- function K(d) {
137
- S("chip-closed", d);
138
- }
139
- const X = Q(() => e.label ? e.label : oe({
140
- startTime: a.value.start,
141
- endTime: a.value.end,
142
- locale: s.value
143
- }));
144
- return (d, n) => {
145
- const f = v("FmChip"), C = v("FmRadio"), A = v("FmMenuDivider"), x = v("FmRadioGroup"), $ = v("FmTimeInput"), k = v("FmButton"), Z = v("FmPopover");
146
- return D(), L("div", null, [
147
- c(Z, {
148
- "show-popover": w.value,
149
- placement: "bottom",
150
- onPopoverChanged: n[6] || (n[6] = (R) => w.value = R)
151
- }, {
152
- "popover-button": g(() => [
153
- c(le, {
154
- "left-icon": e.label ? "filter_alt" : "schedule",
155
- label: X.value,
156
- removable: e.removable,
157
- onChipClosed: n[0] || (n[0] = (R) => K(!0))
158
- }, null, 8, ["left-icon", "label", "removable"])
159
- ]),
160
- default: g(() => {
161
- var R, I, E, P;
162
- return [
163
- p("div", ve, [
164
- c(x, {
165
- modelValue: i.value,
166
- "onUpdate:modelValue": n[1] || (n[1] = (o) => i.value = o)
167
- }, {
168
- default: g(() => [
169
- (D(!0), L(_, null, W(e.defaultDateRange, (o, y) => (D(), q(C, {
170
- key: `range_${y}`,
171
- value: y + 1,
172
- label: o.name,
173
- onClick: (De) => G(o.startTime, o.endTime)
174
- }, {
175
- label: g(() => [
176
- p("p", fe, [
177
- z(b(o.name) + " ", 1),
178
- ee(c(f, {
179
- label: m(l)("report.common.default"),
180
- class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
181
- compact: ""
182
- }, null, 8, ["label"]), [
183
- [te, o.isDefault]
184
- ])
185
- ]),
186
- p("p", ye, b(m(j)(o.startTime, m(N)())) + " - " + b(m(j)(o.endTime, m(N)())) + " " + b(m(pe)(o.startTime, o.endTime)), 1)
187
- ]),
188
- _: 2
189
- }, 1032, ["value", "label", "onClick"]))), 128)),
190
- c(A),
191
- c(C, {
192
- key: "range_custom",
193
- label: m(l)("report.common.custom"),
194
- value: e.defaultDateRange.length + 1
195
- }, null, 8, ["label", "value"])
196
- ]),
197
- _: 1
198
- }, 8, ["modelValue"]),
199
- i.value === e.defaultDateRange.length + 1 ? (D(), L(_, { key: 0 }, [
200
- p("p", be, b(m(l)("report.date.startingTime")), 1),
201
- p("div", ge, [
202
- c($, {
203
- "model-value": F(`${(R = u.value.start) == null ? void 0 : R.hour}:${(I = u.value.start) == null ? void 0 : I.minute}`),
204
- "onUpdate:modelValue": n[2] || (n[2] = (o) => {
205
- if (u.value.start) {
206
- const y = m(h)(`${o.hours}:${o.minutes} ${o.period}`, "h:m A").locale(
207
- m(N)()
208
- );
209
- u.value.start.hour = y.get("hour"), u.value.start.minute = y.get("minute");
210
- }
211
- })
212
- }, null, 8, ["model-value"])
213
- ]),
214
- p("p", he, b(m(l)("report.date.endingTime")), 1),
215
- p("div", Ce, [
216
- c($, {
217
- "model-value": F(`${(E = u.value.end) == null ? void 0 : E.hour}:${(P = u.value.end) == null ? void 0 : P.minute}`),
218
- "onUpdate:modelValue": n[3] || (n[3] = (o) => {
219
- if (u.value.end) {
220
- const y = m(h)(`${o.hours}:${o.minutes} ${o.period}`, "h:m A").locale(
221
- m(N)()
222
- );
223
- u.value.end.hour = y.get("hour"), u.value.end.minute = y.get("minute");
224
- }
225
- })
226
- }, null, 8, ["model-value"])
227
- ])
228
- ], 64)) : Y("", !0),
229
- p("div", Re, [
230
- n[7] || (n[7] = p("div", { class: "grow" }, null, -1)),
231
- c(k, {
232
- label: m(l)("report.common.cancel"),
233
- variant: "tertiary",
234
- onClick: n[4] || (n[4] = (o) => w.value = !1)
235
- }, null, 8, ["label"]),
236
- c(k, {
237
- label: m(l)("report.common.apply"),
238
- onClick: n[5] || (n[5] = () => T(JSON.parse(JSON.stringify(u.value))))
239
- }, null, 8, ["label"])
240
- ])
241
- ])
242
- ];
243
- }),
244
- _: 1
245
- }, 8, ["show-popover"])
246
- ]);
247
- };
248
- }
249
- }), Le = /* @__PURE__ */ M({
250
- __name: "BaseDialog",
251
- props: /* @__PURE__ */ B({
252
- title: {
253
- type: String,
254
- default: "Title"
255
- },
256
- primaryButtonLabel: {
257
- type: String,
258
- default: "Confirm"
259
- },
260
- secondaryButtonLabel: {
261
- type: String,
262
- default: "Cancel"
263
- }
264
- }, {
265
- modelValue: { type: Boolean, required: !0 },
266
- modelModifiers: {}
267
- }),
268
- emits: /* @__PURE__ */ B(["confirm"], ["update:modelValue"]),
269
- setup(e, { emit: t }) {
270
- const l = U(e, "modelValue"), s = e, a = t;
271
- return H(l, () => {
272
- l.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
273
- }), (S, i) => {
274
- const T = v("FmButton"), F = v("FmDialog");
275
- return D(), q(F, {
276
- modelValue: l.value,
277
- "onUpdate:modelValue": i[2] || (i[2] = (u) => l.value = u),
278
- overlay: ""
279
- }, {
280
- "dialog-header": g(() => [
281
- z(b(s.title), 1)
282
- ]),
283
- default: g(() => [
284
- ne(S.$slots, "content")
285
- ]),
286
- "dialog-footer": g(() => [
287
- i[3] || (i[3] = p("div", { class: "grow" }, null, -1)),
288
- c(T, {
289
- label: s.secondaryButtonLabel,
290
- variant: "tertiary",
291
- onClick: i[0] || (i[0] = (u) => l.value = !1)
292
- }, null, 8, ["label"]),
293
- c(T, {
294
- label: s.primaryButtonLabel,
295
- variant: "primary",
296
- onClick: i[1] || (i[1] = (u) => a("confirm"))
297
- }, null, 8, ["label"])
298
- ]),
299
- _: 3
300
- }, 8, ["modelValue"]);
301
- };
302
- }
303
- });
304
- export {
305
- ie as P,
306
- re as R,
307
- ue as W,
308
- Be as _,
309
- Le as a,
310
- Ne as b,
311
- xe as g,
312
- pe as s,
313
- j as t,
314
- Ve as v
315
- };