@quidgest/ui 0.15.8 → 0.15.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/dist/ui.esm.js +13 -13
- package/dist/ui.js +6 -6
- package/dist/ui.min.js +7 -7
- package/dist/ui.scss +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +36 -39
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +71 -71
- package/esm/components/QCombobox/index.d.ts +36 -54
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/types.d.ts +4 -9
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +2 -3
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +37 -38
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +24 -24
- package/esm/components/QDropdownMenu/index.d.ts +2 -2
- package/esm/components/QList/QList.d.ts +7 -8
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +46 -46
- package/esm/components/QList/QListItem.vue.js +19 -19
- package/esm/components/QList/index.d.ts +17 -17
- package/esm/components/QList/types.d.ts +3 -4
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.d.ts +3 -4
- package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +7 -7
- package/esm/components/QRadioGroup/index.d.ts +8 -8
- package/esm/components/QSelect/QSelect.d.ts +36 -39
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +49 -49
- package/esm/components/QSelect/index.d.ts +36 -54
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +4 -9
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as D, useModel as H, ref as y, computed as b, watch as X, nextTick as j, createElementBlock as f, openBlock as t, Fragment as
|
|
1
|
+
import { defineComponent as P, mergeModels as D, useModel as H, ref as y, computed as b, watch as X, nextTick as j, createElementBlock as f, openBlock as t, Fragment as z, createVNode as k, unref as n, mergeProps as A, withModifiers as F, createSlots as G, withCtx as i, toDisplayString as O, createCommentVNode as g, createTextVNode as J, renderSlot as r, createBlock as h, normalizeProps as W, createElementVNode as Y } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as Z, DEFAULT_ICONS as ee } from "./types.js";
|
|
3
3
|
import { QButton as le } from "../QButton/index.js";
|
|
4
4
|
import { QField as oe } from "../QField/index.js";
|
|
@@ -7,8 +7,8 @@ import { QList as te } from "../QList/index.js";
|
|
|
7
7
|
import { QOverlay as ne } from "../QOverlay/index.js";
|
|
8
8
|
import { QSpinnerLoader as ie } from "../QSpinnerLoader/index.js";
|
|
9
9
|
import { QChevron as se } from "../__internal__/QChevron/index.js";
|
|
10
|
-
import { QClearButton as
|
|
11
|
-
const
|
|
10
|
+
import { QClearButton as de } from "../__internal__/QClearButton/index.js";
|
|
11
|
+
const re = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "q-select__value"
|
|
14
14
|
}, ue = {
|
|
@@ -36,21 +36,21 @@ const de = {
|
|
|
36
36
|
itemLabel: { default: "label" },
|
|
37
37
|
clearable: { type: Boolean },
|
|
38
38
|
loading: { type: Boolean },
|
|
39
|
-
emptyValue: {
|
|
39
|
+
emptyValue: {},
|
|
40
40
|
icons: { default: () => ee },
|
|
41
41
|
texts: { default: () => Z }
|
|
42
42
|
}, {
|
|
43
|
-
modelValue: {
|
|
43
|
+
modelValue: {},
|
|
44
44
|
modelModifiers: {}
|
|
45
45
|
}),
|
|
46
46
|
emits: /* @__PURE__ */ D(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
47
|
-
setup(q, { emit:
|
|
48
|
-
const e = q, m =
|
|
47
|
+
setup(q, { emit: R }) {
|
|
48
|
+
const e = q, m = R, p = H(q, "modelValue"), o = y(!1), v = y(null), x = y(null), _ = y(null), M = b(() => s.value === void 0), s = b(
|
|
49
49
|
() => {
|
|
50
50
|
var l;
|
|
51
51
|
return (l = e.items) == null ? void 0 : l.find((a) => a[e.itemValue] === p.value);
|
|
52
52
|
}
|
|
53
|
-
),
|
|
53
|
+
), N = b(
|
|
54
54
|
() => s.value ? s.value[e.itemLabel] : ""
|
|
55
55
|
), w = b(
|
|
56
56
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
@@ -59,51 +59,51 @@ const de = {
|
|
|
59
59
|
p.value = l, E();
|
|
60
60
|
}
|
|
61
61
|
function V() {
|
|
62
|
-
w.value && (B(e.emptyValue),
|
|
62
|
+
w.value && (B(e.emptyValue), Q());
|
|
63
63
|
}
|
|
64
64
|
function U(l) {
|
|
65
65
|
var a, u, c;
|
|
66
66
|
!((a = _.value) != null && a.contains(l.relatedTarget)) && !((c = (u = v.value) == null ? void 0 : u.fieldRef) != null && c.contains(l.relatedTarget)) && E();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L() {
|
|
69
69
|
o.value || (m("before-show"), o.value = !0);
|
|
70
70
|
}
|
|
71
71
|
function E() {
|
|
72
72
|
o.value && (m("before-hide"), o.value = !1);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
e.readonly || e.disabled || (o.value ? E() :
|
|
74
|
+
function $() {
|
|
75
|
+
e.readonly || e.disabled || (o.value ? E() : L());
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) &&
|
|
77
|
+
function C(l) {
|
|
78
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && L(), ["Escape", "Tab"].includes(l.key) && (o.value ? o.value = !1 : w.value && l.key === "Escape" && V()), l.key === "Delete" && e.clearable && V());
|
|
79
79
|
}
|
|
80
80
|
function I() {
|
|
81
81
|
var l;
|
|
82
|
-
e.loading ? (l = _.value) == null || l.focus() :
|
|
82
|
+
e.loading ? (l = _.value) == null || l.focus() : T(), m("show");
|
|
83
83
|
}
|
|
84
84
|
function K() {
|
|
85
|
-
|
|
85
|
+
Q(), m("hide");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Q() {
|
|
88
88
|
var l, a;
|
|
89
89
|
(a = (l = v.value) == null ? void 0 : l.fieldRef) == null || a.focus();
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function T() {
|
|
92
92
|
var l;
|
|
93
93
|
(l = x.value) == null || l.$el.focus();
|
|
94
94
|
}
|
|
95
95
|
return X(
|
|
96
96
|
() => e.loading,
|
|
97
97
|
(l) => {
|
|
98
|
-
!l && o.value && j(
|
|
98
|
+
!l && o.value && j(T);
|
|
99
99
|
}
|
|
100
100
|
), (l, a) => {
|
|
101
101
|
var u, c;
|
|
102
102
|
return t(), f(
|
|
103
|
-
|
|
103
|
+
z,
|
|
104
104
|
null,
|
|
105
105
|
[
|
|
106
|
-
|
|
106
|
+
k(n(oe), A({
|
|
107
107
|
id: e.id,
|
|
108
108
|
ref_key: "triggerEl",
|
|
109
109
|
ref: v,
|
|
@@ -127,18 +127,18 @@ const de = {
|
|
|
127
127
|
size: e.size,
|
|
128
128
|
invalid: e.invalid
|
|
129
129
|
}, l.$attrs, {
|
|
130
|
-
onClick:
|
|
131
|
-
onKeydown:
|
|
130
|
+
onClick: $,
|
|
131
|
+
onKeydown: F(C, ["stop"])
|
|
132
132
|
}), G({
|
|
133
133
|
append: i(() => [
|
|
134
|
-
|
|
135
|
-
w.value && p.value ? (t(), h(n(
|
|
134
|
+
r(l.$slots, "append"),
|
|
135
|
+
w.value && p.value ? (t(), h(n(de), {
|
|
136
136
|
key: 0,
|
|
137
137
|
icons: e.icons,
|
|
138
138
|
texts: e.texts,
|
|
139
139
|
onClick: V
|
|
140
|
-
}, null, 8, ["icons", "texts"])) :
|
|
141
|
-
e.readonly ?
|
|
140
|
+
}, null, 8, ["icons", "texts"])) : g("v-if", !0),
|
|
141
|
+
e.readonly ? g("v-if", !0) : (t(), h(n(le), {
|
|
142
142
|
key: 1,
|
|
143
143
|
class: "q-select__chevron",
|
|
144
144
|
"aria-label": e.texts.showOptions,
|
|
@@ -147,10 +147,10 @@ const de = {
|
|
|
147
147
|
borderless: "",
|
|
148
148
|
tabindex: "-1",
|
|
149
149
|
disabled: e.disabled,
|
|
150
|
-
onClick:
|
|
150
|
+
onClick: $
|
|
151
151
|
}, {
|
|
152
152
|
default: i(() => [
|
|
153
|
-
|
|
153
|
+
k(n(se), {
|
|
154
154
|
"model-value": o.value,
|
|
155
155
|
icons: e.icons
|
|
156
156
|
}, null, 8, ["model-value", "icons"])
|
|
@@ -160,24 +160,24 @@ const de = {
|
|
|
160
160
|
}, 8, ["aria-label", "disabled"]))
|
|
161
161
|
]),
|
|
162
162
|
default: i(() => [
|
|
163
|
-
|
|
163
|
+
M.value ? (t(), f("span", ue, [
|
|
164
164
|
!e.readonly && !e.disabled ? (t(), f(
|
|
165
|
-
|
|
165
|
+
z,
|
|
166
166
|
{ key: 0 },
|
|
167
167
|
[
|
|
168
168
|
J(
|
|
169
|
-
|
|
169
|
+
O(e.texts.placeholder),
|
|
170
170
|
1
|
|
171
171
|
/* TEXT */
|
|
172
172
|
)
|
|
173
173
|
],
|
|
174
174
|
64
|
|
175
175
|
/* STABLE_FRAGMENT */
|
|
176
|
-
)) :
|
|
176
|
+
)) : g("v-if", !0)
|
|
177
177
|
])) : (t(), f(
|
|
178
178
|
"span",
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
re,
|
|
180
|
+
O(N.value),
|
|
181
181
|
1
|
|
182
182
|
/* TEXT */
|
|
183
183
|
))
|
|
@@ -188,16 +188,16 @@ const de = {
|
|
|
188
188
|
(u = s.value) != null && u.icon || l.$slots.prepend ? {
|
|
189
189
|
name: "prepend",
|
|
190
190
|
fn: i(() => {
|
|
191
|
-
var
|
|
191
|
+
var d, S;
|
|
192
192
|
return [
|
|
193
|
-
|
|
194
|
-
(
|
|
193
|
+
r(l.$slots, "prepend"),
|
|
194
|
+
(d = s.value) != null && d.icon ? (t(), h(
|
|
195
195
|
n(ae),
|
|
196
|
-
W(
|
|
196
|
+
W(A({ key: 0 }, (S = s.value) == null ? void 0 : S.icon)),
|
|
197
197
|
null,
|
|
198
198
|
16
|
|
199
199
|
/* FULL_PROPS */
|
|
200
|
-
)) :
|
|
200
|
+
)) : g("v-if", !0)
|
|
201
201
|
];
|
|
202
202
|
}),
|
|
203
203
|
key: "0"
|
|
@@ -205,14 +205,14 @@ const de = {
|
|
|
205
205
|
l.$slots.extras ? {
|
|
206
206
|
name: "extras",
|
|
207
207
|
fn: i(() => [
|
|
208
|
-
|
|
208
|
+
r(l.$slots, "extras")
|
|
209
209
|
]),
|
|
210
210
|
key: "1"
|
|
211
211
|
} : void 0
|
|
212
212
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
213
|
-
|
|
213
|
+
k(n(ne), {
|
|
214
214
|
modelValue: o.value,
|
|
215
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
215
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
|
|
216
216
|
spy: "",
|
|
217
217
|
trigger: "manual",
|
|
218
218
|
placement: "bottom-start",
|
|
@@ -232,11 +232,11 @@ const de = {
|
|
|
232
232
|
class: "q-select__body",
|
|
233
233
|
tabindex: "-1",
|
|
234
234
|
onFocusout: U,
|
|
235
|
-
onKeydown:
|
|
235
|
+
onKeydown: F(C, ["stop"])
|
|
236
236
|
}, [
|
|
237
|
-
|
|
237
|
+
r(l.$slots, "body.prepend"),
|
|
238
238
|
e.loading ? (t(), f("div", fe, [
|
|
239
|
-
|
|
239
|
+
k(n(ie), { size: 24 })
|
|
240
240
|
])) : (t(), h(n(te), {
|
|
241
241
|
key: 1,
|
|
242
242
|
ref_key: "listRef",
|
|
@@ -250,13 +250,13 @@ const de = {
|
|
|
250
250
|
"item-value": e.itemValue,
|
|
251
251
|
"onUpdate:modelValue": B
|
|
252
252
|
}, {
|
|
253
|
-
item: i(({ item:
|
|
254
|
-
|
|
253
|
+
item: i(({ item: d }) => [
|
|
254
|
+
r(l.$slots, "item", { item: d })
|
|
255
255
|
]),
|
|
256
256
|
_: 3
|
|
257
257
|
/* FORWARDED */
|
|
258
258
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
259
|
-
|
|
259
|
+
r(l.$slots, "body.append")
|
|
260
260
|
], 40, ce)
|
|
261
261
|
]),
|
|
262
262
|
_: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const QSelect: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
-
modelValue?:
|
|
3
|
+
modelValue?: any;
|
|
4
4
|
} & import('../../types/component').QBaseComponentProps & {
|
|
5
5
|
label?: string;
|
|
6
6
|
for?: string;
|
|
@@ -12,27 +12,23 @@ declare const QSelect: {
|
|
|
12
12
|
required?: boolean;
|
|
13
13
|
invalid?: boolean;
|
|
14
14
|
} & {
|
|
15
|
-
items?:
|
|
16
|
-
|
|
17
|
-
})[];
|
|
18
|
-
groups?: (import('..').QListItemGroupProps & {
|
|
19
|
-
id: string;
|
|
20
|
-
})[];
|
|
15
|
+
items?: import('../QList/types').Item[];
|
|
16
|
+
groups?: import('../QList/types').Group[];
|
|
21
17
|
itemValue?: string;
|
|
22
18
|
itemLabel?: string;
|
|
23
19
|
clearable?: boolean;
|
|
24
20
|
loading?: boolean;
|
|
25
|
-
emptyValue?:
|
|
21
|
+
emptyValue?: any;
|
|
26
22
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
27
23
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
28
24
|
}> & Readonly<{
|
|
29
|
-
"onUpdate:modelValue"?: ((value:
|
|
25
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
30
26
|
"onBefore-show"?: (() => any) | undefined;
|
|
31
27
|
"onBefore-hide"?: (() => any) | undefined;
|
|
32
28
|
onShow?: (() => any) | undefined;
|
|
33
29
|
onHide?: (() => any) | undefined;
|
|
34
30
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
-
"update:modelValue": (value:
|
|
31
|
+
"update:modelValue": (value: any) => any;
|
|
36
32
|
} & {
|
|
37
33
|
"before-show": () => any;
|
|
38
34
|
"before-hide": () => any;
|
|
@@ -41,9 +37,7 @@ declare const QSelect: {
|
|
|
41
37
|
}, import('vue').PublicProps, {
|
|
42
38
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
43
39
|
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
44
|
-
groups:
|
|
45
|
-
id: string;
|
|
46
|
-
})[];
|
|
40
|
+
groups: import('../QList/types').Group[];
|
|
47
41
|
itemValue: string;
|
|
48
42
|
itemLabel: string;
|
|
49
43
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -121,18 +115,18 @@ declare const QSelect: {
|
|
|
121
115
|
$: import('vue').ComponentInternalInstance;
|
|
122
116
|
$data: {};
|
|
123
117
|
$props: {
|
|
124
|
-
readonly modelValue?:
|
|
118
|
+
readonly modelValue?: any;
|
|
125
119
|
readonly id?: string | undefined;
|
|
126
120
|
readonly class?: string | unknown[] | undefined;
|
|
127
|
-
readonly highlighted?:
|
|
121
|
+
readonly highlighted?: any;
|
|
128
122
|
readonly items?: import('../QList/types').Item[] | undefined;
|
|
129
123
|
readonly groups?: import('../QList/types').Group[] | undefined;
|
|
130
124
|
readonly itemValue?: string | undefined;
|
|
131
125
|
readonly itemLabel?: string | undefined;
|
|
132
126
|
readonly disabled?: boolean | undefined;
|
|
133
127
|
readonly selectable?: boolean | undefined;
|
|
134
|
-
readonly "onUpdate:modelValue"?: ((value:
|
|
135
|
-
readonly onClick?: ((key:
|
|
128
|
+
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
129
|
+
readonly onClick?: ((key: any) => any) | undefined;
|
|
136
130
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
137
131
|
$attrs: {
|
|
138
132
|
[x: string]: unknown;
|
|
@@ -146,7 +140,7 @@ declare const QSelect: {
|
|
|
146
140
|
$data: {};
|
|
147
141
|
$props: {
|
|
148
142
|
readonly modelValue?: boolean | undefined;
|
|
149
|
-
readonly value:
|
|
143
|
+
readonly value: any;
|
|
150
144
|
readonly label: string;
|
|
151
145
|
readonly icon?: import('..').Icon | undefined;
|
|
152
146
|
readonly selectable?: boolean | undefined;
|
|
@@ -223,12 +217,12 @@ declare const QSelect: {
|
|
|
223
217
|
$root: import('vue').ComponentPublicInstance | null;
|
|
224
218
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
225
219
|
$host: Element | null;
|
|
226
|
-
$emit: ((event: "update:modelValue", value:
|
|
220
|
+
$emit: ((event: "update:modelValue", value: any) => void) & ((event: "click", key: any) => void);
|
|
227
221
|
$el: any;
|
|
228
222
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
229
|
-
modelValue?:
|
|
223
|
+
modelValue?: any;
|
|
230
224
|
} & import('../../types/component').QBaseComponentProps & {
|
|
231
|
-
highlighted?:
|
|
225
|
+
highlighted?: any;
|
|
232
226
|
items?: import('../QList/types').Item[];
|
|
233
227
|
groups?: import('../QList/types').Group[];
|
|
234
228
|
itemValue?: string;
|
|
@@ -236,17 +230,17 @@ declare const QSelect: {
|
|
|
236
230
|
disabled?: boolean;
|
|
237
231
|
selectable?: boolean;
|
|
238
232
|
}> & Readonly<{
|
|
239
|
-
"onUpdate:modelValue"?: ((value:
|
|
240
|
-
onClick?: ((key:
|
|
233
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
234
|
+
onClick?: ((key: any) => any) | undefined;
|
|
241
235
|
}>, {
|
|
242
236
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
243
237
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
244
238
|
getFirstFocusableItemIndex: () => number;
|
|
245
239
|
getLastFocusableItemIndex: () => number;
|
|
246
240
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
247
|
-
"update:modelValue": (value:
|
|
241
|
+
"update:modelValue": (value: any) => any;
|
|
248
242
|
} & {
|
|
249
|
-
click: (key:
|
|
243
|
+
click: (key: any) => any;
|
|
250
244
|
}, string, {
|
|
251
245
|
groups: import('../QList/types').Group[];
|
|
252
246
|
itemValue: string;
|
|
@@ -276,9 +270,9 @@ declare const QSelect: {
|
|
|
276
270
|
itemValue: string;
|
|
277
271
|
itemLabel: string;
|
|
278
272
|
}> & Omit<Readonly<{
|
|
279
|
-
modelValue?:
|
|
273
|
+
modelValue?: any;
|
|
280
274
|
} & import('../../types/component').QBaseComponentProps & {
|
|
281
|
-
highlighted?:
|
|
275
|
+
highlighted?: any;
|
|
282
276
|
items?: import('../QList/types').Item[];
|
|
283
277
|
groups?: import('../QList/types').Group[];
|
|
284
278
|
itemValue?: string;
|
|
@@ -286,8 +280,8 @@ declare const QSelect: {
|
|
|
286
280
|
disabled?: boolean;
|
|
287
281
|
selectable?: boolean;
|
|
288
282
|
}> & Readonly<{
|
|
289
|
-
"onUpdate:modelValue"?: ((value:
|
|
290
|
-
onClick?: ((key:
|
|
283
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
284
|
+
onClick?: ((key: any) => any) | undefined;
|
|
291
285
|
}>, "getItem" | "getAdjacentItemIndex" | "getFirstFocusableItemIndex" | "getLastFocusableItemIndex" | ("groups" | "itemValue" | "itemLabel")> & import('vue').ShallowUnwrapRef<{
|
|
292
286
|
getItem: (idx: number) => HTMLElement | undefined;
|
|
293
287
|
getAdjacentItemIndex: (idx: number, direction: "next" | "prev") => number;
|
|
@@ -313,7 +307,7 @@ declare const QSelect: {
|
|
|
313
307
|
M: {};
|
|
314
308
|
Defaults: {};
|
|
315
309
|
}, Readonly<{
|
|
316
|
-
modelValue?:
|
|
310
|
+
modelValue?: any;
|
|
317
311
|
} & import('../../types/component').QBaseComponentProps & {
|
|
318
312
|
label?: string;
|
|
319
313
|
for?: string;
|
|
@@ -325,21 +319,17 @@ declare const QSelect: {
|
|
|
325
319
|
required?: boolean;
|
|
326
320
|
invalid?: boolean;
|
|
327
321
|
} & {
|
|
328
|
-
items?:
|
|
329
|
-
|
|
330
|
-
})[];
|
|
331
|
-
groups?: (import('..').QListItemGroupProps & {
|
|
332
|
-
id: string;
|
|
333
|
-
})[];
|
|
322
|
+
items?: import('../QList/types').Item[];
|
|
323
|
+
groups?: import('../QList/types').Group[];
|
|
334
324
|
itemValue?: string;
|
|
335
325
|
itemLabel?: string;
|
|
336
326
|
clearable?: boolean;
|
|
337
327
|
loading?: boolean;
|
|
338
|
-
emptyValue?:
|
|
328
|
+
emptyValue?: any;
|
|
339
329
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
340
330
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
341
331
|
}> & Readonly<{
|
|
342
|
-
"onUpdate:modelValue"?: ((value:
|
|
332
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
343
333
|
"onBefore-show"?: (() => any) | undefined;
|
|
344
334
|
"onBefore-hide"?: (() => any) | undefined;
|
|
345
335
|
onShow?: (() => any) | undefined;
|
|
@@ -347,9 +337,7 @@ declare const QSelect: {
|
|
|
347
337
|
}>, {}, {}, {}, {}, {
|
|
348
338
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
349
339
|
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
350
|
-
groups:
|
|
351
|
-
id: string;
|
|
352
|
-
})[];
|
|
340
|
+
groups: import('../QList/types').Group[];
|
|
353
341
|
itemValue: string;
|
|
354
342
|
itemLabel: string;
|
|
355
343
|
}>;
|
|
@@ -357,7 +345,7 @@ declare const QSelect: {
|
|
|
357
345
|
__isTeleport?: never;
|
|
358
346
|
__isSuspense?: never;
|
|
359
347
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
360
|
-
modelValue?:
|
|
348
|
+
modelValue?: any;
|
|
361
349
|
} & import('../../types/component').QBaseComponentProps & {
|
|
362
350
|
label?: string;
|
|
363
351
|
for?: string;
|
|
@@ -369,27 +357,23 @@ declare const QSelect: {
|
|
|
369
357
|
required?: boolean;
|
|
370
358
|
invalid?: boolean;
|
|
371
359
|
} & {
|
|
372
|
-
items?:
|
|
373
|
-
|
|
374
|
-
})[];
|
|
375
|
-
groups?: (import('..').QListItemGroupProps & {
|
|
376
|
-
id: string;
|
|
377
|
-
})[];
|
|
360
|
+
items?: import('../QList/types').Item[];
|
|
361
|
+
groups?: import('../QList/types').Group[];
|
|
378
362
|
itemValue?: string;
|
|
379
363
|
itemLabel?: string;
|
|
380
364
|
clearable?: boolean;
|
|
381
365
|
loading?: boolean;
|
|
382
|
-
emptyValue?:
|
|
366
|
+
emptyValue?: any;
|
|
383
367
|
icons?: typeof import('./types').DEFAULT_ICONS;
|
|
384
368
|
texts?: typeof import('./types').DEFAULT_TEXTS;
|
|
385
369
|
}> & Readonly<{
|
|
386
|
-
"onUpdate:modelValue"?: ((value:
|
|
370
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
387
371
|
"onBefore-show"?: (() => any) | undefined;
|
|
388
372
|
"onBefore-hide"?: (() => any) | undefined;
|
|
389
373
|
onShow?: (() => any) | undefined;
|
|
390
374
|
onHide?: (() => any) | undefined;
|
|
391
375
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
392
|
-
"update:modelValue": (value:
|
|
376
|
+
"update:modelValue": (value: any) => any;
|
|
393
377
|
} & {
|
|
394
378
|
"before-show": () => any;
|
|
395
379
|
"before-hide": () => any;
|
|
@@ -398,9 +382,7 @@ declare const QSelect: {
|
|
|
398
382
|
}, string, {
|
|
399
383
|
icons: typeof import('./types').DEFAULT_ICONS;
|
|
400
384
|
texts: typeof import('./types').DEFAULT_TEXTS;
|
|
401
|
-
groups:
|
|
402
|
-
id: string;
|
|
403
|
-
})[];
|
|
385
|
+
groups: import('../QList/types').Group[];
|
|
404
386
|
itemValue: string;
|
|
405
387
|
itemLabel: string;
|
|
406
388
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAIuwzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJj2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { QFieldProps } from '../QField';
|
|
2
|
-
import {
|
|
3
|
-
import { Primitive } from '../../types/primitive';
|
|
2
|
+
import { Group, Item } from '../QList/types';
|
|
4
3
|
export type QSelectProps = QFieldProps & {
|
|
5
4
|
/**
|
|
6
5
|
* The list of available items for selection.
|
|
7
6
|
*/
|
|
8
|
-
items?:
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
})[];
|
|
7
|
+
items?: Item[];
|
|
11
8
|
/**
|
|
12
9
|
* The item groups used for organizing the available items.
|
|
13
10
|
*/
|
|
14
|
-
groups?:
|
|
15
|
-
id: string;
|
|
16
|
-
})[];
|
|
11
|
+
groups?: Group[];
|
|
17
12
|
/**
|
|
18
13
|
* Property on each item that contains its value.
|
|
19
14
|
*/
|
|
@@ -34,7 +29,7 @@ export type QSelectProps = QFieldProps & {
|
|
|
34
29
|
* The value to be used in comparisons,
|
|
35
30
|
* used to check if the field has a selected item.
|
|
36
31
|
*/
|
|
37
|
-
emptyValue?:
|
|
32
|
+
emptyValue?: any;
|
|
38
33
|
/**
|
|
39
34
|
* Custom icon configurations.
|
|
40
35
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IAEH,UAAU,CAAC,EAAE,GAAG,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,aAAa,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,aAAa;;;;CAIQ,CAAA;AAGlC,eAAO,MAAM,aAAa;;;;;;;CAGM,CAAA"}
|