@quoreadmin/ui 1.10.31 → 1.10.33
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/index.css +1 -1
- package/dist/index147.js +253 -250
- package/dist/index157.js +204 -191
- package/dist/index182.js +14 -14
- package/dist/index183.js +3 -3
- package/dist/index186.js +4 -4
- package/dist/index193.js +10 -10
- package/dist/index194.js +7 -0
- package/dist/index195.js +10 -10
- package/dist/index198.js +17 -17
- package/dist/index201.js +28 -28
- package/dist/index202.js +2 -2
- package/dist/index203.js +2 -2
- package/dist/index204.js +1 -1
- package/dist/index206.js +2 -2
- package/dist/index208.js +14 -14
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +3 -3
- package/dist/index212.js +6 -6
- package/dist/index213.js +84 -29
- package/dist/index214.js +400 -109
- package/dist/index215.js +22 -36
- package/dist/index216.js +33 -26
- package/dist/index217.js +111 -31
- package/dist/index218.js +35 -50
- package/dist/index219.js +26 -43
- package/dist/index220.js +35 -3
- package/dist/index221.js +51 -9
- package/dist/index222.js +42 -18
- package/dist/index223.js +4 -10
- package/dist/index224.js +9 -10
- package/dist/index225.js +18 -38
- package/dist/index226.js +10 -21
- package/dist/index227.js +10 -88
- package/dist/index228.js +35 -403
- package/dist/index229.js +21 -22
- package/dist/index230.js +159 -159
- package/dist/index231.js +228 -20
- package/dist/index232.js +36 -19
- package/dist/index233.js +10 -22
- package/dist/index234.js +129 -167
- package/dist/index235.js +19 -69
- package/dist/index236.js +20 -34
- package/dist/index237.js +21 -39
- package/dist/index238.js +194 -156
- package/dist/index239.js +66 -224
- package/dist/index240.js +34 -37
- package/dist/index241.js +39 -9
- package/dist/index242.js +21 -126
- package/dist/index243.js +21 -37
- package/dist/index244.js +20 -80
- package/dist/index245.js +836 -20
- package/dist/index246.js +701 -19
- package/dist/index247.js +175 -19
- package/dist/index248.js +11 -11
- package/dist/index249.js +20 -253
- package/dist/index250.js +21 -7
- package/dist/index251.js +20 -138
- package/dist/index252.js +20 -83
- package/dist/index253.js +3 -22
- package/dist/index254.js +186 -21
- package/dist/index255.js +132 -19
- package/dist/index256.js +1131 -744
- package/dist/index257.js +104 -679
- package/dist/index258.js +20 -176
- package/dist/index259.js +11 -11
- package/dist/index260.js +15 -13
- package/dist/index261.js +37 -19
- package/dist/index262.js +29 -3
- package/dist/index263.js +19 -186
- package/dist/index264.js +18 -131
- package/dist/index265.js +2 -1223
- package/dist/index266.js +2 -20
- package/dist/index267.js +80 -22
- package/dist/index268.js +13 -15
- package/dist/index269.js +12 -21
- package/dist/index270.js +253 -20
- package/dist/index271.js +8 -20
- package/dist/index272.js +138 -2
- package/dist/index273.js +83 -2
- package/dist/index274.js +3706 -51
- package/dist/index275.js +58 -77
- package/dist/index276.js +83 -26
- package/dist/index277.js +52 -22
- package/dist/index278.js +215 -22
- package/dist/index279.js +9 -15
- package/dist/index280.js +55 -15
- package/dist/index281.js +59 -21
- package/dist/index282.js +39 -3694
- package/dist/index283.js +58 -37
- package/dist/index284.js +692 -47
- package/dist/index285.js +29 -34
- package/dist/index286.js +34 -185
- package/dist/index287.js +10 -9
- package/dist/index288.js +697 -49
- package/dist/index289.js +816 -57
- package/dist/index290.js +51 -51
- package/dist/index291.js +76 -78
- package/dist/index292.js +25 -727
- package/dist/index293.js +22 -47
- package/dist/index294.js +22 -64
- package/dist/index295.js +15 -10
- package/dist/index296.js +16 -704
- package/dist/index297.js +23 -820
- package/dist/index301.js +74 -230
- package/dist/index302.js +21 -5
- package/dist/index303.js +925 -124
- package/dist/index304.js +21 -67
- package/dist/index305.js +18 -85
- package/dist/index306.js +19 -28
- package/dist/index307.js +67 -7
- package/dist/index308.js +19 -75
- package/dist/index309.js +19 -4
- package/dist/index310.js +22 -2
- package/dist/index311.js +21 -82
- package/dist/index312.js +62 -53
- package/dist/index313.js +1533 -5
- package/dist/index314.js +385 -4
- package/dist/index315.js +2700 -148
- package/dist/index316.js +83 -60
- package/dist/index317.js +3798 -75
- package/dist/index318.js +56 -75
- package/dist/index319.js +15 -22
- package/dist/index320.js +72 -923
- package/dist/index321.js +202 -22
- package/dist/index322.js +246 -20
- package/dist/index323.js +36 -19
- package/dist/index324.js +233 -67
- package/dist/index325.js +6 -19
- package/dist/index326.js +133 -18
- package/dist/index327.js +67 -21
- package/dist/index328.js +85 -20
- package/dist/index329.js +29 -63
- package/dist/index330.js +7 -35
- package/dist/index331.js +64 -1523
- package/dist/index332.js +3 -385
- package/dist/index333.js +2 -2731
- package/dist/index334.js +77 -80
- package/dist/index335.js +53 -3797
- package/dist/index336.js +4 -58
- package/dist/index337.js +5 -15
- package/dist/index338.js +166 -71
- package/dist/index339.js +57 -196
- package/dist/index340.js +75 -246
- package/dist/index343.js +1 -1
- package/dist/index348.js +1 -1
- package/dist/index353.js +2 -2
- package/dist/index357.js +2 -2
- package/dist/index358.js +1 -1
- package/dist/index364.js +19 -20
- package/dist/index365.js +19 -55
- package/dist/index366.js +63 -28
- package/dist/index367.js +37 -7
- package/dist/index368.js +18 -49
- package/dist/index369.js +56 -6
- package/dist/index370.js +27 -10
- package/dist/index371.js +7 -7
- package/dist/index372.js +51 -27
- package/dist/index373.js +6 -2
- package/dist/index374.js +11 -69
- package/dist/index375.js +6 -166
- package/dist/index376.js +28 -20
- package/dist/index377.js +2 -20
- package/dist/index378.js +67 -61
- package/dist/index379.js +166 -36
- package/dist/index380.js +17 -31
- package/dist/index381.js +100 -10
- package/dist/index382.js +90 -3
- package/dist/index383.js +98 -4
- package/dist/index386.js +30 -11
- package/dist/index387.js +10 -4
- package/dist/index388.js +4 -33
- package/dist/index389.js +4 -31
- package/dist/index390.js +12 -28
- package/dist/index391.js +5 -61
- package/dist/index392.js +33 -17
- package/dist/index393.js +29 -99
- package/dist/index394.js +28 -91
- package/dist/index395.js +59 -96
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index45.js +9 -7
- package/dist/index50.js +2 -2
- package/dist/index98.js +101 -29
- package/dist/src/components/date-picker/date-picker.d.ts +33 -0
- package/dist/src/components/date-picker/date-picker.stories.d.ts +108 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +37 -12
- package/package.json +1 -1
package/dist/index395.js
CHANGED
|
@@ -1,100 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
p.prototype.prepend = function(t) {
|
|
7
|
-
return t.length ? p.from(t).append(this) : this;
|
|
8
|
-
};
|
|
9
|
-
p.prototype.appendInner = function(t) {
|
|
10
|
-
return new u(this, t);
|
|
11
|
-
};
|
|
12
|
-
p.prototype.slice = function(t, r) {
|
|
13
|
-
return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
|
|
14
|
-
};
|
|
15
|
-
p.prototype.get = function(t) {
|
|
16
|
-
if (!(t < 0 || t >= this.length))
|
|
17
|
-
return this.getInner(t);
|
|
18
|
-
};
|
|
19
|
-
p.prototype.forEach = function(t, r, e) {
|
|
20
|
-
r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
|
|
21
|
-
};
|
|
22
|
-
p.prototype.map = function(t, r, e) {
|
|
23
|
-
r === void 0 && (r = 0), e === void 0 && (e = this.length);
|
|
24
|
-
var n = [];
|
|
25
|
-
return this.forEach(function(i, s) {
|
|
26
|
-
return n.push(t(i, s));
|
|
27
|
-
}, r, e), n;
|
|
28
|
-
};
|
|
29
|
-
p.from = function(t) {
|
|
30
|
-
return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
|
|
31
|
-
};
|
|
32
|
-
var o = /* @__PURE__ */ (function(h) {
|
|
33
|
-
function t(e) {
|
|
34
|
-
h.call(this), this.values = e;
|
|
1
|
+
const f = function* (e, t) {
|
|
2
|
+
let n = e.byteLength;
|
|
3
|
+
if (n < t) {
|
|
4
|
+
yield e;
|
|
5
|
+
return;
|
|
35
6
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (n(this.values[a], f + a) === !1)
|
|
47
|
-
return !1;
|
|
48
|
-
}, t.prototype.forEachInvertedInner = function(n, i, s, f) {
|
|
49
|
-
for (var a = i - 1; a >= s; a--)
|
|
50
|
-
if (n(this.values[a], f + a) === !1)
|
|
51
|
-
return !1;
|
|
52
|
-
}, t.prototype.leafAppend = function(n) {
|
|
53
|
-
if (this.length + n.length <= l)
|
|
54
|
-
return new t(this.values.concat(n.flatten()));
|
|
55
|
-
}, t.prototype.leafPrepend = function(n) {
|
|
56
|
-
if (this.length + n.length <= l)
|
|
57
|
-
return new t(n.flatten().concat(this.values));
|
|
58
|
-
}, r.length.get = function() {
|
|
59
|
-
return this.values.length;
|
|
60
|
-
}, r.depth.get = function() {
|
|
61
|
-
return 0;
|
|
62
|
-
}, Object.defineProperties(t.prototype, r), t;
|
|
63
|
-
})(p);
|
|
64
|
-
p.empty = new o([]);
|
|
65
|
-
var u = /* @__PURE__ */ (function(h) {
|
|
66
|
-
function t(r, e) {
|
|
67
|
-
h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
|
|
7
|
+
let a = 0, r;
|
|
8
|
+
for (; a < n; )
|
|
9
|
+
r = a + t, yield e.slice(a, r), a = r;
|
|
10
|
+
}, w = async function* (e, t) {
|
|
11
|
+
for await (const n of b(e))
|
|
12
|
+
yield* f(n, t);
|
|
13
|
+
}, b = async function* (e) {
|
|
14
|
+
if (e[Symbol.asyncIterator]) {
|
|
15
|
+
yield* e;
|
|
16
|
+
return;
|
|
68
17
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
18
|
+
const t = e.getReader();
|
|
19
|
+
try {
|
|
20
|
+
for (; ; ) {
|
|
21
|
+
const { done: n, value: a } = await t.read();
|
|
22
|
+
if (n)
|
|
23
|
+
break;
|
|
24
|
+
yield a;
|
|
25
|
+
}
|
|
26
|
+
} finally {
|
|
27
|
+
await t.cancel();
|
|
28
|
+
}
|
|
29
|
+
}, h = (e, t, n, a) => {
|
|
30
|
+
const r = w(e, t);
|
|
31
|
+
let d = 0, o, c = (l) => {
|
|
32
|
+
o || (o = !0, a && a(l));
|
|
33
|
+
};
|
|
34
|
+
return new ReadableStream({
|
|
35
|
+
async pull(l) {
|
|
36
|
+
try {
|
|
37
|
+
const { done: i, value: y } = await r.next();
|
|
38
|
+
if (i) {
|
|
39
|
+
c(), l.close();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let s = y.byteLength;
|
|
43
|
+
if (n) {
|
|
44
|
+
let u = d += s;
|
|
45
|
+
n(u);
|
|
46
|
+
}
|
|
47
|
+
l.enqueue(new Uint8Array(y));
|
|
48
|
+
} catch (i) {
|
|
49
|
+
throw c(i), i;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
cancel(l) {
|
|
53
|
+
return c(l), r.return();
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
highWaterMark: 2
|
|
57
|
+
});
|
|
58
|
+
};
|
|
98
59
|
export {
|
|
99
|
-
|
|
60
|
+
w as readBytes,
|
|
61
|
+
f as streamChunk,
|
|
62
|
+
h as trackStream
|
|
100
63
|
};
|
package/dist/index396.js
CHANGED
package/dist/index401.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./index375.js";
|
|
2
2
|
const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
3
3
|
new URL(o.origin),
|
|
4
4
|
o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
|
package/dist/index402.js
CHANGED
package/dist/index45.js
CHANGED
|
@@ -8,7 +8,7 @@ const L = ["id"], z = ["id"], Y = ["id"], P = { class: "flex gap-3" }, B = {
|
|
|
8
8
|
}, K = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "text-base text-inkwell-30"
|
|
11
|
-
}, W = { key: 0 }, j = ["src", "alt"],
|
|
11
|
+
}, W = { key: 0 }, j = ["src", "alt"], Z = { key: 0 }, F = { key: 1 }, Q = ["href"], J = { class: "flex items-start" }, X = { class: "list-unstyled text-sm w-full font-normal" }, _ = { class: "grow" }, x = { class: "grow" }, ee = { class: "grow" }, oe = { class: "grow" }, le = { class: "position-relative icon-container ml-auto" }, se = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "animate-shimmer bg-gray-10 w-full h-4 my-4"
|
|
14
14
|
}, ie = {
|
|
@@ -77,7 +77,7 @@ const L = ["id"], z = ["id"], Y = ["id"], P = { class: "flex gap-3" }, B = {
|
|
|
77
77
|
}, Pe = {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "simulate-panel"
|
|
80
|
-
}, Be = { class: "simulate-panel-header" }, Ke = { class: "simulate-panel-body" }, We = { class: "flex justify-end mt-2" }, je = { class: "chat-input-area" },
|
|
80
|
+
}, Be = { class: "simulate-panel-header" }, Ke = { class: "simulate-panel-body" }, We = { class: "flex justify-end mt-2" }, je = { class: "chat-input-area" }, Ze = { class: "flex items-center gap-2" }, Fe = {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "inline-block animate-pulse"
|
|
83
83
|
}, Qe = { class: "relative flex-1 min-w-0" }, Je = ["innerHTML"], Xe = { class: "flex items-center add-ticket-divider" }, _e = { class: "grow flex items-center text-sm font-normal" }, xe = {
|
|
@@ -285,7 +285,7 @@ function Ro(e, l, Go, Lo, zo, Yo) {
|
|
|
285
285
|
})) : t("", !0)
|
|
286
286
|
]),
|
|
287
287
|
content: d(() => [
|
|
288
|
-
e.isGreenerStay ? (s(), i("div",
|
|
288
|
+
e.isGreenerStay ? (s(), i("div", Z, a(e.greenerStayTooltipContent), 1)) : e.cleanliness === "DIRTY" ? (s(), i("div", F, a(e.$t("HC_DIRTY")), 1)) : t("", !0)
|
|
289
289
|
]),
|
|
290
290
|
_: 1
|
|
291
291
|
})) : t("", !0),
|
|
@@ -810,7 +810,7 @@ function Ro(e, l, Go, Lo, zo, Yo) {
|
|
|
810
810
|
])
|
|
811
811
|
])) : t("", !0),
|
|
812
812
|
n("div", je, [
|
|
813
|
-
n("div",
|
|
813
|
+
n("div", Ze, [
|
|
814
814
|
e.messages.length > 0 ? (s(), i("div", {
|
|
815
815
|
key: 0,
|
|
816
816
|
class: u([
|
|
@@ -821,7 +821,7 @@ function Ro(e, l, Go, Lo, zo, Yo) {
|
|
|
821
821
|
]),
|
|
822
822
|
onClick: l[18] || (l[18] = (o) => !e.loading.conversationToggle && e.toggleMarkOpenClose())
|
|
823
823
|
}, [
|
|
824
|
-
e.loading.conversationToggle ? (s(), i("span",
|
|
824
|
+
e.loading.conversationToggle ? (s(), i("span", Fe, "...")) : (s(), i(h, { key: 1 }, [
|
|
825
825
|
k(a(e.$t(
|
|
826
826
|
e.isConversationOpen ? "HC_CLOSE" : "HC_OPEN"
|
|
827
827
|
)), 1)
|
|
@@ -981,10 +981,11 @@ function Ro(e, l, Go, Lo, zo, Yo) {
|
|
|
981
981
|
"model-value": e.roomNotice.startTime,
|
|
982
982
|
placeholder: e.$t("HC_START_TIME"),
|
|
983
983
|
step: 15,
|
|
984
|
+
timezone: e.propertyTimeZone,
|
|
984
985
|
clearable: "",
|
|
985
986
|
"show-now": "",
|
|
986
987
|
"onUpdate:modelValue": l[26] || (l[26] = (o) => e.roomNotice.startTime = o)
|
|
987
|
-
}, null, 8, ["model-value", "placeholder"])
|
|
988
|
+
}, null, 8, ["model-value", "placeholder", "timezone"])
|
|
988
989
|
])) : t("", !0),
|
|
989
990
|
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", ro, [
|
|
990
991
|
r(H, {
|
|
@@ -992,9 +993,10 @@ function Ro(e, l, Go, Lo, zo, Yo) {
|
|
|
992
993
|
"model-value": e.roomNotice.endTime,
|
|
993
994
|
placeholder: e.$t("HC_END_TIME"),
|
|
994
995
|
step: 15,
|
|
996
|
+
timezone: e.propertyTimeZone,
|
|
995
997
|
clearable: "",
|
|
996
998
|
"onUpdate:modelValue": l[27] || (l[27] = (o) => e.roomNotice.endTime = o)
|
|
997
|
-
}, null, 8, ["model-value", "placeholder"])
|
|
999
|
+
}, null, 8, ["model-value", "placeholder", "timezone"])
|
|
998
1000
|
])) : t("", !0),
|
|
999
1001
|
e.requestType && e.requestType.id === "room_notice" && e.roomNotice.issue ? (s(), i("div", no, [
|
|
1000
1002
|
r(v, {
|
package/dist/index50.js
CHANGED
|
@@ -2,7 +2,7 @@ import o from "./index157.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import r from "./index65.js";
|
|
5
|
-
const
|
|
5
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-54869b04"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
e as default
|
|
8
8
|
};
|
package/dist/index98.js
CHANGED
|
@@ -1,15 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as w, ref as s, computed as m, watch as D, nextTick as h, onUnmounted as N } from "vue";
|
|
2
|
+
import v from "./index186.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import "./index188.js";
|
|
5
5
|
import "./index189.js";
|
|
6
6
|
import "./index190.js";
|
|
7
7
|
import "./index191.js";
|
|
8
8
|
import "./index192.js";
|
|
9
|
-
const
|
|
9
|
+
const B = (e) => {
|
|
10
|
+
if (!e || typeof e != "string") return;
|
|
11
|
+
const t = e.trim();
|
|
12
|
+
if (t)
|
|
13
|
+
try {
|
|
14
|
+
return new Intl.DateTimeFormat("en-US", { timeZone: t }).format(/* @__PURE__ */ new Date()), t;
|
|
15
|
+
} catch {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
}, L = (e, t) => {
|
|
19
|
+
const n = B(t), r = new Intl.DateTimeFormat("sv-SE", {
|
|
20
|
+
year: "numeric",
|
|
21
|
+
month: "2-digit",
|
|
22
|
+
day: "2-digit",
|
|
23
|
+
...n ? { timeZone: n } : {}
|
|
24
|
+
}).formatToParts(e), i = (f) => r.find((y) => y.type === f)?.value ?? "";
|
|
25
|
+
return {
|
|
26
|
+
year: Number(i("year")),
|
|
27
|
+
month: Number(i("month")),
|
|
28
|
+
day: Number(i("day"))
|
|
29
|
+
};
|
|
30
|
+
}, c = (e, t) => {
|
|
31
|
+
const { year: n, month: o, day: r } = L(e, t);
|
|
32
|
+
return `${n}-${String(o).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
|
|
33
|
+
}, P = (e) => {
|
|
34
|
+
if (!e) return null;
|
|
35
|
+
if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
|
|
36
|
+
const t = e.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
37
|
+
if (t)
|
|
38
|
+
return new Date(
|
|
39
|
+
Number(t[1]),
|
|
40
|
+
Number(t[2]) - 1,
|
|
41
|
+
Number(t[3]),
|
|
42
|
+
12,
|
|
43
|
+
0,
|
|
44
|
+
0,
|
|
45
|
+
0
|
|
46
|
+
);
|
|
47
|
+
const n = new Date(e);
|
|
48
|
+
return Number.isNaN(n.getTime()) ? null : n;
|
|
49
|
+
}, E = w({
|
|
10
50
|
name: "QDatePicker",
|
|
11
51
|
components: {
|
|
12
|
-
DatePicker:
|
|
52
|
+
DatePicker: v
|
|
13
53
|
},
|
|
14
54
|
props: {
|
|
15
55
|
/** Id for this specific date picker */
|
|
@@ -43,11 +83,26 @@ const A = g({
|
|
|
43
83
|
type: Boolean,
|
|
44
84
|
default: !1
|
|
45
85
|
},
|
|
86
|
+
/** Disable dates before the property's current calendar day */
|
|
87
|
+
isTodayMin: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
},
|
|
46
91
|
/** Disable all dates after today's date */
|
|
47
92
|
disabledAfterToday: {
|
|
48
93
|
type: Boolean,
|
|
49
94
|
default: !1
|
|
50
95
|
},
|
|
96
|
+
/** Minimum allowed date, compared as a calendar day in `propertyTimezone` when provided */
|
|
97
|
+
minimumDate: {
|
|
98
|
+
type: [Date, String],
|
|
99
|
+
default: null
|
|
100
|
+
},
|
|
101
|
+
/** IANA timezone used for date-only comparisons such as `isTodayMin` / `minimumDate` */
|
|
102
|
+
propertyTimezone: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: ""
|
|
105
|
+
},
|
|
51
106
|
/** Date format for the date picker */
|
|
52
107
|
format: {
|
|
53
108
|
type: String,
|
|
@@ -95,38 +150,55 @@ const A = g({
|
|
|
95
150
|
}
|
|
96
151
|
},
|
|
97
152
|
emits: ["update:modelValue"],
|
|
98
|
-
setup(
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
153
|
+
setup(e) {
|
|
154
|
+
const t = s("bottom"), n = s(), o = s(!1), r = s(e.modelValue || ""), i = m(() => {
|
|
155
|
+
const a = P(e.minimumDate), d = typeof e.disabledDate == "function";
|
|
156
|
+
return (u) => {
|
|
157
|
+
if (e.disabledAfterToday && b(u) || e.disabledBeforeToday && p(u))
|
|
158
|
+
return !0;
|
|
159
|
+
if (e.isTodayMin) {
|
|
160
|
+
const g = c(/* @__PURE__ */ new Date(), e.propertyTimezone);
|
|
161
|
+
if (c(u, e.propertyTimezone) < g)
|
|
162
|
+
return !0;
|
|
163
|
+
}
|
|
164
|
+
if (a) {
|
|
165
|
+
const g = c(a, e.propertyTimezone);
|
|
166
|
+
if (c(u, e.propertyTimezone) < g)
|
|
167
|
+
return !0;
|
|
168
|
+
}
|
|
169
|
+
return d ? e.disabledDate(u) : !1;
|
|
170
|
+
};
|
|
171
|
+
}), f = m(() => e.required && !e.floatingLabel && !r.value), y = m(() => e.floatingLabel), S = m(() => e.floatingLabel && (!!r.value || o.value)), b = (a) => a > /* @__PURE__ */ new Date(), p = (a) => {
|
|
172
|
+
const d = /* @__PURE__ */ new Date();
|
|
173
|
+
return d.setHours(0, 0, 0, 0), a < d;
|
|
174
|
+
}, l = () => {
|
|
175
|
+
const a = document.querySelector(".mx-datepicker-main");
|
|
176
|
+
a && (t.value = parseInt(a.style.top) < 0 ? "top" : "bottom");
|
|
105
177
|
};
|
|
106
|
-
return
|
|
107
|
-
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
}),
|
|
111
|
-
window.removeEventListener("scroll",
|
|
178
|
+
return D(() => e.modelValue, (a) => {
|
|
179
|
+
r.value = a || "";
|
|
180
|
+
}), D(o, async (a) => {
|
|
181
|
+
a ? window.addEventListener("scroll", l) : window.removeEventListener("scroll", l), await h(), l();
|
|
182
|
+
}), N(() => {
|
|
183
|
+
window.removeEventListener("scroll", l);
|
|
112
184
|
}), {
|
|
113
185
|
// Refs
|
|
114
|
-
calendarPosition:
|
|
115
|
-
datePicker:
|
|
116
|
-
isOpen:
|
|
117
|
-
value:
|
|
186
|
+
calendarPosition: t,
|
|
187
|
+
datePicker: n,
|
|
188
|
+
isOpen: o,
|
|
189
|
+
value: r,
|
|
118
190
|
// Computed
|
|
119
|
-
disabledDates:
|
|
120
|
-
showCustomPlaceholder:
|
|
121
|
-
showFloatingLabel:
|
|
122
|
-
isLabelFloated:
|
|
191
|
+
disabledDates: i,
|
|
192
|
+
showCustomPlaceholder: f,
|
|
193
|
+
showFloatingLabel: y,
|
|
194
|
+
isLabelFloated: S,
|
|
123
195
|
// Methods
|
|
124
|
-
disableDatesAfterToday:
|
|
125
|
-
disableDatesBeforeToday:
|
|
126
|
-
getCalendarPosition:
|
|
196
|
+
disableDatesAfterToday: b,
|
|
197
|
+
disableDatesBeforeToday: p,
|
|
198
|
+
getCalendarPosition: l
|
|
127
199
|
};
|
|
128
200
|
}
|
|
129
201
|
});
|
|
130
202
|
export {
|
|
131
|
-
|
|
203
|
+
E as default
|
|
132
204
|
};
|
|
@@ -42,11 +42,26 @@ declare const QDatePicker: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
42
42
|
type: BooleanConstructor;
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
|
+
/** Disable dates before the property's current calendar day */
|
|
46
|
+
isTodayMin: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
45
50
|
/** Disable all dates after today's date */
|
|
46
51
|
disabledAfterToday: {
|
|
47
52
|
type: BooleanConstructor;
|
|
48
53
|
default: boolean;
|
|
49
54
|
};
|
|
55
|
+
/** Minimum allowed date, compared as a calendar day in `propertyTimezone` when provided */
|
|
56
|
+
minimumDate: {
|
|
57
|
+
type: (StringConstructor | DateConstructor)[];
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
/** IANA timezone used for date-only comparisons such as `isTodayMin` / `minimumDate` */
|
|
61
|
+
propertyTimezone: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
50
65
|
/** Date format for the date picker */
|
|
51
66
|
format: {
|
|
52
67
|
type: StringConstructor;
|
|
@@ -144,11 +159,26 @@ declare const QDatePicker: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
144
159
|
type: BooleanConstructor;
|
|
145
160
|
default: boolean;
|
|
146
161
|
};
|
|
162
|
+
/** Disable dates before the property's current calendar day */
|
|
163
|
+
isTodayMin: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
147
167
|
/** Disable all dates after today's date */
|
|
148
168
|
disabledAfterToday: {
|
|
149
169
|
type: BooleanConstructor;
|
|
150
170
|
default: boolean;
|
|
151
171
|
};
|
|
172
|
+
/** Minimum allowed date, compared as a calendar day in `propertyTimezone` when provided */
|
|
173
|
+
minimumDate: {
|
|
174
|
+
type: (StringConstructor | DateConstructor)[];
|
|
175
|
+
default: null;
|
|
176
|
+
};
|
|
177
|
+
/** IANA timezone used for date-only comparisons such as `isTodayMin` / `minimumDate` */
|
|
178
|
+
propertyTimezone: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
152
182
|
/** Date format for the date picker */
|
|
153
183
|
format: {
|
|
154
184
|
type: StringConstructor;
|
|
@@ -206,7 +236,10 @@ declare const QDatePicker: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
206
236
|
floatingLabel: boolean;
|
|
207
237
|
clearable: boolean;
|
|
208
238
|
disabledBeforeToday: boolean;
|
|
239
|
+
isTodayMin: boolean;
|
|
209
240
|
disabledAfterToday: boolean;
|
|
241
|
+
minimumDate: string | Date;
|
|
242
|
+
propertyTimezone: string;
|
|
210
243
|
format: string;
|
|
211
244
|
}, {}, {
|
|
212
245
|
DatePicker: import('vue').FunctionalComponent<any, any, any, any> & {
|