@feedmepos/mf-report 5.8.2-beta.0 → 5.9.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.
- package/dist/{App-CVBF-RIq.js → App-CQsY_29Q.js} +17 -18
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-w7lSYFth.js +180 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CwNa_c74.js → Default.vue_vue_type_script_setup_true_lang-DeKEY6-a.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-Dc0etyos.js +1447 -0
- package/dist/{InsightView-D6X9jnLz.js → InsightView-DmM_alRs.js} +7 -8
- package/dist/Integration-CAX-hbPd.js +5222 -0
- package/dist/Integrations-DRYSVJuG.js +338 -0
- package/dist/{Layout-0ZxLP82K.js → Layout-CDCrzjoH.js} +1 -1
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DNxXgTX4.js +342 -0
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D1VWyu4i.js → NavigationTab.vue_vue_type_script_setup_true_lang-DpFJ_jYh.js} +1078 -1080
- package/dist/NoData.vue_vue_type_script_setup_true_lang-DGTWa4E5.js +38 -0
- package/dist/{OverviewView-BFjjTkkR.js → OverviewView-DeGcbroH.js} +5 -5
- package/dist/{Report-Cvoqjnpe.js → Report-Do9-H4EW.js} +4 -4
- package/dist/ReportEditor-D4bnl00E.js +968 -0
- package/dist/{ReportView-6niCdR8K.js → ReportView-Cz6U-DNK.js} +7 -7
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Dq9vY9mj.js +110 -0
- package/dist/{Setting-BidP77Xr.js → Setting-DIAFop5l.js} +26 -23
- package/dist/TileEditor-DGhgxgTD.js +3080 -0
- package/dist/{TransitionFade-4Zow9tAu.js → TransitionFade-DmQjTWuM.js} +207 -203
- package/dist/app.js +59 -19
- package/dist/helper-CPPrXQSs.js +75 -0
- package/dist/style.css +1 -1
- package/dist/{v4-CLzZSDqm.js → v4-ZW3e7y3R.js} +1955 -1844
- package/dist/{global-loader-BQlMgPFO.js → vue-i18n-CbAseuRE.js} +2057 -1976
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-2O6NpHjE.js +0 -162
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DW-6QTKl.js +0 -1417
- package/dist/Integration-oTDRNhG8.js +0 -4751
- package/dist/Integrations-DN2WNYXH.js +0 -334
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DI3QDb25.js +0 -101
- package/dist/NoData.vue_vue_type_script_setup_true_lang-C10GhV_H.js +0 -31
- package/dist/ReportEditor-DkdI7ZmZ.js +0 -621
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-B-9VcGRC.js +0 -104
- package/dist/TileEditor-DCNCfcEY.js +0 -3016
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/index-Dw6wKcLo.js +0 -147
- package/dist/report-schema-IaDHay9I.js +0 -31
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, mergeModels as z, useModel as $, computed as G, resolveComponent as b, createBlock as S, unref as n, openBlock as V, withCtx as w, createElementVNode as i, createVNode as m, toDisplayString as J, createTextVNode as Q, ref as T, h as g, createElementBlock as X, Fragment as Y } from "vue";
|
|
2
|
-
import { useRouter as Z, useRoute as ee } from "vue-router";
|
|
3
|
-
import { I as R, u as E, e as N, f as oe, o as P, p as te } from "./global-loader-BQlMgPFO.js";
|
|
4
|
-
import { useBreakpoints as K, useSnackbar as ae, components as le, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B-9VcGRC.js";
|
|
6
|
-
import { storeToRefs as O } from "pinia";
|
|
7
|
-
import { u as re } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { _ as se } from "./NoData.vue_vue_type_script_setup_true_lang-C10GhV_H.js";
|
|
9
|
-
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const me = { class: "flex flex-col" }, de = { class: "fm-typo-en-body-lg-600" }, ue = { class: "flex gap-2 overflow-hidden flex-col" }, pe = { class: "flex gap-2 overflow-hidden" }, ce = { class: "flex flex-col w-full" }, fe = { class: "flex flex-col gap-5 p-6" }, ge = { class: "flex" }, ve = /* @__PURE__ */ q({
|
|
11
|
-
__name: "AddIntegrationDialog",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: { type: Boolean, default: !1 },
|
|
14
|
-
modelModifiers: {},
|
|
15
|
-
form: {
|
|
16
|
-
default: () => ({ name: "", platform: R.AutoCount })
|
|
17
|
-
},
|
|
18
|
-
formModifiers: {}
|
|
19
|
-
},
|
|
20
|
-
emits: /* @__PURE__ */ z(["confirm"], ["update:modelValue", "update:form"]),
|
|
21
|
-
setup(B, { emit: F }) {
|
|
22
|
-
const { t: u } = E(), p = $(B, "modelValue"), s = $(B, "form"), { breakpoints: _ } = K(), { options: k } = O(N()), c = G(
|
|
23
|
-
() => k.value.map((o) => ({
|
|
24
|
-
label: o.name,
|
|
25
|
-
value: o.platform,
|
|
26
|
-
sublabel: u(`report.integration.type.${o.type}`)
|
|
27
|
-
}))
|
|
28
|
-
), x = F;
|
|
29
|
-
function v() {
|
|
30
|
-
p.value = !1;
|
|
31
|
-
}
|
|
32
|
-
function y() {
|
|
33
|
-
x("confirm");
|
|
34
|
-
}
|
|
35
|
-
return (o, e) => {
|
|
36
|
-
const I = b("FmTextField"), A = b("FmSelect"), C = b("FmButton"), h = b("FmDialog"), D = b("FmBottomSheet");
|
|
37
|
-
return n(_).lg || n(_).md ? (V(), S(h, {
|
|
38
|
-
key: 0,
|
|
39
|
-
modelValue: p.value,
|
|
40
|
-
"onUpdate:modelValue": e[2] || (e[2] = (r) => p.value = r),
|
|
41
|
-
overlay: !0
|
|
42
|
-
}, {
|
|
43
|
-
"dialog-header": w(() => [
|
|
44
|
-
i("div", me, [
|
|
45
|
-
i("p", de, J(n(u)("report.integration.add")), 1)
|
|
46
|
-
])
|
|
47
|
-
]),
|
|
48
|
-
default: w(() => [
|
|
49
|
-
i("div", ue, [
|
|
50
|
-
m(I, {
|
|
51
|
-
modelValue: s.value.name,
|
|
52
|
-
"onUpdate:modelValue": e[0] || (e[0] = (r) => s.value.name = r),
|
|
53
|
-
label: n(u)("report.common.name"),
|
|
54
|
-
placeholder: n(u)("report.integration.enter")
|
|
55
|
-
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
56
|
-
m(A, {
|
|
57
|
-
modelValue: s.value.platform,
|
|
58
|
-
"onUpdate:modelValue": e[1] || (e[1] = (r) => s.value.platform = r),
|
|
59
|
-
label: n(u)("report.common.platform"),
|
|
60
|
-
items: c.value
|
|
61
|
-
}, null, 8, ["modelValue", "label", "items"])
|
|
62
|
-
])
|
|
63
|
-
]),
|
|
64
|
-
"dialog-footer": w(() => [
|
|
65
|
-
e[6] || (e[6] = i("div", { class: "grow" }, null, -1)),
|
|
66
|
-
m(C, {
|
|
67
|
-
label: "Cancel",
|
|
68
|
-
variant: "tertiary",
|
|
69
|
-
onClick: v
|
|
70
|
-
}),
|
|
71
|
-
m(C, {
|
|
72
|
-
label: "Add",
|
|
73
|
-
variant: "primary",
|
|
74
|
-
disabled: s.value.name === "",
|
|
75
|
-
onClick: y
|
|
76
|
-
}, null, 8, ["disabled"])
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 8, ["modelValue"])) : (V(), S(D, {
|
|
80
|
-
key: 1,
|
|
81
|
-
modelValue: p.value,
|
|
82
|
-
"onUpdate:modelValue": e[5] || (e[5] = (r) => p.value = r)
|
|
83
|
-
}, {
|
|
84
|
-
"bottom-sheet-header": w(() => e[7] || (e[7] = [
|
|
85
|
-
Q("Integration")
|
|
86
|
-
])),
|
|
87
|
-
default: w(() => [
|
|
88
|
-
i("div", pe, [
|
|
89
|
-
i("div", ce, [
|
|
90
|
-
i("div", fe, [
|
|
91
|
-
m(I, {
|
|
92
|
-
modelValue: s.value.name,
|
|
93
|
-
"onUpdate:modelValue": e[3] || (e[3] = (r) => s.value.name = r),
|
|
94
|
-
label: "Name",
|
|
95
|
-
placeholder: "Enter a name"
|
|
96
|
-
}, null, 8, ["modelValue"]),
|
|
97
|
-
m(ne, {
|
|
98
|
-
modelValue: s.value.platform,
|
|
99
|
-
"onUpdate:modelValue": e[4] || (e[4] = (r) => s.value.platform = r),
|
|
100
|
-
label: "Integration",
|
|
101
|
-
items: c.value
|
|
102
|
-
}, null, 8, ["modelValue", "items"])
|
|
103
|
-
]),
|
|
104
|
-
i("div", ge, [
|
|
105
|
-
e[8] || (e[8] = i("div", { class: "grow" }, null, -1)),
|
|
106
|
-
m(C, {
|
|
107
|
-
label: "Cancel",
|
|
108
|
-
variant: "tertiary",
|
|
109
|
-
onClick: v
|
|
110
|
-
}),
|
|
111
|
-
m(C, {
|
|
112
|
-
label: "Add Integration",
|
|
113
|
-
variant: "primary",
|
|
114
|
-
onClick: y
|
|
115
|
-
})
|
|
116
|
-
])
|
|
117
|
-
])
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}, 8, ["modelValue"]));
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}), ye = { class: "gap-24 px-24 py-16" }, be = /* @__PURE__ */ q({
|
|
125
|
-
__name: "Integrations",
|
|
126
|
-
setup(B) {
|
|
127
|
-
const F = Z(), u = ee(), { settings: p, options: s, disabled: _ } = O(N()), { getSettings: k } = N(), c = ae(), { promptLoader: x } = oe(), v = T(!1), y = T({ name: "", platform: R.AutoCount }), { t: o } = E(), e = G(() => p.value.reduce((t, a) => {
|
|
128
|
-
const f = s.value.find((l) => l.platform === a.platform.name);
|
|
129
|
-
return f && t.push({
|
|
130
|
-
id: a._id,
|
|
131
|
-
name: a.name,
|
|
132
|
-
platform: f.platform,
|
|
133
|
-
asset: f.asset,
|
|
134
|
-
type: f.type
|
|
135
|
-
}), t;
|
|
136
|
-
}, []));
|
|
137
|
-
async function I() {
|
|
138
|
-
await x(async () => {
|
|
139
|
-
await k();
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
async function A() {
|
|
143
|
-
await x(async () => {
|
|
144
|
-
try {
|
|
145
|
-
const t = await P({
|
|
146
|
-
name: y.value.name,
|
|
147
|
-
platform: {
|
|
148
|
-
name: y.value.platform
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
await k(), v.value = !1, F.push({
|
|
152
|
-
name: "integration",
|
|
153
|
-
params: { id: t._id },
|
|
154
|
-
query: u.query
|
|
155
|
-
});
|
|
156
|
-
} catch (t) {
|
|
157
|
-
c.open({ type: "error", message: t.message });
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
const { promptMessage: C } = re();
|
|
162
|
-
async function h(t) {
|
|
163
|
-
t === "new" ? v.value = !0 : t ? F.push({
|
|
164
|
-
name: "integration",
|
|
165
|
-
params: { id: t },
|
|
166
|
-
query: u.query
|
|
167
|
-
}) : c.open({ type: "error", message: o("report.integration.error.invalid") });
|
|
168
|
-
}
|
|
169
|
-
const { FmButton: D, FmMenu: r, FmMenuItem: H, FmIcon: _e, FmChip: L } = le, { breakpoints: U } = K(), W = [
|
|
170
|
-
{
|
|
171
|
-
accessorKey: "name",
|
|
172
|
-
header: o("report.common.name"),
|
|
173
|
-
meta: {
|
|
174
|
-
maxWidth: "50px",
|
|
175
|
-
width: "50px"
|
|
176
|
-
},
|
|
177
|
-
enableSorting: !1
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
accessorKey: "tag",
|
|
181
|
-
header: o("report.common.platform"),
|
|
182
|
-
cell: (t) => {
|
|
183
|
-
const a = t.row.original;
|
|
184
|
-
return g("div", { class: "flex flex-row items-center gap-x-16" }, [
|
|
185
|
-
g("img", { src: a.asset, class: "w-[60px]" }),
|
|
186
|
-
g(
|
|
187
|
-
L,
|
|
188
|
-
{
|
|
189
|
-
class: "text-fm-color-typo-info fm-typo-en-body-sm-600",
|
|
190
|
-
compact: !0
|
|
191
|
-
},
|
|
192
|
-
{ default: () => o(`report.integration.type.${a.type}`) }
|
|
193
|
-
)
|
|
194
|
-
]);
|
|
195
|
-
},
|
|
196
|
-
enableSorting: !1
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
accessorKey: "",
|
|
200
|
-
id: "Action",
|
|
201
|
-
header: "",
|
|
202
|
-
meta: {
|
|
203
|
-
maxWidth: "20px"
|
|
204
|
-
},
|
|
205
|
-
enableSorting: !1,
|
|
206
|
-
cell: (t) => {
|
|
207
|
-
const a = t.row.original, f = [
|
|
208
|
-
{
|
|
209
|
-
label: o("report.common.duplicate"),
|
|
210
|
-
onClick: async () => {
|
|
211
|
-
await x(async () => {
|
|
212
|
-
try {
|
|
213
|
-
const l = p.value.find((d) => d._id === a.id);
|
|
214
|
-
l && (await P({
|
|
215
|
-
...l,
|
|
216
|
-
name: `${l == null ? void 0 : l.name} cloned`
|
|
217
|
-
}), await k());
|
|
218
|
-
} catch (l) {
|
|
219
|
-
c.open({ type: "error", message: l.message });
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
},
|
|
223
|
-
class: ""
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
label: o("report.common.delete"),
|
|
227
|
-
onClick: async () => {
|
|
228
|
-
await C({
|
|
229
|
-
message: o("report.integration.delete", { name: a.name }),
|
|
230
|
-
title: o("report.common.delete")
|
|
231
|
-
}) && await x(async () => {
|
|
232
|
-
try {
|
|
233
|
-
await te(a.id), await I();
|
|
234
|
-
} catch (d) {
|
|
235
|
-
c.open({ type: "error", message: d.message });
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
},
|
|
239
|
-
class: "text-fm-color-typo-error"
|
|
240
|
-
}
|
|
241
|
-
];
|
|
242
|
-
return g(
|
|
243
|
-
"div",
|
|
244
|
-
{
|
|
245
|
-
class: `flex ${U.value.lg || U.value.md ? "justify-end" : ""} items-center`
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
default: () => [
|
|
249
|
-
g(
|
|
250
|
-
r,
|
|
251
|
-
{ stopClickPropagation: !0, shift: !0 },
|
|
252
|
-
{
|
|
253
|
-
default: () => f.map(
|
|
254
|
-
(l) => g(
|
|
255
|
-
H,
|
|
256
|
-
{
|
|
257
|
-
onClick: l.onClick,
|
|
258
|
-
label: l.label,
|
|
259
|
-
class: l.class
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
label: () => g("p", l.label)
|
|
263
|
-
}
|
|
264
|
-
)
|
|
265
|
-
),
|
|
266
|
-
"menu-button": () => g(
|
|
267
|
-
D,
|
|
268
|
-
{
|
|
269
|
-
variant: "tertiary",
|
|
270
|
-
size: "md",
|
|
271
|
-
icon: "more_vert",
|
|
272
|
-
iconColor: M.NeutralGray400
|
|
273
|
-
},
|
|
274
|
-
{}
|
|
275
|
-
)
|
|
276
|
-
}
|
|
277
|
-
)
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
];
|
|
284
|
-
function j(t) {
|
|
285
|
-
_.value ? c.open({ message: o("report.integration.error.planNotSupported"), type: "error" }) : t === "create" && h("new");
|
|
286
|
-
}
|
|
287
|
-
return (t, a) => {
|
|
288
|
-
const f = b("FmPageHead"), l = b("FmTable");
|
|
289
|
-
return V(), X(Y, null, [
|
|
290
|
-
m(ve, {
|
|
291
|
-
modelValue: v.value,
|
|
292
|
-
"onUpdate:modelValue": a[0] || (a[0] = (d) => v.value = d),
|
|
293
|
-
form: y.value,
|
|
294
|
-
"onUpdate:form": a[1] || (a[1] = (d) => y.value = d),
|
|
295
|
-
onConfirm: A
|
|
296
|
-
}, null, 8, ["modelValue", "form"]),
|
|
297
|
-
m(f, {
|
|
298
|
-
title: n(o)("report.integration.title"),
|
|
299
|
-
class: "h-[68px]",
|
|
300
|
-
actions: [
|
|
301
|
-
{
|
|
302
|
-
label: n(o)("report.integration.add"),
|
|
303
|
-
value: "create",
|
|
304
|
-
isPrimary: !0,
|
|
305
|
-
bgColor: n(_) ? n(M).NeutralGray100 : void 0,
|
|
306
|
-
fontColor: n(_) ? n(M).NeutralGray200 : void 0,
|
|
307
|
-
prependIcon: "add"
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"onClick:action": j
|
|
311
|
-
}, null, 8, ["title", "actions"]),
|
|
312
|
-
i("div", ye, [
|
|
313
|
-
e.value.length > 0 ? (V(), S(l, {
|
|
314
|
-
key: 0,
|
|
315
|
-
ref: "table",
|
|
316
|
-
"row-data": e.value,
|
|
317
|
-
"column-defs": W,
|
|
318
|
-
"shrink-at": !1,
|
|
319
|
-
onRowClick: a[2] || (a[2] = (d) => {
|
|
320
|
-
h(d.original.id);
|
|
321
|
-
})
|
|
322
|
-
}, null, 8, ["row-data"])) : (V(), S(se, {
|
|
323
|
-
key: 1,
|
|
324
|
-
title: n(o)("report.integration.noData.title"),
|
|
325
|
-
"sub-title": n(o)("report.integration.noData.description")
|
|
326
|
-
}, null, 8, ["title", "sub-title"]))
|
|
327
|
-
])
|
|
328
|
-
], 64);
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
}), Be = /* @__PURE__ */ ie(be, [["__scopeId", "data-v-8133bb2c"]]);
|
|
332
|
-
export {
|
|
333
|
-
Be as default
|
|
334
|
-
};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, createElementBlock as y, openBlock as l, createVNode as d, unref as t, isRef as u, withCtx as g, useModel as R, resolveComponent as _, normalizeClass as x, createElementVNode as F, createBlock as v, createCommentVNode as C, Fragment as V, renderList as M, toDisplayString as T } from "vue";
|
|
2
|
-
import { b as $ } from "./global-loader-BQlMgPFO.js";
|
|
3
|
-
import { storeToRefs as B } from "pinia";
|
|
4
|
-
import { a as D, d as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-D1VWyu4i.js";
|
|
5
|
-
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-2O6NpHjE.js";
|
|
6
|
-
import { useBreakpoints as w } from "@feedmepos/ui-library";
|
|
7
|
-
const S = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, N = /* @__PURE__ */ b({
|
|
8
|
-
__name: "Filter",
|
|
9
|
-
setup(k) {
|
|
10
|
-
const c = $(), {
|
|
11
|
-
locations: n,
|
|
12
|
-
selectedLocationIds: f,
|
|
13
|
-
dateRange: a,
|
|
14
|
-
compareDateRange: r,
|
|
15
|
-
timeRange: m,
|
|
16
|
-
defaultDateSetting: s,
|
|
17
|
-
selectTimeDefault: p
|
|
18
|
-
} = B(c);
|
|
19
|
-
return (i, e) => (l(), y("div", S, [
|
|
20
|
-
d(D, {
|
|
21
|
-
modelValue: t(f),
|
|
22
|
-
"onUpdate:modelValue": e[5] || (e[5] = (o) => u(f) ? f.value = o : null),
|
|
23
|
-
options: t(n)
|
|
24
|
-
}, {
|
|
25
|
-
default: g(() => [
|
|
26
|
-
d(U, {
|
|
27
|
-
"date-range": t(a),
|
|
28
|
-
"onUpdate:dateRange": e[0] || (e[0] = (o) => u(a) ? a.value = o : null),
|
|
29
|
-
"compare-date-range": t(r),
|
|
30
|
-
"onUpdate:compareDateRange": e[1] || (e[1] = (o) => u(r) ? r.value = o : null),
|
|
31
|
-
"compare-type": t(s).defaultCompareType,
|
|
32
|
-
"onUpdate:compareType": e[2] || (e[2] = (o) => t(s).defaultCompareType = o),
|
|
33
|
-
compare: ""
|
|
34
|
-
}, null, 8, ["date-range", "compare-date-range", "compare-type"]),
|
|
35
|
-
d(I, {
|
|
36
|
-
"time-range": t(m),
|
|
37
|
-
"onUpdate:timeRange": e[3] || (e[3] = (o) => u(m) ? m.value = o : null),
|
|
38
|
-
"select-time-default": t(p),
|
|
39
|
-
"onUpdate:selectTimeDefault": e[4] || (e[4] = (o) => u(p) ? p.value = o : null),
|
|
40
|
-
"default-date-range": t(s).timeOptions
|
|
41
|
-
}, null, 8, ["time-range", "select-time-default", "default-date-range"])
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
}, 8, ["modelValue", "options"])
|
|
45
|
-
]));
|
|
46
|
-
}
|
|
47
|
-
}), z = { class: "fm-typo-en-body-md-400" }, G = /* @__PURE__ */ b({
|
|
48
|
-
__name: "MenuTab",
|
|
49
|
-
props: {
|
|
50
|
-
modelValue: { required: !1, default: [] },
|
|
51
|
-
modelModifiers: {}
|
|
52
|
-
},
|
|
53
|
-
emits: ["update:modelValue"],
|
|
54
|
-
setup(k) {
|
|
55
|
-
const c = R(k, "modelValue"), { breakpoints: n } = w();
|
|
56
|
-
return (f, a) => {
|
|
57
|
-
const r = _("FmButton"), m = _("FmIcon"), s = _("FmMenuItem"), p = _("FmMenu");
|
|
58
|
-
return l(), y("div", {
|
|
59
|
-
class: x(["flex items-center pb-6 px-24", `${t(n).lg || t(n).md ? "px-24" : "pl-3"}`])
|
|
60
|
-
}, [
|
|
61
|
-
d(N),
|
|
62
|
-
a[0] || (a[0] = F("div", { class: "flex grow" }, null, -1)),
|
|
63
|
-
c.value.length > 0 ? (l(), v(p, {
|
|
64
|
-
key: 0,
|
|
65
|
-
trigger: "click",
|
|
66
|
-
placement: "left",
|
|
67
|
-
shift: !0,
|
|
68
|
-
class: x(t(n).sm || t(n).xs ? "pr-3" : "")
|
|
69
|
-
}, {
|
|
70
|
-
"menu-button": g(() => [
|
|
71
|
-
d(r, {
|
|
72
|
-
"append-icon": "more_vert",
|
|
73
|
-
variant: "tertiary",
|
|
74
|
-
size: "md",
|
|
75
|
-
class: "w-[36px] bg-none"
|
|
76
|
-
})
|
|
77
|
-
]),
|
|
78
|
-
default: g(() => [
|
|
79
|
-
(l(!0), y(V, null, M(c.value, (i, e) => (l(), v(s, {
|
|
80
|
-
key: `button-${e}`,
|
|
81
|
-
onClick: i.onClick
|
|
82
|
-
}, {
|
|
83
|
-
label: g(() => [
|
|
84
|
-
i.prependIcon ?? !1 ? (l(), v(m, {
|
|
85
|
-
key: 0,
|
|
86
|
-
name: i.icon
|
|
87
|
-
}, null, 8, ["name"])) : C("", !0),
|
|
88
|
-
F("p", z, T(i.label), 1)
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1032, ["onClick"]))), 128))
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["class"])) : C("", !0)
|
|
95
|
-
], 2);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
export {
|
|
100
|
-
G as _
|
|
101
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, computed as s, resolveComponent as p, createElementBlock as f, openBlock as u, renderSlot as d, createVNode as _, withCtx as g, createElementVNode as o, toDisplayString as r } from "vue";
|
|
2
|
-
import { u as y } from "./global-loader-BQlMgPFO.js";
|
|
3
|
-
const x = { class: "flex flex-col h-full" }, D = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, T = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, v = /* @__PURE__ */ m({
|
|
4
|
-
__name: "NoData",
|
|
5
|
-
props: {
|
|
6
|
-
title: { default: "report.messages.noData" },
|
|
7
|
-
subTitle: { default: "report.messages.adjustFiltersOrSelectADifferentTimeRange" }
|
|
8
|
-
},
|
|
9
|
-
setup(a) {
|
|
10
|
-
const { t } = y(), e = a, l = s(() => e.title === "report.messages.noData" ? t("report.messages.noData") : e.title), n = s(() => e.subTitle === "report.messages.adjustFiltersOrSelectADifferentTimeRange" ? t("report.messages.adjustFiltersOrSelectADifferentTimeRange") : e.subTitle);
|
|
11
|
-
return (c, h) => {
|
|
12
|
-
const i = p("FmCard");
|
|
13
|
-
return u(), f("div", x, [
|
|
14
|
-
d(c.$slots, "menu"),
|
|
15
|
-
_(i, {
|
|
16
|
-
class: "p-24 h-full flex flex-col gap-2 items-center justify-center",
|
|
17
|
-
variant: "flat"
|
|
18
|
-
}, {
|
|
19
|
-
default: g(() => [
|
|
20
|
-
o("p", D, r(l.value), 1),
|
|
21
|
-
o("p", T, r(n.value), 1)
|
|
22
|
-
]),
|
|
23
|
-
_: 1
|
|
24
|
-
})
|
|
25
|
-
]);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
v as _
|
|
31
|
-
};
|