@quoreadmin/ui 1.10.10 → 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.
- package/dist/index.css +1 -1
- package/dist/index105.js +1 -1
- package/dist/index111.js +1 -1
- package/dist/index115.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +146 -146
- package/dist/index151.js +2 -2
- package/dist/index162.js +1 -1
- package/dist/index173.js +2 -2
- package/dist/index180.js +228 -1151
- package/dist/index182.js +14 -14
- package/dist/index183.js +96 -266
- package/dist/index184.js +2 -106
- package/dist/index185.js +1376 -2
- package/dist/index187.js +20 -0
- package/dist/index188.js +12 -12
- package/dist/index189.js +10 -10
- package/dist/index190.js +12 -12
- package/dist/index191.js +21 -14
- package/dist/index192.js +757 -23
- package/dist/index193.js +1144 -759
- package/dist/index194.js +1234 -1144
- package/dist/index195.js +11248 -1205
- package/dist/index196.js +1135 -11213
- package/dist/index198.js +17 -17
- package/dist/index201.js +29 -29
- package/dist/index202.js +2 -2
- package/dist/index203.js +2 -2
- package/dist/index204.js +1 -1
- package/dist/index206.js +2 -2
- package/dist/index208.js +14 -14
- package/dist/index209.js +1 -1
- package/dist/index210.js +1 -1
- package/dist/index211.js +3 -3
- package/dist/index212.js +6 -6
- package/dist/index213.js +158 -30
- package/dist/index214.js +224 -112
- package/dist/index215.js +32 -31
- package/dist/index216.js +10 -26
- package/dist/index217.js +83 -31
- package/dist/index218.js +404 -48
- package/dist/index219.js +22 -43
- package/dist/index220.js +32 -3
- package/dist/index221.js +116 -9
- package/dist/index222.js +35 -18
- package/dist/index223.js +26 -10
- package/dist/index224.js +36 -10
- package/dist/index225.js +48 -36
- package/dist/index226.js +43 -21
- package/dist/index227.js +3 -87
- package/dist/index228.js +9 -407
- package/dist/index229.js +19 -22
- package/dist/index230.js +10 -127
- package/dist/index231.js +9 -37
- package/dist/index232.js +39 -80
- package/dist/index233.js +21 -20
- package/dist/index234.js +126 -19
- package/dist/index235.js +34 -16
- package/dist/index236.js +80 -20
- package/dist/index237.js +9 -9
- package/dist/index238.js +19 -160
- package/dist/index239.js +11 -11
- package/dist/index240.js +13 -15
- package/dist/index241.js +19 -198
- package/dist/index242.js +140 -49
- package/dist/index243.js +20 -34
- package/dist/index244.js +21 -39
- package/dist/index245.js +194 -156
- package/dist/index246.js +66 -224
- package/dist/index247.js +34 -37
- package/dist/index248.js +39 -9
- package/dist/index249.js +253 -22
- package/dist/index250.js +7 -21
- package/dist/index251.js +138 -20
- package/dist/index252.js +78 -831
- package/dist/index253.js +21 -701
- package/dist/index254.js +22 -176
- package/dist/index255.js +13 -15
- package/dist/index256.js +836 -20
- package/dist/index257.js +701 -19
- package/dist/index258.js +176 -3
- package/dist/index259.js +21 -186
- package/dist/index260.js +19 -132
- package/dist/index261.js +20 -1223
- package/dist/index262.js +3 -20
- package/dist/index263.js +186 -21
- package/dist/index264.js +132 -21
- package/dist/index265.js +1223 -29
- package/dist/index266.js +12 -12
- package/dist/index267.js +15 -13
- package/dist/index268.js +22 -2
- package/dist/index269.js +29 -2
- package/dist/index270.js +20 -3636
- package/dist/index271.js +20 -55
- package/dist/index272.js +2 -77
- package/dist/index273.js +2 -52
- package/dist/index274.js +2 -215
- package/dist/index275.js +79 -10
- package/dist/index276.js +3623 -44
- package/dist/index277.js +35 -41
- package/dist/index278.js +59 -36
- package/dist/index279.js +21 -44
- package/dist/index280.js +176 -687
- package/dist/index281.js +9 -41
- package/dist/index282.js +39 -46
- package/dist/index283.js +60 -10
- package/dist/index284.js +46 -697
- package/dist/index285.js +73 -818
- package/dist/index286.js +708 -235
- package/dist/index287.js +41 -7
- package/dist/index288.js +60 -134
- package/dist/index289.js +11 -83
- package/dist/index290.js +705 -2
- package/dist/index291.js +814 -73
- package/dist/index292.js +3 -54
- package/dist/index293.js +26 -25
- package/dist/index294.js +53 -21
- package/dist/index295.js +17 -13
- package/dist/index296.js +22 -16
- package/dist/index297.js +22 -17
- package/dist/index298.js +15 -22
- package/dist/index299.js +17 -3
- package/dist/index300.js +23 -27
- package/dist/index301.js +73 -256
- package/dist/index302.js +21 -5
- package/dist/index303.js +925 -130
- package/dist/index304.js +21 -72
- package/dist/index305.js +18 -85
- package/dist/index306.js +19 -28
- package/dist/index307.js +68 -15
- package/dist/index308.js +19 -75
- package/dist/index309.js +19 -4
- package/dist/index310.js +22 -2
- package/dist/index311.js +21 -82
- package/dist/index312.js +63 -53
- package/dist/index313.js +260 -4
- package/dist/index314.js +5 -4
- package/dist/index315.js +127 -166
- package/dist/index316.js +68 -58
- package/dist/index317.js +85 -73
- package/dist/index318.js +25 -75
- package/dist/index319.js +14 -20
- package/dist/index320.js +66 -926
- package/dist/index321.js +3 -21
- package/dist/index322.js +2 -20
- package/dist/index323.js +82 -19
- package/dist/index324.js +52 -68
- package/dist/index325.js +6 -19
- package/dist/index326.js +5 -19
- package/dist/index327.js +178 -21
- package/dist/index328.js +62 -21
- package/dist/index329.js +74 -62
- package/dist/index330.js +37 -1534
- package/dist/index331.js +1494 -346
- package/dist/index332.js +330 -2675
- package/dist/index333.js +2717 -72
- package/dist/index334.js +75 -3781
- package/dist/index335.js +3780 -48
- package/dist/index336.js +60 -15
- package/dist/index337.js +15 -84
- package/dist/index338.js +70 -188
- package/dist/index339.js +176 -220
- package/dist/index340.js +240 -31
- package/dist/index341.js +9 -8
- package/dist/index342.js +10 -13
- package/dist/index343.js +13 -54
- package/dist/index344.js +10 -12
- package/dist/index345.js +15 -12
- package/dist/index346.js +8 -57
- package/dist/index347.js +12 -51
- package/dist/index348.js +49 -25
- package/dist/index349.js +12 -2
- package/dist/index350.js +14 -5
- package/dist/index351.js +58 -2
- package/dist/index352.js +52 -23
- package/dist/index353.js +28 -38
- package/dist/index354.js +2 -2
- package/dist/index355.js +4 -10
- package/dist/index356.js +2 -20
- package/dist/index357.js +22 -9
- package/dist/index358.js +40 -9
- package/dist/index359.js +2 -17
- package/dist/index360.js +11 -2
- package/dist/index361.js +20 -9
- package/dist/index362.js +2 -10
- package/dist/index363.js +8 -13
- package/dist/index364.js +19 -18
- package/dist/index365.js +19 -56
- package/dist/index366.js +63 -28
- package/dist/index367.js +37 -7
- package/dist/index368.js +16 -49
- package/dist/index369.js +57 -7
- package/dist/index370.js +27 -10
- package/dist/index371.js +7 -7
- package/dist/index372.js +51 -27
- package/dist/index373.js +7 -2
- package/dist/index374.js +11 -69
- package/dist/index375.js +6 -166
- package/dist/index376.js +28 -20
- package/dist/index377.js +2 -20
- package/dist/index378.js +67 -61
- package/dist/index379.js +166 -36
- package/dist/index380.js +1 -1
- package/dist/index381.js +3 -3
- package/dist/index384.js +17 -13
- package/dist/index385.js +13 -7
- package/dist/index386.js +7 -12
- package/dist/index387.js +11 -4
- package/dist/index388.js +5 -33
- package/dist/index389.js +33 -31
- package/dist/index390.js +29 -26
- package/dist/index391.js +26 -59
- package/dist/index392.js +60 -16
- package/dist/index393.js +95 -98
- package/dist/index394.js +100 -90
- package/dist/index395.js +91 -98
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index50.js +2 -2
- package/dist/index62.js +1 -1
- package/dist/index78.js +1 -1
- package/dist/index88.js +1 -1
- package/dist/index92.js +1 -1
- package/dist/index98.js +2 -2
- package/package.json +1 -1
- 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 "./
|
|
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
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 "./
|
|
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 "./
|
|
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
|
|
2
|
-
import { onClickOutside as
|
|
3
|
-
import { useThrottleFn as
|
|
4
|
-
const
|
|
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(
|
|
88
|
-
const
|
|
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
|
-
}),
|
|
93
|
-
if (!
|
|
94
|
-
const e =
|
|
95
|
-
if (!e ||
|
|
96
|
-
const
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
return window.innerWidth -
|
|
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
|
|
102
|
-
return window.innerHeight -
|
|
101
|
+
const n = l.top;
|
|
102
|
+
return window.innerHeight - n < r.height ? "bottom" : "top";
|
|
103
103
|
}
|
|
104
|
-
},
|
|
105
|
-
if (!
|
|
106
|
-
const e =
|
|
107
|
-
if (!e ||
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
-
const
|
|
111
|
-
return window.innerHeight -
|
|
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
|
|
114
|
-
return window.innerWidth -
|
|
113
|
+
const n = l.left;
|
|
114
|
+
return window.innerWidth - n < r.width ? "left" : "right";
|
|
115
115
|
}
|
|
116
|
-
},
|
|
117
|
-
if (!
|
|
118
|
-
const e =
|
|
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
|
-
},
|
|
121
|
-
if (!
|
|
122
|
-
const
|
|
123
|
-
if (!
|
|
124
|
-
const e =
|
|
125
|
-
let
|
|
126
|
-
for (;
|
|
127
|
-
const c = getComputedStyle(
|
|
128
|
-
if (
|
|
129
|
-
const
|
|
130
|
-
if (!(e.bottom >
|
|
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
|
-
|
|
133
|
+
l = l.parentElement;
|
|
134
134
|
}
|
|
135
|
-
const r = window.innerHeight || document.documentElement.clientHeight,
|
|
136
|
-
return e.bottom > 0 && e.top < r && e.right > 0 && e.left <
|
|
137
|
-
},
|
|
138
|
-
let e =
|
|
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
|
-
},
|
|
147
|
-
if (!
|
|
148
|
-
const
|
|
149
|
-
if (!
|
|
150
|
-
const e =
|
|
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 +
|
|
153
|
-
if (
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const f =
|
|
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 && (
|
|
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 (!
|
|
178
|
-
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
184
|
+
H.value = !1;
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
}, 50));
|
|
188
|
-
}),
|
|
189
|
-
},
|
|
190
|
-
|
|
188
|
+
}), S.value.observe(o));
|
|
189
|
+
}, T = () => {
|
|
190
|
+
S.value && (S.value.disconnect(), S.value = null);
|
|
191
191
|
}, h = () => {
|
|
192
|
-
if (!
|
|
193
|
-
const
|
|
194
|
-
if (!
|
|
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
|
|
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
|
|
201
|
-
a = i -
|
|
202
|
-
} else c === "top" ? a =
|
|
203
|
-
a = Math.max(a,
|
|
204
|
-
const
|
|
205
|
-
!
|
|
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
|
-
} :
|
|
208
|
+
} : m && (v.value = {
|
|
209
209
|
maxHeight: `${a}px`,
|
|
210
210
|
overflowY: "auto"
|
|
211
|
-
},
|
|
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
|
-
|
|
213
|
+
(t.trigger === "click" || t.trigger === "both") && w("update:modelValue", !t.modelValue);
|
|
218
214
|
}, N = () => {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
224
|
+
b.value = `margin-left: ${e / 2 - 10}px;`;
|
|
225
225
|
break;
|
|
226
226
|
case "right":
|
|
227
|
-
|
|
227
|
+
b.value = `margin-right: ${e / 2 - 10}px;`;
|
|
228
228
|
break;
|
|
229
229
|
case "top":
|
|
230
|
-
|
|
230
|
+
b.value = `margin-top: ${l / 2 - 10}px;`;
|
|
231
231
|
break;
|
|
232
232
|
case "bottom":
|
|
233
|
-
|
|
233
|
+
b.value = `margin-bottom: ${l / 2 - 10}px;`;
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
},
|
|
238
|
-
if (!
|
|
239
|
-
const
|
|
240
|
-
if (!
|
|
241
|
-
const e =
|
|
242
|
-
let i = 0, c = 0,
|
|
243
|
-
r === "bottom" ? (i = e.bottom +
|
|
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:
|
|
246
|
+
transform: u
|
|
247
247
|
};
|
|
248
|
-
},
|
|
249
|
-
|
|
250
|
-
},
|
|
251
|
-
if (
|
|
252
|
-
if (
|
|
253
|
-
|
|
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
|
-
|
|
256
|
+
t.followScroll && (g(), h());
|
|
257
257
|
}
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
if (
|
|
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(
|
|
262
|
+
if (e && e.contains(o.target))
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
t.modelValue && w("update:modelValue", !1);
|
|
266
266
|
});
|
|
267
|
-
function
|
|
268
|
-
|
|
267
|
+
function j() {
|
|
268
|
+
p.value = !1, V.value = null, y.value = null, H.value = !1, v.value = {}, T();
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
h(),
|
|
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
|
-
}) : !
|
|
275
|
+
}) : !E(s.value?.children[1]) && t.reposition === !0 && Q();
|
|
276
276
|
}
|
|
277
|
-
return
|
|
278
|
-
|
|
279
|
-
}),
|
|
280
|
-
|
|
281
|
-
}),
|
|
282
|
-
() =>
|
|
283
|
-
(
|
|
284
|
-
|
|
285
|
-
|
|
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:
|
|
291
|
-
offsetStyle:
|
|
292
|
-
popover:
|
|
293
|
-
teleportedContentStyle:
|
|
294
|
-
teleportedStyle:
|
|
290
|
+
entered: p,
|
|
291
|
+
offsetStyle: b,
|
|
292
|
+
popover: s,
|
|
293
|
+
teleportedContentStyle: v,
|
|
294
|
+
teleportedStyle: x,
|
|
295
295
|
// Computed
|
|
296
|
-
alignment:
|
|
297
|
-
positioning:
|
|
296
|
+
alignment: C,
|
|
297
|
+
positioning: R,
|
|
298
298
|
// Methods
|
|
299
|
-
getAlignment:
|
|
300
|
-
getPositioning:
|
|
301
|
-
isElementInView:
|
|
302
|
-
onAfterLeave:
|
|
303
|
-
onClick:
|
|
304
|
-
onClickOutside:
|
|
305
|
-
onEnter:
|
|
306
|
-
onMouseLeave:
|
|
307
|
-
onMouseOver:
|
|
308
|
-
updateTeleportedPosition:
|
|
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
|
-
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
2
|
-
import { createFilterWrapper as We, debounceFilter as De, getLifeCycleTarget as Fe, throttleFilter as Ce } from "./
|
|
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) {
|