@feedmepos/mf-report 5.4.12-beta.1 → 5.4.13-beta.1
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-BfiD9wmy.js → App-DK19Ohw9.js} +5 -5
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DPuhMR6i.js +160 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-6dgHXUk3.js → Default.vue_vue_type_script_setup_true_lang-CjB6ZFYJ.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DKTYFcWp.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DVqkXuFU.js} +3 -3
- package/dist/{InsightView-D--f3-pW.js → InsightView-BcOAKbZN.js} +549 -553
- package/dist/{Integration-ksYAaTEL.js → Integration-BAWQq8VO.js} +3 -3
- package/dist/{Integrations-B-1-XM7e.js → Integrations-WWnSho0Q.js} +1 -1
- package/dist/{Layout-C4LN_UCn.js → Layout-CojLlS0K.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js → LocationSelect.vue_vue_type_script_setup_true_lang-DurYBXa5.js} +2 -2
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-CRAHJk3-.js +258 -0
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BOeN_d37.js → NavigationTab.vue_vue_type_script_setup_true_lang-CidcC3BD.js} +3 -3
- package/dist/{OverviewView-Cxr6evbQ.js → OverviewView-ciepJBIF.js} +4 -4
- package/dist/{Report-CENcCPN3.js → Report-s6hZYt-c.js} +3 -3
- package/dist/{ReportEditor-C9xlGtQB.js → ReportEditor-TWQyn4cl.js} +4 -4
- package/dist/{ReportView-CVRJ-zW-.js → ReportView-DOsvGP8h.js} +6 -6
- package/dist/{Setting-CjErDTYk.js → Setting-C0h0GVue.js} +4 -4
- package/dist/{TileEditor-CCdfNvYC.js → TileEditor-Bt5t1rOk.js} +6 -6
- package/dist/{TransitionFade-CJVHPwW2.js → TransitionFade-ijtXaz1S.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-D0HoIQuN.js → global-loader-CMC9fgBi.js} +572 -569
- package/dist/{index-CoXjL8fr.js → index-SmIkb24L.js} +7 -7
- package/dist/{report-schema-ZDNzst0e.js → report-schema-G0x3CoJb.js} +5 -5
- package/dist/{timeFormat-LsHi_wa0.js → timeFormat-BF-F4Rnt.js} +1 -1
- package/dist/{v4-Cp79gNIM.js → v4-Cb0oLva6.js} +1 -1
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js +0 -150
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-CRCXKFqR.js +0 -245
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f } from "./global-loader-
|
|
1
|
+
import { g as f } from "./global-loader-CMC9fgBi.js";
|
|
2
2
|
var n = /* @__PURE__ */ ((r) => (r.Year = "YEAR", r.Month = "MONTH", r.Week = "WEEK", r.Day = "DAY", r))(n || {});
|
|
3
|
-
function
|
|
3
|
+
function R(r, e = 100, a = !1) {
|
|
4
4
|
let t = null;
|
|
5
5
|
const c = (...l) => {
|
|
6
6
|
const u = () => {
|
|
@@ -72,7 +72,7 @@ function E(r) {
|
|
|
72
72
|
t--;
|
|
73
73
|
return e.slice(a, t).split(/\0/g);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function g(r) {
|
|
76
76
|
const e = E(r);
|
|
77
77
|
for (let a = 0; a < e.length; a++) {
|
|
78
78
|
const t = e[a], c = T.exec(t);
|
|
@@ -84,7 +84,7 @@ function C(r) {
|
|
|
84
84
|
return e;
|
|
85
85
|
}
|
|
86
86
|
function F(r, e) {
|
|
87
|
-
const [a, t, c] = i(r, e), l = y(e == null ? void 0 : e.locale), u = h(e == null ? void 0 : e.locale), s = e != null && e.mergeAmbiguousCharacters ? m(l, u) :
|
|
87
|
+
const [a, t, c] = i(r, e), l = y(e == null ? void 0 : e.locale), u = h(e == null ? void 0 : e.locale), s = e != null && e.mergeAmbiguousCharacters ? m(l, u) : C(l, u);
|
|
88
88
|
return a + t.map(s).join((e == null ? void 0 : e.delimiter) ?? "") + c;
|
|
89
89
|
}
|
|
90
90
|
function I(r, e) {
|
|
@@ -104,14 +104,14 @@ function h(r) {
|
|
|
104
104
|
function m(r, e) {
|
|
105
105
|
return (a) => `${e(a[0])}${r(a.slice(1))}`;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function C(r, e) {
|
|
108
108
|
return (a, t) => {
|
|
109
109
|
const c = a[0];
|
|
110
110
|
return (t > 0 && c >= "0" && c <= "9" ? "_" + c : e(c)) + r(a.slice(1));
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
function i(r, e = {}) {
|
|
114
|
-
const a = e.split ?? (e.separateNumbers ?
|
|
114
|
+
const a = e.split ?? (e.separateNumbers ? g : E), t = e.prefixCharacters ?? D, c = e.suffixCharacters ?? D;
|
|
115
115
|
let l = 0, u = r.length;
|
|
116
116
|
for (; l < r.length; ) {
|
|
117
117
|
const s = r.charAt(l);
|
|
@@ -136,7 +136,7 @@ export {
|
|
|
136
136
|
w as a,
|
|
137
137
|
S as b,
|
|
138
138
|
I as c,
|
|
139
|
-
|
|
139
|
+
R as d,
|
|
140
140
|
L as g,
|
|
141
141
|
F as p,
|
|
142
142
|
U as s
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { F as c,
|
|
1
|
+
import { F as c, f as s } from "./global-loader-CMC9fgBi.js";
|
|
2
2
|
import { defineStore as a } from "pinia";
|
|
3
3
|
import { ref as n } from "vue";
|
|
4
4
|
import { useSnackbar as m } from "@feedmepos/ui-library";
|
|
5
|
-
const
|
|
5
|
+
const f = () => {
|
|
6
6
|
const e = {
|
|
7
7
|
fetchType: c.Get,
|
|
8
8
|
url: "/schemas"
|
|
9
9
|
};
|
|
10
10
|
return s.fetch(e);
|
|
11
|
-
},
|
|
11
|
+
}, h = "mf-reportschema-store", l = a(h, () => {
|
|
12
12
|
const e = n([]), r = m();
|
|
13
13
|
async function t() {
|
|
14
14
|
try {
|
|
15
|
-
e.value = await
|
|
15
|
+
e.value = await f();
|
|
16
16
|
} catch (o) {
|
|
17
17
|
console.log(o), r.open({
|
|
18
18
|
title: "Get Schema Error",
|
|
@@ -27,5 +27,5 @@ const h = () => {
|
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
l as u
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as s } from "./global-loader-CMC9fgBi.js";
|
|
2
2
|
const u = (t) => s().set("hour", t.hour).set("minute", t.minute).format("h:mm A"), m = (t, e) => {
|
|
3
3
|
const o = s().set("hour", t.hour).set("minute", t.minute);
|
|
4
4
|
return s().set("hour", e.hour).set("minute", e.minute) < o ? "+1" : "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as xe, u as re, F as ie,
|
|
1
|
+
import { i as xe, u as re, F as ie, f as Z, a as ve, b as ke, l as Ge, g as fe, c as Ve, j as We } from "./global-loader-CMC9fgBi.js";
|
|
2
2
|
import { storeToRefs as K, defineStore as He } from "pinia";
|
|
3
3
|
import { ref as z, computed as Ae, h as Ye, watch as je } from "vue";
|
|
4
4
|
import { useSnackbar as ze, components as Ke } from "@feedmepos/ui-library";
|
package/package.json
CHANGED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, resolveComponent as f, createBlock as s, openBlock as d, withCtx as g, createCommentVNode as D, createElementVNode as _, renderSlot as x, toDisplayString as M, mergeModels as P, useModel as i, ref as h, watch as C, createElementBlock as T, createVNode as p, unref as I } from "vue";
|
|
2
|
-
import { f as n, y as O, C as $ } from "./global-loader-D0HoIQuN.js";
|
|
3
|
-
import { b as w } from "./index-CoXjL8fr.js";
|
|
4
|
-
const B = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, V = /* @__PURE__ */ k({
|
|
5
|
-
__name: "FilterChip",
|
|
6
|
-
props: {
|
|
7
|
-
label: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: ""
|
|
10
|
-
},
|
|
11
|
-
leftIcon: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: ""
|
|
14
|
-
},
|
|
15
|
-
rightIcon: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
setup(a) {
|
|
21
|
-
const o = a;
|
|
22
|
-
return (r, l) => {
|
|
23
|
-
const e = f("FmIcon"), t = f("FmChip");
|
|
24
|
-
return d(), s(t, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
|
|
25
|
-
default: g(() => [
|
|
26
|
-
a.leftIcon ? (d(), s(e, {
|
|
27
|
-
key: 0,
|
|
28
|
-
name: o.leftIcon,
|
|
29
|
-
size: "sm",
|
|
30
|
-
outline: ""
|
|
31
|
-
}, null, 8, ["name"])) : D("", !0),
|
|
32
|
-
_("p", B, M(o.label), 1),
|
|
33
|
-
a.rightIcon ? (d(), s(e, {
|
|
34
|
-
key: 1,
|
|
35
|
-
name: a.rightIcon,
|
|
36
|
-
size: "sm",
|
|
37
|
-
outline: ""
|
|
38
|
-
}, null, 8, ["name"])) : D("", !0),
|
|
39
|
-
x(r.$slots, "default")
|
|
40
|
-
]),
|
|
41
|
-
_: 3
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}), Y = { class: "flex gap-2 items-center" }, m = "YYYY-MM-DD", E = /* @__PURE__ */ k({
|
|
46
|
-
__name: "DateRangeSelect",
|
|
47
|
-
props: /* @__PURE__ */ P({
|
|
48
|
-
compare: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
},
|
|
52
|
-
datePredefinedRanges: {
|
|
53
|
-
type: Array,
|
|
54
|
-
default: () => O
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
compareType: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: $.PrecedingPeriod
|
|
60
|
-
},
|
|
61
|
-
compareTypeModifiers: {},
|
|
62
|
-
dateRange: {
|
|
63
|
-
type: Object,
|
|
64
|
-
default: () => ({
|
|
65
|
-
startDate: void 0,
|
|
66
|
-
endDate: void 0
|
|
67
|
-
})
|
|
68
|
-
},
|
|
69
|
-
dateRangeModifiers: {},
|
|
70
|
-
compareDateRange: {
|
|
71
|
-
type: Object,
|
|
72
|
-
default: () => ({
|
|
73
|
-
startDate: void 0,
|
|
74
|
-
endDate: void 0
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
|
-
compareDateRangeModifiers: {}
|
|
78
|
-
}),
|
|
79
|
-
emits: ["update:compareType", "update:dateRange", "update:compareDateRange"],
|
|
80
|
-
setup(a) {
|
|
81
|
-
var v, y, S;
|
|
82
|
-
const o = i(a, "compareType"), r = i(a, "dateRange"), l = i(a, "compareDateRange"), e = h({
|
|
83
|
-
startDate: (v = n(r.value.startDate)) == null ? void 0 : v.local().format(m),
|
|
84
|
-
endDate: (y = n(r.value.endDate)) == null ? void 0 : y.local().format(m)
|
|
85
|
-
}), t = h({
|
|
86
|
-
startDate: l.value.startDate ? (S = n(l.value.startDate)) == null ? void 0 : S.local().format(m) : void 0,
|
|
87
|
-
endDate: l.value.endDate ? n(l.value.endDate).local().format(m) : void 0
|
|
88
|
-
});
|
|
89
|
-
C([() => e.value], () => {
|
|
90
|
-
r.value = {
|
|
91
|
-
startDate: n(e.value.startDate).toISOString(),
|
|
92
|
-
endDate: n(e.value.endDate).toISOString()
|
|
93
|
-
};
|
|
94
|
-
}), C([() => t.value], () => {
|
|
95
|
-
l.value = {
|
|
96
|
-
startDate: t.value.startDate ? n(t.value.startDate).toISOString() : void 0,
|
|
97
|
-
endDate: t.value.endDate ? n(t.value.endDate).toISOString() : void 0
|
|
98
|
-
};
|
|
99
|
-
});
|
|
100
|
-
function F(R) {
|
|
101
|
-
o.value = R;
|
|
102
|
-
}
|
|
103
|
-
return (R, u) => {
|
|
104
|
-
const b = f("FmSimpleDateRangePicker");
|
|
105
|
-
return d(), T("div", Y, [
|
|
106
|
-
p(b, {
|
|
107
|
-
modelValue: e.value,
|
|
108
|
-
"onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
|
|
109
|
-
"show-predefined-range": "",
|
|
110
|
-
"predefined-range": a.datePredefinedRanges,
|
|
111
|
-
class: "w-2/6"
|
|
112
|
-
}, {
|
|
113
|
-
"trigger-button": g(() => [
|
|
114
|
-
p(V, {
|
|
115
|
-
"left-icon": "calendar_month",
|
|
116
|
-
label: `${I(w)({
|
|
117
|
-
startDate: e.value.startDate ?? "",
|
|
118
|
-
endDate: e.value.endDate ?? ""
|
|
119
|
-
})}`
|
|
120
|
-
}, null, 8, ["label"])
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["modelValue", "predefined-range"]),
|
|
124
|
-
a.compare ? (d(), s(b, {
|
|
125
|
-
key: 0,
|
|
126
|
-
modelValue: t.value,
|
|
127
|
-
"onUpdate:modelValue": u[1] || (u[1] = (c) => t.value = c),
|
|
128
|
-
"show-predefined-range": "",
|
|
129
|
-
"compare-target": e.value,
|
|
130
|
-
"default-compare-type": o.value,
|
|
131
|
-
onSelectComparison: F
|
|
132
|
-
}, {
|
|
133
|
-
"trigger-button": g(() => [
|
|
134
|
-
p(V, {
|
|
135
|
-
label: `Compare: ${I(w)({
|
|
136
|
-
startDate: t.value.startDate ?? null,
|
|
137
|
-
endDate: t.value.endDate ?? null
|
|
138
|
-
})}`
|
|
139
|
-
}, null, 8, ["label"])
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["modelValue", "compare-target", "default-compare-type"])) : D("", !0)
|
|
143
|
-
]);
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
export {
|
|
148
|
-
E as _,
|
|
149
|
-
V as a
|
|
150
|
-
};
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, mergeModels as K, useModel as z, ref as T, resolveComponent as i, createBlock as R, openBlock as d, withCtx as _, createElementVNode as u, createVNode as m, createElementBlock as $, createCommentVNode as w, Fragment as C, renderList as E, createTextVNode as Q, withDirectives as W, toDisplayString as x, vShow as X, unref as l, isRef as V, normalizeClass as B } from "vue";
|
|
2
|
-
import { f as k, a as J } from "./global-loader-D0HoIQuN.js";
|
|
3
|
-
import { storeToRefs as j } from "pinia";
|
|
4
|
-
import { _ as Y } from "./LocationSelect.vue_vue_type_script_setup_true_lang-B3GeSJ17.js";
|
|
5
|
-
import { a as Z, _ as ee } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CpiR4ObD.js";
|
|
6
|
-
import { t as P, s as te } from "./timeFormat-LsHi_wa0.js";
|
|
7
|
-
import { useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
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
|
-
__name: "TimeRangeSelect",
|
|
10
|
-
props: /* @__PURE__ */ K({
|
|
11
|
-
defaultDateRange: {
|
|
12
|
-
type: Array,
|
|
13
|
-
default: () => [
|
|
14
|
-
{
|
|
15
|
-
name: "All day",
|
|
16
|
-
isDefault: !0,
|
|
17
|
-
startTime: { hour: 0, minute: 0 },
|
|
18
|
-
endTime: { hour: 23, minute: 59 }
|
|
19
|
-
}
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}, {
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: () => ({
|
|
26
|
-
start: { hour: 0, minute: 0 },
|
|
27
|
-
end: { hour: 23, minute: 59 }
|
|
28
|
-
})
|
|
29
|
-
},
|
|
30
|
-
modelModifiers: {}
|
|
31
|
-
}),
|
|
32
|
-
emits: ["update:modelValue"],
|
|
33
|
-
setup(F) {
|
|
34
|
-
const p = z(F, "modelValue"), s = F;
|
|
35
|
-
function g(a, e = ue) {
|
|
36
|
-
return k().set("hour", a.hour).set("minute", a.minute).format(e);
|
|
37
|
-
}
|
|
38
|
-
function c(a) {
|
|
39
|
-
a && (p.value = a), n();
|
|
40
|
-
}
|
|
41
|
-
function v(a) {
|
|
42
|
-
const e = a.split(":"), b = k().set("hour", Number(e[0])).set("minute", Number(e[1]));
|
|
43
|
-
return console.log(b.format("A")), {
|
|
44
|
-
hours: Number(b.format("h")),
|
|
45
|
-
minutes: Number(b.format("m")),
|
|
46
|
-
period: b.format("A")
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
const f = T(
|
|
50
|
-
s.defaultDateRange.findIndex((a) => a.isDefault) + 1
|
|
51
|
-
), t = T(JSON.parse(JSON.stringify(p.value))), h = T();
|
|
52
|
-
function n() {
|
|
53
|
-
var a;
|
|
54
|
-
(a = h.value) == null || a.hide();
|
|
55
|
-
}
|
|
56
|
-
function r(a, e) {
|
|
57
|
-
t.value.start = JSON.parse(JSON.stringify(a)), t.value.end = JSON.parse(JSON.stringify(e));
|
|
58
|
-
}
|
|
59
|
-
const G = T(!1);
|
|
60
|
-
return (a, e) => {
|
|
61
|
-
const b = i("FmChip"), N = i("FmRadio"), H = i("FmMenuDivider"), L = i("FmRadioGroup"), S = i("FmTimeInput"), M = i("FmButton"), q = i("FmPopover");
|
|
62
|
-
return d(), R(q, {
|
|
63
|
-
ref_key: "dropdownRef",
|
|
64
|
-
ref: h,
|
|
65
|
-
placement: "bottom",
|
|
66
|
-
class: "min-w-[212px]",
|
|
67
|
-
"show-popover": G.value
|
|
68
|
-
}, {
|
|
69
|
-
"popover-button": _(() => [
|
|
70
|
-
m(Z, {
|
|
71
|
-
"left-icon": "schedule",
|
|
72
|
-
label: `${g(p.value.start ?? { hour: 0, minute: 0 }, "h:mmA")} - ${g(
|
|
73
|
-
p.value.end ?? { hour: 23, minute: 59 },
|
|
74
|
-
"h:mmA"
|
|
75
|
-
)}`
|
|
76
|
-
}, null, 8, ["label"])
|
|
77
|
-
]),
|
|
78
|
-
default: _(() => {
|
|
79
|
-
var O, A, I, U;
|
|
80
|
-
return [
|
|
81
|
-
u("div", ne, [
|
|
82
|
-
m(L, {
|
|
83
|
-
modelValue: f.value,
|
|
84
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => f.value = o)
|
|
85
|
-
}, {
|
|
86
|
-
default: _(() => [
|
|
87
|
-
(d(!0), $(C, null, E(s.defaultDateRange, (o, y) => (d(), R(N, {
|
|
88
|
-
key: `range_${y}`,
|
|
89
|
-
value: y + 1,
|
|
90
|
-
onClick: (ce) => r(o.startTime, o.endTime)
|
|
91
|
-
}, {
|
|
92
|
-
label: _(() => [
|
|
93
|
-
u("p", le, [
|
|
94
|
-
Q(x(o.name) + " ", 1),
|
|
95
|
-
W(m(b, {
|
|
96
|
-
label: "Default",
|
|
97
|
-
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
98
|
-
compact: ""
|
|
99
|
-
}, null, 512), [
|
|
100
|
-
[X, o.isDefault]
|
|
101
|
-
])
|
|
102
|
-
]),
|
|
103
|
-
u("p", ae, x(l(P)(o.startTime)) + " - " + x(l(P)(o.endTime)) + " " + x(l(te)(o.startTime, o.endTime)), 1)
|
|
104
|
-
]),
|
|
105
|
-
_: 2
|
|
106
|
-
}, 1032, ["value", "onClick"]))), 128)),
|
|
107
|
-
m(H),
|
|
108
|
-
m(N, {
|
|
109
|
-
key: "range_custom",
|
|
110
|
-
label: "Custom",
|
|
111
|
-
value: s.defaultDateRange.length + 1
|
|
112
|
-
}, null, 8, ["value"])
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["modelValue"]),
|
|
116
|
-
f.value === s.defaultDateRange.length + 1 ? (d(), $(C, { key: 0 }, [
|
|
117
|
-
e[5] || (e[5] = u("p", { class: "fm-typo-en-body-lg-600 mb-8" }, "Starting time", -1)),
|
|
118
|
-
u("div", me, [
|
|
119
|
-
m(S, {
|
|
120
|
-
"model-value": v(`${(O = t.value.start) == null ? void 0 : O.hour}:${(A = t.value.start) == null ? void 0 : A.minute}`),
|
|
121
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => {
|
|
122
|
-
if (t.value.start) {
|
|
123
|
-
const y = l(k)(`${o.hours}:${o.minutes} ${o.period}`, "h:m A");
|
|
124
|
-
t.value.start.hour = y.get("hour"), t.value.start.minute = y.get("minute");
|
|
125
|
-
}
|
|
126
|
-
})
|
|
127
|
-
}, null, 8, ["model-value"])
|
|
128
|
-
]),
|
|
129
|
-
e[6] || (e[6] = u("p", { class: "fm-typo-en-body-lg-600 mb-8" }, "Closing time", -1)),
|
|
130
|
-
u("div", re, [
|
|
131
|
-
m(S, {
|
|
132
|
-
"model-value": v(`${(I = t.value.end) == null ? void 0 : I.hour}:${(U = t.value.end) == null ? void 0 : U.minute}`),
|
|
133
|
-
"onUpdate:modelValue": e[2] || (e[2] = (o) => {
|
|
134
|
-
if (t.value.end) {
|
|
135
|
-
const y = l(k)(`${o.hours}:${o.minutes} ${o.period}`, "h:m A");
|
|
136
|
-
t.value.end.hour = y.get("hour"), t.value.end.minute = y.get("minute");
|
|
137
|
-
}
|
|
138
|
-
})
|
|
139
|
-
}, null, 8, ["model-value"])
|
|
140
|
-
])
|
|
141
|
-
], 64)) : w("", !0),
|
|
142
|
-
u("div", se, [
|
|
143
|
-
e[7] || (e[7] = u("div", { class: "grow" }, null, -1)),
|
|
144
|
-
m(M, {
|
|
145
|
-
label: "Cancel",
|
|
146
|
-
variant: "tertiary",
|
|
147
|
-
onClick: e[3] || (e[3] = (o) => n())
|
|
148
|
-
}),
|
|
149
|
-
m(M, {
|
|
150
|
-
label: "Apply",
|
|
151
|
-
onClick: e[4] || (e[4] = () => c(JSON.parse(JSON.stringify(t.value))))
|
|
152
|
-
})
|
|
153
|
-
])
|
|
154
|
-
])
|
|
155
|
-
];
|
|
156
|
-
}),
|
|
157
|
-
_: 1
|
|
158
|
-
}, 8, ["show-popover"]);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
}), de = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, pe = /* @__PURE__ */ D({
|
|
162
|
-
__name: "Filter",
|
|
163
|
-
setup(F) {
|
|
164
|
-
const p = J(), { locations: s, selectedLocationIds: g } = j(J()), { dateRange: c, compareDateRange: v, timeRange: f, defaultDateSetting: t } = j(p);
|
|
165
|
-
return (h, n) => (d(), $("div", de, [
|
|
166
|
-
m(Y, {
|
|
167
|
-
modelValue: l(g),
|
|
168
|
-
"onUpdate:modelValue": n[4] || (n[4] = (r) => V(g) ? g.value = r : null),
|
|
169
|
-
options: l(s)
|
|
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"])
|
|
189
|
-
]));
|
|
190
|
-
}
|
|
191
|
-
}), fe = { class: "fm-typo-en-body-md-400" }, xe = /* @__PURE__ */ D({
|
|
192
|
-
__name: "MenuTab",
|
|
193
|
-
props: {
|
|
194
|
-
modelValue: { required: !1, default: [] },
|
|
195
|
-
modelModifiers: {}
|
|
196
|
-
},
|
|
197
|
-
emits: ["update:modelValue"],
|
|
198
|
-
setup(F) {
|
|
199
|
-
const p = z(F, "modelValue"), { breakpoints: s } = oe();
|
|
200
|
-
return (g, c) => {
|
|
201
|
-
const v = i("FmButton"), f = i("FmIcon"), t = i("FmMenuItem"), h = i("FmMenu");
|
|
202
|
-
return d(), $("div", {
|
|
203
|
-
class: B(["flex items-center pb-6 px-24", `${l(s).lg || l(s).md ? "px-24" : "pl-3"}`])
|
|
204
|
-
}, [
|
|
205
|
-
m(pe),
|
|
206
|
-
c[0] || (c[0] = u("div", { class: "flex grow" }, null, -1)),
|
|
207
|
-
p.value.length > 0 ? (d(), R(h, {
|
|
208
|
-
key: 0,
|
|
209
|
-
trigger: "click",
|
|
210
|
-
placement: "left",
|
|
211
|
-
shift: !0,
|
|
212
|
-
class: B(l(s).sm || l(s).xs ? "pr-3" : "")
|
|
213
|
-
}, {
|
|
214
|
-
"menu-button": _(() => [
|
|
215
|
-
m(v, {
|
|
216
|
-
"append-icon": "more_vert",
|
|
217
|
-
variant: "tertiary",
|
|
218
|
-
size: "md",
|
|
219
|
-
class: "w-[36px] bg-none"
|
|
220
|
-
})
|
|
221
|
-
]),
|
|
222
|
-
default: _(() => [
|
|
223
|
-
(d(!0), $(C, null, E(p.value, (n, r) => (d(), R(t, {
|
|
224
|
-
key: `button-${r}`,
|
|
225
|
-
onClick: n.onClick
|
|
226
|
-
}, {
|
|
227
|
-
label: _(() => [
|
|
228
|
-
n.prependIcon ?? !1 ? (d(), R(f, {
|
|
229
|
-
key: 0,
|
|
230
|
-
name: n.icon
|
|
231
|
-
}, null, 8, ["name"])) : w("", !0),
|
|
232
|
-
u("p", fe, x(n.label), 1)
|
|
233
|
-
]),
|
|
234
|
-
_: 2
|
|
235
|
-
}, 1032, ["onClick"]))), 128))
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["class"])) : w("", !0)
|
|
239
|
-
], 2);
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
export {
|
|
244
|
-
xe as _
|
|
245
|
-
};
|