@feedmepos/mf-report 5.4.8 → 5.4.9
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.
- package/dist/App-kcBxi_q1.js +133 -0
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-MQNSV-xg.js +59 -0
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-UFE8dqQT.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js} +47 -45
- package/dist/{Default.vue_vue_type_script_setup_true_lang-2KbsvIja.js → Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js} +9 -8
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-qHXYaBLd.js → DynamicWidget.vue_vue_type_script_setup_true_lang-yMu4zk2g.js} +11 -8
- package/dist/{InsightView-m2mp2Vwn.js → InsightView-GIj2fwLa.js} +9 -8
- package/dist/{Integration-v7Vx19wK.js → Integration-YTGIj4Ae.js} +31 -29
- package/dist/{Integrations-5bMwLGDG.js → Integrations-drS5pVEz.js} +27 -25
- package/dist/{Layout-OsxZkd-c.js → Layout-G0qypnQY.js} +1 -1
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-PJJaEOeS.js +7994 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-rG63dKPQ.js → MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js} +39 -35
- package/dist/NavigationTab.vue_vue_type_script_setup_true_lang-LsUKLCAW.js +26885 -0
- package/dist/{OverviewView-bcZDNzyp.js → OverviewView-1MQAX-5G.js} +4 -4
- package/dist/{Report-QoZGgCFl.js → Report-WYkPEjUh.js} +47 -45
- package/dist/{ReportEditor-4XSyHMDr.js → ReportEditor-6EAPap-S.js} +17 -15
- package/dist/{ReportView-sA3IRxvk.js → ReportView-aky03f2y.js} +36 -33
- package/dist/{Setting-ciEdGVzI.js → Setting-IV26Ng45.js} +36 -34
- package/dist/{TileEditor-oIzGozIp.js → TileEditor-Qn4ZRR39.js} +20 -15
- package/dist/{TransitionFade-u0ffhMND.js → TransitionFade-_dSKw899.js} +65 -62
- package/dist/_plugin-vue_export-helper-hUChTQA_.js +9 -0
- package/dist/app.js +85 -3
- package/dist/global-loader-hSpvBPX1.js +3265 -0
- package/dist/index-JAqUtp7I.js +143 -0
- package/dist/message-dialog-yXvmoAPz.js +20 -0
- package/dist/report-schema-IBXDBT4U.js +31 -0
- package/dist/{timeFormat-KhCrm7K_.js → timeFormat-yx3JOmGm.js} +1 -1
- package/dist/v4-Ihuna0O0.js +17578 -0
- package/package.json +6 -4
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-CXdNe2NF.js +0 -84
- package/dist/app-hTKIk5PV.js +0 -48128
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { f } from "./global-loader-hSpvBPX1.js";
|
|
2
|
+
var n = /* @__PURE__ */ ((r) => (r.Year = "YEAR", r.Month = "MONTH", r.Week = "WEEK", r.Day = "DAY", r))(n || {});
|
|
3
|
+
function g(r, e = 100, a = !1) {
|
|
4
|
+
let t = null;
|
|
5
|
+
const c = (...l) => {
|
|
6
|
+
const u = () => {
|
|
7
|
+
t = null, a !== !0 && r.apply(this, l);
|
|
8
|
+
};
|
|
9
|
+
t !== null ? clearTimeout(t) : a === !0 && r.apply(this, l), t = setTimeout(u, e);
|
|
10
|
+
};
|
|
11
|
+
return c.cancel = () => {
|
|
12
|
+
t !== null && clearTimeout(t);
|
|
13
|
+
}, c;
|
|
14
|
+
}
|
|
15
|
+
function L() {
|
|
16
|
+
return [...Array(12).keys()].map((r) => f().month(r).format("MMM"));
|
|
17
|
+
}
|
|
18
|
+
function w(r, e = "") {
|
|
19
|
+
switch (r.type) {
|
|
20
|
+
case n.Day:
|
|
21
|
+
return "Every Day";
|
|
22
|
+
case n.Week: {
|
|
23
|
+
let a = "Weekly , every ";
|
|
24
|
+
const t = [
|
|
25
|
+
"Sunday",
|
|
26
|
+
"Monday",
|
|
27
|
+
"Tuesday",
|
|
28
|
+
"Wednesday",
|
|
29
|
+
"Thursday",
|
|
30
|
+
"Friday",
|
|
31
|
+
"Saturday"
|
|
32
|
+
];
|
|
33
|
+
if (r.days)
|
|
34
|
+
for (let c = 0; c < r.days.length; c++)
|
|
35
|
+
a = a + t[r.days[c]] + (c !== r.days.length - 1 ? "," : "");
|
|
36
|
+
return a;
|
|
37
|
+
}
|
|
38
|
+
case n.Month: {
|
|
39
|
+
let a = "Monthly , every ";
|
|
40
|
+
return r.days && (a = a + r.days.join(",")), a;
|
|
41
|
+
}
|
|
42
|
+
case n.Year: {
|
|
43
|
+
if (!r.months && !r.days)
|
|
44
|
+
return "Custom Date";
|
|
45
|
+
let a = "Yearly , every ";
|
|
46
|
+
if (r.months) {
|
|
47
|
+
const t = L();
|
|
48
|
+
a = a + r.months.map((c) => t[c - 1]).join(",");
|
|
49
|
+
}
|
|
50
|
+
return r.months && r.days && (a = a + " and "), r.days && (a = a + r.days.join(",")), a;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
return e;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function S(r) {
|
|
57
|
+
if (!r.startDate || !r.endDate)
|
|
58
|
+
return "No comparison";
|
|
59
|
+
let e = f().subtract(1, "day").endOf("day"), a = f().endOf("day");
|
|
60
|
+
return r.startDate && (e = f(r.startDate)), r.endDate && (a = f(r.endDate)), e.format("YYYY") !== a.format("YYYY") ? `${e.format("DD MMM YYYY")} - ${a.format("DD MMM YYYY")}` : `${e.format("DD MMM")} - ${a.format("DD MMM YYYY")}`;
|
|
61
|
+
}
|
|
62
|
+
const x = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), A = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), T = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), _ = /[^\p{L}\d]+/giu, Y = "$1\0$2", D = "";
|
|
63
|
+
function E(r) {
|
|
64
|
+
let e = r.trim();
|
|
65
|
+
e = e.replace(x, Y).replace(A, Y), e = e.replace(_, "\0");
|
|
66
|
+
let a = 0, t = e.length;
|
|
67
|
+
for (; e.charAt(a) === "\0"; )
|
|
68
|
+
a++;
|
|
69
|
+
if (a === t)
|
|
70
|
+
return [];
|
|
71
|
+
for (; e.charAt(t - 1) === "\0"; )
|
|
72
|
+
t--;
|
|
73
|
+
return e.slice(a, t).split(/\0/g);
|
|
74
|
+
}
|
|
75
|
+
function C(r) {
|
|
76
|
+
const e = E(r);
|
|
77
|
+
for (let a = 0; a < e.length; a++) {
|
|
78
|
+
const t = e[a], c = T.exec(t);
|
|
79
|
+
if (c) {
|
|
80
|
+
const l = c.index + (c[1] ?? c[2]).length;
|
|
81
|
+
e.splice(a, 1, t.slice(0, l), t.slice(l));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return e;
|
|
85
|
+
}
|
|
86
|
+
function F(r, e) {
|
|
87
|
+
const [a, t, c] = i(r, e), l = y(e == null ? void 0 : e.locale), u = h(e == null ? void 0 : e.locale), s = e != null && e.mergeAmbiguousCharacters ? m(l, u) : P(l, u);
|
|
88
|
+
return a + t.map(s).join((e == null ? void 0 : e.delimiter) ?? "") + c;
|
|
89
|
+
}
|
|
90
|
+
function I(r, e) {
|
|
91
|
+
const [a, t, c] = i(r, e), l = y(e == null ? void 0 : e.locale), u = h(e == null ? void 0 : e.locale);
|
|
92
|
+
return a + t.map(m(l, u)).join((e == null ? void 0 : e.delimiter) ?? " ") + c;
|
|
93
|
+
}
|
|
94
|
+
function U(r, e) {
|
|
95
|
+
const [a, t, c] = i(r, e), l = y(e == null ? void 0 : e.locale), u = h(e == null ? void 0 : e.locale), s = m(l, u);
|
|
96
|
+
return a + t.map((d, M) => M === 0 ? s(d) : l(d)).join((e == null ? void 0 : e.delimiter) ?? " ") + c;
|
|
97
|
+
}
|
|
98
|
+
function y(r) {
|
|
99
|
+
return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
|
|
100
|
+
}
|
|
101
|
+
function h(r) {
|
|
102
|
+
return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
|
|
103
|
+
}
|
|
104
|
+
function m(r, e) {
|
|
105
|
+
return (a) => `${e(a[0])}${r(a.slice(1))}`;
|
|
106
|
+
}
|
|
107
|
+
function P(r, e) {
|
|
108
|
+
return (a, t) => {
|
|
109
|
+
const c = a[0];
|
|
110
|
+
return (t > 0 && c >= "0" && c <= "9" ? "_" + c : e(c)) + r(a.slice(1));
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function i(r, e = {}) {
|
|
114
|
+
const a = e.split ?? (e.separateNumbers ? C : E), t = e.prefixCharacters ?? D, c = e.suffixCharacters ?? D;
|
|
115
|
+
let l = 0, u = r.length;
|
|
116
|
+
for (; l < r.length; ) {
|
|
117
|
+
const s = r.charAt(l);
|
|
118
|
+
if (!t.includes(s))
|
|
119
|
+
break;
|
|
120
|
+
l++;
|
|
121
|
+
}
|
|
122
|
+
for (; u > l; ) {
|
|
123
|
+
const s = u - 1, d = r.charAt(s);
|
|
124
|
+
if (!c.includes(d))
|
|
125
|
+
break;
|
|
126
|
+
u = s;
|
|
127
|
+
}
|
|
128
|
+
return [
|
|
129
|
+
r.slice(0, l),
|
|
130
|
+
a(r.slice(l, u)),
|
|
131
|
+
r.slice(u)
|
|
132
|
+
];
|
|
133
|
+
}
|
|
134
|
+
export {
|
|
135
|
+
n as C,
|
|
136
|
+
w as a,
|
|
137
|
+
S as b,
|
|
138
|
+
I as c,
|
|
139
|
+
g as d,
|
|
140
|
+
L as g,
|
|
141
|
+
F as p,
|
|
142
|
+
U as s
|
|
143
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineStore as i } from "pinia";
|
|
2
|
+
import { ref as a } from "vue";
|
|
3
|
+
const m = "mf-reportmessage-dialog", g = i(m, () => {
|
|
4
|
+
const e = a(!1), t = a(""), l = a(""), s = a(null);
|
|
5
|
+
function r(o) {
|
|
6
|
+
return e.value = !1, t.value = o.message, l.value = o.title || "", e.value = !0, new Promise((f) => {
|
|
7
|
+
s.value = f;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function u() {
|
|
11
|
+
e.value = !1, s.value && s.value(!1);
|
|
12
|
+
}
|
|
13
|
+
function n() {
|
|
14
|
+
e.value = !1, s.value && s.value(!0);
|
|
15
|
+
}
|
|
16
|
+
return { isOpened: e, message: t, title: l, promptMessage: r, dismiss: u, confirm: n };
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
g as u
|
|
20
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { F as c, g as s } from "./global-loader-hSpvBPX1.js";
|
|
2
|
+
import { defineStore as a } from "pinia";
|
|
3
|
+
import { ref as n } from "vue";
|
|
4
|
+
import { useSnackbar as m } from "@feedmepos/ui-library";
|
|
5
|
+
const h = () => {
|
|
6
|
+
const e = {
|
|
7
|
+
fetchType: c.Get,
|
|
8
|
+
url: "/schemas"
|
|
9
|
+
};
|
|
10
|
+
return s.fetch(e);
|
|
11
|
+
}, f = "mf-reportschema-store", g = a(f, () => {
|
|
12
|
+
const e = n([]), r = m();
|
|
13
|
+
async function t() {
|
|
14
|
+
try {
|
|
15
|
+
e.value = await h();
|
|
16
|
+
} catch (o) {
|
|
17
|
+
console.log(o), r.open({
|
|
18
|
+
title: "Get Schema Error",
|
|
19
|
+
message: "Internal Server Error",
|
|
20
|
+
type: "error"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
schemas: e,
|
|
26
|
+
getSchema: t
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
g as u
|
|
31
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as s } from "./global-loader-hSpvBPX1.js";
|
|
2
2
|
const u = (t) => s().set("hour", t.hour).set("minute", t.minute).format("h:mm A"), m = (t, e) => {
|
|
3
3
|
const o = s().set("hour", t.hour).set("minute", t.minute);
|
|
4
4
|
return s().set("hour", e.hour).set("minute", e.minute) < o ? "+1" : "";
|