@quidgest/ui 0.14.8 → 0.14.9
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/README.md +5 -5
- package/dist/ui.css +1 -0
- package/dist/ui.esm.js +847 -847
- package/dist/ui.js +25 -25
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +175 -175
- package/dist/ui.scss +2 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +105 -105
- package/package.json +1 -1
package/dist/ui.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.14.
|
|
2
|
+
* Quidgest UI v0.14.9
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -836,6 +836,7 @@ $button-text-on-plain: var(--q-theme-on-background);
|
|
|
836
836
|
display: grid;
|
|
837
837
|
grid-template-rows: 0fr;
|
|
838
838
|
transition: 0.5s;
|
|
839
|
+
width: 100%;
|
|
839
840
|
&:not(#{$this}__content-show) {
|
|
840
841
|
pointer-events: none;
|
|
841
842
|
visibility: hidden;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAyCA;
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAyCA;AAyYC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAQ7C,KAAK,WAAW,GAAG,aAAa,CAAC;AA8VjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA+FT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;EAehC;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QRemoveScrollBar as
|
|
3
|
-
import { getSideFromPlacement as
|
|
4
|
-
import { getElement as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as X, mergeModels as M, useModel as Y, computed as l, reactive as R, watch as k, ref as V, nextTick as m, onMounted as Z, onBeforeUnmount as ee, openBlock as u, createElementBlock as g, Fragment as te, createBlock as A, Teleport as ne, normalizeClass as U, createCommentVNode as L, createVNode as oe, Transition as re, withCtx as ae, normalizeStyle as z, createElementVNode as ie, mergeProps as le, withKeys as de, renderSlot as se, unref as ue } from "vue";
|
|
2
|
+
import { QRemoveScrollBar as ce } from "../QRemoveScrollBar/index.js";
|
|
3
|
+
import { getSideFromPlacement as fe, computePosition as me } from "../../composables/overlay.js";
|
|
4
|
+
import { getElement as ve } from "../../utils/getElement.js";
|
|
5
|
+
const pe = ["role"], ge = /* @__PURE__ */ X({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "QOverlay",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ M({
|
|
9
9
|
anchor: { default: void 0 },
|
|
10
10
|
appearance: { default: "regular" },
|
|
11
11
|
arrow: { type: Boolean },
|
|
@@ -28,169 +28,169 @@ const me = ["role"], we = /* @__PURE__ */ H({
|
|
|
28
28
|
modelValue: { type: Boolean },
|
|
29
29
|
modelModifiers: {}
|
|
30
30
|
}),
|
|
31
|
-
emits: /* @__PURE__ */
|
|
32
|
-
setup(
|
|
33
|
-
const t =
|
|
31
|
+
emits: /* @__PURE__ */ M(["enter", "leave"], ["update:modelValue"]),
|
|
32
|
+
setup(B, { emit: I }) {
|
|
33
|
+
const t = B, b = I, r = Y(B, "modelValue"), N = l(() => [
|
|
34
34
|
"q-overlay",
|
|
35
|
-
`q-overlay--${
|
|
35
|
+
`q-overlay--${fe(n.placement)}`,
|
|
36
36
|
{
|
|
37
|
-
"q-overlay--independent":
|
|
37
|
+
"q-overlay--independent": c.value,
|
|
38
38
|
"q-overlay--inverted": t.appearance === "inverted"
|
|
39
39
|
},
|
|
40
40
|
t.class
|
|
41
|
-
]),
|
|
41
|
+
]), c = l(() => t.anchor === void 0), _ = l(() => (r.value || n.animating) && !t.nonModal), O = l(() => (r.value || n.animating) && t.scrollLock), n = R({
|
|
42
42
|
animating: !1,
|
|
43
43
|
top: 0,
|
|
44
44
|
left: 0,
|
|
45
45
|
width: 0,
|
|
46
46
|
placement: t.placement
|
|
47
|
-
}),
|
|
47
|
+
}), a = R({
|
|
48
48
|
top: void 0,
|
|
49
49
|
left: void 0,
|
|
50
50
|
hidden: !0
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
55
|
-
const e =
|
|
51
|
+
}), P = l(() => n.top !== 0 && n.left !== 0);
|
|
52
|
+
k(r, () => n.animating = !0);
|
|
53
|
+
const D = l(() => {
|
|
54
|
+
if (c.value) return;
|
|
55
|
+
const e = s(), w = t.width === "anchor", o = w ? e == null ? void 0 : e.getBoundingClientRect().width : void 0;
|
|
56
56
|
return {
|
|
57
57
|
top: `${n.top}px`,
|
|
58
58
|
left: `${n.left}px`,
|
|
59
59
|
width: o !== void 0 ? `${o}px` : void 0
|
|
60
60
|
};
|
|
61
|
-
}),
|
|
61
|
+
}), F = l(() => {
|
|
62
62
|
if (t.arrow)
|
|
63
63
|
return {
|
|
64
|
-
top:
|
|
65
|
-
left:
|
|
66
|
-
opacity:
|
|
64
|
+
top: a.top !== void 0 ? `${a.top}px` : void 0,
|
|
65
|
+
left: a.left !== void 0 ? `${a.left}px` : void 0,
|
|
66
|
+
opacity: a.hidden ? 0 : 1
|
|
67
67
|
};
|
|
68
|
-
}),
|
|
69
|
-
function
|
|
70
|
-
const e =
|
|
68
|
+
}), v = V(null), p = V(null);
|
|
69
|
+
function i() {
|
|
70
|
+
const e = s();
|
|
71
71
|
if (!e || !p.value)
|
|
72
72
|
return;
|
|
73
|
-
const
|
|
73
|
+
const w = {
|
|
74
74
|
placement: t.placement,
|
|
75
75
|
width: t.width,
|
|
76
76
|
offset: t.offset,
|
|
77
77
|
arrow: t.arrow
|
|
78
|
-
}, o =
|
|
78
|
+
}, o = me(
|
|
79
79
|
e,
|
|
80
80
|
p.value,
|
|
81
|
-
(
|
|
82
|
-
|
|
81
|
+
(v == null ? void 0 : v.value) ?? void 0,
|
|
82
|
+
w
|
|
83
83
|
);
|
|
84
|
-
n.left = o.overlayCoords.x, n.top = o.overlayCoords.y, n.placement = o.placement,
|
|
84
|
+
n.left = o.overlayCoords.x, n.top = o.overlayCoords.y, n.placement = o.placement, a.hidden = o.arrowCoords === void 0, o.arrowCoords && (a.top = o.arrowCoords.y, a.left = o.arrowCoords.x);
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
k(
|
|
87
87
|
() => t.placement,
|
|
88
|
-
() =>
|
|
88
|
+
() => m(i)
|
|
89
89
|
);
|
|
90
|
-
let
|
|
91
|
-
function
|
|
92
|
-
|
|
90
|
+
let y;
|
|
91
|
+
function h() {
|
|
92
|
+
T(0);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
94
|
+
function C() {
|
|
95
|
+
T(t.delay);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
97
|
+
function T(e) {
|
|
98
|
+
y || (y = window.setTimeout(() => {
|
|
99
99
|
r.value = !0;
|
|
100
100
|
}, e));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
if (clearTimeout(
|
|
104
|
-
const e =
|
|
102
|
+
function d() {
|
|
103
|
+
if (clearTimeout(y), y = void 0, r.value = !1, t.anchor && t.trigger === "click") {
|
|
104
|
+
const e = s();
|
|
105
105
|
e == null || e.focus();
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
function
|
|
110
|
-
|
|
108
|
+
k(P, () => m(K));
|
|
109
|
+
function K() {
|
|
110
|
+
b("enter");
|
|
111
111
|
}
|
|
112
|
-
let
|
|
113
|
-
function
|
|
114
|
-
window.clearTimeout(
|
|
112
|
+
let x;
|
|
113
|
+
function Q() {
|
|
114
|
+
window.clearTimeout(x), x = window.setTimeout(() => n.animating = !1, 200), b("leave");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return t.anchor ?
|
|
116
|
+
function s() {
|
|
117
|
+
return t.anchor ? ve(t.anchor) : null;
|
|
118
118
|
}
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
const e =
|
|
119
|
+
let f;
|
|
120
|
+
function W() {
|
|
121
|
+
const e = s();
|
|
122
122
|
if (e)
|
|
123
|
-
switch (
|
|
123
|
+
switch (f = new MutationObserver(i), f.observe(e, {
|
|
124
124
|
attributes: !1,
|
|
125
125
|
childList: !0,
|
|
126
126
|
characterData: !0,
|
|
127
127
|
subtree: !0
|
|
128
128
|
}), t.trigger) {
|
|
129
129
|
case "click":
|
|
130
|
-
e.addEventListener("click",
|
|
130
|
+
e.addEventListener("click", h);
|
|
131
131
|
break;
|
|
132
132
|
case "hover":
|
|
133
|
-
e.addEventListener("mouseenter",
|
|
133
|
+
e.addEventListener("mouseenter", C), e.addEventListener("mouseleave", d), e.addEventListener("focusin", h), e.addEventListener("focusout", d);
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
const e =
|
|
137
|
+
function j() {
|
|
138
|
+
const e = s();
|
|
139
139
|
if (e)
|
|
140
|
-
switch (
|
|
140
|
+
switch (f == null || f.disconnect(), t.trigger) {
|
|
141
141
|
case "click":
|
|
142
|
-
e.removeEventListener("click",
|
|
142
|
+
e.removeEventListener("click", h);
|
|
143
143
|
break;
|
|
144
144
|
case "hover":
|
|
145
|
-
e.removeEventListener("mouseenter",
|
|
145
|
+
e.removeEventListener("mouseenter", C), e.removeEventListener("mouseleave", d), e.removeEventListener("focusin", h), e.removeEventListener("focusout", d);
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
window.addEventListener("resize",
|
|
149
|
+
function G() {
|
|
150
|
+
window.addEventListener("resize", i), t.scrollLock || window.addEventListener("scroll", i);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
window.removeEventListener("resize",
|
|
152
|
+
function H() {
|
|
153
|
+
window.removeEventListener("resize", i), t.scrollLock || window.removeEventListener("scroll", i);
|
|
154
154
|
}
|
|
155
|
-
let
|
|
156
|
-
function
|
|
157
|
-
|
|
155
|
+
let E;
|
|
156
|
+
function S() {
|
|
157
|
+
s() ? (i(), E = window.setTimeout(S, 100)) : d();
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
159
|
+
function J() {
|
|
160
|
+
c.value || (G(), t.spy ? S() : i()), (c.value || t.trigger === "click") && m(() => {
|
|
161
161
|
var e;
|
|
162
162
|
return (e = p.value) == null ? void 0 : e.focus();
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
function S() {
|
|
166
|
-
j(), t.spy && (clearTimeout(L), L = void 0), n.top = 0, n.left = 0;
|
|
167
|
-
}
|
|
168
165
|
function q() {
|
|
169
|
-
|
|
166
|
+
c.value || H(), t.spy && (clearTimeout(E), E = void 0), n.top = 0, n.left = 0;
|
|
167
|
+
}
|
|
168
|
+
function $() {
|
|
169
|
+
t.persistent || d();
|
|
170
170
|
}
|
|
171
|
-
return
|
|
172
|
-
|
|
173
|
-
}),
|
|
174
|
-
|
|
175
|
-
}),
|
|
171
|
+
return Z(() => {
|
|
172
|
+
m(W);
|
|
173
|
+
}), ee(() => {
|
|
174
|
+
j(), q();
|
|
175
|
+
}), k(
|
|
176
176
|
r,
|
|
177
177
|
(e) => {
|
|
178
|
-
|
|
178
|
+
m(() => e ? J() : q());
|
|
179
179
|
},
|
|
180
180
|
{ immediate: !0 }
|
|
181
|
-
), (e,
|
|
182
|
-
|
|
181
|
+
), (e, w) => (u(), g(
|
|
182
|
+
te,
|
|
183
183
|
null,
|
|
184
184
|
[
|
|
185
|
-
(
|
|
185
|
+
(u(), A(ne, {
|
|
186
186
|
disabled: !r.value && !n.animating || t.inline,
|
|
187
187
|
to: t.attach
|
|
188
188
|
}, [
|
|
189
|
-
|
|
189
|
+
_.value ? (u(), g(
|
|
190
190
|
"div",
|
|
191
191
|
{
|
|
192
192
|
key: 0,
|
|
193
|
-
class:
|
|
193
|
+
class: U([
|
|
194
194
|
t.backdropClass,
|
|
195
195
|
"q-overlay__underlay",
|
|
196
196
|
{ "q-overlay__underlay--blur": t.backdropBlur }
|
|
@@ -199,57 +199,57 @@ const me = ["role"], we = /* @__PURE__ */ H({
|
|
|
199
199
|
null,
|
|
200
200
|
2
|
|
201
201
|
/* CLASS */
|
|
202
|
-
)) :
|
|
203
|
-
|
|
202
|
+
)) : L("v-if", !0),
|
|
203
|
+
oe(re, {
|
|
204
204
|
name: t.transition,
|
|
205
205
|
appear: "",
|
|
206
|
-
onLeave:
|
|
206
|
+
onLeave: Q
|
|
207
207
|
}, {
|
|
208
|
-
default:
|
|
209
|
-
r.value ? (
|
|
208
|
+
default: ae(() => [
|
|
209
|
+
r.value ? (u(), g(
|
|
210
210
|
"div",
|
|
211
211
|
{
|
|
212
212
|
key: 0,
|
|
213
|
-
class:
|
|
214
|
-
style:
|
|
213
|
+
class: U(N.value),
|
|
214
|
+
style: z(D.value)
|
|
215
215
|
},
|
|
216
216
|
[
|
|
217
|
-
|
|
217
|
+
ie("div", le({
|
|
218
218
|
ref_key: "overlayRef",
|
|
219
219
|
ref: p,
|
|
220
220
|
class: "q-overlay__content",
|
|
221
221
|
tabindex: "-1",
|
|
222
|
-
role:
|
|
222
|
+
role: _.value ? "dialog" : void 0
|
|
223
223
|
}, e.$attrs, {
|
|
224
|
-
onKeydown:
|
|
225
|
-
onBlur:
|
|
224
|
+
onKeydown: de($, ["escape"]),
|
|
225
|
+
onBlur: $
|
|
226
226
|
}), [
|
|
227
|
-
t.arrow ? (
|
|
227
|
+
t.arrow ? (u(), g(
|
|
228
228
|
"div",
|
|
229
229
|
{
|
|
230
230
|
key: 0,
|
|
231
231
|
ref_key: "arrowRef",
|
|
232
|
-
ref:
|
|
232
|
+
ref: v,
|
|
233
233
|
role: "presentation",
|
|
234
234
|
class: "q-overlay__arrow",
|
|
235
|
-
style:
|
|
235
|
+
style: z(F.value)
|
|
236
236
|
},
|
|
237
237
|
null,
|
|
238
238
|
4
|
|
239
239
|
/* STYLE */
|
|
240
|
-
)) :
|
|
241
|
-
|
|
242
|
-
], 16,
|
|
240
|
+
)) : L("v-if", !0),
|
|
241
|
+
se(e.$slots, "default")
|
|
242
|
+
], 16, pe)
|
|
243
243
|
],
|
|
244
244
|
6
|
|
245
245
|
/* CLASS, STYLE */
|
|
246
|
-
)) :
|
|
246
|
+
)) : L("v-if", !0)
|
|
247
247
|
]),
|
|
248
248
|
_: 3
|
|
249
249
|
/* FORWARDED */
|
|
250
250
|
}, 8, ["name"])
|
|
251
251
|
], 8, ["disabled", "to"])),
|
|
252
|
-
|
|
252
|
+
O.value ? (u(), A(ue(ce), { key: 0 })) : L("v-if", !0)
|
|
253
253
|
],
|
|
254
254
|
64
|
|
255
255
|
/* STABLE_FRAGMENT */
|
|
@@ -257,5 +257,5 @@ const me = ["role"], we = /* @__PURE__ */ H({
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
export {
|
|
260
|
-
|
|
260
|
+
ge as default
|
|
261
261
|
};
|