@quoreadmin/ui 1.10.16 → 1.10.18

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 (169) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index138.js +137 -114
  3. package/dist/index15.js +43 -38
  4. package/dist/index186.js +4 -4
  5. package/dist/index193.js +8 -8
  6. package/dist/index195.js +8 -8
  7. package/dist/index198.js +17 -17
  8. package/dist/index201.js +23 -23
  9. package/dist/index202.js +1 -1
  10. package/dist/index203.js +1 -1
  11. package/dist/index206.js +2 -2
  12. package/dist/index208.js +14 -14
  13. package/dist/index209.js +1 -1
  14. package/dist/index210.js +1 -1
  15. package/dist/index211.js +3 -3
  16. package/dist/index212.js +6 -6
  17. package/dist/index217.js +1 -1
  18. package/dist/index219.js +4 -4
  19. package/dist/index22.js +28 -26
  20. package/dist/index221.js +1 -1
  21. package/dist/index222.js +1 -1
  22. package/dist/index223.js +1 -1
  23. package/dist/index224.js +4 -4
  24. package/dist/index226.js +1 -1
  25. package/dist/index230.js +122 -156
  26. package/dist/index231.js +35 -225
  27. package/dist/index232.js +80 -37
  28. package/dist/index233.js +20 -10
  29. package/dist/index234.js +19 -160
  30. package/dist/index235.js +10 -10
  31. package/dist/index236.js +11 -11
  32. package/dist/index237.js +13 -15
  33. package/dist/index238.js +3619 -182
  34. package/dist/index239.js +51 -66
  35. package/dist/index240.js +74 -31
  36. package/dist/index241.js +48 -36
  37. package/dist/index242.js +182 -3603
  38. package/dist/index243.js +8 -53
  39. package/dist/index244.js +40 -60
  40. package/dist/index245.js +44 -35
  41. package/dist/index246.js +32 -193
  42. package/dist/index247.js +74 -9
  43. package/dist/index248.js +707 -38
  44. package/dist/index249.js +25 -44
  45. package/dist/index250.js +46 -36
  46. package/dist/index251.js +10 -74
  47. package/dist/index252.js +679 -700
  48. package/dist/index253.js +817 -39
  49. package/dist/index254.js +154 -57
  50. package/dist/index255.js +20 -11
  51. package/dist/index256.js +22 -705
  52. package/dist/index257.js +189 -810
  53. package/dist/index258.js +69 -21
  54. package/dist/index259.js +34 -22
  55. package/dist/index260.js +39 -19
  56. package/dist/index261.js +22 -836
  57. package/dist/index262.js +21 -701
  58. package/dist/index263.js +20 -176
  59. package/dist/index264.js +836 -20
  60. package/dist/index265.js +701 -19
  61. package/dist/index266.js +176 -22
  62. package/dist/index267.js +13 -11
  63. package/dist/index268.js +8 -8
  64. package/dist/index269.js +20 -3
  65. package/dist/index270.js +3 -187
  66. package/dist/index271.js +96 -42
  67. package/dist/index272.js +70 -1160
  68. package/dist/index273.js +1197 -101
  69. package/dist/index277.js +28 -37
  70. package/dist/index278.js +11 -20
  71. package/dist/index279.js +8 -8
  72. package/dist/index280.js +2 -20
  73. package/dist/index282.js +161 -2
  74. package/dist/index283.js +227 -79
  75. package/dist/index284.js +36 -19
  76. package/dist/index285.js +10 -20
  77. package/dist/index292.js +2 -54
  78. package/dist/index294.js +1534 -26
  79. package/dist/index295.js +386 -22
  80. package/dist/index296.js +2731 -22
  81. package/dist/index297.js +86 -16
  82. package/dist/index298.js +3792 -17
  83. package/dist/index299.js +59 -22
  84. package/dist/index300.js +14 -1533
  85. package/dist/index301.js +69 -371
  86. package/dist/index302.js +158 -2687
  87. package/dist/index303.js +233 -73
  88. package/dist/index304.js +54 -3792
  89. package/dist/index305.js +25 -59
  90. package/dist/index306.js +22 -15
  91. package/dist/index307.js +21 -83
  92. package/dist/index308.js +15 -201
  93. package/dist/index309.js +17 -246
  94. package/dist/index310.js +23 -2
  95. package/dist/index313.js +1 -1
  96. package/dist/index323.js +8 -261
  97. package/dist/index324.js +12 -5
  98. package/dist/index325.js +51 -136
  99. package/dist/index326.js +11 -72
  100. package/dist/index327.js +12 -85
  101. package/dist/index328.js +54 -25
  102. package/dist/index329.js +50 -14
  103. package/dist/index330.js +27 -71
  104. package/dist/index331.js +2 -4
  105. package/dist/index332.js +5 -2
  106. package/dist/index333.js +2 -83
  107. package/dist/index334.js +23 -53
  108. package/dist/index335.js +39 -4
  109. package/dist/index336.js +2 -5
  110. package/dist/index337.js +10 -178
  111. package/dist/index338.js +18 -61
  112. package/dist/index339.js +9 -74
  113. package/dist/index340.js +10 -9
  114. package/dist/index341.js +16 -12
  115. package/dist/index342.js +2 -55
  116. package/dist/index343.js +9 -12
  117. package/dist/index344.js +9 -13
  118. package/dist/index345.js +13 -57
  119. package/dist/index346.js +258 -48
  120. package/dist/index347.js +4 -29
  121. package/dist/index348.js +140 -2
  122. package/dist/index349.js +73 -5
  123. package/dist/index350.js +87 -2
  124. package/dist/index351.js +29 -23
  125. package/dist/index352.js +15 -40
  126. package/dist/index353.js +75 -2
  127. package/dist/index354.js +4 -11
  128. package/dist/index355.js +2 -20
  129. package/dist/index356.js +83 -10
  130. package/dist/index357.js +53 -10
  131. package/dist/index358.js +4 -15
  132. package/dist/index359.js +5 -2
  133. package/dist/index360.js +179 -9
  134. package/dist/index361.js +62 -9
  135. package/dist/index362.js +74 -13
  136. package/dist/index368.js +1 -1
  137. package/dist/index369.js +1 -1
  138. package/dist/index370.js +5 -5
  139. package/dist/index372.js +2 -2
  140. package/dist/index374.js +2 -2
  141. package/dist/index376.js +1 -1
  142. package/dist/index378.js +4 -4
  143. package/dist/index379.js +3 -3
  144. package/dist/index380.js +98 -95
  145. package/dist/index381.js +90 -100
  146. package/dist/index382.js +98 -91
  147. package/dist/index384.js +1 -1
  148. package/dist/index385.js +3 -3
  149. package/dist/index390.js +1 -1
  150. package/dist/index392.js +1 -1
  151. package/dist/index393.js +3 -3
  152. package/dist/index394.js +3 -3
  153. package/dist/index4.js +5 -5
  154. package/dist/index402.js +1 -1
  155. package/dist/index88.js +43 -31
  156. package/dist/src/components/comment/comment.d.ts +9 -0
  157. package/dist/src/components/comment/comment.stories.d.ts +9 -0
  158. package/dist/src/components/comment-section/comment-section.d.ts +9 -0
  159. package/dist/src/components/comment-section/comment-section.stories.d.ts +9 -0
  160. package/dist/src/components/data-filter/data-filter.d.ts +27 -0
  161. package/dist/src/components/data-filter/data-filter.stories.d.ts +8 -0
  162. package/dist/src/components/data-list/data-list.d.ts +27 -0
  163. package/dist/src/components/grid/grid.stories.d.ts +36 -0
  164. package/dist/src/components/popover/popover.d.ts +17 -2
  165. package/dist/src/components/popover/popover.stories.d.ts +63 -0
  166. package/dist/src/components/room-details-popover/room-details-popover.d.ts +9 -0
  167. package/dist/src/views/lists.vue.d.ts +54 -0
  168. package/dist/src/views/tables.vue.d.ts +27 -0
  169. package/package.json +1 -1
package/dist/index138.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as J, ref as d, computed as z, onMounted as K, onUnmounted as Z, watch as ee, nextTick as q } from "vue";
2
- import { onClickOutside as L } from "./index173.js";
3
- import { useThrottleFn as A } from "./index184.js";
1
+ import { defineComponent as J, ref as d, computed as Y, onMounted as K, onUnmounted as Z, watch as ee, nextTick as N } from "vue";
2
+ import { onClickOutside as k } from "./index173.js";
3
+ import { useThrottleFn as L } from "./index184.js";
4
4
  const ne = J({
5
5
  name: "QPopover",
6
6
  props: {
@@ -33,7 +33,7 @@ const ne = J({
33
33
  /** Should the popover be repositioned and realigned automatically if it is outside viewport.
34
34
  * Moving element position from left to right, and top to bottom
35
35
  * and alignment from right to left or top to bottom.
36
- */
36
+ */
37
37
  reposition: {
38
38
  type: Boolean,
39
39
  default: !0
@@ -48,6 +48,13 @@ const ne = J({
48
48
  type: Boolean,
49
49
  default: !1
50
50
  },
51
+ /** When true, position the teleported popover to match non-teleported layout (same
52
+ * alignment offsets as in CSS, e.g. right: -2.5rem / left: -2.5rem). Use so
53
+ * teleported and non-teleported popovers align identically with the trigger. */
54
+ teleportMatchNonTeleportedPosition: {
55
+ type: Boolean,
56
+ default: !1
57
+ },
51
58
  /** Target element for teleport */
52
59
  teleportTo: {
53
60
  type: String,
@@ -85,141 +92,150 @@ const ne = J({
85
92
  },
86
93
  emits: ["update:modelValue"],
87
94
  setup(t, { emit: w }) {
88
- const p = d(!1), b = d(""), s = d(null), V = d(null), y = d(null), S = d(null), H = d(!1), x = d({
95
+ const p = d(!1), b = d(""), u = d(null), E = d(null), V = d(null), S = d(null), y = d(!1), M = d({
89
96
  top: "0",
90
97
  left: "0",
91
98
  transform: "none"
92
- }), v = d({}), C = z(() => V.value !== null ? V.value : p.value === !0 && t.reposition === !0 ? B(t.align) : t.align), R = z(() => y.value !== null ? y.value : p.value === !0 && t.reposition === !0 ? I(t.position) : t.position), B = (o) => {
93
- if (!s.value) return o;
94
- const e = t.teleport ? document.querySelector(".q-popover.teleported") : s.value.children[1];
95
- if (!e || E(e)) return o;
96
- const l = s.value.children[0].getBoundingClientRect(), r = e.getBoundingClientRect();
99
+ }), m = d({}), H = Y(() => E.value !== null ? E.value : t.teleportMatchNonTeleportedPosition ? t.align : p.value === !0 && t.reposition === !0 ? R(t.align) : t.align), P = Y(() => V.value !== null ? V.value : t.teleportMatchNonTeleportedPosition ? t.position : p.value === !0 && t.reposition === !0 ? C(t.position) : t.position), R = (o) => {
100
+ if (!u.value) return o;
101
+ const e = t.teleport ? document.querySelector(".q-popover.teleported") : u.value.children[1];
102
+ if (!e || (!t.teleport || !t.teleportMatchNonTeleportedPosition) && T(e))
103
+ return o;
104
+ const l = u.value.children[0].getBoundingClientRect(), c = e.getBoundingClientRect();
97
105
  if (o === "left" || o === "right" || o === "center") {
98
106
  const n = l.left;
99
- return window.innerWidth - n < r.width ? "right" : "left";
107
+ return window.innerWidth - n < c.width ? "right" : "left";
100
108
  } else {
101
109
  const n = l.top;
102
- return window.innerHeight - n < r.height ? "bottom" : "top";
110
+ return window.innerHeight - n < c.height ? "bottom" : "top";
103
111
  }
104
- }, I = (o) => {
105
- if (!s.value) return o;
106
- const e = t.teleport ? document.querySelector(".q-popover.teleported") : s.value.children[1];
107
- if (!e || E(e)) return o;
108
- const l = s.value.children[0].getBoundingClientRect(), r = e.getBoundingClientRect();
112
+ }, C = (o) => {
113
+ if (!u.value) return o;
114
+ const e = t.teleport ? document.querySelector(".q-popover.teleported") : u.value.children[1];
115
+ if (!e || (!t.teleport || !t.teleportMatchNonTeleportedPosition) && T(e))
116
+ return o;
117
+ const l = u.value.children[0].getBoundingClientRect(), c = e.getBoundingClientRect();
109
118
  if (o === "top" || o === "bottom") {
110
119
  const n = l.top;
111
- return window.innerHeight - n < r.height ? "top" : "bottom";
120
+ return window.innerHeight - n < c.height ? "top" : "bottom";
112
121
  } else {
113
122
  const n = l.left;
114
- return window.innerWidth - n < r.width ? "left" : "right";
123
+ return window.innerWidth - n < c.width ? "left" : "right";
115
124
  }
116
- }, E = (o) => {
125
+ }, T = (o) => {
117
126
  if (!o) return !1;
118
127
  const e = o.getBoundingClientRect();
119
128
  return e ? e.top >= 0 && e.left >= 0 && e.bottom <= (window.innerHeight || document.documentElement.clientHeight) && e.right <= (window.innerWidth || document.documentElement.clientWidth) : !1;
120
- }, X = () => {
121
- if (!s.value) return !0;
122
- const o = s.value.children[0];
129
+ }, z = () => {
130
+ if (!u.value) return !0;
131
+ const o = u.value.children[0];
123
132
  if (!o) return !0;
124
133
  const e = o.getBoundingClientRect();
125
134
  let l = o.parentElement;
126
135
  for (; l; ) {
127
- const c = getComputedStyle(l), u = c.overflowY, f = c.overflowX;
128
- if (u === "auto" || u === "scroll" || (f === "auto" || f === "scroll")) {
129
- const m = l.getBoundingClientRect();
130
- if (!(e.bottom > m.top && e.top < m.bottom && e.right > m.left && e.left < m.right))
136
+ const r = getComputedStyle(l), a = r.overflowY, f = r.overflowX;
137
+ if (a === "auto" || a === "scroll" || (f === "auto" || f === "scroll")) {
138
+ const h = l.getBoundingClientRect();
139
+ if (!(e.bottom > h.top && e.top < h.bottom && e.right > h.left && e.left < h.right))
131
140
  return !1;
132
141
  }
133
142
  l = l.parentElement;
134
143
  }
135
- const r = window.innerHeight || document.documentElement.clientHeight, n = window.innerWidth || document.documentElement.clientWidth;
136
- return e.bottom > 0 && e.top < r && e.right > 0 && e.left < n;
137
- }, $ = (o) => {
144
+ const c = window.innerHeight || document.documentElement.clientHeight, n = window.innerWidth || document.documentElement.clientWidth;
145
+ return e.bottom > 0 && e.top < c && e.right > 0 && e.left < n;
146
+ }, X = (o) => {
138
147
  let e = o.parentElement;
139
148
  for (; e && e !== document.documentElement; ) {
140
- const r = getComputedStyle(e).overflowY;
141
- if ((r === "auto" || r === "scroll") && e.scrollHeight > e.clientHeight)
149
+ const c = getComputedStyle(e).overflowY;
150
+ if ((c === "auto" || c === "scroll") && e.scrollHeight > e.clientHeight)
142
151
  return e;
143
152
  e = e.parentElement;
144
153
  }
145
154
  return null;
146
- }, O = () => {
147
- if (!t.teleport || !t.scrollIntoView || !t.modelValue) return;
148
- const o = document.querySelector(".q-popover.teleported");
155
+ }, I = () => {
156
+ if (!t.teleport || !t.scrollIntoView || !t.modelValue)
157
+ return;
158
+ const o = document.querySelector(
159
+ ".q-popover.teleported"
160
+ );
149
161
  if (!o) return;
150
- const e = o.getBoundingClientRect(), l = t.scrollIntoViewPadding, r = window.innerHeight, n = window.innerWidth;
151
- let i = 0, c = 0;
152
- if (e.bottom + l > r ? c = e.bottom + l - r : e.top - l < 0 && (c = e.top - l), e.right + l > n ? i = e.right + l - n : e.left - l < 0 && (i = e.left - l), !(i === 0 && c === 0)) {
153
- if (s.value) {
154
- const u = s.value.children[0];
155
- if (u) {
156
- const f = $(u);
162
+ const e = o.getBoundingClientRect(), l = t.scrollIntoViewPadding, c = window.innerHeight, n = window.innerWidth;
163
+ let i = 0, r = 0;
164
+ if (e.bottom + l > c ? r = e.bottom + l - c : e.top - l < 0 && (r = e.top - l), e.right + l > n ? i = e.right + l - n : e.left - l < 0 && (i = e.left - l), !(i === 0 && r === 0)) {
165
+ if (u.value) {
166
+ const a = u.value.children[0];
167
+ if (a) {
168
+ const f = X(a);
157
169
  if (f) {
158
- const a = f.scrollTop;
170
+ const s = f.scrollTop;
159
171
  f.scrollBy({
160
- top: c,
172
+ top: r,
161
173
  left: i,
162
174
  behavior: "smooth"
163
175
  }), requestAnimationFrame(() => {
164
- f.scrollTop !== a && (g(), h());
176
+ f.scrollTop !== s && (g(), v());
165
177
  });
166
178
  return;
167
179
  }
168
180
  }
169
181
  }
170
182
  window.scrollBy({
171
- top: c,
183
+ top: r,
172
184
  left: i,
173
185
  behavior: "smooth"
174
186
  });
175
187
  }
176
- }, M = () => {
188
+ }, _ = () => {
177
189
  if (!t.teleport || !t.scrollIntoView) return;
178
- T();
179
- const o = document.querySelector(".q-popover.teleported");
190
+ B();
191
+ const o = document.querySelector(
192
+ ".q-popover.teleported"
193
+ );
180
194
  o && (S.value = new ResizeObserver(() => {
181
- H.value || (H.value = !0, setTimeout(() => {
182
- g(), h(), O(), q(() => {
195
+ y.value || (y.value = !0, setTimeout(() => {
196
+ g(), v(), I(), N(() => {
183
197
  requestAnimationFrame(() => {
184
- H.value = !1;
198
+ y.value = !1;
185
199
  });
186
200
  });
187
201
  }, 50));
188
202
  }), S.value.observe(o));
189
- }, T = () => {
203
+ }, B = () => {
190
204
  S.value && (S.value.disconnect(), S.value = null);
191
- }, h = () => {
192
- if (!t.teleport || !t.scrollIntoView || !t.modelValue || !s.value) return;
193
- const o = s.value.children[0];
205
+ }, v = () => {
206
+ if (!t.teleport || !t.scrollIntoView || !t.modelValue || !u.value) return;
207
+ const o = u.value.children[0];
194
208
  if (!o) return;
195
- const e = document.querySelector(".q-popover.teleported");
209
+ const e = document.querySelector(
210
+ ".q-popover.teleported"
211
+ );
196
212
  if (!e) return;
197
- const l = o.getBoundingClientRect(), r = 10, n = t.scrollIntoViewPadding, i = window.innerHeight, c = R.value, u = 200, f = 30;
198
- let a;
199
- if (c === "bottom") {
200
- const k = l.bottom + r;
201
- a = i - k - n;
202
- } else c === "top" ? a = l.top - r - n : a = i - n * 2;
203
- a = Math.max(a, u);
204
- const W = e.scrollHeight, m = !!v.value.maxHeight;
205
- !m && W > a ? v.value = {
206
- maxHeight: `${a}px`,
213
+ const l = o.getBoundingClientRect(), c = 10, n = t.scrollIntoViewPadding, i = window.innerHeight, r = P.value, a = 200, f = 30;
214
+ let s;
215
+ if (r === "bottom") {
216
+ const x = l.bottom + c;
217
+ s = i - x - n;
218
+ } else r === "top" ? s = l.top - c - n : s = i - n * 2;
219
+ s = Math.max(s, a);
220
+ const O = e.scrollHeight, h = !!m.value.maxHeight;
221
+ !h && O > s ? m.value = {
222
+ maxHeight: `${s}px`,
207
223
  overflowY: "auto"
208
- } : m && (v.value = {
209
- maxHeight: `${a}px`,
224
+ } : h && (m.value = {
225
+ maxHeight: `${s}px`,
210
226
  overflowY: "auto"
211
- }, W < a - f && (v.value = {}));
227
+ }, O < s - f && (m.value = {}));
212
228
  }, F = () => {
213
229
  (t.trigger === "click" || t.trigger === "both") && w("update:modelValue", !t.modelValue);
214
- }, N = () => {
230
+ }, A = () => {
215
231
  t.trigger !== "click" && w("update:modelValue", !1);
216
- }, U = () => {
232
+ }, $ = () => {
217
233
  t.trigger !== "click" && w("update:modelValue", !0);
218
- }, Q = () => {
219
- const o = s.value?.children[0];
234
+ }, U = () => {
235
+ const o = u.value?.children[0];
220
236
  if (o) {
221
237
  const e = o.clientWidth, l = o.clientHeight;
222
- switch (C.value) {
238
+ switch (H.value) {
223
239
  case "left":
224
240
  b.value = `margin-left: ${e / 2 - 10}px;`;
225
241
  break;
@@ -235,76 +251,83 @@ const ne = J({
235
251
  }
236
252
  }
237
253
  }, g = () => {
238
- if (!s.value || !t.teleport) return;
239
- const o = s.value.children[0];
254
+ if (!u.value || !t.teleport) return;
255
+ const o = u.value.children[0];
240
256
  if (!o) return;
241
- const e = o.getBoundingClientRect(), l = 10, r = R.value, n = C.value;
242
- let i = 0, c = 0, u = "none";
243
- r === "bottom" ? (i = e.bottom + l, n === "left" ? (c = e.left, u = "none") : n === "right" ? (c = e.right, u = "translateX(-100%)") : n === "center" && (c = e.left + e.width / 2, u = "translateX(-50%)")) : r === "top" ? (i = e.top - l, u = "translateY(-100%)", n === "left" ? c = e.left : n === "right" ? (c = e.right, u = "translate(-100%, -100%)") : n === "center" && (c = e.left + e.width / 2, u = "translate(-50%, -100%)")) : r === "left" ? (c = e.left - l, u = "translateX(-100%)", n === "top" ? i = e.top : n === "bottom" ? (i = e.bottom, u = "translate(-100%, -100%)") : n === "middle" && (i = e.top + e.height / 2, u = "translate(-100%, -50%)")) : r === "right" && (c = e.right + l, n === "top" ? (i = e.top, u = "none") : n === "bottom" ? (i = e.bottom, u = "translateY(-100%)") : n === "middle" && (i = e.top + e.height / 2, u = "translateY(-50%)")), x.value = {
257
+ const e = o.getBoundingClientRect(), l = 10, c = P.value, n = H.value;
258
+ let i = 0, r = 0, a = "none";
259
+ const f = 40, s = 16;
260
+ c === "bottom" ? (i = e.bottom + l, n === "left" ? (r = e.left, t.teleportMatchNonTeleportedPosition && (r = e.left - f), a = "none") : n === "right" ? (r = e.right, t.teleportMatchNonTeleportedPosition && (r = e.right + f), a = "translateX(-100%)") : n === "center" && (r = e.left + e.width / 2, a = "translateX(-50%)")) : c === "top" ? (i = e.top - l, a = "translateY(-100%)", n === "left" ? (r = e.left, t.teleportMatchNonTeleportedPosition && (r = e.left - f)) : n === "right" ? (r = e.right, t.teleportMatchNonTeleportedPosition && (r = e.right + f), a = "translate(-100%, -100%)") : n === "center" && (r = e.left + e.width / 2, a = "translate(-50%, -100%)")) : c === "left" ? (r = e.left - l, a = "translateX(-100%)", n === "top" ? (i = e.top, t.teleportMatchNonTeleportedPosition && (i = e.top - s)) : n === "bottom" ? (i = e.bottom, a = "translate(-100%, -100%)") : n === "middle" && (i = e.top + e.height / 2, a = "translate(-100%, -50%)")) : c === "right" && (r = e.right + l, n === "top" ? (i = e.top, t.teleportMatchNonTeleportedPosition && (i = e.top - s), a = "none") : n === "bottom" ? (i = e.bottom, a = "translateY(-100%)") : n === "middle" && (i = e.top + e.height / 2, a = "translateY(-50%)")), M.value = {
244
261
  top: `${i}px`,
245
- left: `${c}px`,
246
- transform: u
262
+ left: `${r}px`,
263
+ transform: a
247
264
  };
248
- }, _ = () => {
249
- t.teleport && t.modelValue && (g(), h());
250
- }, G = () => {
265
+ }, D = () => {
266
+ t.teleport && t.modelValue && (g(), v());
267
+ }, Q = () => {
251
268
  if (t.teleport && t.modelValue) {
252
- if (t.closeOnScrollOutOfView && !X()) {
269
+ if (t.closeOnScrollOutOfView && !z()) {
253
270
  w("update:modelValue", !1);
254
271
  return;
255
272
  }
256
- t.followScroll && (g(), h());
273
+ t.followScroll && (g(), v());
257
274
  }
258
- }, P = A(_, 16, !0), Y = A(G, 16, !0);
259
- L(s, (o) => {
275
+ }, W = L(D, 16, !0), q = L(Q, 16, !0);
276
+ k(u, (o) => {
260
277
  if (t.teleport) {
261
- const e = document.querySelector(".q-popover.teleported");
278
+ const e = document.querySelector(
279
+ ".q-popover.teleported"
280
+ );
262
281
  if (e && e.contains(o.target))
263
282
  return;
264
283
  }
265
284
  t.modelValue && w("update:modelValue", !1);
266
285
  });
267
- function j() {
268
- p.value = !1, V.value = null, y.value = null, H.value = !1, v.value = {}, T();
286
+ function G() {
287
+ p.value = !1, E.value = null, V.value = null, y.value = !1, m.value = {}, B();
269
288
  }
270
- function D() {
271
- p.value = !0, t.teleport ? q(() => {
272
- t.reposition && (V.value = B(t.align), y.value = I(t.position)), g(), t.scrollIntoView && setTimeout(() => {
273
- h(), M(), O();
289
+ function j() {
290
+ p.value = !0, t.teleport ? N(() => {
291
+ t.reposition && (E.value = R(t.align), V.value = C(t.position)), g(), t.scrollIntoView && setTimeout(() => {
292
+ v(), _(), I();
274
293
  }, 100);
275
- }) : !E(s.value?.children[1]) && t.reposition === !0 && Q();
294
+ }) : !T(u.value?.children[1]) && t.reposition === !0 && U();
276
295
  }
277
296
  return K(() => {
278
- t.teleport && (window.addEventListener("resize", P), window.addEventListener("scroll", Y, !0));
297
+ t.teleport && (window.addEventListener("resize", W), window.addEventListener("scroll", q, !0));
279
298
  }), Z(() => {
280
- t.teleport && (window.removeEventListener("resize", P), window.removeEventListener("scroll", Y, !0)), T();
299
+ t.teleport && (window.removeEventListener("resize", W), window.removeEventListener(
300
+ "scroll",
301
+ q,
302
+ !0
303
+ )), B();
281
304
  }), ee(
282
305
  () => t.modelValue,
283
306
  (o) => {
284
- t.teleport && o && q(() => {
285
- g(), h();
307
+ t.teleport && o && N(() => {
308
+ g(), v();
286
309
  });
287
310
  }
288
311
  ), {
289
312
  // Refs
290
313
  entered: p,
291
314
  offsetStyle: b,
292
- popover: s,
293
- teleportedContentStyle: v,
294
- teleportedStyle: x,
315
+ popover: u,
316
+ teleportedContentStyle: m,
317
+ teleportedStyle: M,
295
318
  // Computed
296
- alignment: C,
297
- positioning: R,
319
+ alignment: H,
320
+ positioning: P,
298
321
  // Methods
299
- getAlignment: B,
300
- getPositioning: I,
301
- isElementInView: E,
302
- onAfterLeave: j,
322
+ getAlignment: R,
323
+ getPositioning: C,
324
+ isElementInView: T,
325
+ onAfterLeave: G,
303
326
  onClick: F,
304
- onClickOutside: L,
305
- onEnter: D,
306
- onMouseLeave: N,
307
- onMouseOver: U,
327
+ onClickOutside: k,
328
+ onEnter: j,
329
+ onMouseLeave: A,
330
+ onMouseOver: $,
308
331
  updateTeleportedPosition: g
309
332
  };
310
333
  }
package/dist/index15.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import y from "./index88.js";
2
- import { resolveComponent as d, openBlock as t, createElementBlock as f, createElementVNode as l, renderSlot as s, createVNode as a, createCommentVNode as i, toDisplayString as u, normalizeProps as m, guardReactiveProps as h, createBlock as c, withCtx as o, createTextVNode as k, normalizeClass as v, Transition as w } from "vue";
2
+ import { resolveComponent as d, openBlock as t, createElementBlock as f, createElementVNode as s, renderSlot as l, createVNode as a, createCommentVNode as i, toDisplayString as u, normalizeProps as p, guardReactiveProps as m, createBlock as c, withCtx as o, createTextVNode as k, normalizeClass as C, Transition as w } from "vue";
3
3
  /* empty css */
4
4
  import q from "./index65.js";
5
5
  const B = ["id"], F = { class: "search grow" }, z = {
6
6
  class: "search-label flex items-center",
7
7
  for: "search"
8
- }, V = { class: "results-count mx-1 shrink-0 text-xs text-gray-40 capitalize" }, P = {
8
+ }, P = { class: "results-count mx-1 shrink-0 text-xs text-gray-40 capitalize" }, V = {
9
9
  key: 1,
10
10
  class: "filters shrink-0 h-6"
11
- }, H = { class: "flex relative" }, E = { class: "!text-blue-20 text-tiny font-bold" }, R = { key: 1 }, A = { class: "flex relative" }, T = { class: "!text-blue-20 text-tiny font-bold" }, U = { class: "flex relative" }, _ = { class: "!text-blue-20 text-tiny font-bold" }, L = {
11
+ }, T = { class: "flex relative" }, H = { class: "!text-blue-20 text-tiny font-bold" }, E = { key: 1 }, R = { class: "flex relative" }, A = { class: "!text-blue-20 text-tiny font-bold" }, U = { class: "flex relative" }, L = { class: "!text-blue-20 text-tiny font-bold" }, N = {
12
12
  key: 2,
13
13
  class: "actions shrink-0 flex items-center h-6"
14
14
  };
15
- function N(e, r, D, I, Q, X) {
16
- const p = d("q-icon"), S = d("q-input"), C = d("q-badge"), g = d("q-tooltip"), $ = d("q-popover"), b = d("q-bottom-sheet");
15
+ function D(e, r, I, Q, _, X) {
16
+ const h = d("q-icon"), S = d("q-input"), v = d("q-badge"), g = d("q-tooltip"), $ = d("q-popover"), b = d("q-bottom-sheet");
17
17
  return t(), f("div", {
18
18
  id: e.id,
19
19
  class: "data-filter flex items-center p-4 bg-white"
20
20
  }, [
21
- l("div", F, [
22
- e.hasSearch ? s(e.$slots, "search", { key: 0 }, () => [
23
- l("label", z, [
24
- a(p, {
21
+ s("div", F, [
22
+ e.hasSearch ? l(e.$slots, "search", { key: 0 }, () => [
23
+ s("label", z, [
24
+ a(h, {
25
25
  class: "mr-2 shrink-0",
26
26
  color: "gray-40",
27
27
  icon: "search",
@@ -41,18 +41,23 @@ function N(e, r, D, I, Q, X) {
41
41
  ])
42
42
  ], !0) : i("", !0)
43
43
  ]),
44
- e.showResultsCount ? s(e.$slots, "resultsCount", { key: 0 }, () => [
45
- l("div", V, u(e.filteredCount === 1 ? "1 " + e.$t("HC_RESULT") : e.$t("HC_X_RESULTS", { count: e.filteredCount })), 1)
44
+ e.showResultsCount ? l(e.$slots, "resultsCount", { key: 0 }, () => [
45
+ s("div", P, u(e.filteredCount === 1 ? "1 " + e.$t("HC_RESULT") : e.$t("HC_X_RESULTS", { count: e.filteredCount })), 1)
46
46
  ], !0) : i("", !0),
47
- s(e.$slots, "beforeFilters", {}, void 0, !0),
48
- e.filters?.length ? (t(), f("div", P, [
49
- s(e.$slots, "filters", m(h({ filtersCount: e.filtersCount })), () => [
47
+ l(e.$slots, "beforeFilters", {}, void 0, !0),
48
+ e.filters?.length ? (t(), f("div", V, [
49
+ l(e.$slots, "filters", p(m({ filtersCount: e.filtersCount })), () => [
50
50
  e.$slots.filterContent && e.mq.md ? (t(), c($, {
51
51
  key: 0,
52
52
  modelValue: e.showFilterPopover,
53
53
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.showFilterPopover = n),
54
+ "close-on-scroll-out-of-view": "",
54
55
  reposition: e.repositionPopover,
55
56
  size: e.filtersPopoverSize,
57
+ teleport: e.filtersPopoverTeleport,
58
+ "teleport-match-non-teleported-position": e.filtersPopoverTeleport,
59
+ "teleport-to": e.filtersPopoverTeleportTo,
60
+ "follow-scroll": !1,
56
61
  position: "bottom",
57
62
  align: "right",
58
63
  trigger: "click"
@@ -60,24 +65,24 @@ function N(e, r, D, I, Q, X) {
60
65
  trigger: o(({ onClick: n }) => [
61
66
  a(g, { class: "z-[45] ml-2" }, {
62
67
  trigger: o(() => [
63
- l("div", H, [
64
- a(p, {
68
+ s("div", T, [
69
+ a(h, {
65
70
  class: "filters-icon ml-0 cursor-pointer",
66
71
  color: e.showFilterPopover ? "blue-20" : "gray-40",
67
72
  icon: "filter",
68
73
  size: "md",
69
74
  onClick: (j) => e.onFilterClick(n)
70
75
  }, null, 8, ["color", "onClick"]),
71
- e.filtersCount ? (t(), c(C, {
76
+ e.filtersCount ? (t(), c(v, {
72
77
  key: 0,
73
- class: v([
78
+ class: C([
74
79
  "filters-count absolute !h-4 !w-4",
75
80
  "-top-[0.3125rem] -right-[0.375rem]"
76
81
  ]),
77
82
  color: "white"
78
83
  }, {
79
84
  text: o(() => [
80
- l("span", E, u(e.filtersCount), 1)
85
+ s("span", H, u(e.filtersCount), 1)
81
86
  ]),
82
87
  _: 1
83
88
  })) : i("", !0)
@@ -90,28 +95,28 @@ function N(e, r, D, I, Q, X) {
90
95
  }, 1024)
91
96
  ]),
92
97
  content: o(() => [
93
- s(e.$slots, "filterContent", m(h({ closePopover: e.closePopover })), void 0, !0)
98
+ l(e.$slots, "filterContent", p(m({ closePopover: e.closePopover })), void 0, !0)
94
99
  ]),
95
100
  _: 3
96
- }, 8, ["modelValue", "reposition", "size"])) : e.$slots.filterSheetContent && !e.mq.md ? (t(), f("div", R, [
97
- l("div", A, [
98
- a(p, {
101
+ }, 8, ["modelValue", "reposition", "size", "teleport", "teleport-match-non-teleported-position", "teleport-to"])) : e.$slots.filterSheetContent && !e.mq.md ? (t(), f("div", E, [
102
+ s("div", R, [
103
+ a(h, {
99
104
  class: "filters-icon ml-0 cursor-pointer",
100
105
  color: e.showFilterBottomSheet ? "blue-20" : "gray-40",
101
106
  icon: "filter",
102
107
  size: "md",
103
108
  onClick: r[1] || (r[1] = (n) => e.showFilterBottomSheet = !0)
104
109
  }, null, 8, ["color"]),
105
- e.filtersCount ? (t(), c(C, {
110
+ e.filtersCount ? (t(), c(v, {
106
111
  key: 0,
107
- class: v([
112
+ class: C([
108
113
  "filters-count absolute !h-4 !w-4",
109
114
  "-top-[0.3125rem] -right-[0.375rem]"
110
115
  ]),
111
116
  color: "white"
112
117
  }, {
113
118
  text: o(() => [
114
- l("span", T, u(e.filtersCount), 1)
119
+ s("span", A, u(e.filtersCount), 1)
115
120
  ]),
116
121
  _: 1
117
122
  })) : i("", !0)
@@ -128,16 +133,16 @@ function N(e, r, D, I, Q, X) {
128
133
  "background-color": "gray-00"
129
134
  }, {
130
135
  backAction: o(() => [
131
- s(e.$slots, "filterSheetBackAction", m(h({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
136
+ l(e.$slots, "filterSheetBackAction", p(m({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
132
137
  ]),
133
138
  header: o(() => [
134
- s(e.$slots, "filterSheetHeader", {}, void 0, !0)
139
+ l(e.$slots, "filterSheetHeader", {}, void 0, !0)
135
140
  ]),
136
141
  headerAction: o(() => [
137
- s(e.$slots, "filterSheetHeaderAction", m(h({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
142
+ l(e.$slots, "filterSheetHeaderAction", p(m({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
138
143
  ]),
139
144
  default: o(() => [
140
- s(e.$slots, "filterSheetContent", m(h({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
145
+ l(e.$slots, "filterSheetContent", p(m({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
141
146
  ]),
142
147
  _: 3
143
148
  }, 8, ["modelValue"])) : i("", !0)
@@ -149,24 +154,24 @@ function N(e, r, D, I, Q, X) {
149
154
  class: "z-[45] ml-2"
150
155
  }, {
151
156
  trigger: o(() => [
152
- l("div", U, [
153
- a(p, {
157
+ s("div", U, [
158
+ a(h, {
154
159
  class: "filters-icon ml-0 cursor-pointer",
155
160
  color: e.filtersActive ? "blue-20" : "gray-40",
156
161
  icon: "filter",
157
162
  size: "md",
158
163
  onClick: r[3] || (r[3] = (n) => e.$emit("click:filters"))
159
164
  }, null, 8, ["color"]),
160
- e.filtersCount ? (t(), c(C, {
165
+ e.filtersCount ? (t(), c(v, {
161
166
  key: 0,
162
- class: v([
167
+ class: C([
163
168
  "filters-count absolute !h-4 !w-4",
164
169
  "-top-[0.3125rem] -right-[0.375rem]"
165
170
  ]),
166
171
  color: "white"
167
172
  }, {
168
173
  text: o(() => [
169
- l("span", _, u(e.filtersCount), 1)
174
+ s("span", L, u(e.filtersCount), 1)
170
175
  ]),
171
176
  _: 1
172
177
  })) : i("", !0)
@@ -179,12 +184,12 @@ function N(e, r, D, I, Q, X) {
179
184
  }))
180
185
  ], !0)
181
186
  ])) : i("", !0),
182
- e.$slots.actions ? (t(), f("div", L, [
183
- s(e.$slots, "actions", {}, void 0, !0)
187
+ e.$slots.actions ? (t(), f("div", N, [
188
+ l(e.$slots, "actions", {}, void 0, !0)
184
189
  ])) : i("", !0)
185
190
  ], 8, B);
186
191
  }
187
- const O = /* @__PURE__ */ q(y, [["render", N], ["__scopeId", "data-v-0e8ea36d"]]);
192
+ const O = /* @__PURE__ */ q(y, [["render", D], ["__scopeId", "data-v-1dd7e45c"]]);
188
193
  export {
189
194
  O as default
190
195
  };
package/dist/index186.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createVNode as s, defineComponent as nt, ref as k, onMounted as me, onUnmounted as at, h as Ye, watchEffect as Y, Teleport as lt, Transition as ot, computed as A, toRef as rt, inject as ge, watch as st, openBlock as ye, createElementBlock as be, provide as we, shallowRef as it, createElementVNode as Z, isVNode as ut } from "vue";
2
- import { format as Ce } from "./index230.js";
3
- import { parse as ct } from "./index231.js";
4
- import { getWeek as Ie } from "./index232.js";
5
- import dt from "./index233.js";
2
+ import { format as Ce } from "./index282.js";
3
+ import { parse as ct } from "./index283.js";
4
+ import { getWeek as Ie } from "./index284.js";
5
+ import dt from "./index285.js";
6
6
  var ft = Object.defineProperty, pt = Object.defineProperties, vt = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertySymbols, Ue = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable, Se = (t, e, n) => e in t ? ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e) => {
7
7
  for (var n in e || (e = {}))
8
8
  Ue.call(e, n) && Se(t, n, e[n]);
package/dist/index193.js CHANGED
@@ -1,14 +1,14 @@
1
- import A from "./index234.js";
2
- import O from "./index235.js";
3
- import V from "./index236.js";
4
- import R from "./index237.js";
5
- import j from "./index238.js";
6
- import K from "./index239.js";
1
+ import A from "./index254.js";
2
+ import O from "./index255.js";
3
+ import V from "./index233.js";
4
+ import R from "./index256.js";
5
+ import j from "./index257.js";
6
+ import K from "./index258.js";
7
7
  import H from "./index227.js";
8
8
  import { DomHandler as w } from "./index180.js";
9
9
  import W from "./index228.js";
10
- import G from "./index240.js";
11
- import Y from "./index241.js";
10
+ import G from "./index259.js";
11
+ import Y from "./index260.js";
12
12
  import { resolveComponent as y, openBlock as o, createElementBlock as f, Fragment as U, renderList as E, mergeProps as r, createElementVNode as h, toDisplayString as F, createVNode as L, normalizeClass as B, withCtx as C, createBlock as m, resolveDynamicComponent as b, resolveDirective as Z, renderSlot as g, withDirectives as M, withKeys as T, createCommentVNode as v, createTextVNode as z } from "vue";
13
13
  var q = {
14
14
  name: "BaseFileUpload",
package/dist/index195.js CHANGED
@@ -1,15 +1,15 @@
1
- import q from "./index273.js";
2
- import X from "./index277.js";
1
+ import q from "./index230.js";
2
+ import X from "./index231.js";
3
3
  import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index180.js";
4
4
  import O from "./index228.js";
5
- import Y from "./index283.js";
6
- import J from "./index236.js";
5
+ import Y from "./index232.js";
6
+ import J from "./index233.js";
7
7
  import L from "./index227.js";
8
- import H from "./index284.js";
9
- import M from "./index265.js";
8
+ import H from "./index234.js";
9
+ import M from "./index235.js";
10
10
  import { resolveDirective as C, openBlock as s, createElementBlock as d, mergeProps as l, createElementVNode as b, withDirectives as y, createBlock as f, resolveDynamicComponent as p, createCommentVNode as h, Fragment as U, renderList as G, resolveComponent as A, createVNode as z, withCtx as D, Transition as Q } from "vue";
11
- import ee from "./index264.js";
12
- import te from "./index285.js";
11
+ import ee from "./index236.js";
12
+ import te from "./index237.js";
13
13
  var ie = {
14
14
  name: "BaseGalleria",
15
15
  extends: O,