@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,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QOverlay as
|
|
3
|
-
import { QButton as
|
|
1
|
+
import { defineComponent as T, mergeModels as D, useModel as L, computed as N, openBlock as o, createBlock as a, unref as t, withCtx as d, createElementVNode as i, normalizeClass as V, toDisplayString as y, createVNode as k, normalizeProps as h, guardReactiveProps as v, createCommentVNode as r, renderSlot as u, createElementBlock as n, Fragment as E, renderList as M, mergeProps as b } from "vue";
|
|
2
|
+
import { QOverlay as O } from "../QOverlay/index.js";
|
|
3
|
+
import { QButton as g } from "../QButton/index.js";
|
|
4
4
|
import { QIcon as p } from "../QIcon/index.js";
|
|
5
|
-
import { useId as
|
|
6
|
-
const x = { class: "q-
|
|
5
|
+
import { useId as S } from "../../composables/uid.js";
|
|
6
|
+
const x = { class: "q-dialog__header" }, A = { class: "q-dialog__header-title" }, F = { class: "q-dialog__body" }, I = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "q-dialog__body-icon"
|
|
9
|
-
},
|
|
9
|
+
}, Q = { class: "q-dialog__body-text" }, U = ["innerHTML"], P = { key: 1 }, $ = { class: "q-dialog__body-actions" }, z = [
|
|
10
10
|
{
|
|
11
11
|
id: "button",
|
|
12
12
|
icon: {
|
|
@@ -17,124 +17,143 @@ const x = { class: "q-dialog" }, E = { class: "q-dialog__header" }, O = { class:
|
|
|
17
17
|
label: "Ok"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
],
|
|
21
|
-
icon: "check-circle-outline"
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
], H = {
|
|
21
|
+
icon: "check-circle-outline"
|
|
22
|
+
}, w = {
|
|
23
|
+
close: {
|
|
24
|
+
icon: "close"
|
|
25
|
+
}
|
|
26
|
+
}, W = /* @__PURE__ */ T({
|
|
24
27
|
__name: "QDialog",
|
|
25
|
-
props: /* @__PURE__ */
|
|
28
|
+
props: /* @__PURE__ */ D({
|
|
26
29
|
text: { default: "" },
|
|
27
30
|
attach: { default: "body" },
|
|
28
31
|
inline: { type: Boolean },
|
|
29
32
|
backdropBlur: { type: Boolean, default: !0 },
|
|
30
|
-
buttons: { default: () =>
|
|
31
|
-
dismissible: { type: Boolean
|
|
33
|
+
buttons: { default: () => z },
|
|
34
|
+
dismissible: { type: Boolean },
|
|
32
35
|
html: { type: Boolean, default: !0 },
|
|
33
|
-
icon: { default: () =>
|
|
36
|
+
icon: { default: () => H },
|
|
34
37
|
id: { default: void 0 },
|
|
35
38
|
title: { default: "" },
|
|
36
|
-
class: { default: void 0 }
|
|
39
|
+
class: { default: void 0 },
|
|
40
|
+
internals: { default: () => ({ icons: w }) }
|
|
37
41
|
}, {
|
|
38
42
|
modelValue: { type: Boolean },
|
|
39
43
|
modelModifiers: {}
|
|
40
44
|
}),
|
|
41
45
|
emits: ["update:modelValue"],
|
|
42
46
|
setup(_) {
|
|
43
|
-
const e = _,
|
|
44
|
-
function
|
|
45
|
-
|
|
47
|
+
const e = _, m = L(_, "modelValue"), B = S(e.id), C = N(() => ["q-dialog", e.class]);
|
|
48
|
+
function f() {
|
|
49
|
+
m.value = !1;
|
|
46
50
|
}
|
|
47
|
-
function
|
|
48
|
-
var
|
|
49
|
-
(
|
|
51
|
+
function q(l) {
|
|
52
|
+
var c;
|
|
53
|
+
(c = l.action) == null || c.call(l), f();
|
|
50
54
|
}
|
|
51
|
-
return (
|
|
52
|
-
"model-value":
|
|
53
|
-
id:
|
|
55
|
+
return (l, c) => (o(), a(t(O), {
|
|
56
|
+
"model-value": m.value,
|
|
57
|
+
id: t(B),
|
|
54
58
|
inline: e.inline,
|
|
55
59
|
attach: e.attach,
|
|
56
60
|
"backdrop-blur": e.backdropBlur,
|
|
61
|
+
"backdrop-class": "q-dialog__underlay",
|
|
57
62
|
"scroll-lock": "",
|
|
58
63
|
persistent: ""
|
|
59
64
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
i(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
u(t.$slots, "body.icon", {}, () => [
|
|
85
|
-
e.icon ? (o(), n("span", S, [
|
|
86
|
-
h(
|
|
87
|
-
l(p),
|
|
88
|
-
T(V(e.icon)),
|
|
65
|
+
default: d(() => [
|
|
66
|
+
i(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
class: V(C.value)
|
|
70
|
+
},
|
|
71
|
+
[
|
|
72
|
+
i("div", x, [
|
|
73
|
+
i(
|
|
74
|
+
"span",
|
|
75
|
+
A,
|
|
76
|
+
y(e.title),
|
|
77
|
+
1
|
|
78
|
+
/* TEXT */
|
|
79
|
+
),
|
|
80
|
+
e.dismissible ? (o(), a(t(g), {
|
|
81
|
+
key: 0,
|
|
82
|
+
"b-style": "tertiary",
|
|
83
|
+
onClick: f
|
|
84
|
+
}, {
|
|
85
|
+
default: d(() => [
|
|
86
|
+
k(
|
|
87
|
+
t(p),
|
|
88
|
+
h(v(e.internals.icons.close)),
|
|
89
89
|
null,
|
|
90
90
|
16
|
|
91
91
|
/* FULL_PROPS */
|
|
92
92
|
)
|
|
93
|
-
])) : r("v-if", !0)
|
|
94
|
-
]),
|
|
95
|
-
i("div", A, [
|
|
96
|
-
e.html ? (o(), n("span", {
|
|
97
|
-
key: 0,
|
|
98
|
-
innerHTML: e.text
|
|
99
|
-
}, null, 8, F)) : (o(), n(
|
|
100
|
-
"span",
|
|
101
|
-
I,
|
|
102
|
-
y(e.text),
|
|
103
|
-
1
|
|
104
|
-
/* TEXT */
|
|
105
|
-
))
|
|
106
|
-
]),
|
|
107
|
-
u(t.$slots, "body.append")
|
|
108
|
-
])
|
|
109
|
-
]),
|
|
110
|
-
i("div", P, [
|
|
111
|
-
(o(!0), n(
|
|
112
|
-
D,
|
|
113
|
-
null,
|
|
114
|
-
L(e.buttons, (a) => (o(), s(l(v), k({ ref_for: !0 }, a.props, {
|
|
115
|
-
key: a.id,
|
|
116
|
-
onClick: () => b(a)
|
|
117
|
-
}), {
|
|
118
|
-
default: c(() => [
|
|
119
|
-
a.icon ? (o(), s(
|
|
120
|
-
l(p),
|
|
121
|
-
k({
|
|
122
|
-
key: 0,
|
|
123
|
-
ref_for: !0
|
|
124
|
-
}, a.icon),
|
|
125
|
-
null,
|
|
126
|
-
16
|
|
127
|
-
/* FULL_PROPS */
|
|
128
|
-
)) : r("v-if", !0)
|
|
129
93
|
]),
|
|
130
|
-
_:
|
|
131
|
-
/*
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
94
|
+
_: 1
|
|
95
|
+
/* STABLE */
|
|
96
|
+
})) : r("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
u(l.$slots, "body.content", {}, () => [
|
|
99
|
+
i("div", F, [
|
|
100
|
+
u(l.$slots, "body.icon", {}, () => [
|
|
101
|
+
e.icon ? (o(), n("span", I, [
|
|
102
|
+
k(
|
|
103
|
+
t(p),
|
|
104
|
+
h(v(e.icon)),
|
|
105
|
+
null,
|
|
106
|
+
16
|
|
107
|
+
/* FULL_PROPS */
|
|
108
|
+
)
|
|
109
|
+
])) : r("v-if", !0)
|
|
110
|
+
]),
|
|
111
|
+
i("div", Q, [
|
|
112
|
+
e.html ? (o(), n("span", {
|
|
113
|
+
key: 0,
|
|
114
|
+
innerHTML: e.text
|
|
115
|
+
}, null, 8, U)) : (o(), n(
|
|
116
|
+
"span",
|
|
117
|
+
P,
|
|
118
|
+
y(e.text),
|
|
119
|
+
1
|
|
120
|
+
/* TEXT */
|
|
121
|
+
))
|
|
122
|
+
]),
|
|
123
|
+
u(l.$slots, "body.append")
|
|
124
|
+
])
|
|
125
|
+
]),
|
|
126
|
+
i("div", $, [
|
|
127
|
+
(o(!0), n(
|
|
128
|
+
E,
|
|
129
|
+
null,
|
|
130
|
+
M(e.buttons, (s) => (o(), a(t(g), b({ ref_for: !0 }, s.props, {
|
|
131
|
+
key: s.id,
|
|
132
|
+
onClick: () => q(s)
|
|
133
|
+
}), {
|
|
134
|
+
default: d(() => [
|
|
135
|
+
s.icon ? (o(), a(
|
|
136
|
+
t(p),
|
|
137
|
+
b({
|
|
138
|
+
key: 0,
|
|
139
|
+
ref_for: !0
|
|
140
|
+
}, s.icon),
|
|
141
|
+
null,
|
|
142
|
+
16
|
|
143
|
+
/* FULL_PROPS */
|
|
144
|
+
)) : r("v-if", !0)
|
|
145
|
+
]),
|
|
146
|
+
_: 2
|
|
147
|
+
/* DYNAMIC */
|
|
148
|
+
}, 1040, ["onClick"]))),
|
|
149
|
+
128
|
|
150
|
+
/* KEYED_FRAGMENT */
|
|
151
|
+
))
|
|
152
|
+
])
|
|
153
|
+
],
|
|
154
|
+
2
|
|
155
|
+
/* CLASS */
|
|
156
|
+
)
|
|
138
157
|
]),
|
|
139
158
|
_: 3
|
|
140
159
|
/* FORWARDED */
|
|
@@ -142,5 +161,5 @@ const x = { class: "q-dialog" }, E = { class: "q-dialog__header" }, O = { class:
|
|
|
142
161
|
}
|
|
143
162
|
});
|
|
144
163
|
export {
|
|
145
|
-
|
|
164
|
+
W as default
|
|
146
165
|
};
|
|
@@ -23,6 +23,14 @@ declare const QDialog: {
|
|
|
23
23
|
type: import('vue').PropType<import('..').Icon>;
|
|
24
24
|
default: () => import('..').Icon;
|
|
25
25
|
};
|
|
26
|
+
internals: {
|
|
27
|
+
type: import('vue').PropType<{
|
|
28
|
+
icons: Record<string, import('..').Icon>;
|
|
29
|
+
}>;
|
|
30
|
+
default: () => {
|
|
31
|
+
icons: Record<string, import('..').Icon>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
26
34
|
id: {
|
|
27
35
|
type: import('vue').PropType<string>;
|
|
28
36
|
default: undefined;
|
|
@@ -44,7 +52,6 @@ declare const QDialog: {
|
|
|
44
52
|
};
|
|
45
53
|
dismissible: {
|
|
46
54
|
type: import('vue').PropType<boolean>;
|
|
47
|
-
default: boolean;
|
|
48
55
|
};
|
|
49
56
|
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
50
57
|
modelValue: import('vue').PropType<boolean>;
|
|
@@ -68,6 +75,14 @@ declare const QDialog: {
|
|
|
68
75
|
type: import('vue').PropType<import('..').Icon>;
|
|
69
76
|
default: () => import('..').Icon;
|
|
70
77
|
};
|
|
78
|
+
internals: {
|
|
79
|
+
type: import('vue').PropType<{
|
|
80
|
+
icons: Record<string, import('..').Icon>;
|
|
81
|
+
}>;
|
|
82
|
+
default: () => {
|
|
83
|
+
icons: Record<string, import('..').Icon>;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
71
86
|
id: {
|
|
72
87
|
type: import('vue').PropType<string>;
|
|
73
88
|
default: undefined;
|
|
@@ -89,7 +104,6 @@ declare const QDialog: {
|
|
|
89
104
|
};
|
|
90
105
|
dismissible: {
|
|
91
106
|
type: import('vue').PropType<boolean>;
|
|
92
|
-
default: boolean;
|
|
93
107
|
};
|
|
94
108
|
}>>, {
|
|
95
109
|
class: string | unknown[];
|
|
@@ -97,11 +111,13 @@ declare const QDialog: {
|
|
|
97
111
|
title: string;
|
|
98
112
|
text: string;
|
|
99
113
|
icon: import('..').Icon;
|
|
114
|
+
internals: {
|
|
115
|
+
icons: Record<string, import('..').Icon>;
|
|
116
|
+
};
|
|
100
117
|
id: string;
|
|
101
118
|
attach: string;
|
|
102
119
|
backdropBlur: boolean;
|
|
103
120
|
buttons: DialogButton[];
|
|
104
|
-
dismissible: boolean;
|
|
105
121
|
}, true, {}, {}, {
|
|
106
122
|
P: {};
|
|
107
123
|
B: {};
|
|
@@ -131,6 +147,14 @@ declare const QDialog: {
|
|
|
131
147
|
type: import('vue').PropType<import('..').Icon>;
|
|
132
148
|
default: () => import('..').Icon;
|
|
133
149
|
};
|
|
150
|
+
internals: {
|
|
151
|
+
type: import('vue').PropType<{
|
|
152
|
+
icons: Record<string, import('..').Icon>;
|
|
153
|
+
}>;
|
|
154
|
+
default: () => {
|
|
155
|
+
icons: Record<string, import('..').Icon>;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
134
158
|
id: {
|
|
135
159
|
type: import('vue').PropType<string>;
|
|
136
160
|
default: undefined;
|
|
@@ -152,7 +176,6 @@ declare const QDialog: {
|
|
|
152
176
|
};
|
|
153
177
|
dismissible: {
|
|
154
178
|
type: import('vue').PropType<boolean>;
|
|
155
|
-
default: boolean;
|
|
156
179
|
};
|
|
157
180
|
}>>, {}, {}, {}, {}, {
|
|
158
181
|
class: string | unknown[];
|
|
@@ -160,11 +183,13 @@ declare const QDialog: {
|
|
|
160
183
|
title: string;
|
|
161
184
|
text: string;
|
|
162
185
|
icon: import('..').Icon;
|
|
186
|
+
internals: {
|
|
187
|
+
icons: Record<string, import('..').Icon>;
|
|
188
|
+
};
|
|
163
189
|
id: string;
|
|
164
190
|
attach: string;
|
|
165
191
|
backdropBlur: boolean;
|
|
166
192
|
buttons: DialogButton[];
|
|
167
|
-
dismissible: boolean;
|
|
168
193
|
}>;
|
|
169
194
|
__isFragment?: undefined;
|
|
170
195
|
__isTeleport?: undefined;
|
|
@@ -191,6 +216,14 @@ declare const QDialog: {
|
|
|
191
216
|
type: import('vue').PropType<import('..').Icon>;
|
|
192
217
|
default: () => import('..').Icon;
|
|
193
218
|
};
|
|
219
|
+
internals: {
|
|
220
|
+
type: import('vue').PropType<{
|
|
221
|
+
icons: Record<string, import('..').Icon>;
|
|
222
|
+
}>;
|
|
223
|
+
default: () => {
|
|
224
|
+
icons: Record<string, import('..').Icon>;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
194
227
|
id: {
|
|
195
228
|
type: import('vue').PropType<string>;
|
|
196
229
|
default: undefined;
|
|
@@ -212,7 +245,6 @@ declare const QDialog: {
|
|
|
212
245
|
};
|
|
213
246
|
dismissible: {
|
|
214
247
|
type: import('vue').PropType<boolean>;
|
|
215
|
-
default: boolean;
|
|
216
248
|
};
|
|
217
249
|
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
218
250
|
class: string | unknown[];
|
|
@@ -220,11 +252,13 @@ declare const QDialog: {
|
|
|
220
252
|
title: string;
|
|
221
253
|
text: string;
|
|
222
254
|
icon: import('..').Icon;
|
|
255
|
+
internals: {
|
|
256
|
+
icons: Record<string, import('..').Icon>;
|
|
257
|
+
};
|
|
223
258
|
id: string;
|
|
224
259
|
attach: string;
|
|
225
260
|
backdropBlur: boolean;
|
|
226
261
|
buttons: DialogButton[];
|
|
227
|
-
dismissible: boolean;
|
|
228
262
|
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
229
263
|
$slots: {
|
|
230
264
|
"body.content"?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAKjD,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDialog/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAKjD,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAA;AAG5D,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,YAAY,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -39,6 +39,10 @@ export type QListProps = {
|
|
|
39
39
|
* Custom set of classes to apply to the component.
|
|
40
40
|
*/
|
|
41
41
|
class?: string | unknown[];
|
|
42
|
+
/**
|
|
43
|
+
* Indicates whether the list items are selectable.
|
|
44
|
+
*/
|
|
45
|
+
selectable?: boolean;
|
|
42
46
|
};
|
|
43
47
|
/**
|
|
44
48
|
* Focuses on the HTML element at the specified index among the child elements.
|
|
@@ -104,6 +108,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
104
108
|
type: import('vue').PropType<string>;
|
|
105
109
|
default: string;
|
|
106
110
|
};
|
|
111
|
+
selectable: {
|
|
112
|
+
type: import('vue').PropType<boolean>;
|
|
113
|
+
};
|
|
107
114
|
}, {
|
|
108
115
|
focusItem: typeof focusItem;
|
|
109
116
|
getItem: typeof getItem;
|
|
@@ -139,6 +146,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
139
146
|
type: import('vue').PropType<string>;
|
|
140
147
|
default: string;
|
|
141
148
|
};
|
|
149
|
+
selectable: {
|
|
150
|
+
type: import('vue').PropType<boolean>;
|
|
151
|
+
};
|
|
142
152
|
}>>, {
|
|
143
153
|
class: string | unknown[];
|
|
144
154
|
highlighted: Primitive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAmCA;AAMC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAO7D,KAAK,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAGpD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAClB,CAAA;AAED,KAAK,KAAK,GAAG,mBAAmB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IAEvB;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAA;IAEb;;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,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"QList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QList.vue"],"names":[],"mappings":"AAmCA;AAMC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,GAAG,CAAA;AAO7D,KAAK,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAGpD,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAClB,CAAA;AAED,KAAK,KAAK,GAAG,mBAAmB,GAAG;IAClC;;OAEG;I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ref as k, computed as y, openBlock as
|
|
1
|
+
import { defineComponent as T, mergeModels as U, useModel as G, ref as k, computed as y, openBlock as a, createBlock as p, resolveDynamicComponent as H, normalizeClass as K, withCtx as g, createElementBlock as w, Fragment as A, renderList as S, unref as V, renderSlot as N } from "vue";
|
|
2
2
|
import { QListItemGroup as R, QListItem as z } from "./index.js";
|
|
3
3
|
const P = /* @__PURE__ */ T({
|
|
4
4
|
__name: "QList",
|
|
@@ -9,7 +9,8 @@ const P = /* @__PURE__ */ T({
|
|
|
9
9
|
itemValue: { default: "key" },
|
|
10
10
|
itemLabel: { default: "label" },
|
|
11
11
|
disabled: { type: Boolean },
|
|
12
|
-
class: { default: void 0 }
|
|
12
|
+
class: { default: void 0 },
|
|
13
|
+
selectable: { type: Boolean }
|
|
13
14
|
}, {
|
|
14
15
|
modelValue: {
|
|
15
16
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -18,24 +19,24 @@ const P = /* @__PURE__ */ T({
|
|
|
18
19
|
}),
|
|
19
20
|
emits: ["update:modelValue"],
|
|
20
21
|
setup(v, { expose: F }) {
|
|
21
|
-
const s = v,
|
|
22
|
+
const s = v, r = G(v, "modelValue"), c = k(!1), B = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => s.groups.length ? s.groups.filter(
|
|
22
23
|
(e) => s.items.some((t) => t.group === e.id)
|
|
23
24
|
) : [{ id: "", title: "" }]), f = k(null);
|
|
24
|
-
function
|
|
25
|
-
|
|
25
|
+
function L(e) {
|
|
26
|
+
r.value = e;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function M() {
|
|
28
29
|
c.value = !0;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function D() {
|
|
31
32
|
c.value = !1;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function _(e) {
|
|
34
35
|
var n;
|
|
35
36
|
if ((n = f.value) != null && n.contains(e.relatedTarget))
|
|
36
37
|
return;
|
|
37
38
|
let t;
|
|
38
|
-
|
|
39
|
+
r.value ? t = s.items.findIndex((Q) => Q[s.itemValue] === r.value) : t = m();
|
|
39
40
|
const l = c.value;
|
|
40
41
|
i(t, l);
|
|
41
42
|
}
|
|
@@ -123,31 +124,31 @@ const P = /* @__PURE__ */ T({
|
|
|
123
124
|
getAdjacentItemIndex: x,
|
|
124
125
|
getFirstFocusableItemIndex: m,
|
|
125
126
|
getLastFocusableItemIndex: h
|
|
126
|
-
}), (e, t) => (
|
|
127
|
+
}), (e, t) => (a(), p(H(B.value), {
|
|
127
128
|
ref_key: "listRef",
|
|
128
129
|
ref: f,
|
|
129
130
|
class: K(["q-list", { "q-list--disabled": s.disabled }, s.class]),
|
|
130
131
|
role: "listbox",
|
|
131
132
|
tabindex: s.disabled ? -1 : 0,
|
|
132
|
-
onFocus:
|
|
133
|
-
onMousedown:
|
|
134
|
-
onMouseup:
|
|
133
|
+
onFocus: _,
|
|
134
|
+
onMousedown: M,
|
|
135
|
+
onMouseup: D,
|
|
135
136
|
onKeydown: E
|
|
136
137
|
}, {
|
|
137
|
-
default:
|
|
138
|
-
(
|
|
138
|
+
default: g(() => [
|
|
139
|
+
(a(!0), w(
|
|
139
140
|
A,
|
|
140
141
|
null,
|
|
141
|
-
S(d.value, (l) => (
|
|
142
|
+
S(d.value, (l) => (a(), p(V(R), {
|
|
142
143
|
key: l.id,
|
|
143
144
|
id: l.id,
|
|
144
145
|
title: d.value.length === 1 ? void 0 : l.title
|
|
145
146
|
}, {
|
|
146
|
-
default:
|
|
147
|
-
(
|
|
147
|
+
default: g(() => [
|
|
148
|
+
(a(!0), w(
|
|
148
149
|
A,
|
|
149
150
|
null,
|
|
150
|
-
S(O(l.id), (n) => (
|
|
151
|
+
S(O(l.id), (n) => (a(), p(V(z), {
|
|
151
152
|
key: n[s.itemValue],
|
|
152
153
|
value: n[s.itemValue],
|
|
153
154
|
label: n[s.itemLabel],
|
|
@@ -155,10 +156,10 @@ const P = /* @__PURE__ */ T({
|
|
|
155
156
|
icon: n.icon,
|
|
156
157
|
disabled: s.disabled || l.disabled || n.disabled,
|
|
157
158
|
highlighted: s.highlighted === n[s.itemValue],
|
|
158
|
-
selected:
|
|
159
|
-
onSelect:
|
|
159
|
+
selected: e.selectable && r.value === n[s.itemValue],
|
|
160
|
+
onSelect: L
|
|
160
161
|
}, {
|
|
161
|
-
default:
|
|
162
|
+
default: g(() => [
|
|
162
163
|
N(e.$slots, "item", { item: n })
|
|
163
164
|
]),
|
|
164
165
|
_: 2
|
|
@@ -8,7 +8,6 @@ export type ListItem = {
|
|
|
8
8
|
group?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export type Icons = typeof DEFAULT_ICONS;
|
|
12
11
|
export type QListItemProps = {
|
|
13
12
|
/**
|
|
14
13
|
* The value of the item.
|
|
@@ -30,10 +29,6 @@ export type QListItemProps = {
|
|
|
30
29
|
* Whether this item is highlighted.
|
|
31
30
|
*/
|
|
32
31
|
highlighted?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* The icons of the component.
|
|
35
|
-
*/
|
|
36
|
-
icons?: Icons;
|
|
37
32
|
/**
|
|
38
33
|
* Whether the item is disabled.
|
|
39
34
|
*/
|
|
@@ -42,23 +37,34 @@ export type QListItemProps = {
|
|
|
42
37
|
* The description of the item.
|
|
43
38
|
*/
|
|
44
39
|
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The internal elements of the component
|
|
42
|
+
*/
|
|
43
|
+
internals?: Internals;
|
|
45
44
|
};
|
|
46
45
|
declare const DEFAULT_ICONS: Record<string, Icon>;
|
|
46
|
+
type Internals = {
|
|
47
|
+
icons: typeof DEFAULT_ICONS;
|
|
48
|
+
};
|
|
47
49
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QListItemProps>, {
|
|
48
50
|
icon: undefined;
|
|
49
|
-
icons: () => Record<string, Icon>;
|
|
50
51
|
description: undefined;
|
|
52
|
+
internals: () => {
|
|
53
|
+
icons: Record<string, Icon>;
|
|
54
|
+
};
|
|
51
55
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
56
|
select: (value: Primitive) => void;
|
|
53
57
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QListItemProps>, {
|
|
54
58
|
icon: undefined;
|
|
55
|
-
icons: () => Record<string, Icon>;
|
|
56
59
|
description: undefined;
|
|
60
|
+
internals: () => {
|
|
61
|
+
icons: Record<string, Icon>;
|
|
62
|
+
};
|
|
57
63
|
}>>> & {
|
|
58
64
|
onSelect?: ((value: Primitive) => any) | undefined;
|
|
59
65
|
}, {
|
|
60
66
|
icon: Icon;
|
|
61
|
-
|
|
67
|
+
internals: Internals;
|
|
62
68
|
description: string;
|
|
63
69
|
}, {}>, {
|
|
64
70
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AA4CA;AAMC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAKlD,MAAM,MAAM,QAAQ,GAAG;IAEtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"QListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QList/QListItem.vue"],"names":[],"mappings":"AA4CA;AAMC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AA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