@quoreadmin/ui 1.10.11 → 1.10.13
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/index105.js +1 -1
- package/dist/index111.js +1 -1
- package/dist/index115.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index147.js +2 -2
- package/dist/index149.js +1 -1
- package/dist/index151.js +6 -6
- package/dist/index157.js +172 -163
- package/dist/index162.js +1 -1
- package/dist/index165.js +1 -1
- package/dist/index169.js +7 -7
- package/dist/index173.js +2 -2
- package/dist/index180.js +1151 -228
- package/dist/index182.js +14 -14
- package/dist/index183.js +266 -96
- package/dist/index184.js +106 -2
- package/dist/index185.js +2 -1376
- package/dist/index186.js +1378 -0
- package/dist/index188.js +12 -12
- package/dist/index189.js +10 -10
- package/dist/index190.js +12 -12
- package/dist/index191.js +14 -21
- package/dist/index192.js +23 -757
- package/dist/index193.js +759 -1144
- package/dist/index194.js +1155 -1234
- package/dist/index195.js +1205 -11248
- package/dist/index196.js +11212 -1134
- package/dist/index197.js +1228 -36
- package/dist/index199.js +5816 -1106
- package/dist/index200.js +209 -0
- package/dist/index201.js +19 -5922
- package/dist/index202.js +10 -199
- package/dist/index203.js +76 -33
- package/dist/index204.js +249 -14
- package/dist/index205.js +13678 -72
- package/dist/index206.js +27 -253
- package/dist/index207.js +48 -13669
- package/dist/index208.js +236 -25
- package/dist/index209.js +293 -45
- package/dist/index210.js +236 -179
- package/dist/index211.js +36 -311
- package/dist/index212.js +43 -294
- package/dist/index213.js +30 -158
- package/dist/index214.js +112 -224
- package/dist/index215.js +31 -32
- package/dist/index216.js +26 -10
- package/dist/index217.js +31 -83
- package/dist/index218.js +48 -404
- package/dist/index219.js +43 -22
- package/dist/index220.js +3 -32
- package/dist/index221.js +9 -116
- package/dist/index222.js +18 -35
- package/dist/index223.js +10 -26
- package/dist/index224.js +10 -36
- package/dist/index225.js +36 -48
- package/dist/index226.js +21 -43
- package/dist/index227.js +87 -3
- package/dist/index228.js +407 -9
- package/dist/index229.js +22 -19
- package/dist/index230.js +161 -10
- package/dist/index231.js +227 -9
- package/dist/index232.js +34 -36
- package/dist/index233.js +10 -21
- package/dist/index234.js +3618 -109
- package/dist/index235.js +49 -32
- package/dist/index236.js +70 -73
- package/dist/index237.js +52 -20
- package/dist/index238.js +215 -20
- package/dist/index239.js +10 -20
- package/dist/index240.js +57 -20
- package/dist/index241.js +61 -20
- package/dist/index242.js +48 -155
- package/dist/index243.js +75 -20
- package/dist/index244.js +725 -21
- package/dist/index245.js +33 -190
- package/dist/index246.js +60 -66
- package/dist/index247.js +10 -33
- package/dist/index248.js +699 -34
- package/dist/index249.js +801 -234
- package/dist/index250.js +161 -8
- package/dist/index251.js +20 -138
- package/dist/index252.js +20 -83
- package/dist/index253.js +12 -12
- package/dist/index254.js +198 -21
- package/dist/index255.js +69 -19
- package/dist/index256.js +34 -836
- package/dist/index257.js +24 -686
- package/dist/index258.js +22 -176
- package/dist/index259.js +6 -6
- package/dist/index260.js +7 -7
- package/dist/index261.js +836 -20
- package/dist/index262.js +702 -3
- package/dist/index263.js +172 -183
- package/dist/index264.js +18 -131
- package/dist/index265.js +20 -1223
- package/dist/index266.js +13 -11
- package/dist/index267.js +13 -15
- package/dist/index268.js +13 -15
- package/dist/index269.js +3 -29
- package/dist/index270.js +186 -19
- package/dist/index271.js +131 -18
- package/dist/index272.js +1223 -2
- package/dist/index273.js +127 -2
- package/dist/index274.js +20 -2
- package/dist/index275.js +21 -78
- package/dist/index276.js +22 -3636
- package/dist/index277.js +32 -49
- package/dist/index278.js +29 -77
- package/dist/index279.js +20 -52
- package/dist/index280.js +20 -215
- package/dist/index281.js +2 -10
- package/dist/index282.js +2 -57
- package/dist/index283.js +79 -60
- package/dist/index284.js +20 -54
- package/dist/index285.js +20 -75
- package/dist/index286.js +235 -708
- package/dist/index287.js +7 -41
- package/dist/index288.js +134 -60
- package/dist/index289.js +83 -11
- package/dist/index290.js +3 -705
- package/dist/index291.js +21 -814
- package/dist/index292.js +1534 -3
- package/dist/index293.js +382 -23
- package/dist/index294.js +2731 -54
- package/dist/index295.js +85 -25
- package/dist/index296.js +3792 -22
- package/dist/index297.js +59 -21
- package/dist/index298.js +15 -16
- package/dist/index299.js +84 -17
- package/dist/index3.js +2 -2
- package/dist/index300.js +201 -22
- package/dist/index301.js +241 -74
- package/dist/index302.js +53 -21
- package/dist/index303.js +54 -910
- package/dist/index304.js +17 -13
- package/dist/index305.js +13 -11
- package/dist/index306.js +15 -13
- package/dist/index307.js +14 -67
- package/dist/index308.js +14 -16
- package/dist/index309.js +21 -17
- package/dist/index310.js +261 -21
- package/dist/index311.js +5 -21
- package/dist/index312.js +139 -62
- package/dist/index313.js +67 -256
- package/dist/index314.js +86 -5
- package/dist/index315.js +26 -137
- package/dist/index316.js +14 -71
- package/dist/index317.js +71 -83
- package/dist/index318.js +3 -28
- package/dist/index319.js +2 -16
- package/dist/index320.js +78 -70
- package/dist/index321.js +52 -3
- package/dist/index322.js +6 -2
- package/dist/index323.js +4 -82
- package/dist/index324.js +177 -51
- package/dist/index325.js +62 -5
- package/dist/index326.js +75 -5
- package/dist/index327.js +74 -174
- package/dist/index328.js +21 -62
- package/dist/index329.js +934 -74
- package/dist/index330.js +21 -36
- package/dist/index331.js +20 -1534
- package/dist/index332.js +20 -386
- package/dist/index333.js +69 -2731
- package/dist/index334.js +19 -86
- package/dist/index335.js +19 -3792
- package/dist/index336.js +21 -59
- package/dist/index337.js +22 -15
- package/dist/index338.js +63 -84
- package/dist/index339.js +2 -202
- package/dist/index340.js +8 -245
- package/dist/index341.js +12 -9
- package/dist/index342.js +55 -10
- package/dist/index343.js +12 -14
- package/dist/index344.js +14 -10
- package/dist/index345.js +56 -15
- package/dist/index346.js +51 -8
- package/dist/index347.js +30 -12
- package/dist/index348.js +2 -55
- package/dist/index349.js +5 -12
- package/dist/index350.js +2 -14
- package/dist/index351.js +22 -57
- package/dist/index352.js +39 -50
- package/dist/index353.js +2 -31
- package/dist/index354.js +11 -2
- package/dist/index355.js +20 -5
- package/dist/index356.js +10 -2
- package/dist/index357.js +9 -22
- package/dist/index358.js +14 -38
- package/dist/index359.js +2 -2
- package/dist/index360.js +8 -10
- package/dist/index361.js +9 -19
- package/dist/index362.js +14 -2
- package/dist/index363.js +37 -9
- package/dist/index364.js +18 -19
- package/dist/index365.js +56 -19
- package/dist/index366.js +27 -62
- package/dist/index367.js +7 -37
- package/dist/index368.js +49 -16
- package/dist/index369.js +7 -57
- package/dist/index370.js +10 -27
- package/dist/index371.js +7 -7
- package/dist/index372.js +27 -51
- package/dist/index373.js +2 -7
- package/dist/index374.js +69 -11
- package/dist/index375.js +166 -6
- package/dist/index376.js +20 -28
- package/dist/index377.js +20 -2
- package/dist/index378.js +61 -67
- package/dist/index379.js +36 -166
- package/dist/index380.js +98 -28
- package/dist/index381.js +90 -10
- package/dist/index382.js +98 -4
- package/dist/index383.js +30 -3
- package/dist/index384.js +11 -17
- package/dist/index385.js +4 -13
- package/dist/index386.js +4 -7
- package/dist/index387.js +13 -12
- package/dist/index388.js +7 -5
- package/dist/index389.js +12 -33
- package/dist/index390.js +5 -31
- package/dist/index391.js +32 -27
- package/dist/index392.js +28 -58
- package/dist/index393.js +27 -97
- package/dist/index394.js +59 -99
- package/dist/index395.js +17 -91
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index50.js +1 -1
- package/dist/index62.js +1 -1
- package/dist/index66.js +17 -17
- package/dist/index78.js +1 -1
- package/dist/index88.js +1 -1
- package/dist/index92.js +1 -1
- package/dist/index98.js +2 -2
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index187.js +0 -20
- package/dist/index198.js +0 -46
package/dist/index182.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import st from "./
|
|
1
|
+
import st from "./index213.js";
|
|
2
2
|
import { reactive as V, watch as h, ref as g, defineComponent as Z, useSlots as H, h as K, Fragment as at, inject as ct, computed as A, toRaw as lt, unref as x } from "vue";
|
|
3
|
-
import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./
|
|
4
|
-
import { tryOnUnmounted as pt, isObject as yt } from "./
|
|
5
|
-
import D, { getFrameData as dt } from "./
|
|
6
|
-
import { complex as $ } from "./
|
|
7
|
-
import { inertia as mt } from "./
|
|
8
|
-
import { animate as bt } from "./
|
|
9
|
-
import { velocityPerSecond as ht } from "./
|
|
10
|
-
import { number as vt, alpha as C, scale as j } from "./
|
|
11
|
-
import { filter as P } from "./
|
|
12
|
-
import { px as c, progressPercentage as F, degrees as O } from "./
|
|
13
|
-
import { color as b } from "./
|
|
14
|
-
import { cubicBezier as gt } from "./
|
|
15
|
-
import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./
|
|
3
|
+
import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./index214.js";
|
|
4
|
+
import { tryOnUnmounted as pt, isObject as yt } from "./index215.js";
|
|
5
|
+
import D, { getFrameData as dt } from "./index216.js";
|
|
6
|
+
import { complex as $ } from "./index217.js";
|
|
7
|
+
import { inertia as mt } from "./index218.js";
|
|
8
|
+
import { animate as bt } from "./index219.js";
|
|
9
|
+
import { velocityPerSecond as ht } from "./index220.js";
|
|
10
|
+
import { number as vt, alpha as C, scale as j } from "./index221.js";
|
|
11
|
+
import { filter as P } from "./index222.js";
|
|
12
|
+
import { px as c, progressPercentage as F, degrees as O } from "./index223.js";
|
|
13
|
+
import { color as b } from "./index224.js";
|
|
14
|
+
import { cubicBezier as gt } from "./index225.js";
|
|
15
|
+
import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./index226.js";
|
|
16
16
|
const R = {};
|
|
17
17
|
class Mt {
|
|
18
18
|
subscriptions = /* @__PURE__ */ new Set();
|
package/dist/index183.js
CHANGED
|
@@ -1,108 +1,278 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import g from "./index227.js";
|
|
2
|
+
import { DomHandler as f, ObjectUtils as d } from "./index180.js";
|
|
3
|
+
import v from "./index228.js";
|
|
4
|
+
import S from "./index229.js";
|
|
5
|
+
import { resolveDirective as A, openBlock as h, createElementBlock as p, mergeProps as b, Fragment as E, renderList as O, withDirectives as w, renderSlot as x, normalizeClass as K, createElementVNode as I, toDisplayString as D } from "vue";
|
|
6
|
+
var V = {
|
|
7
|
+
name: "BaseSelectButton",
|
|
8
|
+
extends: v,
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: null,
|
|
11
|
+
options: Array,
|
|
12
|
+
optionLabel: null,
|
|
13
|
+
optionValue: null,
|
|
14
|
+
optionDisabled: null,
|
|
15
|
+
multiple: Boolean,
|
|
16
|
+
unselectable: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
allowEmpty: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
invalid: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
disabled: Boolean,
|
|
29
|
+
dataKey: null,
|
|
30
|
+
ariaLabelledby: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: null
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
style: S,
|
|
36
|
+
provide: function() {
|
|
37
|
+
return {
|
|
38
|
+
$parentInstance: this
|
|
39
|
+
};
|
|
40
|
+
}
|
|
13
41
|
};
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
42
|
+
function T(t, e) {
|
|
43
|
+
var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
44
|
+
if (!n) {
|
|
45
|
+
if (Array.isArray(t) || (n = y(t)) || e) {
|
|
46
|
+
n && (t = n);
|
|
47
|
+
var l = 0, s = function() {
|
|
48
|
+
};
|
|
49
|
+
return { s, n: function() {
|
|
50
|
+
return l >= t.length ? { done: !0 } : { done: !1, value: t[l++] };
|
|
51
|
+
}, e: function(u) {
|
|
52
|
+
throw u;
|
|
53
|
+
}, f: s };
|
|
54
|
+
}
|
|
55
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
56
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
23
57
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, s);
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function I(...e) {
|
|
44
|
-
let n = 0, t, r = !0, o = d, i, l, a, u, s;
|
|
45
|
-
!N(e[0]) && typeof e[0] == "object" ? { delay: l, trailing: a = !0, leading: u = !0, rejectOnCancel: s = !1 } = e[0] : [l, a = !0, u = !0, s = !1] = e;
|
|
46
|
-
const c = () => {
|
|
47
|
-
t && (clearTimeout(t), t = void 0, o(), o = d);
|
|
48
|
-
};
|
|
49
|
-
return (p) => {
|
|
50
|
-
const m = w(l), y = Date.now() - n, h = () => i = p();
|
|
51
|
-
return c(), m <= 0 ? (n = Date.now(), h()) : (y > m ? (n = Date.now(), (u || !r) && h()) : a && (i = new Promise((j, x) => {
|
|
52
|
-
o = s ? x : j, t = setTimeout(() => {
|
|
53
|
-
n = Date.now(), r = !0, j(h()), c();
|
|
54
|
-
}, Math.max(0, m - y));
|
|
55
|
-
})), !u && !t && (t = setTimeout(() => r = !0, m)), r = !1, i);
|
|
56
|
-
};
|
|
58
|
+
var r = !0, o = !1, i;
|
|
59
|
+
return { s: function() {
|
|
60
|
+
n = n.call(t);
|
|
61
|
+
}, n: function() {
|
|
62
|
+
var u = n.next();
|
|
63
|
+
return r = u.done, u;
|
|
64
|
+
}, e: function(u) {
|
|
65
|
+
o = !0, i = u;
|
|
66
|
+
}, f: function() {
|
|
67
|
+
try {
|
|
68
|
+
!r && n.return != null && n.return();
|
|
69
|
+
} finally {
|
|
70
|
+
if (o) throw i;
|
|
71
|
+
}
|
|
72
|
+
} };
|
|
57
73
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
if (typeof e == "number") return e + n;
|
|
61
|
-
const r = ((t = e.match(/^-?\d+\.?\d*/)) === null || t === void 0 ? void 0 : t[0]) || "", o = e.slice(r.length), i = Number.parseFloat(r) + n;
|
|
62
|
-
return Number.isNaN(i) ? e : i + o;
|
|
74
|
+
function B(t) {
|
|
75
|
+
return F(t) || k(t) || y(t) || L();
|
|
63
76
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
77
|
+
function L() {
|
|
78
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
66
80
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
81
|
+
function y(t, e) {
|
|
82
|
+
if (t) {
|
|
83
|
+
if (typeof t == "string") return m(t, e);
|
|
84
|
+
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
85
|
+
if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
|
|
86
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return m(t, e);
|
|
87
|
+
}
|
|
72
88
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
return g(k(n, t), e);
|
|
89
|
+
function k(t) {
|
|
90
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
76
91
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return g(I(n, t, r, o), e);
|
|
92
|
+
function F(t) {
|
|
93
|
+
if (Array.isArray(t)) return m(t);
|
|
80
94
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
95
|
+
function m(t, e) {
|
|
96
|
+
(e == null || e > t.length) && (e = t.length);
|
|
97
|
+
for (var n = 0, l = new Array(e); n < e; n++) l[n] = t[n];
|
|
98
|
+
return l;
|
|
83
99
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
100
|
+
var q = {
|
|
101
|
+
name: "SelectButton",
|
|
102
|
+
extends: V,
|
|
103
|
+
inheritAttrs: !1,
|
|
104
|
+
emits: ["update:modelValue", "focus", "blur", "change"],
|
|
105
|
+
data: function() {
|
|
106
|
+
return {
|
|
107
|
+
focusedIndex: 0
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
mounted: function() {
|
|
111
|
+
this.defaultTabIndexes();
|
|
112
|
+
},
|
|
113
|
+
methods: {
|
|
114
|
+
defaultTabIndexes: function() {
|
|
115
|
+
for (var e = f.find(this.$refs.container, '[data-pc-section="button"]'), n = f.findSingle(this.$refs.container, '[data-p-highlight="true"]'), l = 0; l < e.length; l++)
|
|
116
|
+
(f.getAttribute(e[l], "data-p-highlight") === !0 && d.equals(e[l], n) || n === null && l == 0) && (this.focusedIndex = l);
|
|
117
|
+
},
|
|
118
|
+
getOptionLabel: function(e) {
|
|
119
|
+
return this.optionLabel ? d.resolveFieldData(e, this.optionLabel) : e;
|
|
120
|
+
},
|
|
121
|
+
getOptionValue: function(e) {
|
|
122
|
+
return this.optionValue ? d.resolveFieldData(e, this.optionValue) : e;
|
|
123
|
+
},
|
|
124
|
+
getOptionRenderKey: function(e) {
|
|
125
|
+
return this.dataKey ? d.resolveFieldData(e, this.dataKey) : this.getOptionLabel(e);
|
|
126
|
+
},
|
|
127
|
+
getPTOptions: function(e, n) {
|
|
128
|
+
return this.ptm(n, {
|
|
129
|
+
context: {
|
|
130
|
+
active: this.isSelected(e),
|
|
131
|
+
disabled: this.isOptionDisabled(e),
|
|
132
|
+
option: e
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
},
|
|
136
|
+
isOptionDisabled: function(e) {
|
|
137
|
+
return this.optionDisabled ? d.resolveFieldData(e, this.optionDisabled) : !1;
|
|
138
|
+
},
|
|
139
|
+
onOptionSelect: function(e, n, l) {
|
|
140
|
+
var s = this;
|
|
141
|
+
if (!(this.disabled || this.isOptionDisabled(n))) {
|
|
142
|
+
var r = this.isSelected(n);
|
|
143
|
+
if (!(r && !(this.unselectable && this.allowEmpty))) {
|
|
144
|
+
var o = this.getOptionValue(n), i;
|
|
145
|
+
this.multiple ? r ? i = this.modelValue.filter(function(a) {
|
|
146
|
+
return !d.equals(a, o, s.equalityKey);
|
|
147
|
+
}) : i = this.modelValue ? [].concat(B(this.modelValue), [o]) : [o] : i = r ? null : o, this.focusedIndex = l, this.$emit("update:modelValue", i), this.$emit("change", {
|
|
148
|
+
event: e,
|
|
149
|
+
value: i
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
isSelected: function(e) {
|
|
155
|
+
var n = !1, l = this.getOptionValue(e);
|
|
156
|
+
if (this.multiple) {
|
|
157
|
+
if (this.modelValue) {
|
|
158
|
+
var s = T(this.modelValue), r;
|
|
159
|
+
try {
|
|
160
|
+
for (s.s(); !(r = s.n()).done; ) {
|
|
161
|
+
var o = r.value;
|
|
162
|
+
if (d.equals(o, l, this.equalityKey)) {
|
|
163
|
+
n = !0;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
} catch (i) {
|
|
168
|
+
s.e(i);
|
|
169
|
+
} finally {
|
|
170
|
+
s.f();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
} else
|
|
174
|
+
n = d.equals(this.modelValue, l, this.equalityKey);
|
|
175
|
+
return n;
|
|
176
|
+
},
|
|
177
|
+
onKeydown: function(e, n, l) {
|
|
178
|
+
switch (e.code) {
|
|
179
|
+
case "Space": {
|
|
180
|
+
this.onOptionSelect(e, n, l), e.preventDefault();
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
case "ArrowDown":
|
|
184
|
+
case "ArrowRight": {
|
|
185
|
+
this.onArrowRightKey(e.target), e.preventDefault();
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
case "ArrowUp":
|
|
189
|
+
case "ArrowLeft": {
|
|
190
|
+
this.onArrowLeftKey(e.target), e.preventDefault();
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
onArrowRightKey: function(e) {
|
|
196
|
+
var n = this.findNextElement(e);
|
|
197
|
+
n && (this.focusedIndex = d.findIndexInList(n, this.findAllElements()), f.focus(n));
|
|
198
|
+
},
|
|
199
|
+
onArrowLeftKey: function(e) {
|
|
200
|
+
var n = this.findPrevElement(e);
|
|
201
|
+
n && (this.focusedIndex = d.findIndexInList(n, this.findAllElements()), f.focus(n));
|
|
202
|
+
},
|
|
203
|
+
findAllElements: function() {
|
|
204
|
+
return f.find(this.$refs.container, '[data-pc-section="button"]');
|
|
205
|
+
},
|
|
206
|
+
findNextElement: function(e) {
|
|
207
|
+
return e.nextElementSibling ? f.getAttribute(e.nextElementSibling, "data-p-disabled") ? this.findNextElement(e.nextElementSibling) : e.nextElementSibling : null;
|
|
208
|
+
},
|
|
209
|
+
findPrevElement: function(e) {
|
|
210
|
+
return e.previousElementSibling ? f.getAttribute(e.previousElementSibling, "data-p-disabled") ? this.findPrevElement(e.previousElementSibling) : e.previousElementSibling : null;
|
|
211
|
+
},
|
|
212
|
+
onFocus: function(e) {
|
|
213
|
+
this.$emit("focus", e);
|
|
214
|
+
},
|
|
215
|
+
onBlur: function(e, n) {
|
|
216
|
+
e.target && e.relatedTarget && e.target.parentElement !== e.relatedTarget.parentElement && this.defaultTabIndexes(), this.$emit("blur", e, n);
|
|
217
|
+
},
|
|
218
|
+
findTabindex: function(e, n) {
|
|
219
|
+
return this.disabled || this.isOptionDisabled(e) || n !== this.focusedIndex ? "-1" : "0";
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
computed: {
|
|
223
|
+
equalityKey: function() {
|
|
224
|
+
return this.optionValue ? null : this.dataKey;
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
directives: {
|
|
228
|
+
ripple: g
|
|
229
|
+
}
|
|
230
|
+
}, P = ["aria-labelledby"], R = ["tabindex", "aria-label", "role", "aria-checked", "aria-disabled", "onClick", "onKeydown", "onBlur", "data-p-highlight", "data-p-disabled"];
|
|
231
|
+
function C(t, e, n, l, s, r) {
|
|
232
|
+
var o = A("ripple");
|
|
233
|
+
return h(), p("div", b({
|
|
234
|
+
ref: "container",
|
|
235
|
+
class: t.cx("root"),
|
|
236
|
+
role: "group",
|
|
237
|
+
"aria-labelledby": t.ariaLabelledby
|
|
238
|
+
}, t.ptmi("root")), [(h(!0), p(E, null, O(t.options, function(i, a) {
|
|
239
|
+
return w((h(), p("div", b({
|
|
240
|
+
key: r.getOptionRenderKey(i),
|
|
241
|
+
tabindex: r.findTabindex(i, a),
|
|
242
|
+
"aria-label": r.getOptionLabel(i),
|
|
243
|
+
role: t.multiple ? "checkbox" : "radio",
|
|
244
|
+
"aria-checked": r.isSelected(i),
|
|
245
|
+
"aria-disabled": r.isOptionDisabled(i),
|
|
246
|
+
class: t.cx("button", {
|
|
247
|
+
option: i
|
|
248
|
+
}),
|
|
249
|
+
onClick: function(c) {
|
|
250
|
+
return r.onOptionSelect(c, i, a);
|
|
251
|
+
},
|
|
252
|
+
onKeydown: function(c) {
|
|
253
|
+
return r.onKeydown(c, i, a);
|
|
254
|
+
},
|
|
255
|
+
onFocus: e[0] || (e[0] = function(u) {
|
|
256
|
+
return r.onFocus(u);
|
|
257
|
+
}),
|
|
258
|
+
onBlur: function(c) {
|
|
259
|
+
return r.onBlur(c, i);
|
|
260
|
+
}
|
|
261
|
+
}, r.getPTOptions(i, "button"), {
|
|
262
|
+
"data-p-highlight": r.isSelected(i),
|
|
263
|
+
"data-p-disabled": r.isOptionDisabled(i)
|
|
264
|
+
}), [x(t.$slots, "option", {
|
|
265
|
+
option: i,
|
|
266
|
+
index: a,
|
|
267
|
+
class: K(t.cx("label"))
|
|
268
|
+
}, function() {
|
|
269
|
+
return [I("span", b({
|
|
270
|
+
class: t.cx("label")
|
|
271
|
+
}, r.getPTOptions(i, "label")), D(r.getOptionLabel(i)), 17)];
|
|
272
|
+
})], 16, R)), [[o]]);
|
|
273
|
+
}), 128))], 16, P);
|
|
89
274
|
}
|
|
275
|
+
q.render = C;
|
|
90
276
|
export {
|
|
91
|
-
|
|
92
|
-
k as debounceFilter,
|
|
93
|
-
M as getLifeCycleTarget,
|
|
94
|
-
G as increaseWithUnit,
|
|
95
|
-
R as injectLocal,
|
|
96
|
-
V as isClient,
|
|
97
|
-
E as isObject,
|
|
98
|
-
d as noop,
|
|
99
|
-
_ as notNullish,
|
|
100
|
-
U as pxValue,
|
|
101
|
-
I as throttleFilter,
|
|
102
|
-
q as toArray,
|
|
103
|
-
H as tryOnMounted,
|
|
104
|
-
L as tryOnScopeDispose,
|
|
105
|
-
z as useDebounceFn,
|
|
106
|
-
B as useThrottleFn,
|
|
107
|
-
J as watchImmediate
|
|
277
|
+
q as default
|
|
108
278
|
};
|
package/dist/index184.js
CHANGED
|
@@ -1,4 +1,108 @@
|
|
|
1
|
-
|
|
1
|
+
import { onMounted as C, nextTick as D, watch as F, getCurrentInstance as T, getCurrentScope as v, onScopeDispose as S, isRef as N, hasInjectionContext as O, inject as W, toValue as w } from "vue";
|
|
2
|
+
function L(e, n) {
|
|
3
|
+
return v() ? (S(e, n), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const b = /* @__PURE__ */ new WeakMap(), R = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
6
|
+
var n;
|
|
7
|
+
const t = e[0], r = (n = T()) === null || n === void 0 ? void 0 : n.proxy, o = r ?? v();
|
|
8
|
+
if (o == null && !O()) throw new Error("injectLocal must be called in setup");
|
|
9
|
+
return o && b.has(o) && t in b.get(o) ? b.get(o)[t] : W(...e);
|
|
10
|
+
}, V = typeof window < "u" && typeof document < "u";
|
|
11
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
|
+
const _ = (e) => e != null, P = Object.prototype.toString, E = (e) => P.call(e) === "[object Object]", d = () => {
|
|
13
|
+
};
|
|
14
|
+
function g(e, n) {
|
|
15
|
+
function t(...r) {
|
|
16
|
+
return new Promise((o, i) => {
|
|
17
|
+
Promise.resolve(e(() => n.apply(this, r), {
|
|
18
|
+
fn: n,
|
|
19
|
+
thisArg: this,
|
|
20
|
+
args: r
|
|
21
|
+
})).then(o).catch(i);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
}
|
|
26
|
+
function k(e, n = {}) {
|
|
27
|
+
let t, r, o = d;
|
|
28
|
+
const i = (u) => {
|
|
29
|
+
clearTimeout(u), o(), o = d;
|
|
30
|
+
};
|
|
31
|
+
let l;
|
|
32
|
+
return (u) => {
|
|
33
|
+
const s = w(e), c = w(n.maxWait);
|
|
34
|
+
return t && i(t), s <= 0 || c !== void 0 && c <= 0 ? (r && (i(r), r = void 0), Promise.resolve(u())) : new Promise((f, p) => {
|
|
35
|
+
o = n.rejectOnCancel ? p : f, l = u, c && !r && (r = setTimeout(() => {
|
|
36
|
+
t && i(t), r = void 0, f(l());
|
|
37
|
+
}, c)), t = setTimeout(() => {
|
|
38
|
+
r && i(r), r = void 0, f(u());
|
|
39
|
+
}, s);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function I(...e) {
|
|
44
|
+
let n = 0, t, r = !0, o = d, i, l, a, u, s;
|
|
45
|
+
!N(e[0]) && typeof e[0] == "object" ? { delay: l, trailing: a = !0, leading: u = !0, rejectOnCancel: s = !1 } = e[0] : [l, a = !0, u = !0, s = !1] = e;
|
|
46
|
+
const c = () => {
|
|
47
|
+
t && (clearTimeout(t), t = void 0, o(), o = d);
|
|
48
|
+
};
|
|
49
|
+
return (p) => {
|
|
50
|
+
const m = w(l), y = Date.now() - n, h = () => i = p();
|
|
51
|
+
return c(), m <= 0 ? (n = Date.now(), h()) : (y > m ? (n = Date.now(), (u || !r) && h()) : a && (i = new Promise((j, x) => {
|
|
52
|
+
o = s ? x : j, t = setTimeout(() => {
|
|
53
|
+
n = Date.now(), r = !0, j(h()), c();
|
|
54
|
+
}, Math.max(0, m - y));
|
|
55
|
+
})), !u && !t && (t = setTimeout(() => r = !0, m)), r = !1, i);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function G(e, n) {
|
|
59
|
+
var t;
|
|
60
|
+
if (typeof e == "number") return e + n;
|
|
61
|
+
const r = ((t = e.match(/^-?\d+\.?\d*/)) === null || t === void 0 ? void 0 : t[0]) || "", o = e.slice(r.length), i = Number.parseFloat(r) + n;
|
|
62
|
+
return Number.isNaN(i) ? e : i + o;
|
|
63
|
+
}
|
|
64
|
+
function U(e) {
|
|
65
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
66
|
+
}
|
|
67
|
+
function q(e) {
|
|
68
|
+
return Array.isArray(e) ? e : [e];
|
|
69
|
+
}
|
|
70
|
+
function M(e) {
|
|
71
|
+
return T();
|
|
72
|
+
}
|
|
73
|
+
// @__NO_SIDE_EFFECTS__
|
|
74
|
+
function z(e, n = 200, t = {}) {
|
|
75
|
+
return g(k(n, t), e);
|
|
76
|
+
}
|
|
77
|
+
// @__NO_SIDE_EFFECTS__
|
|
78
|
+
function B(e, n = 200, t = !1, r = !0, o = !1) {
|
|
79
|
+
return g(I(n, t, r, o), e);
|
|
80
|
+
}
|
|
81
|
+
function H(e, n = !0, t) {
|
|
82
|
+
M() ? C(e, t) : n ? e() : D(e);
|
|
83
|
+
}
|
|
84
|
+
function J(e, n, t) {
|
|
85
|
+
return F(e, n, {
|
|
86
|
+
...t,
|
|
87
|
+
immediate: !0
|
|
88
|
+
});
|
|
89
|
+
}
|
|
2
90
|
export {
|
|
3
|
-
|
|
91
|
+
g as createFilterWrapper,
|
|
92
|
+
k as debounceFilter,
|
|
93
|
+
M as getLifeCycleTarget,
|
|
94
|
+
G as increaseWithUnit,
|
|
95
|
+
R as injectLocal,
|
|
96
|
+
V as isClient,
|
|
97
|
+
E as isObject,
|
|
98
|
+
d as noop,
|
|
99
|
+
_ as notNullish,
|
|
100
|
+
U as pxValue,
|
|
101
|
+
I as throttleFilter,
|
|
102
|
+
q as toArray,
|
|
103
|
+
H as tryOnMounted,
|
|
104
|
+
L as tryOnScopeDispose,
|
|
105
|
+
z as useDebounceFn,
|
|
106
|
+
B as useThrottleFn,
|
|
107
|
+
J as watchImmediate
|
|
4
108
|
};
|