@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.
Files changed (190) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index147.js +253 -250
  3. package/dist/index157.js +204 -191
  4. package/dist/index182.js +14 -14
  5. package/dist/index183.js +3 -3
  6. package/dist/index186.js +4 -4
  7. package/dist/index193.js +10 -10
  8. package/dist/index194.js +7 -0
  9. package/dist/index195.js +10 -10
  10. package/dist/index198.js +17 -17
  11. package/dist/index201.js +28 -28
  12. package/dist/index202.js +2 -2
  13. package/dist/index203.js +2 -2
  14. package/dist/index204.js +1 -1
  15. package/dist/index206.js +2 -2
  16. package/dist/index208.js +14 -14
  17. package/dist/index209.js +1 -1
  18. package/dist/index210.js +1 -1
  19. package/dist/index211.js +3 -3
  20. package/dist/index212.js +6 -6
  21. package/dist/index213.js +84 -29
  22. package/dist/index214.js +400 -109
  23. package/dist/index215.js +22 -36
  24. package/dist/index216.js +33 -26
  25. package/dist/index217.js +111 -31
  26. package/dist/index218.js +35 -50
  27. package/dist/index219.js +26 -43
  28. package/dist/index220.js +35 -3
  29. package/dist/index221.js +51 -9
  30. package/dist/index222.js +42 -18
  31. package/dist/index223.js +4 -10
  32. package/dist/index224.js +9 -10
  33. package/dist/index225.js +18 -38
  34. package/dist/index226.js +10 -21
  35. package/dist/index227.js +10 -88
  36. package/dist/index228.js +35 -403
  37. package/dist/index229.js +21 -22
  38. package/dist/index230.js +159 -159
  39. package/dist/index231.js +228 -20
  40. package/dist/index232.js +36 -19
  41. package/dist/index233.js +10 -22
  42. package/dist/index234.js +129 -167
  43. package/dist/index235.js +19 -69
  44. package/dist/index236.js +20 -34
  45. package/dist/index237.js +21 -39
  46. package/dist/index238.js +194 -156
  47. package/dist/index239.js +66 -224
  48. package/dist/index240.js +34 -37
  49. package/dist/index241.js +39 -9
  50. package/dist/index242.js +21 -126
  51. package/dist/index243.js +21 -37
  52. package/dist/index244.js +20 -80
  53. package/dist/index245.js +836 -20
  54. package/dist/index246.js +701 -19
  55. package/dist/index247.js +175 -19
  56. package/dist/index248.js +11 -11
  57. package/dist/index249.js +20 -253
  58. package/dist/index250.js +21 -7
  59. package/dist/index251.js +20 -138
  60. package/dist/index252.js +20 -83
  61. package/dist/index253.js +3 -22
  62. package/dist/index254.js +186 -21
  63. package/dist/index255.js +132 -19
  64. package/dist/index256.js +1131 -744
  65. package/dist/index257.js +104 -679
  66. package/dist/index258.js +20 -176
  67. package/dist/index259.js +11 -11
  68. package/dist/index260.js +15 -13
  69. package/dist/index261.js +37 -19
  70. package/dist/index262.js +29 -3
  71. package/dist/index263.js +19 -186
  72. package/dist/index264.js +18 -131
  73. package/dist/index265.js +2 -1223
  74. package/dist/index266.js +2 -20
  75. package/dist/index267.js +80 -22
  76. package/dist/index268.js +13 -15
  77. package/dist/index269.js +12 -21
  78. package/dist/index270.js +253 -20
  79. package/dist/index271.js +8 -20
  80. package/dist/index272.js +138 -2
  81. package/dist/index273.js +83 -2
  82. package/dist/index274.js +3706 -51
  83. package/dist/index275.js +58 -77
  84. package/dist/index276.js +83 -26
  85. package/dist/index277.js +52 -22
  86. package/dist/index278.js +215 -22
  87. package/dist/index279.js +9 -15
  88. package/dist/index280.js +55 -15
  89. package/dist/index281.js +59 -21
  90. package/dist/index282.js +39 -3694
  91. package/dist/index283.js +58 -37
  92. package/dist/index284.js +692 -47
  93. package/dist/index285.js +29 -34
  94. package/dist/index286.js +34 -185
  95. package/dist/index287.js +10 -9
  96. package/dist/index288.js +697 -49
  97. package/dist/index289.js +816 -57
  98. package/dist/index290.js +51 -51
  99. package/dist/index291.js +76 -78
  100. package/dist/index292.js +25 -727
  101. package/dist/index293.js +22 -47
  102. package/dist/index294.js +22 -64
  103. package/dist/index295.js +15 -10
  104. package/dist/index296.js +16 -704
  105. package/dist/index297.js +23 -820
  106. package/dist/index301.js +74 -230
  107. package/dist/index302.js +21 -5
  108. package/dist/index303.js +925 -124
  109. package/dist/index304.js +21 -67
  110. package/dist/index305.js +18 -85
  111. package/dist/index306.js +19 -28
  112. package/dist/index307.js +67 -7
  113. package/dist/index308.js +19 -75
  114. package/dist/index309.js +19 -4
  115. package/dist/index310.js +22 -2
  116. package/dist/index311.js +21 -82
  117. package/dist/index312.js +62 -53
  118. package/dist/index313.js +1533 -5
  119. package/dist/index314.js +385 -4
  120. package/dist/index315.js +2700 -148
  121. package/dist/index316.js +83 -60
  122. package/dist/index317.js +3798 -75
  123. package/dist/index318.js +56 -75
  124. package/dist/index319.js +15 -22
  125. package/dist/index320.js +72 -923
  126. package/dist/index321.js +202 -22
  127. package/dist/index322.js +246 -20
  128. package/dist/index323.js +36 -19
  129. package/dist/index324.js +233 -67
  130. package/dist/index325.js +6 -19
  131. package/dist/index326.js +133 -18
  132. package/dist/index327.js +67 -21
  133. package/dist/index328.js +85 -20
  134. package/dist/index329.js +29 -63
  135. package/dist/index330.js +7 -35
  136. package/dist/index331.js +64 -1523
  137. package/dist/index332.js +3 -385
  138. package/dist/index333.js +2 -2731
  139. package/dist/index334.js +77 -80
  140. package/dist/index335.js +53 -3797
  141. package/dist/index336.js +4 -58
  142. package/dist/index337.js +5 -15
  143. package/dist/index338.js +166 -71
  144. package/dist/index339.js +57 -196
  145. package/dist/index340.js +75 -246
  146. package/dist/index343.js +1 -1
  147. package/dist/index348.js +1 -1
  148. package/dist/index353.js +2 -2
  149. package/dist/index357.js +2 -2
  150. package/dist/index358.js +1 -1
  151. package/dist/index364.js +19 -20
  152. package/dist/index365.js +19 -55
  153. package/dist/index366.js +63 -28
  154. package/dist/index367.js +37 -7
  155. package/dist/index368.js +18 -49
  156. package/dist/index369.js +56 -6
  157. package/dist/index370.js +27 -10
  158. package/dist/index371.js +7 -7
  159. package/dist/index372.js +51 -27
  160. package/dist/index373.js +6 -2
  161. package/dist/index374.js +11 -69
  162. package/dist/index375.js +6 -166
  163. package/dist/index376.js +28 -20
  164. package/dist/index377.js +2 -20
  165. package/dist/index378.js +67 -61
  166. package/dist/index379.js +166 -36
  167. package/dist/index380.js +17 -31
  168. package/dist/index381.js +100 -10
  169. package/dist/index382.js +90 -3
  170. package/dist/index383.js +98 -4
  171. package/dist/index386.js +30 -11
  172. package/dist/index387.js +10 -4
  173. package/dist/index388.js +4 -33
  174. package/dist/index389.js +4 -31
  175. package/dist/index390.js +12 -28
  176. package/dist/index391.js +5 -61
  177. package/dist/index392.js +33 -17
  178. package/dist/index393.js +29 -99
  179. package/dist/index394.js +28 -91
  180. package/dist/index395.js +59 -96
  181. package/dist/index396.js +1 -1
  182. package/dist/index401.js +1 -1
  183. package/dist/index402.js +2 -2
  184. package/dist/index45.js +9 -7
  185. package/dist/index50.js +2 -2
  186. package/dist/index98.js +101 -29
  187. package/dist/src/components/date-picker/date-picker.d.ts +33 -0
  188. package/dist/src/components/date-picker/date-picker.stories.d.ts +108 -0
  189. package/dist/src/components/room-details-popover/room-details-popover.d.ts +37 -12
  190. package/package.json +1 -1
package/dist/index395.js CHANGED
@@ -1,100 +1,63 @@
1
- var l = 200, p = function() {
2
- };
3
- p.prototype.append = function(t) {
4
- return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
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
- h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
37
- var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
38
- return t.prototype.flatten = function() {
39
- return this.values;
40
- }, t.prototype.sliceInner = function(n, i) {
41
- return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
42
- }, t.prototype.getInner = function(n) {
43
- return this.values[n];
44
- }, t.prototype.forEachInner = function(n, i, s, f) {
45
- for (var a = i; a < s; a++)
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
- return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
70
- return this.left.flatten().concat(this.right.flatten());
71
- }, t.prototype.getInner = function(e) {
72
- return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
73
- }, t.prototype.forEachInner = function(e, n, i, s) {
74
- var f = this.left.length;
75
- if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
76
- return !1;
77
- }, t.prototype.forEachInvertedInner = function(e, n, i, s) {
78
- var f = this.left.length;
79
- if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
80
- return !1;
81
- }, t.prototype.sliceInner = function(e, n) {
82
- if (e == 0 && n == this.length)
83
- return this;
84
- var i = this.left.length;
85
- return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
86
- }, t.prototype.leafAppend = function(e) {
87
- var n = this.right.leafAppend(e);
88
- if (n)
89
- return new t(this.left, n);
90
- }, t.prototype.leafPrepend = function(e) {
91
- var n = this.left.leafPrepend(e);
92
- if (n)
93
- return new t(n, this.right);
94
- }, t.prototype.appendInner = function(e) {
95
- return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
96
- }, t;
97
- })(p);
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
- p as default
60
+ w as readBytes,
61
+ f as streamChunk,
62
+ h as trackStream
100
63
  };
package/dist/index396.js CHANGED
@@ -1,4 +1,4 @@
1
- import a from "./index380.js";
1
+ import a from "./index386.js";
2
2
  const e = typeof URLSearchParams < "u" ? URLSearchParams : a;
3
3
  export {
4
4
  e as default
package/dist/index401.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index371.js";
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
@@ -1,5 +1,5 @@
1
- import n from "./index301.js";
2
- import d from "./index371.js";
1
+ import n from "./index324.js";
2
+ import d from "./index375.js";
3
3
  const p = d.hasStandardBrowserEnv ? (
4
4
  // Standard browser envs support document.cookie
5
5
  {
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"], F = { key: 0 }, Z = { 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 = {
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" }, Fe = { class: "flex items-center gap-2" }, Ze = {
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", F, a(e.greenerStayTooltipContent), 1)) : e.cleanliness === "DIRTY" ? (s(), i("div", Z, a(e.$t("HC_DIRTY")), 1)) : t("", !0)
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", Fe, [
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", Ze, "...")) : (s(), i(h, { key: 1 }, [
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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3707afec"]]);
5
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-54869b04"]]);
6
6
  export {
7
- p as default
7
+ e as default
8
8
  };
package/dist/index98.js CHANGED
@@ -1,15 +1,55 @@
1
- import { defineComponent as g, ref as l, computed as n, watch as f, nextTick as w, onUnmounted as v } from "vue";
2
- import D from "./index186.js";
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 A = g({
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: D
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(t) {
99
- const i = l("bottom"), c = l(), d = l(!1), o = l(t.modelValue || ""), m = n(() => t.disabledAfterToday ? s : t.disabledBeforeToday ? u : t.disabledDate), y = n(() => t.required && !t.floatingLabel && !o.value), p = n(() => t.floatingLabel), b = n(() => t.floatingLabel && (!!o.value || d.value)), s = (e) => e > /* @__PURE__ */ new Date(), u = (e) => {
100
- const r = /* @__PURE__ */ new Date();
101
- return r.setHours(0, 0, 0, 0), e < r;
102
- }, a = () => {
103
- const e = document.querySelector(".mx-datepicker-main");
104
- e && (i.value = parseInt(e.style.top) < 0 ? "top" : "bottom");
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 f(() => t.modelValue, (e) => {
107
- o.value = e || "";
108
- }), f(d, async (e) => {
109
- e ? window.addEventListener("scroll", a) : window.removeEventListener("scroll", a), await w(), a();
110
- }), v(() => {
111
- window.removeEventListener("scroll", a);
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: i,
115
- datePicker: c,
116
- isOpen: d,
117
- value: o,
186
+ calendarPosition: t,
187
+ datePicker: n,
188
+ isOpen: o,
189
+ value: r,
118
190
  // Computed
119
- disabledDates: m,
120
- showCustomPlaceholder: y,
121
- showFloatingLabel: p,
122
- isLabelFloated: b,
191
+ disabledDates: i,
192
+ showCustomPlaceholder: f,
193
+ showFloatingLabel: y,
194
+ isLabelFloated: S,
123
195
  // Methods
124
- disableDatesAfterToday: s,
125
- disableDatesBeforeToday: u,
126
- getCalendarPosition: a
196
+ disableDatesAfterToday: b,
197
+ disableDatesBeforeToday: p,
198
+ getCalendarPosition: l
127
199
  };
128
200
  }
129
201
  });
130
202
  export {
131
- A as default
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> & {