@quoreadmin/ui 1.7.11 → 1.7.12

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 (186) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index140.js +2 -2
  3. package/dist/index144.js +4 -4
  4. package/dist/index172.js +14 -14
  5. package/dist/index173.js +3 -3
  6. package/dist/index176.js +4 -4
  7. package/dist/index183.js +10 -10
  8. package/dist/index185.js +10 -10
  9. package/dist/index189.js +5938 -36
  10. package/dist/index190.js +205 -42
  11. package/dist/index191.js +19 -5922
  12. package/dist/index192.js +10 -199
  13. package/dist/index193.js +36 -35
  14. package/dist/index194.js +43 -17
  15. package/dist/index20.js +10 -10
  16. package/dist/index202.js +4 -4
  17. package/dist/index203.js +123 -29
  18. package/dist/index204.js +36 -114
  19. package/dist/index205.js +404 -33
  20. package/dist/index206.js +80 -26
  21. package/dist/index207.js +19 -35
  22. package/dist/index208.js +88 -9
  23. package/dist/index209.js +19 -18
  24. package/dist/index210.js +20 -10
  25. package/dist/index211.js +20 -10
  26. package/dist/index212.js +19 -50
  27. package/dist/index213.js +21 -42
  28. package/dist/index214.js +21 -3
  29. package/dist/index215.js +19 -38
  30. package/dist/index216.js +836 -21
  31. package/dist/index217.js +690 -149
  32. package/dist/index218.js +174 -226
  33. package/dist/index219.js +21 -36
  34. package/dist/index220.js +20 -10
  35. package/dist/index221.js +11 -13
  36. package/dist/index222.js +3 -22
  37. package/dist/index223.js +186 -19
  38. package/dist/index224.js +98 -801
  39. package/dist/index225.js +104 -645
  40. package/dist/index226.js +1167 -351
  41. package/dist/index227.js +20 -176
  42. package/dist/index228.js +15 -13
  43. package/dist/index229.js +11 -11
  44. package/dist/index230.js +8 -8
  45. package/dist/index231.js +22 -13
  46. package/dist/index232.js +10 -10
  47. package/dist/index233.js +13 -13
  48. package/dist/index234.js +1 -2
  49. package/dist/index235.js +2 -88
  50. package/dist/index236.js +156 -182
  51. package/dist/index237.js +223 -128
  52. package/dist/index238.js +36 -160
  53. package/dist/index239.js +9 -1222
  54. package/dist/index240.js +19 -124
  55. package/dist/index241.js +32 -19
  56. package/dist/index242.js +115 -21
  57. package/dist/index243.js +35 -19
  58. package/dist/index244.js +26 -22
  59. package/dist/index245.js +35 -37
  60. package/dist/index246.js +9 -29
  61. package/dist/index247.js +18 -19
  62. package/dist/index248.js +10 -20
  63. package/dist/index249.js +10 -2
  64. package/dist/index250.js +51 -2
  65. package/dist/index251.js +43 -80
  66. package/dist/index252.js +3 -19
  67. package/dist/index253.js +38 -19
  68. package/dist/index254.js +21 -22
  69. package/dist/index255.js +21 -198
  70. package/dist/index256.js +180 -51
  71. package/dist/index257.js +69 -33
  72. package/dist/index258.js +33 -39
  73. package/dist/index259.js +39 -21
  74. package/dist/index260.js +6 -6
  75. package/dist/index261.js +1 -1
  76. package/dist/index262.js +1 -1
  77. package/dist/index275.js +2 -2
  78. package/dist/index276.js +253 -3
  79. package/dist/index277.js +2 -27
  80. package/dist/index280.js +58 -232
  81. package/dist/index281.js +8 -2
  82. package/dist/index282.js +71 -71
  83. package/dist/index283.js +22 -8
  84. package/dist/index284.js +923 -67
  85. package/dist/index285.js +4 -4
  86. package/dist/index286.js +20 -935
  87. package/dist/index287.js +13 -15
  88. package/dist/index288.js +68 -19
  89. package/dist/index289.js +19 -20
  90. package/dist/index290.js +16 -66
  91. package/dist/index291.js +51 -16
  92. package/dist/index292.js +22 -19
  93. package/dist/index293.js +21 -53
  94. package/dist/index294.js +62 -21
  95. package/dist/index295.js +19 -15
  96. package/dist/index296.js +21 -62
  97. package/dist/index297.js +21 -234
  98. package/dist/index298.js +16 -6
  99. package/dist/index299.js +16 -133
  100. package/dist/index300.js +22 -67
  101. package/dist/index301.js +1509 -78
  102. package/dist/index302.js +383 -26
  103. package/dist/index303.js +2731 -9
  104. package/dist/index304.js +83 -72
  105. package/dist/index305.js +3769 -3
  106. package/dist/index306.js +60 -2
  107. package/dist/index307.js +15 -83
  108. package/dist/index308.js +83 -53
  109. package/dist/index309.js +200 -4
  110. package/dist/index310.js +245 -4
  111. package/dist/index311.js +3 -179
  112. package/dist/index312.js +25 -61
  113. package/dist/index313.js +234 -74
  114. package/dist/index314.js +5 -25
  115. package/dist/index315.js +133 -21
  116. package/dist/index316.js +67 -21
  117. package/dist/index317.js +85 -14
  118. package/dist/index318.js +29 -17
  119. package/dist/index319.js +8 -22
  120. package/dist/index320.js +64 -1507
  121. package/dist/index321.js +3 -385
  122. package/dist/index322.js +2 -2731
  123. package/dist/index323.js +77 -80
  124. package/dist/index324.js +53 -3769
  125. package/dist/index325.js +4 -58
  126. package/dist/index326.js +5 -15
  127. package/dist/index327.js +166 -71
  128. package/dist/index328.js +57 -196
  129. package/dist/index329.js +75 -246
  130. package/dist/index330.js +36 -8
  131. package/dist/index331.js +19 -12
  132. package/dist/index332.js +19 -54
  133. package/dist/index333.js +63 -11
  134. package/dist/index334.js +37 -14
  135. package/dist/index335.js +8 -57
  136. package/dist/index336.js +12 -51
  137. package/dist/index337.js +49 -25
  138. package/dist/index338.js +12 -2
  139. package/dist/index339.js +14 -5
  140. package/dist/index340.js +58 -2
  141. package/dist/index341.js +52 -23
  142. package/dist/index342.js +28 -38
  143. package/dist/index343.js +2 -2
  144. package/dist/index344.js +4 -10
  145. package/dist/index345.js +2 -20
  146. package/dist/index346.js +21 -15
  147. package/dist/index347.js +40 -9
  148. package/dist/index348.js +2 -10
  149. package/dist/index349.js +11 -2
  150. package/dist/index350.js +20 -9
  151. package/dist/index351.js +16 -9
  152. package/dist/index352.js +9 -13
  153. package/dist/index353.js +10 -37
  154. package/dist/index354.js +2 -20
  155. package/dist/index355.js +9 -20
  156. package/dist/index356.js +9 -63
  157. package/dist/index357.js +14 -37
  158. package/dist/index358.js +2 -2
  159. package/dist/index359.js +1 -1
  160. package/dist/index360.js +6 -6
  161. package/dist/index361.js +2 -2
  162. package/dist/index362.js +2 -2
  163. package/dist/index364.js +2 -2
  164. package/dist/index365.js +2 -2
  165. package/dist/index366.js +1 -1
  166. package/dist/index368.js +8 -8
  167. package/dist/index369.js +8 -8
  168. package/dist/index371.js +97 -30
  169. package/dist/index372.js +100 -10
  170. package/dist/index373.js +90 -3
  171. package/dist/index374.js +30 -3
  172. package/dist/index375.js +11 -13
  173. package/dist/index376.js +4 -7
  174. package/dist/index377.js +3 -11
  175. package/dist/index378.js +13 -5
  176. package/dist/index379.js +7 -33
  177. package/dist/index380.js +11 -30
  178. package/dist/index381.js +5 -28
  179. package/dist/index382.js +33 -61
  180. package/dist/index383.js +29 -96
  181. package/dist/index384.js +26 -99
  182. package/dist/index385.js +61 -91
  183. package/dist/index386.js +1 -1
  184. package/dist/index392.js +1 -1
  185. package/dist/index44.js +7 -6
  186. package/package.json +1 -1
package/dist/index192.js CHANGED
@@ -1,209 +1,20 @@
1
- import l from "./index226.js";
2
- import n from "./index249.js";
3
- var u = {
4
- name: "BaseColumn",
5
- extends: l,
6
- props: {
7
- columnKey: {
8
- type: null,
9
- default: null
10
- },
11
- field: {
12
- type: [String, Function],
13
- default: null
14
- },
15
- sortField: {
16
- type: [String, Function],
17
- default: null
18
- },
19
- filterField: {
20
- type: [String, Function],
21
- default: null
22
- },
23
- dataType: {
24
- type: String,
25
- default: "text"
26
- },
27
- sortable: {
28
- type: Boolean,
29
- default: !1
30
- },
31
- header: {
32
- type: null,
33
- default: null
34
- },
35
- footer: {
36
- type: null,
37
- default: null
38
- },
39
- style: {
40
- type: null,
41
- default: null
42
- },
43
- class: {
44
- type: String,
45
- default: null
46
- },
47
- headerStyle: {
48
- type: null,
49
- default: null
50
- },
51
- headerClass: {
52
- type: String,
53
- default: null
54
- },
55
- bodyStyle: {
56
- type: null,
57
- default: null
58
- },
59
- bodyClass: {
60
- type: String,
61
- default: null
62
- },
63
- footerStyle: {
64
- type: null,
65
- default: null
66
- },
67
- footerClass: {
68
- type: String,
69
- default: null
70
- },
71
- showFilterMenu: {
72
- type: Boolean,
73
- default: !0
74
- },
75
- showFilterOperator: {
76
- type: Boolean,
77
- default: !0
78
- },
79
- showClearButton: {
80
- type: Boolean,
81
- default: !0
82
- },
83
- showApplyButton: {
84
- type: Boolean,
85
- default: !0
86
- },
87
- showFilterMatchModes: {
88
- type: Boolean,
89
- default: !0
90
- },
91
- showAddButton: {
92
- type: Boolean,
93
- default: !0
94
- },
95
- filterMatchModeOptions: {
96
- type: Array,
97
- default: null
98
- },
99
- maxConstraints: {
100
- type: Number,
101
- default: 2
102
- },
103
- excludeGlobalFilter: {
104
- type: Boolean,
105
- default: !1
106
- },
107
- filterHeaderClass: {
108
- type: String,
109
- default: null
110
- },
111
- filterHeaderStyle: {
112
- type: null,
113
- default: null
114
- },
115
- filterMenuClass: {
116
- type: String,
117
- default: null
118
- },
119
- filterMenuStyle: {
120
- type: null,
121
- default: null
122
- },
123
- selectionMode: {
124
- type: String,
125
- default: null
126
- },
127
- expander: {
128
- type: Boolean,
129
- default: !1
130
- },
131
- colspan: {
132
- type: Number,
133
- default: null
134
- },
135
- rowspan: {
136
- type: Number,
137
- default: null
138
- },
139
- rowReorder: {
140
- type: Boolean,
141
- default: !1
142
- },
143
- rowReorderIcon: {
144
- type: String,
145
- default: void 0
146
- },
147
- reorderableColumn: {
148
- type: Boolean,
149
- default: !0
150
- },
151
- rowEditor: {
152
- type: Boolean,
153
- default: !1
154
- },
155
- frozen: {
156
- type: Boolean,
157
- default: !1
158
- },
159
- alignFrozen: {
160
- type: String,
161
- default: "left"
162
- },
163
- exportable: {
164
- type: Boolean,
165
- default: !0
166
- },
167
- exportHeader: {
168
- type: String,
169
- default: null
170
- },
171
- exportFooter: {
172
- type: String,
173
- default: null
174
- },
175
- filterMatchMode: {
176
- type: String,
177
- default: null
178
- },
179
- hidden: {
180
- type: Boolean,
181
- default: !1
182
- }
183
- },
184
- style: n,
185
- provide: function() {
186
- return {
187
- $parentInstance: this
188
- };
189
- }
190
- }, r = {
191
- name: "Column",
192
- extends: u,
193
- inheritAttrs: !1,
194
- inject: ["$columns"],
1
+ import r from "./index205.js";
2
+ var o = {
3
+ name: "Row",
4
+ extends: r,
5
+ inject: ["$rows"],
195
6
  mounted: function() {
196
- var e;
197
- (e = this.$columns) === null || e === void 0 || e.add(this.$);
7
+ var t;
8
+ (t = this.$rows) === null || t === void 0 || t.add(this.$);
198
9
  },
199
10
  unmounted: function() {
200
- var e;
201
- (e = this.$columns) === null || e === void 0 || e.delete(this.$);
11
+ var t;
12
+ (t = this.$rows) === null || t === void 0 || t.delete(this.$);
202
13
  },
203
14
  render: function() {
204
15
  return null;
205
16
  }
206
17
  };
207
18
  export {
208
- r as default
19
+ o as default
209
20
  };
package/dist/index193.js CHANGED
@@ -1,37 +1,38 @@
1
- import r from "./index226.js";
2
- import e from "./index250.js";
3
- var o = {
4
- name: "BaseColumnGroup",
5
- extends: r,
6
- props: {
7
- type: {
8
- type: String,
9
- default: null
10
- }
11
- },
12
- style: e,
13
- provide: function() {
14
- return {
15
- $parentInstance: this
16
- };
17
- }
18
- }, s = {
19
- name: "ColumnGroup",
20
- extends: o,
21
- inheritAttrs: !1,
22
- inject: ["$columnGroups"],
23
- mounted: function() {
24
- var n;
25
- (n = this.$columnGroups) === null || n === void 0 || n.add(this.$);
26
- },
27
- unmounted: function() {
28
- var n;
29
- (n = this.$columnGroups) === null || n === void 0 || n.delete(this.$);
30
- },
31
- render: function() {
32
- return null;
33
- }
34
- };
1
+ import o from "./index194.js";
2
+ const {
3
+ Axios: e,
4
+ AxiosError: a,
5
+ CanceledError: s,
6
+ isCancel: t,
7
+ CancelToken: i,
8
+ VERSION: l,
9
+ all: n,
10
+ Cancel: d,
11
+ isAxiosError: x,
12
+ spread: C,
13
+ toFormData: c,
14
+ AxiosHeaders: m,
15
+ HttpStatusCode: p,
16
+ formToJSON: A,
17
+ getAdapter: f,
18
+ mergeConfig: E
19
+ } = o;
35
20
  export {
36
- s as default
21
+ e as Axios,
22
+ a as AxiosError,
23
+ m as AxiosHeaders,
24
+ d as Cancel,
25
+ i as CancelToken,
26
+ s as CanceledError,
27
+ p as HttpStatusCode,
28
+ l as VERSION,
29
+ n as all,
30
+ o as default,
31
+ A as formToJSON,
32
+ f as getAdapter,
33
+ x as isAxiosError,
34
+ t as isCancel,
35
+ E as mergeConfig,
36
+ C as spread,
37
+ c as toFormData
37
38
  };
package/dist/index194.js CHANGED
@@ -1,20 +1,46 @@
1
- import r from "./index226.js";
2
- var o = {
3
- name: "Row",
4
- extends: r,
5
- inject: ["$rows"],
6
- mounted: function() {
7
- var t;
8
- (t = this.$rows) === null || t === void 0 || t.add(this.$);
9
- },
10
- unmounted: function() {
11
- var t;
12
- (t = this.$rows) === null || t === void 0 || t.delete(this.$);
13
- },
14
- render: function() {
15
- return null;
16
- }
1
+ import a from "./index313.js";
2
+ import p from "./index314.js";
3
+ import m from "./index315.js";
4
+ import i from "./index316.js";
5
+ import f from "./index317.js";
6
+ import l from "./index318.js";
7
+ import c from "./index319.js";
8
+ import d from "./index320.js";
9
+ import u from "./index321.js";
10
+ import { VERSION as x } from "./index322.js";
11
+ import C from "./index323.js";
12
+ import A from "./index324.js";
13
+ import E from "./index325.js";
14
+ import O from "./index326.js";
15
+ import S from "./index327.js";
16
+ import H from "./index328.js";
17
+ import T from "./index329.js";
18
+ function n(o) {
19
+ const t = new m(o), e = p(m.prototype.request, t);
20
+ return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
21
+ return n(i(o, s));
22
+ }, e;
23
+ }
24
+ const r = n(f);
25
+ r.Axios = m;
26
+ r.CanceledError = c;
27
+ r.CancelToken = d;
28
+ r.isCancel = u;
29
+ r.VERSION = x;
30
+ r.toFormData = C;
31
+ r.AxiosError = A;
32
+ r.Cancel = r.CanceledError;
33
+ r.all = function(t) {
34
+ return Promise.all(t);
17
35
  };
36
+ r.spread = E;
37
+ r.isAxiosError = O;
38
+ r.mergeConfig = i;
39
+ r.AxiosHeaders = S;
40
+ r.formToJSON = (o) => l(a.isHTMLForm(o) ? new FormData(o) : o);
41
+ r.getAdapter = H.getAdapter;
42
+ r.HttpStatusCode = T;
43
+ r.default = r;
18
44
  export {
19
- o as default
45
+ r as default
20
46
  };
package/dist/index20.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import b from "./index95.js";
2
- import { resolveComponent as t, createElementBlock as l, openBlock as r, normalizeClass as p, createVNode as s, createCommentVNode as i, withCtx as c, createElementVNode as m, toDisplayString as n, createTextVNode as f } from "vue";
2
+ import { resolveComponent as t, createElementBlock as l, openBlock as r, normalizeClass as p, createVNode as s, createCommentVNode as d, withCtx as c, createElementVNode as m, toDisplayString as n, createTextVNode as f } from "vue";
3
3
  /* empty css */
4
4
  import k from "./index62.js";
5
5
  const g = {
@@ -13,9 +13,9 @@ const g = {
13
13
  class: "custom-placeholder"
14
14
  }, y = { class: "required-indicator" };
15
15
  function C(e, a, q, D, E, w) {
16
- const d = t("q-icon"), u = t("date-picker", !0);
16
+ const i = t("q-icon"), u = t("date-picker", !0);
17
17
  return r(), l("div", {
18
- class: p(["q-date-picker", { "has-floating-label": e.floatingLabel }, { "label-floated": e.isLabelFloated }])
18
+ class: p(["q-date-picker", { "has-floating-label": e.floatingLabel }, { "label-floated": e.isLabelFloated }, { "calendar-open": e.isOpen }])
19
19
  }, [
20
20
  s(u, {
21
21
  id: e.id,
@@ -41,7 +41,7 @@ function C(e, a, q, D, E, w) {
41
41
  onOpen: a[3] || (a[3] = (o) => e.isOpen = !0)
42
42
  }, {
43
43
  "icon-clear": c(() => [
44
- s(d, {
44
+ s(i, {
45
45
  icon: "close",
46
46
  type: "",
47
47
  color: "inkwell-10",
@@ -49,7 +49,7 @@ function C(e, a, q, D, E, w) {
49
49
  })
50
50
  ]),
51
51
  "icon-calendar": c(() => [
52
- s(d, {
52
+ s(i, {
53
53
  icon: "calendar",
54
54
  color: "inkwell-10"
55
55
  })
@@ -58,15 +58,15 @@ function C(e, a, q, D, E, w) {
58
58
  }, 8, ["id", "value", "class", "clearable", "disabled", "disabled-date", "format", "lang", "placeholder", "range", "type"]),
59
59
  e.showFloatingLabel ? (r(), l("div", g, [
60
60
  m("span", v, n(e.placeholder), 1),
61
- e.required ? (r(), l("span", $, "*" + n(e.$t("HC_REQUIRED")), 1)) : i("", !0)
62
- ])) : i("", !0),
61
+ e.required ? (r(), l("span", $, "*" + n(e.$t("HC_REQUIRED")), 1)) : d("", !0)
62
+ ])) : d("", !0),
63
63
  e.showCustomPlaceholder ? (r(), l("div", h, [
64
64
  f(n(e.placeholder), 1),
65
65
  m("span", y, " *" + n(e.$t("HC_REQUIRED")), 1)
66
- ])) : i("", !0)
66
+ ])) : d("", !0)
67
67
  ], 2);
68
68
  }
69
- const O = /* @__PURE__ */ k(b, [["render", C], ["__scopeId", "data-v-b9649996"]]);
69
+ const N = /* @__PURE__ */ k(b, [["render", C], ["__scopeId", "data-v-093e30de"]]);
70
70
  export {
71
- O as default
71
+ N as default
72
72
  };
package/dist/index202.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Extension as u, isNodeEmpty as w, callOrReturn as v, getExtensionField as S, isNodeSelection as P } from "./index260.js";
2
2
  import { Plugin as p, PluginKey as m } from "./index275.js";
3
- import { dropCursor as z } from "./index327.js";
4
- import { Decoration as g, DecorationSet as f } from "./index324.js";
5
- import { gapCursor as N } from "./index328.js";
6
- import { history as E, redo as M, undo as O } from "./index329.js";
3
+ import { dropCursor as z } from "./index308.js";
4
+ import { Decoration as g, DecorationSet as f } from "./index305.js";
5
+ import { gapCursor as N } from "./index309.js";
6
+ import { history as E, redo as M, undo as O } from "./index310.js";
7
7
  u.create({
8
8
  name: "characterCount",
9
9
  addOptions() {
package/dist/index203.js CHANGED
@@ -1,35 +1,129 @@
1
- function u(t) {
2
- if (t === null || typeof t != "object")
3
- return !1;
4
- const n = Object.getPrototypeOf(t);
5
- return n !== null && n !== Object.prototype && Object.getPrototypeOf(n) !== null || Symbol.iterator in t ? !1 : Symbol.toStringTag in t ? Object.prototype.toString.call(t) === "[object Module]" : !0;
1
+ import { DomHandler as s, ObjectUtils as h } from "./index170.js";
2
+ import E from "./index276.js";
3
+ import $ from "./index277.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);
6
14
  }
7
- function c(t, n, e = ".", f) {
8
- if (!u(n))
9
- return c(t, {}, e, f);
10
- const r = Object.assign({}, n);
11
- for (const o in t) {
12
- if (o === "__proto__" || o === "constructor")
13
- continue;
14
- const i = t[o];
15
- i != null && (f && f(r, o, i, e) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : u(i) && u(r[o]) ? r[o] = c(
16
- i,
17
- r[o],
18
- (e ? `${e}.` : "") + o.toString(),
19
- f
20
- ) : r[o] = i));
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);
21
22
  }
22
- return r;
23
+ return t;
23
24
  }
24
- function l(t) {
25
- return (...n) => (
26
- // eslint-disable-next-line unicorn/no-array-reduce
27
- n.reduce((e, f) => c(e, f, "", t), {})
28
- );
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);
29
42
  }
30
- const y = l();
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
+ });
31
127
  export {
32
- l as createDefu,
33
- y as default,
34
- y as defu
128
+ x as default
35
129
  };