@feedmepos/mf-report 5.4.8 → 5.4.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/App-kcBxi_q1.js +133 -0
- package/dist/BaseDialog.vue_vue_type_script_setup_true_lang-MQNSV-xg.js +59 -0
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-UFE8dqQT.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js} +47 -45
- package/dist/{Default.vue_vue_type_script_setup_true_lang-2KbsvIja.js → Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js} +9 -8
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-qHXYaBLd.js → DynamicWidget.vue_vue_type_script_setup_true_lang-yMu4zk2g.js} +11 -8
- package/dist/{InsightView-m2mp2Vwn.js → InsightView-GIj2fwLa.js} +9 -8
- package/dist/{Integration-v7Vx19wK.js → Integration-YTGIj4Ae.js} +31 -29
- package/dist/{Integrations-5bMwLGDG.js → Integrations-drS5pVEz.js} +27 -25
- package/dist/{Layout-OsxZkd-c.js → Layout-G0qypnQY.js} +1 -1
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-PJJaEOeS.js +7994 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-rG63dKPQ.js → MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js} +39 -35
- package/dist/NavigationTab.vue_vue_type_script_setup_true_lang-LsUKLCAW.js +26885 -0
- package/dist/{OverviewView-bcZDNzyp.js → OverviewView-1MQAX-5G.js} +4 -4
- package/dist/{Report-QoZGgCFl.js → Report-WYkPEjUh.js} +47 -45
- package/dist/{ReportEditor-4XSyHMDr.js → ReportEditor-6EAPap-S.js} +17 -15
- package/dist/{ReportView-sA3IRxvk.js → ReportView-aky03f2y.js} +36 -33
- package/dist/{Setting-ciEdGVzI.js → Setting-IV26Ng45.js} +36 -34
- package/dist/{TileEditor-oIzGozIp.js → TileEditor-Qn4ZRR39.js} +20 -15
- package/dist/{TransitionFade-u0ffhMND.js → TransitionFade-_dSKw899.js} +65 -62
- package/dist/_plugin-vue_export-helper-hUChTQA_.js +9 -0
- package/dist/app.js +85 -3
- package/dist/global-loader-hSpvBPX1.js +3265 -0
- package/dist/index-JAqUtp7I.js +143 -0
- package/dist/message-dialog-yXvmoAPz.js +20 -0
- package/dist/report-schema-IBXDBT4U.js +31 -0
- package/dist/{timeFormat-KhCrm7K_.js → timeFormat-yx3JOmGm.js} +1 -1
- package/dist/v4-Ihuna0O0.js +17578 -0
- package/package.json +6 -4
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-CXdNe2NF.js +0 -84
- package/dist/app-hTKIk5PV.js +0 -48128
|
@@ -1,11 +1,11 @@
|
|
|
1
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
2
|
import { useBreakpoints as B } from "@feedmepos/ui-library";
|
|
3
|
-
import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as D } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import {
|
|
3
|
+
import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-yMu4zk2g.js";
|
|
4
|
+
import { _ as D } from "./Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js";
|
|
5
|
+
import { a as F } from "./v4-Ihuna0O0.js";
|
|
6
6
|
import { storeToRefs as P } from "pinia";
|
|
7
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-
|
|
8
|
+
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js";
|
|
9
9
|
const q = /* @__PURE__ */ x({
|
|
10
10
|
__name: "OverviewView",
|
|
11
11
|
setup(V) {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as re, ref as N, watch as H, computed as k, resolveComponent as x, openBlock as $, createBlock as P, withCtx as i, createVNode as n, createElementVNode as y, normalizeClass as _, unref as l, normalizeStyle as se, toDisplayString as z, createElementBlock as ie, Fragment as ce, renderList as ue, withDirectives as O, createTextVNode as me, vShow as T, h as p, withModifiers as de } from "vue";
|
|
2
2
|
import { storeToRefs as Q } from "pinia";
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
3
|
+
import { a as pe } from "./v4-Ihuna0O0.js";
|
|
4
|
+
import { _ as fe } from "./Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js";
|
|
5
|
+
import { u as ve } from "./message-dialog-yXvmoAPz.js";
|
|
6
|
+
import { a as ye, d as be } from "./global-loader-hSpvBPX1.js";
|
|
5
7
|
import { useSnackbar as ge, useBreakpoints as Ce, components as xe, FmButtonColorThemeVariant as _e } from "@feedmepos/ui-library";
|
|
6
8
|
import { _ as he } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
|
|
7
9
|
import { useRouter as ke, useRoute as we, onBeforeRouteLeave as Ie } from "vue-router";
|
|
8
|
-
const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = { class: "w-[343px]" }, Fe = { class: "fm-typo-en-body-md-600" },
|
|
10
|
+
const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e = { class: "w-[343px]" }, Fe = { class: "fm-typo-en-body-md-600" }, Be = /* @__PURE__ */ re({
|
|
9
11
|
__name: "Report",
|
|
10
12
|
setup(Se) {
|
|
11
|
-
const U = ke(), B = we(), m = pe(), { business: W } = Q(
|
|
13
|
+
const U = ke(), B = we(), m = pe(), { business: W } = Q(ye()), {
|
|
12
14
|
reports: d,
|
|
13
15
|
categories: w,
|
|
14
16
|
pinReport: I,
|
|
@@ -16,7 +18,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
16
18
|
scrollPositionY: A,
|
|
17
19
|
customReportQuota: M,
|
|
18
20
|
canCreateCustomReport: Z
|
|
19
|
-
} = Q(m), { promptMessage: q } = ve(), { promptLoader: J } =
|
|
21
|
+
} = Q(m), { promptMessage: q } = ve(), { promptLoader: J } = be(), f = ge(), { breakpoints: r } = Ce(), b = N();
|
|
20
22
|
Ie(() => {
|
|
21
23
|
b.value && (A.value = b.value.$el.children[0].scrollTop);
|
|
22
24
|
}), H(b, () => {
|
|
@@ -42,7 +44,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
42
44
|
...w.value.map((t) => ({ value: t.id, label: t.name }))
|
|
43
45
|
]), v = N(j.value[0]), R = N(""), g = k(() => K.value.length === 0 || w.value.length === 0 ? [] : [
|
|
44
46
|
...F.value.map((e) => {
|
|
45
|
-
const o = w.value.find((
|
|
47
|
+
const o = w.value.find((s) => s.id === e.category);
|
|
46
48
|
return {
|
|
47
49
|
name: e.name,
|
|
48
50
|
categoryId: (o == null ? void 0 : o.id) ?? "",
|
|
@@ -53,7 +55,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
53
55
|
};
|
|
54
56
|
}).filter((e) => v.value.value && e.categoryId !== v.value.value ? !1 : e.name.toLowerCase().indexOf(R.value.toLowerCase()) !== -1),
|
|
55
57
|
...K.value.map((e) => {
|
|
56
|
-
const o = w.value.find((
|
|
58
|
+
const o = w.value.find((s) => s.id === e.category);
|
|
57
59
|
return {
|
|
58
60
|
name: e.name,
|
|
59
61
|
categoryId: (o == null ? void 0 : o.id) ?? "",
|
|
@@ -96,11 +98,11 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
96
98
|
width: "100px"
|
|
97
99
|
},
|
|
98
100
|
cell: (t) => {
|
|
99
|
-
const e = t.row.original, o = e.reportId,
|
|
101
|
+
const e = t.row.original, o = e.reportId, s = d.value.find((c) => c.id === o), V = [
|
|
100
102
|
{
|
|
101
103
|
label: "Duplicate",
|
|
102
104
|
onClick: () => {
|
|
103
|
-
|
|
105
|
+
s && Y(s);
|
|
104
106
|
},
|
|
105
107
|
variant: "",
|
|
106
108
|
disabled: !1
|
|
@@ -108,7 +110,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
108
110
|
{
|
|
109
111
|
label: "Remove",
|
|
110
112
|
onClick: () => {
|
|
111
|
-
|
|
113
|
+
s && E(s);
|
|
112
114
|
},
|
|
113
115
|
variant: "destructive",
|
|
114
116
|
disabled: !e.editable
|
|
@@ -117,7 +119,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
117
119
|
return p(
|
|
118
120
|
"div",
|
|
119
121
|
{
|
|
120
|
-
class: `flex ${
|
|
122
|
+
class: `flex ${r.value.lg || r.value.md ? "justify-end" : ""} items-center`
|
|
121
123
|
},
|
|
122
124
|
{
|
|
123
125
|
default: () => [
|
|
@@ -125,7 +127,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
125
127
|
"button",
|
|
126
128
|
{
|
|
127
129
|
onClick: de(() => {
|
|
128
|
-
|
|
130
|
+
s && G(s);
|
|
129
131
|
}, ["stop"]),
|
|
130
132
|
class: `text-fm-color-neutral-gray-400 ${e.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
|
|
131
133
|
},
|
|
@@ -149,16 +151,16 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
149
151
|
{ stopClickPropagation: !0, shift: !0 },
|
|
150
152
|
{
|
|
151
153
|
default: () => V.map(
|
|
152
|
-
(
|
|
154
|
+
(c) => p(
|
|
153
155
|
h,
|
|
154
156
|
{
|
|
155
|
-
onClick:
|
|
156
|
-
label:
|
|
157
|
-
class:
|
|
158
|
-
disabled:
|
|
157
|
+
onClick: c.disabled ? {} : c.onClick,
|
|
158
|
+
label: c.label,
|
|
159
|
+
class: c.disabled ? "text-fm-color-typo-disabled" : c.variant === "destructive" ? "text-fm-color-typo-error" : "",
|
|
160
|
+
disabled: c.disabled
|
|
159
161
|
},
|
|
160
162
|
{
|
|
161
|
-
label: () => p("p",
|
|
163
|
+
label: () => p("p", c.label)
|
|
162
164
|
}
|
|
163
165
|
)
|
|
164
166
|
),
|
|
@@ -189,8 +191,8 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
189
191
|
o.editable = !0, o.id = "", o.name = `${o.name} duplicate`, J(async () => {
|
|
190
192
|
try {
|
|
191
193
|
await m.createOrUpdateReport(o), f.open({ message: `Duplicate ${o.name} successful`, type: "success" });
|
|
192
|
-
} catch (
|
|
193
|
-
f.open({ message: JSON.stringify(
|
|
194
|
+
} catch (s) {
|
|
195
|
+
f.open({ message: JSON.stringify(s), type: "error" });
|
|
194
196
|
}
|
|
195
197
|
});
|
|
196
198
|
}
|
|
@@ -222,9 +224,9 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
222
224
|
I.value && I.value.includes(t.id) ? (f.open({ message: `Unpin ${t.name} successful`, type: "success" }), m.clearPinReport(t.id)) : (f.open({ message: `Pin ${t.name} successful`, type: "success" }), m.cachePinReport(t));
|
|
223
225
|
}
|
|
224
226
|
return (t, e) => {
|
|
225
|
-
const o = x("FmPageHead"),
|
|
226
|
-
return $(), P(
|
|
227
|
-
default:
|
|
227
|
+
const o = x("FmPageHead"), s = x("FmSearch"), V = x("FmForm"), c = x("FmListItem"), ae = x("FmList"), ne = x("FmTable");
|
|
228
|
+
return $(), P(fe, null, {
|
|
229
|
+
default: i(() => [
|
|
228
230
|
n(o, {
|
|
229
231
|
title: "Reports",
|
|
230
232
|
class: "h-[68px]",
|
|
@@ -239,28 +241,28 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
239
241
|
"onClick:action": e[0] || (e[0] = (a) => oe())
|
|
240
242
|
}),
|
|
241
243
|
y("div", {
|
|
242
|
-
class: _(`overflow-y-hidden flex flex-col gap-8 ${l(
|
|
243
|
-
style:
|
|
244
|
+
class: _(`overflow-y-hidden flex flex-col gap-8 ${l(r).sm || l(r).xs ? "mb-20" : ""}`),
|
|
245
|
+
style: se({ height: `calc(100% - ${l(r).lg || l(r).md ? 72 : 64}px)` })
|
|
244
246
|
}, [
|
|
245
247
|
n(V, {
|
|
246
|
-
class: _(`flex items-center gap-2 ${l(
|
|
248
|
+
class: _(`flex items-center gap-2 ${l(r).sm || l(r).xs ? "px-3" : "px-24"}`)
|
|
247
249
|
}, {
|
|
248
|
-
default:
|
|
250
|
+
default: i(() => [
|
|
249
251
|
n(l(S), null, {
|
|
250
|
-
"menu-button":
|
|
252
|
+
"menu-button": i(() => [
|
|
251
253
|
n(l(D), {
|
|
252
254
|
label: v.value.label,
|
|
253
255
|
class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400"
|
|
254
256
|
}, {
|
|
255
|
-
default:
|
|
257
|
+
default: i(() => [
|
|
256
258
|
y("p", null, z(v.value.label), 1),
|
|
257
259
|
n(l(L), { name: "expand_more" })
|
|
258
260
|
]),
|
|
259
261
|
_: 1
|
|
260
262
|
}, 8, ["label"])
|
|
261
263
|
]),
|
|
262
|
-
default:
|
|
263
|
-
($(!0), ce
|
|
264
|
+
default: i(() => [
|
|
265
|
+
($(!0), ie(ce, null, ue(j.value, (a, u) => ($(), P(l(h), {
|
|
264
266
|
key: u,
|
|
265
267
|
label: a.label,
|
|
266
268
|
onClick: (C) => v.value = a
|
|
@@ -269,16 +271,16 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
269
271
|
_: 1
|
|
270
272
|
}),
|
|
271
273
|
y("div", {
|
|
272
|
-
class: _(`flex ${l(
|
|
274
|
+
class: _(`flex ${l(r).sm || l(r).xs ? "justify-center items-center" : ""}`)
|
|
273
275
|
}, [
|
|
274
276
|
y("p", Re, z(g.value.length) + " results ", 1)
|
|
275
277
|
], 2),
|
|
276
278
|
e[3] || (e[3] = y("div", { class: "grow" }, null, -1)),
|
|
277
279
|
y("div", $e, [
|
|
278
|
-
n(
|
|
280
|
+
n(s, {
|
|
279
281
|
modelValue: R.value,
|
|
280
282
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => R.value = a),
|
|
281
|
-
class: _(`${l(
|
|
283
|
+
class: _(`${l(r).lg || l(r).md ? "grow" : ""}`)
|
|
282
284
|
}, null, 8, ["modelValue", "class"])
|
|
283
285
|
])
|
|
284
286
|
]),
|
|
@@ -288,7 +290,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
288
290
|
key: te.value,
|
|
289
291
|
ref_key: "table",
|
|
290
292
|
ref: b,
|
|
291
|
-
class: _([l(
|
|
293
|
+
class: _([l(r).sm || l(r).xs ? "px-0" : "px-24", "report-table"]),
|
|
292
294
|
style: { height: "calc(100% - 40px)" },
|
|
293
295
|
"column-defs": le,
|
|
294
296
|
"row-data": g.value,
|
|
@@ -302,7 +304,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
302
304
|
});
|
|
303
305
|
})
|
|
304
306
|
}, {
|
|
305
|
-
"list-row":
|
|
307
|
+
"list-row": i(({ original: a }) => [
|
|
306
308
|
n(ae, {
|
|
307
309
|
onClick: () => {
|
|
308
310
|
a.reportId && (l(m).updateCurrentReportId(a.reportId), l(U).push({
|
|
@@ -311,20 +313,20 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
311
313
|
}));
|
|
312
314
|
}
|
|
313
315
|
}, {
|
|
314
|
-
default:
|
|
315
|
-
n(
|
|
316
|
+
default: i(() => [
|
|
317
|
+
n(c, {
|
|
316
318
|
tag: "label",
|
|
317
319
|
label: a.name,
|
|
318
320
|
clickable: ""
|
|
319
321
|
}, {
|
|
320
|
-
append:
|
|
322
|
+
append: i(() => [
|
|
321
323
|
n(l(D), {
|
|
322
324
|
class: _(
|
|
323
325
|
a.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
|
|
324
326
|
),
|
|
325
327
|
compact: !0
|
|
326
328
|
}, {
|
|
327
|
-
default:
|
|
329
|
+
default: i(() => [
|
|
328
330
|
y("p", Fe, z(a.category), 1)
|
|
329
331
|
]),
|
|
330
332
|
_: 2
|
|
@@ -333,13 +335,13 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
333
335
|
placement: "left",
|
|
334
336
|
"stop-click-propagation": !0
|
|
335
337
|
}, {
|
|
336
|
-
"menu-button":
|
|
338
|
+
"menu-button": i(() => [
|
|
337
339
|
n(l(L), {
|
|
338
340
|
name: "more_vert",
|
|
339
341
|
class: "btn-color"
|
|
340
342
|
})
|
|
341
343
|
]),
|
|
342
|
-
default:
|
|
344
|
+
default: i(() => [
|
|
343
345
|
n(l(h), {
|
|
344
346
|
label: a.pin ? "Unpin" : "Pin",
|
|
345
347
|
onClick: () => {
|
|
@@ -368,7 +370,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
368
370
|
u && E(u);
|
|
369
371
|
}
|
|
370
372
|
}, {
|
|
371
|
-
label:
|
|
373
|
+
label: i(() => e[4] || (e[4] = [
|
|
372
374
|
me(" Delete ")
|
|
373
375
|
])),
|
|
374
376
|
_: 2
|
|
@@ -403,5 +405,5 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $e
|
|
|
403
405
|
}
|
|
404
406
|
});
|
|
405
407
|
export {
|
|
406
|
-
|
|
408
|
+
Be as default
|
|
407
409
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { defineComponent as h, mergeModels as w, useModel as R, ref as D, computed as N, resolveComponent as m, openBlock as r, createBlock as y, withCtx as u, createTextVNode as pe, createVNode as t, normalizeClass as U, unref as l, createElementVNode as _, createElementBlock as F, Fragment as B, renderSlot as A, createCommentVNode as O, watch as ce, resolveDynamicComponent as G, isRef as Y, toDisplayString as L, renderList as z, onMounted as fe, normalizeStyle as ve } from "vue";
|
|
2
|
-
import { W as ge, i as _e, S as ye, D as Ce, T as be, _ as Ve } from "./TransitionFade-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { storeToRefs as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { useBreakpoints as I, FmButtonColorThemeVariant as q, useSnackbar as
|
|
8
|
-
import {
|
|
2
|
+
import { W as ge, i as _e, S as ye, D as Ce, T as be, _ as Ve } from "./TransitionFade-_dSKw899.js";
|
|
3
|
+
import { a as j, v as K } from "./v4-Ihuna0O0.js";
|
|
4
|
+
import { _ as ke } from "./HeaderTab.vue_vue_type_script_setup_true_lang--56TBWoS.js";
|
|
5
|
+
import { storeToRefs as Q } from "pinia";
|
|
6
|
+
import { useRouter as X, useRoute as Z } from "vue-router";
|
|
7
|
+
import { useBreakpoints as I, FmButtonColorThemeVariant as q, useSnackbar as Fe } from "@feedmepos/ui-library";
|
|
8
|
+
import { u as ee } from "./message-dialog-yXvmoAPz.js";
|
|
9
|
+
import { _ as oe } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-yMu4zk2g.js";
|
|
9
10
|
import { _ as te } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
|
|
11
|
+
import { d as xe } from "./global-loader-hSpvBPX1.js";
|
|
10
12
|
const we = /* @__PURE__ */ h({
|
|
11
13
|
__name: "WidgetDialog",
|
|
12
14
|
props: /* @__PURE__ */ w({
|
|
@@ -155,7 +157,7 @@ const we = /* @__PURE__ */ h({
|
|
|
155
157
|
}),
|
|
156
158
|
emits: /* @__PURE__ */ w(["hideConfiguration"], ["update:modelValue"]),
|
|
157
159
|
setup(c, { emit: n }) {
|
|
158
|
-
const o = R(c, "modelValue"), { breakpoints: a } = I(), s = c, C = n, e =
|
|
160
|
+
const o = R(c, "modelValue"), { breakpoints: a } = I(), s = c, C = n, e = X(), f = Z(), v = D(), { currentSelectWidgetType: i, categories: k, editingTile: b, editingIndex: $ } = Q(j()), { promptMessage: M } = ee(), S = D(!1);
|
|
159
161
|
ce(
|
|
160
162
|
() => i.value,
|
|
161
163
|
() => {
|
|
@@ -370,7 +372,7 @@ const we = /* @__PURE__ */ h({
|
|
|
370
372
|
_("div", Oe, [
|
|
371
373
|
o.value.tiles.length > 0 ? (r(), F("div", qe, [
|
|
372
374
|
(r(!0), F(B, null, z(o.value.tiles, (i, k) => (r(), y(oe, {
|
|
373
|
-
key: `${l(
|
|
375
|
+
key: `${l(K)()}_${k}`,
|
|
374
376
|
"model-value": i,
|
|
375
377
|
index: k,
|
|
376
378
|
"hide-export": !0
|
|
@@ -404,7 +406,7 @@ const we = /* @__PURE__ */ h({
|
|
|
404
406
|
default: u(() => [
|
|
405
407
|
o.value.tiles.length > 0 ? (r(), F("div", Ne, [
|
|
406
408
|
(r(!0), F(B, null, z(o.value.tiles, (i, k) => (r(), y(oe, {
|
|
407
|
-
key: `${l(
|
|
409
|
+
key: `${l(K)()}_${k}`,
|
|
408
410
|
"model-value": i,
|
|
409
411
|
index: k,
|
|
410
412
|
"hide-export": !0
|
|
@@ -426,16 +428,16 @@ const we = /* @__PURE__ */ h({
|
|
|
426
428
|
]);
|
|
427
429
|
};
|
|
428
430
|
}
|
|
429
|
-
}),
|
|
431
|
+
}), Ke = /* @__PURE__ */ h({
|
|
430
432
|
__name: "ReportEditor",
|
|
431
433
|
setup(c) {
|
|
432
|
-
const n =
|
|
434
|
+
const n = X(), o = Z(), a = j(), { promptLoader: s } = xe(), { currentReport: C, editingReport: e } = Q(a), { breakpoints: f } = I(), v = N(() => {
|
|
433
435
|
var V;
|
|
434
436
|
return !((V = e.value) != null && V.editable);
|
|
435
437
|
}), i = N(() => {
|
|
436
438
|
var V;
|
|
437
439
|
return ((V = e.value) == null ? void 0 : V.name) ?? "New Report";
|
|
438
|
-
}), k =
|
|
440
|
+
}), k = Fe(), { promptMessage: b } = ee(), $ = D(!1);
|
|
439
441
|
async function M() {
|
|
440
442
|
if (!e.value || e.value.tiles.length === 0) {
|
|
441
443
|
k.open({ message: "No Widget", type: "error" });
|
|
@@ -477,7 +479,7 @@ const we = /* @__PURE__ */ h({
|
|
|
477
479
|
const d = m("FmChip"), p = m("FmButton");
|
|
478
480
|
return r(), y(Ve, null, {
|
|
479
481
|
default: u(() => [
|
|
480
|
-
t(
|
|
482
|
+
t(ke, null, {
|
|
481
483
|
title: u(() => [
|
|
482
484
|
_("p", {
|
|
483
485
|
class: U(`${l(f).sm || l(f).xs ? "hidden" : ""}`)
|
|
@@ -520,5 +522,5 @@ const we = /* @__PURE__ */ h({
|
|
|
520
522
|
}
|
|
521
523
|
});
|
|
522
524
|
export {
|
|
523
|
-
|
|
525
|
+
Ke as default
|
|
524
526
|
};
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { defineComponent as F, computed as f, resolveComponent as J, openBlock as s, createBlock as v, withCtx as L, createVNode as x, unref as
|
|
1
|
+
import { defineComponent as F, computed as f, resolveComponent as J, openBlock as s, createBlock as v, withCtx as L, createVNode as x, unref as t, createElementVNode as T, normalizeClass as w, normalizeStyle as V, createElementBlock as S, Fragment as z, renderList as H } from "vue";
|
|
2
2
|
import { useSnackbar as M, useBreakpoints as Y } from "@feedmepos/ui-library";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
3
|
+
import { _ as G } from "./MenuTab.vue_vue_type_script_setup_true_lang-UHwO2Vm5.js";
|
|
4
|
+
import { _ as Q } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-yMu4zk2g.js";
|
|
5
|
+
import { useRouter as U, useRoute as W } from "vue-router";
|
|
6
|
+
import { _ as j } from "./Default.vue_vue_type_script_setup_true_lang-1lLJDGcu.js";
|
|
7
|
+
import { a as K } from "./v4-Ihuna0O0.js";
|
|
8
8
|
import { storeToRefs as c } from "pinia";
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import { a as X, u as Z } from "./NavigationTab.vue_vue_type_script_setup_true_lang-LsUKLCAW.js";
|
|
10
|
+
import { _ as ee } from "./NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js";
|
|
11
|
+
import { d as oe, c as te } from "./global-loader-hSpvBPX1.js";
|
|
12
|
+
import { u as re } from "./message-dialog-yXvmoAPz.js";
|
|
13
|
+
const ye = /* @__PURE__ */ F({
|
|
11
14
|
__name: "ReportView",
|
|
12
15
|
setup(ae) {
|
|
13
|
-
const p =
|
|
14
|
-
currentReport:
|
|
16
|
+
const p = U(), m = W(), n = M(), { promptMessage: D } = re(), d = K(), { promptLoader: $ } = oe(), { breakpoints: a } = Y(), {
|
|
17
|
+
currentReport: o,
|
|
15
18
|
currentReportId: u,
|
|
16
19
|
isOpenDownloadDialog: R,
|
|
17
20
|
editingReport: h,
|
|
18
21
|
canCreateCustomReport: E,
|
|
19
22
|
customReportQuota: g
|
|
20
|
-
} = c(d), { isOpenAccountingDialog: I } = c(
|
|
23
|
+
} = c(d), { isOpenAccountingDialog: I } = c(X()), { isOpenScheduleDialog: y } = c(Z()), { disabled: O } = c(te()), P = f(() => {
|
|
21
24
|
const r = [
|
|
22
25
|
{
|
|
23
26
|
icon: "mail",
|
|
@@ -49,7 +52,7 @@ const fe = /* @__PURE__ */ F({
|
|
|
49
52
|
icon: "content_copy",
|
|
50
53
|
label: "Copy ID",
|
|
51
54
|
onClick: () => {
|
|
52
|
-
|
|
55
|
+
o.value && (navigator.clipboard.writeText(u.value), n.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
];
|
|
@@ -60,7 +63,7 @@ const fe = /* @__PURE__ */ F({
|
|
|
60
63
|
}), r;
|
|
61
64
|
});
|
|
62
65
|
function N() {
|
|
63
|
-
h.value = JSON.parse(JSON.stringify(
|
|
66
|
+
h.value = JSON.parse(JSON.stringify(o.value)), p.push({
|
|
64
67
|
name: "reportEditor",
|
|
65
68
|
query: m.query
|
|
66
69
|
});
|
|
@@ -74,15 +77,15 @@ const fe = /* @__PURE__ */ F({
|
|
|
74
77
|
});
|
|
75
78
|
return;
|
|
76
79
|
}
|
|
77
|
-
if (!
|
|
80
|
+
if (!o.value) {
|
|
78
81
|
n.open({ message: "No Widget", type: "error" });
|
|
79
82
|
return;
|
|
80
83
|
}
|
|
81
84
|
if (await D({
|
|
82
85
|
title: "Save report",
|
|
83
|
-
message: `Do you really want to duplicate ${
|
|
84
|
-
}) &&
|
|
85
|
-
const e = JSON.parse(JSON.stringify(
|
|
86
|
+
message: `Do you really want to duplicate ${o.value.name} ?`
|
|
87
|
+
}) && o.value) {
|
|
88
|
+
const e = JSON.parse(JSON.stringify(o.value));
|
|
86
89
|
e.editable = !0, e.id = "", e.name = `${e.name} duplicate`;
|
|
87
90
|
try {
|
|
88
91
|
await $(async () => {
|
|
@@ -100,12 +103,12 @@ const fe = /* @__PURE__ */ F({
|
|
|
100
103
|
I.value = !0;
|
|
101
104
|
}
|
|
102
105
|
function A() {
|
|
103
|
-
|
|
106
|
+
o.value && (navigator.clipboard.writeText(u.value), n.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
104
107
|
}
|
|
105
|
-
const _ = f(() =>
|
|
108
|
+
const _ = f(() => o.value ? o.value.tiles : []), B = f(() => {
|
|
106
109
|
var e;
|
|
107
110
|
let r = [
|
|
108
|
-
(e =
|
|
111
|
+
(e = o == null ? void 0 : o.value) != null && e.editable ? { label: "Edit", value: "edit", isPrimary: !1 } : { label: "Duplicate", value: "duplicate", isPrimary: !1 },
|
|
109
112
|
{ label: "Download", value: "download", isPrimary: !0, prependIcon: "download" }
|
|
110
113
|
];
|
|
111
114
|
return a.value.xs && (r = [
|
|
@@ -117,36 +120,36 @@ const fe = /* @__PURE__ */ F({
|
|
|
117
120
|
});
|
|
118
121
|
return (r, e) => {
|
|
119
122
|
const i = J("FmPageHead");
|
|
120
|
-
return s(), v(
|
|
123
|
+
return s(), v(j, null, {
|
|
121
124
|
default: L(() => {
|
|
122
125
|
var C;
|
|
123
126
|
return [
|
|
124
127
|
x(i, {
|
|
125
|
-
title: (C = o
|
|
128
|
+
title: (C = t(o)) == null ? void 0 : C.name,
|
|
126
129
|
"back-button": !0,
|
|
127
130
|
actions: B.value,
|
|
128
|
-
"onClick:back": e[0] || (e[0] = (l) =>
|
|
131
|
+
"onClick:back": e[0] || (e[0] = (l) => t(p).push({ name: "reports", query: t(m).query })),
|
|
129
132
|
"onClick:action": e[1] || (e[1] = (l) => {
|
|
130
133
|
l === "duplicate" && q(), l === "download" && (R.value = !0), l === "edit" && N(), l === "mail" && (y.value = !0), l === "content_copy" && A(), l === "export" && b();
|
|
131
134
|
})
|
|
132
135
|
}, null, 8, ["title", "actions"]),
|
|
133
136
|
T("div", {
|
|
134
|
-
class: w(`flex flex-col overflow-y-auto ${
|
|
135
|
-
style: V({ height: `calc(100% - ${
|
|
137
|
+
class: w(`flex flex-col overflow-y-auto ${t(a).xs || t(a).sm ? "pb-20" : ""}`),
|
|
138
|
+
style: V({ height: `calc(100% - ${t(a).lg || t(a).md ? 72 : 64}px)` })
|
|
136
139
|
}, [
|
|
137
|
-
x(
|
|
138
|
-
"model-value":
|
|
140
|
+
x(G, {
|
|
141
|
+
"model-value": t(a).lg || t(a).md ? P.value : []
|
|
139
142
|
}, null, 8, ["model-value"]),
|
|
140
|
-
o
|
|
143
|
+
t(o) && _.value.length > 0 ? (s(), S("div", {
|
|
141
144
|
key: 0,
|
|
142
|
-
class: w(["grid grid-cols-12",
|
|
145
|
+
class: w(["grid grid-cols-12", t(a).sm || t(a).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"])
|
|
143
146
|
}, [
|
|
144
|
-
(s(!0), S(z, null, H(_.value, (l, k) => (s(), v(
|
|
145
|
-
key: `widget_${
|
|
147
|
+
(s(!0), S(z, null, H(_.value, (l, k) => (s(), v(Q, {
|
|
148
|
+
key: `widget_${t(u)}_${k}`,
|
|
146
149
|
"model-value": l,
|
|
147
150
|
index: k
|
|
148
151
|
}, null, 8, ["model-value", "index"]))), 128))
|
|
149
|
-
], 2)) : (s(), v(
|
|
152
|
+
], 2)) : (s(), v(ee, { key: 1 }))
|
|
150
153
|
], 6)
|
|
151
154
|
];
|
|
152
155
|
}),
|
|
@@ -156,5 +159,5 @@ const fe = /* @__PURE__ */ F({
|
|
|
156
159
|
}
|
|
157
160
|
});
|
|
158
161
|
export {
|
|
159
|
-
|
|
162
|
+
ye as default
|
|
160
163
|
};
|