@quoreadmin/ui 1.10.17 → 1.10.19
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/index138.js +137 -114
- package/dist/index149.js +1 -1
- package/dist/index15.js +43 -38
- package/dist/index151.js +4 -4
- package/dist/index183.js +3 -3
- package/dist/index186.js +4 -4
- package/dist/index193.js +10 -10
- package/dist/index195.js +10 -10
- package/dist/index198.js +17 -17
- 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 +1218 -25
- 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/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index22.js +28 -26
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index227.js +157 -84
- package/dist/index228.js +205 -384
- package/dist/index229.js +37 -22
- package/dist/index230.js +10 -127
- package/dist/index231.js +122 -33
- package/dist/index232.js +38 -80
- package/dist/index233.js +407 -20
- package/dist/index234.js +80 -20
- package/dist/index235.js +12 -12
- package/dist/index236.js +87 -19
- package/dist/index237.js +11 -11
- package/dist/index238.js +19 -160
- package/dist/index239.js +11 -11
- package/dist/index240.js +13 -15
- package/dist/index241.js +20 -197
- package/dist/index242.js +3629 -63
- package/dist/index243.js +52 -31
- package/dist/index244.js +73 -36
- package/dist/index245.js +51 -160
- package/dist/index246.js +212 -225
- package/dist/index247.js +10 -37
- package/dist/index248.js +57 -10
- package/dist/index249.js +61 -22
- package/dist/index250.js +54 -22
- package/dist/index251.js +75 -20
- package/dist/index252.js +681 -791
- package/dist/index253.js +33 -693
- package/dist/index254.js +56 -168
- package/dist/index255.js +11 -22
- package/dist/index256.js +705 -20
- package/dist/index257.js +820 -20
- package/dist/index258.js +22 -3
- package/dist/index259.js +21 -186
- package/dist/index260.js +19 -132
- package/dist/index261.js +744 -1131
- package/dist/index262.js +701 -19
- package/dist/index263.js +176 -22
- package/dist/index264.js +8 -8
- package/dist/index265.js +13 -22
- package/dist/index266.js +10 -10
- package/dist/index267.js +3 -20
- package/dist/index268.js +187 -2
- package/dist/index269.js +133 -2
- package/dist/index270.js +149 -3624
- package/dist/index271.js +1216 -48
- package/dist/index272.js +20 -77
- package/dist/index273.js +22 -52
- package/dist/index274.js +20 -215
- package/dist/index275.js +22 -10
- package/dist/index276.js +29 -57
- package/dist/index277.js +20 -61
- package/dist/index278.js +20 -54
- package/dist/index279.js +2 -75
- package/dist/index280.js +2 -726
- package/dist/index281.js +22 -42
- package/dist/index282.js +190 -55
- package/dist/index283.js +70 -11
- package/dist/index284.js +33 -704
- package/dist/index285.js +37 -817
- package/dist/index287.js +2 -8
- package/dist/index290.js +79 -2
- package/dist/index291.js +8 -79
- package/dist/index292.js +3 -54
- package/dist/index293.js +26 -25
- package/dist/index294.js +1534 -22
- package/dist/index295.js +386 -22
- package/dist/index296.js +2731 -16
- package/dist/index297.js +86 -17
- package/dist/index298.js +3792 -23
- package/dist/index299.js +52 -254
- package/dist/index300.js +15 -6
- package/dist/index301.js +74 -130
- package/dist/index302.js +195 -66
- package/dist/index303.js +240 -81
- package/dist/index304.js +256 -23
- package/dist/index305.js +5 -15
- package/dist/index306.js +131 -66
- package/dist/index307.js +72 -3
- package/dist/index308.js +87 -2
- package/dist/index309.js +24 -78
- package/dist/index310.js +10 -47
- package/dist/index311.js +74 -5
- package/dist/index312.js +3 -4
- package/dist/index313.js +2 -179
- package/dist/index314.js +78 -58
- package/dist/index315.js +53 -75
- package/dist/index316.js +6 -3
- package/dist/index317.js +4 -26
- package/dist/index318.js +149 -1504
- package/dist/index319.js +55 -378
- package/dist/index320.js +75 -2731
- package/dist/index321.js +75 -82
- package/dist/index322.js +22 -3792
- package/dist/index323.js +931 -56
- package/dist/index324.js +21 -78
- package/dist/index325.js +13 -15
- package/dist/index326.js +20 -935
- package/dist/index327.js +68 -21
- package/dist/index328.js +19 -20
- package/dist/index329.js +19 -20
- package/dist/index330.js +52 -67
- package/dist/index331.js +22 -19
- package/dist/index332.js +22 -19
- package/dist/index333.js +62 -21
- package/dist/index334.js +19 -15
- package/dist/index335.js +21 -62
- package/dist/index336.js +22 -15
- package/dist/index337.js +16 -84
- package/dist/index338.js +16 -201
- package/dist/index339.js +23 -246
- package/dist/index341.js +8 -18
- package/dist/index342.js +12 -56
- package/dist/index343.js +53 -27
- package/dist/index344.js +11 -6
- package/dist/index345.js +12 -50
- package/dist/index346.js +58 -7
- package/dist/index347.js +50 -10
- package/dist/index348.js +31 -7
- package/dist/index349.js +2 -28
- package/dist/index350.js +5 -2
- package/dist/index351.js +2 -70
- package/dist/index352.js +21 -165
- package/dist/index353.js +40 -8
- package/dist/index354.js +2 -13
- package/dist/index355.js +11 -55
- package/dist/index356.js +18 -10
- package/dist/index357.js +10 -14
- package/dist/index358.js +10 -58
- package/dist/index359.js +16 -51
- package/dist/index360.js +2 -31
- package/dist/index361.js +9 -2
- package/dist/index362.js +10 -5
- package/dist/index363.js +14 -2
- package/dist/index364.js +19 -23
- package/dist/index365.js +56 -40
- package/dist/index366.js +29 -2
- package/dist/index367.js +7 -11
- package/dist/index368.js +49 -17
- package/dist/index369.js +6 -9
- package/dist/index370.js +12 -10
- package/dist/index371.js +6 -16
- package/dist/index372.js +28 -2
- package/dist/index373.js +2 -9
- package/dist/index374.js +70 -10
- package/dist/index375.js +165 -12
- package/dist/index376.js +1 -1
- package/dist/index377.js +1 -1
- package/dist/index378.js +2 -2
- 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 -13
- package/dist/index385.js +4 -7
- package/dist/index386.js +3 -11
- package/dist/index387.js +13 -5
- package/dist/index388.js +7 -33
- package/dist/index389.js +11 -30
- package/dist/index390.js +5 -28
- package/dist/index391.js +33 -61
- package/dist/index392.js +29 -99
- package/dist/index393.js +28 -91
- package/dist/index394.js +60 -16
- package/dist/index395.js +16 -97
- package/dist/index396.js +1 -1
- package/dist/index4.js +19 -21
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index88.js +43 -31
- package/dist/src/components/comment/comment.d.ts +9 -0
- package/dist/src/components/comment/comment.stories.d.ts +9 -0
- package/dist/src/components/comment-section/comment-section.d.ts +9 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +9 -0
- package/dist/src/components/data-filter/data-filter.d.ts +27 -0
- package/dist/src/components/data-filter/data-filter.stories.d.ts +8 -0
- package/dist/src/components/data-list/data-list.d.ts +27 -0
- package/dist/src/components/grid/grid.stories.d.ts +36 -0
- package/dist/src/components/popover/popover.d.ts +17 -2
- package/dist/src/components/popover/popover.stories.d.ts +63 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +9 -0
- package/dist/src/views/lists.vue.d.ts +54 -0
- package/dist/src/views/tables.vue.d.ts +27 -0
- package/package.json +1 -1
- package/dist/index204.js +0 -20
package/dist/index229.js
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
function g(e) {
|
|
2
|
+
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
3
|
+
}
|
|
4
|
+
function D(e) {
|
|
5
|
+
return g(e) ? new Date(e.getTime()) : e == null ? /* @__PURE__ */ new Date(NaN) : new Date(e);
|
|
6
|
+
}
|
|
7
|
+
function d(e) {
|
|
8
|
+
return g(e) && !isNaN(e.getTime());
|
|
9
|
+
}
|
|
10
|
+
function k(e) {
|
|
11
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
12
|
+
if (!(r >= 0 && r <= 6))
|
|
13
|
+
throw new RangeError("weekStartsOn must be between 0 and 6");
|
|
14
|
+
var t = D(e), i = t.getDay(), n = (i + 7 - r) % 7;
|
|
15
|
+
return t.setDate(t.getDate() - n), t.setHours(0, 0, 0, 0), t;
|
|
16
|
+
}
|
|
17
|
+
function W(e) {
|
|
18
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = r.firstDayOfWeek, i = t === void 0 ? 0 : t, n = r.firstWeekContainsDate, f = n === void 0 ? 1 : n;
|
|
19
|
+
if (!(f >= 1 && f <= 7))
|
|
20
|
+
throw new RangeError("firstWeekContainsDate must be between 1 and 7");
|
|
21
|
+
for (var s = D(e), u = s.getFullYear(), a = /* @__PURE__ */ new Date(0), o = u + 1; o >= u - 1 && (a.setFullYear(o, 0, f), a.setHours(0, 0, 0, 0), a = k(a, i), !(s.getTime() >= a.getTime())); o--)
|
|
22
|
+
;
|
|
23
|
+
return a;
|
|
24
|
+
}
|
|
25
|
+
function m(e) {
|
|
26
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = r.firstDayOfWeek, i = t === void 0 ? 0 : t, n = r.firstWeekContainsDate, f = n === void 0 ? 1 : n, s = D(e), u = k(s, i), a = W(s, {
|
|
27
|
+
firstDayOfWeek: i,
|
|
28
|
+
firstWeekContainsDate: f
|
|
29
|
+
}), o = u.getTime() - a.getTime();
|
|
30
|
+
return Math.round(o / (168 * 3600 * 1e3)) + 1;
|
|
31
|
+
}
|
|
22
32
|
export {
|
|
23
|
-
|
|
33
|
+
m as getWeek,
|
|
34
|
+
g as isDate,
|
|
35
|
+
d as isValidDate,
|
|
36
|
+
k as startOfWeek,
|
|
37
|
+
W as startOfWeekYear,
|
|
38
|
+
D as toDate
|
|
24
39
|
};
|
package/dist/index230.js
CHANGED
|
@@ -1,129 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return typeof e;
|
|
11
|
-
} : function(e) {
|
|
12
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
13
|
-
}, m(o);
|
|
14
|
-
}
|
|
15
|
-
function v(o, e) {
|
|
16
|
-
var t = Object.keys(o);
|
|
17
|
-
if (Object.getOwnPropertySymbols) {
|
|
18
|
-
var r = Object.getOwnPropertySymbols(o);
|
|
19
|
-
e && (r = r.filter(function(n) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(o, n).enumerable;
|
|
21
|
-
})), t.push.apply(t, r);
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
}
|
|
25
|
-
function F(o) {
|
|
26
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
27
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
28
|
-
e % 2 ? v(Object(t), !0).forEach(function(r) {
|
|
29
|
-
S(o, r, t[r]);
|
|
30
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : v(Object(t)).forEach(function(r) {
|
|
31
|
-
Object.defineProperty(o, r, Object.getOwnPropertyDescriptor(t, r));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return o;
|
|
35
|
-
}
|
|
36
|
-
function S(o, e, t) {
|
|
37
|
-
return e = y(e), e in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
38
|
-
}
|
|
39
|
-
function y(o) {
|
|
40
|
-
var e = O(o, "string");
|
|
41
|
-
return m(e) == "symbol" ? e : String(e);
|
|
42
|
-
}
|
|
43
|
-
function O(o, e) {
|
|
44
|
-
if (m(o) != "object" || !o) return o;
|
|
45
|
-
var t = o[Symbol.toPrimitive];
|
|
46
|
-
if (t !== void 0) {
|
|
47
|
-
var r = t.call(o, e);
|
|
48
|
-
if (m(r) != "object") return r;
|
|
49
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
50
|
-
}
|
|
51
|
-
return (e === "string" ? String : Number)(o);
|
|
52
|
-
}
|
|
53
|
-
var x = g.extend("focustrap", {
|
|
54
|
-
mounted: function(e, t) {
|
|
55
|
-
var r = t.value || {}, n = r.disabled;
|
|
56
|
-
n || (this.createHiddenFocusableElements(e, t), this.bind(e, t), this.autoElementFocus(e, t)), e.setAttribute("data-pd-focustrap", !0), this.$el = e;
|
|
57
|
-
},
|
|
58
|
-
updated: function(e, t) {
|
|
59
|
-
var r = t.value || {}, n = r.disabled;
|
|
60
|
-
n && this.unbind(e);
|
|
61
|
-
},
|
|
62
|
-
unmounted: function(e) {
|
|
63
|
-
this.unbind(e);
|
|
64
|
-
},
|
|
65
|
-
methods: {
|
|
66
|
-
getComputedSelector: function(e) {
|
|
67
|
-
return ':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e ?? "");
|
|
68
|
-
},
|
|
69
|
-
bind: function(e, t) {
|
|
70
|
-
var r = this, n = t.value || {}, u = n.onFocusIn, l = n.onFocusOut;
|
|
71
|
-
e.$_pfocustrap_mutationobserver = new MutationObserver(function(c) {
|
|
72
|
-
c.forEach(function(f) {
|
|
73
|
-
if (f.type === "childList" && !e.contains(document.activeElement)) {
|
|
74
|
-
var d = function p(a) {
|
|
75
|
-
var i = s.isFocusableElement(a) ? s.isFocusableElement(a, r.getComputedSelector(e.$_pfocustrap_focusableselector)) ? a : s.getFirstFocusableElement(e, r.getComputedSelector(e.$_pfocustrap_focusableselector)) : s.getFirstFocusableElement(a);
|
|
76
|
-
return h.isNotEmpty(i) ? i : a.nextSibling && p(a.nextSibling);
|
|
77
|
-
};
|
|
78
|
-
s.focus(d(f.nextSibling));
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}), e.$_pfocustrap_mutationobserver.disconnect(), e.$_pfocustrap_mutationobserver.observe(e, {
|
|
82
|
-
childList: !0
|
|
83
|
-
}), e.$_pfocustrap_focusinlistener = function(c) {
|
|
84
|
-
return u && u(c);
|
|
85
|
-
}, e.$_pfocustrap_focusoutlistener = function(c) {
|
|
86
|
-
return l && l(c);
|
|
87
|
-
}, e.addEventListener("focusin", e.$_pfocustrap_focusinlistener), e.addEventListener("focusout", e.$_pfocustrap_focusoutlistener);
|
|
88
|
-
},
|
|
89
|
-
unbind: function(e) {
|
|
90
|
-
e.$_pfocustrap_mutationobserver && e.$_pfocustrap_mutationobserver.disconnect(), e.$_pfocustrap_focusinlistener && e.removeEventListener("focusin", e.$_pfocustrap_focusinlistener) && (e.$_pfocustrap_focusinlistener = null), e.$_pfocustrap_focusoutlistener && e.removeEventListener("focusout", e.$_pfocustrap_focusoutlistener) && (e.$_pfocustrap_focusoutlistener = null);
|
|
91
|
-
},
|
|
92
|
-
autoFocus: function(e) {
|
|
93
|
-
this.autoElementFocus(this.$el, {
|
|
94
|
-
value: F(F({}, e), {}, {
|
|
95
|
-
autoFocus: !0
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
},
|
|
99
|
-
autoElementFocus: function(e, t) {
|
|
100
|
-
var r = t.value || {}, n = r.autoFocusSelector, u = n === void 0 ? "" : n, l = r.firstFocusableSelector, c = l === void 0 ? "" : l, f = r.autoFocus, d = f === void 0 ? !1 : f, p = s.getFirstFocusableElement(e, "[autofocus]".concat(this.getComputedSelector(u)));
|
|
101
|
-
d && !p && (p = s.getFirstFocusableElement(e, this.getComputedSelector(c))), s.focus(p);
|
|
102
|
-
},
|
|
103
|
-
onFirstHiddenElementFocus: function(e) {
|
|
104
|
-
var t, r = e.currentTarget, n = e.relatedTarget, u = n === r.$_pfocustrap_lasthiddenfocusableelement || !((t = this.$el) !== null && t !== void 0 && t.contains(n)) ? s.getFirstFocusableElement(r.parentElement, this.getComputedSelector(r.$_pfocustrap_focusableselector)) : r.$_pfocustrap_lasthiddenfocusableelement;
|
|
105
|
-
s.focus(u);
|
|
106
|
-
},
|
|
107
|
-
onLastHiddenElementFocus: function(e) {
|
|
108
|
-
var t, r = e.currentTarget, n = e.relatedTarget, u = n === r.$_pfocustrap_firsthiddenfocusableelement || !((t = this.$el) !== null && t !== void 0 && t.contains(n)) ? s.getLastFocusableElement(r.parentElement, this.getComputedSelector(r.$_pfocustrap_focusableselector)) : r.$_pfocustrap_firsthiddenfocusableelement;
|
|
109
|
-
s.focus(u);
|
|
110
|
-
},
|
|
111
|
-
createHiddenFocusableElements: function(e, t) {
|
|
112
|
-
var r = this, n = t.value || {}, u = n.tabIndex, l = u === void 0 ? 0 : u, c = n.firstFocusableSelector, f = c === void 0 ? "" : c, d = n.lastFocusableSelector, p = d === void 0 ? "" : d, a = function(_) {
|
|
113
|
-
return s.createElement("span", {
|
|
114
|
-
class: "p-hidden-accessible p-hidden-focusable",
|
|
115
|
-
tabIndex: l,
|
|
116
|
-
role: "presentation",
|
|
117
|
-
"aria-hidden": !0,
|
|
118
|
-
"data-p-hidden-accessible": !0,
|
|
119
|
-
"data-p-hidden-focusable": !0,
|
|
120
|
-
onFocus: _?.bind(r)
|
|
121
|
-
});
|
|
122
|
-
}, i = a(this.onFirstHiddenElementFocus), b = a(this.onLastHiddenElementFocus);
|
|
123
|
-
i.$_pfocustrap_lasthiddenfocusableelement = b, i.$_pfocustrap_focusableselector = f, i.setAttribute("data-pc-section", "firstfocusableelement"), b.$_pfocustrap_firsthiddenfocusableelement = i, b.$_pfocustrap_focusableselector = p, b.setAttribute("data-pc-section", "lastfocusableelement"), e.prepend(i), e.append(b);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
1
|
+
var e = {
|
|
2
|
+
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
3
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
4
|
+
weekdays: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
5
|
+
weekdaysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
6
|
+
weekdaysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7
|
+
firstDayOfWeek: 0,
|
|
8
|
+
firstWeekContainsDate: 1
|
|
9
|
+
};
|
|
127
10
|
export {
|
|
128
|
-
|
|
11
|
+
e as default
|
|
129
12
|
};
|
package/dist/index231.js
CHANGED
|
@@ -1,40 +1,129 @@
|
|
|
1
|
-
import { DomHandler as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { DomHandler as s, ObjectUtils as h } from "./index180.js";
|
|
2
|
+
import E from "./index286.js";
|
|
3
|
+
import $ from "./index287.js";
|
|
4
|
+
var g = E.extend({
|
|
5
|
+
style: $
|
|
6
|
+
});
|
|
7
|
+
function m(o) {
|
|
8
|
+
"@babel/helpers - typeof";
|
|
9
|
+
return m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
10
|
+
return typeof e;
|
|
11
|
+
} : function(e) {
|
|
12
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
13
|
+
}, m(o);
|
|
14
|
+
}
|
|
15
|
+
function v(o, e) {
|
|
16
|
+
var t = Object.keys(o);
|
|
17
|
+
if (Object.getOwnPropertySymbols) {
|
|
18
|
+
var r = Object.getOwnPropertySymbols(o);
|
|
19
|
+
e && (r = r.filter(function(n) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(o, n).enumerable;
|
|
21
|
+
})), t.push.apply(t, r);
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
}
|
|
25
|
+
function F(o) {
|
|
26
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
27
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
28
|
+
e % 2 ? v(Object(t), !0).forEach(function(r) {
|
|
29
|
+
S(o, r, t[r]);
|
|
30
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : v(Object(t)).forEach(function(r) {
|
|
31
|
+
Object.defineProperty(o, r, Object.getOwnPropertyDescriptor(t, r));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return o;
|
|
35
|
+
}
|
|
36
|
+
function S(o, e, t) {
|
|
37
|
+
return e = y(e), e in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
38
|
+
}
|
|
39
|
+
function y(o) {
|
|
40
|
+
var e = O(o, "string");
|
|
41
|
+
return m(e) == "symbol" ? e : String(e);
|
|
42
|
+
}
|
|
43
|
+
function O(o, e) {
|
|
44
|
+
if (m(o) != "object" || !o) return o;
|
|
45
|
+
var t = o[Symbol.toPrimitive];
|
|
46
|
+
if (t !== void 0) {
|
|
47
|
+
var r = t.call(o, e);
|
|
48
|
+
if (m(r) != "object") return r;
|
|
49
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
50
|
+
}
|
|
51
|
+
return (e === "string" ? String : Number)(o);
|
|
52
|
+
}
|
|
53
|
+
var x = g.extend("focustrap", {
|
|
54
|
+
mounted: function(e, t) {
|
|
55
|
+
var r = t.value || {}, n = r.disabled;
|
|
56
|
+
n || (this.createHiddenFocusableElements(e, t), this.bind(e, t), this.autoElementFocus(e, t)), e.setAttribute("data-pd-focustrap", !0), this.$el = e;
|
|
14
57
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
58
|
+
updated: function(e, t) {
|
|
59
|
+
var r = t.value || {}, n = r.disabled;
|
|
60
|
+
n && this.unbind(e);
|
|
19
61
|
},
|
|
20
|
-
|
|
21
|
-
this.
|
|
62
|
+
unmounted: function(e) {
|
|
63
|
+
this.unbind(e);
|
|
22
64
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
65
|
+
methods: {
|
|
66
|
+
getComputedSelector: function(e) {
|
|
67
|
+
return ':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e ?? "");
|
|
68
|
+
},
|
|
69
|
+
bind: function(e, t) {
|
|
70
|
+
var r = this, n = t.value || {}, u = n.onFocusIn, l = n.onFocusOut;
|
|
71
|
+
e.$_pfocustrap_mutationobserver = new MutationObserver(function(c) {
|
|
72
|
+
c.forEach(function(f) {
|
|
73
|
+
if (f.type === "childList" && !e.contains(document.activeElement)) {
|
|
74
|
+
var d = function p(a) {
|
|
75
|
+
var i = s.isFocusableElement(a) ? s.isFocusableElement(a, r.getComputedSelector(e.$_pfocustrap_focusableselector)) ? a : s.getFirstFocusableElement(e, r.getComputedSelector(e.$_pfocustrap_focusableselector)) : s.getFirstFocusableElement(a);
|
|
76
|
+
return h.isNotEmpty(i) ? i : a.nextSibling && p(a.nextSibling);
|
|
77
|
+
};
|
|
78
|
+
s.focus(d(f.nextSibling));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}), e.$_pfocustrap_mutationobserver.disconnect(), e.$_pfocustrap_mutationobserver.observe(e, {
|
|
82
|
+
childList: !0
|
|
83
|
+
}), e.$_pfocustrap_focusinlistener = function(c) {
|
|
84
|
+
return u && u(c);
|
|
85
|
+
}, e.$_pfocustrap_focusoutlistener = function(c) {
|
|
86
|
+
return l && l(c);
|
|
87
|
+
}, e.addEventListener("focusin", e.$_pfocustrap_focusinlistener), e.addEventListener("focusout", e.$_pfocustrap_focusoutlistener);
|
|
88
|
+
},
|
|
89
|
+
unbind: function(e) {
|
|
90
|
+
e.$_pfocustrap_mutationobserver && e.$_pfocustrap_mutationobserver.disconnect(), e.$_pfocustrap_focusinlistener && e.removeEventListener("focusin", e.$_pfocustrap_focusinlistener) && (e.$_pfocustrap_focusinlistener = null), e.$_pfocustrap_focusoutlistener && e.removeEventListener("focusout", e.$_pfocustrap_focusoutlistener) && (e.$_pfocustrap_focusoutlistener = null);
|
|
91
|
+
},
|
|
92
|
+
autoFocus: function(e) {
|
|
93
|
+
this.autoElementFocus(this.$el, {
|
|
94
|
+
value: F(F({}, e), {}, {
|
|
95
|
+
autoFocus: !0
|
|
96
|
+
})
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
autoElementFocus: function(e, t) {
|
|
100
|
+
var r = t.value || {}, n = r.autoFocusSelector, u = n === void 0 ? "" : n, l = r.firstFocusableSelector, c = l === void 0 ? "" : l, f = r.autoFocus, d = f === void 0 ? !1 : f, p = s.getFirstFocusableElement(e, "[autofocus]".concat(this.getComputedSelector(u)));
|
|
101
|
+
d && !p && (p = s.getFirstFocusableElement(e, this.getComputedSelector(c))), s.focus(p);
|
|
102
|
+
},
|
|
103
|
+
onFirstHiddenElementFocus: function(e) {
|
|
104
|
+
var t, r = e.currentTarget, n = e.relatedTarget, u = n === r.$_pfocustrap_lasthiddenfocusableelement || !((t = this.$el) !== null && t !== void 0 && t.contains(n)) ? s.getFirstFocusableElement(r.parentElement, this.getComputedSelector(r.$_pfocustrap_focusableselector)) : r.$_pfocustrap_lasthiddenfocusableelement;
|
|
105
|
+
s.focus(u);
|
|
106
|
+
},
|
|
107
|
+
onLastHiddenElementFocus: function(e) {
|
|
108
|
+
var t, r = e.currentTarget, n = e.relatedTarget, u = n === r.$_pfocustrap_firsthiddenfocusableelement || !((t = this.$el) !== null && t !== void 0 && t.contains(n)) ? s.getLastFocusableElement(r.parentElement, this.getComputedSelector(r.$_pfocustrap_focusableselector)) : r.$_pfocustrap_firsthiddenfocusableelement;
|
|
109
|
+
s.focus(u);
|
|
110
|
+
},
|
|
111
|
+
createHiddenFocusableElements: function(e, t) {
|
|
112
|
+
var r = this, n = t.value || {}, u = n.tabIndex, l = u === void 0 ? 0 : u, c = n.firstFocusableSelector, f = c === void 0 ? "" : c, d = n.lastFocusableSelector, p = d === void 0 ? "" : d, a = function(_) {
|
|
113
|
+
return s.createElement("span", {
|
|
114
|
+
class: "p-hidden-accessible p-hidden-focusable",
|
|
115
|
+
tabIndex: l,
|
|
116
|
+
role: "presentation",
|
|
117
|
+
"aria-hidden": !0,
|
|
118
|
+
"data-p-hidden-accessible": !0,
|
|
119
|
+
"data-p-hidden-focusable": !0,
|
|
120
|
+
onFocus: _?.bind(r)
|
|
121
|
+
});
|
|
122
|
+
}, i = a(this.onFirstHiddenElementFocus), b = a(this.onLastHiddenElementFocus);
|
|
123
|
+
i.$_pfocustrap_lasthiddenfocusableelement = b, i.$_pfocustrap_focusableselector = f, i.setAttribute("data-pc-section", "firstfocusableelement"), b.$_pfocustrap_firsthiddenfocusableelement = i, b.$_pfocustrap_focusableselector = p, b.setAttribute("data-pc-section", "lastfocusableelement"), e.prepend(i), e.append(b);
|
|
26
124
|
}
|
|
27
125
|
}
|
|
28
|
-
};
|
|
29
|
-
function s(e, f, n, m, o, r) {
|
|
30
|
-
return r.inline ? t(e.$slots, "default", {
|
|
31
|
-
key: 0
|
|
32
|
-
}) : o.mounted ? (a(), l(i, {
|
|
33
|
-
key: 1,
|
|
34
|
-
to: n.appendTo
|
|
35
|
-
}, [t(e.$slots, "default")], 8, ["to"])) : u("", !0);
|
|
36
|
-
}
|
|
37
|
-
p.render = s;
|
|
126
|
+
});
|
|
38
127
|
export {
|
|
39
|
-
|
|
128
|
+
x as default
|
|
40
129
|
};
|
package/dist/index232.js
CHANGED
|
@@ -1,82 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
nextItemIcon: "p-galleria-item-next-icon",
|
|
39
|
-
caption: "p-galleria-caption",
|
|
40
|
-
indicators: "p-galleria-indicators p-reset",
|
|
41
|
-
indicator: function(i) {
|
|
42
|
-
var a = i.instance, e = i.index;
|
|
43
|
-
return ["p-galleria-indicator", {
|
|
44
|
-
"p-highlight": a.isIndicatorItemActive(e)
|
|
45
|
-
}];
|
|
46
|
-
},
|
|
47
|
-
indicatorButton: "p-link",
|
|
48
|
-
thumbnailWrapper: "p-galleria-thumbnail-wrapper",
|
|
49
|
-
thumbnailContainer: "p-galleria-thumbnail-container",
|
|
50
|
-
previousThumbnailButton: function(i) {
|
|
51
|
-
var a = i.instance;
|
|
52
|
-
return ["p-galleria-thumbnail-prev p-link", {
|
|
53
|
-
"p-disabled": a.isNavBackwardDisabled()
|
|
54
|
-
}];
|
|
55
|
-
},
|
|
56
|
-
previousThumbnailIcon: "p-galleria-thumbnail-prev-icon",
|
|
57
|
-
thumbnailItemsContainer: "p-galleria-thumbnail-items-container",
|
|
58
|
-
thumbnailItems: "p-galleria-thumbnail-items",
|
|
59
|
-
thumbnailItem: function(i) {
|
|
60
|
-
var a = i.instance, e = i.index, n = i.activeIndex;
|
|
61
|
-
return ["p-galleria-thumbnail-item", {
|
|
62
|
-
"p-galleria-thumbnail-item-current": n === e,
|
|
63
|
-
"p-galleria-thumbnail-item-active": a.isItemActive(e),
|
|
64
|
-
"p-galleria-thumbnail-item-start": a.firstItemAciveIndex() === e,
|
|
65
|
-
"p-galleria-thumbnail-item-end": a.lastItemActiveIndex() === e
|
|
66
|
-
}];
|
|
67
|
-
},
|
|
68
|
-
thumbnailItemContent: "p-galleria-thumbnail-item-content",
|
|
69
|
-
nextThumbnailButton: function(i) {
|
|
70
|
-
var a = i.instance;
|
|
71
|
-
return ["p-galleria-thumbnail-next p-link", {
|
|
72
|
-
"p-disabled": a.isNavForwardDisabled()
|
|
73
|
-
}];
|
|
74
|
-
},
|
|
75
|
-
nextThumbnailIcon: "p-galleria-thumbnail-next-icon"
|
|
76
|
-
}, s = l.extend({
|
|
77
|
-
name: "galleria",
|
|
78
|
-
classes: r
|
|
79
|
-
});
|
|
1
|
+
import { DomHandler as d } from "./index180.js";
|
|
2
|
+
import { renderSlot as t, openBlock as a, createBlock as l, Teleport as i, createCommentVNode as u } from "vue";
|
|
3
|
+
var p = {
|
|
4
|
+
name: "Portal",
|
|
5
|
+
props: {
|
|
6
|
+
appendTo: {
|
|
7
|
+
type: [String, Object],
|
|
8
|
+
default: "body"
|
|
9
|
+
},
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
data: function() {
|
|
16
|
+
return {
|
|
17
|
+
mounted: !1
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
mounted: function() {
|
|
21
|
+
this.mounted = d.isClient();
|
|
22
|
+
},
|
|
23
|
+
computed: {
|
|
24
|
+
inline: function() {
|
|
25
|
+
return this.disabled || this.appendTo === "self";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function s(e, f, n, m, o, r) {
|
|
30
|
+
return r.inline ? t(e.$slots, "default", {
|
|
31
|
+
key: 0
|
|
32
|
+
}) : o.mounted ? (a(), l(i, {
|
|
33
|
+
key: 1,
|
|
34
|
+
to: n.appendTo
|
|
35
|
+
}, [t(e.$slots, "default")], 8, ["to"])) : u("", !0);
|
|
36
|
+
}
|
|
37
|
+
p.render = s;
|
|
80
38
|
export {
|
|
81
|
-
|
|
39
|
+
p as default
|
|
82
40
|
};
|