@feedmepos/mf-report 5.27.50 → 5.27.51

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 (28) hide show
  1. package/dist/{App-BmsF09Zx.js → App-BUacyp4N.js} +4 -4
  2. package/dist/{DateRangeSelect-DFrmdy1V.js → DateRangeSelect-w6BujNnz.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-CiFQcLSi.js → Default.vue_vue_type_script_setup_true_lang-hyLYYw0g.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-B7BFGX1N.js → DynamicWidget.vue_vue_type_script_setup_true_lang-B3srDs3Y.js} +1565 -1560
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-COrPvIuC.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DgDsEckO.js} +2861 -2776
  6. package/dist/{InsightView-ButMjg-U.js → InsightView-DS6rf2VG.js} +4 -4
  7. package/dist/{Integration-kEwQu7ai.js → Integration-BHWhJ9JT.js} +3 -3
  8. package/dist/{Integrations-CQSoSK5V.js → Integrations-BcPNQ1Ga.js} +2 -2
  9. package/dist/{Layout-DTsjR_RE.js → Layout-BGsnPPEz.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BrRzCA9f.js → MenuTab.vue_vue_type_script_setup_true_lang-BsTMVreF.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DUs73Dgk.js → NavigationTab.vue_vue_type_script_setup_true_lang-DuGertQd.js} +3 -3
  12. package/dist/{OverviewView-C7rXqkqu.js → OverviewView-cISqmDJF.js} +5 -5
  13. package/dist/{Report-DmMvV31s.js → Report-uI-i1vQO.js} +4 -4
  14. package/dist/{ReportEditor-BiEsvXZY.js → ReportEditor-lT9Q-hMV.js} +7 -7
  15. package/dist/{ReportView-bervDyDE.js → ReportView-DCeFWOHh.js} +7 -7
  16. package/dist/{Setting-DKnjhY5Y.js → Setting-BWRoxXWB.js} +3 -3
  17. package/dist/{Template-CA1pA8Tn.js → Template-CymYDuLw.js} +4 -4
  18. package/dist/{TileEditor-BO3GDx7j.js → TileEditor-CFtBvrVA.js} +6 -6
  19. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-BwkSae0h.js → TilePageStack.vue_vue_type_script_setup_true_lang-nyilnJSr.js} +99 -99
  20. package/dist/{TransitionFade-PFvFcMin.js → TransitionFade-Kv-ST21m.js} +5 -5
  21. package/dist/{app-BeHt_Ouq.js → app-CbOo1IIJ.js} +1056 -930
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{processTableData.worker-CXe8nW3O.js → formatChartData.worker-BSkJ6ZoI.js} +43 -28
  24. package/dist/assets/{formatChartData.worker-DcDBJkDq.js → processTableData.worker-CIXM58BV.js} +43 -28
  25. package/dist/i18n-DbyciK4x.js +76 -0
  26. package/dist/{useRestaurantPermission-46Gnzr-t.js → useRestaurantPermission-DujRDo_N.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/i18n-CI_sQ5d_.js +0 -76
@@ -0,0 +1,76 @@
1
+ import { detectLocale as A } from "@feedmepos/mf-common";
2
+ const y = new RegExp("\\p{L}[\\p{L}\\p{N}]*", "gu"), L = /^[A-Za-z_$][A-Za-z0-9_$]*$/, h = /* @__PURE__ */ new Set(["zh-CN", "zh-Hant", "th-TH"]);
3
+ function W(t) {
4
+ const n = t.replace(/([A-Za-z0-9])_([A-Za-z0-9])/g, "$1 $2");
5
+ return n.charAt(0).toUpperCase() + n.slice(1);
6
+ }
7
+ function m(t, n) {
8
+ return L.test(n) ? `${t}.${n}` : `${t}[${JSON.stringify(n)}]`;
9
+ }
10
+ function $(t) {
11
+ return t && t.charAt(0).toUpperCase() + t.slice(1);
12
+ }
13
+ function S(t) {
14
+ return Array.from(
15
+ /* @__PURE__ */ new Set([
16
+ t,
17
+ t.toLowerCase(),
18
+ t.toUpperCase(),
19
+ $(t),
20
+ $(t.toLowerCase())
21
+ ])
22
+ );
23
+ }
24
+ function C(t) {
25
+ return t.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
26
+ }
27
+ function g(t, n, e) {
28
+ const i = S(e);
29
+ for (const r of i) {
30
+ const c = [
31
+ `report.dynamic.schema.${r}`,
32
+ `report.dynamic.common.${r}`,
33
+ `report.common.${r}`,
34
+ `report.dynamic.other[${JSON.stringify(r)}]`
35
+ ];
36
+ for (const o of c)
37
+ if (n(o))
38
+ return t(o);
39
+ }
40
+ return e;
41
+ }
42
+ function z(t, n, e, i) {
43
+ const r = C(e), c = h.has(i);
44
+ let o = !1, a = "", s = 0;
45
+ for (const f of r.matchAll(y)) {
46
+ const d = f[0], l = f.index ?? 0, u = r.slice(s, l), p = g(t, n, d);
47
+ p !== d && (o = !0), a += c && /^\s+$/.test(u) ? "" : u, a += p, s = l + d.length;
48
+ }
49
+ return a += r.slice(s), o ? a : "";
50
+ }
51
+ function N(t, n, e, i) {
52
+ if (!e)
53
+ return e || "";
54
+ const r = e.trim(), c = ["report", "dynamic"];
55
+ i && c.push(i);
56
+ const o = c.join("."), a = m(o, r);
57
+ if (n(a))
58
+ return t(a);
59
+ const s = A();
60
+ if (s === "en-US")
61
+ return e;
62
+ const f = z(t, n, r, s);
63
+ if (f)
64
+ return f;
65
+ if (s !== "en-US") {
66
+ const d = W(r), l = m(o, d);
67
+ if (n(l))
68
+ return t(l);
69
+ const u = z(t, n, d, s);
70
+ return u || e;
71
+ }
72
+ return e;
73
+ }
74
+ export {
75
+ N as r
76
+ };
@@ -2,7 +2,7 @@ import { computed as u } from "vue";
2
2
  import { u as c } from "./_plugin-vue_export-helper-kkiiQoKl.js";
3
3
  import { useSnackbar as f } from "@feedmepos/ui-library";
4
4
  import { useCoreStore as d } from "@feedmepos/mf-common";
5
- import { Z as l, _ as i } from "./app-BeHt_Ouq.js";
5
+ import { Z as l, _ as i } from "./app-CbOo1IIJ.js";
6
6
  function g(t) {
7
7
  return Array.isArray(t) ? t : [];
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.27.50",
3
+ "version": "5.27.51",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,76 +0,0 @@
1
- import { detectLocale as z } from "@feedmepos/mf-common";
2
- const y = new RegExp("\\p{L}[\\p{L}\\p{N}]*", "gu"), A = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
3
- function L(r) {
4
- const n = r.replace(/([A-Za-z0-9])_([A-Za-z0-9])/g, "$1 $2");
5
- return n.charAt(0).toUpperCase() + n.slice(1);
6
- }
7
- function l(r, n) {
8
- return A.test(n) ? `${r}.${n}` : `${r}[${JSON.stringify(n)}]`;
9
- }
10
- function $(r) {
11
- return r && r.charAt(0).toUpperCase() + r.slice(1);
12
- }
13
- function W(r) {
14
- return Array.from(
15
- /* @__PURE__ */ new Set([
16
- r,
17
- r.toLowerCase(),
18
- r.toUpperCase(),
19
- $(r),
20
- $(r.toLowerCase())
21
- ])
22
- );
23
- }
24
- function S(r) {
25
- return r.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
26
- }
27
- function Z(r, n, t) {
28
- const i = W(t);
29
- for (const e of i) {
30
- const a = [
31
- `report.dynamic.schema.${e}`,
32
- `report.dynamic.common.${e}`,
33
- `report.common.${e}`,
34
- `report.dynamic.other[${JSON.stringify(e)}]`
35
- ];
36
- for (const o of a)
37
- if (n(o))
38
- return r(o);
39
- }
40
- return t;
41
- }
42
- function m(r, n, t) {
43
- const i = S(t);
44
- let e = !1;
45
- const a = i.replace(y, (o) => {
46
- const s = Z(r, n, o);
47
- return s !== o && (e = !0), s;
48
- });
49
- return e ? a : "";
50
- }
51
- function C(r, n, t, i) {
52
- if (!t)
53
- return t || "";
54
- const e = t.trim(), a = ["report", "dynamic"];
55
- i && a.push(i);
56
- const o = a.join("."), s = l(o, e);
57
- if (n(s))
58
- return r(s);
59
- const c = z();
60
- if (c === "en-US")
61
- return t;
62
- const d = m(r, n, e);
63
- if (d)
64
- return d;
65
- if (c !== "en-US") {
66
- const u = L(e), f = l(o, u);
67
- if (n(f))
68
- return r(f);
69
- const p = m(r, n, u);
70
- return p || t;
71
- }
72
- return t;
73
- }
74
- export {
75
- C as r
76
- };