@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,14 +1,14 @@
1
1
  import { defineComponent as V, computed as v, resolveComponent as z, createBlock as g, openBlock as u, withCtx as H, createVNode as h, createElementVNode as M, unref as o, normalizeStyle as Y, normalizeClass as D, createElementBlock as R, Fragment as G, renderList as Q } from "vue";
2
- import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-DsY5W3k7.js";
3
- import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-BO_HTvjY.js";
2
+ import { _ as U } from "./MenuTab.vue_vue_type_script_setup_true_lang-DNxXgTX4.js";
3
+ import { _ as W } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Dc0etyos.js";
4
4
  import { useRouter as K, useRoute as X } from "vue-router";
5
- import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-B0_QlxYu.js";
6
- import { a as ee } from "./v4-Bi2F4URu.js";
5
+ import { _ as Z } from "./Default.vue_vue_type_script_setup_true_lang-DeKEY6-a.js";
6
+ import { a as ee } from "./v4-ZW3e7y3R.js";
7
7
  import { storeToRefs as p } from "pinia";
8
- import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BdzurgE4.js";
9
- import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-DZJxcekm.js";
8
+ import { b as oe, c as te, u as re } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DpFJ_jYh.js";
9
+ import { _ as ae } from "./NoData.vue_vue_type_script_setup_true_lang-DGTWa4E5.js";
10
10
  import { useSnackbar as le, useBreakpoints as ne } from "@feedmepos/ui-library";
11
- import { u as ie, f as se, e as ue } from "./global-loader-CEOgl5uZ.js";
11
+ import { u as ie, f as se, e as ue } from "./vue-i18n-CbAseuRE.js";
12
12
  import { u as ce } from "./message-dialog-UoMWOnil.js";
13
13
  import { r as pe } from "./i18n-Cif1I9J2.js";
14
14
  const De = /* @__PURE__ */ V({
@@ -0,0 +1,110 @@
1
+ import { defineComponent as B, mergeModels as D, useModel as z, ref as b, computed as f, resolveComponent as n, createBlock as y, openBlock as _, withCtx as m, createElementVNode as c, normalizeStyle as L, withDirectives as U, createElementBlock as $, createVNode as d, unref as E, vShow as H, Fragment as N, renderList as O, toDisplayString as g, normalizeClass as q } from "vue";
2
+ import { u as A } from "./vue-i18n-CbAseuRE.js";
3
+ const K = (s, u) => {
4
+ const t = s.__vccOpts || s;
5
+ for (const [o, i] of u)
6
+ t[o] = i;
7
+ return t;
8
+ }, P = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary" }, T = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, j = { class: "sticky top-0" }, Q = /* @__PURE__ */ B({
9
+ __name: "SelectComponent",
10
+ props: /* @__PURE__ */ D({
11
+ items: {
12
+ type: Array,
13
+ default: () => []
14
+ },
15
+ placeHolder: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ label: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ disableSearch: {
24
+ type: Boolean,
25
+ default: !1
26
+ }
27
+ }, {
28
+ modelValue: { required: !0 },
29
+ modelModifiers: {}
30
+ }),
31
+ emits: ["update:modelValue"],
32
+ setup(s) {
33
+ const { t: u } = A(), t = z(s, "modelValue"), o = s, i = (e) => {
34
+ t.value = e.value, setTimeout(() => {
35
+ r.value = !1;
36
+ }, 0);
37
+ }, r = b(!1), p = b(""), F = f(
38
+ () => o.items.filter(
39
+ (e) => e.label.toLowerCase().indexOf(p.value.toLowerCase()) !== -1
40
+ )
41
+ ), x = f(
42
+ () => {
43
+ var e;
44
+ return ((e = o.items.find((a) => a.value === t.value)) == null ? void 0 : e.label) ?? u("report.common.select");
45
+ }
46
+ ), w = f(() => o.items.filter((e) => e.value === t.value));
47
+ return (e, a) => {
48
+ const M = n("FmIcon"), V = n("FmField"), S = n("FmSearch"), C = n("FmMenuDivider"), k = n("FmMenuItem"), I = n("FmMenu");
49
+ return _(), y(I, {
50
+ trigger: "click",
51
+ shift: !0,
52
+ "max-height": 300,
53
+ width: 200,
54
+ onMenuChanged: a[1] || (a[1] = (v) => {
55
+ r.value = v;
56
+ })
57
+ }, {
58
+ "menu-button": m(() => [
59
+ c("p", P, g(o.label), 1),
60
+ d(V, {
61
+ class: q(["cursor-pointer", `${r.value ? "border-fm-color-primary" : ""}`]),
62
+ focused: r.value
63
+ }, {
64
+ append: m(() => [
65
+ d(M, {
66
+ color: "black",
67
+ name: r.value ? "expand_less" : "expand_more",
68
+ size: "md"
69
+ }, null, 8, ["name"])
70
+ ]),
71
+ default: m(() => [
72
+ c("div", T, g(x.value), 1)
73
+ ]),
74
+ _: 1
75
+ }, 8, ["class", "focused"])
76
+ ]),
77
+ "menu-wrapper": m(({ maxHeight: v }) => [
78
+ c("div", {
79
+ style: L({ maxHeight: `${v}px` }),
80
+ class: "bg-fm-color-neutral-white overflow-y-auto overflow-x-hidden rounded-md shadow-light-300 w-[250px]"
81
+ }, [
82
+ U(c("div", j, [
83
+ d(S, {
84
+ modelValue: p.value,
85
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => p.value = l),
86
+ placeholder: E(u)("report.select.filterPlaceholder")
87
+ }, null, 8, ["modelValue", "placeholder"]),
88
+ d(C)
89
+ ], 512), [
90
+ [H, !o.disableSearch]
91
+ ]),
92
+ (_(!0), $(N, null, O(F.value, (l) => (_(), y(k, {
93
+ key: l.value,
94
+ label: l.label,
95
+ sublabel: l.sublabel,
96
+ "model-value": w.value.some((h) => h.value === l.value),
97
+ value: l.value,
98
+ "onUpdate:modelValue": (h) => i(l)
99
+ }, null, 8, ["label", "sublabel", "model-value", "value", "onUpdate:modelValue"]))), 128))
100
+ ], 4)
101
+ ]),
102
+ _: 1
103
+ });
104
+ };
105
+ }
106
+ });
107
+ export {
108
+ Q as _,
109
+ K as a
110
+ };
@@ -1,11 +1,11 @@
1
- import { defineComponent as B, ref as H, useModel as J, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as M, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as K, renderList as Q, withDirectives as E, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
2
- import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-B0_QlxYu.js";
3
- import { u as U, d as z, C as A, D as pe, b as ce } from "./global-loader-CEOgl5uZ.js";
4
- import { components as I, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
5
- import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BdzurgE4.js";
1
+ import { defineComponent as B, ref as H, useModel as J, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as K, renderList as Q, withDirectives as M, createTextVNode as ie, vShow as j, watch as me, normalizeStyle as ue } from "vue";
2
+ import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-DeKEY6-a.js";
3
+ import { u as U, d as z, C as I, D as pe, b as ce } from "./vue-i18n-CbAseuRE.js";
4
+ import { components as A, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
5
+ import { t as N, s as fe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DpFJ_jYh.js";
6
6
  import { u as ve } from "./message-dialog-UoMWOnil.js";
7
7
  import { detectLocale as F } from "@feedmepos/mf-common";
8
- import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-C23-eIYF.js";
8
+ import { _ as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-Dq9vY9mj.js";
9
9
  import { storeToRefs as _e } from "pinia";
10
10
  const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, Te = { class: "flex items-center w-full gap-3" }, De = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
11
11
  __name: "ReportHour",
@@ -23,7 +23,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
23
23
  isDefault: !1,
24
24
  startTime: { hour: 0, minute: 0 },
25
25
  endTime: { hour: 0, minute: 0 }
26
- }, { FmForm: c } = I, n = H(), { promptMessage: D } = ve(), b = W(), r = H(JSON.parse(JSON.stringify(l))), i = J(T, "modelValue"), { t: m } = U(), d = () => {
26
+ }, { FmForm: c } = A, n = H(), { promptMessage: D } = ve(), b = W(), r = H(JSON.parse(JSON.stringify(l))), i = J(T, "modelValue"), { t: m } = U(), d = () => {
27
27
  o.value = !1, r.value && p.value === void 0 ? i.value.push(r.value) : i.value[p.value] = r.value;
28
28
  }, R = () => {
29
29
  var v;
@@ -43,7 +43,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
43
43
  await D({
44
44
  title: m("report.setting.reportHour.deleteTitle"),
45
45
  message: m("report.setting.reportHour.deleteConfirm", { name: u.name })
46
- }) && (i.value = i.value.filter((f, P) => P !== v), i.value.find((f) => f.isDefault) || (i.value[0].isDefault = !0), r.value = l);
46
+ }) && (i.value = i.value.filter((f, E) => E !== v), i.value.find((f) => f.isDefault) || (i.value[0].isDefault = !0), r.value = l);
47
47
  }, oe = (v, u) => {
48
48
  v ? i.value = i.value.map(($, C) => ({
49
49
  ...$,
@@ -52,11 +52,11 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
52
52
  ...$,
53
53
  isDefault: C === 0
54
54
  }));
55
- }, { breakpoints: w } = X(), { FmSideSheet: le, FmTopSheet: ae } = I;
55
+ }, { breakpoints: w } = X(), { FmSideSheet: le, FmTopSheet: ae } = A;
56
56
  return (v, u) => {
57
- const $ = h("FmTextField"), C = h("FmTimePicker"), f = h("FmButton"), P = h("FmSwitch"), se = h("FmChip"), re = h("FmCard");
57
+ const $ = h("FmTextField"), C = h("FmTimePicker"), f = h("FmButton"), E = h("FmSwitch"), se = h("FmChip"), re = h("FmCard");
58
58
  return x(), k("div", null, [
59
- (x(), M(ne(e(w).lg || e(w).md ? e(le) : e(ae)), {
59
+ (x(), P(ne(e(w).lg || e(w).md ? e(le) : e(ae)), {
60
60
  modelValue: o.value,
61
61
  "onUpdate:modelValue": u[3] || (u[3] = (g) => o.value = g),
62
62
  "fullscreen-size": "sm",
@@ -143,21 +143,21 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
143
143
  t("p", Ce, s(e(m)("report.setting.reportHour.description")), 1)
144
144
  ]),
145
145
  t("div", Ve, [
146
- (x(!0), k(K, null, Q(i.value, (g, V) => (x(), M(re, {
146
+ (x(!0), k(K, null, Q(i.value, (g, V) => (x(), P(re, {
147
147
  key: `report_${V}`,
148
148
  class: "flex p-4",
149
149
  variant: "outlined"
150
150
  }, {
151
151
  default: y(() => [
152
152
  t("div", Te, [
153
- a(P, {
153
+ a(E, {
154
154
  "model-value": g.isDefault,
155
155
  "onUpdate:modelValue": (S) => oe(S, V)
156
156
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
157
157
  t("div", null, [
158
158
  t("p", De, [
159
159
  ie(s(g.name) + " ", 1),
160
- E(a(se, {
160
+ M(a(se, {
161
161
  label: e(m)("report.common.default"),
162
162
  class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
163
163
  compact: ""
@@ -168,7 +168,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
168
168
  t("p", $e, s(e(N)(g.startTime, e(F)())) + " - " + s(e(N)(g.endTime, e(F)())), 1)
169
169
  ]),
170
170
  u[4] || (u[4] = t("div", { class: "grow" }, null, -1)),
171
- E(t("div", Se, [
171
+ M(t("div", Se, [
172
172
  a(f, {
173
173
  icon: "edit",
174
174
  variant: "tertiary",
@@ -204,12 +204,15 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
204
204
  }), Fe = { class: "py-2 w-full gap-2 flex flex-col" }, Re = { class: "fm-typo-en-title-sm-600" }, we = /* @__PURE__ */ B({
205
205
  __name: "CompareRangeSetting",
206
206
  props: {
207
- modelValue: { required: !0, default: A.PrecedingPeriod },
207
+ modelValue: {
208
+ required: !0,
209
+ default: I.PRECEDING_PERIOD
210
+ },
208
211
  modelModifiers: {}
209
212
  },
210
213
  emits: ["update:modelValue"],
211
214
  setup(T) {
212
- const { t: o } = U(), p = J(T, "modelValue"), l = Object.values(A).map((c) => ({
215
+ const { t: o } = U(), p = J(T, "modelValue"), l = Object.values(I).map((c) => ({
213
216
  label: o(`report.compare.${c}`),
214
217
  value: c
215
218
  })).slice(0, -1);
@@ -247,7 +250,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
247
250
  }, null, 8, ["modelValue", "label", "items"])
248
251
  ]));
249
252
  }
250
- }), Be = { class: "w-2/4" }, Ue = { class: "fm-typo-en-title-sm-600" }, Pe = { class: "text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600" }, Ee = { class: "text-fm-color-typo-secondary" }, je = { class: "fm-typo-en-body-lg-600" }, Je = { class: "text-fm-color-typo-secondary" }, Le = { class: "fm-typo-en-body-lg-600" }, Ye = /* @__PURE__ */ B({
253
+ }), Be = { class: "w-2/4" }, Ue = { class: "fm-typo-en-title-sm-600" }, Ee = { class: "text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600" }, Me = { class: "text-fm-color-typo-secondary" }, je = { class: "fm-typo-en-body-lg-600" }, Je = { class: "text-fm-color-typo-secondary" }, Le = { class: "fm-typo-en-body-lg-600" }, Ye = /* @__PURE__ */ B({
251
254
  __name: "Setting",
252
255
  setup(T) {
253
256
  const { breakpoints: o } = X(), p = ce(), { defaultDateSetting: l } = _e(p), c = W(), { t: n } = U();
@@ -263,7 +266,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
263
266
  { deep: !0 }
264
267
  ), (D, b) => {
265
268
  const r = h("FmPageHead"), i = h("FmMenuDivider"), m = h("FmCard");
266
- return x(), M(de, null, {
269
+ return x(), P(de, null, {
267
270
  default: y(() => [
268
271
  a(r, { title: "Settings" }),
269
272
  t("div", {
@@ -286,7 +289,7 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
286
289
  "onUpdate:modelValue": b[2] || (b[2] = (d) => e(l).defaultCompareType = d)
287
290
  }, null, 8, ["modelValue"])
288
291
  ], 2),
289
- E(t("div", Be, [
292
+ M(t("div", Be, [
290
293
  a(m, {
291
294
  variant: "outlined",
292
295
  class: O(["flex flex-col gap-3", `${e(o).lg || e(o).md ? "mr-5 p-6" : ""}`])
@@ -294,11 +297,11 @@ const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex p
294
297
  default: y(() => [
295
298
  t("p", Ue, s(e(n)("report.setting.summary.title")), 1),
296
299
  a(i),
297
- t("p", Pe, s(e(n)("report.setting.summary.reportHour")), 1),
300
+ t("p", Ee, s(e(n)("report.setting.summary.reportHour")), 1),
298
301
  (x(!0), k(K, null, Q(e(l).timeOptions, (d, R) => (x(), k("div", { key: R }, [
299
- t("p", Me, s(d.name) + s(d.isDefault ? `(${e(n)("report.setting.reportHour.default")})` : "") + " " + s(e(N)(d.startTime, e(F)())) + " " + s(e(N)(d.endTime, e(F)())) + " " + s(e(fe)(d.startTime, d.endTime)), 1)
302
+ t("p", Pe, s(d.name) + s(d.isDefault ? `(${e(n)("report.setting.reportHour.default")})` : "") + " " + s(e(N)(d.startTime, e(F)())) + " " + s(e(N)(d.endTime, e(F)())) + " " + s(e(fe)(d.startTime, d.endTime)), 1)
300
303
  ]))), 128)),
301
- t("p", Ee, s(e(n)("report.setting.summary.defaultDateRange")), 1),
304
+ t("p", Me, s(e(n)("report.setting.summary.defaultDateRange")), 1),
302
305
  t("p", je, s(e(n)(`report.date.${e(l).defaultDateRange}`)), 1),
303
306
  t("p", Je, s(e(n)("report.setting.summary.comparisonDateRange")), 1),
304
307
  t("p", Le, s(e(n)(`report.compare.${e(l).defaultCompareType}`)), 1)