@quoreadmin/ui 1.10.9 → 1.10.11

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 (229) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index105.js +1 -1
  3. package/dist/index111.js +1 -1
  4. package/dist/index115.js +1 -1
  5. package/dist/index136.js +1 -1
  6. package/dist/index138.js +146 -146
  7. package/dist/index151.js +2 -2
  8. package/dist/index162.js +1 -1
  9. package/dist/index173.js +2 -2
  10. package/dist/index180.js +228 -1151
  11. package/dist/index182.js +14 -14
  12. package/dist/index183.js +96 -266
  13. package/dist/index184.js +2 -106
  14. package/dist/index185.js +1376 -2
  15. package/dist/index187.js +20 -0
  16. package/dist/index188.js +12 -12
  17. package/dist/index189.js +10 -10
  18. package/dist/index190.js +12 -12
  19. package/dist/index191.js +21 -14
  20. package/dist/index192.js +757 -23
  21. package/dist/index193.js +1144 -759
  22. package/dist/index194.js +1234 -1144
  23. package/dist/index195.js +11248 -1205
  24. package/dist/index196.js +1135 -11213
  25. package/dist/index198.js +17 -17
  26. package/dist/index201.js +29 -29
  27. package/dist/index202.js +2 -2
  28. package/dist/index203.js +2 -2
  29. package/dist/index204.js +1 -1
  30. package/dist/index206.js +2 -2
  31. package/dist/index208.js +14 -14
  32. package/dist/index209.js +1 -1
  33. package/dist/index210.js +1 -1
  34. package/dist/index211.js +3 -3
  35. package/dist/index212.js +6 -6
  36. package/dist/index213.js +158 -30
  37. package/dist/index214.js +224 -112
  38. package/dist/index215.js +32 -31
  39. package/dist/index216.js +10 -26
  40. package/dist/index217.js +83 -31
  41. package/dist/index218.js +404 -48
  42. package/dist/index219.js +22 -43
  43. package/dist/index220.js +32 -3
  44. package/dist/index221.js +116 -9
  45. package/dist/index222.js +35 -18
  46. package/dist/index223.js +26 -10
  47. package/dist/index224.js +36 -10
  48. package/dist/index225.js +48 -36
  49. package/dist/index226.js +43 -21
  50. package/dist/index227.js +3 -87
  51. package/dist/index228.js +9 -407
  52. package/dist/index229.js +19 -22
  53. package/dist/index230.js +10 -161
  54. package/dist/index231.js +9 -227
  55. package/dist/index232.js +36 -34
  56. package/dist/index233.js +21 -10
  57. package/dist/index234.js +121 -155
  58. package/dist/index235.js +37 -19
  59. package/dist/index236.js +80 -20
  60. package/dist/index237.js +13 -15
  61. package/dist/index238.js +19 -198
  62. package/dist/index239.js +18 -68
  63. package/dist/index240.js +20 -34
  64. package/dist/index241.js +19 -39
  65. package/dist/index242.js +155 -121
  66. package/dist/index243.js +19 -37
  67. package/dist/index244.js +22 -80
  68. package/dist/index245.js +198 -19
  69. package/dist/index246.js +68 -18
  70. package/dist/index247.js +34 -20
  71. package/dist/index248.js +39 -19
  72. package/dist/index249.js +253 -22
  73. package/dist/index250.js +7 -21
  74. package/dist/index251.js +138 -20
  75. package/dist/index252.js +78 -831
  76. package/dist/index253.js +21 -701
  77. package/dist/index254.js +22 -176
  78. package/dist/index255.js +13 -15
  79. package/dist/index256.js +836 -20
  80. package/dist/index257.js +701 -19
  81. package/dist/index258.js +176 -3
  82. package/dist/index259.js +21 -186
  83. package/dist/index260.js +19 -132
  84. package/dist/index261.js +20 -1223
  85. package/dist/index262.js +3 -20
  86. package/dist/index263.js +186 -21
  87. package/dist/index264.js +132 -21
  88. package/dist/index265.js +1223 -29
  89. package/dist/index266.js +12 -12
  90. package/dist/index267.js +15 -13
  91. package/dist/index268.js +22 -2
  92. package/dist/index269.js +29 -2
  93. package/dist/index270.js +20 -3636
  94. package/dist/index271.js +20 -55
  95. package/dist/index272.js +2 -77
  96. package/dist/index273.js +2 -52
  97. package/dist/index274.js +2 -215
  98. package/dist/index275.js +79 -10
  99. package/dist/index276.js +3623 -44
  100. package/dist/index277.js +35 -41
  101. package/dist/index278.js +59 -36
  102. package/dist/index279.js +21 -44
  103. package/dist/index280.js +176 -687
  104. package/dist/index281.js +9 -41
  105. package/dist/index282.js +39 -46
  106. package/dist/index283.js +60 -10
  107. package/dist/index284.js +46 -697
  108. package/dist/index285.js +73 -818
  109. package/dist/index286.js +708 -235
  110. package/dist/index287.js +41 -7
  111. package/dist/index288.js +60 -134
  112. package/dist/index289.js +11 -83
  113. package/dist/index290.js +705 -3
  114. package/dist/index291.js +814 -21
  115. package/dist/index292.js +3 -54
  116. package/dist/index293.js +25 -77
  117. package/dist/index294.js +53 -25
  118. package/dist/index295.js +19 -15
  119. package/dist/index296.js +10 -10
  120. package/dist/index297.js +22 -16
  121. package/dist/index298.js +14 -15
  122. package/dist/index299.js +15 -21
  123. package/dist/index300.js +23 -2
  124. package/dist/index301.js +79 -1534
  125. package/dist/index302.js +22 -386
  126. package/dist/index303.js +902 -2698
  127. package/dist/index304.js +21 -85
  128. package/dist/index305.js +20 -3792
  129. package/dist/index306.js +19 -59
  130. package/dist/index307.js +67 -77
  131. package/dist/index308.js +18 -21
  132. package/dist/index309.js +18 -934
  133. package/dist/index310.js +16 -16
  134. package/dist/index311.js +13 -11
  135. package/dist/index312.js +62 -19
  136. package/dist/index313.js +260 -67
  137. package/dist/index314.js +6 -19
  138. package/dist/index315.js +139 -18
  139. package/dist/index316.js +72 -21
  140. package/dist/index317.js +85 -20
  141. package/dist/index318.js +29 -63
  142. package/dist/index319.js +16 -15
  143. package/dist/index320.js +65 -74
  144. package/dist/index321.js +3 -201
  145. package/dist/index322.js +2 -246
  146. package/dist/index323.js +75 -254
  147. package/dist/index324.js +52 -5
  148. package/dist/index325.js +5 -139
  149. package/dist/index326.js +4 -72
  150. package/dist/index327.js +171 -79
  151. package/dist/index328.js +60 -26
  152. package/dist/index329.js +75 -16
  153. package/dist/index330.js +35 -73
  154. package/dist/index331.js +1533 -3
  155. package/dist/index332.js +386 -2
  156. package/dist/index333.js +2730 -82
  157. package/dist/index334.js +84 -51
  158. package/dist/index335.js +3790 -4
  159. package/dist/index336.js +59 -4
  160. package/dist/index337.js +15 -179
  161. package/dist/index338.js +78 -57
  162. package/dist/index339.js +201 -74
  163. package/dist/index340.js +245 -8
  164. package/dist/index341.js +9 -12
  165. package/dist/index342.js +10 -55
  166. package/dist/index343.js +14 -12
  167. package/dist/index344.js +10 -14
  168. package/dist/index345.js +15 -56
  169. package/dist/index346.js +8 -51
  170. package/dist/index347.js +12 -30
  171. package/dist/index348.js +55 -2
  172. package/dist/index349.js +12 -5
  173. package/dist/index350.js +14 -2
  174. package/dist/index351.js +57 -22
  175. package/dist/index352.js +50 -39
  176. package/dist/index353.js +31 -2
  177. package/dist/index354.js +2 -11
  178. package/dist/index355.js +5 -20
  179. package/dist/index356.js +2 -10
  180. package/dist/index357.js +22 -9
  181. package/dist/index358.js +38 -14
  182. package/dist/index359.js +2 -2
  183. package/dist/index360.js +10 -8
  184. package/dist/index361.js +19 -9
  185. package/dist/index362.js +2 -14
  186. package/dist/index363.js +9 -37
  187. package/dist/index364.js +1 -1
  188. package/dist/index365.js +1 -1
  189. package/dist/index366.js +2 -2
  190. package/dist/index367.js +1 -1
  191. package/dist/index368.js +2 -2
  192. package/dist/index369.js +1 -1
  193. package/dist/index370.js +6 -6
  194. package/dist/index371.js +2 -2
  195. package/dist/index372.js +2 -2
  196. package/dist/index374.js +2 -2
  197. package/dist/index375.js +2 -2
  198. package/dist/index376.js +1 -1
  199. package/dist/index378.js +8 -8
  200. package/dist/index379.js +8 -8
  201. package/dist/index380.js +28 -98
  202. package/dist/index381.js +10 -90
  203. package/dist/index382.js +4 -17
  204. package/dist/index383.js +4 -98
  205. package/dist/index384.js +17 -31
  206. package/dist/index385.js +13 -11
  207. package/dist/index386.js +7 -4
  208. package/dist/index387.js +11 -3
  209. package/dist/index388.js +5 -13
  210. package/dist/index389.js +33 -7
  211. package/dist/index390.js +30 -11
  212. package/dist/index391.js +28 -5
  213. package/dist/index392.js +61 -33
  214. package/dist/index393.js +96 -29
  215. package/dist/index394.js +99 -26
  216. package/dist/index395.js +91 -61
  217. package/dist/index396.js +1 -1
  218. package/dist/index402.js +1 -1
  219. package/dist/index50.js +2 -2
  220. package/dist/index62.js +1 -1
  221. package/dist/index78.js +1 -1
  222. package/dist/index88.js +1 -1
  223. package/dist/index90.js +93 -59
  224. package/dist/index92.js +1 -1
  225. package/dist/index98.js +2 -2
  226. package/dist/src/components/data-list/data-list.d.ts +19 -7
  227. package/dist/src/views/lists.vue.d.ts +10 -1
  228. package/package.json +1 -1
  229. package/dist/index186.js +0 -1378
package/dist/index105.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as S, ref as r, computed as v } from "vue";
2
2
  import { useDropZone as h } from "./index173.js";
3
3
  import z from "./index57.js";
4
- import M from "./index193.js";
4
+ import M from "./index192.js";
5
5
  import T from "./index6.js";
6
6
  import I from "./index30.js";
7
7
  import L from "./index34.js";
package/dist/index111.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, onMounted as l, computed as n } from "vue";
2
- import s from "./index194.js";
2
+ import s from "./index193.js";
3
3
  let t = !1;
4
4
  const i = "quore-svg-sprite-container";
5
5
  function o() {
package/dist/index115.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, ref as a, computed as s, onMounted as Z, onUnmounted as q } from "vue";
2
2
  import { useSwipe as K } from "./index173.js";
3
3
  import { useI18n as X } from "vue-i18n";
4
- import J from "./index195.js";
4
+ import J from "./index194.js";
5
5
  import Y from "./index6.js";
6
6
  import ee from "./index7.js";
7
7
  import te from "./index33.js";
package/dist/index136.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as s, onMounted as y, nextTick as P } from "vue";
2
- import { getDocument as C, version as k, GlobalWorkerOptions as E } from "./index196.js";
2
+ import { getDocument as C, version as k, GlobalWorkerOptions as E } from "./index195.js";
3
3
  import D from "./index22.js";
4
4
  E.workerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@${k}/legacy/build/pdf.worker.min.mjs`;
5
5
  const S = x({
package/dist/index138.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as j, ref as m, computed as Y, onMounted as D, onUnmounted as J, watch as K, nextTick as B } from "vue";
2
- import { onClickOutside as k } from "./index173.js";
3
- import { useThrottleFn as z } from "./index184.js";
4
- const oe = j({
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 "./index183.js";
4
+ const ne = J({
5
5
  name: "QPopover",
6
6
  props: {
7
7
  /** Aligns the popover accordingly with the trigger.
@@ -84,58 +84,58 @@ const oe = j({
84
84
  }
85
85
  },
86
86
  emits: ["update:modelValue"],
87
- setup(o, { emit: v }) {
88
- const w = m(!1), p = m(""), u = m(null), b = m(null), V = m(!1), I = m({
87
+ 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({
89
89
  top: "0",
90
90
  left: "0",
91
91
  transform: "none"
92
- }), S = m({}), H = Y(() => w.value === !0 && o.reposition === !0 ? T(o.align) : o.align), E = Y(() => w.value === !0 && o.reposition === !0 ? W(o.position) : o.position), T = (t) => {
93
- if (!u.value) return t;
94
- const e = o.teleport ? document.querySelector(".q-popover.teleported") : u.value.children[1];
95
- if (!e || y(e)) return t;
96
- const n = u.value.children[0].getBoundingClientRect(), r = e.getBoundingClientRect();
97
- if (t === "left" || t === "right" || t === "center") {
98
- const l = n.left;
99
- return window.innerWidth - l < r.width ? "right" : "left";
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();
97
+ if (o === "left" || o === "right" || o === "center") {
98
+ const n = l.left;
99
+ return window.innerWidth - n < r.width ? "right" : "left";
100
100
  } else {
101
- const l = n.top;
102
- return window.innerHeight - l < r.height ? "bottom" : "top";
101
+ const n = l.top;
102
+ return window.innerHeight - n < r.height ? "bottom" : "top";
103
103
  }
104
- }, W = (t) => {
105
- if (!u.value) return t;
106
- const e = o.teleport ? document.querySelector(".q-popover.teleported") : u.value.children[1];
107
- if (!e || y(e)) return t;
108
- const n = u.value.children[0].getBoundingClientRect(), r = e.getBoundingClientRect();
109
- if (t === "top" || t === "bottom") {
110
- const l = n.top;
111
- return window.innerHeight - l < r.height ? "top" : "bottom";
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();
109
+ if (o === "top" || o === "bottom") {
110
+ const n = l.top;
111
+ return window.innerHeight - n < r.height ? "top" : "bottom";
112
112
  } else {
113
- const l = n.left;
114
- return window.innerWidth - l < r.width ? "left" : "right";
113
+ const n = l.left;
114
+ return window.innerWidth - n < r.width ? "left" : "right";
115
115
  }
116
- }, y = (t) => {
117
- if (!t) return !1;
118
- const e = t.getBoundingClientRect();
116
+ }, E = (o) => {
117
+ if (!o) return !1;
118
+ const e = o.getBoundingClientRect();
119
119
  return e ? e.top >= 0 && e.left >= 0 && e.bottom <= (window.innerHeight || document.documentElement.clientHeight) && e.right <= (window.innerWidth || document.documentElement.clientWidth) : !1;
120
- }, L = () => {
121
- if (!u.value) return !0;
122
- const t = u.value.children[0];
123
- if (!t) return !0;
124
- const e = t.getBoundingClientRect();
125
- let n = t.parentElement;
126
- for (; n; ) {
127
- const c = getComputedStyle(n), s = c.overflowY, f = c.overflowX;
128
- if (s === "auto" || s === "scroll" || (f === "auto" || f === "scroll")) {
129
- const g = n.getBoundingClientRect();
130
- if (!(e.bottom > g.top && e.top < g.bottom && e.right > g.left && e.left < g.right))
120
+ }, X = () => {
121
+ if (!s.value) return !0;
122
+ const o = s.value.children[0];
123
+ if (!o) return !0;
124
+ const e = o.getBoundingClientRect();
125
+ let l = o.parentElement;
126
+ 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))
131
131
  return !1;
132
132
  }
133
- n = n.parentElement;
133
+ l = l.parentElement;
134
134
  }
135
- const r = window.innerHeight || document.documentElement.clientHeight, l = window.innerWidth || document.documentElement.clientWidth;
136
- return e.bottom > 0 && e.top < r && e.right > 0 && e.left < l;
137
- }, X = (t) => {
138
- let e = t.parentElement;
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) => {
138
+ let e = o.parentElement;
139
139
  for (; e && e !== document.documentElement; ) {
140
140
  const r = getComputedStyle(e).overflowY;
141
141
  if ((r === "auto" || r === "scroll") && e.scrollHeight > e.clientHeight)
@@ -143,17 +143,17 @@ const oe = j({
143
143
  e = e.parentElement;
144
144
  }
145
145
  return null;
146
- }, q = () => {
147
- if (!o.teleport || !o.scrollIntoView || !o.modelValue) return;
148
- const t = document.querySelector(".q-popover.teleported");
149
- if (!t) return;
150
- const e = t.getBoundingClientRect(), n = o.scrollIntoViewPadding, r = window.innerHeight, l = window.innerWidth;
146
+ }, O = () => {
147
+ if (!t.teleport || !t.scrollIntoView || !t.modelValue) return;
148
+ const o = document.querySelector(".q-popover.teleported");
149
+ if (!o) return;
150
+ const e = o.getBoundingClientRect(), l = t.scrollIntoViewPadding, r = window.innerHeight, n = window.innerWidth;
151
151
  let i = 0, c = 0;
152
- if (e.bottom + n > r ? c = e.bottom + n - r : e.top - n < 0 && (c = e.top - n), e.right + n > l ? i = e.right + n - l : e.left - n < 0 && (i = e.left - n), !(i === 0 && c === 0)) {
153
- if (u.value) {
154
- const s = u.value.children[0];
155
- if (s) {
156
- const f = X(s);
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);
157
157
  if (f) {
158
158
  const a = f.scrollTop;
159
159
  f.scrollBy({
@@ -161,7 +161,7 @@ const oe = j({
161
161
  left: i,
162
162
  behavior: "smooth"
163
163
  }), requestAnimationFrame(() => {
164
- f.scrollTop !== a && (d(), h());
164
+ f.scrollTop !== a && (g(), h());
165
165
  });
166
166
  return;
167
167
  }
@@ -173,142 +173,142 @@ const oe = j({
173
173
  behavior: "smooth"
174
174
  });
175
175
  }
176
- }, $ = () => {
177
- if (!o.teleport || !o.scrollIntoView) return;
178
- C();
179
- const t = document.querySelector(".q-popover.teleported");
180
- t && (b.value = new ResizeObserver(() => {
181
- V.value || (V.value = !0, setTimeout(() => {
182
- d(), h(), q(), B(() => {
176
+ }, M = () => {
177
+ if (!t.teleport || !t.scrollIntoView) return;
178
+ T();
179
+ const o = document.querySelector(".q-popover.teleported");
180
+ o && (S.value = new ResizeObserver(() => {
181
+ H.value || (H.value = !0, setTimeout(() => {
182
+ g(), h(), O(), q(() => {
183
183
  requestAnimationFrame(() => {
184
- V.value = !1;
184
+ H.value = !1;
185
185
  });
186
186
  });
187
187
  }, 50));
188
- }), b.value.observe(t));
189
- }, C = () => {
190
- b.value && (b.value.disconnect(), b.value = null);
188
+ }), S.value.observe(o));
189
+ }, T = () => {
190
+ S.value && (S.value.disconnect(), S.value = null);
191
191
  }, h = () => {
192
- if (!o.teleport || !o.scrollIntoView || !o.modelValue || !u.value) return;
193
- const t = u.value.children[0];
194
- if (!t) return;
192
+ if (!t.teleport || !t.scrollIntoView || !t.modelValue || !s.value) return;
193
+ const o = s.value.children[0];
194
+ if (!o) return;
195
195
  const e = document.querySelector(".q-popover.teleported");
196
196
  if (!e) return;
197
- const n = t.getBoundingClientRect(), r = 10, l = o.scrollIntoViewPadding, i = window.innerHeight, c = E.value, s = 200, f = 30;
197
+ const l = o.getBoundingClientRect(), r = 10, n = t.scrollIntoViewPadding, i = window.innerHeight, c = R.value, u = 200, f = 30;
198
198
  let a;
199
199
  if (c === "bottom") {
200
- const P = n.bottom + r;
201
- a = i - P - l;
202
- } else c === "top" ? a = n.top - r - l : a = i - l * 2;
203
- a = Math.max(a, s);
204
- const R = e.scrollHeight, g = !!S.value.maxHeight;
205
- !g && R > a ? S.value = {
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
206
  maxHeight: `${a}px`,
207
207
  overflowY: "auto"
208
- } : g && (S.value = {
208
+ } : m && (v.value = {
209
209
  maxHeight: `${a}px`,
210
210
  overflowY: "auto"
211
- }, R < a - f && (S.value = {}));
212
- }, A = () => {
213
- (o.trigger === "click" || o.trigger === "both") && v("update:modelValue", !o.modelValue);
214
- }, M = () => {
215
- o.trigger !== "click" && v("update:modelValue", !1);
211
+ }, W < a - f && (v.value = {}));
216
212
  }, F = () => {
217
- o.trigger !== "click" && v("update:modelValue", !0);
213
+ (t.trigger === "click" || t.trigger === "both") && w("update:modelValue", !t.modelValue);
218
214
  }, N = () => {
219
- const t = u.value?.children[0];
220
- if (t) {
221
- const e = t.clientWidth, n = t.clientHeight;
222
- switch (H.value) {
215
+ t.trigger !== "click" && w("update:modelValue", !1);
216
+ }, U = () => {
217
+ t.trigger !== "click" && w("update:modelValue", !0);
218
+ }, Q = () => {
219
+ const o = s.value?.children[0];
220
+ if (o) {
221
+ const e = o.clientWidth, l = o.clientHeight;
222
+ switch (C.value) {
223
223
  case "left":
224
- p.value = `margin-left: ${e / 2 - 10}px;`;
224
+ b.value = `margin-left: ${e / 2 - 10}px;`;
225
225
  break;
226
226
  case "right":
227
- p.value = `margin-right: ${e / 2 - 10}px;`;
227
+ b.value = `margin-right: ${e / 2 - 10}px;`;
228
228
  break;
229
229
  case "top":
230
- p.value = `margin-top: ${n / 2 - 10}px;`;
230
+ b.value = `margin-top: ${l / 2 - 10}px;`;
231
231
  break;
232
232
  case "bottom":
233
- p.value = `margin-bottom: ${n / 2 - 10}px;`;
233
+ b.value = `margin-bottom: ${l / 2 - 10}px;`;
234
234
  break;
235
235
  }
236
236
  }
237
- }, d = () => {
238
- if (!u.value || !o.teleport) return;
239
- const t = u.value.children[0];
240
- if (!t) return;
241
- const e = t.getBoundingClientRect(), n = 10, r = E.value, l = H.value;
242
- let i = 0, c = 0, s = "none";
243
- r === "bottom" ? (i = e.bottom + n, l === "left" ? (c = e.left, s = "none") : l === "right" ? (c = e.right, s = "translateX(-100%)") : l === "center" && (c = e.left + e.width / 2, s = "translateX(-50%)")) : r === "top" ? (i = e.top - n, s = "translateY(-100%)", l === "left" ? c = e.left : l === "right" ? (c = e.right, s = "translate(-100%, -100%)") : l === "center" && (c = e.left + e.width / 2, s = "translate(-50%, -100%)")) : r === "left" ? (c = e.left - n, s = "translateX(-100%)", l === "top" ? i = e.top : l === "bottom" ? (i = e.bottom, s = "translate(-100%, -100%)") : l === "middle" && (i = e.top + e.height / 2, s = "translate(-100%, -50%)")) : r === "right" && (c = e.right + n, l === "top" ? (i = e.top, s = "none") : l === "bottom" ? (i = e.bottom, s = "translateY(-100%)") : l === "middle" && (i = e.top + e.height / 2, s = "translateY(-50%)")), I.value = {
237
+ }, g = () => {
238
+ if (!s.value || !t.teleport) return;
239
+ const o = s.value.children[0];
240
+ 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 = {
244
244
  top: `${i}px`,
245
245
  left: `${c}px`,
246
- transform: s
246
+ transform: u
247
247
  };
248
- }, U = () => {
249
- o.teleport && o.modelValue && (d(), h());
250
- }, Q = () => {
251
- if (o.teleport && o.modelValue) {
252
- if (o.closeOnScrollOutOfView && !L()) {
253
- v("update:modelValue", !1);
248
+ }, _ = () => {
249
+ t.teleport && t.modelValue && (g(), h());
250
+ }, G = () => {
251
+ if (t.teleport && t.modelValue) {
252
+ if (t.closeOnScrollOutOfView && !X()) {
253
+ w("update:modelValue", !1);
254
254
  return;
255
255
  }
256
- o.followScroll && (d(), h());
256
+ t.followScroll && (g(), h());
257
257
  }
258
- }, x = z(U, 16, !0), O = z(Q, 16, !0);
259
- k(u, (t) => {
260
- if (o.teleport) {
258
+ }, P = A(_, 16, !0), Y = A(G, 16, !0);
259
+ L(s, (o) => {
260
+ if (t.teleport) {
261
261
  const e = document.querySelector(".q-popover.teleported");
262
- if (e && e.contains(t.target))
262
+ if (e && e.contains(o.target))
263
263
  return;
264
264
  }
265
- o.modelValue && v("update:modelValue", !1);
265
+ t.modelValue && w("update:modelValue", !1);
266
266
  });
267
- function _() {
268
- w.value = !1, V.value = !1, C();
267
+ function j() {
268
+ p.value = !1, V.value = null, y.value = null, H.value = !1, v.value = {}, T();
269
269
  }
270
- function G() {
271
- w.value = !0, o.teleport ? B(() => {
272
- d(), o.scrollIntoView && setTimeout(() => {
273
- h(), $(), q();
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();
274
274
  }, 100);
275
- }) : !y(u.value?.children[1]) && o.reposition === !0 && N();
275
+ }) : !E(s.value?.children[1]) && t.reposition === !0 && Q();
276
276
  }
277
- return D(() => {
278
- o.teleport && (window.addEventListener("resize", x), window.addEventListener("scroll", O, !0));
279
- }), J(() => {
280
- o.teleport && (window.removeEventListener("resize", x), window.removeEventListener("scroll", O, !0)), C();
281
- }), K(
282
- () => o.modelValue,
283
- (t) => {
284
- o.teleport && t && B(() => {
285
- d(), h();
277
+ return K(() => {
278
+ t.teleport && (window.addEventListener("resize", P), window.addEventListener("scroll", Y, !0));
279
+ }), Z(() => {
280
+ t.teleport && (window.removeEventListener("resize", P), window.removeEventListener("scroll", Y, !0)), T();
281
+ }), ee(
282
+ () => t.modelValue,
283
+ (o) => {
284
+ t.teleport && o && q(() => {
285
+ g(), h();
286
286
  });
287
287
  }
288
288
  ), {
289
289
  // Refs
290
- entered: w,
291
- offsetStyle: p,
292
- popover: u,
293
- teleportedContentStyle: S,
294
- teleportedStyle: I,
290
+ entered: p,
291
+ offsetStyle: b,
292
+ popover: s,
293
+ teleportedContentStyle: v,
294
+ teleportedStyle: x,
295
295
  // Computed
296
- alignment: H,
297
- positioning: E,
296
+ alignment: C,
297
+ positioning: R,
298
298
  // Methods
299
- getAlignment: T,
300
- getPositioning: W,
301
- isElementInView: y,
302
- onAfterLeave: _,
303
- onClick: A,
304
- onClickOutside: k,
305
- onEnter: G,
306
- onMouseLeave: M,
307
- onMouseOver: F,
308
- updateTeleportedPosition: d
299
+ getAlignment: B,
300
+ getPositioning: I,
301
+ isElementInView: E,
302
+ onAfterLeave: j,
303
+ onClick: F,
304
+ onClickOutside: L,
305
+ onEnter: D,
306
+ onMouseLeave: N,
307
+ onMouseOver: U,
308
+ updateTeleportedPosition: g
309
309
  };
310
310
  }
311
311
  });
312
312
  export {
313
- oe as default
313
+ ne as default
314
314
  };
package/dist/index151.js CHANGED
@@ -6,11 +6,11 @@ import ne from "./index204.js";
6
6
  import ce from "./index6.js";
7
7
  import ie from "./index52.js";
8
8
  import N from "./index28.js";
9
- import ue from "./index185.js";
9
+ import ue from "./index184.js";
10
10
  import de from "./index57.js";
11
11
  import fe from "./index58.js";
12
12
  import { filterData as ve } from "./index56.js";
13
- import { useDebounceFn as he } from "./index184.js";
13
+ import { useDebounceFn as he } from "./index183.js";
14
14
  const ke = te({
15
15
  name: "QTable",
16
16
  components: {
package/dist/index162.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, ref as u, computed as v, onMounted as g, onUnmounted as h, watch as y, nextTick as m } from "vue";
2
- import { useThrottleFn as b } from "./index184.js";
2
+ import { useThrottleFn as b } from "./index183.js";
3
3
  const T = c({
4
4
  name: "QTooltip",
5
5
  props: {
package/dist/index173.js CHANGED
@@ -1,5 +1,5 @@
1
- import { noop as j, tryOnMounted as U, isClient as K, toArray as X, watchImmediate as re, notNullish as le, tryOnScopeDispose as ee, injectLocal as ue, pxValue as H, increaseWithUnit as se, isObject as ie, useThrottleFn as ae, useDebounceFn as ce } from "./index184.js";
2
- import { createFilterWrapper as We, debounceFilter as De, getLifeCycleTarget as Fe, throttleFilter as Ce } from "./index184.js";
1
+ import { noop as j, tryOnMounted as U, isClient as K, toArray as X, watchImmediate as re, notNullish as le, tryOnScopeDispose as ee, injectLocal as ue, pxValue as H, increaseWithUnit as se, isObject as ie, useThrottleFn as ae, useDebounceFn as ce } from "./index183.js";
2
+ import { createFilterWrapper as We, debounceFilter as De, getLifeCycleTarget as Fe, throttleFilter as Ce } from "./index183.js";
3
3
  import { shallowRef as T, computed as A, toValue as S, reactive as Y, watch as _, hasInjectionContext as de, watchEffect as fe, getCurrentInstance as ve, onMounted as me, unref as te } from "vue";
4
4
  const C = K ? window : void 0;
5
5
  function W(t) {