@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
@@ -1,180 +0,0 @@
1
- import { defineComponent as O, resolveComponent as b, createBlock as D, openBlock as i, withCtx as R, createCommentVNode as S, createElementVNode as V, toDisplayString as E, renderSlot as N, mergeModels as k, useModel as v, ref as x, watch as F, createElementBlock as Y, createVNode as y, unref as u } from "vue";
2
- import { u as j, d as o, P as U, C as q } from "./vue-i18n-CHLsTHGb.js";
3
- import { d as P } from "./helper-DJZfVXf0.js";
4
- import { detectLocale as T } from "@feedmepos/mf-common";
5
- const z = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, _ = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, M = /* @__PURE__ */ O({
6
- __name: "FilterChip",
7
- props: {
8
- label: {
9
- type: String,
10
- default: ""
11
- },
12
- leftIcon: {
13
- type: String,
14
- default: ""
15
- },
16
- rightIcon: {
17
- type: String,
18
- default: ""
19
- }
20
- },
21
- setup(e) {
22
- const c = e;
23
- return (p, g) => {
24
- const d = b("FmIcon"), m = b("FmChip");
25
- return i(), D(m, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
26
- default: R(() => [
27
- e.leftIcon ? (i(), D(d, {
28
- key: 0,
29
- name: c.leftIcon,
30
- size: "sm",
31
- outline: ""
32
- }, null, 8, ["name"])) : S("", !0),
33
- V("p", z, E(c.label), 1),
34
- e.rightIcon ? (i(), D(d, {
35
- key: 1,
36
- name: e.rightIcon,
37
- size: "sm",
38
- outline: ""
39
- }, null, 8, ["name"])) : S("", !0),
40
- V("div", _, [
41
- N(p.$slots, "default")
42
- ])
43
- ]),
44
- _: 3
45
- });
46
- };
47
- }
48
- }), A = { class: "flex gap-2 items-center" }, f = "YYYY-MM-DD", K = /* @__PURE__ */ O({
49
- __name: "DateRangeSelect",
50
- props: /* @__PURE__ */ k({
51
- compare: {
52
- type: Boolean,
53
- default: !1
54
- },
55
- datePredefinedRanges: {
56
- type: Array,
57
- default: () => U
58
- },
59
- label: {
60
- type: String,
61
- required: !1,
62
- default: null
63
- },
64
- removable: {
65
- type: Boolean,
66
- required: !1,
67
- default: !1
68
- }
69
- }, {
70
- compareType: {
71
- type: String,
72
- default: q.PRECEDING_PERIOD
73
- },
74
- compareTypeModifiers: {},
75
- dateRange: {
76
- type: Object,
77
- default: () => ({
78
- startDate: void 0,
79
- endDate: void 0
80
- })
81
- },
82
- dateRangeModifiers: {},
83
- compareDateRange: {
84
- type: Object,
85
- default: () => ({
86
- startDate: void 0,
87
- endDate: void 0
88
- })
89
- },
90
- compareDateRangeModifiers: {}
91
- }),
92
- emits: /* @__PURE__ */ k(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
93
- setup(e, { emit: c }) {
94
- var C, h, I;
95
- const { t: p } = j(), g = c, d = v(e, "compareType"), m = v(e, "dateRange"), s = v(e, "compareDateRange"), t = x({
96
- startDate: (C = o(m.value.startDate)) == null ? void 0 : C.local().format(f),
97
- endDate: (h = o(m.value.endDate)) == null ? void 0 : h.local().format(f)
98
- }), a = x({
99
- startDate: s.value.startDate ? (I = o(s.value.startDate)) == null ? void 0 : I.local().format(f) : null,
100
- endDate: s.value.endDate ? o(s.value.endDate).local().format(f) : null
101
- });
102
- F(
103
- [() => t.value],
104
- () => {
105
- t.value.endDate || (t.value.endDate = t.value.startDate);
106
- const r = {
107
- startDate: o(t.value.startDate).toISOString(),
108
- endDate: o(t.value.endDate).toISOString()
109
- };
110
- m.value = r, g("update", r);
111
- },
112
- { deep: !0 }
113
- ), F([() => a.value], () => {
114
- s.value = {
115
- startDate: a.value.startDate ? o(a.value.startDate).toISOString() : void 0,
116
- endDate: a.value.endDate ? o(a.value.endDate).toISOString() : void 0
117
- };
118
- });
119
- function $(r) {
120
- d.value = r;
121
- }
122
- function B(r) {
123
- g("chip-closed", r);
124
- }
125
- return (r, l) => {
126
- const w = b("FmSimpleDateRangePicker");
127
- return i(), Y("div", A, [
128
- y(w, {
129
- modelValue: t.value,
130
- "onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n),
131
- "show-predefined-range": "",
132
- "predefined-range": e.datePredefinedRanges.map((n) => ({
133
- ...n,
134
- label: u(p)(`report.date.${n.label}`)
135
- })),
136
- class: "w-2/6"
137
- }, {
138
- "trigger-button": R(() => [
139
- y(M, {
140
- "left-icon": e.label ? "filter_alt" : "calendar_month",
141
- label: e.label ?? u(P)({
142
- startDate: t.value.startDate ?? "",
143
- endDate: t.value.endDate ?? "",
144
- locale: u(T)()
145
- }),
146
- removable: e.removable,
147
- onChipClosed: l[0] || (l[0] = (n) => B(!0))
148
- }, null, 8, ["left-icon", "label", "removable"])
149
- ]),
150
- _: 1
151
- }, 8, ["modelValue", "predefined-range"]),
152
- e.compare ? (i(), D(w, {
153
- key: 0,
154
- modelValue: a.value,
155
- "onUpdate:modelValue": l[2] || (l[2] = (n) => a.value = n),
156
- "compare-type": d.value,
157
- "onUpdate:compareType": l[3] || (l[3] = (n) => d.value = n),
158
- "show-predefined-range": "",
159
- "compare-target": t.value,
160
- onSelectComparison: $
161
- }, {
162
- "trigger-button": R(() => [
163
- y(M, {
164
- label: `${u(p)("report.common.compare")}: ${u(P)({
165
- startDate: a.value.startDate ?? null,
166
- endDate: a.value.endDate ?? null,
167
- locale: u(T)()
168
- })}`
169
- }, null, 8, ["label"])
170
- ]),
171
- _: 1
172
- }, 8, ["modelValue", "compare-type", "compare-target"])) : S("", !0)
173
- ]);
174
- };
175
- }
176
- });
177
- export {
178
- K as _,
179
- M as a
180
- };