@quidgest/ui 0.15.1 → 0.15.2
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/ui.css +40 -71
- package/dist/ui.esm.js +2575 -2567
- package/dist/ui.js +4 -4
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +42 -41
- package/dist/ui.scss +13 -31
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +95 -90
- package/esm/components/QOverlay/index.d.ts +3 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +4 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +14 -13
- package/esm/components/QPopover/QPopover.d.ts +2 -0
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +36 -26
- package/esm/components/QPopover/index.d.ts +2 -0
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +27 -27
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, mergeModels as m, useModel as u, createBlock as h, openBlock as o, unref as f, normalizeClass as y, withCtx as v, createElementBlock as l, createCommentVNode as d, renderSlot as a, Fragment as _, createElementVNode as k, toDisplayString as i } from "vue";
|
|
2
|
+
import { QOverlay as B } from "../QOverlay/index.js";
|
|
3
|
+
const V = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "q-popover__header"
|
|
6
|
-
},
|
|
6
|
+
}, $ = { class: "q-popover__title" }, b = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "q-popover__body"
|
|
9
|
-
},
|
|
9
|
+
}, g = ["innerHTML"], w = { key: 1 }, C = /* @__PURE__ */ c({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "QPopover",
|
|
12
12
|
props: /* @__PURE__ */ m({
|
|
@@ -26,12 +26,12 @@ const B = {
|
|
|
26
26
|
modelModifiers: {}
|
|
27
27
|
}),
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(
|
|
30
|
-
const e =
|
|
31
|
-
return (
|
|
29
|
+
setup(s) {
|
|
30
|
+
const e = s, r = u(s, "modelValue");
|
|
31
|
+
return (t, n) => (o(), h(f(B), {
|
|
32
32
|
id: e.id,
|
|
33
33
|
modelValue: r.value,
|
|
34
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
34
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => r.value = p),
|
|
35
35
|
class: y(["q-popover", e.class]),
|
|
36
36
|
trigger: "click",
|
|
37
37
|
anchor: e.anchor,
|
|
@@ -41,30 +41,40 @@ const B = {
|
|
|
41
41
|
disabled: e.disabled,
|
|
42
42
|
placement: e.placement
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
e.title ||
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
default: v(() => [
|
|
45
|
+
e.title || t.$slots.header ? (o(), l("div", V, [
|
|
46
|
+
t.$slots.header ? a(t.$slots, "header", { key: 0 }) : (o(), l(
|
|
47
|
+
_,
|
|
48
|
+
{ key: 1 },
|
|
49
|
+
[
|
|
50
|
+
a(t.$slots, "header.prepend"),
|
|
51
|
+
k(
|
|
52
|
+
"h4",
|
|
53
|
+
$,
|
|
54
|
+
i(e.title),
|
|
55
|
+
1
|
|
56
|
+
/* TEXT */
|
|
57
|
+
),
|
|
58
|
+
a(t.$slots, "header.append")
|
|
59
|
+
],
|
|
60
|
+
64
|
|
61
|
+
/* STABLE_FRAGMENT */
|
|
62
|
+
))
|
|
63
|
+
])) : d("v-if", !0),
|
|
64
|
+
e.text || t.$slots.default ? (o(), l("div", b, [
|
|
65
|
+
a(t.$slots, "default", {}, () => [
|
|
66
|
+
e.html ? (o(), l("span", {
|
|
57
67
|
key: 0,
|
|
58
68
|
innerHTML: e.text
|
|
59
|
-
}, null, 8,
|
|
69
|
+
}, null, 8, g)) : (o(), l(
|
|
60
70
|
"span",
|
|
61
|
-
|
|
71
|
+
w,
|
|
62
72
|
i(e.text),
|
|
63
73
|
1
|
|
64
74
|
/* TEXT */
|
|
65
75
|
))
|
|
66
76
|
])
|
|
67
|
-
])) :
|
|
77
|
+
])) : d("v-if", !0)
|
|
68
78
|
]),
|
|
69
79
|
_: 3
|
|
70
80
|
/* FORWARDED */
|
|
@@ -72,5 +82,5 @@ const B = {
|
|
|
72
82
|
}
|
|
73
83
|
});
|
|
74
84
|
export {
|
|
75
|
-
|
|
85
|
+
C as default
|
|
76
86
|
};
|
|
@@ -74,6 +74,8 @@ declare const QPopover: {
|
|
|
74
74
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
75
75
|
$slots: {
|
|
76
76
|
header?(_: {}): any;
|
|
77
|
+
'header.prepend'?(_: {}): any;
|
|
78
|
+
'header.append'?(_: {}): any;
|
|
77
79
|
default?(_: {}): any;
|
|
78
80
|
};
|
|
79
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPopover/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAA;AAG3C,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAyHA;
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAyHA;AAqUC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAatD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAEpD,KAAK,WAAW,GAAG,YAAY,CAAC;AA+LjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA4TT,OAAO,IAA6B;;yBAnBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACb,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA8DnB,GAAG,8CAEL,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFlE,GAAG,8CAEL,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAFlE,GAAG,8CAEL,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA7CrF;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAQD,GAAG,8CAEL,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAFlE,GAAG,8CAEL,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFlE,GAAG,8CAEL,GAAE,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OADpF,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as X, mergeModels as I, useModel as j, ref as f, computed as b, watch as G, nextTick as J, createElementBlock as m, openBlock as n, Fragment as N, createVNode as k, unref as i, mergeProps as
|
|
1
|
+
import { defineComponent as X, mergeModels as I, useModel as j, ref as f, computed as b, watch as G, nextTick as J, createElementBlock as m, openBlock as n, Fragment as N, createVNode as k, unref as i, mergeProps as A, withModifiers as F, createSlots as Y, withCtx as d, toDisplayString as O, createCommentVNode as g, createTextVNode as Z, renderSlot as c, createBlock as h, normalizeProps as ee, createElementVNode as le } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as oe, DEFAULT_ICONS as te } from "./types.js";
|
|
3
3
|
import { QButton as ae } from "../QButton/index.js";
|
|
4
4
|
import { QField as ne } from "../QField/index.js";
|
|
@@ -45,12 +45,12 @@ const fe = {
|
|
|
45
45
|
}),
|
|
46
46
|
emits: /* @__PURE__ */ I(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
47
47
|
setup(q, { emit: R }) {
|
|
48
|
-
const e = q, p = R, v = j(q, "modelValue"), t = f(!1), w = f(""), y = f(null), _ = f(null), V = f(null),
|
|
48
|
+
const e = q, p = R, v = j(q, "modelValue"), t = f(!1), w = f(""), y = f(null), _ = f(null), V = f(null), M = b(() => u.value === void 0), u = b(
|
|
49
49
|
() => {
|
|
50
50
|
var l;
|
|
51
51
|
return (l = e.items) == null ? void 0 : l.find((o) => o[e.itemValue] === v.value);
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), U = b(
|
|
54
54
|
() => u.value ? u.value[e.itemLabel] : ""
|
|
55
55
|
), E = b(
|
|
56
56
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
@@ -59,26 +59,26 @@ const fe = {
|
|
|
59
59
|
v.value = l, L();
|
|
60
60
|
}
|
|
61
61
|
function x() {
|
|
62
|
-
E.value && (B(e.emptyValue),
|
|
62
|
+
E.value && (B(e.emptyValue), Q());
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function K(l) {
|
|
65
65
|
var o, s, a;
|
|
66
66
|
!((o = V.value) != null && o.contains(l.relatedTarget)) && !((a = (s = y.value) == null ? void 0 : s.fieldRef) != null && a.contains(l.relatedTarget)) && L();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function C() {
|
|
69
69
|
t.value || (p("before-show"), t.value = !0);
|
|
70
70
|
}
|
|
71
71
|
function L() {
|
|
72
72
|
t.value && (p("before-hide"), t.value = !1);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
e.readonly || e.disabled || (t.value ? L() :
|
|
74
|
+
function S() {
|
|
75
|
+
e.readonly || e.disabled || (t.value ? L() : C());
|
|
76
76
|
}
|
|
77
|
-
let
|
|
78
|
-
function
|
|
77
|
+
let $;
|
|
78
|
+
function T(l) {
|
|
79
79
|
var o;
|
|
80
80
|
if (!(!l.key || e.readonly || e.disabled)) {
|
|
81
|
-
if (window.clearTimeout(
|
|
81
|
+
if (window.clearTimeout($), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && C(), ["Escape", "Tab"].includes(l.key) && (t.value ? t.value = !1 : E.value && l.key === "Escape" && x()), l.key === "Delete" && e.clearable && x(), /^[a-z]$/i.test(l.key)) {
|
|
82
82
|
w.value += l.key.toLowerCase();
|
|
83
83
|
const s = ((o = e.items) == null ? void 0 : o.length) || 0;
|
|
84
84
|
for (let a = 0; a < s; a++)
|
|
@@ -87,23 +87,23 @@ const fe = {
|
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
$ = window.setTimeout(function() {
|
|
91
91
|
w.value = "";
|
|
92
92
|
}, 500);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
function P() {
|
|
96
96
|
var l;
|
|
97
|
-
e.loading ? (l = V.value) == null || l.focus() :
|
|
97
|
+
e.loading ? (l = V.value) == null || l.focus() : z(), p("show");
|
|
98
98
|
}
|
|
99
99
|
function H() {
|
|
100
|
-
|
|
100
|
+
Q(), p("hide");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Q() {
|
|
103
103
|
var l, o;
|
|
104
104
|
(o = (l = y.value) == null ? void 0 : l.fieldRef) == null || o.focus();
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function z() {
|
|
107
107
|
var l;
|
|
108
108
|
(l = _.value) == null || l.$el.focus();
|
|
109
109
|
}
|
|
@@ -114,7 +114,7 @@ const fe = {
|
|
|
114
114
|
return G(
|
|
115
115
|
() => e.loading,
|
|
116
116
|
(l) => {
|
|
117
|
-
!l && t.value && J(
|
|
117
|
+
!l && t.value && J(z);
|
|
118
118
|
}
|
|
119
119
|
), (l, o) => {
|
|
120
120
|
var s, a;
|
|
@@ -122,7 +122,7 @@ const fe = {
|
|
|
122
122
|
N,
|
|
123
123
|
null,
|
|
124
124
|
[
|
|
125
|
-
k(i(ne),
|
|
125
|
+
k(i(ne), A({
|
|
126
126
|
id: e.id,
|
|
127
127
|
ref_key: "triggerEl",
|
|
128
128
|
ref: y,
|
|
@@ -146,8 +146,8 @@ const fe = {
|
|
|
146
146
|
size: e.size,
|
|
147
147
|
invalid: e.invalid
|
|
148
148
|
}, l.$attrs, {
|
|
149
|
-
onClick:
|
|
150
|
-
onKeydown: F(
|
|
149
|
+
onClick: S,
|
|
150
|
+
onKeydown: F(T, ["stop"])
|
|
151
151
|
}), Y({
|
|
152
152
|
append: d(() => [
|
|
153
153
|
c(l.$slots, "append"),
|
|
@@ -166,7 +166,7 @@ const fe = {
|
|
|
166
166
|
borderless: "",
|
|
167
167
|
tabindex: "-1",
|
|
168
168
|
disabled: e.disabled,
|
|
169
|
-
onClick:
|
|
169
|
+
onClick: S
|
|
170
170
|
}, {
|
|
171
171
|
default: d(() => [
|
|
172
172
|
k(i(ue), {
|
|
@@ -179,7 +179,7 @@ const fe = {
|
|
|
179
179
|
}, 8, ["aria-label", "disabled"]))
|
|
180
180
|
]),
|
|
181
181
|
default: d(() => [
|
|
182
|
-
|
|
182
|
+
M.value ? (n(), m("span", me, [
|
|
183
183
|
!e.readonly && !e.disabled ? (n(), m(
|
|
184
184
|
N,
|
|
185
185
|
{ key: 0 },
|
|
@@ -196,7 +196,7 @@ const fe = {
|
|
|
196
196
|
])) : (n(), m(
|
|
197
197
|
"span",
|
|
198
198
|
fe,
|
|
199
|
-
O(
|
|
199
|
+
O(U.value),
|
|
200
200
|
1
|
|
201
201
|
/* TEXT */
|
|
202
202
|
))
|
|
@@ -207,12 +207,12 @@ const fe = {
|
|
|
207
207
|
(s = u.value) != null && s.icon || l.$slots.prepend ? {
|
|
208
208
|
name: "prepend",
|
|
209
209
|
fn: d(() => {
|
|
210
|
-
var r,
|
|
210
|
+
var r, D;
|
|
211
211
|
return [
|
|
212
212
|
c(l.$slots, "prepend"),
|
|
213
213
|
(r = u.value) != null && r.icon ? (n(), h(
|
|
214
214
|
i(ie),
|
|
215
|
-
ee(
|
|
215
|
+
ee(A({ key: 0 }, (D = u.value) == null ? void 0 : D.icon)),
|
|
216
216
|
null,
|
|
217
217
|
16
|
|
218
218
|
/* FULL_PROPS */
|
|
@@ -250,8 +250,8 @@ const fe = {
|
|
|
250
250
|
"data-key": e.id,
|
|
251
251
|
class: "q-select__body",
|
|
252
252
|
tabindex: "-1",
|
|
253
|
-
onFocusout:
|
|
254
|
-
onKeydown: F(
|
|
253
|
+
onFocusout: K,
|
|
254
|
+
onKeydown: F(T, ["stop"])
|
|
255
255
|
}, [
|
|
256
256
|
c(l.$slots, "body.prepend"),
|
|
257
257
|
e.loading ? (n(), m("div", ve, [
|