@feedmepos/mf-report 5.8.2 → 5.9.0-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 (37) hide show
  1. package/dist/{App-C6VF9T5V.js → App-CQsY_29Q.js} +35 -36
  2. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-w7lSYFth.js +180 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-B0_QlxYu.js → Default.vue_vue_type_script_setup_true_lang-DeKEY6-a.js} +2 -2
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-Dc0etyos.js +1447 -0
  5. package/dist/{InsightView-BQlzh0ue.js → InsightView-DmM_alRs.js} +7 -8
  6. package/dist/Integration-CAX-hbPd.js +5222 -0
  7. package/dist/Integrations-DRYSVJuG.js +338 -0
  8. package/dist/{Layout-RhBG3zKc.js → Layout-CDCrzjoH.js} +1 -1
  9. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DNxXgTX4.js +342 -0
  10. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BdzurgE4.js → NavigationTab.vue_vue_type_script_setup_true_lang-DpFJ_jYh.js} +1078 -1080
  11. package/dist/NoData.vue_vue_type_script_setup_true_lang-DGTWa4E5.js +38 -0
  12. package/dist/{OverviewView-Boq9rgbj.js → OverviewView-DeGcbroH.js} +5 -5
  13. package/dist/{Report-C7GvAhoG.js → Report-Do9-H4EW.js} +4 -4
  14. package/dist/ReportEditor-D4bnl00E.js +968 -0
  15. package/dist/{ReportView-DMLyspIY.js → ReportView-Cz6U-DNK.js} +7 -7
  16. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Dq9vY9mj.js +110 -0
  17. package/dist/{Setting-CLBZdtvx.js → Setting-DIAFop5l.js} +26 -23
  18. package/dist/TileEditor-DGhgxgTD.js +3080 -0
  19. package/dist/{TransitionFade-D3megUTB.js → TransitionFade-DmQjTWuM.js} +207 -203
  20. package/dist/app.js +59 -19
  21. package/dist/helper-CPPrXQSs.js +75 -0
  22. package/dist/style.css +1 -1
  23. package/dist/{v4-Bi2F4URu.js → v4-ZW3e7y3R.js} +1955 -1844
  24. package/dist/{global-loader-CEOgl5uZ.js → vue-i18n-CbAseuRE.js} +2058 -1977
  25. package/package.json +1 -1
  26. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CpakO4U-.js +0 -162
  27. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-BO_HTvjY.js +0 -1417
  28. package/dist/Integration-CB31rvSG.js +0 -4751
  29. package/dist/Integrations-DGlzyZMR.js +0 -334
  30. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DsY5W3k7.js +0 -101
  31. package/dist/NoData.vue_vue_type_script_setup_true_lang-DZJxcekm.js +0 -31
  32. package/dist/ReportEditor-CwzONBLC.js +0 -621
  33. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-C23-eIYF.js +0 -104
  34. package/dist/TileEditor-CtVM3IbI.js +0 -3016
  35. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  36. package/dist/index-CH1WFv_s.js +0 -147
  37. package/dist/report-schema-C3sI223M.js +0 -31
@@ -1,9 +0,0 @@
1
- const s = (t, r) => {
2
- const o = t.__vccOpts || t;
3
- for (const [c, e] of r)
4
- o[c] = e;
5
- return o;
6
- };
7
- export {
8
- s as _
9
- };
@@ -1,147 +0,0 @@
1
- import { d as n } from "./global-loader-CEOgl5uZ.js";
2
- var f = /* @__PURE__ */ ((r) => (r.Year = "YEAR", r.Month = "MONTH", r.Week = "WEEK", r.Day = "DAY", r))(f || {});
3
- function T(r, e = 100, t = !1) {
4
- let a = null;
5
- const l = (...c) => {
6
- const s = () => {
7
- a = null, t !== !0 && r.apply(this, c);
8
- };
9
- a !== null ? clearTimeout(a) : t === !0 && r.apply(this, c), a = setTimeout(s, e);
10
- };
11
- return l.cancel = () => {
12
- a !== null && clearTimeout(a);
13
- }, l;
14
- }
15
- function M() {
16
- return [...Array(12).keys()].map((r) => n().month(r).format("MMM"));
17
- }
18
- function w(r, e, t = "") {
19
- switch (r.type) {
20
- case f.Day:
21
- return e("report.schedule.everyDay");
22
- case f.Week: {
23
- let a = `${e("report.schedule.everyWeek")} `;
24
- const l = [
25
- e("report.days.sunday"),
26
- e("report.days.monday"),
27
- e("report.days.tuesday"),
28
- e("report.days.wednesday"),
29
- e("report.days.thursday"),
30
- e("report.days.friday"),
31
- e("report.days.saturday")
32
- ];
33
- if (r.days)
34
- for (let c = 0; c < r.days.length; c++)
35
- a = a + l[r.days[c]] + (c !== r.days.length - 1 ? "," : "");
36
- return a;
37
- }
38
- case f.Month: {
39
- let a = `${e("report.schedule.everyMonth")} `;
40
- return r.days && (a = a + r.days.join(",")), a;
41
- }
42
- case f.Year: {
43
- if (!r.months && !r.days)
44
- return e("report.schedule.customDate");
45
- let a = `${e("report.schedule.everyYear")} `;
46
- if (r.months) {
47
- const l = M();
48
- a = a + r.months.map((c) => l[c - 1]).join(",");
49
- }
50
- return r.months && r.days && (a = a + ` ${e("report.common.and")} `), r.days && (a = a + r.days.join(",")), a;
51
- }
52
- default:
53
- return t;
54
- }
55
- }
56
- function $(r = {
57
- startDate: null,
58
- endDate: null,
59
- locale: "en-US"
60
- }) {
61
- if (!r.startDate || !r.endDate)
62
- return "No comparison";
63
- let e = n().subtract(1, "day").endOf("day"), t = n().endOf("day");
64
- return r.startDate && (e = n(r.startDate).locale(r.locale)), r.endDate && (t = n(r.endDate).locale(r.locale)), e.format("YYYY") !== t.format("YYYY") ? `${e.format("DD MMM YYYY")} - ${t.format("DD MMM YYYY")}` : `${e.format("DD MMM")} - ${t.format("DD MMM YYYY")}`;
65
- }
66
- const x = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), A = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), _ = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), P = /[^\p{L}\d]+/giu, D = "$1\0$2", Y = "";
67
- function E(r) {
68
- let e = r.trim();
69
- e = e.replace(x, D).replace(A, D), e = e.replace(P, "\0");
70
- let t = 0, a = e.length;
71
- for (; e.charAt(t) === "\0"; )
72
- t++;
73
- if (t === a)
74
- return [];
75
- for (; e.charAt(a - 1) === "\0"; )
76
- a--;
77
- return e.slice(t, a).split(/\0/g);
78
- }
79
- function R(r) {
80
- const e = E(r);
81
- for (let t = 0; t < e.length; t++) {
82
- const a = e[t], l = _.exec(a);
83
- if (l) {
84
- const c = l.index + (l[1] ?? l[2]).length;
85
- e.splice(t, 1, a.slice(0, c), a.slice(c));
86
- }
87
- }
88
- return e;
89
- }
90
- function S(r, e) {
91
- const [t, a, l] = i(r, e), c = y(e == null ? void 0 : e.locale), s = h(e == null ? void 0 : e.locale), u = e != null && e.mergeAmbiguousCharacters ? m(c, s) : g(c, s);
92
- return t + a.map(u).join((e == null ? void 0 : e.delimiter) ?? "") + l;
93
- }
94
- function U(r, e) {
95
- const [t, a, l] = i(r, e), c = y(e == null ? void 0 : e.locale), s = h(e == null ? void 0 : e.locale);
96
- return t + a.map(m(c, s)).join((e == null ? void 0 : e.delimiter) ?? " ") + l;
97
- }
98
- function F(r, e) {
99
- const [t, a, l] = i(r, e), c = y(e == null ? void 0 : e.locale), s = h(e == null ? void 0 : e.locale), u = m(c, s);
100
- return t + a.map((d, L) => L === 0 ? u(d) : c(d)).join((e == null ? void 0 : e.delimiter) ?? " ") + l;
101
- }
102
- function y(r) {
103
- return r === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(r);
104
- }
105
- function h(r) {
106
- return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
107
- }
108
- function m(r, e) {
109
- return (t) => `${e(t[0])}${r(t.slice(1))}`;
110
- }
111
- function g(r, e) {
112
- return (t, a) => {
113
- const l = t[0];
114
- return (a > 0 && l >= "0" && l <= "9" ? "_" + l : e(l)) + r(t.slice(1));
115
- };
116
- }
117
- function i(r, e = {}) {
118
- const t = e.split ?? (e.separateNumbers ? R : E), a = e.prefixCharacters ?? Y, l = e.suffixCharacters ?? Y;
119
- let c = 0, s = r.length;
120
- for (; c < r.length; ) {
121
- const u = r.charAt(c);
122
- if (!a.includes(u))
123
- break;
124
- c++;
125
- }
126
- for (; s > c; ) {
127
- const u = s - 1, d = r.charAt(u);
128
- if (!l.includes(d))
129
- break;
130
- s = u;
131
- }
132
- return [
133
- r.slice(0, c),
134
- t(r.slice(c, s)),
135
- r.slice(s)
136
- ];
137
- }
138
- export {
139
- f as C,
140
- w as a,
141
- $ as b,
142
- U as c,
143
- T as d,
144
- M as g,
145
- S as p,
146
- F as s
147
- };
@@ -1,31 +0,0 @@
1
- import { F as c, h as s } from "./global-loader-CEOgl5uZ.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", l = 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
- l as u
31
- };