@quidgest/ui 0.16.65 → 0.16.66
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/json/api.json +226 -1
- package/dist/ui.css +14 -0
- package/dist/ui.esm.js +23 -4
- package/dist/ui.js +5 -5
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +18 -18
- package/dist/ui.scss +15 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +4 -3
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -6
- package/esm/components/QCheckbox/index.d.ts +3 -0
- package/esm/components/QCheckbox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +28 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +6 -5
- package/esm/components/QCombobox/index.d.ts +49 -7
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +8 -7
- package/esm/components/QDateTimePicker/index.d.ts +3 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +1 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +23 -20
- package/esm/components/QField/index.d.ts +3 -0
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QFileUpload/QFileUpload.vue.js +6 -5
- package/esm/components/QFileUpload/index.d.ts +3 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +17 -16
- package/esm/components/QLabel/QLabel.d.ts.map +1 -1
- package/esm/components/QLabel/QLabel.vue.js +15 -13
- package/esm/components/QLabel/types.d.ts +12 -0
- package/esm/components/QLabel/types.d.ts.map +1 -1
- package/esm/components/QMeter/QMeter.vue.js +8 -7
- package/esm/components/QMeter/index.d.ts +2 -0
- package/esm/components/QMeter/index.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.d.ts +14 -2
- package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordField.vue.js +5 -4
- package/esm/components/QPasswordField/index.d.ts +7 -1
- package/esm/components/QPasswordField/index.d.ts.map +1 -1
- package/esm/components/QRadioGroup/QRadioButton.vue.js +13 -12
- package/esm/components/QRadioGroup/QRadioGroup.vue.js +8 -7
- package/esm/components/QRadioGroup/index.d.ts +3 -0
- package/esm/components/QRadioGroup/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +8 -2
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +1 -0
- package/esm/components/QSelect/index.d.ts +7 -1
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSwitch/QSwitch.vue.js +15 -14
- package/esm/components/QTextArea/QTextArea.vue.js +3 -2
- package/esm/components/QTextArea/index.d.ts +3 -0
- package/esm/components/QTextArea/index.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.d.ts +8 -2
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +22 -21
- package/esm/components/QTextField/index.d.ts +7 -1
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ const Le = ["data-key"], Fe = {
|
|
|
22
22
|
label: {},
|
|
23
23
|
required: { type: Boolean },
|
|
24
24
|
for: {},
|
|
25
|
+
labelPosition: {},
|
|
25
26
|
size: {},
|
|
26
27
|
readonly: { type: Boolean },
|
|
27
28
|
disabled: { type: Boolean },
|
|
@@ -97,7 +98,7 @@ const Le = ["data-key"], Fe = {
|
|
|
97
98
|
function O() {
|
|
98
99
|
if (D(), h.value !== void 0) {
|
|
99
100
|
const e = p.value.indexOf(h.value);
|
|
100
|
-
e !== -1 && x(() =>
|
|
101
|
+
e !== -1 && x(() => P(e));
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
function te(e) {
|
|
@@ -148,8 +149,8 @@ const Le = ["data-key"], Fe = {
|
|
|
148
149
|
o.value = (a = s.value) == null ? void 0 : a.getAdjacentItemIndex(e, t);
|
|
149
150
|
}
|
|
150
151
|
function z(e) {
|
|
151
|
-
var
|
|
152
|
-
const t = ((
|
|
152
|
+
var N, R, H, j, K;
|
|
153
|
+
const t = ((N = L == null ? void 0 : L.value) == null ? void 0 : N.$el) === e.relatedTarget, a = ((R = F == null ? void 0 : F.value) == null ? void 0 : R.$el) === e.relatedTarget, n = (j = (H = c == null ? void 0 : c.value) == null ? void 0 : H.$el) == null ? void 0 : j.contains(e.relatedTarget), _ = (K = $ == null ? void 0 : $.value) == null ? void 0 : K.contains(e.relatedTarget);
|
|
153
154
|
if (t || a || _ || n) {
|
|
154
155
|
e.preventDefault(), e.stopPropagation();
|
|
155
156
|
return;
|
|
@@ -169,7 +170,7 @@ const Le = ["data-key"], Fe = {
|
|
|
169
170
|
function ue() {
|
|
170
171
|
V("hide");
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
+
function P(e) {
|
|
173
174
|
var a;
|
|
174
175
|
const t = (a = s.value) == null ? void 0 : a.getItem(e);
|
|
175
176
|
s.value && (s.value.$el.scrollTop = t == null ? void 0 : t.offsetTop);
|
|
@@ -184,7 +185,7 @@ const Le = ["data-key"], Fe = {
|
|
|
184
185
|
},
|
|
185
186
|
{ deep: !0 }
|
|
186
187
|
), I(o, (e) => {
|
|
187
|
-
e !== void 0 &&
|
|
188
|
+
e !== void 0 && P(e);
|
|
188
189
|
}), I(u, (e) => {
|
|
189
190
|
e && i.value && l.selectionMode === "automatic" && x(M);
|
|
190
191
|
}), I(
|
|
@@ -34,6 +34,7 @@ declare const QCombobox: {
|
|
|
34
34
|
readonly label?: string | undefined;
|
|
35
35
|
readonly required?: boolean | undefined;
|
|
36
36
|
readonly for?: string | undefined;
|
|
37
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
37
38
|
readonly size?: import('..').QFieldSize | undefined;
|
|
38
39
|
readonly readonly?: boolean | undefined;
|
|
39
40
|
readonly disabled?: boolean | undefined;
|
|
@@ -61,6 +62,7 @@ declare const QCombobox: {
|
|
|
61
62
|
readonly label?: string | undefined;
|
|
62
63
|
readonly required?: boolean | undefined;
|
|
63
64
|
readonly for?: string | undefined;
|
|
65
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
64
66
|
readonly size?: import('..').QFieldSize | undefined;
|
|
65
67
|
readonly readonly?: boolean | undefined;
|
|
66
68
|
readonly disabled?: boolean | undefined;
|
|
@@ -86,6 +88,7 @@ declare const QCombobox: {
|
|
|
86
88
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
87
89
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
88
90
|
size: import('..').QFieldSize;
|
|
91
|
+
labelPosition: import('..').QLabelPosition;
|
|
89
92
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
90
93
|
beforeCreate?: (() => void) | (() => void)[];
|
|
91
94
|
created?: (() => void) | (() => void)[];
|
|
@@ -108,7 +111,8 @@ declare const QCombobox: {
|
|
|
108
111
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
109
112
|
} & Readonly<{
|
|
110
113
|
size: import('..').QFieldSize;
|
|
111
|
-
|
|
114
|
+
labelPosition: import('..').QLabelPosition;
|
|
115
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
112
116
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
113
117
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
114
118
|
$slots: {
|
|
@@ -137,6 +141,7 @@ declare const QCombobox: {
|
|
|
137
141
|
label?: string;
|
|
138
142
|
required?: boolean;
|
|
139
143
|
for?: string;
|
|
144
|
+
labelPosition?: import('..').QLabelPosition;
|
|
140
145
|
} & {
|
|
141
146
|
size?: import('..').QFieldSize;
|
|
142
147
|
readonly?: boolean;
|
|
@@ -189,6 +194,7 @@ declare const QCombobox: {
|
|
|
189
194
|
label?: string;
|
|
190
195
|
required?: boolean;
|
|
191
196
|
for?: string;
|
|
197
|
+
labelPosition?: import('..').QLabelPosition;
|
|
192
198
|
} & {
|
|
193
199
|
size?: import('..').QFieldSize;
|
|
194
200
|
readonly?: boolean;
|
|
@@ -225,6 +231,7 @@ declare const QCombobox: {
|
|
|
225
231
|
readonly label?: string | undefined;
|
|
226
232
|
readonly required?: boolean | undefined;
|
|
227
233
|
readonly for?: string | undefined;
|
|
234
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
228
235
|
readonly size?: import('..').QFieldSize | undefined;
|
|
229
236
|
readonly readonly?: boolean | undefined;
|
|
230
237
|
readonly disabled?: boolean | undefined;
|
|
@@ -252,6 +259,7 @@ declare const QCombobox: {
|
|
|
252
259
|
readonly label?: string | undefined;
|
|
253
260
|
readonly required?: boolean | undefined;
|
|
254
261
|
readonly for?: string | undefined;
|
|
262
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
255
263
|
readonly size?: import('..').QFieldSize | undefined;
|
|
256
264
|
readonly readonly?: boolean | undefined;
|
|
257
265
|
readonly disabled?: boolean | undefined;
|
|
@@ -277,6 +285,7 @@ declare const QCombobox: {
|
|
|
277
285
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
278
286
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
279
287
|
size: import('..').QFieldSize;
|
|
288
|
+
labelPosition: import('..').QLabelPosition;
|
|
280
289
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
281
290
|
beforeCreate?: (() => void) | (() => void)[];
|
|
282
291
|
created?: (() => void) | (() => void)[];
|
|
@@ -299,7 +308,8 @@ declare const QCombobox: {
|
|
|
299
308
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
300
309
|
} & Readonly<{
|
|
301
310
|
size: import('..').QFieldSize;
|
|
302
|
-
|
|
311
|
+
labelPosition: import('..').QLabelPosition;
|
|
312
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
303
313
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
304
314
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
305
315
|
$slots: {
|
|
@@ -328,6 +338,7 @@ declare const QCombobox: {
|
|
|
328
338
|
label?: string;
|
|
329
339
|
required?: boolean;
|
|
330
340
|
for?: string;
|
|
341
|
+
labelPosition?: import('..').QLabelPosition;
|
|
331
342
|
} & {
|
|
332
343
|
size?: import('..').QFieldSize;
|
|
333
344
|
readonly?: boolean;
|
|
@@ -380,6 +391,7 @@ declare const QCombobox: {
|
|
|
380
391
|
label?: string;
|
|
381
392
|
required?: boolean;
|
|
382
393
|
for?: string;
|
|
394
|
+
labelPosition?: import('..').QLabelPosition;
|
|
383
395
|
} & {
|
|
384
396
|
size?: import('..').QFieldSize;
|
|
385
397
|
readonly?: boolean;
|
|
@@ -441,6 +453,7 @@ declare const QCombobox: {
|
|
|
441
453
|
readonly label?: string | undefined;
|
|
442
454
|
readonly required?: boolean | undefined;
|
|
443
455
|
readonly for?: string | undefined;
|
|
456
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
444
457
|
readonly size?: import('..').QFieldSize | undefined;
|
|
445
458
|
readonly readonly?: boolean | undefined;
|
|
446
459
|
readonly disabled?: boolean | undefined;
|
|
@@ -468,6 +481,7 @@ declare const QCombobox: {
|
|
|
468
481
|
readonly label?: string | undefined;
|
|
469
482
|
readonly required?: boolean | undefined;
|
|
470
483
|
readonly for?: string | undefined;
|
|
484
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
471
485
|
readonly size?: import('..').QFieldSize | undefined;
|
|
472
486
|
readonly readonly?: boolean | undefined;
|
|
473
487
|
readonly disabled?: boolean | undefined;
|
|
@@ -493,6 +507,7 @@ declare const QCombobox: {
|
|
|
493
507
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
494
508
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
495
509
|
size: import('..').QFieldSize;
|
|
510
|
+
labelPosition: import('..').QLabelPosition;
|
|
496
511
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
497
512
|
beforeCreate?: (() => void) | (() => void)[];
|
|
498
513
|
created?: (() => void) | (() => void)[];
|
|
@@ -515,7 +530,8 @@ declare const QCombobox: {
|
|
|
515
530
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
516
531
|
} & Readonly<{
|
|
517
532
|
size: import('..').QFieldSize;
|
|
518
|
-
|
|
533
|
+
labelPosition: import('..').QLabelPosition;
|
|
534
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
519
535
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
520
536
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
521
537
|
$slots: {
|
|
@@ -544,6 +560,7 @@ declare const QCombobox: {
|
|
|
544
560
|
label?: string;
|
|
545
561
|
required?: boolean;
|
|
546
562
|
for?: string;
|
|
563
|
+
labelPosition?: import('..').QLabelPosition;
|
|
547
564
|
} & {
|
|
548
565
|
size?: import('..').QFieldSize;
|
|
549
566
|
readonly?: boolean;
|
|
@@ -596,6 +613,7 @@ declare const QCombobox: {
|
|
|
596
613
|
label?: string;
|
|
597
614
|
required?: boolean;
|
|
598
615
|
for?: string;
|
|
616
|
+
labelPosition?: import('..').QLabelPosition;
|
|
599
617
|
} & {
|
|
600
618
|
size?: import('..').QFieldSize;
|
|
601
619
|
readonly?: boolean;
|
|
@@ -943,6 +961,7 @@ declare const QCombobox: {
|
|
|
943
961
|
readonly label?: string | undefined;
|
|
944
962
|
readonly required?: boolean | undefined;
|
|
945
963
|
readonly for?: string | undefined;
|
|
964
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
946
965
|
readonly size?: import('..').QFieldSize | undefined;
|
|
947
966
|
readonly readonly?: boolean | undefined;
|
|
948
967
|
readonly disabled?: boolean | undefined;
|
|
@@ -970,6 +989,7 @@ declare const QCombobox: {
|
|
|
970
989
|
readonly label?: string | undefined;
|
|
971
990
|
readonly required?: boolean | undefined;
|
|
972
991
|
readonly for?: string | undefined;
|
|
992
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
973
993
|
readonly size?: import('..').QFieldSize | undefined;
|
|
974
994
|
readonly readonly?: boolean | undefined;
|
|
975
995
|
readonly disabled?: boolean | undefined;
|
|
@@ -995,6 +1015,7 @@ declare const QCombobox: {
|
|
|
995
1015
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
996
1016
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
997
1017
|
size: import('..').QFieldSize;
|
|
1018
|
+
labelPosition: import('..').QLabelPosition;
|
|
998
1019
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
999
1020
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1000
1021
|
created?: (() => void) | (() => void)[];
|
|
@@ -1017,7 +1038,8 @@ declare const QCombobox: {
|
|
|
1017
1038
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1018
1039
|
} & Readonly<{
|
|
1019
1040
|
size: import('..').QFieldSize;
|
|
1020
|
-
|
|
1041
|
+
labelPosition: import('..').QLabelPosition;
|
|
1042
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
1021
1043
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1022
1044
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1023
1045
|
$slots: {
|
|
@@ -1046,6 +1068,7 @@ declare const QCombobox: {
|
|
|
1046
1068
|
label?: string;
|
|
1047
1069
|
required?: boolean;
|
|
1048
1070
|
for?: string;
|
|
1071
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1049
1072
|
} & {
|
|
1050
1073
|
size?: import('..').QFieldSize;
|
|
1051
1074
|
readonly?: boolean;
|
|
@@ -1098,6 +1121,7 @@ declare const QCombobox: {
|
|
|
1098
1121
|
label?: string;
|
|
1099
1122
|
required?: boolean;
|
|
1100
1123
|
for?: string;
|
|
1124
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1101
1125
|
} & {
|
|
1102
1126
|
size?: import('..').QFieldSize;
|
|
1103
1127
|
readonly?: boolean;
|
|
@@ -1134,6 +1158,7 @@ declare const QCombobox: {
|
|
|
1134
1158
|
readonly label?: string | undefined;
|
|
1135
1159
|
readonly required?: boolean | undefined;
|
|
1136
1160
|
readonly for?: string | undefined;
|
|
1161
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
1137
1162
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1138
1163
|
readonly readonly?: boolean | undefined;
|
|
1139
1164
|
readonly disabled?: boolean | undefined;
|
|
@@ -1161,6 +1186,7 @@ declare const QCombobox: {
|
|
|
1161
1186
|
readonly label?: string | undefined;
|
|
1162
1187
|
readonly required?: boolean | undefined;
|
|
1163
1188
|
readonly for?: string | undefined;
|
|
1189
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
1164
1190
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1165
1191
|
readonly readonly?: boolean | undefined;
|
|
1166
1192
|
readonly disabled?: boolean | undefined;
|
|
@@ -1186,6 +1212,7 @@ declare const QCombobox: {
|
|
|
1186
1212
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1187
1213
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
1188
1214
|
size: import('..').QFieldSize;
|
|
1215
|
+
labelPosition: import('..').QLabelPosition;
|
|
1189
1216
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1190
1217
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1191
1218
|
created?: (() => void) | (() => void)[];
|
|
@@ -1208,7 +1235,8 @@ declare const QCombobox: {
|
|
|
1208
1235
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1209
1236
|
} & Readonly<{
|
|
1210
1237
|
size: import('..').QFieldSize;
|
|
1211
|
-
|
|
1238
|
+
labelPosition: import('..').QLabelPosition;
|
|
1239
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
1212
1240
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1213
1241
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1214
1242
|
$slots: {
|
|
@@ -1237,6 +1265,7 @@ declare const QCombobox: {
|
|
|
1237
1265
|
label?: string;
|
|
1238
1266
|
required?: boolean;
|
|
1239
1267
|
for?: string;
|
|
1268
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1240
1269
|
} & {
|
|
1241
1270
|
size?: import('..').QFieldSize;
|
|
1242
1271
|
readonly?: boolean;
|
|
@@ -1289,6 +1318,7 @@ declare const QCombobox: {
|
|
|
1289
1318
|
label?: string;
|
|
1290
1319
|
required?: boolean;
|
|
1291
1320
|
for?: string;
|
|
1321
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1292
1322
|
} & {
|
|
1293
1323
|
size?: import('..').QFieldSize;
|
|
1294
1324
|
readonly?: boolean;
|
|
@@ -1369,6 +1399,7 @@ declare const QCombobox: {
|
|
|
1369
1399
|
readonly label?: string | undefined;
|
|
1370
1400
|
readonly required?: boolean | undefined;
|
|
1371
1401
|
readonly for?: string | undefined;
|
|
1402
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
1372
1403
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1373
1404
|
readonly readonly?: boolean | undefined;
|
|
1374
1405
|
readonly disabled?: boolean | undefined;
|
|
@@ -1396,6 +1427,7 @@ declare const QCombobox: {
|
|
|
1396
1427
|
readonly label?: string | undefined;
|
|
1397
1428
|
readonly required?: boolean | undefined;
|
|
1398
1429
|
readonly for?: string | undefined;
|
|
1430
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
1399
1431
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1400
1432
|
readonly readonly?: boolean | undefined;
|
|
1401
1433
|
readonly disabled?: boolean | undefined;
|
|
@@ -1421,6 +1453,7 @@ declare const QCombobox: {
|
|
|
1421
1453
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1422
1454
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
1423
1455
|
size: import('..').QFieldSize;
|
|
1456
|
+
labelPosition: import('..').QLabelPosition;
|
|
1424
1457
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1425
1458
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1426
1459
|
created?: (() => void) | (() => void)[];
|
|
@@ -1443,7 +1476,8 @@ declare const QCombobox: {
|
|
|
1443
1476
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1444
1477
|
} & Readonly<{
|
|
1445
1478
|
size: import('..').QFieldSize;
|
|
1446
|
-
|
|
1479
|
+
labelPosition: import('..').QLabelPosition;
|
|
1480
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
1447
1481
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1448
1482
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1449
1483
|
$slots: {
|
|
@@ -1472,6 +1506,7 @@ declare const QCombobox: {
|
|
|
1472
1506
|
label?: string;
|
|
1473
1507
|
required?: boolean;
|
|
1474
1508
|
for?: string;
|
|
1509
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1475
1510
|
} & {
|
|
1476
1511
|
size?: import('..').QFieldSize;
|
|
1477
1512
|
readonly?: boolean;
|
|
@@ -1524,6 +1559,7 @@ declare const QCombobox: {
|
|
|
1524
1559
|
label?: string;
|
|
1525
1560
|
required?: boolean;
|
|
1526
1561
|
for?: string;
|
|
1562
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1527
1563
|
} & {
|
|
1528
1564
|
size?: import('..').QFieldSize;
|
|
1529
1565
|
readonly?: boolean;
|
|
@@ -1560,6 +1596,7 @@ declare const QCombobox: {
|
|
|
1560
1596
|
readonly label?: string | undefined;
|
|
1561
1597
|
readonly required?: boolean | undefined;
|
|
1562
1598
|
readonly for?: string | undefined;
|
|
1599
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
1563
1600
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1564
1601
|
readonly readonly?: boolean | undefined;
|
|
1565
1602
|
readonly disabled?: boolean | undefined;
|
|
@@ -1587,6 +1624,7 @@ declare const QCombobox: {
|
|
|
1587
1624
|
readonly label?: string | undefined;
|
|
1588
1625
|
readonly required?: boolean | undefined;
|
|
1589
1626
|
readonly for?: string | undefined;
|
|
1627
|
+
readonly labelPosition?: import('..').QLabelPosition | undefined;
|
|
1590
1628
|
readonly size?: import('..').QFieldSize | undefined;
|
|
1591
1629
|
readonly readonly?: boolean | undefined;
|
|
1592
1630
|
readonly disabled?: boolean | undefined;
|
|
@@ -1612,6 +1650,7 @@ declare const QCombobox: {
|
|
|
1612
1650
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1613
1651
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
1614
1652
|
size: import('..').QFieldSize;
|
|
1653
|
+
labelPosition: import('..').QLabelPosition;
|
|
1615
1654
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1616
1655
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1617
1656
|
created?: (() => void) | (() => void)[];
|
|
@@ -1634,7 +1673,8 @@ declare const QCombobox: {
|
|
|
1634
1673
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1635
1674
|
} & Readonly<{
|
|
1636
1675
|
size: import('..').QFieldSize;
|
|
1637
|
-
|
|
1676
|
+
labelPosition: import('..').QLabelPosition;
|
|
1677
|
+
}> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
|
|
1638
1678
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
1639
1679
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1640
1680
|
$slots: {
|
|
@@ -1663,6 +1703,7 @@ declare const QCombobox: {
|
|
|
1663
1703
|
label?: string;
|
|
1664
1704
|
required?: boolean;
|
|
1665
1705
|
for?: string;
|
|
1706
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1666
1707
|
} & {
|
|
1667
1708
|
size?: import('..').QFieldSize;
|
|
1668
1709
|
readonly?: boolean;
|
|
@@ -1715,6 +1756,7 @@ declare const QCombobox: {
|
|
|
1715
1756
|
label?: string;
|
|
1716
1757
|
required?: boolean;
|
|
1717
1758
|
for?: string;
|
|
1759
|
+
labelPosition?: import('..').QLabelPosition;
|
|
1718
1760
|
} & {
|
|
1719
1761
|
size?: import('..').QFieldSize;
|
|
1720
1762
|
readonly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QCombobox/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, mergeModels as V, useModel as F, computed as t, ref as
|
|
1
|
+
import { defineComponent as C, mergeModels as V, useModel as F, computed as t, ref as P, createBlock as U, openBlock as w, unref as n, normalizeClass as D, createSlots as E, withCtx as r, createVNode as s, createElementVNode as N, mergeProps as k, renderSlot as Q } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as H, DEFAULT_ICONS as I } from "./constants.js";
|
|
3
3
|
import { QClearButton as Z } from "../__internal__/QClearButton/index.js";
|
|
4
4
|
import { QField as $ } from "../QField/index.js";
|
|
@@ -18,6 +18,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
18
18
|
label: {},
|
|
19
19
|
required: { type: Boolean },
|
|
20
20
|
for: {},
|
|
21
|
+
labelPosition: {},
|
|
21
22
|
size: {},
|
|
22
23
|
readonly: { type: Boolean },
|
|
23
24
|
disabled: { type: Boolean },
|
|
@@ -41,7 +42,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
41
42
|
const e = d, m = F(d, "modelValue"), u = t({
|
|
42
43
|
get: () => m.value,
|
|
43
44
|
set: (o) => m.value = o || void 0
|
|
44
|
-
}),
|
|
45
|
+
}), b = t(() => i.value ? "format" : void 0), v = t(() => ({
|
|
45
46
|
closeOnAutoApply: e.closeOnSelect,
|
|
46
47
|
tabOutClosesMenu: !0
|
|
47
48
|
})), c = Y(), T = t(() => c.current.value.mode === "dark"), x = t(() => W(e.format)), h = t(() => G(e.format)), i = t(() => j(e.format)), _ = t(() => J(e.format)), g = t(() => f(e.minTime)), q = t(() => f(e.maxTime)), B = t(() => i.value ? e.icons.clock : e.icons.calendar), S = t(() => ({
|
|
@@ -72,7 +73,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
72
73
|
},
|
|
73
74
|
eager: !0
|
|
74
75
|
// Show static characters before the user types them
|
|
75
|
-
})), p =
|
|
76
|
+
})), p = P();
|
|
76
77
|
R(p, S);
|
|
77
78
|
function f(o) {
|
|
78
79
|
if (!o) return;
|
|
@@ -83,9 +84,9 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
83
84
|
seconds: a[2]
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
|
-
return (o, a) => (
|
|
87
|
+
return (o, a) => (w(), U(n($), {
|
|
87
88
|
id: e.id,
|
|
88
|
-
class:
|
|
89
|
+
class: D(["q-date-time-picker", e.class]),
|
|
89
90
|
label: e.label,
|
|
90
91
|
readonly: e.readonly,
|
|
91
92
|
disabled: e.disabled,
|
|
@@ -106,7 +107,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
106
107
|
s(n(L), {
|
|
107
108
|
modelValue: u.value,
|
|
108
109
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
|
|
109
|
-
"model-type":
|
|
110
|
+
"model-type": b.value,
|
|
110
111
|
"min-time": g.value,
|
|
111
112
|
"max-time": q.value,
|
|
112
113
|
disabled: e.disabled,
|
|
@@ -118,7 +119,7 @@ const ee = ["value", "placeholder", "disabled", "readonly", "required", "onInput
|
|
|
118
119
|
"enable-time-picker": x.value,
|
|
119
120
|
"enable-seconds": h.value,
|
|
120
121
|
"time-picker": i.value,
|
|
121
|
-
config:
|
|
122
|
+
config: v.value,
|
|
122
123
|
teleport: !e.inline,
|
|
123
124
|
offset: 16,
|
|
124
125
|
dark: T.value,
|
|
@@ -5,6 +5,7 @@ declare const QDateTimePicker: {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
for?: string;
|
|
8
|
+
labelPosition?: import('..').QLabelPosition;
|
|
8
9
|
} & {
|
|
9
10
|
size?: import('..').QFieldSize;
|
|
10
11
|
readonly?: boolean;
|
|
@@ -46,6 +47,7 @@ declare const QDateTimePicker: {
|
|
|
46
47
|
label?: string;
|
|
47
48
|
required?: boolean;
|
|
48
49
|
for?: string;
|
|
50
|
+
labelPosition?: import('..').QLabelPosition;
|
|
49
51
|
} & {
|
|
50
52
|
size?: import('..').QFieldSize;
|
|
51
53
|
readonly?: boolean;
|
|
@@ -80,6 +82,7 @@ declare const QDateTimePicker: {
|
|
|
80
82
|
label?: string;
|
|
81
83
|
required?: boolean;
|
|
82
84
|
for?: string;
|
|
85
|
+
labelPosition?: import('..').QLabelPosition;
|
|
83
86
|
} & {
|
|
84
87
|
size?: import('..').QFieldSize;
|
|
85
88
|
readonly?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QDateTimePicker/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAA;AAGzD,OAAO,EAAE,eAAe,EAAE,CAAA;AAG1B,cAAc,SAAS,CAAA"}
|
|
@@ -20,6 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<QFieldProps, {
|
|
|
20
20
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
21
21
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
|
|
22
22
|
size: import('./types').QFieldSize;
|
|
23
|
+
labelPosition: import('..').QLabelPosition;
|
|
23
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
25
|
field: HTMLDivElement;
|
|
25
26
|
}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QField/QField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QField/QField.vue"],"names":[],"mappings":"AA2CA;AA4FC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AA+C3C,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;iCAlBb,GAAG;gCACJ,GAAG;yBACV,GAAG;yBACH,GAAG;yBACF,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;;;EAiB/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;OASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as c, useTemplateRef as
|
|
2
|
-
import { QLabel as
|
|
1
|
+
import { defineComponent as c, useTemplateRef as b, computed as a, createElementBlock as i, openBlock as o, normalizeClass as q, createBlock as m, createCommentVNode as d, renderSlot as s, unref as v, withCtx as t, createElementVNode as _, mergeProps as $ } from "vue";
|
|
2
|
+
import { QLabel as y } from "../QLabel/index.js";
|
|
3
3
|
const h = ["id"], k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "q-field__prepend"
|
|
@@ -9,7 +9,7 @@ const h = ["id"], k = {
|
|
|
9
9
|
}, C = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "q-field__extras"
|
|
12
|
-
},
|
|
12
|
+
}, E = /* @__PURE__ */ c({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "QField",
|
|
15
15
|
props: {
|
|
@@ -18,15 +18,17 @@ const h = ["id"], k = {
|
|
|
18
18
|
label: {},
|
|
19
19
|
required: { type: Boolean },
|
|
20
20
|
for: {},
|
|
21
|
+
labelPosition: { default: "topleft" },
|
|
21
22
|
size: { default: "medium" },
|
|
22
23
|
readonly: { type: Boolean },
|
|
23
24
|
disabled: { type: Boolean },
|
|
24
25
|
invalid: { type: Boolean }
|
|
25
26
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
27
|
+
setup(r, { expose: n }) {
|
|
28
|
+
const e = r, p = b("field"), f = a(() => e.required && !e.readonly && !e.disabled), u = a(() => [
|
|
28
29
|
"q-field",
|
|
29
30
|
`q-field--${e.size}`,
|
|
31
|
+
`q-field--label-${e.labelPosition}`,
|
|
30
32
|
{
|
|
31
33
|
"q-field--readonly": e.readonly,
|
|
32
34
|
"q-field--disabled": e.disabled,
|
|
@@ -37,52 +39,53 @@ const h = ["id"], k = {
|
|
|
37
39
|
]);
|
|
38
40
|
return n({
|
|
39
41
|
fieldRef: p
|
|
40
|
-
}), (l,
|
|
42
|
+
}), (l, P) => (o(), i("div", {
|
|
41
43
|
id: e.id,
|
|
42
|
-
class:
|
|
44
|
+
class: q(u.value)
|
|
43
45
|
}, [
|
|
44
|
-
e.label ? (
|
|
46
|
+
e.label ? (o(), m(v(y), {
|
|
45
47
|
key: 0,
|
|
46
48
|
class: "q-field__label",
|
|
47
49
|
label: e.label,
|
|
50
|
+
"label-position": e.labelPosition,
|
|
48
51
|
for: e.for,
|
|
49
52
|
required: e.required
|
|
50
53
|
}, {
|
|
51
|
-
prepend:
|
|
54
|
+
prepend: t(() => [
|
|
52
55
|
s(l.$slots, "label.prepend")
|
|
53
56
|
]),
|
|
54
|
-
append:
|
|
57
|
+
append: t(() => [
|
|
55
58
|
s(l.$slots, "label.append")
|
|
56
59
|
]),
|
|
57
60
|
_: 3
|
|
58
61
|
/* FORWARDED */
|
|
59
|
-
}, 8, ["label", "for", "required"])) :
|
|
62
|
+
}, 8, ["label", "label-position", "for", "required"])) : d("v-if", !0),
|
|
60
63
|
s(l.$slots, "control", {}, () => [
|
|
61
|
-
|
|
64
|
+
_(
|
|
62
65
|
"div",
|
|
63
|
-
|
|
66
|
+
$({
|
|
64
67
|
ref: "field",
|
|
65
68
|
class: "q-field__control"
|
|
66
69
|
}, l.$attrs),
|
|
67
70
|
[
|
|
68
|
-
l.$slots.prepend ? (
|
|
71
|
+
l.$slots.prepend ? (o(), i("div", k, [
|
|
69
72
|
s(l.$slots, "prepend")
|
|
70
|
-
])) :
|
|
73
|
+
])) : d("v-if", !0),
|
|
71
74
|
s(l.$slots, "default"),
|
|
72
|
-
l.$slots.append ? (
|
|
75
|
+
l.$slots.append ? (o(), i("div", B, [
|
|
73
76
|
s(l.$slots, "append")
|
|
74
|
-
])) :
|
|
77
|
+
])) : d("v-if", !0)
|
|
75
78
|
],
|
|
76
79
|
16
|
|
77
80
|
/* FULL_PROPS */
|
|
78
81
|
)
|
|
79
82
|
]),
|
|
80
|
-
l.$slots.extras ? (
|
|
83
|
+
l.$slots.extras ? (o(), i("div", C, [
|
|
81
84
|
s(l.$slots, "extras")
|
|
82
|
-
])) :
|
|
85
|
+
])) : d("v-if", !0)
|
|
83
86
|
], 10, h));
|
|
84
87
|
}
|
|
85
88
|
});
|
|
86
89
|
export {
|
|
87
|
-
|
|
90
|
+
E as default
|
|
88
91
|
};
|
|
@@ -3,6 +3,7 @@ declare const QField: {
|
|
|
3
3
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
4
4
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
5
5
|
size: import('./types').QFieldSize;
|
|
6
|
+
labelPosition: import('..').QLabelPosition;
|
|
6
7
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
7
8
|
field: HTMLDivElement;
|
|
8
9
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -16,6 +17,7 @@ declare const QField: {
|
|
|
16
17
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
17
18
|
}, {}, {}, {}, {
|
|
18
19
|
size: import('./types').QFieldSize;
|
|
20
|
+
labelPosition: import('..').QLabelPosition;
|
|
19
21
|
}>;
|
|
20
22
|
__isFragment?: never;
|
|
21
23
|
__isTeleport?: never;
|
|
@@ -24,6 +26,7 @@ declare const QField: {
|
|
|
24
26
|
fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
25
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
26
28
|
size: import('./types').QFieldSize;
|
|
29
|
+
labelPosition: import('..').QLabelPosition;
|
|
27
30
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
28
31
|
$slots: {
|
|
29
32
|
'label.prepend'?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,cAAc,SAAS,CAAA"}
|