@feedmepos/mf-report 5.27.0 → 5.27.1-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 (30) hide show
  1. package/dist/{App-BVm7F3co.js → App-7KU7L55Z.js} +60 -60
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-_xN_Strd.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Un7TeXsq.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DFfPxCRx.js → Default.vue_vue_type_script_setup_true_lang-Cd04k3OT.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Du46mNK_.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DoUzpVIi.js} +1971 -1884
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvHJgIIm.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG6C2s-2.js} +786 -776
  6. package/dist/{InsightView-BDQtiuUV.js → InsightView-Cuy1dg8f.js} +4 -4
  7. package/dist/{Integration-BFvC5yD4.js → Integration-xdjHwODE.js} +3 -3
  8. package/dist/{Integrations-CaJP86Sf.js → Integrations-DvSDAPkI.js} +2 -2
  9. package/dist/{Layout-BTLiqkeM.js → Layout-CyLgSP6W.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CVfKW6b8.js → MenuTab.vue_vue_type_script_setup_true_lang-aO5RAgP0.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DVtWhfhI.js → NavigationTab.vue_vue_type_script_setup_true_lang-Ls01s0CN.js} +3 -3
  12. package/dist/{OverviewView-Cmm7K0gk.js → OverviewView-C3MOXvE-.js} +4 -4
  13. package/dist/{Report-BpKD0ID4.js → Report-Dzjm5lxB.js} +3 -3
  14. package/dist/ReportEditor-BE3TdrPy.js +1826 -0
  15. package/dist/{ReportView--Bk9WgOn.js → ReportView-CY4QUbTJ.js} +6 -6
  16. package/dist/{Setting-B6jvJDeO.js → Setting-DAuMhzKe.js} +3 -3
  17. package/dist/{Template-CnE3UZvX.js → Template-Bb9sKkQF.js} +3 -3
  18. package/dist/TileEditor-B73LMvrt.js +4077 -0
  19. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-VS03crwK.js +152 -0
  20. package/dist/{TransitionFade-Chjh8CeF.js → TransitionFade-BWpMwA6c.js} +6 -4
  21. package/dist/{app-CZUC85Jj.js → app-B4GA4-FP.js} +49 -13
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{processTableData.worker-dYjjzVAS.js → formatChartData.worker-BH7U7Dmq.js} +21 -21
  24. package/dist/assets/{formatChartData.worker-S0YDdTap.js → processTableData.worker-CR6UcFH0.js} +21 -21
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-CrybQQkI.js → useRestaurantPermission-CPJZeTKM.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/ReportEditor-CFWTQJCY.js +0 -1812
  29. package/dist/TileEditor-DNCRKHLE.js +0 -4042
  30. package/dist/TileGrid.vue_vue_type_script_setup_true_lang-WLjTXh0g.js +0 -143
@@ -0,0 +1,152 @@
1
+ import { defineComponent as U, reactive as E, resolveComponent as b, createElementBlock as d, openBlock as i, Fragment as h, renderList as W, createBlock as g, createCommentVNode as F, normalizeStyle as I, normalizeClass as f, withCtx as V, createVNode as c, createElementVNode as z, withDirectives as H, vShow as K } from "vue";
2
+ import { _ as D, c as P, a as j, b as q, t as A } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DoUzpVIi.js";
3
+ import { useBreakpoints as J } from "@feedmepos/ui-library";
4
+ const O = { class: "flex-1 min-h-0 overflow-y-auto" }, Q = {
5
+ key: 0,
6
+ class: "grid grid-cols-12"
7
+ }, R = { class: "grid grid-cols-12 max-h-full overflow-y-auto" }, ee = /* @__PURE__ */ U({
8
+ __name: "TileGrid",
9
+ props: {
10
+ tiles: {},
11
+ reportId: {},
12
+ leafIndexById: {},
13
+ hideExport: { type: Boolean },
14
+ customScreenWidth: {},
15
+ flat: { type: Boolean }
16
+ },
17
+ setup(N) {
18
+ const t = N, { breakpoints: y } = J();
19
+ function u(o) {
20
+ var n;
21
+ const r = ((n = o.size) == null ? void 0 : n.width) ?? 12;
22
+ return y.value.lg || y.value.md ? P(r) : y.value.sm ? j(r) : q(r);
23
+ }
24
+ function _(o) {
25
+ return t.flat && o > 0 ? "border-t border-neutral-200" : "";
26
+ }
27
+ function w(o) {
28
+ var r;
29
+ if (!t.flat)
30
+ return { height: `${A(((r = o.size) == null ? void 0 : r.height) ?? 6)}px` };
31
+ }
32
+ const k = E({}), v = E({});
33
+ function G(o) {
34
+ return (o.tiles ?? []).map((r, n) => ({
35
+ label: r.tabTitle || `Tab ${n + 1}`,
36
+ value: String(n)
37
+ }));
38
+ }
39
+ function m(o, r) {
40
+ return o.id || `container_${r}`;
41
+ }
42
+ function p(o, r) {
43
+ return k[m(o, r)] ?? 0;
44
+ }
45
+ function L(o, r, n) {
46
+ return p(o, r) === n || v[`${m(o, r)}_${n}`];
47
+ }
48
+ function M(o, r, n) {
49
+ if (n === null) return;
50
+ const a = m(o, r);
51
+ v[`${a}_${p(o, r)}`] = !0, k[a] = Number(n), v[`${a}_${n}`] = !0;
52
+ }
53
+ return (o, r) => {
54
+ const n = b("FmTabs"), a = b("TileGrid", !0), $ = b("FmCard");
55
+ return i(!0), d(h, null, W(t.tiles, (e, s) => {
56
+ var S, B, T;
57
+ return i(), d(h, {
58
+ key: `tile_${t.reportId}_${e.id || s}`
59
+ }, [
60
+ e.tab && ((S = e.tiles) != null && S.length) ? (i(), g($, {
61
+ key: 0,
62
+ variant: "outlined",
63
+ class: f(["p-0 overflow-hidden flex flex-col", [u(e), _(s)]]),
64
+ style: I(w(e))
65
+ }, {
66
+ default: V(() => [
67
+ c(n, {
68
+ class: "px-16 pt-8 shrink-0",
69
+ "model-value": String(p(e, s)),
70
+ items: G(e),
71
+ "onUpdate:modelValue": (l) => M(e, s, l)
72
+ }, null, 8, ["model-value", "items", "onUpdate:modelValue"]),
73
+ z("div", O, [
74
+ (i(!0), d(h, null, W(e.tiles, (l, x) => {
75
+ var C;
76
+ return i(), d(h, {
77
+ key: `tab_${m(e, s)}_${x}`
78
+ }, [
79
+ L(e, s, x) ? H((i(), d("div", Q, [
80
+ c(a, {
81
+ tiles: (C = l.tiles) != null && C.length ? l.tiles : [l],
82
+ "report-id": t.reportId,
83
+ "leaf-index-by-id": t.leafIndexById,
84
+ "hide-export": t.hideExport,
85
+ "custom-screen-width": t.customScreenWidth,
86
+ flat: !0
87
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
88
+ ], 512)), [
89
+ [K, p(e, s) === x]
90
+ ]) : F("", !0)
91
+ ], 64);
92
+ }), 128))
93
+ ])
94
+ ]),
95
+ _: 2
96
+ }, 1032, ["class", "style"])) : (B = e.tiles) != null && B.length && !t.flat ? (i(), g($, {
97
+ key: 1,
98
+ variant: "outlined",
99
+ class: f(["p-0 overflow-hidden", u(e)]),
100
+ style: I(w(e))
101
+ }, {
102
+ default: V(() => [
103
+ z("div", R, [
104
+ c(a, {
105
+ tiles: e.tiles,
106
+ "report-id": t.reportId,
107
+ "leaf-index-by-id": t.leafIndexById,
108
+ "hide-export": t.hideExport,
109
+ "custom-screen-width": t.customScreenWidth,
110
+ flat: !0
111
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
112
+ ])
113
+ ]),
114
+ _: 2
115
+ }, 1032, ["class", "style"])) : (T = e.tiles) != null && T.length ? (i(), d("div", {
116
+ key: 2,
117
+ class: f(["grid grid-cols-12", [u(e), _(s)]])
118
+ }, [
119
+ c(a, {
120
+ tiles: e.tiles,
121
+ "report-id": t.reportId,
122
+ "leaf-index-by-id": t.leafIndexById,
123
+ "hide-export": t.hideExport,
124
+ "custom-screen-width": t.customScreenWidth,
125
+ flat: !0
126
+ }, null, 8, ["tiles", "report-id", "leaf-index-by-id", "hide-export", "custom-screen-width"])
127
+ ], 2)) : e.widget && t.flat ? (i(), d("div", {
128
+ key: 3,
129
+ class: f([u(e), _(s)])
130
+ }, [
131
+ c(D, {
132
+ "model-value": e,
133
+ index: t.leafIndexById[e.id] ?? s,
134
+ "hide-export": t.hideExport,
135
+ "custom-screen-width": t.customScreenWidth,
136
+ flat: !0
137
+ }, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])
138
+ ], 2)) : e.widget ? (i(), g(D, {
139
+ key: 4,
140
+ "model-value": e,
141
+ index: t.leafIndexById[e.id] ?? s,
142
+ "hide-export": t.hideExport,
143
+ "custom-screen-width": t.customScreenWidth
144
+ }, null, 8, ["model-value", "index", "hide-export", "custom-screen-width"])) : F("", !0)
145
+ ], 64);
146
+ }), 128);
147
+ };
148
+ }
149
+ });
150
+ export {
151
+ ee as _
152
+ };
@@ -3,11 +3,11 @@ import { u as Mt, a as uo } from "./vue-i18n-DVWuTfed.js";
3
3
  import { useCoreStore as co } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as fo } from "vue-router";
6
- import { W as z, Q as po, I as it, t as On, v as Cn, c as je, g as mo, q as ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DvHJgIIm.js";
7
- import { p as go, d as Sn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-_xN_Strd.js";
6
+ import { W as z, Q as po, I as it, t as On, v as Cn, c as je, g as mo, q as ho } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DG6C2s-2.js";
7
+ import { p as go, d as Sn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Un7TeXsq.js";
8
8
  import { b as ln, a as fn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BL1jpiXN.js";
9
- import { R as vo } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Du46mNK_.js";
10
- import { u as bo, F as yo, r as Eo, d as $t } from "./app-CZUC85Jj.js";
9
+ import { R as vo } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DoUzpVIi.js";
10
+ import { u as bo, F as yo, r as Eo, d as $t } from "./app-B4GA4-FP.js";
11
11
  import { r as pn } from "./i18n-CI_sQ5d_.js";
12
12
  import { useSnackbar as _o } from "@feedmepos/ui-library";
13
13
  const To = {
@@ -1871,6 +1871,8 @@ function _r(t) {
1871
1871
  sorts: [],
1872
1872
  breakdownDimension: void 0,
1873
1873
  sparklineDimension: void 0,
1874
+ sparklineType: void 0,
1875
+ sparklinePercentOfTotal: void 0,
1874
1876
  limit: null,
1875
1877
  showGrandTotal: !1,
1876
1878
  rollupPosition: o,
@@ -670,6 +670,7 @@ const mn = {
670
670
  addTab: "Add tab",
671
671
  tab: "Tab {index}",
672
672
  width: "Width",
673
+ height: "Height",
673
674
  tabName: "Tab name",
674
675
  widgets: "Widgets",
675
676
  moveTo: "Move to",
@@ -826,6 +827,7 @@ const mn = {
826
827
  hide: "Hide",
827
828
  nullable: "Allow null value",
828
829
  moveToRow: "Move to row",
830
+ percentOfTotal: "Show as % of total",
829
831
  advance: "Advance",
830
832
  dataFormula: "Data Source Formula",
831
833
  displayFormula: "Display Formula",
@@ -982,6 +984,13 @@ const mn = {
982
984
  MTD: "Month to Date"
983
985
  },
984
986
  transpose: "Transpose",
987
+ sparklineType: {
988
+ label: "Sparkline type",
989
+ line: "Line",
990
+ bar: "Bar",
991
+ stackedBar: "Stacked bar"
992
+ },
993
+ sparklinePercentOfTotal: "Show as % of total",
985
994
  blend: "Blend",
986
995
  none: "None",
987
996
  grandTotal: "Grand total",
@@ -2452,6 +2461,7 @@ const mn = {
2452
2461
  addTab: "添加页签",
2453
2462
  tab: "页签 {index}",
2454
2463
  width: "宽度",
2464
+ height: "高度",
2455
2465
  tabName: "页签名称",
2456
2466
  widgets: "组件",
2457
2467
  moveTo: "移动到",
@@ -2607,6 +2617,7 @@ const mn = {
2607
2617
  hide: "隐藏",
2608
2618
  nullable: "允许空值",
2609
2619
  moveToRow: "移动到行",
2620
+ percentOfTotal: "显示为总计百分比",
2610
2621
  advance: "高级",
2611
2622
  dataFormula: "数据源公式",
2612
2623
  displayFormula: "显示公式",
@@ -2759,6 +2770,13 @@ const mn = {
2759
2770
  drill: "钻取",
2760
2771
  subTotal: "小计",
2761
2772
  transpose: "转置",
2773
+ sparklineType: {
2774
+ label: "迷你图类型",
2775
+ line: "折线图",
2776
+ bar: "柱状图",
2777
+ stackedBar: "堆叠条形图"
2778
+ },
2779
+ sparklinePercentOfTotal: "显示为总计百分比",
2762
2780
  blend: "融合",
2763
2781
  none: "无",
2764
2782
  grandTotal: "总计",
@@ -4238,6 +4256,7 @@ const mn = {
4238
4256
  addTab: "เพิ่มแท็บ",
4239
4257
  tab: "แท็บ {index}",
4240
4258
  width: "ความกว้าง",
4259
+ height: "ความสูง",
4241
4260
  tabName: "ชื่อแท็บ",
4242
4261
  widgets: "วิดเจ็ต",
4243
4262
  moveTo: "ย้ายไปที่",
@@ -4393,6 +4412,7 @@ const mn = {
4393
4412
  hide: "ซ่อน",
4394
4413
  nullable: "อนุญาตค่าว่าง",
4395
4414
  moveToRow: "ย้ายไปแถว",
4415
+ percentOfTotal: "แสดงเป็น % ของยอดรวม",
4396
4416
  advance: "ขั้นสูง",
4397
4417
  dataFormula: "สูตรข้อมูล",
4398
4418
  displayFormula: "สูตรแสดงผล",
@@ -4545,6 +4565,13 @@ const mn = {
4545
4565
  drill: "เจาะลึก",
4546
4566
  subTotal: "ยอดรวมย่อย",
4547
4567
  transpose: "สลับแถวคอลัมน์",
4568
+ sparklineType: {
4569
+ label: "ประเภท Sparkline",
4570
+ line: "เส้น",
4571
+ bar: "แท่ง",
4572
+ stackedBar: "แท่งซ้อน"
4573
+ },
4574
+ sparklinePercentOfTotal: "แสดงเป็น % ของยอดรวม",
4548
4575
  blend: "ผสาน",
4549
4576
  none: "ไม่มี",
4550
4577
  grandTotal: "ยอดรวมทั้งหมด",
@@ -6014,6 +6041,7 @@ const mn = {
6014
6041
  addTab: "新增頁籤",
6015
6042
  tab: "頁籤 {index}",
6016
6043
  width: "寬度",
6044
+ height: "高度",
6017
6045
  tabName: "頁籤名稱",
6018
6046
  widgets: "元件",
6019
6047
  moveTo: "移動至",
@@ -6169,6 +6197,7 @@ const mn = {
6169
6197
  hide: "隱藏",
6170
6198
  nullable: "允許空值",
6171
6199
  moveToRow: "移動到行",
6200
+ percentOfTotal: "顯示為總計百分比",
6172
6201
  advance: "高級",
6173
6202
  dataFormula: "數據源公式",
6174
6203
  displayFormula: "顯示公式",
@@ -6321,6 +6350,13 @@ const mn = {
6321
6350
  drill: "鑽取",
6322
6351
  subTotal: "小計",
6323
6352
  transpose: "轉置",
6353
+ sparklineType: {
6354
+ label: "迷你圖類型",
6355
+ line: "折線圖",
6356
+ bar: "柱狀圖",
6357
+ stackedBar: "堆疊條形圖"
6358
+ },
6359
+ sparklinePercentOfTotal: "顯示為總計百分比",
6324
6360
  blend: "融合",
6325
6361
  none: "無",
6326
6362
  grandTotal: "總計",
@@ -10900,7 +10936,7 @@ class xt {
10900
10936
  this.baseUrl = t;
10901
10937
  }
10902
10938
  }
10903
- const Ae = new xt("https://query-engine{.country}.feedmeapi.com"), mt = new xt("https://query-engine{.country}.feedmeapi.com/report-query"), bs = new xt("https://query-engine{.country}.feedmeapi.com/report-file"), Ks = new xt("https://portal-v2{.country}.feedmeapi.com"), vc = (e) => ({
10939
+ const Ae = new xt("https://query-engine{.country}.feedmeapidev.com"), mt = new xt("https://query-engine{.country}.feedmeapidev.com/report-query"), bs = new xt("https://query-engine{.country}.feedmeapidev.com/report-file"), Ks = new xt("https://portal-v2{.country}.feedmeapidev.com"), vc = (e) => ({
10904
10940
  id: e._id,
10905
10941
  name: e.profile.name,
10906
10942
  code: e.profile.code,
@@ -12516,7 +12552,7 @@ const os = [
12516
12552
  path: "/overview",
12517
12553
  alias: ["/"],
12518
12554
  name: "overview",
12519
- component: ft(() => import("./OverviewView-Cmm7K0gk.js")),
12555
+ component: ft(() => import("./OverviewView-C3MOXvE-.js")),
12520
12556
  meta: {
12521
12557
  validationManifest: pt(
12522
12558
  z.report_accessOverview
@@ -12526,18 +12562,18 @@ const os = [
12526
12562
  {
12527
12563
  path: "/report",
12528
12564
  name: "reports",
12529
- component: () => import("./Report-BpKD0ID4.js")
12565
+ component: () => import("./Report-Dzjm5lxB.js")
12530
12566
  },
12531
12567
  {
12532
12568
  path: "/template",
12533
12569
  name: "template",
12534
- component: () => import("./Template-CnE3UZvX.js"),
12570
+ component: () => import("./Template-Bb9sKkQF.js"),
12535
12571
  beforeEnter: () => qr().canAccessTemplate() ? !0 : { name: "reports" }
12536
12572
  },
12537
12573
  {
12538
12574
  path: "/insights",
12539
12575
  name: "insights",
12540
- component: ft(() => import("./InsightView-BDQtiuUV.js")),
12576
+ component: ft(() => import("./InsightView-Cuy1dg8f.js")),
12541
12577
  meta: {
12542
12578
  validationManifest: pt(
12543
12579
  z.report_accessInsight
@@ -12547,22 +12583,22 @@ const os = [
12547
12583
  {
12548
12584
  path: "/report-view",
12549
12585
  name: "reportView",
12550
- component: () => import("./ReportView--Bk9WgOn.js")
12586
+ component: () => import("./ReportView-CY4QUbTJ.js")
12551
12587
  },
12552
12588
  {
12553
12589
  path: "/report-editor",
12554
12590
  name: "reportEditor",
12555
- component: () => import("./ReportEditor-CFWTQJCY.js")
12591
+ component: () => import("./ReportEditor-BE3TdrPy.js")
12556
12592
  },
12557
12593
  {
12558
12594
  path: "/report-editor/tile-editor",
12559
12595
  name: "tileEditor",
12560
- component: () => import("./TileEditor-DNCRKHLE.js")
12596
+ component: () => import("./TileEditor-B73LMvrt.js")
12561
12597
  },
12562
12598
  {
12563
12599
  path: "/setting",
12564
12600
  name: "setting",
12565
- component: ft(() => import("./Setting-B6jvJDeO.js")),
12601
+ component: ft(() => import("./Setting-DAuMhzKe.js")),
12566
12602
  meta: {
12567
12603
  validationManifest: pt(
12568
12604
  z.report_accessSetting
@@ -12571,7 +12607,7 @@ const os = [
12571
12607
  },
12572
12608
  {
12573
12609
  path: "/integration",
12574
- component: ft(() => import("./Layout-BTLiqkeM.js")),
12610
+ component: ft(() => import("./Layout-CyLgSP6W.js")),
12575
12611
  meta: {
12576
12612
  validationManifest: pt(
12577
12613
  z.report_accessIntegration
@@ -12581,12 +12617,12 @@ const os = [
12581
12617
  {
12582
12618
  name: "integrations",
12583
12619
  path: "",
12584
- component: () => import("./Integrations-CaJP86Sf.js")
12620
+ component: () => import("./Integrations-DvSDAPkI.js")
12585
12621
  },
12586
12622
  {
12587
12623
  name: "integration",
12588
12624
  path: "/integration/:id",
12589
- component: () => import("./Integration-BFvC5yD4.js")
12625
+ component: () => import("./Integration-xdjHwODE.js")
12590
12626
  }
12591
12627
  ]
12592
12628
  },
@@ -12610,7 +12646,7 @@ const Ws = {
12610
12646
  "zh-CN": un,
12611
12647
  "th-TH": fn,
12612
12648
  "zh-Hant": yn
12613
- }, Zs = $o(() => import("./App-BVm7F3co.js"));
12649
+ }, Zs = $o(() => import("./App-7KU7L55Z.js"));
12614
12650
  export {
12615
12651
  Kc as A,
12616
12652
  Ec as B,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { X as e, i as o, Y as p } from "./app-CZUC85Jj.js";
2
+ import { X as e, i as o, Y as p } from "./app-B4GA4-FP.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  o as i18nMessages,