@feedmepos/mf-report 5.19.19-beta.0 → 5.19.20

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 (32) hide show
  1. package/dist/{App-BG5uoHAn.js → App-CpPkDCME.js} +31 -31
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-dX7Y4f-_.js → BaseDialog.vue_vue_type_script_setup_true_lang-BLVm6EP9.js} +718 -962
  3. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.js +185 -0
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-arY3ZcKZ.js → Default.vue_vue_type_script_setup_true_lang-DTHkWGvx.js} +2 -2
  5. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DVY4vxAN.js +1669 -0
  6. package/dist/{InsightView-BEo7cPN3.js → InsightView-wYbhKrWa.js} +5 -5
  7. package/dist/{Integration-BovNO2yX.js → Integration-GkPCivXG.js} +2 -2
  8. package/dist/{Integrations-DIXSWGS_.js → Integrations-BGNXoeWI.js} +3 -3
  9. package/dist/{Layout-DhAHGBTk.js → Layout-B7pJLV4_.js} +1 -1
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-C7pQMilo.js +352 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DuzQ1OX-.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cl6q8Efn.js} +7518 -7331
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js → NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js} +1 -1
  13. package/dist/{OverviewView-DEZKfz6j.js → OverviewView-DzumtIfB.js} +5 -5
  14. package/dist/{Report-WQb5zc2W.js → Report-B_SX8ejx.js} +4 -4
  15. package/dist/ReportEditor-D5OHT5As.js +1013 -0
  16. package/dist/{ReportView-CJ4PA-Je.js → ReportView-DPMurcsC.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js → SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js} +1 -1
  18. package/dist/{Setting-Do3ReOAh.js → Setting-BsikuNba.js} +4 -4
  19. package/dist/TileEditor-Bzk4U52d.js +2735 -0
  20. package/dist/TransitionFade-Blz6m84x.js +2499 -0
  21. package/dist/app.js +15 -41
  22. package/dist/assets/{formatChartData.worker-DOuklPCk.js → formatChartData.worker-CO5zKPH5.js} +6 -6
  23. package/dist/assets/{processTableData.worker-DphUPEW7.js → processTableData.worker-BAMcED0j.js} +6 -6
  24. package/dist/helper-B2iB0Dbh.js +75 -0
  25. package/dist/{vue-i18n-BJW_sJot.js → vue-i18n-D33f1SSo.js} +400 -405
  26. package/package.json +1 -1
  27. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js +0 -282
  28. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-BlJuhyD7.js +0 -2377
  29. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BSapw37S.js +0 -107
  30. package/dist/ReportEditor-BiRciW22.js +0 -1055
  31. package/dist/TileEditor-S-aswtJh.js +0 -2744
  32. package/dist/TransitionFade-C6FDOvN4.js +0 -2365
@@ -0,0 +1,75 @@
1
+ import { d } from "./vue-i18n-D33f1SSo.js";
2
+ var u = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(u || {});
3
+ function c(e, a = 100) {
4
+ let r = null;
5
+ const t = function(...n) {
6
+ return r && clearTimeout(r), new Promise((s) => {
7
+ r = setTimeout(() => {
8
+ r = null;
9
+ const l = e(...n);
10
+ s(l);
11
+ }, a);
12
+ });
13
+ };
14
+ return t.cancel = () => {
15
+ r && (clearTimeout(r), r = null);
16
+ }, t;
17
+ }
18
+ function y() {
19
+ return [...Array(12).keys()].map((e) => d().month(e).format("MMM"));
20
+ }
21
+ function f(e, a, r = "") {
22
+ switch (e.type) {
23
+ case u.Day:
24
+ return a("report.schedule.everyDay");
25
+ case u.Week: {
26
+ let t = `${a("report.schedule.everyWeek")} `;
27
+ const n = [
28
+ a("report.days.sunday"),
29
+ a("report.days.monday"),
30
+ a("report.days.tuesday"),
31
+ a("report.days.wednesday"),
32
+ a("report.days.thursday"),
33
+ a("report.days.friday"),
34
+ a("report.days.saturday")
35
+ ];
36
+ if (e.days)
37
+ for (let s = 0; s < e.days.length; s++)
38
+ t = t + n[e.days[s]] + (s !== e.days.length - 1 ? "," : "");
39
+ return t;
40
+ }
41
+ case u.Month: {
42
+ let t = `${a("report.schedule.everyMonth")} `;
43
+ return e.days && (t = t + e.days.join(",")), t;
44
+ }
45
+ case u.Year: {
46
+ if (!e.months && !e.days)
47
+ return a("report.schedule.customDate");
48
+ let t = `${a("report.schedule.everyYear")} `;
49
+ if (e.months) {
50
+ const n = y();
51
+ t = t + e.months.map((s) => n[s - 1]).join(",");
52
+ }
53
+ return e.months && e.days && (t = t + ` ${a("report.common.and")} `), e.days && (t = t + e.days.join(",")), t;
54
+ }
55
+ default:
56
+ return r;
57
+ }
58
+ }
59
+ function m(e = {
60
+ startDate: null,
61
+ endDate: null,
62
+ locale: "en-US"
63
+ }) {
64
+ if (!e.startDate || !e.endDate)
65
+ return "No comparison";
66
+ let a = d().subtract(1, "day").endOf("day"), r = d().endOf("day");
67
+ return e.startDate && (a = d(e.startDate).locale(e.locale)), e.endDate && (r = d(e.endDate).locale(e.locale)), a.format("YYYY") !== r.format("YYYY") ? `${a.format("DD MMM YYYY")} - ${r.format("DD MMM YYYY")}` : `${a.format("DD MMM")} - ${r.format("DD MMM YYYY")}`;
68
+ }
69
+ export {
70
+ u as C,
71
+ c as a,
72
+ f as b,
73
+ m as d,
74
+ y as g
75
+ };