@quidgest/ui 0.13.0 → 0.13.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 +10 -2
- package/dist/ui.esm.js +645 -629
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +35 -35
- package/dist/ui.scss +10 -3
- package/esm/components/QBadge/QBadge.d.ts +12 -6
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +6 -6
- package/esm/components/QBadge/index.d.ts +37 -15
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +22 -39
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +29 -29
- package/esm/components/QCombobox/index.d.ts +48 -56
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +29 -7
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +121 -102
- package/esm/components/QDialog/index.d.ts +41 -7
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +10 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +23 -22
- package/esm/components/QList/QListItem.d.ts +14 -8
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +17 -17
- package/esm/components/QList/index.d.ts +49 -15
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +13 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +2 -0
- package/esm/components/QOverlay/index.d.ts +19 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +22 -39
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +37 -37
- package/esm/components/QSelect/index.d.ts +48 -56
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +15 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +44 -27
- package/esm/components/QTooltip/index.d.ts +20 -0
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as J, mergeModels as
|
|
2
|
-
import { QButton as
|
|
1
|
+
import { defineComponent as J, mergeModels as R, useModel as Y, ref as m, computed as k, watch as Z, nextTick as ee, openBlock as t, createElementBlock as p, Fragment as D, createVNode as v, unref as n, normalizeClass as le, withModifiers as F, createSlots as oe, withCtx as s, renderSlot as u, createBlock as g, normalizeProps as C, guardReactiveProps as M, createCommentVNode as h, toDisplayString as O, createTextVNode as ae, mergeProps as te, createElementVNode as ne } from "vue";
|
|
2
|
+
import { QButton as U } from "../QButton/index.js";
|
|
3
3
|
import { QField as ie } from "../QField/index.js";
|
|
4
4
|
import { QIcon as S } from "../QIcon/index.js";
|
|
5
5
|
import { QList as se } from "../QList/index.js";
|
|
@@ -25,7 +25,7 @@ const ue = {
|
|
|
25
25
|
}
|
|
26
26
|
}, Ve = /* @__PURE__ */ J({
|
|
27
27
|
__name: "QSelect",
|
|
28
|
-
props: /* @__PURE__ */
|
|
28
|
+
props: /* @__PURE__ */ R({
|
|
29
29
|
id: { default: void 0 },
|
|
30
30
|
label: { default: "" },
|
|
31
31
|
clearable: { type: Boolean },
|
|
@@ -33,29 +33,28 @@ const ue = {
|
|
|
33
33
|
disabled: { type: Boolean },
|
|
34
34
|
required: { type: Boolean },
|
|
35
35
|
loading: { type: Boolean },
|
|
36
|
-
icons: { default: () => ve },
|
|
37
36
|
items: {},
|
|
38
37
|
groups: { default: () => [] },
|
|
39
38
|
itemValue: { default: "key" },
|
|
40
39
|
itemLabel: { default: "label" },
|
|
41
40
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
42
41
|
size: { default: void 0 },
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
class: { default: "" },
|
|
43
|
+
internals: { default: () => ({ icons: ve, texts: pe }) }
|
|
45
44
|
}, {
|
|
46
45
|
modelValue: {
|
|
47
46
|
type: [String, Number, Boolean, Symbol]
|
|
48
47
|
},
|
|
49
48
|
modelModifiers: {}
|
|
50
49
|
}),
|
|
51
|
-
emits: /* @__PURE__ */
|
|
52
|
-
setup(x, { emit:
|
|
53
|
-
const l = x, y =
|
|
50
|
+
emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
51
|
+
setup(x, { emit: A }) {
|
|
52
|
+
const l = x, y = A, c = Y(x, "modelValue"), a = m(!1), w = m(""), b = m(null), _ = m(null), V = m(null), P = k(() => d.value === void 0), d = k(
|
|
54
53
|
() => {
|
|
55
54
|
var e;
|
|
56
55
|
return (e = l.items) == null ? void 0 : e.find((o) => o[l.itemValue] === c.value);
|
|
57
56
|
}
|
|
58
|
-
),
|
|
57
|
+
), K = k(
|
|
59
58
|
() => d.value ? d.value[l.itemLabel] : ""
|
|
60
59
|
), q = k(
|
|
61
60
|
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
@@ -64,20 +63,20 @@ const ue = {
|
|
|
64
63
|
c.value = e, L();
|
|
65
64
|
}
|
|
66
65
|
function E() {
|
|
67
|
-
q.value && B(l.emptyValue);
|
|
66
|
+
q.value && (B(l.emptyValue), I());
|
|
68
67
|
}
|
|
69
|
-
function
|
|
68
|
+
function H(e) {
|
|
70
69
|
var o, r, f;
|
|
71
70
|
!((o = V.value) != null && o.contains(e.relatedTarget)) && !((f = (r = b.value) == null ? void 0 : r.fieldRef) != null && f.contains(e.relatedTarget)) && L();
|
|
72
71
|
}
|
|
73
|
-
function
|
|
72
|
+
function W() {
|
|
74
73
|
a.value || (y("before-show"), a.value = !0);
|
|
75
74
|
}
|
|
76
75
|
function L() {
|
|
77
76
|
a.value && (y("before-hide"), a.value = !1);
|
|
78
77
|
}
|
|
79
78
|
function T() {
|
|
80
|
-
l.readonly || l.disabled || (a.value ? L() :
|
|
79
|
+
l.readonly || l.disabled || (a.value ? L() : W());
|
|
81
80
|
}
|
|
82
81
|
let $;
|
|
83
82
|
function z(e) {
|
|
@@ -95,18 +94,18 @@ const ue = {
|
|
|
95
94
|
}, 500);
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
|
-
function W() {
|
|
99
|
-
var e;
|
|
100
|
-
l.loading ? (e = V.value) == null || e.focus() : I(), y("show");
|
|
101
|
-
}
|
|
102
97
|
function X() {
|
|
103
|
-
|
|
98
|
+
var e;
|
|
99
|
+
l.loading ? (e = V.value) == null || e.focus() : N(), y("show");
|
|
104
100
|
}
|
|
105
101
|
function j() {
|
|
102
|
+
I(), y("hide");
|
|
103
|
+
}
|
|
104
|
+
function I() {
|
|
106
105
|
var e, o;
|
|
107
106
|
(o = (e = b.value) == null ? void 0 : e.fieldRef) == null || o.focus();
|
|
108
107
|
}
|
|
109
|
-
function
|
|
108
|
+
function N() {
|
|
110
109
|
var e;
|
|
111
110
|
(e = _.value) == null || e.$el.focus();
|
|
112
111
|
}
|
|
@@ -117,12 +116,12 @@ const ue = {
|
|
|
117
116
|
return Z(
|
|
118
117
|
() => l.loading,
|
|
119
118
|
(e) => {
|
|
120
|
-
!e && a.value && ee(
|
|
119
|
+
!e && a.value && ee(N);
|
|
121
120
|
}
|
|
122
121
|
), (e, o) => {
|
|
123
122
|
var r, f;
|
|
124
123
|
return t(), p(
|
|
125
|
-
|
|
124
|
+
D,
|
|
126
125
|
null,
|
|
127
126
|
[
|
|
128
127
|
v(n(ie), {
|
|
@@ -149,11 +148,11 @@ const ue = {
|
|
|
149
148
|
"aria-haspopup": "listbox",
|
|
150
149
|
size: l.size,
|
|
151
150
|
onClick: T,
|
|
152
|
-
onKeydown:
|
|
151
|
+
onKeydown: F(z, ["stop"])
|
|
153
152
|
}, oe({
|
|
154
153
|
append: s(() => [
|
|
155
154
|
u(e.$slots, "append"),
|
|
156
|
-
q.value && c.value ? (t(), g(n(
|
|
155
|
+
q.value && c.value ? (t(), g(n(U), {
|
|
157
156
|
key: 0,
|
|
158
157
|
class: "q-select__clear",
|
|
159
158
|
"b-style": "plain",
|
|
@@ -164,7 +163,7 @@ const ue = {
|
|
|
164
163
|
default: s(() => [
|
|
165
164
|
v(
|
|
166
165
|
n(S),
|
|
167
|
-
C(
|
|
166
|
+
C(M(l.internals.icons.clear)),
|
|
168
167
|
null,
|
|
169
168
|
16
|
|
170
169
|
/* FULL_PROPS */
|
|
@@ -173,7 +172,7 @@ const ue = {
|
|
|
173
172
|
_: 1
|
|
174
173
|
/* STABLE */
|
|
175
174
|
})) : h("v-if", !0),
|
|
176
|
-
l.readonly ? h("v-if", !0) : (t(), g(n(
|
|
175
|
+
l.readonly ? h("v-if", !0) : (t(), g(n(U), {
|
|
177
176
|
key: 1,
|
|
178
177
|
class: "q-select__chevron",
|
|
179
178
|
"b-style": "plain",
|
|
@@ -185,7 +184,7 @@ const ue = {
|
|
|
185
184
|
default: s(() => [
|
|
186
185
|
v(
|
|
187
186
|
n(S),
|
|
188
|
-
C(
|
|
187
|
+
C(M(l.internals.icons.chevron)),
|
|
189
188
|
null,
|
|
190
189
|
16
|
|
191
190
|
/* FULL_PROPS */
|
|
@@ -196,13 +195,13 @@ const ue = {
|
|
|
196
195
|
}, 8, ["disabled"]))
|
|
197
196
|
]),
|
|
198
197
|
default: s(() => [
|
|
199
|
-
|
|
198
|
+
P.value ? (t(), p("span", ce, [
|
|
200
199
|
!l.readonly && !l.disabled ? (t(), p(
|
|
201
|
-
|
|
200
|
+
D,
|
|
202
201
|
{ key: 0 },
|
|
203
202
|
[
|
|
204
203
|
ae(
|
|
205
|
-
|
|
204
|
+
O(e.internals.texts.placeholder),
|
|
206
205
|
1
|
|
207
206
|
/* TEXT */
|
|
208
207
|
)
|
|
@@ -213,7 +212,7 @@ const ue = {
|
|
|
213
212
|
])) : (t(), p(
|
|
214
213
|
"span",
|
|
215
214
|
ue,
|
|
216
|
-
|
|
215
|
+
O(K.value),
|
|
217
216
|
1
|
|
218
217
|
/* TEXT */
|
|
219
218
|
))
|
|
@@ -224,12 +223,12 @@ const ue = {
|
|
|
224
223
|
(r = d.value) != null && r.icon || e.$slots.prepend ? {
|
|
225
224
|
name: "prepend",
|
|
226
225
|
fn: s(() => {
|
|
227
|
-
var i,
|
|
226
|
+
var i, Q;
|
|
228
227
|
return [
|
|
229
228
|
u(e.$slots, "prepend"),
|
|
230
229
|
(i = d.value) != null && i.icon ? (t(), g(
|
|
231
230
|
n(S),
|
|
232
|
-
C(te({ key: 0 }, (
|
|
231
|
+
C(te({ key: 0 }, (Q = d.value) == null ? void 0 : Q.icon)),
|
|
233
232
|
null,
|
|
234
233
|
16
|
|
235
234
|
/* FULL_PROPS */
|
|
@@ -256,8 +255,8 @@ const ue = {
|
|
|
256
255
|
"scroll-lock": "",
|
|
257
256
|
anchor: (f = b.value) == null ? void 0 : f.$el,
|
|
258
257
|
offset: 2,
|
|
259
|
-
onEnter:
|
|
260
|
-
onLeave:
|
|
258
|
+
onEnter: X,
|
|
259
|
+
onLeave: j
|
|
261
260
|
}, {
|
|
262
261
|
default: s(() => [
|
|
263
262
|
ne("div", {
|
|
@@ -267,8 +266,8 @@ const ue = {
|
|
|
267
266
|
"data-key": l.id,
|
|
268
267
|
class: "q-select__body",
|
|
269
268
|
tabindex: "-1",
|
|
270
|
-
onFocusout:
|
|
271
|
-
onKeydown:
|
|
269
|
+
onFocusout: H,
|
|
270
|
+
onKeydown: F(z, ["stop"])
|
|
272
271
|
}, [
|
|
273
272
|
u(e.$slots, "body.prepend"),
|
|
274
273
|
l.loading ? (t(), p("div", me, [
|
|
@@ -278,6 +277,7 @@ const ue = {
|
|
|
278
277
|
ref_key: "listRef",
|
|
279
278
|
ref: _,
|
|
280
279
|
class: "q-select__items",
|
|
280
|
+
selectable: "",
|
|
281
281
|
modelValue: c.value,
|
|
282
282
|
"onUpdate:modelValue": [
|
|
283
283
|
o[0] || (o[0] = (i) => c.value = i),
|
|
@@ -22,9 +22,15 @@ declare const QSelect: {
|
|
|
22
22
|
required: {
|
|
23
23
|
type: import('vue').PropType<boolean>;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
type: import('vue').PropType<
|
|
27
|
-
|
|
25
|
+
internals: {
|
|
26
|
+
type: import('vue').PropType<{
|
|
27
|
+
icons: Record<string, import('..').Icon>;
|
|
28
|
+
texts: Record<string, string>;
|
|
29
|
+
}>;
|
|
30
|
+
default: () => {
|
|
31
|
+
icons: Record<string, import('..').Icon>;
|
|
32
|
+
texts: Record<string, string>;
|
|
33
|
+
};
|
|
28
34
|
};
|
|
29
35
|
items: {
|
|
30
36
|
type: import('vue').PropType<(Omit<import('..').QListItemProps, "label" | "value"> & {
|
|
@@ -60,14 +66,6 @@ declare const QSelect: {
|
|
|
60
66
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
61
67
|
default: undefined;
|
|
62
68
|
};
|
|
63
|
-
texts: {
|
|
64
|
-
type: import('vue').PropType<{
|
|
65
|
-
placeholder: string;
|
|
66
|
-
}>;
|
|
67
|
-
default: () => {
|
|
68
|
-
placeholder: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
69
|
}>> & {
|
|
72
70
|
"onBefore-show"?: (() => any) | undefined;
|
|
73
71
|
"onBefore-hide"?: (() => any) | undefined;
|
|
@@ -101,9 +99,15 @@ declare const QSelect: {
|
|
|
101
99
|
required: {
|
|
102
100
|
type: import('vue').PropType<boolean>;
|
|
103
101
|
};
|
|
104
|
-
|
|
105
|
-
type: import('vue').PropType<
|
|
106
|
-
|
|
102
|
+
internals: {
|
|
103
|
+
type: import('vue').PropType<{
|
|
104
|
+
icons: Record<string, import('..').Icon>;
|
|
105
|
+
texts: Record<string, string>;
|
|
106
|
+
}>;
|
|
107
|
+
default: () => {
|
|
108
|
+
icons: Record<string, import('..').Icon>;
|
|
109
|
+
texts: Record<string, string>;
|
|
110
|
+
};
|
|
107
111
|
};
|
|
108
112
|
items: {
|
|
109
113
|
type: import('vue').PropType<(Omit<import('..').QListItemProps, "label" | "value"> & {
|
|
@@ -139,14 +143,6 @@ declare const QSelect: {
|
|
|
139
143
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
140
144
|
default: undefined;
|
|
141
145
|
};
|
|
142
|
-
texts: {
|
|
143
|
-
type: import('vue').PropType<{
|
|
144
|
-
placeholder: string;
|
|
145
|
-
}>;
|
|
146
|
-
default: () => {
|
|
147
|
-
placeholder: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
146
|
}>> & {
|
|
151
147
|
"onBefore-show"?: (() => any) | undefined;
|
|
152
148
|
"onBefore-hide"?: (() => any) | undefined;
|
|
@@ -156,7 +152,10 @@ declare const QSelect: {
|
|
|
156
152
|
size: import('..').QFieldSize;
|
|
157
153
|
class: string | unknown[];
|
|
158
154
|
label: string;
|
|
159
|
-
|
|
155
|
+
internals: {
|
|
156
|
+
icons: Record<string, import('..').Icon>;
|
|
157
|
+
texts: Record<string, string>;
|
|
158
|
+
};
|
|
160
159
|
groups: (import('..').QListItemGroupProps & {
|
|
161
160
|
id: string;
|
|
162
161
|
})[];
|
|
@@ -164,9 +163,6 @@ declare const QSelect: {
|
|
|
164
163
|
itemLabel: string;
|
|
165
164
|
id: string;
|
|
166
165
|
emptyValue: import('../../types/primitive').Primitive;
|
|
167
|
-
texts: {
|
|
168
|
-
placeholder: string;
|
|
169
|
-
};
|
|
170
166
|
}, true, {}, {}, {
|
|
171
167
|
P: {};
|
|
172
168
|
B: {};
|
|
@@ -197,9 +193,15 @@ declare const QSelect: {
|
|
|
197
193
|
required: {
|
|
198
194
|
type: import('vue').PropType<boolean>;
|
|
199
195
|
};
|
|
200
|
-
|
|
201
|
-
type: import('vue').PropType<
|
|
202
|
-
|
|
196
|
+
internals: {
|
|
197
|
+
type: import('vue').PropType<{
|
|
198
|
+
icons: Record<string, import('..').Icon>;
|
|
199
|
+
texts: Record<string, string>;
|
|
200
|
+
}>;
|
|
201
|
+
default: () => {
|
|
202
|
+
icons: Record<string, import('..').Icon>;
|
|
203
|
+
texts: Record<string, string>;
|
|
204
|
+
};
|
|
203
205
|
};
|
|
204
206
|
items: {
|
|
205
207
|
type: import('vue').PropType<(Omit<import('..').QListItemProps, "label" | "value"> & {
|
|
@@ -235,14 +237,6 @@ declare const QSelect: {
|
|
|
235
237
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
236
238
|
default: undefined;
|
|
237
239
|
};
|
|
238
|
-
texts: {
|
|
239
|
-
type: import('vue').PropType<{
|
|
240
|
-
placeholder: string;
|
|
241
|
-
}>;
|
|
242
|
-
default: () => {
|
|
243
|
-
placeholder: string;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
240
|
}>> & {
|
|
247
241
|
"onBefore-show"?: (() => any) | undefined;
|
|
248
242
|
"onBefore-hide"?: (() => any) | undefined;
|
|
@@ -252,7 +246,10 @@ declare const QSelect: {
|
|
|
252
246
|
size: import('..').QFieldSize;
|
|
253
247
|
class: string | unknown[];
|
|
254
248
|
label: string;
|
|
255
|
-
|
|
249
|
+
internals: {
|
|
250
|
+
icons: Record<string, import('..').Icon>;
|
|
251
|
+
texts: Record<string, string>;
|
|
252
|
+
};
|
|
256
253
|
groups: (import('..').QListItemGroupProps & {
|
|
257
254
|
id: string;
|
|
258
255
|
})[];
|
|
@@ -260,9 +257,6 @@ declare const QSelect: {
|
|
|
260
257
|
itemLabel: string;
|
|
261
258
|
id: string;
|
|
262
259
|
emptyValue: import('../../types/primitive').Primitive;
|
|
263
|
-
texts: {
|
|
264
|
-
placeholder: string;
|
|
265
|
-
};
|
|
266
260
|
}>;
|
|
267
261
|
__isFragment?: undefined;
|
|
268
262
|
__isTeleport?: undefined;
|
|
@@ -290,9 +284,15 @@ declare const QSelect: {
|
|
|
290
284
|
required: {
|
|
291
285
|
type: import('vue').PropType<boolean>;
|
|
292
286
|
};
|
|
293
|
-
|
|
294
|
-
type: import('vue').PropType<
|
|
295
|
-
|
|
287
|
+
internals: {
|
|
288
|
+
type: import('vue').PropType<{
|
|
289
|
+
icons: Record<string, import('..').Icon>;
|
|
290
|
+
texts: Record<string, string>;
|
|
291
|
+
}>;
|
|
292
|
+
default: () => {
|
|
293
|
+
icons: Record<string, import('..').Icon>;
|
|
294
|
+
texts: Record<string, string>;
|
|
295
|
+
};
|
|
296
296
|
};
|
|
297
297
|
items: {
|
|
298
298
|
type: import('vue').PropType<(Omit<import('..').QListItemProps, "label" | "value"> & {
|
|
@@ -328,14 +328,6 @@ declare const QSelect: {
|
|
|
328
328
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
329
329
|
default: undefined;
|
|
330
330
|
};
|
|
331
|
-
texts: {
|
|
332
|
-
type: import('vue').PropType<{
|
|
333
|
-
placeholder: string;
|
|
334
|
-
}>;
|
|
335
|
-
default: () => {
|
|
336
|
-
placeholder: string;
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
331
|
}>> & {
|
|
340
332
|
"onBefore-show"?: (() => any) | undefined;
|
|
341
333
|
"onBefore-hide"?: (() => any) | undefined;
|
|
@@ -350,7 +342,10 @@ declare const QSelect: {
|
|
|
350
342
|
size: import('..').QFieldSize;
|
|
351
343
|
class: string | unknown[];
|
|
352
344
|
label: string;
|
|
353
|
-
|
|
345
|
+
internals: {
|
|
346
|
+
icons: Record<string, import('..').Icon>;
|
|
347
|
+
texts: Record<string, string>;
|
|
348
|
+
};
|
|
354
349
|
groups: (import('..').QListItemGroupProps & {
|
|
355
350
|
id: string;
|
|
356
351
|
})[];
|
|
@@ -358,9 +353,6 @@ declare const QSelect: {
|
|
|
358
353
|
itemLabel: string;
|
|
359
354
|
id: string;
|
|
360
355
|
emptyValue: import('../../types/primitive').Primitive;
|
|
361
|
-
texts: {
|
|
362
|
-
placeholder: string;
|
|
363
|
-
};
|
|
364
356
|
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
365
357
|
$slots: {
|
|
366
358
|
prepend?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAA;AAG5D,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Appearance, Placement, Trigger } from '../../composables/overlay';
|
|
2
2
|
import { Selector } from '../../utils/getElement';
|
|
3
|
+
import { Icon } from '../QIcon';
|
|
3
4
|
|
|
4
5
|
export type QTooltipProps = {
|
|
5
6
|
/**
|
|
@@ -50,6 +51,10 @@ export type QTooltipProps = {
|
|
|
50
51
|
* The text of the tooltip.
|
|
51
52
|
*/
|
|
52
53
|
text: string;
|
|
54
|
+
/**
|
|
55
|
+
* The icon of the tooltip.
|
|
56
|
+
*/
|
|
57
|
+
icon?: Icon;
|
|
53
58
|
/**
|
|
54
59
|
* The method to trigger the overlay.
|
|
55
60
|
*/
|
|
@@ -80,6 +85,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
80
85
|
disabled: {
|
|
81
86
|
type: import('vue').PropType<boolean>;
|
|
82
87
|
};
|
|
88
|
+
icon: {
|
|
89
|
+
type: import('vue').PropType<Icon>;
|
|
90
|
+
default: undefined;
|
|
91
|
+
};
|
|
83
92
|
id: {
|
|
84
93
|
type: import('vue').PropType<string>;
|
|
85
94
|
default: undefined;
|
|
@@ -132,6 +141,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
132
141
|
disabled: {
|
|
133
142
|
type: import('vue').PropType<boolean>;
|
|
134
143
|
};
|
|
144
|
+
icon: {
|
|
145
|
+
type: import('vue').PropType<Icon>;
|
|
146
|
+
default: undefined;
|
|
147
|
+
};
|
|
135
148
|
id: {
|
|
136
149
|
type: import('vue').PropType<string>;
|
|
137
150
|
default: undefined;
|
|
@@ -166,6 +179,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
166
179
|
}>>, {
|
|
167
180
|
class: string | unknown[];
|
|
168
181
|
html: boolean;
|
|
182
|
+
icon: Icon;
|
|
169
183
|
id: string;
|
|
170
184
|
placement: Placement;
|
|
171
185
|
appearance: Appearance;
|
|
@@ -179,6 +193,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
179
193
|
'aria-describedby': string;
|
|
180
194
|
};
|
|
181
195
|
}): any;
|
|
196
|
+
default?(_: {}): any;
|
|
182
197
|
}>;
|
|
183
198
|
export default _default;
|
|
184
199
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTooltip/QTooltip.vue"],"names":[],"mappings":"AAkCA;AAUC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAA;IAEhB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuJF,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as s, mergeModels as p, useModel as m, openBlock as a, createElementBlock as o, Fragment as d, renderSlot as i, unref as t, createVNode as u, normalizeClass as f, withCtx as h, createBlock as y, normalizeProps as g, mergeProps as v, createCommentVNode as B, createTextVNode as b, toDisplayString as k } from "vue";
|
|
2
|
+
import { QOverlay as V } from "../QOverlay/index.js";
|
|
3
|
+
import { QIcon as w } from "../QIcon/index.js";
|
|
4
|
+
import { useId as x } from "../../composables/uid.js";
|
|
5
|
+
const M = ["innerHTML"], z = /* @__PURE__ */ s({
|
|
5
6
|
__name: "QTooltip",
|
|
6
|
-
props: /* @__PURE__ */
|
|
7
|
+
props: /* @__PURE__ */ p({
|
|
7
8
|
id: { default: void 0 },
|
|
8
9
|
anchor: {},
|
|
9
10
|
appearance: { default: "inverted" },
|
|
@@ -15,6 +16,7 @@ const _ = ["innerHTML"], b = { key: 1 }, k = /* @__PURE__ */ i({
|
|
|
15
16
|
html: { type: Boolean, default: !0 },
|
|
16
17
|
placement: { default: "right" },
|
|
17
18
|
text: {},
|
|
19
|
+
icon: { default: void 0 },
|
|
18
20
|
trigger: { default: "hover" },
|
|
19
21
|
class: { default: void 0 }
|
|
20
22
|
}, {
|
|
@@ -22,21 +24,21 @@ const _ = ["innerHTML"], b = { key: 1 }, k = /* @__PURE__ */ i({
|
|
|
22
24
|
modelModifiers: {}
|
|
23
25
|
}),
|
|
24
26
|
emits: ["update:modelValue"],
|
|
25
|
-
setup(
|
|
26
|
-
const e =
|
|
27
|
-
return (
|
|
28
|
-
|
|
27
|
+
setup(l) {
|
|
28
|
+
const e = l, c = m(l, "modelValue"), r = x(e.id);
|
|
29
|
+
return (n, _) => (a(), o(
|
|
30
|
+
d,
|
|
29
31
|
null,
|
|
30
32
|
[
|
|
31
|
-
|
|
32
|
-
props: { "aria-describedby":
|
|
33
|
+
i(n.$slots, "anchor", {
|
|
34
|
+
props: { "aria-describedby": t(r) }
|
|
33
35
|
}),
|
|
34
|
-
u(
|
|
35
|
-
"model-value":
|
|
36
|
+
u(t(V), {
|
|
37
|
+
"model-value": c.value,
|
|
36
38
|
anchor: e.anchor,
|
|
37
39
|
role: "tooltip",
|
|
38
40
|
"non-modal": "",
|
|
39
|
-
id:
|
|
41
|
+
id: t(r),
|
|
40
42
|
appearance: e.appearance,
|
|
41
43
|
arrow: e.arrow,
|
|
42
44
|
attach: e.attach,
|
|
@@ -48,19 +50,34 @@ const _ = ["innerHTML"], b = { key: 1 }, k = /* @__PURE__ */ i({
|
|
|
48
50
|
trigger: e.trigger
|
|
49
51
|
}, {
|
|
50
52
|
default: h(() => [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
i(n.$slots, "default", {}, () => [
|
|
54
|
+
e.icon ? (a(), y(
|
|
55
|
+
t(w),
|
|
56
|
+
g(v({ key: 0 }, e.icon)),
|
|
57
|
+
null,
|
|
58
|
+
16
|
|
59
|
+
/* FULL_PROPS */
|
|
60
|
+
)) : B("v-if", !0),
|
|
61
|
+
e.html ? (a(), o("span", {
|
|
62
|
+
key: 1,
|
|
63
|
+
innerHTML: e.text
|
|
64
|
+
}, null, 8, M)) : (a(), o(
|
|
65
|
+
d,
|
|
66
|
+
{ key: 2 },
|
|
67
|
+
[
|
|
68
|
+
b(
|
|
69
|
+
k(e.text),
|
|
70
|
+
1
|
|
71
|
+
/* TEXT */
|
|
72
|
+
)
|
|
73
|
+
],
|
|
74
|
+
64
|
|
75
|
+
/* STABLE_FRAGMENT */
|
|
76
|
+
))
|
|
77
|
+
])
|
|
61
78
|
]),
|
|
62
|
-
_:
|
|
63
|
-
/*
|
|
79
|
+
_: 3
|
|
80
|
+
/* FORWARDED */
|
|
64
81
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
65
82
|
],
|
|
66
83
|
64
|
|
@@ -69,5 +86,5 @@ const _ = ["innerHTML"], b = { key: 1 }, k = /* @__PURE__ */ i({
|
|
|
69
86
|
}
|
|
70
87
|
});
|
|
71
88
|
export {
|
|
72
|
-
|
|
89
|
+
z as default
|
|
73
90
|
};
|
|
@@ -20,6 +20,10 @@ declare const QTooltip: {
|
|
|
20
20
|
disabled: {
|
|
21
21
|
type: import('vue').PropType<boolean>;
|
|
22
22
|
};
|
|
23
|
+
icon: {
|
|
24
|
+
type: import('vue').PropType<import('..').Icon>;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
23
27
|
id: {
|
|
24
28
|
type: import('vue').PropType<string>;
|
|
25
29
|
default: undefined;
|
|
@@ -72,6 +76,10 @@ declare const QTooltip: {
|
|
|
72
76
|
disabled: {
|
|
73
77
|
type: import('vue').PropType<boolean>;
|
|
74
78
|
};
|
|
79
|
+
icon: {
|
|
80
|
+
type: import('vue').PropType<import('..').Icon>;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
75
83
|
id: {
|
|
76
84
|
type: import('vue').PropType<string>;
|
|
77
85
|
default: undefined;
|
|
@@ -106,6 +114,7 @@ declare const QTooltip: {
|
|
|
106
114
|
}>>, {
|
|
107
115
|
class: string | unknown[];
|
|
108
116
|
html: boolean;
|
|
117
|
+
icon: import('..').Icon;
|
|
109
118
|
id: string;
|
|
110
119
|
placement: import('../../composables/overlay').Placement;
|
|
111
120
|
appearance: import('../../composables/overlay').Appearance;
|
|
@@ -141,6 +150,10 @@ declare const QTooltip: {
|
|
|
141
150
|
disabled: {
|
|
142
151
|
type: import('vue').PropType<boolean>;
|
|
143
152
|
};
|
|
153
|
+
icon: {
|
|
154
|
+
type: import('vue').PropType<import('..').Icon>;
|
|
155
|
+
default: undefined;
|
|
156
|
+
};
|
|
144
157
|
id: {
|
|
145
158
|
type: import('vue').PropType<string>;
|
|
146
159
|
default: undefined;
|
|
@@ -175,6 +188,7 @@ declare const QTooltip: {
|
|
|
175
188
|
}>>, {}, {}, {}, {}, {
|
|
176
189
|
class: string | unknown[];
|
|
177
190
|
html: boolean;
|
|
191
|
+
icon: import('..').Icon;
|
|
178
192
|
id: string;
|
|
179
193
|
placement: import('../../composables/overlay').Placement;
|
|
180
194
|
appearance: import('../../composables/overlay').Appearance;
|
|
@@ -207,6 +221,10 @@ declare const QTooltip: {
|
|
|
207
221
|
disabled: {
|
|
208
222
|
type: import('vue').PropType<boolean>;
|
|
209
223
|
};
|
|
224
|
+
icon: {
|
|
225
|
+
type: import('vue').PropType<import('..').Icon>;
|
|
226
|
+
default: undefined;
|
|
227
|
+
};
|
|
210
228
|
id: {
|
|
211
229
|
type: import('vue').PropType<string>;
|
|
212
230
|
default: undefined;
|
|
@@ -241,6 +259,7 @@ declare const QTooltip: {
|
|
|
241
259
|
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
242
260
|
class: string | unknown[];
|
|
243
261
|
html: boolean;
|
|
262
|
+
icon: import('..').Icon;
|
|
244
263
|
id: string;
|
|
245
264
|
placement: import('../../composables/overlay').Placement;
|
|
246
265
|
appearance: import('../../composables/overlay').Appearance;
|
|
@@ -255,6 +274,7 @@ declare const QTooltip: {
|
|
|
255
274
|
'aria-describedby': string;
|
|
256
275
|
};
|
|
257
276
|
}): any;
|
|
277
|
+
default?(_: {}): any;
|
|
258
278
|
};
|
|
259
279
|
});
|
|
260
280
|
export { QTooltip };
|