@feedmepos/mf-report 5.24.2 → 5.24.3
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-mqLN8UFM.js → App-CH45KtMi.js} +4 -4
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-C3gJtMm-.js +380 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BzVweuOL.js → Default.vue_vue_type_script_setup_true_lang-Duu-LyqL.js} +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-CtV3BEJO.js +4661 -0
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-C731Br2T.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BDXjO_Sp.js} +8299 -7427
- package/dist/{InsightView-ADisfb4R.js → InsightView-BWVD5IIN.js} +5 -5
- package/dist/{Integration-CDqNMoR0.js → Integration-BVN352PX.js} +22 -22
- package/dist/{Integrations-DQIv4LVI.js → Integrations-BUojqghs.js} +13 -12
- package/dist/{Layout-DMSB8Kfu.js → Layout-B5kumbJ0.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-2gpx86l4.js → MenuTab.vue_vue_type_script_setup_true_lang-D1-Jlcbz.js} +26 -27
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DHUUdyp2.js → NavigationTab.vue_vue_type_script_setup_true_lang-DDbNobqI.js} +6342 -6322
- package/dist/{OverviewView-CRg2cFuh.js → OverviewView-DJOcIDmH.js} +5 -5
- package/dist/{Report-BwqcLICQ.js → Report-CuZpyzTW.js} +4 -4
- package/dist/{ReportEditor-DGY3SxpW.js → ReportEditor-B3haFTU6.js} +571 -573
- package/dist/{ReportView-BIY-5Lbi.js → ReportView-4JWtTu3y.js} +16 -17
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Af_Z54a4.js +143 -0
- package/dist/{Setting-CpfDtK_s.js → Setting-Dl8HsHao.js} +4 -4
- package/dist/{TileEditor-D5jwVXhB.js → TileEditor-1hvqccL1.js} +325 -323
- package/dist/{TransitionFade-CC0PpKBo.js → TransitionFade-9A8VZ8Fm.js} +18 -18
- package/dist/{app-CILH73ZA.js → app-CBHDMsDR.js} +2229 -2311
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-C3U_CcDO.js → formatChartData.worker-DaLXwMTs.js} +2 -2
- package/dist/assets/{processTableData.worker-D_oiIvNW.js → processTableData.worker-Be0ZD94L.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-UJ4KkZq1.js → useRestaurantPermission-CGonMXA-.js} +1 -1
- package/package.json +1 -1
- package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-BYxYhdsf.js +0 -286
- package/dist/FilterSelector.vue_vue_type_script_setup_true_lang-LZyZxm7z.js +0 -5467
- package/dist/NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js +0 -38
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js +0 -110
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.glassmorphism{background:linear-gradient(135deg,#fffffff5,#fffffff5);box-shadow:0 8px 24px #0f172a2e}.chart-legend-text[data-v-6006dfdf]{color:var(--legend-text-color);font-size:var(--legend-font-size)}.chart-legend-list[data-v-6006dfdf]{scrollbar-width:none;-ms-overflow-style:none}.chart-legend-list[data-v-6006dfdf]::-webkit-scrollbar{display:none;width:0;height:0}.circular{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;overflow:hidden;padding:0;width:var(--chart-width);height:var(--chart-height)}.circular .flex-col.gap-8{gap:0!important}.circular .fm-color-typo-primary:empty,.circular .fm-color-typo-secondary:empty{display:none}.circular .grow{height:100%}.sparkline{margin:0;padding:0}.sparkline .grow{height:50px;flex-grow:0}.scrollbar-hide-table>div{scrollbar-width:thin}.bar-chart{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;overflow:hidden;padding:0;width:var(--chart-width);height:var(--chart-height)}.bar-chart .grow{height:100%}.bar-chart .flex-col{gap:0}.widget-content{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.chart-layout{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-height:0}.chart-layout--side{flex-direction:row;align-items:stretch;gap:0;min-height:0}.line-chart{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;overflow:hidden;margin:0;padding:8px 0 0;width:var(--chart-width);height:var(--chart-height)}.line-chart .grow{height:100%}.line-chart .flex-col{gap:0}.card-container[data-v-
|
|
1
|
+
.glassmorphism{background:linear-gradient(135deg,#fffffff5,#fffffff5);box-shadow:0 8px 24px #0f172a2e}.chart-legend-text[data-v-6006dfdf]{color:var(--legend-text-color);font-size:var(--legend-font-size)}.chart-legend-list[data-v-6006dfdf]{scrollbar-width:none;-ms-overflow-style:none}.chart-legend-list[data-v-6006dfdf]::-webkit-scrollbar{display:none;width:0;height:0}.circular{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;overflow:hidden;padding:0;width:var(--chart-width);height:var(--chart-height)}.circular .flex-col.gap-8{gap:0!important}.circular .fm-color-typo-primary:empty,.circular .fm-color-typo-secondary:empty{display:none}.circular .grow{height:100%}.sparkline{margin:0;padding:0}.sparkline .grow{height:50px;flex-grow:0}.scrollbar-hide-table>div{scrollbar-width:thin}.bar-chart{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;overflow:hidden;padding:0;width:var(--chart-width);height:var(--chart-height)}.bar-chart .grow{height:100%}.bar-chart .flex-col{gap:0}.widget-content{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.chart-layout{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-height:0}.chart-layout--side{flex-direction:row;align-items:stretch;gap:0;min-height:0}.line-chart{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;overflow:hidden;margin:0;padding:8px 0 0;width:var(--chart-width);height:var(--chart-height)}.line-chart .grow{height:100%}.line-chart .flex-col{gap:0}.card-container[data-v-818eab25]{overflow-y:auto;overflow-x:hidden}.fm-progress-linear-custom span[data-v-2f6d52e6]{width:auto;height:100%;position:absolute;display:inline-block;top:0;left:0}.fm-progress-linear-custom span.dash-1[data-v-2f6d52e6]{left:-35%;animation:progress-linear-dash-1-2f6d52e6 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.fm-progress-linear-custom span.dash-2[data-v-2f6d52e6]{left:100%;animation:progress-linear-dash-2-2f6d52e6 2.1s cubic-bezier(.165,.84,.44,1) 1.15s infinite}@keyframes progress-linear-dash-1-2f6d52e6{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes progress-linear-dash-2-2f6d52e6{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes shimmer-2f6d52e6{0%{transform:translate(-100%)}to{transform:translate(400%)}}.progress-bar-fill[data-v-2f6d52e6]{position:relative;overflow:hidden}.progress-bar-fill[data-v-2f6d52e6]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;width:50%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.12) 30%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.12) 70%,transparent 100%);animation:shimmer-2f6d52e6 1.5s infinite linear}.show-pin{visibility:hidden}.row:hover .show-pin{visibility:visible}.icon-btn{border-radius:100%}.overlay{background:#0006;position:absolute;top:0;left:0;height:100vh;width:100vw}.side-panel{position:fixed;right:0;top:0;height:100%;background:#fff}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transition:all .3s ease-out}.slide-enter-from,.slide-leave-to{transform:translate(100%)}.remove-line-clamping[data-v-75e63bb5] .line-clamp-1,.remove-line-clamping[data-v-75e63bb5] .line-clamp-2{display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;-webkit-box-orient:unset!important;overflow:visible!important;white-space:normal!important}.remove-line-clamping[data-v-75e63bb5] .flex.flex-col.flex-grow{min-width:0}.remove-line-clamping[data-v-75e63bb5] .cursor-pointer.flex.items-center.justify-center.relative{min-width:0;max-width:100%;overflow:hidden}.selected-widget[data-v-0535b07b]{background-color:#fff4e6;border-color:#ff7823}.slide-fade-enter-active[data-v-fa67a3a4],.slide-fade-leave-active[data-v-fa67a3a4]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-fa67a3a4],.slide-fade-leave-to[data-v-fa67a3a4]{transform:translateY(-50px);opacity:0}.slide-fade-right-enter-active[data-v-a98ca9bc],.slide-fade-right-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-right-enter-from[data-v-a98ca9bc],.slide-fade-right-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.4}.slide-fade-left-enter-active[data-v-a98ca9bc]{transition-delay:.3s;transition:all .3s ease-in-out}.slide-fade-left-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-left-enter-from[data-v-a98ca9bc],.slide-fade-left-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.1}.toggleEditResize{border:2px dashed #3b82f6!important;position:relative}th:hover,td:hover{cursor:default}.col-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:10}.highlight-hover-col,.highlight-col{border-right:2px solid #3b82f6!important}.row-resize-handle{position:absolute;bottom:0;left:0;width:100%;height:6px;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:10}.highlight-hover-row,.highlight-row{border-bottom:2px solid #3b82f6!important}.legend-color-input[data-v-0f6af12a]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:40px;height:24px;border:0;background:transparent;padding:0}.legend-color-input[data-v-0f6af12a]::-webkit-color-swatch-wrapper{padding:0}.legend-color-input[data-v-0f6af12a]::-webkit-color-swatch{border:1px solid rgb(var(--fm-color-neutral-gray-200));border-radius:4px}.legend-color-input[data-v-0f6af12a]::-moz-color-swatch{border:1px solid rgb(var(--fm-color-neutral-gray-200));border-radius:4px}.line-style-icon[data-v-f1c35513]{width:28px;border-top:2px solid currentColor;color:rgb(var(--fm-color-neutral-gray-300));flex-shrink:0}.line-style-icon--solid[data-v-f1c35513]{border-top-style:solid}.line-style-icon--dashed[data-v-f1c35513]{border-top-style:dashed}.line-style-icon--dotted[data-v-f1c35513]{border-top-style:dotted}.fm-top-sheet{height:100%}.integration-card[data-v-60c3aea9]{height:140px;width:140px;padding:0}.integration-card .logo-card[data-v-60c3aea9]{width:100%;padding:24px;background:#fff}.integration-card .title-card[data-v-60c3aea9]{height:36px;color:#fff}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}
|
|
@@ -2,7 +2,7 @@ import { computed as u } from "vue";
|
|
|
2
2
|
import { u as c } from "./vue-i18n-DVWuTfed.js";
|
|
3
3
|
import { useSnackbar as f } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
5
|
-
import {
|
|
5
|
+
import { Y as l, Z as i } from "./app-CBHDMsDR.js";
|
|
6
6
|
function g(t) {
|
|
7
7
|
return Array.isArray(t) ? t : [];
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, resolveComponent as S, createBlock as p, openBlock as y, withCtx as T, createCommentVNode as R, createElementVNode as M, toDisplayString as j, renderSlot as B, mergeModels as k, useModel as b, ref as C, watch as x, createElementBlock as U, unref as f, createVNode as O } from "vue";
|
|
2
|
-
import { d as r, a as W, a0 as q, C as G } from "./app-CILH73ZA.js";
|
|
3
|
-
import { detectLocale as E } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as H } from "./vue-i18n-DVWuTfed.js";
|
|
5
|
-
import { storeToRefs as K } from "pinia";
|
|
6
|
-
var v = /* @__PURE__ */ ((e) => (e.Year = "YEAR", e.Month = "MONTH", e.Week = "WEEK", e.Day = "DAY", e))(v || {}), L = /* @__PURE__ */ ((e) => (e.Yesterday = "YESTERDAY", e.Today = "TODAY", e))(L || {});
|
|
7
|
-
function le(e, t = 100) {
|
|
8
|
-
let n = null;
|
|
9
|
-
const a = function(...o) {
|
|
10
|
-
return n && clearTimeout(n), new Promise((l) => {
|
|
11
|
-
n = setTimeout(() => {
|
|
12
|
-
n = null;
|
|
13
|
-
const m = e(...o);
|
|
14
|
-
l(m);
|
|
15
|
-
}, t);
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
return a.cancel = () => {
|
|
19
|
-
n && (clearTimeout(n), n = null);
|
|
20
|
-
}, a;
|
|
21
|
-
}
|
|
22
|
-
function J() {
|
|
23
|
-
return [...Array(12).keys()].map((e) => r().month(e).format("MMM"));
|
|
24
|
-
}
|
|
25
|
-
function oe(e, t, n = "") {
|
|
26
|
-
switch (e.type) {
|
|
27
|
-
case v.Day:
|
|
28
|
-
return t("report.schedule.everyDay");
|
|
29
|
-
case v.Week: {
|
|
30
|
-
let a = `${t("report.schedule.everyWeek")} `;
|
|
31
|
-
const o = [
|
|
32
|
-
t("report.days.sunday"),
|
|
33
|
-
t("report.days.monday"),
|
|
34
|
-
t("report.days.tuesday"),
|
|
35
|
-
t("report.days.wednesday"),
|
|
36
|
-
t("report.days.thursday"),
|
|
37
|
-
t("report.days.friday"),
|
|
38
|
-
t("report.days.saturday")
|
|
39
|
-
];
|
|
40
|
-
if (e.days)
|
|
41
|
-
for (let l = 0; l < e.days.length; l++)
|
|
42
|
-
a = a + o[e.days[l]] + (l !== e.days.length - 1 ? "," : "");
|
|
43
|
-
return a;
|
|
44
|
-
}
|
|
45
|
-
case v.Month: {
|
|
46
|
-
let a = `${t("report.schedule.everyMonth")} `;
|
|
47
|
-
return e.days && (a = a + e.days.join(",")), a;
|
|
48
|
-
}
|
|
49
|
-
case v.Year: {
|
|
50
|
-
if (!e.months && !e.days)
|
|
51
|
-
return t("report.schedule.customDate");
|
|
52
|
-
let a = `${t("report.schedule.everyYear")} `;
|
|
53
|
-
if (e.months) {
|
|
54
|
-
const o = J();
|
|
55
|
-
a = a + e.months.map((l) => o[l - 1]).join(",");
|
|
56
|
-
}
|
|
57
|
-
return e.months && e.days && (a = a + ` ${t("report.common.and")} `), e.days && (a = a + e.days.join(",")), a;
|
|
58
|
-
}
|
|
59
|
-
default:
|
|
60
|
-
return n;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function F(e = {
|
|
64
|
-
startDate: null,
|
|
65
|
-
endDate: null,
|
|
66
|
-
locale: "en-US",
|
|
67
|
-
timezone: void 0
|
|
68
|
-
}) {
|
|
69
|
-
if (!e.startDate || !e.endDate)
|
|
70
|
-
return "No comparison";
|
|
71
|
-
let t = r().subtract(1, "day").endOf("day"), n = r().endOf("day");
|
|
72
|
-
return e.startDate && (t = e.timezone ? r(e.startDate).tz(e.timezone).locale(e.locale) : r(e.startDate).locale(e.locale)), e.endDate && (n = e.timezone ? r(e.endDate).tz(e.timezone).locale(e.locale) : r(e.endDate).locale(e.locale)), t.format("YYYY") !== n.format("YYYY") ? `${t.format("DD MMM YYYY")} - ${n.format("DD MMM YYYY")}` : `${t.format("DD MMM")} - ${n.format("DD MMM YYYY")}`;
|
|
73
|
-
}
|
|
74
|
-
function de(e = {
|
|
75
|
-
startTime: null,
|
|
76
|
-
endTime: null,
|
|
77
|
-
locale: "en-US"
|
|
78
|
-
}) {
|
|
79
|
-
const t = "hh:mmA", { startTime: n, endTime: a, locale: o } = e;
|
|
80
|
-
if (!n || !a) return "";
|
|
81
|
-
const l = r().set("hour", n.hour).set("minute", n.minute).locale(o), m = r().set("hour", a.hour).set("minute", a.minute).locale(o);
|
|
82
|
-
return `${l.format(t)}-${m.format(t)}`;
|
|
83
|
-
}
|
|
84
|
-
const Q = { class: "fm-typo-en-body-md-600 flex items-center gap-1 flex-1 min-w-0" }, X = { class: "text-ellipsis overflow-hidden whitespace-nowrap flex-1 min-w-0" }, Z = { class: "whitespace-nowrap flex-none" }, V = /* @__PURE__ */ A({
|
|
85
|
-
__name: "FilterChip",
|
|
86
|
-
props: {
|
|
87
|
-
label: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: ""
|
|
90
|
-
},
|
|
91
|
-
leftIcon: {
|
|
92
|
-
type: String,
|
|
93
|
-
default: ""
|
|
94
|
-
},
|
|
95
|
-
rightIcon: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: ""
|
|
98
|
-
},
|
|
99
|
-
trailingIcon: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: ""
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
setup(e) {
|
|
105
|
-
const t = e;
|
|
106
|
-
return (n, a) => {
|
|
107
|
-
const o = S("FmIcon"), l = S("FmChip");
|
|
108
|
-
return y(), p(l, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit flex items-center gap-1" }, {
|
|
109
|
-
default: T(() => [
|
|
110
|
-
e.leftIcon ? (y(), p(o, {
|
|
111
|
-
key: 0,
|
|
112
|
-
name: t.leftIcon,
|
|
113
|
-
size: "sm",
|
|
114
|
-
outline: "",
|
|
115
|
-
class: "flex-none"
|
|
116
|
-
}, null, 8, ["name"])) : R("", !0),
|
|
117
|
-
M("div", Q, [
|
|
118
|
-
M("span", X, j(t.label), 1),
|
|
119
|
-
e.rightIcon ? (y(), p(o, {
|
|
120
|
-
key: 0,
|
|
121
|
-
name: e.rightIcon,
|
|
122
|
-
size: "sm",
|
|
123
|
-
outline: "",
|
|
124
|
-
class: "flex-none"
|
|
125
|
-
}, null, 8, ["name"])) : R("", !0),
|
|
126
|
-
M("span", Z, [
|
|
127
|
-
B(n.$slots, "default")
|
|
128
|
-
]),
|
|
129
|
-
e.trailingIcon ? (y(), p(o, {
|
|
130
|
-
key: 1,
|
|
131
|
-
name: e.trailingIcon,
|
|
132
|
-
size: "sm",
|
|
133
|
-
outline: "",
|
|
134
|
-
class: "flex-none"
|
|
135
|
-
}, null, 8, ["name"])) : R("", !0)
|
|
136
|
-
])
|
|
137
|
-
]),
|
|
138
|
-
_: 3
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
}), _ = { class: "flex gap-2 items-center" }, Y = "YYYY-MM-DD", ue = /* @__PURE__ */ A({
|
|
143
|
-
__name: "DateRangeSelect",
|
|
144
|
-
props: /* @__PURE__ */ k({
|
|
145
|
-
compare: {
|
|
146
|
-
type: Boolean,
|
|
147
|
-
default: !1
|
|
148
|
-
},
|
|
149
|
-
datePredefinedRanges: {
|
|
150
|
-
type: Array,
|
|
151
|
-
default: () => q()
|
|
152
|
-
},
|
|
153
|
-
label: {
|
|
154
|
-
type: String,
|
|
155
|
-
required: !1,
|
|
156
|
-
default: null
|
|
157
|
-
},
|
|
158
|
-
removable: {
|
|
159
|
-
type: Boolean,
|
|
160
|
-
required: !1,
|
|
161
|
-
default: !1
|
|
162
|
-
}
|
|
163
|
-
}, {
|
|
164
|
-
compareType: {
|
|
165
|
-
type: String,
|
|
166
|
-
default: G.PRECEDING_PERIOD
|
|
167
|
-
},
|
|
168
|
-
compareTypeModifiers: {},
|
|
169
|
-
dateRange: {
|
|
170
|
-
type: Object,
|
|
171
|
-
default: () => ({
|
|
172
|
-
startDate: void 0,
|
|
173
|
-
endDate: void 0
|
|
174
|
-
})
|
|
175
|
-
},
|
|
176
|
-
dateRangeModifiers: {},
|
|
177
|
-
compareDateRange: {
|
|
178
|
-
type: Object,
|
|
179
|
-
default: () => ({
|
|
180
|
-
startDate: void 0,
|
|
181
|
-
endDate: void 0
|
|
182
|
-
})
|
|
183
|
-
},
|
|
184
|
-
compareDateRangeModifiers: {}
|
|
185
|
-
}),
|
|
186
|
-
emits: /* @__PURE__ */ k(["update", "chip-closed"], ["update:compareType", "update:dateRange", "update:compareDateRange"]),
|
|
187
|
-
setup(e, { emit: t }) {
|
|
188
|
-
var z, I, $, w;
|
|
189
|
-
const { t: n, locale: a } = H(), o = t, l = b(e, "compareType"), m = b(e, "dateRange"), g = b(e, "compareDateRange"), { timezone: i } = K(W()), s = C({
|
|
190
|
-
startDate: m.value.startDate ? (z = r(m.value.startDate)) == null ? void 0 : z.tz(i.value).format(Y) : null,
|
|
191
|
-
endDate: m.value.endDate ? (I = r(m.value.endDate)) == null ? void 0 : I.tz(i.value).format(Y) : null
|
|
192
|
-
}), D = C({
|
|
193
|
-
startDate: g.value.startDate ? ($ = r(g.value.startDate)) == null ? void 0 : $.tz(i.value).format(Y) : null,
|
|
194
|
-
endDate: g.value.endDate ? (w = r(g.value.endDate)) == null ? void 0 : w.tz(i.value).format(Y) : null
|
|
195
|
-
});
|
|
196
|
-
x(
|
|
197
|
-
[() => s.value],
|
|
198
|
-
() => {
|
|
199
|
-
s.value.endDate || (s.value.endDate = s.value.startDate);
|
|
200
|
-
const u = {
|
|
201
|
-
startDate: r.tz(s.value.startDate, i.value).startOf("day").utc().toISOString(),
|
|
202
|
-
endDate: r.tz(s.value.endDate, i.value).endOf("day").utc().toISOString()
|
|
203
|
-
};
|
|
204
|
-
m.value = u, o("update", u);
|
|
205
|
-
},
|
|
206
|
-
{ deep: !0 }
|
|
207
|
-
), x([() => D.value], () => {
|
|
208
|
-
const u = D.value.startDate, d = D.value.endDate, h = u ? r(
|
|
209
|
-
u instanceof Date ? u : r(u).toDate()
|
|
210
|
-
).startOf("day").tz(i.value, !0).toISOString() : void 0, c = d ? r(d instanceof Date ? d : r(d).toDate()).tz(i.value, !0).endOf("day").toISOString() : void 0;
|
|
211
|
-
g.value = {
|
|
212
|
-
startDate: h,
|
|
213
|
-
endDate: c
|
|
214
|
-
};
|
|
215
|
-
});
|
|
216
|
-
function N(u) {
|
|
217
|
-
l.value = u;
|
|
218
|
-
}
|
|
219
|
-
function P(u) {
|
|
220
|
-
o("chip-closed", u);
|
|
221
|
-
}
|
|
222
|
-
return (u, d) => {
|
|
223
|
-
const h = S("FmSimpleDateRangePicker");
|
|
224
|
-
return y(), U("div", _, [
|
|
225
|
-
(y(), p(h, {
|
|
226
|
-
key: `date-picker-${f(a)}`,
|
|
227
|
-
modelValue: s.value,
|
|
228
|
-
"onUpdate:modelValue": d[1] || (d[1] = (c) => s.value = c),
|
|
229
|
-
"show-predefined-range": "",
|
|
230
|
-
"predefined-range": e.datePredefinedRanges.map((c) => ({
|
|
231
|
-
...c,
|
|
232
|
-
label: f(n)(`report.date.${c.label}`)
|
|
233
|
-
})),
|
|
234
|
-
class: "w-2/6"
|
|
235
|
-
}, {
|
|
236
|
-
"trigger-button": T(() => [
|
|
237
|
-
O(V, {
|
|
238
|
-
"left-icon": e.label ? "filter_alt" : "calendar_month",
|
|
239
|
-
label: e.label ?? f(F)({
|
|
240
|
-
startDate: s.value.startDate ?? "",
|
|
241
|
-
endDate: s.value.endDate ?? "",
|
|
242
|
-
locale: f(E)()
|
|
243
|
-
}),
|
|
244
|
-
removable: e.removable,
|
|
245
|
-
onChipClosed: d[0] || (d[0] = (c) => P(!0))
|
|
246
|
-
}, null, 8, ["left-icon", "label", "removable"])
|
|
247
|
-
]),
|
|
248
|
-
_: 1
|
|
249
|
-
}, 8, ["modelValue", "predefined-range"])),
|
|
250
|
-
e.compare ? (y(), p(h, {
|
|
251
|
-
key: `compare-date-picker-${f(a)}`,
|
|
252
|
-
modelValue: D.value,
|
|
253
|
-
"onUpdate:modelValue": d[2] || (d[2] = (c) => D.value = c),
|
|
254
|
-
"compare-type": l.value,
|
|
255
|
-
"onUpdate:compareType": d[3] || (d[3] = (c) => l.value = c),
|
|
256
|
-
"show-predefined-range": "",
|
|
257
|
-
"compare-target": s.value,
|
|
258
|
-
"default-compare-type": l.value,
|
|
259
|
-
onSelectComparison: N
|
|
260
|
-
}, {
|
|
261
|
-
"trigger-button": T(() => [
|
|
262
|
-
O(V, {
|
|
263
|
-
label: `${f(n)("report.common.compare")}: ${f(F)({
|
|
264
|
-
startDate: D.value.startDate ?? null,
|
|
265
|
-
endDate: D.value.endDate ?? null,
|
|
266
|
-
locale: f(E)()
|
|
267
|
-
})}`
|
|
268
|
-
}, null, 8, ["label"])
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
}, 8, ["modelValue", "compare-type", "compare-target", "default-compare-type"])) : R("", !0)
|
|
272
|
-
]);
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
export {
|
|
277
|
-
v as C,
|
|
278
|
-
ue as _,
|
|
279
|
-
V as a,
|
|
280
|
-
F as b,
|
|
281
|
-
de as c,
|
|
282
|
-
le as d,
|
|
283
|
-
L as e,
|
|
284
|
-
oe as f,
|
|
285
|
-
J as g
|
|
286
|
-
};
|