@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.
- package/dist/index.css +1 -1
- package/dist/index138.js +137 -114
- package/dist/index15.js +43 -38
- package/dist/index186.js +4 -4
- package/dist/index193.js +8 -8
- package/dist/index195.js +8 -8
- package/dist/index198.js +17 -17
- package/dist/index201.js +23 -23
- package/dist/index202.js +1 -1
- package/dist/index203.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/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index22.js +28 -26
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index230.js +122 -156
- package/dist/index231.js +35 -225
- package/dist/index232.js +80 -37
- package/dist/index233.js +20 -10
- package/dist/index234.js +19 -160
- package/dist/index235.js +10 -10
- package/dist/index236.js +11 -11
- package/dist/index237.js +13 -15
- package/dist/index238.js +3619 -182
- package/dist/index239.js +51 -66
- package/dist/index240.js +74 -31
- package/dist/index241.js +48 -36
- package/dist/index242.js +182 -3603
- package/dist/index243.js +8 -53
- package/dist/index244.js +40 -60
- package/dist/index245.js +44 -35
- package/dist/index246.js +32 -193
- package/dist/index247.js +74 -9
- package/dist/index248.js +707 -38
- package/dist/index249.js +25 -44
- package/dist/index250.js +46 -36
- package/dist/index251.js +10 -74
- package/dist/index252.js +679 -700
- package/dist/index253.js +817 -39
- package/dist/index254.js +154 -57
- package/dist/index255.js +20 -11
- package/dist/index256.js +22 -705
- package/dist/index257.js +189 -810
- package/dist/index258.js +69 -21
- package/dist/index259.js +34 -22
- package/dist/index260.js +39 -19
- package/dist/index261.js +22 -836
- package/dist/index262.js +21 -701
- package/dist/index263.js +20 -176
- package/dist/index264.js +836 -20
- package/dist/index265.js +701 -19
- package/dist/index266.js +176 -22
- package/dist/index267.js +13 -11
- package/dist/index268.js +8 -8
- package/dist/index269.js +20 -3
- package/dist/index270.js +3 -187
- package/dist/index271.js +96 -42
- package/dist/index272.js +70 -1160
- package/dist/index273.js +1197 -101
- package/dist/index277.js +28 -37
- package/dist/index278.js +11 -20
- package/dist/index279.js +8 -8
- package/dist/index280.js +2 -20
- package/dist/index282.js +161 -2
- package/dist/index283.js +227 -79
- package/dist/index284.js +36 -19
- package/dist/index285.js +10 -20
- package/dist/index292.js +2 -54
- package/dist/index294.js +1534 -26
- package/dist/index295.js +386 -22
- package/dist/index296.js +2731 -22
- package/dist/index297.js +86 -16
- package/dist/index298.js +3792 -17
- package/dist/index299.js +59 -22
- package/dist/index300.js +14 -1533
- package/dist/index301.js +69 -371
- package/dist/index302.js +158 -2687
- package/dist/index303.js +233 -73
- package/dist/index304.js +54 -3792
- package/dist/index305.js +25 -59
- package/dist/index306.js +22 -15
- package/dist/index307.js +21 -83
- package/dist/index308.js +15 -201
- package/dist/index309.js +17 -246
- package/dist/index310.js +23 -2
- package/dist/index313.js +1 -1
- package/dist/index323.js +8 -261
- package/dist/index324.js +12 -5
- package/dist/index325.js +51 -136
- package/dist/index326.js +11 -72
- package/dist/index327.js +12 -85
- package/dist/index328.js +54 -25
- package/dist/index329.js +50 -14
- package/dist/index330.js +27 -71
- package/dist/index331.js +2 -4
- package/dist/index332.js +5 -2
- package/dist/index333.js +2 -83
- package/dist/index334.js +23 -53
- package/dist/index335.js +39 -4
- package/dist/index336.js +2 -5
- package/dist/index337.js +10 -178
- package/dist/index338.js +18 -61
- package/dist/index339.js +9 -74
- package/dist/index340.js +10 -9
- package/dist/index341.js +16 -12
- package/dist/index342.js +2 -55
- package/dist/index343.js +9 -12
- package/dist/index344.js +9 -13
- package/dist/index345.js +13 -57
- package/dist/index346.js +258 -48
- package/dist/index347.js +4 -29
- package/dist/index348.js +140 -2
- package/dist/index349.js +73 -5
- package/dist/index350.js +87 -2
- package/dist/index351.js +29 -23
- package/dist/index352.js +15 -40
- package/dist/index353.js +75 -2
- package/dist/index354.js +4 -11
- package/dist/index355.js +2 -20
- package/dist/index356.js +83 -10
- package/dist/index357.js +53 -10
- package/dist/index358.js +4 -15
- package/dist/index359.js +5 -2
- package/dist/index360.js +179 -9
- package/dist/index361.js +62 -9
- package/dist/index362.js +74 -13
- package/dist/index368.js +1 -1
- package/dist/index369.js +1 -1
- package/dist/index370.js +5 -5
- package/dist/index372.js +2 -2
- package/dist/index374.js +2 -2
- package/dist/index376.js +1 -1
- package/dist/index378.js +4 -4
- package/dist/index379.js +3 -3
- package/dist/index380.js +98 -95
- package/dist/index381.js +90 -100
- package/dist/index382.js +98 -91
- package/dist/index384.js +1 -1
- package/dist/index385.js +3 -3
- package/dist/index390.js +1 -1
- package/dist/index392.js +1 -1
- package/dist/index393.js +3 -3
- package/dist/index394.js +3 -3
- package/dist/index4.js +5 -5
- package/dist/index402.js +1 -1
- package/dist/index88.js +43 -31
- package/dist/src/components/comment/comment.d.ts +9 -0
- package/dist/src/components/comment/comment.stories.d.ts +9 -0
- package/dist/src/components/comment-section/comment-section.d.ts +9 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +9 -0
- package/dist/src/components/data-filter/data-filter.d.ts +27 -0
- package/dist/src/components/data-filter/data-filter.stories.d.ts +8 -0
- package/dist/src/components/data-list/data-list.d.ts +27 -0
- package/dist/src/components/grid/grid.stories.d.ts +36 -0
- package/dist/src/components/popover/popover.d.ts +17 -2
- package/dist/src/components/popover/popover.stories.d.ts +63 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +9 -0
- package/dist/src/views/lists.vue.d.ts +54 -0
- package/dist/src/views/tables.vue.d.ts +27 -0
- package/package.json +1 -1
package/dist/index138.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as J, ref as d, computed as
|
|
2
|
-
import { onClickOutside as
|
|
3
|
-
import { useThrottleFn as
|
|
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(""),
|
|
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
|
-
}),
|
|
93
|
-
if (!
|
|
94
|
-
const e = t.teleport ? document.querySelector(".q-popover.teleported") :
|
|
95
|
-
if (!e ||
|
|
96
|
-
|
|
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 <
|
|
107
|
+
return window.innerWidth - n < c.width ? "right" : "left";
|
|
100
108
|
} else {
|
|
101
109
|
const n = l.top;
|
|
102
|
-
return window.innerHeight - n <
|
|
110
|
+
return window.innerHeight - n < c.height ? "bottom" : "top";
|
|
103
111
|
}
|
|
104
|
-
},
|
|
105
|
-
if (!
|
|
106
|
-
const e = t.teleport ? document.querySelector(".q-popover.teleported") :
|
|
107
|
-
if (!e ||
|
|
108
|
-
|
|
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 <
|
|
120
|
+
return window.innerHeight - n < c.height ? "top" : "bottom";
|
|
112
121
|
} else {
|
|
113
122
|
const n = l.left;
|
|
114
|
-
return window.innerWidth - n <
|
|
123
|
+
return window.innerWidth - n < c.width ? "left" : "right";
|
|
115
124
|
}
|
|
116
|
-
},
|
|
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
|
-
},
|
|
121
|
-
if (!
|
|
122
|
-
const o =
|
|
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
|
|
128
|
-
if (
|
|
129
|
-
const
|
|
130
|
-
if (!(e.bottom >
|
|
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
|
|
136
|
-
return e.bottom > 0 && e.top <
|
|
137
|
-
},
|
|
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
|
|
141
|
-
if ((
|
|
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
|
-
},
|
|
147
|
-
if (!t.teleport || !t.scrollIntoView || !t.modelValue)
|
|
148
|
-
|
|
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,
|
|
151
|
-
let i = 0,
|
|
152
|
-
if (e.bottom + l >
|
|
153
|
-
if (
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const f =
|
|
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
|
|
170
|
+
const s = f.scrollTop;
|
|
159
171
|
f.scrollBy({
|
|
160
|
-
top:
|
|
172
|
+
top: r,
|
|
161
173
|
left: i,
|
|
162
174
|
behavior: "smooth"
|
|
163
175
|
}), requestAnimationFrame(() => {
|
|
164
|
-
f.scrollTop !==
|
|
176
|
+
f.scrollTop !== s && (g(), v());
|
|
165
177
|
});
|
|
166
178
|
return;
|
|
167
179
|
}
|
|
168
180
|
}
|
|
169
181
|
}
|
|
170
182
|
window.scrollBy({
|
|
171
|
-
top:
|
|
183
|
+
top: r,
|
|
172
184
|
left: i,
|
|
173
185
|
behavior: "smooth"
|
|
174
186
|
});
|
|
175
187
|
}
|
|
176
|
-
},
|
|
188
|
+
}, _ = () => {
|
|
177
189
|
if (!t.teleport || !t.scrollIntoView) return;
|
|
178
|
-
|
|
179
|
-
const o = document.querySelector(
|
|
190
|
+
B();
|
|
191
|
+
const o = document.querySelector(
|
|
192
|
+
".q-popover.teleported"
|
|
193
|
+
);
|
|
180
194
|
o && (S.value = new ResizeObserver(() => {
|
|
181
|
-
|
|
182
|
-
g(),
|
|
195
|
+
y.value || (y.value = !0, setTimeout(() => {
|
|
196
|
+
g(), v(), I(), N(() => {
|
|
183
197
|
requestAnimationFrame(() => {
|
|
184
|
-
|
|
198
|
+
y.value = !1;
|
|
185
199
|
});
|
|
186
200
|
});
|
|
187
201
|
}, 50));
|
|
188
202
|
}), S.value.observe(o));
|
|
189
|
-
},
|
|
203
|
+
}, B = () => {
|
|
190
204
|
S.value && (S.value.disconnect(), S.value = null);
|
|
191
|
-
},
|
|
192
|
-
if (!t.teleport || !t.scrollIntoView || !t.modelValue || !
|
|
193
|
-
const o =
|
|
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(
|
|
209
|
+
const e = document.querySelector(
|
|
210
|
+
".q-popover.teleported"
|
|
211
|
+
);
|
|
196
212
|
if (!e) return;
|
|
197
|
-
const l = o.getBoundingClientRect(),
|
|
198
|
-
let
|
|
199
|
-
if (
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
} else
|
|
203
|
-
|
|
204
|
-
const
|
|
205
|
-
!
|
|
206
|
-
maxHeight: `${
|
|
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
|
-
} :
|
|
209
|
-
maxHeight: `${
|
|
224
|
+
} : h && (m.value = {
|
|
225
|
+
maxHeight: `${s}px`,
|
|
210
226
|
overflowY: "auto"
|
|
211
|
-
},
|
|
227
|
+
}, O < s - f && (m.value = {}));
|
|
212
228
|
}, F = () => {
|
|
213
229
|
(t.trigger === "click" || t.trigger === "both") && w("update:modelValue", !t.modelValue);
|
|
214
|
-
},
|
|
230
|
+
}, A = () => {
|
|
215
231
|
t.trigger !== "click" && w("update:modelValue", !1);
|
|
216
|
-
},
|
|
232
|
+
}, $ = () => {
|
|
217
233
|
t.trigger !== "click" && w("update:modelValue", !0);
|
|
218
|
-
},
|
|
219
|
-
const o =
|
|
234
|
+
}, U = () => {
|
|
235
|
+
const o = u.value?.children[0];
|
|
220
236
|
if (o) {
|
|
221
237
|
const e = o.clientWidth, l = o.clientHeight;
|
|
222
|
-
switch (
|
|
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 (!
|
|
239
|
-
const o =
|
|
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,
|
|
242
|
-
let i = 0,
|
|
243
|
-
|
|
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: `${
|
|
246
|
-
transform:
|
|
262
|
+
left: `${r}px`,
|
|
263
|
+
transform: a
|
|
247
264
|
};
|
|
248
|
-
},
|
|
249
|
-
t.teleport && t.modelValue && (g(),
|
|
250
|
-
},
|
|
265
|
+
}, D = () => {
|
|
266
|
+
t.teleport && t.modelValue && (g(), v());
|
|
267
|
+
}, Q = () => {
|
|
251
268
|
if (t.teleport && t.modelValue) {
|
|
252
|
-
if (t.closeOnScrollOutOfView && !
|
|
269
|
+
if (t.closeOnScrollOutOfView && !z()) {
|
|
253
270
|
w("update:modelValue", !1);
|
|
254
271
|
return;
|
|
255
272
|
}
|
|
256
|
-
t.followScroll && (g(),
|
|
273
|
+
t.followScroll && (g(), v());
|
|
257
274
|
}
|
|
258
|
-
},
|
|
259
|
-
|
|
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(
|
|
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
|
|
268
|
-
p.value = !1,
|
|
286
|
+
function G() {
|
|
287
|
+
p.value = !1, E.value = null, V.value = null, y.value = !1, m.value = {}, B();
|
|
269
288
|
}
|
|
270
|
-
function
|
|
271
|
-
p.value = !0, t.teleport ?
|
|
272
|
-
t.reposition && (
|
|
273
|
-
|
|
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
|
-
}) : !
|
|
294
|
+
}) : !T(u.value?.children[1]) && t.reposition === !0 && U();
|
|
276
295
|
}
|
|
277
296
|
return K(() => {
|
|
278
|
-
t.teleport && (window.addEventListener("resize",
|
|
297
|
+
t.teleport && (window.addEventListener("resize", W), window.addEventListener("scroll", q, !0));
|
|
279
298
|
}), Z(() => {
|
|
280
|
-
t.teleport && (window.removeEventListener("resize",
|
|
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 &&
|
|
285
|
-
g(),
|
|
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:
|
|
293
|
-
teleportedContentStyle:
|
|
294
|
-
teleportedStyle:
|
|
315
|
+
popover: u,
|
|
316
|
+
teleportedContentStyle: m,
|
|
317
|
+
teleportedStyle: M,
|
|
295
318
|
// Computed
|
|
296
|
-
alignment:
|
|
297
|
-
positioning:
|
|
319
|
+
alignment: H,
|
|
320
|
+
positioning: P,
|
|
298
321
|
// Methods
|
|
299
|
-
getAlignment:
|
|
300
|
-
getPositioning:
|
|
301
|
-
isElementInView:
|
|
302
|
-
onAfterLeave:
|
|
322
|
+
getAlignment: R,
|
|
323
|
+
getPositioning: C,
|
|
324
|
+
isElementInView: T,
|
|
325
|
+
onAfterLeave: G,
|
|
303
326
|
onClick: F,
|
|
304
|
-
onClickOutside:
|
|
305
|
-
onEnter:
|
|
306
|
-
onMouseLeave:
|
|
307
|
-
onMouseOver:
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
16
|
-
const
|
|
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
|
-
|
|
22
|
-
e.hasSearch ?
|
|
23
|
-
|
|
24
|
-
a(
|
|
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 ?
|
|
45
|
-
|
|
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
|
-
|
|
48
|
-
e.filters?.length ? (t(), f("div",
|
|
49
|
-
|
|
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
|
-
|
|
64
|
-
a(
|
|
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(
|
|
76
|
+
e.filtersCount ? (t(), c(v, {
|
|
72
77
|
key: 0,
|
|
73
|
-
class:
|
|
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
|
-
|
|
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
|
-
|
|
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",
|
|
97
|
-
|
|
98
|
-
a(
|
|
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(
|
|
110
|
+
e.filtersCount ? (t(), c(v, {
|
|
106
111
|
key: 0,
|
|
107
|
-
class:
|
|
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
|
-
|
|
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
|
-
|
|
136
|
+
l(e.$slots, "filterSheetBackAction", p(m({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
|
|
132
137
|
]),
|
|
133
138
|
header: o(() => [
|
|
134
|
-
|
|
139
|
+
l(e.$slots, "filterSheetHeader", {}, void 0, !0)
|
|
135
140
|
]),
|
|
136
141
|
headerAction: o(() => [
|
|
137
|
-
|
|
142
|
+
l(e.$slots, "filterSheetHeaderAction", p(m({ closeBottomSheet: e.closeBottomSheet })), void 0, !0)
|
|
138
143
|
]),
|
|
139
144
|
default: o(() => [
|
|
140
|
-
|
|
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
|
-
|
|
153
|
-
a(
|
|
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(
|
|
165
|
+
e.filtersCount ? (t(), c(v, {
|
|
161
166
|
key: 0,
|
|
162
|
-
class:
|
|
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
|
-
|
|
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",
|
|
183
|
-
|
|
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",
|
|
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 "./
|
|
3
|
-
import { parse as ct } from "./
|
|
4
|
-
import { getWeek as Ie } from "./
|
|
5
|
-
import dt from "./
|
|
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 "./
|
|
2
|
-
import O from "./
|
|
3
|
-
import V from "./
|
|
4
|
-
import R from "./
|
|
5
|
-
import j from "./
|
|
6
|
-
import K from "./
|
|
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 "./
|
|
11
|
-
import Y from "./
|
|
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 "./
|
|
2
|
-
import X from "./
|
|
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 "./
|
|
6
|
-
import J from "./
|
|
5
|
+
import Y from "./index232.js";
|
|
6
|
+
import J from "./index233.js";
|
|
7
7
|
import L from "./index227.js";
|
|
8
|
-
import H from "./
|
|
9
|
-
import M from "./
|
|
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 "./
|
|
12
|
-
import te from "./
|
|
11
|
+
import ee from "./index236.js";
|
|
12
|
+
import te from "./index237.js";
|
|
13
13
|
var ie = {
|
|
14
14
|
name: "BaseGalleria",
|
|
15
15
|
extends: O,
|