@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,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 N, renderSlot as Y, mergeModels as T, useModel as R, ref as F, watch as V, createElementBlock as j, createVNode as b, unref as m } from "vue";
2
+ import { d as n, l as U, t as q, u as _, b as A, T as G, C as L } from "./vue-i18n-D33f1SSo.js";
3
+ import { d as k } from "./helper-B2iB0Dbh.js";
4
+ import { detectLocale as P } from "@feedmepos/mf-common";
5
+ import { storeToRefs as H } from "pinia";
6
+ const J = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, K = { 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 s = 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(s, {
29
+ key: 0,
30
+ name: p.leftIcon,
31
+ size: "sm",
32
+ outline: ""
33
+ }, null, 8, ["name"])) : h("", !0),
34
+ x("p", J, N(p.label), 1),
35
+ e.rightIcon ? (c(), v(s, {
36
+ key: 1,
37
+ name: e.rightIcon,
38
+ size: "sm",
39
+ outline: ""
40
+ }, null, 8, ["name"])) : h("", !0),
41
+ x("div", K, [
42
+ Y(f.$slots, "default")
43
+ ])
44
+ ]),
45
+ _: 3
46
+ });
47
+ };
48
+ }
49
+ }), Q = { class: "flex gap-2 items-center" }, g = "YYYY-MM-DD", ae = /* @__PURE__ */ $({
50
+ __name: "DateRangeSelect",
51
+ props: /* @__PURE__ */ T({
52
+ compare: {
53
+ type: Boolean,
54
+ default: !1
55
+ },
56
+ datePredefinedRanges: {
57
+ type: Array,
58
+ default: () => G()
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: L.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(U), n.extend(q);
97
+ const { t: f } = _(), y = p, s = R(e, "compareType"), d = R(e, "dateRange"), i = R(e, "compareDateRange"), { timezone: r } = H(A()), l = F({
98
+ startDate: d.value.startDate ? (I = n(d.value.startDate)) == null ? void 0 : I.tz(r.value).format(g) : null,
99
+ endDate: d.value.endDate ? (w = n(d.value.endDate)) == null ? void 0 : w.tz(r.value).format(g) : null
100
+ }), u = F({
101
+ startDate: i.value.startDate ? (z = n(i.value.startDate)) == null ? void 0 : z.tz(r.value).format(g) : null,
102
+ endDate: i.value.endDate ? (O = n(i.value.endDate)) == null ? void 0 : O.tz(r.value).format(g) : null
103
+ });
104
+ V(
105
+ [() => l.value],
106
+ () => {
107
+ l.value.endDate || (l.value.endDate = l.value.startDate);
108
+ const a = {
109
+ startDate: n.tz(l.value.startDate, r.value).startOf("day").utc().toISOString(),
110
+ endDate: n.tz(l.value.endDate, r.value).endOf("day").utc().toISOString()
111
+ };
112
+ d.value = a, y("update", a);
113
+ },
114
+ { deep: !0 }
115
+ ), V([() => u.value], () => {
116
+ const a = u.value.startDate, t = u.value.endDate, D = a ? n(
117
+ a instanceof Date ? a : n(a).toDate()
118
+ ).startOf("day").tz(r.value, !0).toISOString() : void 0, o = t ? n(t instanceof Date ? t : n(t).toDate()).tz(r.value, !0).endOf("day").toISOString() : void 0;
119
+ i.value = {
120
+ startDate: D,
121
+ endDate: o
122
+ };
123
+ });
124
+ function B(a) {
125
+ s.value = a;
126
+ }
127
+ function E(a) {
128
+ y("chip-closed", a);
129
+ }
130
+ return (a, t) => {
131
+ const D = S("FmSimpleDateRangePicker");
132
+ return c(), j("div", Q, [
133
+ b(D, {
134
+ modelValue: l.value,
135
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => l.value = o),
136
+ "show-predefined-range": "",
137
+ "predefined-range": e.datePredefinedRanges.map((o) => ({
138
+ ...o,
139
+ label: m(f)(`report.date.${o.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(k)({
147
+ startDate: l.value.startDate ?? "",
148
+ endDate: l.value.endDate ?? "",
149
+ locale: m(P)()
150
+ }),
151
+ removable: e.removable,
152
+ onChipClosed: t[0] || (t[0] = (o) => E(!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: u.value,
160
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => u.value = o),
161
+ "compare-type": s.value,
162
+ "onUpdate:compareType": t[3] || (t[3] = (o) => s.value = o),
163
+ "show-predefined-range": "",
164
+ "compare-target": l.value,
165
+ onSelectComparison: B
166
+ }, {
167
+ "trigger-button": C(() => [
168
+ b(M, {
169
+ label: `${m(f)("report.common.compare")}: ${m(k)({
170
+ startDate: u.value.startDate ?? null,
171
+ endDate: u.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
+ ae 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-DuzQ1OX-.js";
2
+ import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cl6q8Efn.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-BJW_sJot.js";
5
+ import { u as q, f as w } from "./vue-i18n-D33f1SSo.js";
6
6
  import { useRoute as B } from "vue-router";
7
7
  const $ = {
8
8
  key: 1,