@quidgest/ui 0.13.1 → 0.13.3
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 +4 -0
- package/dist/ui.esm.js +535 -524
- package/dist/ui.js +7 -7
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +46 -46
- package/dist/ui.scss +4 -1
- 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 +21 -3
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +117 -98
- 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/QPopover/QPopover.vue.js +25 -24
- 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 +6 -6
- package/esm/components/QSelect/index.d.ts +48 -56
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as v, openBlock as i, createElementBlock as
|
|
2
|
-
import { QIcon as
|
|
1
|
+
import { defineComponent as v, openBlock as i, createElementBlock as c, unref as o, normalizeClass as b, withModifiers as y, createElementVNode as l, renderSlot as g, createBlock as d, normalizeProps as r, mergeProps as m, createCommentVNode as s, createTextVNode as q, toDisplayString as p, createVNode as B, guardReactiveProps as N } from "vue";
|
|
2
|
+
import { QIcon as a } from "../QIcon/index.js";
|
|
3
3
|
import { useId as S } from "../../composables/uid.js";
|
|
4
4
|
const C = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], x = { class: "q-list-item__container" }, D = { class: "q-list-item__content" }, E = {
|
|
5
5
|
key: 0,
|
|
@@ -19,20 +19,20 @@ const C = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], x = { c
|
|
|
19
19
|
icon: { default: void 0 },
|
|
20
20
|
selected: { type: Boolean },
|
|
21
21
|
highlighted: { type: Boolean },
|
|
22
|
-
icons: { default: () => P },
|
|
23
22
|
disabled: { type: Boolean },
|
|
24
|
-
description: { default: void 0 }
|
|
23
|
+
description: { default: void 0 },
|
|
24
|
+
internals: { default: () => ({ icons: P }) }
|
|
25
25
|
},
|
|
26
26
|
emits: ["select"],
|
|
27
27
|
setup(u, { emit: _ }) {
|
|
28
28
|
const e = u, f = _, h = S();
|
|
29
|
-
function
|
|
29
|
+
function n() {
|
|
30
30
|
e.disabled || f("select", e.value);
|
|
31
31
|
}
|
|
32
32
|
function k(t) {
|
|
33
|
-
t.key === "Tab" &&
|
|
33
|
+
t.key === "Tab" && n(), (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), n());
|
|
34
34
|
}
|
|
35
|
-
return (t, V) => (i(),
|
|
35
|
+
return (t, V) => (i(), c("li", {
|
|
36
36
|
id: o(h),
|
|
37
37
|
"data-key": e.value,
|
|
38
38
|
role: "option",
|
|
@@ -48,18 +48,18 @@ const C = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], x = { c
|
|
|
48
48
|
"aria-label": e.label,
|
|
49
49
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
50
50
|
onKeydown: k,
|
|
51
|
-
onClick: y(
|
|
51
|
+
onClick: y(n, ["stop", "prevent"])
|
|
52
52
|
}, [
|
|
53
53
|
l("div", x, [
|
|
54
54
|
l("div", D, [
|
|
55
55
|
g(t.$slots, "default", {}, () => [
|
|
56
56
|
e.icon ? (i(), d(
|
|
57
|
-
o(
|
|
57
|
+
o(a),
|
|
58
58
|
r(m({ key: 0 }, e.icon)),
|
|
59
59
|
null,
|
|
60
60
|
16
|
|
61
61
|
/* FULL_PROPS */
|
|
62
|
-
)) :
|
|
62
|
+
)) : s("v-if", !0),
|
|
63
63
|
q(
|
|
64
64
|
" " + p(e.label),
|
|
65
65
|
1
|
|
@@ -67,10 +67,10 @@ const C = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], x = { c
|
|
|
67
67
|
)
|
|
68
68
|
])
|
|
69
69
|
]),
|
|
70
|
-
e.description ? (i(),
|
|
70
|
+
e.description ? (i(), c("div", E, [
|
|
71
71
|
B(
|
|
72
|
-
o(
|
|
73
|
-
r(N(e.icons.description)),
|
|
72
|
+
o(a),
|
|
73
|
+
r(N(e.internals.icons.description)),
|
|
74
74
|
null,
|
|
75
75
|
16
|
|
76
76
|
/* FULL_PROPS */
|
|
@@ -82,16 +82,16 @@ const C = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], x = { c
|
|
|
82
82
|
1
|
|
83
83
|
/* TEXT */
|
|
84
84
|
)
|
|
85
|
-
])) :
|
|
85
|
+
])) : s("v-if", !0)
|
|
86
86
|
]),
|
|
87
87
|
l("div", I, [
|
|
88
88
|
e.selected ? (i(), d(
|
|
89
|
-
o(
|
|
90
|
-
m({ key: 0 }, e.icons.check, { class: "q-list-item__check" }),
|
|
89
|
+
o(a),
|
|
90
|
+
m({ key: 0 }, e.internals.icons.check, { class: "q-list-item__check" }),
|
|
91
91
|
null,
|
|
92
92
|
16
|
|
93
93
|
/* FULL_PROPS */
|
|
94
|
-
)) :
|
|
94
|
+
)) : s("v-if", !0)
|
|
95
95
|
])
|
|
96
96
|
], 42, C));
|
|
97
97
|
}
|
|
@@ -36,6 +36,9 @@ declare const QList: {
|
|
|
36
36
|
type: import('vue').PropType<string>;
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
|
+
selectable: {
|
|
40
|
+
type: import('vue').PropType<boolean>;
|
|
41
|
+
};
|
|
39
42
|
}>>, {
|
|
40
43
|
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
41
44
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
@@ -75,6 +78,9 @@ declare const QList: {
|
|
|
75
78
|
type: import('vue').PropType<string>;
|
|
76
79
|
default: string;
|
|
77
80
|
};
|
|
81
|
+
selectable: {
|
|
82
|
+
type: import('vue').PropType<boolean>;
|
|
83
|
+
};
|
|
78
84
|
}>>, {
|
|
79
85
|
class: string | unknown[];
|
|
80
86
|
highlighted: import('../../types/primitive').Primitive;
|
|
@@ -123,6 +129,9 @@ declare const QList: {
|
|
|
123
129
|
type: import('vue').PropType<string>;
|
|
124
130
|
default: string;
|
|
125
131
|
};
|
|
132
|
+
selectable: {
|
|
133
|
+
type: import('vue').PropType<boolean>;
|
|
134
|
+
};
|
|
126
135
|
}>>, {
|
|
127
136
|
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
128
137
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
@@ -174,6 +183,9 @@ declare const QList: {
|
|
|
174
183
|
type: import('vue').PropType<string>;
|
|
175
184
|
default: string;
|
|
176
185
|
};
|
|
186
|
+
selectable: {
|
|
187
|
+
type: import('vue').PropType<boolean>;
|
|
188
|
+
};
|
|
177
189
|
}>>, {
|
|
178
190
|
focusItem: (itemIdx: number, preventScroll?: boolean) => void;
|
|
179
191
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
@@ -214,9 +226,13 @@ declare const QListItem: {
|
|
|
214
226
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
215
227
|
required: true;
|
|
216
228
|
};
|
|
217
|
-
|
|
218
|
-
type: import('vue').PropType<
|
|
219
|
-
|
|
229
|
+
internals: {
|
|
230
|
+
type: import('vue').PropType<{
|
|
231
|
+
icons: Record<string, import('..').Icon>;
|
|
232
|
+
}>;
|
|
233
|
+
default: () => {
|
|
234
|
+
icons: Record<string, import('..').Icon>;
|
|
235
|
+
};
|
|
220
236
|
};
|
|
221
237
|
selected: {
|
|
222
238
|
type: import('vue').PropType<boolean>;
|
|
@@ -248,9 +264,13 @@ declare const QListItem: {
|
|
|
248
264
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
249
265
|
required: true;
|
|
250
266
|
};
|
|
251
|
-
|
|
252
|
-
type: import('vue').PropType<
|
|
253
|
-
|
|
267
|
+
internals: {
|
|
268
|
+
type: import('vue').PropType<{
|
|
269
|
+
icons: Record<string, import('..').Icon>;
|
|
270
|
+
}>;
|
|
271
|
+
default: () => {
|
|
272
|
+
icons: Record<string, import('..').Icon>;
|
|
273
|
+
};
|
|
254
274
|
};
|
|
255
275
|
selected: {
|
|
256
276
|
type: import('vue').PropType<boolean>;
|
|
@@ -266,7 +286,9 @@ declare const QListItem: {
|
|
|
266
286
|
onSelect?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
267
287
|
}, {
|
|
268
288
|
icon: import('..').Icon;
|
|
269
|
-
|
|
289
|
+
internals: {
|
|
290
|
+
icons: Record<string, import('..').Icon>;
|
|
291
|
+
};
|
|
270
292
|
description: string;
|
|
271
293
|
}, true, {}, {}, {
|
|
272
294
|
P: {};
|
|
@@ -291,9 +313,13 @@ declare const QListItem: {
|
|
|
291
313
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
292
314
|
required: true;
|
|
293
315
|
};
|
|
294
|
-
|
|
295
|
-
type: import('vue').PropType<
|
|
296
|
-
|
|
316
|
+
internals: {
|
|
317
|
+
type: import('vue').PropType<{
|
|
318
|
+
icons: Record<string, import('..').Icon>;
|
|
319
|
+
}>;
|
|
320
|
+
default: () => {
|
|
321
|
+
icons: Record<string, import('..').Icon>;
|
|
322
|
+
};
|
|
297
323
|
};
|
|
298
324
|
selected: {
|
|
299
325
|
type: import('vue').PropType<boolean>;
|
|
@@ -309,7 +335,9 @@ declare const QListItem: {
|
|
|
309
335
|
onSelect?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
|
|
310
336
|
}, {}, {}, {}, {}, {
|
|
311
337
|
icon: import('..').Icon;
|
|
312
|
-
|
|
338
|
+
internals: {
|
|
339
|
+
icons: Record<string, import('..').Icon>;
|
|
340
|
+
};
|
|
313
341
|
description: string;
|
|
314
342
|
}>;
|
|
315
343
|
__isFragment?: undefined;
|
|
@@ -331,9 +359,13 @@ declare const QListItem: {
|
|
|
331
359
|
type: import('vue').PropType<import('../../types/primitive').Primitive>;
|
|
332
360
|
required: true;
|
|
333
361
|
};
|
|
334
|
-
|
|
335
|
-
type: import('vue').PropType<
|
|
336
|
-
|
|
362
|
+
internals: {
|
|
363
|
+
type: import('vue').PropType<{
|
|
364
|
+
icons: Record<string, import('..').Icon>;
|
|
365
|
+
}>;
|
|
366
|
+
default: () => {
|
|
367
|
+
icons: Record<string, import('..').Icon>;
|
|
368
|
+
};
|
|
337
369
|
};
|
|
338
370
|
selected: {
|
|
339
371
|
type: import('vue').PropType<boolean>;
|
|
@@ -351,7 +383,9 @@ declare const QListItem: {
|
|
|
351
383
|
select: (value: import('../../types/primitive').Primitive) => void;
|
|
352
384
|
}, string, {
|
|
353
385
|
icon: import('..').Icon;
|
|
354
|
-
|
|
386
|
+
internals: {
|
|
387
|
+
icons: Record<string, import('..').Icon>;
|
|
388
|
+
};
|
|
355
389
|
description: string;
|
|
356
390
|
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
357
391
|
$slots: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QList/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAK/D,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QList/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAK/D,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2C,CAAA;AACtD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmD,CAAA;AAClE,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAA;AAGjF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAG3C,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -30,6 +30,10 @@ export type QOverlayProps = {
|
|
|
30
30
|
* Applies a backdrop blur effect behind the overlay.
|
|
31
31
|
*/
|
|
32
32
|
backdropBlur?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Custom set of classes to apply to the dialog's underlay.
|
|
35
|
+
*/
|
|
36
|
+
backdropClass?: string | unknown[];
|
|
33
37
|
/**
|
|
34
38
|
* The delay in milliseconds before showing the overlay.
|
|
35
39
|
*/
|
|
@@ -124,6 +128,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
124
128
|
backdropBlur: {
|
|
125
129
|
type: import('vue').PropType<boolean>;
|
|
126
130
|
};
|
|
131
|
+
backdropClass: {
|
|
132
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
133
|
+
default: undefined;
|
|
134
|
+
};
|
|
127
135
|
delay: {
|
|
128
136
|
type: import('vue').PropType<number>;
|
|
129
137
|
default: number;
|
|
@@ -190,6 +198,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
190
198
|
backdropBlur: {
|
|
191
199
|
type: import('vue').PropType<boolean>;
|
|
192
200
|
};
|
|
201
|
+
backdropClass: {
|
|
202
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
203
|
+
default: undefined;
|
|
204
|
+
};
|
|
193
205
|
delay: {
|
|
194
206
|
type: import('vue').PropType<number>;
|
|
195
207
|
default: number;
|
|
@@ -222,6 +234,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
222
234
|
width: "anchor" | "auto";
|
|
223
235
|
appearance: Appearance;
|
|
224
236
|
attach: string;
|
|
237
|
+
backdropClass: string | unknown[];
|
|
225
238
|
delay: number;
|
|
226
239
|
trigger: Trigger;
|
|
227
240
|
}, {}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/QOverlay.vue"],"names":[],"mappings":"AAuCA;AAMC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAMlD,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAA;IAEjB;;;;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,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IAErB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;CAC1B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAufF,wBAAwG;AAUxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -11,6 +11,7 @@ const ce = ["role"], me = /* @__PURE__ */ G({
|
|
|
11
11
|
attach: { default: "body" },
|
|
12
12
|
inline: { type: Boolean },
|
|
13
13
|
backdropBlur: { type: Boolean },
|
|
14
|
+
backdropClass: { default: void 0 },
|
|
14
15
|
delay: { default: 500 },
|
|
15
16
|
nonModal: { type: Boolean },
|
|
16
17
|
scrollLock: { type: Boolean },
|
|
@@ -186,6 +187,7 @@ const ce = ["role"], me = /* @__PURE__ */ G({
|
|
|
186
187
|
{
|
|
187
188
|
key: 0,
|
|
188
189
|
class: V([
|
|
190
|
+
t.backdropClass,
|
|
189
191
|
"q-overlay__underlay",
|
|
190
192
|
{ "q-overlay__underlay--blur": t.backdropBlur }
|
|
191
193
|
])
|
|
@@ -42,6 +42,10 @@ declare const QOverlay: {
|
|
|
42
42
|
backdropBlur: {
|
|
43
43
|
type: import('vue').PropType<boolean>;
|
|
44
44
|
};
|
|
45
|
+
backdropClass: {
|
|
46
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
45
49
|
delay: {
|
|
46
50
|
type: import('vue').PropType<number>;
|
|
47
51
|
default: number;
|
|
@@ -111,6 +115,10 @@ declare const QOverlay: {
|
|
|
111
115
|
backdropBlur: {
|
|
112
116
|
type: import('vue').PropType<boolean>;
|
|
113
117
|
};
|
|
118
|
+
backdropClass: {
|
|
119
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
114
122
|
delay: {
|
|
115
123
|
type: import('vue').PropType<number>;
|
|
116
124
|
default: number;
|
|
@@ -143,6 +151,7 @@ declare const QOverlay: {
|
|
|
143
151
|
width: "anchor" | "auto";
|
|
144
152
|
appearance: import('../../composables/overlay').Appearance;
|
|
145
153
|
attach: string;
|
|
154
|
+
backdropClass: string | unknown[];
|
|
146
155
|
delay: number;
|
|
147
156
|
trigger: import('../../composables/overlay').Trigger;
|
|
148
157
|
}, true, {}, {}, {
|
|
@@ -195,6 +204,10 @@ declare const QOverlay: {
|
|
|
195
204
|
backdropBlur: {
|
|
196
205
|
type: import('vue').PropType<boolean>;
|
|
197
206
|
};
|
|
207
|
+
backdropClass: {
|
|
208
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
198
211
|
delay: {
|
|
199
212
|
type: import('vue').PropType<number>;
|
|
200
213
|
default: number;
|
|
@@ -227,6 +240,7 @@ declare const QOverlay: {
|
|
|
227
240
|
width: "anchor" | "auto";
|
|
228
241
|
appearance: import('../../composables/overlay').Appearance;
|
|
229
242
|
attach: string;
|
|
243
|
+
backdropClass: string | unknown[];
|
|
230
244
|
delay: number;
|
|
231
245
|
trigger: import('../../composables/overlay').Trigger;
|
|
232
246
|
}>;
|
|
@@ -276,6 +290,10 @@ declare const QOverlay: {
|
|
|
276
290
|
backdropBlur: {
|
|
277
291
|
type: import('vue').PropType<boolean>;
|
|
278
292
|
};
|
|
293
|
+
backdropClass: {
|
|
294
|
+
type: import('vue').PropType<string | unknown[]>;
|
|
295
|
+
default: undefined;
|
|
296
|
+
};
|
|
279
297
|
delay: {
|
|
280
298
|
type: import('vue').PropType<number>;
|
|
281
299
|
default: number;
|
|
@@ -311,6 +329,7 @@ declare const QOverlay: {
|
|
|
311
329
|
width: "anchor" | "auto";
|
|
312
330
|
appearance: import('../../composables/overlay').Appearance;
|
|
313
331
|
attach: string;
|
|
332
|
+
backdropClass: string | unknown[];
|
|
314
333
|
delay: number;
|
|
315
334
|
trigger: import('../../composables/overlay').Trigger;
|
|
316
335
|
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QOverlay/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiD,CAAA;AAG/D,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as c, mergeModels as m, useModel as u, openBlock as t, createBlock as h, unref as f, withCtx as y, createElementBlock as l, createTextVNode as _, toDisplayString as d, renderSlot as s, createCommentVNode as i } from "vue";
|
|
2
|
+
import { QOverlay as v } from "../QOverlay/index.js";
|
|
3
|
+
const b = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "q-popover__header"
|
|
6
|
-
},
|
|
6
|
+
}, k = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "q-popover__body"
|
|
9
|
-
},
|
|
9
|
+
}, B = ["innerHTML"], V = { key: 1 }, M = /* @__PURE__ */ c({
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "QPopover",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ m({
|
|
13
13
|
anchor: {},
|
|
14
14
|
arrow: { type: Boolean, default: !0 },
|
|
15
15
|
attach: { default: "body" },
|
|
@@ -24,10 +24,11 @@ const _ = {
|
|
|
24
24
|
modelModifiers: {}
|
|
25
25
|
}),
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
const e =
|
|
29
|
-
return (o,
|
|
30
|
-
|
|
27
|
+
setup(a) {
|
|
28
|
+
const e = a, r = u(a, "modelValue");
|
|
29
|
+
return (o, n) => (t(), h(f(v), {
|
|
30
|
+
modelValue: r.value,
|
|
31
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => r.value = p),
|
|
31
32
|
class: "q-popover",
|
|
32
33
|
trigger: "click",
|
|
33
34
|
anchor: e.anchor,
|
|
@@ -37,32 +38,32 @@ const _ = {
|
|
|
37
38
|
disabled: e.disabled,
|
|
38
39
|
placement: e.placement
|
|
39
40
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
e.title || o.$slots.header ? (t(),
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
default: y(() => [
|
|
42
|
+
e.title || o.$slots.header ? (t(), l("h3", b, [
|
|
43
|
+
_(
|
|
44
|
+
d(e.title) + " ",
|
|
44
45
|
1
|
|
45
46
|
/* TEXT */
|
|
46
47
|
),
|
|
47
|
-
|
|
48
|
-
])) :
|
|
49
|
-
e.text || o.$slots.body ? (t(),
|
|
50
|
-
e.html ? (t(),
|
|
48
|
+
s(o.$slots, "header")
|
|
49
|
+
])) : i("v-if", !0),
|
|
50
|
+
e.text || o.$slots.body ? (t(), l("div", k, [
|
|
51
|
+
e.html ? (t(), l("span", {
|
|
51
52
|
key: 0,
|
|
52
53
|
innerHTML: e.text
|
|
53
|
-
}, null, 8,
|
|
54
|
+
}, null, 8, B)) : (t(), l(
|
|
54
55
|
"span",
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
V,
|
|
57
|
+
d(e.text),
|
|
57
58
|
1
|
|
58
59
|
/* TEXT */
|
|
59
60
|
)),
|
|
60
|
-
|
|
61
|
-
])) :
|
|
61
|
+
s(o.$slots, "body")
|
|
62
|
+
])) : i("v-if", !0)
|
|
62
63
|
]),
|
|
63
64
|
_: 3
|
|
64
65
|
/* FORWARDED */
|
|
65
|
-
}, 8, ["
|
|
66
|
+
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
export {
|
|
@@ -33,10 +33,6 @@ export type QSelectProps = {
|
|
|
33
33
|
* Whether the items of the list are being loaded.
|
|
34
34
|
*/
|
|
35
35
|
loading?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* The icons of the component.
|
|
38
|
-
*/
|
|
39
|
-
icons?: Icons;
|
|
40
36
|
/**
|
|
41
37
|
* The list of available items for selection.
|
|
42
38
|
*/
|
|
@@ -66,21 +62,21 @@ export type QSelectProps = {
|
|
|
66
62
|
* The size category of the input.
|
|
67
63
|
*/
|
|
68
64
|
size?: QFieldSize;
|
|
69
|
-
/**
|
|
70
|
-
* Necessary strings to be used in labels and buttons of the component.
|
|
71
|
-
*/
|
|
72
|
-
texts?: Texts;
|
|
73
65
|
/**
|
|
74
66
|
* Custom set of classes to apply to the component.
|
|
75
67
|
*/
|
|
76
68
|
class?: string | unknown[];
|
|
69
|
+
/**
|
|
70
|
+
* The internal elements of the component
|
|
71
|
+
*/
|
|
72
|
+
internals?: Internals;
|
|
77
73
|
};
|
|
78
|
-
declare const DEFAULT_TEXTS:
|
|
79
|
-
placeholder: string;
|
|
80
|
-
};
|
|
74
|
+
declare const DEFAULT_TEXTS: Record<string, string>;
|
|
81
75
|
declare const DEFAULT_ICONS: Record<string, Icon>;
|
|
82
|
-
type
|
|
83
|
-
|
|
76
|
+
type Internals = {
|
|
77
|
+
icons: typeof DEFAULT_ICONS;
|
|
78
|
+
texts: typeof DEFAULT_TEXTS;
|
|
79
|
+
};
|
|
84
80
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
85
81
|
modelValue: import('vue').PropType<any>;
|
|
86
82
|
size: {
|
|
@@ -104,9 +100,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
104
100
|
required: {
|
|
105
101
|
type: import('vue').PropType<boolean>;
|
|
106
102
|
};
|
|
107
|
-
|
|
108
|
-
type: import('vue').PropType<
|
|
109
|
-
default: () =>
|
|
103
|
+
internals: {
|
|
104
|
+
type: import('vue').PropType<Internals>;
|
|
105
|
+
default: () => {
|
|
106
|
+
icons: Record<string, Icon>;
|
|
107
|
+
texts: Record<string, string>;
|
|
108
|
+
};
|
|
110
109
|
};
|
|
111
110
|
items: {
|
|
112
111
|
type: import('vue').PropType<(Omit<QListItemProps, "label" | "value"> & {
|
|
@@ -142,14 +141,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
142
141
|
type: import('vue').PropType<Primitive>;
|
|
143
142
|
default: undefined;
|
|
144
143
|
};
|
|
145
|
-
texts: {
|
|
146
|
-
type: import('vue').PropType<{
|
|
147
|
-
placeholder: string;
|
|
148
|
-
}>;
|
|
149
|
-
default: () => {
|
|
150
|
-
placeholder: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
144
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
154
145
|
"before-show": () => void;
|
|
155
146
|
"before-hide": () => void;
|
|
@@ -178,9 +169,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
178
169
|
required: {
|
|
179
170
|
type: import('vue').PropType<boolean>;
|
|
180
171
|
};
|
|
181
|
-
|
|
182
|
-
type: import('vue').PropType<
|
|
183
|
-
default: () =>
|
|
172
|
+
internals: {
|
|
173
|
+
type: import('vue').PropType<Internals>;
|
|
174
|
+
default: () => {
|
|
175
|
+
icons: Record<string, Icon>;
|
|
176
|
+
texts: Record<string, string>;
|
|
177
|
+
};
|
|
184
178
|
};
|
|
185
179
|
items: {
|
|
186
180
|
type: import('vue').PropType<(Omit<QListItemProps, "label" | "value"> & {
|
|
@@ -216,14 +210,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
216
210
|
type: import('vue').PropType<Primitive>;
|
|
217
211
|
default: undefined;
|
|
218
212
|
};
|
|
219
|
-
texts: {
|
|
220
|
-
type: import('vue').PropType<{
|
|
221
|
-
placeholder: string;
|
|
222
|
-
}>;
|
|
223
|
-
default: () => {
|
|
224
|
-
placeholder: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
213
|
}>> & {
|
|
228
214
|
"onBefore-show"?: (() => any) | undefined;
|
|
229
215
|
"onBefore-hide"?: (() => any) | undefined;
|
|
@@ -233,7 +219,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
233
219
|
size: QFieldSize;
|
|
234
220
|
class: string | unknown[];
|
|
235
221
|
label: string;
|
|
236
|
-
|
|
222
|
+
internals: Internals;
|
|
237
223
|
groups: (QListItemGroupProps & {
|
|
238
224
|
id: string;
|
|
239
225
|
})[];
|
|
@@ -241,9 +227,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
241
227
|
itemLabel: string;
|
|
242
228
|
id: string;
|
|
243
229
|
emptyValue: Primitive;
|
|
244
|
-
texts: {
|
|
245
|
-
placeholder: string;
|
|
246
|
-
};
|
|
247
230
|
}, {}>, {
|
|
248
231
|
prepend?(_: {}): any;
|
|
249
232
|
append?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAwHA;AAWC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAMlD,MAAM,MAAM,YAAY,GAAG;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,KAAK,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;QAGjD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAClB,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,mBAAmB,GAAG;QAC/B,EAAE,EAAE,MAAM,CAAA;KACV,CAAC,EAAE,CAAA;IAEJ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAKD,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEzC,CAAA;AAGD,QAAA,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAOvC,CAAA;AAGD,KAAK,SAAS,GAAG;IAChB,KAAK,EAAE,OAAO,aAAa,CAAA;IAC3B,KAAK,EAAE,OAAO,aAAa,CAAA;CAC3B,CAAA;;gBAyMU,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAA3B,OAAO,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2VT,GAAG;oBACJ,GAAG;oBACH,GAAG;4BACK,GAAG;;;;;QACZ,GAAG;2BACM,GAAG;;AAxiBxC,wBAylBI;AASJ,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -33,15 +33,14 @@ 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]
|
|
@@ -164,7 +163,7 @@ const ue = {
|
|
|
164
163
|
default: s(() => [
|
|
165
164
|
v(
|
|
166
165
|
n(S),
|
|
167
|
-
C(M(l.icons.clear)),
|
|
166
|
+
C(M(l.internals.icons.clear)),
|
|
168
167
|
null,
|
|
169
168
|
16
|
|
170
169
|
/* FULL_PROPS */
|
|
@@ -185,7 +184,7 @@ const ue = {
|
|
|
185
184
|
default: s(() => [
|
|
186
185
|
v(
|
|
187
186
|
n(S),
|
|
188
|
-
C(M(l.icons.chevron)),
|
|
187
|
+
C(M(l.internals.icons.chevron)),
|
|
189
188
|
null,
|
|
190
189
|
16
|
|
191
190
|
/* FULL_PROPS */
|
|
@@ -202,7 +201,7 @@ const ue = {
|
|
|
202
201
|
{ key: 0 },
|
|
203
202
|
[
|
|
204
203
|
ae(
|
|
205
|
-
O(e.texts.placeholder),
|
|
204
|
+
O(e.internals.texts.placeholder),
|
|
206
205
|
1
|
|
207
206
|
/* TEXT */
|
|
208
207
|
)
|
|
@@ -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),
|