@feedmepos/mf-report 5.19.20 → 5.19.21-beta.1

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 (34) hide show
  1. package/dist/{App-CpPkDCME.js → App-nUveJE2d.js} +31 -31
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BLVm6EP9.js → BaseDialog.vue_vue_type_script_setup_true_lang-BMUdA00d.js} +2096 -1854
  3. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-BeBr4VIF.js +282 -0
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-DTHkWGvx.js → Default.vue_vue_type_script_setup_true_lang-B4KGPc-A.js} +2 -2
  5. package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-TaboGeqe.js +2455 -0
  6. package/dist/{InsightView-wYbhKrWa.js → InsightView-VRhKOgcg.js} +5 -5
  7. package/dist/{Integration-GkPCivXG.js → Integration-BovNO2yX.js} +2 -2
  8. package/dist/{Integrations-BGNXoeWI.js → Integrations-DIXSWGS_.js} +3 -3
  9. package/dist/{Layout-B7pJLV4_.js → Layout-Djm1HkoE.js} +1 -1
  10. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BKLjwl2R.js +107 -0
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cl6q8Efn.js → NavigationTab.vue_vue_type_script_setup_true_lang-BRpEu6MW.js} +7331 -7518
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-CUuIeYhQ.js → NoData.vue_vue_type_script_setup_true_lang-CtN7oqXx.js} +1 -1
  13. package/dist/{OverviewView-DzumtIfB.js → OverviewView-D58xngVs.js} +5 -5
  14. package/dist/{Report-B_SX8ejx.js → Report-B-YYrr3B.js} +4 -4
  15. package/dist/ReportEditor-0cP29pgc.js +1070 -0
  16. package/dist/{ReportView-DPMurcsC.js → ReportView-BgUotxrl.js} +7 -7
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-IdXw91_v.js → SelectComponent.vue_vue_type_script_setup_true_lang-BcQEW5MO.js} +1 -1
  18. package/dist/{Setting-BsikuNba.js → Setting-DgU3IvCo.js} +4 -4
  19. package/dist/TileEditor-DzDpc7L6.js +2766 -0
  20. package/dist/TransitionFade-DwcV3_6N.js +2366 -0
  21. package/dist/app.js +49 -23
  22. package/dist/assets/formatChartData.worker-Cb40k96i.js +134 -0
  23. package/dist/assets/processTableData.worker-DS6uNX_h.js +134 -0
  24. package/dist/{vue-i18n-D33f1SSo.js → vue-i18n-BJW_sJot.js} +405 -400
  25. package/package.json +1 -1
  26. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-C7mhpRK0.js +0 -185
  27. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DVY4vxAN.js +0 -1669
  28. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-C7pQMilo.js +0 -352
  29. package/dist/ReportEditor-D5OHT5As.js +0 -1013
  30. package/dist/TileEditor-Bzk4U52d.js +0 -2735
  31. package/dist/TransitionFade-Blz6m84x.js +0 -2499
  32. package/dist/assets/formatChartData.worker-CO5zKPH5.js +0 -134
  33. package/dist/assets/processTableData.worker-BAMcED0j.js +0 -134
  34. package/dist/helper-B2iB0Dbh.js +0 -75
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.19.20",
3
+ "version": "5.19.21-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,185 +0,0 @@
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
- };