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