@quoreadmin/ui 1.10.19 → 1.10.21
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/index131.js +168 -147
- package/dist/index149.js +78 -68
- package/dist/index151.js +4 -4
- package/dist/index157.js +30 -29
- 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 +1106 -5816
- package/dist/index201.js +5922 -19
- package/dist/index202.js +199 -10
- package/dist/index203.js +25 -1218
- package/dist/index204.js +20 -0
- 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/index227.js +84 -157
- package/dist/index228.js +384 -205
- package/dist/index229.js +22 -37
- package/dist/index230.js +127 -10
- package/dist/index231.js +33 -122
- package/dist/index232.js +80 -38
- package/dist/index233.js +20 -407
- package/dist/index234.js +20 -80
- package/dist/index235.js +12 -12
- package/dist/index236.js +19 -87
- package/dist/index237.js +11 -11
- package/dist/index238.js +160 -19
- package/dist/index239.js +228 -20
- package/dist/index24.js +57 -56
- package/dist/index240.js +36 -19
- package/dist/index241.js +10 -22
- package/dist/index242.js +149 -3624
- package/dist/index243.js +20 -55
- package/dist/index244.js +22 -77
- package/dist/index245.js +190 -43
- package/dist/index246.js +66 -211
- package/dist/index247.js +33 -9
- package/dist/index248.js +36 -53
- package/dist/index249.js +22 -61
- package/dist/index250.js +22 -54
- package/dist/index251.js +20 -75
- package/dist/index252.js +791 -681
- package/dist/index253.js +693 -33
- package/dist/index254.js +168 -56
- package/dist/index255.js +22 -11
- package/dist/index256.js +20 -705
- package/dist/index257.js +20 -820
- package/dist/index258.js +3 -22
- package/dist/index259.js +186 -21
- package/dist/index260.js +132 -19
- package/dist/index261.js +1131 -744
- package/dist/index262.js +19 -701
- package/dist/index263.js +22 -176
- package/dist/index264.js +8 -8
- package/dist/index265.js +22 -13
- package/dist/index266.js +10 -10
- package/dist/index267.js +20 -3
- package/dist/index268.js +2 -187
- package/dist/index269.js +2 -133
- package/dist/index270.js +3624 -149
- package/dist/index271.js +48 -1216
- package/dist/index272.js +77 -20
- package/dist/index273.js +52 -22
- package/dist/index274.js +215 -20
- package/dist/index275.js +10 -22
- package/dist/index276.js +57 -29
- package/dist/index277.js +61 -20
- package/dist/index278.js +54 -20
- package/dist/index279.js +75 -2
- package/dist/index280.js +726 -2
- package/dist/index281.js +42 -22
- package/dist/index282.js +55 -190
- package/dist/index283.js +11 -70
- package/dist/index284.js +704 -33
- package/dist/index285.js +817 -37
- package/dist/index287.js +8 -2
- package/dist/index290.js +2 -79
- package/dist/index291.js +79 -8
- package/dist/index292.js +54 -3
- package/dist/index293.js +25 -26
- package/dist/index294.js +22 -1534
- package/dist/index295.js +22 -386
- package/dist/index296.js +16 -2731
- package/dist/index297.js +17 -86
- package/dist/index298.js +23 -3792
- package/dist/index299.js +3 -60
- package/dist/index300.js +27 -15
- package/dist/index301.js +76 -81
- package/dist/index302.js +22 -202
- package/dist/index303.js +915 -226
- package/dist/index304.js +21 -261
- package/dist/index305.js +19 -5
- package/dist/index306.js +19 -139
- package/dist/index307.js +67 -71
- package/dist/index308.js +17 -85
- package/dist/index309.js +19 -29
- package/dist/index310.js +21 -15
- package/dist/index311.js +21 -74
- package/dist/index312.js +63 -4
- package/dist/index313.js +262 -2
- package/dist/index314.js +5 -82
- package/dist/index315.js +132 -45
- package/dist/index316.js +71 -4
- package/dist/index317.js +86 -4
- package/dist/index318.js +26 -176
- package/dist/index319.js +14 -61
- package/dist/index320.js +75 -75
- package/dist/index321.js +3 -78
- package/dist/index322.js +2 -22
- package/dist/index323.js +74 -926
- package/dist/index324.js +52 -21
- package/dist/index325.js +5 -19
- package/dist/index326.js +4 -19
- package/dist/index327.js +171 -61
- package/dist/index328.js +62 -18
- package/dist/index329.js +74 -18
- package/dist/index330.js +1534 -54
- package/dist/index331.js +386 -22
- package/dist/index332.js +2731 -22
- package/dist/index333.js +86 -63
- package/dist/index334.js +3792 -26
- package/dist/index335.js +59 -21
- package/dist/index336.js +15 -22
- package/dist/index337.js +84 -16
- package/dist/index338.js +201 -16
- package/dist/index339.js +246 -23
- package/dist/index364.js +19 -18
- package/dist/index365.js +19 -56
- package/dist/index366.js +63 -28
- package/dist/index367.js +37 -7
- package/dist/index368.js +16 -49
- package/dist/index369.js +57 -7
- package/dist/index370.js +27 -10
- package/dist/index371.js +7 -7
- package/dist/index372.js +51 -27
- package/dist/index373.js +7 -2
- package/dist/index374.js +11 -69
- package/dist/index375.js +6 -166
- package/dist/index376.js +28 -20
- package/dist/index377.js +2 -20
- package/dist/index378.js +67 -61
- package/dist/index379.js +166 -36
- package/dist/index38.js +2 -2
- package/dist/index380.js +16 -100
- package/dist/index381.js +30 -90
- package/dist/index382.js +11 -98
- package/dist/index383.js +3 -30
- package/dist/index384.js +3 -10
- package/dist/index385.js +13 -4
- package/dist/index386.js +7 -4
- package/dist/index387.js +12 -13
- package/dist/index388.js +5 -7
- package/dist/index389.js +33 -12
- package/dist/index390.js +31 -5
- package/dist/index391.js +27 -32
- package/dist/index392.js +58 -28
- package/dist/index393.js +97 -27
- package/dist/index394.js +99 -59
- package/dist/index395.js +91 -17
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index46.js +6 -3
- package/dist/index50.js +1 -1
- package/dist/src/components/grid/grid.stories.d.ts +2 -0
- package/dist/src/components/list/list.stories.d.ts +1 -0
- package/dist/src/components/modal/modal.stories.d.ts +1 -0
- package/dist/src/components/page-layout/page-layout.vue.d.ts +4 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +3 -0
- package/dist/src/components/select/select.d.ts +1 -0
- package/dist/src/components/select/select.stories.d.ts +3 -0
- package/dist/src/components/time-picker/time-picker.vue.d.ts +3 -0
- package/package.json +1 -1
- package/dist/index200.js +0 -209
package/dist/index229.js
CHANGED
|
@@ -1,39 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
}
|
|
1
|
+
import p from "./index288.js";
|
|
2
|
+
var a = {
|
|
3
|
+
root: function(e) {
|
|
4
|
+
var t = e.props;
|
|
5
|
+
return ["p-selectbutton p-button-group p-component", {
|
|
6
|
+
"p-disabled": t.disabled,
|
|
7
|
+
"p-invalid": t.invalid
|
|
8
|
+
}];
|
|
9
|
+
},
|
|
10
|
+
button: function(e) {
|
|
11
|
+
var t = e.instance, n = e.option;
|
|
12
|
+
return ["p-button p-component", {
|
|
13
|
+
"p-highlight": t.isSelected(n),
|
|
14
|
+
"p-disabled": t.isOptionDisabled(n)
|
|
15
|
+
}];
|
|
16
|
+
},
|
|
17
|
+
label: "p-button-label"
|
|
18
|
+
}, l = p.extend({
|
|
19
|
+
name: "selectbutton",
|
|
20
|
+
classes: a
|
|
21
|
+
});
|
|
32
22
|
export {
|
|
33
|
-
|
|
34
|
-
g as isDate,
|
|
35
|
-
d as isValidDate,
|
|
36
|
-
k as startOfWeek,
|
|
37
|
-
W as startOfWeekYear,
|
|
38
|
-
D as toDate
|
|
23
|
+
l as default
|
|
39
24
|
};
|
package/dist/index230.js
CHANGED
|
@@ -1,12 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { DomHandler as s, ObjectUtils as h } from "./index180.js";
|
|
2
|
+
import E from "./index286.js";
|
|
3
|
+
import $ from "./index290.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;
|
|
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
|
+
});
|
|
10
127
|
export {
|
|
11
|
-
|
|
128
|
+
x as default
|
|
12
129
|
};
|
package/dist/index231.js
CHANGED
|
@@ -1,129 +1,40 @@
|
|
|
1
|
-
import { DomHandler as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
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
|
+
}
|
|
57
14
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
15
|
+
data: function() {
|
|
16
|
+
return {
|
|
17
|
+
mounted: !1
|
|
18
|
+
};
|
|
61
19
|
},
|
|
62
|
-
|
|
63
|
-
this.
|
|
20
|
+
mounted: function() {
|
|
21
|
+
this.mounted = d.isClient();
|
|
64
22
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return
|
|
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);
|
|
23
|
+
computed: {
|
|
24
|
+
inline: function() {
|
|
25
|
+
return this.disabled || this.appendTo === "self";
|
|
124
26
|
}
|
|
125
27
|
}
|
|
126
|
-
}
|
|
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;
|
|
127
38
|
export {
|
|
128
|
-
|
|
39
|
+
p as default
|
|
129
40
|
};
|
package/dist/index232.js
CHANGED
|
@@ -1,40 +1,82 @@
|
|
|
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
|
-
|
|
1
|
+
import l from "./index288.js";
|
|
2
|
+
var r = {
|
|
3
|
+
mask: function(i) {
|
|
4
|
+
var a = i.instance;
|
|
5
|
+
return ["p-galleria-mask p-component-overlay p-component-overlay-enter", {
|
|
6
|
+
"p-ripple-disabled": a.$primevue.config.ripple === !1
|
|
7
|
+
}];
|
|
8
|
+
},
|
|
9
|
+
root: function(i) {
|
|
10
|
+
var a = i.instance, e = a.$attrs.showThumbnails && a.getPositionClass("p-galleria-thumbnails", a.$attrs.thumbnailsPosition), n = a.$attrs.showIndicators && a.getPositionClass("p-galleria-indicators", a.$attrs.indicatorsPosition);
|
|
11
|
+
return ["p-galleria p-component", {
|
|
12
|
+
"p-galleria-fullscreen": a.$attrs.fullScreen,
|
|
13
|
+
"p-galleria-indicator-onitem": a.$attrs.showIndicatorsOnItem,
|
|
14
|
+
"p-galleria-item-nav-onhover": a.$attrs.showItemNavigatorsOnHover && !a.$attrs.fullScreen
|
|
15
|
+
}, e, n];
|
|
16
|
+
},
|
|
17
|
+
closeButton: "p-galleria-close p-link",
|
|
18
|
+
closeIcon: "p-galleria-close-icon",
|
|
19
|
+
header: "p-galleria-header",
|
|
20
|
+
content: "p-galleria-content",
|
|
21
|
+
footer: "p-galleria-footer",
|
|
22
|
+
itemWrapper: "p-galleria-item-wrapper",
|
|
23
|
+
itemContainer: "p-galleria-item-container",
|
|
24
|
+
previousItemButton: function(i) {
|
|
25
|
+
var a = i.instance;
|
|
26
|
+
return ["p-galleria-item-prev p-galleria-item-nav p-link", {
|
|
27
|
+
"p-disabled": a.isNavBackwardDisabled()
|
|
28
|
+
}];
|
|
29
|
+
},
|
|
30
|
+
previousItemIcon: "p-galleria-item-prev-icon",
|
|
31
|
+
item: "p-galleria-item",
|
|
32
|
+
nextItemButton: function(i) {
|
|
33
|
+
var a = i.instance;
|
|
34
|
+
return ["p-galleria-item-next p-galleria-item-nav p-link", {
|
|
35
|
+
"p-disabled": a.isNavForwardDisabled()
|
|
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
|
+
});
|
|
38
80
|
export {
|
|
39
|
-
|
|
81
|
+
s as default
|
|
40
82
|
};
|