@feedmepos/mf-report 5.3.15-rc.8 → 5.3.16
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-3l6NLpaJ.js +148 -0
- package/dist/Default.vue_vue_type_script_setup_true_lang-64k5pzYf.js +32 -0
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang--INja6gN.js +990 -0
- package/dist/HeaderTab.vue_vue_type_script_setup_true_lang-pwHzeuLE.js +18 -0
- package/dist/InsightView-J3KwYn2p.js +9683 -0
- package/dist/Integration-78RYQXRQ.js +2585 -0
- package/dist/Integrations-X2VlHptm.js +335 -0
- package/dist/Layout-Oa39Pgk5.js +21 -0
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-1-lGKO_4.js +81 -0
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang--Ylj9LOi.js +240 -0
- package/dist/NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js +30 -0
- package/dist/OverviewView-jqKzuUWB.js +78 -0
- package/dist/Report--Jf9yv_U.js +402 -0
- package/dist/ReportEditor-7mZChuNh.js +524 -0
- package/dist/ReportView-hkE8PtjL.js +183 -0
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js +103 -0
- package/dist/Setting-BZz5pb22.js +326 -0
- package/dist/TileEditor-2NG17Way.js +2298 -0
- package/dist/TransitionFade-65Cz_5Jn.js +1982 -0
- package/dist/XeroRedirect-sLBv-Aqc.js +13 -0
- package/dist/app-FCoVjrM_.js +47435 -0
- package/dist/app.js +3 -67248
- package/dist/style.css +1 -1
- package/dist/timeFormat-d2kqJ566.js +9 -0
- package/package.json +5 -5
|
@@ -0,0 +1,148 @@
|
|
|
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 { K as T, C as O, d as n, L as w } from "./app-FCoVjrM_.js";
|
|
3
|
+
const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, V = /* @__PURE__ */ _({
|
|
4
|
+
__name: "FilterChip",
|
|
5
|
+
props: {
|
|
6
|
+
label: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: ""
|
|
9
|
+
},
|
|
10
|
+
leftIcon: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
rightIcon: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(t) {
|
|
20
|
+
const l = t;
|
|
21
|
+
return (d, o) => {
|
|
22
|
+
const e = f("FmIcon"), a = f("FmChip");
|
|
23
|
+
return r(), s(a, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
|
|
24
|
+
default: g(() => [
|
|
25
|
+
t.leftIcon ? (r(), s(e, {
|
|
26
|
+
key: 0,
|
|
27
|
+
name: l.leftIcon,
|
|
28
|
+
size: "sm",
|
|
29
|
+
outline: ""
|
|
30
|
+
}, null, 8, ["name"])) : D("", !0),
|
|
31
|
+
x("p", B, F(l.label), 1),
|
|
32
|
+
t.rightIcon ? (r(), s(e, {
|
|
33
|
+
key: 1,
|
|
34
|
+
name: t.rightIcon,
|
|
35
|
+
size: "sm",
|
|
36
|
+
outline: ""
|
|
37
|
+
}, null, 8, ["name"])) : D("", !0)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}), Y = { class: "flex gap-2 items-center" }, c = "YYYY-MM-DD", N = /* @__PURE__ */ _({
|
|
44
|
+
__name: "DateRangeSelect",
|
|
45
|
+
props: /* @__PURE__ */ M({
|
|
46
|
+
compare: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
datePredefinedRanges: {
|
|
51
|
+
type: Array,
|
|
52
|
+
default: () => T
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
compareType: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: O.PrecedingPeriod
|
|
58
|
+
},
|
|
59
|
+
compareTypeModifiers: {},
|
|
60
|
+
dateRange: {
|
|
61
|
+
type: Object,
|
|
62
|
+
default: () => ({
|
|
63
|
+
startDate: void 0,
|
|
64
|
+
endDate: void 0
|
|
65
|
+
})
|
|
66
|
+
},
|
|
67
|
+
dateRangeModifiers: {},
|
|
68
|
+
compareDateRange: {
|
|
69
|
+
type: Object,
|
|
70
|
+
default: () => ({
|
|
71
|
+
startDate: void 0,
|
|
72
|
+
endDate: void 0
|
|
73
|
+
})
|
|
74
|
+
},
|
|
75
|
+
compareDateRangeModifiers: {}
|
|
76
|
+
}),
|
|
77
|
+
emits: ["update:compareType", "update:dateRange", "update:compareDateRange"],
|
|
78
|
+
setup(t) {
|
|
79
|
+
var v, y, R;
|
|
80
|
+
const l = i(t, "compareType"), d = i(t, "dateRange"), o = i(t, "compareDateRange"), e = C({
|
|
81
|
+
startDate: (v = n(d.value.startDate)) == null ? void 0 : v.local().format(c),
|
|
82
|
+
endDate: (y = n(d.value.endDate)) == null ? void 0 : y.local().format(c)
|
|
83
|
+
}), a = C({
|
|
84
|
+
startDate: o.value.startDate ? (R = n(o.value.startDate)) == null ? void 0 : R.local().format(c) : void 0,
|
|
85
|
+
endDate: o.value.endDate ? n(o.value.endDate).local().format(c) : void 0
|
|
86
|
+
});
|
|
87
|
+
b([() => e.value], () => {
|
|
88
|
+
d.value = {
|
|
89
|
+
startDate: n(e.value.startDate).toISOString(),
|
|
90
|
+
endDate: n(e.value.endDate).toISOString()
|
|
91
|
+
};
|
|
92
|
+
}), b([() => a.value], () => {
|
|
93
|
+
o.value = {
|
|
94
|
+
startDate: a.value.startDate ? n(a.value.startDate).toISOString() : void 0,
|
|
95
|
+
endDate: a.value.endDate ? n(a.value.endDate).toISOString() : void 0
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
function k(S) {
|
|
99
|
+
l.value = S;
|
|
100
|
+
}
|
|
101
|
+
return (S, m) => {
|
|
102
|
+
const h = f("FmSimpleDateRangePicker");
|
|
103
|
+
return r(), P("div", Y, [
|
|
104
|
+
p(h, {
|
|
105
|
+
modelValue: e.value,
|
|
106
|
+
"onUpdate:modelValue": m[0] || (m[0] = (u) => e.value = u),
|
|
107
|
+
"show-predefined-range": "",
|
|
108
|
+
"predefined-range": t.datePredefinedRanges,
|
|
109
|
+
class: "w-2/6"
|
|
110
|
+
}, {
|
|
111
|
+
"trigger-button": g(() => [
|
|
112
|
+
p(V, {
|
|
113
|
+
"left-icon": "calendar_month",
|
|
114
|
+
label: `${I(w)({
|
|
115
|
+
startDate: e.value.startDate ?? "",
|
|
116
|
+
endDate: e.value.endDate ?? ""
|
|
117
|
+
})}`
|
|
118
|
+
}, null, 8, ["label"])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["modelValue", "predefined-range"]),
|
|
122
|
+
t.compare ? (r(), s(h, {
|
|
123
|
+
key: 0,
|
|
124
|
+
modelValue: a.value,
|
|
125
|
+
"onUpdate:modelValue": m[1] || (m[1] = (u) => a.value = u),
|
|
126
|
+
"show-predefined-range": "",
|
|
127
|
+
"compare-target": e.value,
|
|
128
|
+
"default-compare-type": l.value,
|
|
129
|
+
onSelectComparison: k
|
|
130
|
+
}, {
|
|
131
|
+
"trigger-button": g(() => [
|
|
132
|
+
p(V, {
|
|
133
|
+
label: `Compare: ${I(w)({
|
|
134
|
+
startDate: a.value.startDate ?? null,
|
|
135
|
+
endDate: a.value.endDate ?? null
|
|
136
|
+
})}`
|
|
137
|
+
}, null, 8, ["label"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["modelValue", "compare-target", "default-compare-type"])) : D("", !0)
|
|
141
|
+
]);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
export {
|
|
146
|
+
N as _,
|
|
147
|
+
V as a
|
|
148
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as u, openBlock as r, createElementBlock as n, normalizeClass as f, unref as e, normalizeStyle as p, createBlock as d, createCommentVNode as y, createVNode as _, createElementVNode as k, renderSlot as g } from "vue";
|
|
2
|
+
import { c as x, o as b } from "./app-FCoVjrM_.js";
|
|
3
|
+
import { useBreakpoints as h } from "@feedmepos/ui-library";
|
|
4
|
+
import { storeToRefs as C } from "pinia";
|
|
5
|
+
import { useRoute as v } from "vue-router";
|
|
6
|
+
const B = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
|
9
|
+
}, S = /* @__PURE__ */ i({
|
|
10
|
+
__name: "Default",
|
|
11
|
+
setup(q) {
|
|
12
|
+
const { breakpoints: t } = h(), { isLoading: a } = C(x()), o = v(), l = !o.query.token && !o.query.busines;
|
|
13
|
+
return (c, s) => {
|
|
14
|
+
const m = u("FmCircularProgress");
|
|
15
|
+
return r(), n("div", {
|
|
16
|
+
class: f(`${e(t).lg || e(t).md ? "flex w-full" : ""} bg-fm-color-neutral-white`),
|
|
17
|
+
style: p({
|
|
18
|
+
height: `calc(100vh - ${e(o).query.token && e(o).query.businessId ? "0" : "64"}px)`
|
|
19
|
+
})
|
|
20
|
+
}, [
|
|
21
|
+
e(l) ? y("", !0) : (r(), d(b, { key: 0 })),
|
|
22
|
+
e(a) ? (r(), n("div", B, [
|
|
23
|
+
_(m, { size: "xl" }),
|
|
24
|
+
s[0] || (s[0] = k("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Loading data... ", -1))
|
|
25
|
+
])) : g(c.$slots, "default", { key: 2 })
|
|
26
|
+
], 6);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
S as _
|
|
32
|
+
};
|