@quoreadmin/ui 1.9.1 → 1.9.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/index.css +1 -1
- package/dist/index104.js +2 -2
- package/dist/index110.js +1 -1
- package/dist/index114.js +2 -2
- package/dist/index118.js +3 -3
- package/dist/index132.js +1 -1
- package/dist/index134.js +2 -2
- package/dist/index143.js +338 -329
- package/dist/index145.js +1 -1
- package/dist/index147.js +6 -6
- package/dist/index153.js +156 -153
- package/dist/{index157.js → index158.js} +1 -1
- package/dist/{index160.js → index161.js} +1 -1
- package/dist/{index164.js → index165.js} +9 -9
- package/dist/index168.js +111 -492
- package/dist/index169.js +471 -5498
- package/dist/index170.js +5511 -80
- package/dist/index171.js +86 -856
- package/dist/index172.js +844 -21
- package/dist/index173.js +23 -265
- package/dist/index174.js +256 -126
- package/dist/index175.js +146 -1195
- package/dist/index176.js +1139 -712
- package/dist/index177.js +704 -1240
- package/dist/index178.js +1280 -248
- package/dist/index179.js +266 -96
- package/dist/index180.js +106 -2
- package/dist/index181.js +2 -1376
- package/dist/index182.js +1378 -0
- package/dist/index184.js +12 -12
- package/dist/index185.js +10 -10
- package/dist/index186.js +12 -12
- package/dist/index187.js +14 -21
- package/dist/index188.js +23 -757
- package/dist/index189.js +759 -1144
- package/dist/index190.js +1144 -1234
- package/dist/index191.js +1205 -11248
- package/dist/index192.js +11277 -36
- package/dist/index193.js +36 -44
- package/dist/index194.js +42 -1188
- package/dist/index195.js +1230 -0
- package/dist/index197.js +5830 -99
- package/dist/index198.js +188 -16
- package/dist/index199.js +25 -8
- package/dist/index200.js +16 -76
- package/dist/index201.js +74 -249
- package/dist/index202.js +229 -13660
- package/dist/index203.js +13684 -27
- package/dist/index204.js +26 -62
- package/dist/index205.js +40 -215
- package/dist/index206.js +206 -279
- package/dist/index207.js +281 -265
- package/dist/index208.js +287 -80
- package/dist/index209.js +29 -403
- package/dist/index210.js +116 -22
- package/dist/index211.js +32 -29
- package/dist/index212.js +26 -116
- package/dist/index213.js +31 -31
- package/dist/index214.js +51 -26
- package/dist/index215.js +41 -34
- package/dist/index216.js +3 -50
- package/dist/index217.js +9 -43
- package/dist/index218.js +18 -3
- package/dist/index219.js +9 -8
- package/dist/index220.js +10 -19
- package/dist/index221.js +39 -10
- package/dist/index222.js +21 -10
- package/dist/index223.js +84 -35
- package/dist/index224.js +407 -21
- package/dist/index225.js +19 -124
- package/dist/index226.js +158 -35
- package/dist/index227.js +227 -79
- package/dist/index228.js +36 -19
- package/dist/index229.js +10 -20
- package/dist/index230.js +126 -19
- package/dist/index231.js +34 -16
- package/dist/index232.js +80 -20
- package/dist/index233.js +19 -160
- package/dist/index234.js +11 -11
- package/dist/index235.js +13 -15
- package/dist/index236.js +19 -198
- package/dist/index237.js +19 -69
- package/dist/index238.js +159 -32
- package/dist/index239.js +19 -39
- package/dist/index240.js +12 -12
- package/dist/index241.js +198 -21
- package/dist/index242.js +69 -19
- package/dist/index243.js +34 -836
- package/dist/index244.js +24 -686
- package/dist/index245.js +22 -176
- package/dist/index246.js +6 -6
- package/dist/index247.js +7 -7
- package/dist/index248.js +836 -20
- package/dist/index249.js +702 -3
- package/dist/index250.js +172 -183
- package/dist/index251.js +21 -132
- package/dist/index252.js +20 -1223
- package/dist/index253.js +9 -9
- package/dist/index254.js +3 -22
- package/dist/index255.js +186 -21
- package/dist/index256.js +132 -28
- package/dist/index257.js +1223 -20
- package/dist/index258.js +13 -13
- package/dist/index259.js +22 -2
- package/dist/index260.js +22 -2
- package/dist/index261.js +28 -160
- package/dist/index262.js +20 -228
- package/dist/index263.js +19 -36
- package/dist/index264.js +2 -10
- package/dist/index265.js +2 -3636
- package/dist/index266.js +3620 -39
- package/dist/index267.js +30 -52
- package/dist/index268.js +47 -22
- package/dist/index269.js +25 -188
- package/dist/index270.js +213 -8
- package/dist/index271.js +9 -56
- package/dist/index272.js +41 -45
- package/dist/index273.js +46 -39
- package/dist/index274.js +36 -57
- package/dist/index275.js +41 -692
- package/dist/index276.js +707 -23
- package/dist/index277.js +25 -47
- package/dist/index278.js +63 -10
- package/dist/index279.js +10 -704
- package/dist/index280.js +655 -770
- package/dist/index281.js +801 -234
- package/dist/index282.js +3 -8
- package/dist/index283.js +24 -135
- package/dist/index284.js +232 -62
- package/dist/index285.js +8 -3
- package/dist/index286.js +135 -24
- package/dist/index287.js +73 -252
- package/dist/index288.js +2 -6
- package/dist/index289.js +73 -134
- package/dist/index290.js +52 -71
- package/dist/index291.js +25 -86
- package/dist/index292.js +21 -28
- package/dist/index293.js +20 -14
- package/dist/index294.js +16 -75
- package/dist/index295.js +17 -4
- package/dist/index296.js +23 -2
- package/dist/index297.js +1531 -80
- package/dist/index298.js +386 -53
- package/dist/index299.js +2729 -4
- package/dist/index300.js +85 -4
- package/dist/index301.js +3761 -148
- package/dist/index302.js +57 -60
- package/dist/index303.js +78 -74
- package/dist/index304.js +22 -2
- package/dist/index305.js +910 -54
- package/dist/index306.js +21 -53
- package/dist/index307.js +12 -18
- package/dist/index308.js +11 -13
- package/dist/index309.js +68 -21
- package/dist/index310.js +17 -14
- package/dist/index311.js +16 -14
- package/dist/index312.js +22 -23
- package/dist/index313.js +21 -78
- package/dist/index314.js +63 -22
- package/dist/index315.js +14 -934
- package/dist/index316.js +83 -21
- package/dist/index317.js +202 -20
- package/dist/index318.js +246 -20
- package/dist/index319.js +260 -67
- package/dist/index320.js +6 -19
- package/dist/index321.js +139 -18
- package/dist/index322.js +72 -21
- package/dist/index323.js +85 -20
- package/dist/index324.js +29 -63
- package/dist/index325.js +13 -1531
- package/dist/index326.js +67 -378
- package/dist/index327.js +3 -2730
- package/dist/index328.js +2 -86
- package/dist/index329.js +80 -3789
- package/dist/index330.js +51 -58
- package/dist/index331.js +6 -15
- package/dist/index332.js +4 -83
- package/dist/index333.js +165 -188
- package/dist/index334.js +56 -239
- package/dist/index335.js +75 -9
- package/dist/index336.js +8 -12
- package/dist/index337.js +12 -54
- package/dist/index338.js +52 -9
- package/dist/index339.js +11 -13
- package/dist/index340.js +9 -53
- package/dist/index341.js +55 -49
- package/dist/index342.js +49 -28
- package/dist/index343.js +31 -2
- package/dist/index344.js +2 -5
- package/dist/index345.js +5 -2
- package/dist/index346.js +2 -23
- package/dist/index347.js +21 -39
- package/dist/index348.js +41 -2
- package/dist/index349.js +2 -11
- package/dist/index350.js +11 -20
- package/dist/index351.js +20 -10
- package/dist/index352.js +9 -9
- package/dist/index353.js +9 -16
- package/dist/index354.js +17 -2
- package/dist/index355.js +2 -9
- package/dist/index356.js +9 -10
- package/dist/index357.js +10 -14
- package/dist/index358.js +14 -19
- package/dist/index359.js +36 -56
- package/dist/index360.js +19 -28
- package/dist/index361.js +19 -6
- package/dist/index362.js +60 -48
- package/dist/index363.js +37 -7
- package/dist/index364.js +18 -11
- package/dist/index365.js +57 -7
- package/dist/index366.js +29 -28
- package/dist/index367.js +7 -2
- package/dist/index368.js +50 -68
- package/dist/index369.js +6 -166
- package/dist/index370.js +11 -36
- package/dist/index371.js +7 -20
- package/dist/index372.js +28 -20
- package/dist/index373.js +2 -64
- package/dist/index374.js +70 -37
- package/dist/index375.js +164 -28
- package/dist/index376.js +100 -10
- package/dist/index377.js +90 -3
- package/dist/index378.js +17 -4
- package/dist/index379.js +97 -12
- package/dist/index380.js +31 -7
- package/dist/index381.js +10 -11
- package/dist/index382.js +3 -4
- package/dist/index383.js +4 -33
- package/dist/index384.js +12 -30
- package/dist/index385.js +7 -28
- package/dist/index386.js +12 -61
- package/dist/index387.js +5 -17
- package/dist/index388.js +33 -101
- package/dist/index389.js +31 -91
- package/dist/index390.js +27 -97
- package/dist/index391.js +61 -3
- package/dist/index392.js +3 -2
- package/dist/index393.js +2 -2
- package/dist/index394.js +2 -17
- package/dist/index395.js +15 -11
- package/dist/index396.js +13 -6
- package/dist/index397.js +6 -32
- package/dist/index398.js +34 -0
- package/dist/index44.js +288 -261
- package/dist/index49.js +4 -3
- package/dist/index50.js +2 -2
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index56.js +2 -2
- package/dist/index58.js +1 -1
- package/dist/index60.js +5 -5
- package/dist/index61.js +1 -1
- package/dist/index73.js +2 -2
- package/dist/index77.js +1 -1
- package/dist/index82.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index89.js +3 -3
- package/dist/index91.js +2 -2
- package/dist/index97.js +2 -2
- package/dist/src/components/grid/grid.stories.d.ts +28 -22
- package/dist/src/components/list/list.stories.d.ts +14 -11
- package/dist/src/components/modal/modal.stories.d.ts +14 -11
- package/dist/src/components/select/select.d.ts +14 -12
- package/dist/src/components/select/select.stories.d.ts +42 -33
- package/package.json +2 -2
- package/dist/index167.js +0 -116
- package/dist/index183.js +0 -20
- package/dist/index196.js +0 -5940
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +0 -2018
- /package/dist/{index155.js → index156.js} +0 -0
- /package/dist/{index162.js → index163.js} +0 -0
package/dist/index145.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as H, ref as n, computed as a, watch as g, nextTick as f } from "vue";
|
|
2
|
-
import { Multiselect as I } from "./
|
|
2
|
+
import { Multiselect as I } from "./index195.js";
|
|
3
3
|
import { useI18n as k } from "vue-i18n";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import q from "./index6.js";
|
package/dist/index147.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as te, ref as n, computed as w, onMounted as le, onUnmounted as oe, h as D, render as H } from "vue";
|
|
2
|
-
import se from "./
|
|
3
|
-
import re from "./
|
|
4
|
-
import ae from "./
|
|
5
|
-
import ne from "./
|
|
2
|
+
import se from "./index197.js";
|
|
3
|
+
import re from "./index198.js";
|
|
4
|
+
import ae from "./index199.js";
|
|
5
|
+
import ne from "./index200.js";
|
|
6
6
|
import ce from "./index6.js";
|
|
7
7
|
import ie from "./index51.js";
|
|
8
8
|
import N from "./index28.js";
|
|
9
|
-
import ue from "./
|
|
9
|
+
import ue from "./index181.js";
|
|
10
10
|
import de from "./index56.js";
|
|
11
11
|
import fe from "./index57.js";
|
|
12
12
|
import { filterData as ve } from "./index55.js";
|
|
13
|
-
import { useDebounceFn as he } from "./
|
|
13
|
+
import { useDebounceFn as he } from "./index180.js";
|
|
14
14
|
const ke = te({
|
|
15
15
|
name: "QTable",
|
|
16
16
|
components: {
|
package/dist/index153.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as Be, ref as h, computed as y, watch as ce, nextTick as me, onUnmounted as Ee, openBlock as u, createElementBlock as c, normalizeClass as H, createElementVNode as m, createVNode as P, Fragment as z, createCommentVNode as _, toDisplayString as g, createTextVNode as fe, createBlock as de, Teleport as Pe, Transition as ze, withCtx as O, renderList as ae } from "vue";
|
|
2
|
+
import Ke from "./index45.js";
|
|
3
|
+
import $e from "./index7.js";
|
|
4
4
|
import oe from "./index28.js";
|
|
5
|
-
import { useI18n as
|
|
6
|
-
const
|
|
5
|
+
import { useI18n as Le } from "vue-i18n";
|
|
6
|
+
const Ne = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "q-time-picker__desktop"
|
|
9
|
-
},
|
|
9
|
+
}, Re = ["value", "tabindex"], Fe = ["value", "tabindex"], Oe = ["value", "tabindex"], Ue = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "q-time-picker__timezone"
|
|
12
|
-
},
|
|
12
|
+
}, We = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "q-time-picker__placeholder"
|
|
15
|
-
},
|
|
15
|
+
}, Qe = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "q-time-picker__trigger-value"
|
|
18
|
-
},
|
|
18
|
+
}, Ge = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "q-time-picker__timezone"
|
|
21
|
-
},
|
|
21
|
+
}, je = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "q-time-picker__trigger-placeholder"
|
|
24
|
-
},
|
|
24
|
+
}, Je = { class: "q-time-picker__wheels" }, I = 44, lt = /* @__PURE__ */ Be({
|
|
25
25
|
name: "QTimePicker",
|
|
26
26
|
__name: "time-picker",
|
|
27
27
|
props: {
|
|
@@ -43,8 +43,8 @@ const Le = {
|
|
|
43
43
|
timezone: { default: "" }
|
|
44
44
|
},
|
|
45
45
|
emits: ["update:modelValue"],
|
|
46
|
-
setup(r, { emit:
|
|
47
|
-
const a = r, C =
|
|
46
|
+
setup(r, { emit: ve }) {
|
|
47
|
+
const a = r, C = ve, { t: K } = Le(), d = h(""), p = h(""), v = h(""), M = h(null), T = h(null), $ = h(null), x = h(!1);
|
|
48
48
|
let S = "", w = "";
|
|
49
49
|
const q = h(!1), b = h(12), D = h(0), A = h("AM"), U = h(null), W = h(null), Q = h(null);
|
|
50
50
|
let G, j, J;
|
|
@@ -74,7 +74,7 @@ const Le = {
|
|
|
74
74
|
e.unshift({ label: `${K("HC_NOW")} (${V})`, value: V });
|
|
75
75
|
}
|
|
76
76
|
return e;
|
|
77
|
-
}),
|
|
77
|
+
}), pe = y(() => {
|
|
78
78
|
if (!a.modelValue) return null;
|
|
79
79
|
const e = X.value.find(
|
|
80
80
|
(l) => l.value === a.modelValue
|
|
@@ -90,9 +90,9 @@ const Le = {
|
|
|
90
90
|
return { label: i, value: i };
|
|
91
91
|
}
|
|
92
92
|
return { label: a.modelValue, value: a.modelValue };
|
|
93
|
-
}),
|
|
93
|
+
}), he = y(() => a.modelValue || ""), Y = y(
|
|
94
94
|
() => !d.value && !p.value && !x.value
|
|
95
|
-
),
|
|
95
|
+
), ke = y(() => v.value ? K(`HC_${v.value}`) : ""), ge = y(() => [
|
|
96
96
|
{ value: "AM", label: K("HC_AM") },
|
|
97
97
|
{ value: "PM", label: K("HC_PM") }
|
|
98
98
|
]), k = (e) => {
|
|
@@ -145,7 +145,7 @@ const Le = {
|
|
|
145
145
|
if (!w) return;
|
|
146
146
|
const e = parseInt(w);
|
|
147
147
|
e >= 0 && e <= 59 && (p.value = e.toString().padStart(2, "0")), w = "";
|
|
148
|
-
},
|
|
148
|
+
}, s = () => {
|
|
149
149
|
const e = parseInt(d.value, 10), t = parseInt(p.value, 10);
|
|
150
150
|
if (isNaN(e) || isNaN(t)) {
|
|
151
151
|
!d.value && !p.value && !v.value && C("update:modelValue", "");
|
|
@@ -156,7 +156,7 @@ const Le = {
|
|
|
156
156
|
a.format === "12h" ? (l = e % 12, v.value === "PM" && (l += 12)) : l = e;
|
|
157
157
|
const o = l * 60 + t, n = a.minTime ? k(a.minTime) : null, i = a.maxTime ? k(a.maxTime) : null;
|
|
158
158
|
n !== null && o < n || i !== null && o > i || C("update:modelValue", B(l, t, a.format));
|
|
159
|
-
},
|
|
159
|
+
}, be = () => {
|
|
160
160
|
if (!a.modelValue) {
|
|
161
161
|
d.value = "", p.value = "", v.value = "";
|
|
162
162
|
return;
|
|
@@ -171,13 +171,13 @@ const Le = {
|
|
|
171
171
|
a.format === "12h" && $.value?.focus();
|
|
172
172
|
}, re = (e) => {
|
|
173
173
|
let t = parseInt(d.value) || (a.format === "12h" ? 12 : 0);
|
|
174
|
-
t += e, a.format === "12h" ? (t > 12 && (t = 1), t < 1 && (t = 12), d.value = t.toString()) : (t > 23 && (t = 0), t < 0 && (t = 23), d.value = t.toString().padStart(2, "0")), S = "",
|
|
174
|
+
t += e, a.format === "12h" ? (t > 12 && (t = 1), t < 1 && (t = 12), d.value = t.toString()) : (t > 23 && (t = 0), t < 0 && (t = 23), d.value = t.toString().padStart(2, "0")), S = "", s();
|
|
175
175
|
}, ie = (e) => {
|
|
176
176
|
let t = parseInt(p.value);
|
|
177
|
-
isNaN(t) && (t = 0), t += e, t >= 60 && (t = 0), t < 0 && (t = 59), p.value = t.toString().padStart(2, "0"), w = "",
|
|
178
|
-
},
|
|
179
|
-
v.value ? v.value = v.value === "AM" ? "PM" : "AM" : v.value = "AM",
|
|
180
|
-
},
|
|
177
|
+
isNaN(t) && (t = 0), t += e, t >= 60 && (t = 0), t < 0 && (t = 59), p.value = t.toString().padStart(2, "0"), w = "", s();
|
|
178
|
+
}, ye = () => {
|
|
179
|
+
v.value ? v.value = v.value === "AM" ? "PM" : "AM" : v.value = "AM", s();
|
|
180
|
+
}, Me = (e) => {
|
|
181
181
|
if (e.key >= "0" && e.key <= "9") {
|
|
182
182
|
e.preventDefault();
|
|
183
183
|
const t = a.format === "12h" ? 1 : 0, l = a.format === "12h" ? 12 : 23, o = a.format === "24h", n = ne(
|
|
@@ -187,7 +187,7 @@ const Le = {
|
|
|
187
187
|
l,
|
|
188
188
|
o
|
|
189
189
|
);
|
|
190
|
-
d.value = n.value, S = n.buffer, n.complete && (
|
|
190
|
+
d.value = n.value, S = n.buffer, n.complete && (s(), Z());
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
switch (e.key) {
|
|
@@ -198,14 +198,14 @@ const Le = {
|
|
|
198
198
|
e.preventDefault(), re(-1);
|
|
199
199
|
break;
|
|
200
200
|
case "ArrowRight":
|
|
201
|
-
e.preventDefault(), R(),
|
|
201
|
+
e.preventDefault(), R(), s(), Z();
|
|
202
202
|
break;
|
|
203
203
|
case "Tab":
|
|
204
|
-
e.shiftKey ? (R(),
|
|
204
|
+
e.shiftKey ? (R(), s()) : (e.preventDefault(), R(), s(), Z());
|
|
205
205
|
break;
|
|
206
206
|
case "Backspace":
|
|
207
207
|
case "Delete":
|
|
208
|
-
e.preventDefault(), d.value = "", S = "",
|
|
208
|
+
e.preventDefault(), d.value = "", S = "", s();
|
|
209
209
|
break;
|
|
210
210
|
case "ArrowLeft":
|
|
211
211
|
e.preventDefault();
|
|
@@ -213,7 +213,7 @@ const Le = {
|
|
|
213
213
|
default:
|
|
214
214
|
!e.ctrlKey && !e.metaKey && !e.altKey && e.key.length === 1 && e.preventDefault();
|
|
215
215
|
}
|
|
216
|
-
},
|
|
216
|
+
}, Se = (e) => {
|
|
217
217
|
if (e.key >= "0" && e.key <= "9") {
|
|
218
218
|
e.preventDefault();
|
|
219
219
|
const t = ne(
|
|
@@ -223,7 +223,7 @@ const Le = {
|
|
|
223
223
|
59,
|
|
224
224
|
!0
|
|
225
225
|
);
|
|
226
|
-
p.value = t.value, w = t.buffer, t.complete && (
|
|
226
|
+
p.value = t.value, w = t.buffer, t.complete && (s(), ee());
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
229
|
switch (e.key) {
|
|
@@ -234,35 +234,35 @@ const Le = {
|
|
|
234
234
|
e.preventDefault(), ie(-1);
|
|
235
235
|
break;
|
|
236
236
|
case "ArrowRight":
|
|
237
|
-
e.preventDefault(), E(),
|
|
237
|
+
e.preventDefault(), E(), s(), a.format === "12h" && ee();
|
|
238
238
|
break;
|
|
239
239
|
case "Tab":
|
|
240
|
-
e.shiftKey ? (e.preventDefault(), E(),
|
|
240
|
+
e.shiftKey ? (e.preventDefault(), E(), s(), M.value?.focus()) : (E(), s(), a.format === "12h" && (e.preventDefault(), ee()));
|
|
241
241
|
break;
|
|
242
242
|
case "ArrowLeft":
|
|
243
|
-
e.preventDefault(), E(),
|
|
243
|
+
e.preventDefault(), E(), s(), M.value?.focus();
|
|
244
244
|
break;
|
|
245
245
|
case "Backspace":
|
|
246
246
|
case "Delete":
|
|
247
|
-
e.preventDefault(), p.value = "", w = "",
|
|
247
|
+
e.preventDefault(), p.value = "", w = "", s();
|
|
248
248
|
break;
|
|
249
249
|
default:
|
|
250
250
|
!e.ctrlKey && !e.metaKey && !e.altKey && e.key.length === 1 && e.preventDefault();
|
|
251
251
|
}
|
|
252
|
-
},
|
|
252
|
+
}, we = (e) => {
|
|
253
253
|
const t = e.key.toLowerCase();
|
|
254
254
|
if (t === "a") {
|
|
255
|
-
e.preventDefault(), v.value = "AM",
|
|
255
|
+
e.preventDefault(), v.value = "AM", s();
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
if (t === "p") {
|
|
259
|
-
e.preventDefault(), v.value = "PM",
|
|
259
|
+
e.preventDefault(), v.value = "PM", s();
|
|
260
260
|
return;
|
|
261
261
|
}
|
|
262
262
|
switch (e.key) {
|
|
263
263
|
case "ArrowUp":
|
|
264
264
|
case "ArrowDown":
|
|
265
|
-
e.preventDefault(),
|
|
265
|
+
e.preventDefault(), ye();
|
|
266
266
|
break;
|
|
267
267
|
case "ArrowLeft":
|
|
268
268
|
e.preventDefault(), T.value?.focus();
|
|
@@ -272,7 +272,7 @@ const Le = {
|
|
|
272
272
|
break;
|
|
273
273
|
case "Backspace":
|
|
274
274
|
case "Delete":
|
|
275
|
-
e.preventDefault(), v.value = "",
|
|
275
|
+
e.preventDefault(), v.value = "", s();
|
|
276
276
|
break;
|
|
277
277
|
default:
|
|
278
278
|
!e.ctrlKey && !e.metaKey && !e.altKey && e.key.length === 1 && e.preventDefault();
|
|
@@ -282,9 +282,9 @@ const Le = {
|
|
|
282
282
|
}, le = () => {
|
|
283
283
|
requestAnimationFrame(() => {
|
|
284
284
|
const e = document.activeElement;
|
|
285
|
-
e !== M.value && e !== T.value && e !== $.value && (x.value = !1, R(), E(),
|
|
285
|
+
e !== M.value && e !== T.value && e !== $.value && (x.value = !1, R(), E(), s());
|
|
286
286
|
});
|
|
287
|
-
},
|
|
287
|
+
}, _e = (e) => {
|
|
288
288
|
if (!a.disabled && !(e.target instanceof HTMLInputElement)) {
|
|
289
289
|
if (Y.value) {
|
|
290
290
|
x.value = !0, me(() => M.value?.focus());
|
|
@@ -292,13 +292,13 @@ const Le = {
|
|
|
292
292
|
}
|
|
293
293
|
d.value ? p.value ? a.format === "12h" && !v.value ? $.value?.focus() : M.value?.focus() : T.value?.focus() : M.value?.focus();
|
|
294
294
|
}
|
|
295
|
-
},
|
|
295
|
+
}, Te = (e) => {
|
|
296
296
|
if (!e) {
|
|
297
297
|
C("update:modelValue", "");
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
300
|
C("update:modelValue", e.value);
|
|
301
|
-
},
|
|
301
|
+
}, qe = (e) => a.format === "24h" ? e.toString().padStart(2, "0") : e.toString(), De = () => {
|
|
302
302
|
if (!a.modelValue) {
|
|
303
303
|
const n = /* @__PURE__ */ new Date();
|
|
304
304
|
b.value = a.format === "12h" ? n.getHours() % 12 || 12 : n.getHours(), D.value = Math.floor(n.getMinutes() / a.step) * a.step, A.value = n.getHours() >= 12 ? "PM" : "AM";
|
|
@@ -310,7 +310,7 @@ const Le = {
|
|
|
310
310
|
a.format === "12h" ? (b.value = t % 12 || 12, A.value = t >= 12 ? "PM" : "AM") : b.value = t;
|
|
311
311
|
const o = Math.round(l / a.step) * a.step;
|
|
312
312
|
D.value = o >= 60 ? 60 - a.step : o;
|
|
313
|
-
},
|
|
313
|
+
}, Ae = (e = !0) => {
|
|
314
314
|
const t = e ? "smooth" : "instant";
|
|
315
315
|
if (U.value) {
|
|
316
316
|
const l = L.value.indexOf(b.value);
|
|
@@ -333,14 +333,14 @@ const Le = {
|
|
|
333
333
|
behavior: t
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
},
|
|
337
|
-
a.disabled || (
|
|
338
|
-
},
|
|
336
|
+
}, Ve = () => {
|
|
337
|
+
a.disabled || (De(), q.value = !0);
|
|
338
|
+
}, He = (e) => {
|
|
339
339
|
clearTimeout(G), G = setTimeout(() => {
|
|
340
340
|
const t = e.target, l = Math.round(t.scrollTop / I), o = Math.max(0, Math.min(l, L.value.length - 1));
|
|
341
341
|
b.value = L.value[o];
|
|
342
342
|
}, 60);
|
|
343
|
-
},
|
|
343
|
+
}, Ie = (e) => {
|
|
344
344
|
clearTimeout(j), j = setTimeout(() => {
|
|
345
345
|
const t = e.target, l = Math.round(t.scrollTop / I), o = Math.max(
|
|
346
346
|
0,
|
|
@@ -348,12 +348,12 @@ const Le = {
|
|
|
348
348
|
);
|
|
349
349
|
D.value = N.value[o];
|
|
350
350
|
}, 60);
|
|
351
|
-
},
|
|
351
|
+
}, Ce = (e) => {
|
|
352
352
|
clearTimeout(J), J = setTimeout(() => {
|
|
353
353
|
const t = e.target, l = Math.round(t.scrollTop / I);
|
|
354
354
|
A.value = l <= 0 ? "AM" : "PM";
|
|
355
355
|
}, 60);
|
|
356
|
-
},
|
|
356
|
+
}, xe = () => {
|
|
357
357
|
let e;
|
|
358
358
|
a.format === "12h" ? (e = b.value % 12, A.value === "PM" && (e += 12)) : e = b.value;
|
|
359
359
|
const t = B(e, D.value, a.format);
|
|
@@ -361,24 +361,24 @@ const Le = {
|
|
|
361
361
|
};
|
|
362
362
|
return ce(
|
|
363
363
|
[() => a.modelValue, () => a.format],
|
|
364
|
-
() =>
|
|
364
|
+
() => be(),
|
|
365
365
|
{ immediate: !0 }
|
|
366
366
|
), ce(q, async (e) => {
|
|
367
367
|
e && (await me(), requestAnimationFrame(() => {
|
|
368
|
-
|
|
368
|
+
Ae(!1);
|
|
369
369
|
}));
|
|
370
|
-
}),
|
|
370
|
+
}), Ee(() => {
|
|
371
371
|
clearTimeout(G), clearTimeout(j), clearTimeout(J);
|
|
372
|
-
}), (e, t) => (
|
|
372
|
+
}), (e, t) => (u(), c("div", {
|
|
373
373
|
class: H(["q-time-picker", { "q-time-picker--disabled": r.disabled }])
|
|
374
374
|
}, [
|
|
375
|
-
r.mobile ? (
|
|
375
|
+
r.mobile ? (u(), c(z, { key: 1 }, [
|
|
376
376
|
m("div", {
|
|
377
377
|
class: H(["q-time-picker__trigger", {
|
|
378
378
|
"q-time-picker__trigger--disabled": r.disabled,
|
|
379
379
|
[`q-time-picker__trigger--${r.size}`]: !0
|
|
380
380
|
}]),
|
|
381
|
-
onClick:
|
|
381
|
+
onClick: Ve
|
|
382
382
|
}, [
|
|
383
383
|
P(oe, {
|
|
384
384
|
icon: "clock",
|
|
@@ -389,10 +389,10 @@ const Le = {
|
|
|
389
389
|
color: "inkwell-10",
|
|
390
390
|
class: "q-time-picker__trigger-icon"
|
|
391
391
|
}),
|
|
392
|
-
r.modelValue ? (
|
|
393
|
-
fe(g(
|
|
394
|
-
r.timezone ? (
|
|
395
|
-
])) : (
|
|
392
|
+
r.modelValue ? (u(), c("span", Qe, [
|
|
393
|
+
fe(g(he.value) + " ", 1),
|
|
394
|
+
r.timezone ? (u(), c("span", Ge, g(r.timezone), 1)) : _("", !0)
|
|
395
|
+
])) : (u(), c("span", je, g(r.placeholder || e.$t("HC_SELECT_TIME")), 1)),
|
|
396
396
|
P(oe, {
|
|
397
397
|
icon: "chevron-down",
|
|
398
398
|
type: "line",
|
|
@@ -401,90 +401,93 @@ const Le = {
|
|
|
401
401
|
class: "q-time-picker__trigger-chevron"
|
|
402
402
|
})
|
|
403
403
|
], 2),
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
m("div",
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
404
|
+
(u(), de(Pe, { to: "#body" }, [
|
|
405
|
+
P(ze, { name: "slide-up-fade" }, {
|
|
406
|
+
default: O(() => [
|
|
407
|
+
q.value ? (u(), de($e, {
|
|
408
|
+
key: 0,
|
|
409
|
+
modelValue: q.value,
|
|
410
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => q.value = l),
|
|
411
|
+
"content-class": "px-4 pb-6 bg-gray-0",
|
|
412
|
+
"header-class": "border-b border-solid bg-gray-0 border-gray-10 !pb-4 rounded-t-lg",
|
|
413
|
+
"show-close-button": !1,
|
|
414
|
+
class: "q-time-picker-sheet"
|
|
415
|
+
}, {
|
|
416
|
+
header: O(() => [
|
|
417
|
+
fe(g(r.placeholder || e.$t("HC_SELECT_TIME")), 1)
|
|
418
|
+
]),
|
|
419
|
+
headerAction: O(() => [
|
|
420
|
+
m("button", {
|
|
421
|
+
class: "q-time-picker__done-btn",
|
|
422
|
+
type: "button",
|
|
423
|
+
onClick: xe
|
|
424
|
+
}, g(e.$t("HC_DONE")), 1)
|
|
425
|
+
]),
|
|
426
|
+
default: O(() => [
|
|
427
|
+
m("div", Je, [
|
|
428
|
+
t[8] || (t[8] = m("div", { class: "q-time-picker__wheel-highlight" }, null, -1)),
|
|
429
|
+
m("div", {
|
|
430
|
+
ref_key: "hourColumnRef",
|
|
431
|
+
ref: U,
|
|
432
|
+
class: "q-time-picker__wheel-column",
|
|
433
|
+
onScroll: He
|
|
434
|
+
}, [
|
|
435
|
+
t[2] || (t[2] = m("div", { class: "q-time-picker__wheel-pad" }, null, -1)),
|
|
436
|
+
(u(!0), c(z, null, ae(L.value, (l) => (u(), c("div", {
|
|
437
|
+
key: l,
|
|
438
|
+
class: H(["q-time-picker__wheel-item", {
|
|
439
|
+
"q-time-picker__wheel-item--selected": l === b.value
|
|
440
|
+
}])
|
|
441
|
+
}, g(qe(l)), 3))), 128)),
|
|
442
|
+
t[3] || (t[3] = m("div", { class: "q-time-picker__wheel-pad" }, null, -1))
|
|
443
|
+
], 544),
|
|
444
|
+
t[9] || (t[9] = m("div", { class: "q-time-picker__wheel-separator" }, ":", -1)),
|
|
445
|
+
m("div", {
|
|
446
|
+
ref_key: "minuteColumnRef",
|
|
447
|
+
ref: W,
|
|
448
|
+
class: "q-time-picker__wheel-column",
|
|
449
|
+
onScroll: Ie
|
|
450
|
+
}, [
|
|
451
|
+
t[4] || (t[4] = m("div", { class: "q-time-picker__wheel-pad" }, null, -1)),
|
|
452
|
+
(u(!0), c(z, null, ae(N.value, (l) => (u(), c("div", {
|
|
453
|
+
key: l,
|
|
454
|
+
class: H(["q-time-picker__wheel-item", {
|
|
455
|
+
"q-time-picker__wheel-item--selected": l === D.value
|
|
456
|
+
}])
|
|
457
|
+
}, g(l.toString().padStart(2, "0")), 3))), 128)),
|
|
458
|
+
t[5] || (t[5] = m("div", { class: "q-time-picker__wheel-pad" }, null, -1))
|
|
459
|
+
], 544),
|
|
460
|
+
r.format === "12h" ? (u(), c("div", {
|
|
461
|
+
key: 0,
|
|
462
|
+
ref_key: "periodColumnRef",
|
|
463
|
+
ref: Q,
|
|
464
|
+
class: "q-time-picker__wheel-column q-time-picker__wheel-column--period",
|
|
465
|
+
onScroll: Ce
|
|
466
|
+
}, [
|
|
467
|
+
t[6] || (t[6] = m("div", { class: "q-time-picker__wheel-pad" }, null, -1)),
|
|
468
|
+
(u(!0), c(z, null, ae(ge.value, (l) => (u(), c("div", {
|
|
469
|
+
key: l.value,
|
|
470
|
+
class: H(["q-time-picker__wheel-item", {
|
|
471
|
+
"q-time-picker__wheel-item--selected": l.value === A.value
|
|
472
|
+
}])
|
|
473
|
+
}, g(l.label), 3))), 128)),
|
|
474
|
+
t[7] || (t[7] = m("div", { class: "q-time-picker__wheel-pad" }, null, -1))
|
|
475
|
+
], 544)) : _("", !0)
|
|
476
|
+
])
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
}, 8, ["modelValue"])) : _("", !0)
|
|
480
|
+
]),
|
|
481
|
+
_: 1
|
|
482
|
+
})
|
|
483
|
+
]))
|
|
484
|
+
], 64)) : (u(), c("div", Ne, [
|
|
482
485
|
m("div", {
|
|
483
486
|
class: H(["q-time-picker__segments", {
|
|
484
487
|
"q-time-picker__segments--focused": x.value,
|
|
485
488
|
"q-time-picker__segments--empty": !d.value && !p.value
|
|
486
489
|
}]),
|
|
487
|
-
onClick:
|
|
490
|
+
onClick: _e
|
|
488
491
|
}, [
|
|
489
492
|
P(oe, {
|
|
490
493
|
icon: "clock",
|
|
@@ -495,7 +498,7 @@ const Le = {
|
|
|
495
498
|
color: "inkwell-10",
|
|
496
499
|
class: "q-time-picker__clock-icon"
|
|
497
500
|
}),
|
|
498
|
-
Y.value ? _("", !0) : (
|
|
501
|
+
Y.value ? _("", !0) : (u(), c(z, { key: 0 }, [
|
|
499
502
|
m("input", {
|
|
500
503
|
ref_key: "hourInputRef",
|
|
501
504
|
ref: M,
|
|
@@ -504,10 +507,10 @@ const Le = {
|
|
|
504
507
|
tabindex: r.disabled ? -1 : 0,
|
|
505
508
|
inputmode: "numeric",
|
|
506
509
|
placeholder: "--",
|
|
507
|
-
onKeydown:
|
|
510
|
+
onKeydown: Me,
|
|
508
511
|
onFocus: te,
|
|
509
512
|
onBlur: le
|
|
510
|
-
}, null, 40,
|
|
513
|
+
}, null, 40, Re),
|
|
511
514
|
t[1] || (t[1] = m("span", { class: "q-time-picker__segment-colon" }, ":", -1)),
|
|
512
515
|
m("input", {
|
|
513
516
|
ref_key: "minuteInputRef",
|
|
@@ -517,29 +520,29 @@ const Le = {
|
|
|
517
520
|
tabindex: r.disabled ? -1 : 0,
|
|
518
521
|
inputmode: "numeric",
|
|
519
522
|
placeholder: "--",
|
|
520
|
-
onKeydown:
|
|
523
|
+
onKeydown: Se,
|
|
521
524
|
onFocus: te,
|
|
522
525
|
onBlur: le
|
|
523
|
-
}, null, 40,
|
|
524
|
-
r.format === "12h" ? (
|
|
526
|
+
}, null, 40, Fe),
|
|
527
|
+
r.format === "12h" ? (u(), c("input", {
|
|
525
528
|
key: 0,
|
|
526
529
|
ref_key: "periodInputRef",
|
|
527
530
|
ref: $,
|
|
528
|
-
value:
|
|
531
|
+
value: ke.value,
|
|
529
532
|
class: "q-time-picker__segment q-time-picker__segment--period",
|
|
530
533
|
tabindex: r.disabled ? -1 : 0,
|
|
531
534
|
placeholder: "--",
|
|
532
|
-
onKeydown:
|
|
535
|
+
onKeydown: we,
|
|
533
536
|
onFocus: te,
|
|
534
537
|
onBlur: le
|
|
535
|
-
}, null, 40,
|
|
536
|
-
r.timezone ? (
|
|
538
|
+
}, null, 40, Oe)) : _("", !0),
|
|
539
|
+
r.timezone ? (u(), c("span", Ue, g(r.timezone), 1)) : _("", !0)
|
|
537
540
|
], 64)),
|
|
538
|
-
Y.value ? (
|
|
541
|
+
Y.value ? (u(), c("span", We, g(r.placeholder || e.$t("HC_SELECT_TIME")), 1)) : _("", !0)
|
|
539
542
|
], 2),
|
|
540
|
-
P(
|
|
543
|
+
P(Ke, {
|
|
541
544
|
id: r.id,
|
|
542
|
-
"model-value":
|
|
545
|
+
"model-value": pe.value,
|
|
543
546
|
options: X.value,
|
|
544
547
|
placeholder: "",
|
|
545
548
|
disabled: r.disabled,
|
|
@@ -551,12 +554,12 @@ const Le = {
|
|
|
551
554
|
"close-on-select": !0,
|
|
552
555
|
"track-by": "value",
|
|
553
556
|
label: "label",
|
|
554
|
-
"onUpdate:modelValue":
|
|
557
|
+
"onUpdate:modelValue": Te
|
|
555
558
|
}, null, 8, ["id", "model-value", "options", "disabled", "required", "floating-label", "size", "allow-empty"])
|
|
556
559
|
]))
|
|
557
560
|
], 2));
|
|
558
561
|
}
|
|
559
562
|
});
|
|
560
563
|
export {
|
|
561
|
-
|
|
564
|
+
lt as default
|
|
562
565
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as u, computed as v, onMounted as g, onUnmounted as h, watch as y, nextTick as m } from "vue";
|
|
2
|
-
import { useThrottleFn as b } from "./
|
|
2
|
+
import { useThrottleFn as b } from "./index180.js";
|
|
3
3
|
const T = c({
|
|
4
4
|
name: "QTooltip",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as ot, ref as H, computed as C, reactive as at, onMounted as it, onUnmounted as lt } from "vue";
|
|
2
|
-
import { createPopper as st } from "./
|
|
2
|
+
import { createPopper as st } from "./index201.js";
|
|
3
3
|
import { useI18n as ut } from "vue-i18n";
|
|
4
4
|
const ht = ot({
|
|
5
5
|
name: "QTour",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as q, ref as o, computed as c, watch as k, onBeforeUnmount as M, onMounted as z, onUnmounted as K, nextTick as Q } from "vue";
|
|
2
|
-
import { onClickOutside as b, useBreakpoints as W, breakpointsTailwind as _ } from "./
|
|
3
|
-
import { EditorContent as $, useEditor as D } from "./
|
|
4
|
-
import G from "./
|
|
5
|
-
import I from "./
|
|
6
|
-
import { Underline as J } from "./
|
|
7
|
-
import { TextStyle as N, Color as X } from "./
|
|
8
|
-
import { Link as Y } from "./
|
|
9
|
-
import { Placeholder as Z } from "./
|
|
2
|
+
import { onClickOutside as b, useBreakpoints as W, breakpointsTailwind as _ } from "./index169.js";
|
|
3
|
+
import { EditorContent as $, useEditor as D } from "./index202.js";
|
|
4
|
+
import G from "./index203.js";
|
|
5
|
+
import I from "./index204.js";
|
|
6
|
+
import { Underline as J } from "./index205.js";
|
|
7
|
+
import { TextStyle as N, Color as X } from "./index206.js";
|
|
8
|
+
import { Link as Y } from "./index207.js";
|
|
9
|
+
import { Placeholder as Z } from "./index208.js";
|
|
10
10
|
import ee from "./index24.js";
|
|
11
|
-
import te from "./
|
|
11
|
+
import te from "./index168.js";
|
|
12
12
|
const ve = q({
|
|
13
13
|
components: {
|
|
14
14
|
EditorContent: $,
|