@feedmepos/mf-report 5.16.3 → 5.17.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.
- package/dist/{App-C4DSMuvx.js → App-DnW_5m9k.js} +30 -30
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-D8TqsfVZ.js +11197 -0
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DFm2vtXH.js +185 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BTEBN_ME.js → Default.vue_vue_type_script_setup_true_lang-BOz9DH60.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-D_6OZr9j.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BNVfHFBz.js} +5 -5
- package/dist/{InsightView-CKmVOWRq.js → InsightView-K5G2jgHT.js} +5 -5
- package/dist/{Integration-BGJgv8ld.js → Integration-JiqzoKxJ.js} +83 -83
- package/dist/{Integrations-BFR4GSe-.js → Integrations-BHmoWPpM.js} +3 -3
- package/dist/{Layout-DdQb177t.js → Layout-X04fgDBo.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-VzoP4dBc.js → MenuTab.vue_vue_type_script_setup_true_lang-CEgwFa25.js} +6 -6
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Dl1esU5o.js → NavigationTab.vue_vue_type_script_setup_true_lang-6i5IDnT5.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DKR68sD0.js → NoData.vue_vue_type_script_setup_true_lang-DMKNJeDr.js} +1 -1
- package/dist/{OverviewView-BzRzOXDI.js → OverviewView-BqTlkV_f.js} +5 -5
- package/dist/{Report-CkVc0B6n.js → Report-BrcQkXK7.js} +4 -4
- package/dist/{ReportEditor-CExXqwyl.js → ReportEditor-2Fz1IySZ.js} +6 -6
- package/dist/{ReportView-BppRhNxn.js → ReportView-21veXp9M.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ci1K8-FH.js → SelectComponent.vue_vue_type_script_setup_true_lang-CCZo6blT.js} +1 -1
- package/dist/{Setting-oIRYrXp4.js → Setting-ChT46aiv.js} +4 -4
- package/dist/{TileEditor-BihrD1WZ.js → TileEditor-DtkIpqrb.js} +7 -7
- package/dist/{TransitionFade-BvRFIIqm.js → TransitionFade-zgQSBMP-.js} +5 -5
- package/dist/app.js +11 -11
- package/dist/{helper-BJTCQMQE.js → helper-CT5WD6D6.js} +1 -1
- package/dist/{vue-i18n-DN46F6B1.js → vue-i18n-Dre8K8BL.js} +2760 -2658
- package/package.json +1 -1
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-jXlWGocQ.js +0 -10961
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-Dt9Am72I.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-DN46F6B1.js";
|
|
3
|
-
import { d as P } from "./helper-BJTCQMQE.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
|
-
};
|