@feedmepos/mf-report 5.4.15-beta.1 → 5.4.15-beta.3

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 (45) hide show
  1. package/dist/App-DufL3Y8h.js +152 -0
  2. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DLDk5l4R.js +162 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-Bxuyjrkr.js → Default.vue_vue_type_script_setup_true_lang-DVLxkOOQ.js} +2 -2
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-C29g9w6o.js +999 -0
  5. package/dist/{InsightView-D78TK2E8.js → InsightView-tyeJBlRm.js} +1051 -1049
  6. package/dist/Integration-ILSIf-OL.js +3695 -0
  7. package/dist/Integrations-DwgNrM3U.js +334 -0
  8. package/dist/{Layout-DERpCrQk.js → Layout-Bw1oh6Q-.js} +1 -1
  9. package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js → LocationSelect.vue_vue_type_script_setup_true_lang-BFj4d-UF.js} +1861 -1859
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DzZeasAK.js +277 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-C8yzWDXs.js → NavigationTab.vue_vue_type_script_setup_true_lang-_eC_tMk_.js} +5526 -5482
  12. package/dist/NoData.vue_vue_type_script_setup_true_lang-BtQobm-7.js +31 -0
  13. package/dist/OverviewView-Dl8oOobn.js +61 -0
  14. package/dist/Report-BqD8KVZ8.js +424 -0
  15. package/dist/ReportEditor-DkzFUgbO.js +532 -0
  16. package/dist/ReportView-DpWZHV0o.js +169 -0
  17. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-C3VG1mi_.js +104 -0
  18. package/dist/Setting-CYrg_50p.js +320 -0
  19. package/dist/TileEditor-CDrzLbqc.js +2320 -0
  20. package/dist/{TransitionFade-BLDfpF7R.js → TransitionFade-D19wC3tb.js} +225 -220
  21. package/dist/app.js +915 -27
  22. package/dist/{global-loader-CMC9fgBi.js → global-loader-C3JC7z-H.js} +4966 -2240
  23. package/dist/index-9IDzTnHw.js +147 -0
  24. package/dist/{report-schema-G0x3CoJb.js → report-schema-1zQJbLyB.js} +4 -4
  25. package/dist/style.css +1 -1
  26. package/dist/timeFormat-CjNvJMgk.js +9 -0
  27. package/dist/{v4-DF7wffYN.js → v4-D29FkHfi.js} +2666 -1927
  28. package/package.json +1 -1
  29. package/dist/App-mcSgbcVY.js +0 -133
  30. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js +0 -160
  31. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-B6IzlHmr.js +0 -996
  32. package/dist/HeaderTab.vue_vue_type_script_setup_true_lang-B5VBDNwX.js +0 -19
  33. package/dist/Integration-Cm6_YEEE.js +0 -3554
  34. package/dist/Integrations-WWnSho0Q.js +0 -334
  35. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-h87kWy1E.js +0 -261
  36. package/dist/NoData.vue_vue_type_script_setup_true_lang-DlBNFLa3.js +0 -30
  37. package/dist/OverviewView-D7zAR7_7.js +0 -60
  38. package/dist/Report-BnX5amn0.js +0 -409
  39. package/dist/ReportEditor-DW7uWg_a.js +0 -530
  40. package/dist/ReportView-xSaJA5F6.js +0 -166
  41. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-DBI9op0g.js +0 -103
  42. package/dist/Setting-D8JspXTN.js +0 -326
  43. package/dist/TileEditor-DQ8C5I_M.js +0 -2301
  44. package/dist/index-SmIkb24L.js +0 -143
  45. package/dist/timeFormat-BF-F4Rnt.js +0 -9
@@ -0,0 +1,147 @@
1
+ import { d as n } from "./global-loader-C3JC7z-H.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.common.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 S(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 U(r, e) {
91
+ const [t, a, l] = i(r, e), c = y(e == null ? void 0 : e.locale), s = m(e == null ? void 0 : e.locale), u = e != null && e.mergeAmbiguousCharacters ? h(c, s) : g(c, s);
92
+ return t + a.map(u).join((e == null ? void 0 : e.delimiter) ?? "") + l;
93
+ }
94
+ function F(r, e) {
95
+ const [t, a, l] = i(r, e), c = y(e == null ? void 0 : e.locale), s = m(e == null ? void 0 : e.locale);
96
+ return t + a.map(h(c, s)).join((e == null ? void 0 : e.delimiter) ?? " ") + l;
97
+ }
98
+ function I(r, e) {
99
+ const [t, a, l] = i(r, e), c = y(e == null ? void 0 : e.locale), s = m(e == null ? void 0 : e.locale), u = h(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 m(r) {
106
+ return r === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(r);
107
+ }
108
+ function h(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
+ S as b,
142
+ F as c,
143
+ T as d,
144
+ M as g,
145
+ U as p,
146
+ I as s
147
+ };
@@ -1,18 +1,18 @@
1
- import { F as c, f as s } from "./global-loader-CMC9fgBi.js";
1
+ import { F as c, h as s } from "./global-loader-C3JC7z-H.js";
2
2
  import { defineStore as a } from "pinia";
3
3
  import { ref as n } from "vue";
4
4
  import { useSnackbar as m } from "@feedmepos/ui-library";
5
- const f = () => {
5
+ const h = () => {
6
6
  const e = {
7
7
  fetchType: c.Get,
8
8
  url: "/schemas"
9
9
  };
10
10
  return s.fetch(e);
11
- }, h = "mf-reportschema-store", l = a(h, () => {
11
+ }, f = "mf-reportschema-store", l = a(f, () => {
12
12
  const e = n([]), r = m();
13
13
  async function t() {
14
14
  try {
15
- e.value = await f();
15
+ e.value = await h();
16
16
  } catch (o) {
17
17
  console.log(o), r.open({
18
18
  title: "Get Schema Error",
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .circular{padding:0;height:calc(100% - 36px)}.circular .grow{height:100%}.sparkline{margin:0;padding:0}.sparkline .grow{height:50px;flex-grow:0}.scrollbar-hide-table>div{scrollbar-width:thin}.bar-chart{padding:0;height:calc(100% - 36px)}.bar-chart .grow{height:100%}.bar-chart .flex-col{gap:0}.line-chart{padding:0 0 8px;height:calc(100% - 36px)}.line-chart .grow{height:100%}.line-chart .flex-col{gap:0}.card-container[data-v-f5be87d9]{overflow-y:auto;overflow-x:hidden}.show-pin{visibility:hidden}.row:hover .show-pin{visibility:visible}.icon-btn{border-radius:100%}.overlay{background:#0006;position:absolute;top:0;left:0;height:100vh;width:100vw}.side-panel{position:fixed;right:0;top:0;height:100%;background:#fff}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transition:all .3s ease-out}.slide-enter-from,.slide-leave-to{transform:translate(100%)}.selected-widget[data-v-c42ca7ee]{background-color:#fff4e6;border-color:#ff7823}.slide-fade-enter-active[data-v-f83598f1],.slide-fade-leave-active[data-v-f83598f1]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-f83598f1],.slide-fade-leave-to[data-v-f83598f1]{transform:translateY(-50px);opacity:0}.slide-fade-right-enter-active[data-v-a98ca9bc],.slide-fade-right-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-right-enter-from[data-v-a98ca9bc],.slide-fade-right-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.4}.slide-fade-left-enter-active[data-v-a98ca9bc]{transition-delay:.3s;transition:all .3s ease-in-out}.slide-fade-left-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-left-enter-from[data-v-a98ca9bc],.slide-fade-left-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.1}.fm-top-sheet{height:100%}.integration-card[data-v-af4dc7b5]{height:140px;width:140px;padding:0}.integration-card .logo-card[data-v-af4dc7b5]{width:100%;padding:24px;background:#fff}.integration-card .title-card[data-v-af4dc7b5]{height:36px;color:#fff}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}
1
+ .circular{padding:0;height:calc(100% - 36px)}.circular .grow{height:100%}.sparkline{margin:0;padding:0}.sparkline .grow{height:50px;flex-grow:0}.scrollbar-hide-table>div{scrollbar-width:thin}.bar-chart{padding:0;height:calc(100% - 36px)}.bar-chart .grow{height:100%}.bar-chart .flex-col{gap:0}.line-chart{padding:0 0 8px;height:calc(100% - 36px)}.line-chart .grow{height:100%}.line-chart .flex-col{gap:0}.card-container[data-v-1284dd51]{overflow-y:auto;overflow-x:hidden}.show-pin{visibility:hidden}.row:hover .show-pin{visibility:visible}.icon-btn{border-radius:100%}.overlay{background:#0006;position:absolute;top:0;left:0;height:100vh;width:100vw}.side-panel{position:fixed;right:0;top:0;height:100%;background:#fff}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transition:all .3s ease-out}.slide-enter-from,.slide-leave-to{transform:translate(100%)}.selected-widget[data-v-d75aa4ca]{background-color:#fff4e6;border-color:#ff7823}.slide-fade-enter-active[data-v-f83598f1],.slide-fade-leave-active[data-v-f83598f1]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-f83598f1],.slide-fade-leave-to[data-v-f83598f1]{transform:translateY(-50px);opacity:0}.slide-fade-right-enter-active[data-v-a98ca9bc],.slide-fade-right-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-right-enter-from[data-v-a98ca9bc],.slide-fade-right-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.4}.slide-fade-left-enter-active[data-v-a98ca9bc]{transition-delay:.3s;transition:all .3s ease-in-out}.slide-fade-left-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-left-enter-from[data-v-a98ca9bc],.slide-fade-left-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.1}.fm-top-sheet{height:100%}.integration-card[data-v-8133bb2c]{height:140px;width:140px;padding:0}.integration-card .logo-card[data-v-8133bb2c]{width:100%;padding:24px;background:#fff}.integration-card .title-card[data-v-8133bb2c]{height:36px;color:#fff}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}
@@ -0,0 +1,9 @@
1
+ import { d as o } from "./global-loader-C3JC7z-H.js";
2
+ const u = (t, e = "en") => o().set("hour", t.hour).set("minute", t.minute).locale(e).format("h:mm A"), m = (t, e) => {
3
+ const s = o().set("hour", t.hour).set("minute", t.minute);
4
+ return o().set("hour", e.hour).set("minute", e.minute) < s ? "+1" : "";
5
+ };
6
+ export {
7
+ m as s,
8
+ u as t
9
+ };