@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,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 {
|
|
2
|
+
import { f as k, a as J } from "./global-loader-hSpvBPX1.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-PJJaEOeS.js";
|
|
5
|
+
import { a as Z, _ as ee } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-pLx3gB7Y.js";
|
|
6
|
+
import { t as P, s as te } from "./timeFormat-yx3JOmGm.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",
|
|
@@ -35,7 +35,7 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
35
35
|
function g(a, e = ue) {
|
|
36
36
|
return k().set("hour", a.hour).set("minute", a.minute).format(e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function c(a) {
|
|
39
39
|
a && (p.value = a), n();
|
|
40
40
|
}
|
|
41
41
|
function v(a) {
|
|
@@ -46,7 +46,7 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
46
46
|
period: b.format("A")
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const f = T(
|
|
50
50
|
s.defaultDateRange.findIndex((a) => a.isDefault) + 1
|
|
51
51
|
), t = T(JSON.parse(JSON.stringify(p.value))), h = T();
|
|
52
52
|
function n() {
|
|
@@ -80,14 +80,14 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
80
80
|
return [
|
|
81
81
|
u("div", ne, [
|
|
82
82
|
m(L, {
|
|
83
|
-
modelValue:
|
|
84
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
83
|
+
modelValue: f.value,
|
|
84
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => f.value = o)
|
|
85
85
|
}, {
|
|
86
86
|
default: _(() => [
|
|
87
87
|
(d(!0), $(w, null, E(s.defaultDateRange, (o, y) => (d(), R(N, {
|
|
88
88
|
key: `range_${y}`,
|
|
89
89
|
value: y + 1,
|
|
90
|
-
onClick: (
|
|
90
|
+
onClick: (ce) => r(o.startTime, o.endTime)
|
|
91
91
|
}, {
|
|
92
92
|
label: _(() => [
|
|
93
93
|
u("p", le, [
|
|
@@ -113,7 +113,7 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
113
113
|
]),
|
|
114
114
|
_: 1
|
|
115
115
|
}, 8, ["modelValue"]),
|
|
116
|
-
|
|
116
|
+
f.value === s.defaultDateRange.length + 1 ? (d(), $(w, { key: 0 }, [
|
|
117
117
|
e[5] || (e[5] = u("p", { class: "fm-typo-en-body-lg-600 mb-8" }, "Starting time", -1)),
|
|
118
118
|
u("div", me, [
|
|
119
119
|
m(S, {
|
|
@@ -148,7 +148,7 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
148
148
|
}),
|
|
149
149
|
m(M, {
|
|
150
150
|
label: "Apply",
|
|
151
|
-
onClick: e[4] || (e[4] = () =>
|
|
151
|
+
onClick: e[4] || (e[4] = () => c(JSON.parse(JSON.stringify(t.value))))
|
|
152
152
|
})
|
|
153
153
|
])
|
|
154
154
|
])
|
|
@@ -158,33 +158,37 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
158
158
|
}, 8, ["show-popover"]);
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
}), de = { class: "flex
|
|
161
|
+
}), de = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, pe = /* @__PURE__ */ D({
|
|
162
162
|
__name: "Filter",
|
|
163
163
|
setup(F) {
|
|
164
|
-
const p = J(), { locations: s, selectedLocationIds: g } = j(J()), { dateRange:
|
|
164
|
+
const p = J(), { locations: s, selectedLocationIds: g } = j(J()), { dateRange: c, compareDateRange: v, timeRange: f, defaultDateSetting: t } = j(p);
|
|
165
165
|
return (h, n) => (d(), $("div", de, [
|
|
166
166
|
m(Y, {
|
|
167
167
|
modelValue: l(g),
|
|
168
|
-
"onUpdate:modelValue": n[
|
|
168
|
+
"onUpdate:modelValue": n[4] || (n[4] = (r) => V(g) ? g.value = r : null),
|
|
169
169
|
options: l(s)
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
170
|
+
}, {
|
|
171
|
+
default: _(() => [
|
|
172
|
+
m(ee, {
|
|
173
|
+
dateRange: l(c),
|
|
174
|
+
"onUpdate:dateRange": n[0] || (n[0] = (r) => V(c) ? c.value = r : null),
|
|
175
|
+
"compare-date-range": l(v),
|
|
176
|
+
"onUpdate:compareDateRange": n[1] || (n[1] = (r) => V(v) ? v.value = r : null),
|
|
177
|
+
"compare-type": l(t).defaultCompareType,
|
|
178
|
+
"onUpdate:compareType": n[2] || (n[2] = (r) => l(t).defaultCompareType = r),
|
|
179
|
+
compare: ""
|
|
180
|
+
}, null, 8, ["dateRange", "compare-date-range", "compare-type"]),
|
|
181
|
+
m(ie, {
|
|
182
|
+
modelValue: l(f),
|
|
183
|
+
"onUpdate:modelValue": n[3] || (n[3] = (r) => V(f) ? f.value = r : null),
|
|
184
|
+
"default-date-range": l(t).timeOptions
|
|
185
|
+
}, null, 8, ["modelValue", "default-date-range"])
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["modelValue", "options"])
|
|
185
189
|
]));
|
|
186
190
|
}
|
|
187
|
-
}),
|
|
191
|
+
}), fe = { class: "fm-typo-en-body-md-400" }, xe = /* @__PURE__ */ D({
|
|
188
192
|
__name: "MenuTab",
|
|
189
193
|
props: {
|
|
190
194
|
modelValue: { required: !1, default: [] },
|
|
@@ -193,13 +197,13 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
193
197
|
emits: ["update:modelValue"],
|
|
194
198
|
setup(F) {
|
|
195
199
|
const p = z(F, "modelValue"), { breakpoints: s } = oe();
|
|
196
|
-
return (g,
|
|
197
|
-
const v = i("FmButton"),
|
|
200
|
+
return (g, c) => {
|
|
201
|
+
const v = i("FmButton"), f = i("FmIcon"), t = i("FmMenuItem"), h = i("FmMenu");
|
|
198
202
|
return d(), $("div", {
|
|
199
203
|
class: B(["flex items-center pb-6 px-24", `${l(s).lg || l(s).md ? "px-24" : "pl-3"}`])
|
|
200
204
|
}, [
|
|
201
205
|
m(pe),
|
|
202
|
-
|
|
206
|
+
c[0] || (c[0] = u("div", { class: "flex grow" }, null, -1)),
|
|
203
207
|
p.value.length > 0 ? (d(), R(h, {
|
|
204
208
|
key: 0,
|
|
205
209
|
trigger: "click",
|
|
@@ -221,11 +225,11 @@ const ne = { class: "px-24 py-16 rounded-lg shadow-light-300" }, le = { class: "
|
|
|
221
225
|
onClick: n.onClick
|
|
222
226
|
}, {
|
|
223
227
|
label: _(() => [
|
|
224
|
-
n.prependIcon ?? !1 ? (d(), R(
|
|
228
|
+
n.prependIcon ?? !1 ? (d(), R(f, {
|
|
225
229
|
key: 0,
|
|
226
230
|
name: n.icon
|
|
227
231
|
}, null, 8, ["name"])) : C("", !0),
|
|
228
|
-
u("p",
|
|
232
|
+
u("p", fe, x(n.label), 1)
|
|
229
233
|
]),
|
|
230
234
|
_: 2
|
|
231
235
|
}, 1032, ["onClick"]))), 128))
|