@feedmepos/mf-report 5.4.7-beta.7 → 5.4.7-beta.9
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/{DateRangeSelect.vue_vue_type_script_setup_true_lang-ty-PtMcx.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-COzjnhY9.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-6vhTiruc.js → Default.vue_vue_type_script_setup_true_lang-EiYgWoD9.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang--QkePQO7.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DHeFE-hw.js} +1 -1
- package/dist/{InsightView-57_EDiIS.js → InsightView-jLmo_Qu4.js} +4 -4
- package/dist/{Integration-zrOhYmcp.js → Integration-FDHfysxM.js} +2 -2
- package/dist/{Integrations-vunm8ES9.js → Integrations-UlTlUAdP.js} +47 -52
- package/dist/{Layout-7LzOA9An.js → Layout-wXsz7KdD.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-cTr66i3H.js → LocationSelect.vue_vue_type_script_setup_true_lang-2fBkvCIY.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-JWQyuHgm.js → MenuTab.vue_vue_type_script_setup_true_lang-X-70ul16.js} +4 -4
- package/dist/OverviewView-EqZ39ADK.js +60 -0
- package/dist/Report-DnF_lEQP.js +407 -0
- package/dist/{ReportEditor-Ca1yJIJ7.js → ReportEditor-hm-Wfdaq.js} +3 -3
- package/dist/ReportView-7rK96UWX.js +160 -0
- package/dist/{Setting-WWpN9uF1.js → Setting-pJVduDX-.js} +3 -3
- package/dist/{TileEditor-Nx22U7nK.js → TileEditor-bshk17u5.js} +3 -3
- package/dist/{TransitionFade-lXvhycFh.js → TransitionFade-ZZ_K2Tqa.js} +2 -2
- package/dist/{app-R4SOmanv.js → app--LuoGQNx.js} +12 -12
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{timeFormat-1LZAG5vf.js → timeFormat-P9M4rX8J.js} +1 -1
- package/package.json +1 -1
- package/dist/OverviewView-EhmoO_GV.js +0 -75
- package/dist/Report--e8k3Esd.js +0 -423
- package/dist/ReportView-JI5-5Gl6.js +0 -204
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, resolveComponent as f, openBlock as r, createBlock as s, withCtx as g, createCommentVNode as D, createElementVNode as x, toDisplayString as F, mergeModels as M, useModel as i, ref as C, watch as b, createElementBlock as P, createVNode as p, unref as I } from "vue";
|
|
2
|
-
import { J as T, C as O, d as n, K as w } from "./app
|
|
2
|
+
import { J as T, C as O, d as n, K as w } from "./app--LuoGQNx.js";
|
|
3
3
|
const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, V = /* @__PURE__ */ _({
|
|
4
4
|
__name: "FilterChip",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, openBlock as r, createElementBlock as s, normalizeClass as d, unref as e, normalizeStyle as n, createBlock as y, createCommentVNode as _, createVNode as k, createElementVNode as x, renderSlot as g } from "vue";
|
|
2
|
-
import { c as v, r as h } from "./app
|
|
2
|
+
import { c as v, r as h } from "./app--LuoGQNx.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as w } from "pinia";
|
|
5
5
|
import { useRoute as q } from "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as E, useModel as z, computed as i, ref as D, resolveComponent as y, openBlock as h, createElementBlock as S, Fragment as W, renderSlot as U, createVNode as k, createElementVNode as C, toDisplayString as K, unref as q, withCtx as $, createBlock as R, normalizeClass as te, normalizeStyle as ye, createCommentVNode as G, h as fe, renderList as we, mergeModels as Ie, watch as ee, onMounted as Pe, onUnmounted as We, resolveDynamicComponent as Ee, withDirectives as ze, vShow as He } from "vue";
|
|
2
|
-
import { W as n, a as _e, e as ne, m as Oe, v as ae, l as he, R as qe, n as Ue, o as je, q as Ge } from "./app
|
|
2
|
+
import { W as n, a as _e, e as ne, m as Oe, v as ae, l as he, R as qe, n as Ue, o as je, q as Ge } from "./app--LuoGQNx.js";
|
|
3
3
|
import { storeToRefs as se } from "pinia";
|
|
4
4
|
import { _ as ge } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
|
|
5
5
|
import { useBreakpoints as Je, useSnackbar as Ke } from "@feedmepos/ui-library";
|
|
@@ -2,14 +2,14 @@ var Xo = Object.defineProperty;
|
|
|
2
2
|
var Ko = (i, t, e) => t in i ? Xo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => (Ko(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { ref as Ht, defineComponent as ne, watch as ri, computed as wt, onMounted as qo, openBlock as z, createElementBlock as U, createElementVNode as R, renderSlot as jn, toDisplayString as ft, resolveDirective as $n, Fragment as Ei, renderList as Ii, withDirectives as Ge, createVNode as tt, createCommentVNode as Mt, normalizeClass as Ze, resolveComponent as li, unref as Qt, useModel as Go, createBlock as ue, resolveDynamicComponent as Zo, withCtx as Jt, createTextVNode as Qo, isRef as ki, nextTick as Jo } from "vue";
|
|
5
|
-
import { _ as ta } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ta } from "./Default.vue_vue_type_script_setup_true_lang-EiYgWoD9.js";
|
|
6
6
|
import { _ as ea } from "./HeaderTab.vue_vue_type_script_setup_true_lang--56TBWoS.js";
|
|
7
|
-
import { _ as ia } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { d as zi, e as Yn, F as Un, f as Xn, g as sa, a as na } from "./app
|
|
7
|
+
import { _ as ia } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COzjnhY9.js";
|
|
8
|
+
import { d as zi, e as Yn, F as Un, f as Xn, g as sa, a as na } from "./app--LuoGQNx.js";
|
|
9
9
|
import { storeToRefs as Kn } from "pinia";
|
|
10
10
|
import { useBreakpoints as oa, components as aa, useSnackbar as ra } from "@feedmepos/ui-library";
|
|
11
11
|
import { _ as la } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
|
|
12
|
-
import { _ as ca } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as ca } from "./LocationSelect.vue_vue_type_script_setup_true_lang-2fBkvCIY.js";
|
|
13
13
|
function ha({ start: i, end: t }) {
|
|
14
14
|
return `${zi(t).format("DD MMM")}, ${zi(t).format("YYYY")}`;
|
|
15
15
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as M, mergeModels as Ve, useModel as L, computed as R, resolveComponent as V, openBlock as u, createElementBlock as k, createElementVNode as l, normalizeClass as De, Fragment as K, renderList as j, createVNode as o, createBlock as T, withCtx as ue, toDisplayString as me, createCommentVNode as Y, unref as H, ref as P, watch as re, isRef as pe, h as F, resolveDynamicComponent as de, onMounted as Ce } from "vue";
|
|
2
2
|
import { useRouter as oe, useRoute as Se } from "vue-router";
|
|
3
|
-
import { I as le, w as Ue, d as Fe, j as ce, c as fe, b as ve, a as ne, x as Te, y as Ie, z as Ne, t as ge, A as ye, B as xe, E as $e, G as ae, H as ke } from "./app
|
|
3
|
+
import { I as le, w as Ue, d as Fe, j as ce, c as fe, b as ve, a as ne, x as Te, y as Ie, z as Ne, t as ge, A as ye, B as xe, E as $e, G as ae, H as ke } from "./app--LuoGQNx.js";
|
|
4
4
|
import { useSnackbar as se } from "@feedmepos/ui-library";
|
|
5
5
|
import { storeToRefs as be } from "pinia";
|
|
6
|
-
import { _ as we } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as we } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COzjnhY9.js";
|
|
7
7
|
const Ae = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, Pe = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "w-[50%]"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as L, useModel as U, computed as R, resolveComponent as v, unref as
|
|
1
|
+
import { defineComponent as P, mergeModels as L, useModel as U, computed as R, resolveComponent as v, unref as x, openBlock as w, createBlock as h, withCtx as k, createElementVNode as r, createVNode as s, createTextVNode as W, ref as T, createElementBlock as z, Fragment as Y, h as c } from "vue";
|
|
2
2
|
import { useRouter as J, useRoute as Q } from "vue-router";
|
|
3
|
-
import { I as q, j as D, c as X, b as Z, s as $, t as ee, m as oe } from "./app
|
|
3
|
+
import { I as q, j as D, c as X, b as Z, s as $, t as ee, m as oe } from "./app--LuoGQNx.js";
|
|
4
4
|
import { useBreakpoints as E, useSnackbar as ae, FmButtonColorThemeVariant as S, components as te } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as le } from "./SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js";
|
|
6
6
|
import { storeToRefs as G } from "pinia";
|
|
@@ -16,9 +16,9 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
16
16
|
formModifiers: {}
|
|
17
17
|
},
|
|
18
18
|
emits: /* @__PURE__ */ L(["confirm"], ["update:modelValue", "update:form"]),
|
|
19
|
-
setup(
|
|
20
|
-
const u = U(
|
|
21
|
-
() =>
|
|
19
|
+
setup(A, { emit: V }) {
|
|
20
|
+
const u = U(A, "modelValue"), n = U(A, "form"), { breakpoints: _ } = E(), { options: C } = G(D()), y = R(
|
|
21
|
+
() => C.value.map((i) => ({
|
|
22
22
|
label: i.name,
|
|
23
23
|
value: i.platform,
|
|
24
24
|
sublabel: i.type
|
|
@@ -32,18 +32,18 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
32
32
|
}
|
|
33
33
|
return (i, e) => {
|
|
34
34
|
const F = v("FmTextField"), B = v("FmSelect"), b = v("FmButton"), I = v("FmDialog"), N = v("FmBottomSheet");
|
|
35
|
-
return
|
|
35
|
+
return x(_).lg || x(_).md ? (w(), h(I, {
|
|
36
36
|
key: 0,
|
|
37
37
|
modelValue: u.value,
|
|
38
38
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => u.value = l),
|
|
39
39
|
overlay: !0
|
|
40
40
|
}, {
|
|
41
|
-
"dialog-header":
|
|
41
|
+
"dialog-header": k(() => e[6] || (e[6] = [
|
|
42
42
|
r("div", { class: "flex flex-col" }, [
|
|
43
43
|
r("p", { class: "fm-typo-en-body-lg-600" }, "Add Integration")
|
|
44
44
|
], -1)
|
|
45
45
|
])),
|
|
46
|
-
default:
|
|
46
|
+
default: k(() => [
|
|
47
47
|
r("div", re, [
|
|
48
48
|
s(F, {
|
|
49
49
|
modelValue: n.value.name,
|
|
@@ -59,7 +59,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
59
59
|
}, null, 8, ["modelValue", "items"])
|
|
60
60
|
])
|
|
61
61
|
]),
|
|
62
|
-
"dialog-footer":
|
|
62
|
+
"dialog-footer": k(() => [
|
|
63
63
|
e[7] || (e[7] = r("div", { class: "grow" }, null, -1)),
|
|
64
64
|
s(b, {
|
|
65
65
|
label: "Cancel",
|
|
@@ -74,15 +74,15 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
74
74
|
}, null, 8, ["disabled"])
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
|
-
}, 8, ["modelValue"])) : (w(),
|
|
77
|
+
}, 8, ["modelValue"])) : (w(), h(N, {
|
|
78
78
|
key: 1,
|
|
79
79
|
modelValue: u.value,
|
|
80
80
|
"onUpdate:modelValue": e[5] || (e[5] = (l) => u.value = l)
|
|
81
81
|
}, {
|
|
82
|
-
"bottom-sheet-header":
|
|
82
|
+
"bottom-sheet-header": k(() => e[8] || (e[8] = [
|
|
83
83
|
W("Integration")
|
|
84
84
|
])),
|
|
85
|
-
default:
|
|
85
|
+
default: k(() => [
|
|
86
86
|
r("div", se, [
|
|
87
87
|
r("div", ie, [
|
|
88
88
|
r("div", me, [
|
|
@@ -121,16 +121,16 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
121
121
|
}
|
|
122
122
|
}), ce = { class: "gap-24 px-24 py-16 h-full" }, pe = /* @__PURE__ */ P({
|
|
123
123
|
__name: "Integrations",
|
|
124
|
-
setup(
|
|
125
|
-
const V = J(), u = Q(), { settings: n, options: _, disabled:
|
|
126
|
-
const d = _.value.find((t) => t.platform ===
|
|
127
|
-
return d &&
|
|
128
|
-
id:
|
|
129
|
-
name:
|
|
124
|
+
setup(A) {
|
|
125
|
+
const V = J(), u = Q(), { settings: n, options: _, disabled: C } = G(D()), { getSettings: y } = D(), p = ae(), { promptLoader: f } = X(), g = T(!1), i = T({ name: "", platform: q.AutoCount }), e = R(() => n.value.reduce((o, a) => {
|
|
126
|
+
const d = _.value.find((t) => t.platform === a.platform.name);
|
|
127
|
+
return d && o.push({
|
|
128
|
+
id: a._id,
|
|
129
|
+
name: a.name,
|
|
130
130
|
platform: d.platform,
|
|
131
131
|
asset: d.asset,
|
|
132
132
|
type: d.type
|
|
133
|
-
}),
|
|
133
|
+
}), o;
|
|
134
134
|
}, []));
|
|
135
135
|
async function F() {
|
|
136
136
|
await f(async () => {
|
|
@@ -140,7 +140,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
140
140
|
async function B() {
|
|
141
141
|
await f(async () => {
|
|
142
142
|
try {
|
|
143
|
-
const
|
|
143
|
+
const o = await $({
|
|
144
144
|
name: i.value.name,
|
|
145
145
|
platform: {
|
|
146
146
|
name: i.value.platform
|
|
@@ -148,19 +148,19 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
148
148
|
});
|
|
149
149
|
await y(), g.value = !1, V.push({
|
|
150
150
|
name: "integration",
|
|
151
|
-
params: { id:
|
|
151
|
+
params: { id: o._id },
|
|
152
152
|
query: u.query
|
|
153
153
|
});
|
|
154
|
-
} catch (
|
|
155
|
-
p.open({ type: "error", message:
|
|
154
|
+
} catch (o) {
|
|
155
|
+
p.open({ type: "error", message: o.message });
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
const { promptMessage: b } = Z();
|
|
160
|
-
async function I(
|
|
161
|
-
|
|
160
|
+
async function I(o) {
|
|
161
|
+
o === "new" ? g.value = !0 : o ? V.push({
|
|
162
162
|
name: "integration",
|
|
163
|
-
params: { id:
|
|
163
|
+
params: { id: o },
|
|
164
164
|
query: u.query
|
|
165
165
|
}) : p.open({ type: "error", message: "Invalid integration" });
|
|
166
166
|
}
|
|
@@ -177,17 +177,17 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
177
177
|
{
|
|
178
178
|
accessorKey: "tag",
|
|
179
179
|
header: "Platform",
|
|
180
|
-
cell: (
|
|
181
|
-
const
|
|
180
|
+
cell: (o) => {
|
|
181
|
+
const a = o.row.original;
|
|
182
182
|
return c("div", { class: "flex flex-row items-center gap-x-16" }, [
|
|
183
|
-
c("img", { src:
|
|
183
|
+
c("img", { src: a.asset, class: "w-[60px]" }),
|
|
184
184
|
c(
|
|
185
185
|
O,
|
|
186
186
|
{
|
|
187
187
|
class: "text-fm-color-typo-info fm-typo-en-body-sm-600",
|
|
188
188
|
compact: !0
|
|
189
189
|
},
|
|
190
|
-
{ default: () =>
|
|
190
|
+
{ default: () => a.type }
|
|
191
191
|
)
|
|
192
192
|
]);
|
|
193
193
|
},
|
|
@@ -201,14 +201,14 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
201
201
|
maxWidth: "20px"
|
|
202
202
|
},
|
|
203
203
|
enableSorting: !1,
|
|
204
|
-
cell: (
|
|
205
|
-
const
|
|
204
|
+
cell: (o) => {
|
|
205
|
+
const a = o.row.original, d = [
|
|
206
206
|
{
|
|
207
207
|
label: "Duplicate",
|
|
208
208
|
onClick: async () => {
|
|
209
209
|
await f(async () => {
|
|
210
210
|
try {
|
|
211
|
-
const t = n.value.find((m) => m._id ===
|
|
211
|
+
const t = n.value.find((m) => m._id === a.id);
|
|
212
212
|
t && (await $({
|
|
213
213
|
...t,
|
|
214
214
|
name: `${t == null ? void 0 : t.name} cloned`
|
|
@@ -224,11 +224,11 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
224
224
|
label: "Remove",
|
|
225
225
|
onClick: async () => {
|
|
226
226
|
await b({
|
|
227
|
-
message: `Confirm delete ${
|
|
227
|
+
message: `Confirm delete ${a.name}?`,
|
|
228
228
|
title: "Delete"
|
|
229
229
|
}) && await f(async () => {
|
|
230
230
|
try {
|
|
231
|
-
await ee(
|
|
231
|
+
await ee(a.id), await F();
|
|
232
232
|
} catch (m) {
|
|
233
233
|
p.open({ type: "error", message: m.message });
|
|
234
234
|
}
|
|
@@ -279,17 +279,17 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
];
|
|
282
|
-
function H(
|
|
283
|
-
|
|
282
|
+
function H(o) {
|
|
283
|
+
C.value ? p.open({ message: "Your current plan does not support integrations.", type: "error" }) : o === "create" && I("new");
|
|
284
284
|
}
|
|
285
|
-
return (
|
|
285
|
+
return (o, a) => {
|
|
286
286
|
const d = v("FmPageHead"), t = v("FmTable");
|
|
287
287
|
return w(), z(Y, null, [
|
|
288
288
|
s(de, {
|
|
289
289
|
modelValue: g.value,
|
|
290
|
-
"onUpdate:modelValue":
|
|
290
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => g.value = m),
|
|
291
291
|
form: i.value,
|
|
292
|
-
"onUpdate:form":
|
|
292
|
+
"onUpdate:form": a[1] || (a[1] = (m) => i.value = m),
|
|
293
293
|
onConfirm: B
|
|
294
294
|
}, null, 8, ["modelValue", "form"]),
|
|
295
295
|
s(d, {
|
|
@@ -300,29 +300,24 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
300
300
|
label: "Add Integration",
|
|
301
301
|
value: "create",
|
|
302
302
|
isPrimary: !0,
|
|
303
|
-
bgColor: C
|
|
304
|
-
fontColor: C
|
|
303
|
+
bgColor: x(C) ? x(S).NeutralGray100 : void 0,
|
|
304
|
+
fontColor: x(C) ? x(S).NeutralGray200 : void 0,
|
|
305
305
|
prependIcon: "add"
|
|
306
306
|
}
|
|
307
307
|
],
|
|
308
308
|
"onClick:action": H
|
|
309
|
-
},
|
|
310
|
-
description: x(() => o[3] || (o[3] = [
|
|
311
|
-
r("div", null, null, -1)
|
|
312
|
-
])),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 8, ["actions"]),
|
|
309
|
+
}, null, 8, ["actions"]),
|
|
315
310
|
r("div", ce, [
|
|
316
|
-
e.value.length > 0 ? (w(),
|
|
311
|
+
e.value.length > 0 ? (w(), h(t, {
|
|
317
312
|
key: 0,
|
|
318
313
|
ref: "table",
|
|
319
314
|
"row-data": e.value,
|
|
320
315
|
"column-defs": j,
|
|
321
316
|
"shrink-at": !1,
|
|
322
|
-
onRowClick:
|
|
317
|
+
onRowClick: a[2] || (a[2] = (m) => {
|
|
323
318
|
I(m.original.id);
|
|
324
319
|
})
|
|
325
|
-
}, null, 8, ["row-data"])) : (w(),
|
|
320
|
+
}, null, 8, ["row-data"])) : (w(), h(ne, {
|
|
326
321
|
key: 1,
|
|
327
322
|
title: "No integration",
|
|
328
323
|
"sub-title": "No integration can be found"
|
|
@@ -331,7 +326,7 @@ const re = { class: "flex gap-2 overflow-hidden flex-col" }, se = { class: "flex
|
|
|
331
326
|
], 64);
|
|
332
327
|
};
|
|
333
328
|
}
|
|
334
|
-
}), we = /* @__PURE__ */ oe(pe, [["__scopeId", "data-v-
|
|
329
|
+
}), we = /* @__PURE__ */ oe(pe, [["__scopeId", "data-v-af4dc7b5"]]);
|
|
335
330
|
export {
|
|
336
331
|
we as default
|
|
337
332
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as t, openBlock as r, createBlock as n, withCtx as _, createVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-EiYgWoD9.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as k, mergeModels as w, useModel as C, computed as v, ref as V, resolveComponent as i, openBlock as c, createBlock as f, withCtx as h, createVNode as n, createElementVNode as y, withDirectives as S, vShow as L, createElementBlock as A, Fragment as B, renderList as D } from "vue";
|
|
2
|
-
import { a as T } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import "./app
|
|
2
|
+
import { a as T } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COzjnhY9.js";
|
|
3
|
+
import "./app--LuoGQNx.js";
|
|
4
4
|
const $ = { class: "flex flex-col bg-fm-color-neutral-white max-h-[408px] overflow-y-auto overflow-x-hidden" }, N = /* @__PURE__ */ k({
|
|
5
5
|
__name: "LocationSelect",
|
|
6
6
|
props: /* @__PURE__ */ w({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as D, mergeModels as K, useModel as z, ref as T, resolveComponent as i, openBlock as d, createBlock as R, withCtx as _, createVNode as m, createElementVNode as u, createElementBlock as $, Fragment as w, renderList as E, createTextVNode as Q, toDisplayString as x, withDirectives as W, vShow as X, unref as l, createCommentVNode as C, isRef as V, normalizeClass as B } from "vue";
|
|
2
|
-
import { d as k, a as J } from "./app
|
|
2
|
+
import { d as k, a as J } from "./app--LuoGQNx.js";
|
|
3
3
|
import { storeToRefs as j } from "pinia";
|
|
4
|
-
import { _ as Y } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a as Z, _ as ee } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { t as P, s as te } from "./timeFormat-
|
|
4
|
+
import { _ as Y } from "./LocationSelect.vue_vue_type_script_setup_true_lang-2fBkvCIY.js";
|
|
5
|
+
import { a as Z, _ as ee } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-COzjnhY9.js";
|
|
6
|
+
import { t as P, s as te } from "./timeFormat-P9M4rX8J.js";
|
|
7
7
|
import { useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
8
8
|
const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "text-fm-color-typo-primary" }, ae = { class: "text-fm-color-typo-secondary" }, me = { class: "flex items-center justify-center w-full" }, re = { class: "flex items-center justify-center" }, se = { class: "flex flex-row mb-4 px-4 gap-2" }, ue = "HH:mm", ie = /* @__PURE__ */ D({
|
|
9
9
|
__name: "TimeRangeSelect",
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as x, computed as g, resolveComponent as k, openBlock as t, createBlock as l, withCtx as w, createVNode as c, unref as e, createElementVNode as $, normalizeClass as d, normalizeStyle as y, createElementBlock as u, Fragment as C, renderList as h } from "vue";
|
|
2
|
+
import { useBreakpoints as B } from "@feedmepos/ui-library";
|
|
3
|
+
import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DHeFE-hw.js";
|
|
4
|
+
import { _ as D } from "./Default.vue_vue_type_script_setup_true_lang-EiYgWoD9.js";
|
|
5
|
+
import { u as F } from "./app--LuoGQNx.js";
|
|
6
|
+
import { storeToRefs as P } from "pinia";
|
|
7
|
+
import { _ as R } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
|
|
8
|
+
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-X-70ul16.js";
|
|
9
|
+
const q = /* @__PURE__ */ x({
|
|
10
|
+
__name: "OverviewView",
|
|
11
|
+
setup(V) {
|
|
12
|
+
const _ = F(), { breakpoints: o } = B(), { isOpenDownloadDialog: f, overviewReport: r } = P(_), n = g(() => {
|
|
13
|
+
var a;
|
|
14
|
+
return ((a = r.value) == null ? void 0 : a.tiles) || [];
|
|
15
|
+
});
|
|
16
|
+
return (a, s) => {
|
|
17
|
+
const v = k("FmPageHead");
|
|
18
|
+
return t(), l(D, null, {
|
|
19
|
+
default: w(() => {
|
|
20
|
+
var i;
|
|
21
|
+
return [
|
|
22
|
+
c(v, {
|
|
23
|
+
title: (i = e(r)) == null ? void 0 : i.name,
|
|
24
|
+
class: "h-[68px]",
|
|
25
|
+
actions: [
|
|
26
|
+
{
|
|
27
|
+
label: "Download",
|
|
28
|
+
value: "download",
|
|
29
|
+
isPrimary: !0,
|
|
30
|
+
prependIcon: "download"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"onClick:action": s[0] || (s[0] = (m) => f.value = !0)
|
|
34
|
+
}, null, 8, ["title"]),
|
|
35
|
+
$("div", {
|
|
36
|
+
class: d(`flex flex-col gap-2 ${e(o).sm || e(o).xs ? "mb-20" : ""}`),
|
|
37
|
+
style: y({ height: `calc(100% - ${e(o).lg || e(o).md ? 72 : 64}px)` })
|
|
38
|
+
}, [
|
|
39
|
+
c(S),
|
|
40
|
+
n.value.length > 0 && e(r) ? (t(), u("div", {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: d(["grid grid-cols-12", e(o).sm || e(o).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
|
|
43
|
+
}, [
|
|
44
|
+
(t(!0), u(C, null, h(n.value, (m, p) => (t(), l(b, {
|
|
45
|
+
key: `widget_${e(r).id}_${p}`,
|
|
46
|
+
"model-value": m,
|
|
47
|
+
index: p
|
|
48
|
+
}, null, 8, ["model-value", "index"]))), 128))
|
|
49
|
+
], 2)) : (t(), l(R, { key: 1 }))
|
|
50
|
+
], 6)
|
|
51
|
+
];
|
|
52
|
+
}),
|
|
53
|
+
_: 1
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
q as default
|
|
60
|
+
};
|