@feedmepos/mf-report 5.16.3-beta.0 → 5.17.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 (26) hide show
  1. package/dist/{App-EyBj9lkx.js → App-DeU7iMbf.js} +35 -35
  2. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-DKvsNtlh.js +11197 -0
  3. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CLTU-OJV.js +185 -0
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-HTsqdmVI.js → Default.vue_vue_type_script_setup_true_lang-BQWV9Bgr.js} +2 -2
  5. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-C53TKTho.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CdRZh5dG.js} +5 -5
  6. package/dist/{InsightView-BpwEtg9y.js → InsightView-CJVbMpiM.js} +5 -5
  7. package/dist/{Integration-DDzxygM_.js → Integration-Cq_c3vS2.js} +83 -83
  8. package/dist/{Integrations-NlOsDssY.js → Integrations-CqMymn98.js} +3 -3
  9. package/dist/{Layout-DQmST4Gj.js → Layout-B55svxvZ.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Bz_l-DFb.js → MenuTab.vue_vue_type_script_setup_true_lang-2Z_LbV9u.js} +6 -6
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BmqKyJ6o.js → NavigationTab.vue_vue_type_script_setup_true_lang-Br3jELGp.js} +5 -5
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BF1MLXsF.js → NoData.vue_vue_type_script_setup_true_lang-By5gQvZP.js} +1 -1
  13. package/dist/{OverviewView-C6oPAYU_.js → OverviewView-Dhbkita5.js} +5 -5
  14. package/dist/{Report-CWsfwkS0.js → Report-C-4RmuGl.js} +4 -4
  15. package/dist/{ReportEditor-DntTro8H.js → ReportEditor-BZTwbyTR.js} +6 -6
  16. package/dist/{ReportView-Bk38b2-F.js → ReportView-BgWZV2uu.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-nAU0NNg5.js → SelectComponent.vue_vue_type_script_setup_true_lang-eK4eP1Qy.js} +1 -1
  18. package/dist/{Setting-QmIhwd54.js → Setting-CJ5CbG9S.js} +4 -4
  19. package/dist/{TileEditor-MYBKeoTu.js → TileEditor-DAjEySJH.js} +7 -7
  20. package/dist/{TransitionFade-DURtQcT9.js → TransitionFade-dnZ63soG.js} +5 -5
  21. package/dist/app.js +11 -11
  22. package/dist/{helper-DJZfVXf0.js → helper-bP_1beSH.js} +1 -1
  23. package/dist/{vue-i18n-CHLsTHGb.js → vue-i18n-BgRNnwPF.js} +2760 -2658
  24. package/package.json +1 -1
  25. package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-80m6qiJM.js +0 -10961
  26. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-Yv4mU3CA.js +0 -180
@@ -0,0 +1,185 @@
1
+ import { defineComponent as $, resolveComponent as S, createBlock as v, openBlock as c, withCtx as C, createCommentVNode as h, createElementVNode as x, toDisplayString as Y, renderSlot as j, mergeModels as T, useModel as R, ref as V, watch as k, createElementBlock as U, createVNode as b, unref as m } from "vue";
2
+ import { d as n, l as q, R as _, u as A, a as G, w as L, S as Q, C as H } from "./vue-i18n-BgRNnwPF.js";
3
+ import { d as F } from "./helper-bP_1beSH.js";
4
+ import { detectLocale as P } from "@feedmepos/mf-common";
5
+ import { storeToRefs as J } from "pinia";
6
+ const K = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, W = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, M = /* @__PURE__ */ $({
7
+ __name: "FilterChip",
8
+ props: {
9
+ label: {
10
+ type: String,
11
+ default: ""
12
+ },
13
+ leftIcon: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ rightIcon: {
18
+ type: String,
19
+ default: ""
20
+ }
21
+ },
22
+ setup(e) {
23
+ const p = e;
24
+ return (f, y) => {
25
+ const u = S("FmIcon"), d = S("FmChip");
26
+ return c(), v(d, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
27
+ default: C(() => [
28
+ e.leftIcon ? (c(), v(u, {
29
+ key: 0,
30
+ name: p.leftIcon,
31
+ size: "sm",
32
+ outline: ""
33
+ }, null, 8, ["name"])) : h("", !0),
34
+ x("p", K, Y(p.label), 1),
35
+ e.rightIcon ? (c(), v(u, {
36
+ key: 1,
37
+ name: e.rightIcon,
38
+ size: "sm",
39
+ outline: ""
40
+ }, null, 8, ["name"])) : h("", !0),
41
+ x("div", W, [
42
+ j(f.$slots, "default")
43
+ ])
44
+ ]),
45
+ _: 3
46
+ });
47
+ };
48
+ }
49
+ }), X = { class: "flex gap-2 items-center" }, g = "YYYY-MM-DD", oe = /* @__PURE__ */ $({
50
+ __name: "DateRangeSelect",
51
+ props: /* @__PURE__ */ T({
52
+ compare: {
53
+ type: Boolean,
54
+ default: !1
55
+ },
56
+ datePredefinedRanges: {
57
+ type: Array,
58
+ default: () => Q()
59
+ },
60
+ label: {
61
+ type: String,
62
+ required: !1,
63
+ default: null
64
+ },
65
+ removable: {
66
+ type: Boolean,
67
+ required: !1,
68
+ default: !1
69
+ }
70
+ }, {
71
+ compareType: {
72
+ type: String,
73
+ default: H.PRECEDING_PERIOD
74
+ },
75
+ compareTypeModifiers: {},
76
+ dateRange: {
77
+ type: Object,
78
+ default: () => ({
79
+ startDate: void 0,
80
+ endDate: void 0
81
+ })
82
+ },
83
+ dateRangeModifiers: {},
84
+ compareDateRange: {
85
+ type: Object,
86
+ default: () => ({
87
+ startDate: void 0,
88
+ endDate: void 0
89
+ })
90
+ },
91
+ compareDateRangeModifiers: {}
92
+ }),
93
+ emits: /* @__PURE__ */ T(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
94
+ setup(e, { emit: p }) {
95
+ var I, w, z, O;
96
+ n.extend(q), n.extend(_);
97
+ const { t: f } = A(), y = p, u = R(e, "compareType"), d = R(e, "dateRange"), i = R(e, "compareDateRange"), { country: B } = J(G()), r = L(B.value), o = V({
98
+ startDate: d.value.startDate ? (I = n(d.value.startDate)) == null ? void 0 : I.tz(r).format(g) : null,
99
+ endDate: d.value.endDate ? (w = n(d.value.endDate)) == null ? void 0 : w.tz(r).format(g) : null
100
+ }), s = V({
101
+ startDate: i.value.startDate ? (z = n(i.value.startDate)) == null ? void 0 : z.tz(r).format(g) : null,
102
+ endDate: i.value.endDate ? (O = n(i.value.endDate)) == null ? void 0 : O.tz(r).format(g) : null
103
+ });
104
+ k(
105
+ [() => o.value],
106
+ () => {
107
+ o.value.endDate || (o.value.endDate = o.value.startDate);
108
+ const a = {
109
+ startDate: n.tz(o.value.startDate, r).startOf("day").utc().toISOString(),
110
+ endDate: n.tz(o.value.endDate, r).endOf("day").utc().toISOString()
111
+ };
112
+ d.value = a, y("update", a);
113
+ },
114
+ { deep: !0 }
115
+ ), k([() => s.value], () => {
116
+ const a = s.value.startDate, t = s.value.endDate, D = a ? n(
117
+ a instanceof Date ? a : n(a).toDate()
118
+ ).startOf("day").tz(r, !0).toISOString() : void 0, l = t ? n(t instanceof Date ? t : n(t).toDate()).tz(r, !0).endOf("day").toISOString() : void 0;
119
+ i.value = {
120
+ startDate: D,
121
+ endDate: l
122
+ };
123
+ });
124
+ function E(a) {
125
+ u.value = a;
126
+ }
127
+ function N(a) {
128
+ y("chip-closed", a);
129
+ }
130
+ return (a, t) => {
131
+ const D = S("FmSimpleDateRangePicker");
132
+ return c(), U("div", X, [
133
+ b(D, {
134
+ modelValue: o.value,
135
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => o.value = l),
136
+ "show-predefined-range": "",
137
+ "predefined-range": e.datePredefinedRanges.map((l) => ({
138
+ ...l,
139
+ label: m(f)(`report.date.${l.label}`)
140
+ })),
141
+ class: "w-2/6"
142
+ }, {
143
+ "trigger-button": C(() => [
144
+ b(M, {
145
+ "left-icon": e.label ? "filter_alt" : "calendar_month",
146
+ label: e.label ?? m(F)({
147
+ startDate: o.value.startDate ?? "",
148
+ endDate: o.value.endDate ?? "",
149
+ locale: m(P)()
150
+ }),
151
+ removable: e.removable,
152
+ onChipClosed: t[0] || (t[0] = (l) => N(!0))
153
+ }, null, 8, ["left-icon", "label", "removable"])
154
+ ]),
155
+ _: 1
156
+ }, 8, ["modelValue", "predefined-range"]),
157
+ e.compare ? (c(), v(D, {
158
+ key: 0,
159
+ modelValue: s.value,
160
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => s.value = l),
161
+ "compare-type": u.value,
162
+ "onUpdate:compareType": t[3] || (t[3] = (l) => u.value = l),
163
+ "show-predefined-range": "",
164
+ "compare-target": o.value,
165
+ onSelectComparison: E
166
+ }, {
167
+ "trigger-button": C(() => [
168
+ b(M, {
169
+ label: `${m(f)("report.common.compare")}: ${m(F)({
170
+ startDate: s.value.startDate ?? null,
171
+ endDate: s.value.endDate ?? null,
172
+ locale: m(P)()
173
+ })}`
174
+ }, null, 8, ["label"])
175
+ ]),
176
+ _: 1
177
+ }, 8, ["modelValue", "compare-type", "compare-target"])) : h("", !0)
178
+ ]);
179
+ };
180
+ }
181
+ });
182
+ export {
183
+ oe as _,
184
+ M as a
185
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
2
- import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BmqKyJ6o.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Br3jELGp.js";
3
3
  import { useBreakpoints as b } from "@feedmepos/ui-library";
4
4
  import { storeToRefs as C } from "pinia";
5
- import { u as q, f as w } from "./vue-i18n-CHLsTHGb.js";
5
+ import { u as q, f as w } from "./vue-i18n-BgRNnwPF.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,
@@ -1,12 +1,12 @@
1
1
  import { computed as y, defineComponent as ee, mergeModels as me, useModel as te, ref as h, onMounted as ke, nextTick as X, watch as J, resolveComponent as V, createElementBlock as N, openBlock as W, Fragment as oe, renderSlot as pe, createVNode as B, normalizeStyle as ne, unref as l, createElementVNode as P, toDisplayString as Le, withCtx as q, createBlock as U, createCommentVNode as he, normalizeClass as Pe, h as bt, renderList as kt, createTextVNode as Qt, onUnmounted as ea, resolveDynamicComponent as ta, withDirectives as aa, vShow as la } from "vue";
2
- import { W as F, d as Ee, v as $e, e as Ye, f as _t, q as oa, R as xe, g as na } from "./BaseDialog.vue_vue_type_script_setup_true_lang-80m6qiJM.js";
3
- import { u as Me, b as at, a as lt } from "./vue-i18n-CHLsTHGb.js";
4
- import { a as wt } from "./helper-DJZfVXf0.js";
2
+ import { W as F, d as Ee, v as $e, e as Ye, f as _t, q as oa, R as xe, g as na } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DKvsNtlh.js";
3
+ import { u as Me, b as at, a as lt } from "./vue-i18n-BgRNnwPF.js";
4
+ import { a as wt } from "./helper-bP_1beSH.js";
5
5
  import { storeToRefs as ze, defineStore as sa } from "pinia";
6
6
  import { useBreakpoints as Tt, components as ra, useSnackbar as Rt } from "@feedmepos/ui-library";
7
- import { a as ia } from "./SelectComponent.vue_vue_type_script_setup_true_lang-nAU0NNg5.js";
7
+ import { a as ia } from "./SelectComponent.vue_vue_type_script_setup_true_lang-eK4eP1Qy.js";
8
8
  import { r as Ce } from "./i18n-Cif1I9J2.js";
9
- import { _ as xt } from "./NoData.vue_vue_type_script_setup_true_lang-BF1MLXsF.js";
9
+ import { _ as xt } from "./NoData.vue_vue_type_script_setup_true_lang-By5gQvZP.js";
10
10
  var Je = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(Je || {}), Z = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Z || {}), Ke = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ke || {}), Ze = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Ze || {}), Qe = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(et || {}), tt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(tt || {});
11
11
  F.Circular, F.Table, F.BarChart, F.LineChart, F.StackBarChart, F.StackLineChart, F.Scorecard, F.Spacer;
12
12
  const ua = [
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
2
2
  var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
5
- import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-HTsqdmVI.js";
6
- import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Yv4mU3CA.js";
7
- import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-CHLsTHGb.js";
5
+ import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-BQWV9Bgr.js";
6
+ import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CLTU-OJV.js";
7
+ import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-BgRNnwPF.js";
8
8
  import { storeToRefs as Jn } from "pinia";
9
9
  import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
10
- import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-BF1MLXsF.js";
11
- import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-BmqKyJ6o.js";
10
+ import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-By5gQvZP.js";
11
+ import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Br3jELGp.js";
12
12
  import { useCoreStore as ha } from "@feedmepos/mf-common";
13
13
  function da({ start: i, end: t }) {
14
14
  return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;