@quoreadmin/ui 1.10.19 → 1.10.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/index149.js +1 -1
  2. package/dist/index151.js +4 -4
  3. package/dist/index183.js +3 -3
  4. package/dist/index186.js +4 -4
  5. package/dist/index193.js +10 -10
  6. package/dist/index195.js +10 -10
  7. package/dist/index198.js +17 -17
  8. package/dist/index199.js +1106 -5816
  9. package/dist/index201.js +5922 -19
  10. package/dist/index202.js +199 -10
  11. package/dist/index203.js +25 -1218
  12. package/dist/index204.js +20 -0
  13. package/dist/index206.js +2 -2
  14. package/dist/index208.js +14 -14
  15. package/dist/index209.js +1 -1
  16. package/dist/index210.js +1 -1
  17. package/dist/index211.js +3 -3
  18. package/dist/index212.js +6 -6
  19. package/dist/index216.js +2 -2
  20. package/dist/index217.js +1 -1
  21. package/dist/index219.js +4 -4
  22. package/dist/index221.js +1 -1
  23. package/dist/index222.js +1 -1
  24. package/dist/index223.js +1 -1
  25. package/dist/index224.js +4 -4
  26. package/dist/index226.js +1 -1
  27. package/dist/index227.js +84 -157
  28. package/dist/index228.js +384 -205
  29. package/dist/index229.js +22 -37
  30. package/dist/index230.js +127 -10
  31. package/dist/index231.js +33 -122
  32. package/dist/index232.js +80 -38
  33. package/dist/index233.js +20 -407
  34. package/dist/index234.js +20 -80
  35. package/dist/index235.js +12 -12
  36. package/dist/index236.js +19 -87
  37. package/dist/index237.js +11 -11
  38. package/dist/index238.js +160 -19
  39. package/dist/index239.js +228 -20
  40. package/dist/index24.js +57 -56
  41. package/dist/index240.js +36 -19
  42. package/dist/index241.js +10 -22
  43. package/dist/index242.js +149 -3624
  44. package/dist/index243.js +20 -55
  45. package/dist/index244.js +22 -77
  46. package/dist/index245.js +190 -43
  47. package/dist/index246.js +66 -211
  48. package/dist/index247.js +33 -9
  49. package/dist/index248.js +36 -53
  50. package/dist/index249.js +22 -61
  51. package/dist/index250.js +22 -54
  52. package/dist/index251.js +20 -75
  53. package/dist/index252.js +791 -681
  54. package/dist/index253.js +693 -33
  55. package/dist/index254.js +168 -56
  56. package/dist/index255.js +22 -11
  57. package/dist/index256.js +20 -705
  58. package/dist/index257.js +20 -820
  59. package/dist/index258.js +3 -22
  60. package/dist/index259.js +186 -21
  61. package/dist/index260.js +132 -19
  62. package/dist/index261.js +1131 -744
  63. package/dist/index262.js +19 -701
  64. package/dist/index263.js +22 -176
  65. package/dist/index264.js +8 -8
  66. package/dist/index265.js +22 -13
  67. package/dist/index266.js +10 -10
  68. package/dist/index267.js +20 -3
  69. package/dist/index268.js +2 -187
  70. package/dist/index269.js +2 -133
  71. package/dist/index270.js +3624 -149
  72. package/dist/index271.js +48 -1216
  73. package/dist/index272.js +77 -20
  74. package/dist/index273.js +52 -22
  75. package/dist/index274.js +215 -20
  76. package/dist/index275.js +10 -22
  77. package/dist/index276.js +57 -29
  78. package/dist/index277.js +61 -20
  79. package/dist/index278.js +54 -20
  80. package/dist/index279.js +75 -2
  81. package/dist/index280.js +726 -2
  82. package/dist/index281.js +42 -22
  83. package/dist/index282.js +55 -190
  84. package/dist/index283.js +11 -70
  85. package/dist/index284.js +704 -33
  86. package/dist/index285.js +817 -37
  87. package/dist/index286.js +3 -253
  88. package/dist/index287.js +27 -2
  89. package/dist/index288.js +219 -104
  90. package/dist/index289.js +8 -83
  91. package/dist/index290.js +118 -59
  92. package/dist/index291.js +83 -8
  93. package/dist/index292.js +262 -3
  94. package/dist/index293.js +4 -25
  95. package/dist/index294.js +130 -1524
  96. package/dist/index295.js +65 -378
  97. package/dist/index296.js +81 -2725
  98. package/dist/index297.js +26 -83
  99. package/dist/index298.js +13 -3789
  100. package/dist/index299.js +72 -57
  101. package/dist/index300.js +4 -15
  102. package/dist/index301.js +2 -84
  103. package/dist/index302.js +74 -193
  104. package/dist/index303.js +53 -246
  105. package/dist/index304.js +4 -260
  106. package/dist/index305.js +4 -5
  107. package/dist/index306.js +166 -127
  108. package/dist/index307.js +58 -68
  109. package/dist/index308.js +73 -85
  110. package/dist/index309.js +2 -29
  111. package/dist/index310.js +77 -14
  112. package/dist/index311.js +52 -73
  113. package/dist/index312.js +25 -3
  114. package/dist/index313.js +22 -2
  115. package/dist/index314.js +21 -82
  116. package/dist/index315.js +16 -53
  117. package/dist/index316.js +17 -6
  118. package/dist/index317.js +23 -5
  119. package/dist/index318.js +1504 -149
  120. package/dist/index319.js +378 -55
  121. package/dist/index320.js +2731 -75
  122. package/dist/index321.js +82 -75
  123. package/dist/index322.js +3792 -22
  124. package/dist/index323.js +56 -931
  125. package/dist/index324.js +15 -22
  126. package/dist/index325.js +83 -19
  127. package/dist/index326.js +202 -20
  128. package/dist/index327.js +241 -64
  129. package/dist/index328.js +76 -16
  130. package/dist/index329.js +22 -19
  131. package/dist/index330.js +930 -49
  132. package/dist/index331.js +16 -16
  133. package/dist/index332.js +11 -13
  134. package/dist/index333.js +19 -62
  135. package/dist/index334.js +68 -25
  136. package/dist/index335.js +19 -22
  137. package/dist/index336.js +19 -22
  138. package/dist/index337.js +22 -16
  139. package/dist/index338.js +22 -17
  140. package/dist/index339.js +61 -21
  141. package/dist/index340.js +9 -36
  142. package/dist/index341.js +10 -9
  143. package/dist/index342.js +14 -13
  144. package/dist/index343.js +10 -55
  145. package/dist/index344.js +16 -11
  146. package/dist/index345.js +8 -13
  147. package/dist/index346.js +12 -57
  148. package/dist/index347.js +51 -48
  149. package/dist/index348.js +9 -28
  150. package/dist/index349.js +14 -2
  151. package/dist/index350.js +58 -5
  152. package/dist/index351.js +52 -2
  153. package/dist/index352.js +30 -22
  154. package/dist/index353.js +2 -41
  155. package/dist/index354.js +5 -2
  156. package/dist/index355.js +2 -11
  157. package/dist/index356.js +22 -19
  158. package/dist/index357.js +40 -9
  159. package/dist/index358.js +2 -10
  160. package/dist/index359.js +10 -16
  161. package/dist/index360.js +20 -2
  162. package/dist/index361.js +2 -9
  163. package/dist/index362.js +9 -10
  164. package/dist/index363.js +19 -14
  165. package/dist/index364.js +55 -17
  166. package/dist/index365.js +28 -56
  167. package/dist/index366.js +6 -28
  168. package/dist/index367.js +51 -6
  169. package/dist/index368.js +6 -51
  170. package/dist/index369.js +12 -7
  171. package/dist/index370.js +7 -12
  172. package/dist/index371.js +27 -6
  173. package/dist/index372.js +2 -28
  174. package/dist/index373.js +70 -2
  175. package/dist/index374.js +164 -67
  176. package/dist/index375.js +36 -166
  177. package/dist/index376.js +1 -1
  178. package/dist/index377.js +1 -1
  179. package/dist/index378.js +1 -1
  180. package/dist/index379.js +1 -1
  181. package/dist/index380.js +28 -98
  182. package/dist/index381.js +10 -90
  183. package/dist/index382.js +4 -98
  184. package/dist/index383.js +3 -30
  185. package/dist/index384.js +13 -11
  186. package/dist/index385.js +7 -4
  187. package/dist/index386.js +11 -3
  188. package/dist/index387.js +5 -13
  189. package/dist/index388.js +33 -7
  190. package/dist/index389.js +30 -11
  191. package/dist/index390.js +28 -5
  192. package/dist/index391.js +61 -33
  193. package/dist/index392.js +99 -29
  194. package/dist/index393.js +91 -28
  195. package/dist/index394.js +96 -59
  196. package/dist/index395.js +1 -1
  197. package/dist/index396.js +1 -1
  198. package/dist/index401.js +1 -1
  199. package/dist/index402.js +2 -2
  200. package/package.json +1 -1
  201. package/dist/index200.js +0 -209
package/dist/index229.js CHANGED
@@ -1,39 +1,24 @@
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
- }
1
+ import p from "./index290.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
- m as getWeek,
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
- 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
- };
1
+ import { DomHandler as s, ObjectUtils as h } from "./index180.js";
2
+ import E from "./index288.js";
3
+ import $ from "./index309.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
- e as default
128
+ x as default
12
129
  };
package/dist/index231.js CHANGED
@@ -1,129 +1,40 @@
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;
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
- updated: function(e, t) {
59
- var r = t.value || {}, n = r.disabled;
60
- n && this.unbind(e);
15
+ data: function() {
16
+ return {
17
+ mounted: !1
18
+ };
61
19
  },
62
- unmounted: function(e) {
63
- this.unbind(e);
20
+ mounted: function() {
21
+ this.mounted = d.isClient();
64
22
  },
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);
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
- x as default
39
+ p as default
129
40
  };
package/dist/index232.js CHANGED
@@ -1,40 +1,82 @@
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;
1
+ import l from "./index290.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
- p as default
81
+ s as default
40
82
  };