sprintify-ui 0.10.22 → 0.10.24
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/sprintify-ui.es.js +4203 -4203
- package/dist/types/components/BaseAutocomplete.vue.d.ts +17 -11
- package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +3 -1
- package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +29 -23
- package/dist/types/components/BaseBelongsTo.vue.d.ts +25 -19
- package/dist/types/components/BaseBelongsToFetch.vue.d.ts +21 -15
- package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +13 -17
- package/dist/types/components/BaseHasMany.vue.d.ts +31 -25
- package/dist/types/components/BaseHasManyFetch.vue.d.ts +27 -21
- package/dist/types/components/BaseTagAutocomplete.vue.d.ts +17 -11
- package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +33 -27
- package/dist/types/composables/hasOptions.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/BaseAutocomplete.stories.js +7 -0
- package/src/components/BaseAutocomplete.vue +3 -9
- package/src/components/BaseAutocompleteDrawer.vue +2 -0
- package/src/components/BaseAutocompleteFetch.stories.js +8 -1
- package/src/components/BaseAutocompleteFetch.vue +6 -5
- package/src/components/BaseBelongsTo.stories.js +7 -0
- package/src/components/BaseBelongsTo.vue +1 -1
- package/src/components/BaseBelongsToFetch.stories.js +7 -0
- package/src/components/BaseDropdownAutocomplete.stories.js +9 -7
- package/src/components/BaseDropdownAutocomplete.vue +6 -11
- package/src/components/BaseHasMany.stories.js +7 -2
- package/src/components/BaseHasMany.vue +1 -1
- package/src/components/BaseHasManyFetch.stories.js +7 -0
- package/src/components/BaseTagAutocomplete.stories.js +7 -0
- package/src/components/BaseTagAutocomplete.vue +2 -2
- package/src/components/BaseTagAutocompleteFetch.stories.js +7 -0
- package/src/components/BaseTagAutocompleteFetch.vue +7 -6
- package/src/composables/hasOptions.ts +28 -10
- package/src/types/index.ts +1 -1
|
@@ -156,7 +156,9 @@ declare const drawer: import("vue").Ref<({
|
|
|
156
156
|
$slots: {
|
|
157
157
|
empty?: ((props: {}) => any) | undefined;
|
|
158
158
|
option?: ((props: {
|
|
159
|
-
option: RawOption;
|
|
159
|
+
option: RawOption | null;
|
|
160
|
+
value: OptionValue;
|
|
161
|
+
label: string;
|
|
160
162
|
selected: boolean;
|
|
161
163
|
active: boolean;
|
|
162
164
|
}) => any) | undefined;
|
|
@@ -311,7 +313,9 @@ declare const drawer: import("vue").Ref<({
|
|
|
311
313
|
$slots: {
|
|
312
314
|
empty?: ((props: {}) => any) | undefined;
|
|
313
315
|
option?: ((props: {
|
|
314
|
-
option: RawOption;
|
|
316
|
+
option: RawOption | null;
|
|
317
|
+
value: OptionValue;
|
|
318
|
+
label: string;
|
|
315
319
|
selected: boolean;
|
|
316
320
|
active: boolean;
|
|
317
321
|
}) => any) | undefined;
|
|
@@ -362,7 +366,9 @@ declare var __VLS_33: {
|
|
|
362
366
|
open: typeof open;
|
|
363
367
|
close: typeof close;
|
|
364
368
|
keywords: ComputedRef<string>;
|
|
365
|
-
option: RawOption;
|
|
369
|
+
option: RawOption | null;
|
|
370
|
+
value: OptionValue;
|
|
371
|
+
label: string;
|
|
366
372
|
selected: boolean;
|
|
367
373
|
active: boolean;
|
|
368
374
|
}, __VLS_37: {
|
|
@@ -391,11 +397,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
391
397
|
};
|
|
392
398
|
labelKey: {
|
|
393
399
|
required: true;
|
|
394
|
-
type:
|
|
400
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
395
401
|
};
|
|
396
402
|
valueKey: {
|
|
397
403
|
required: true;
|
|
398
|
-
type:
|
|
404
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
399
405
|
};
|
|
400
406
|
name: {
|
|
401
407
|
default: undefined;
|
|
@@ -527,11 +533,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
527
533
|
};
|
|
528
534
|
labelKey: {
|
|
529
535
|
required: true;
|
|
530
|
-
type:
|
|
536
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
531
537
|
};
|
|
532
538
|
valueKey: {
|
|
533
539
|
required: true;
|
|
534
|
-
type:
|
|
540
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
535
541
|
};
|
|
536
542
|
name: {
|
|
537
543
|
default: undefined;
|
|
@@ -657,11 +663,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
657
663
|
};
|
|
658
664
|
labelKey: {
|
|
659
665
|
required: true;
|
|
660
|
-
type:
|
|
666
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
661
667
|
};
|
|
662
668
|
valueKey: {
|
|
663
669
|
required: true;
|
|
664
|
-
type:
|
|
670
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
665
671
|
};
|
|
666
672
|
name: {
|
|
667
673
|
default: undefined;
|
|
@@ -770,11 +776,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
770
776
|
};
|
|
771
777
|
labelKey: {
|
|
772
778
|
required: true;
|
|
773
|
-
type:
|
|
779
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
774
780
|
};
|
|
775
781
|
valueKey: {
|
|
776
782
|
required: true;
|
|
777
|
-
type:
|
|
783
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
778
784
|
};
|
|
779
785
|
name: {
|
|
780
786
|
default: undefined;
|
|
@@ -17,7 +17,9 @@ declare const optionSizeClass: import("vue").ComputedRef<"text-xs" | "text-sm">;
|
|
|
17
17
|
declare const optionIconClass: import("vue").ComputedRef<"w-4 h-4" | "w-5 h-5">;
|
|
18
18
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
19
19
|
declare var __VLS_1: {}, __VLS_3: {
|
|
20
|
-
option: import("@/types").RawOption;
|
|
20
|
+
option: import("@/types").RawOption | null;
|
|
21
|
+
value: import("@/types").OptionValue;
|
|
22
|
+
label: string;
|
|
21
23
|
selected: boolean;
|
|
22
24
|
active: boolean;
|
|
23
25
|
}, __VLS_12: {
|
|
@@ -39,8 +39,8 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
39
39
|
readonly options: RawOption[];
|
|
40
40
|
readonly hasError: boolean;
|
|
41
41
|
readonly visibleFocus: boolean;
|
|
42
|
-
readonly labelKey: string;
|
|
43
|
-
readonly valueKey: string;
|
|
42
|
+
readonly labelKey: string | ((option: RawOption) => string);
|
|
43
|
+
readonly valueKey: string | ((option: RawOption) => string);
|
|
44
44
|
readonly loading: boolean;
|
|
45
45
|
readonly loadingBottom: boolean;
|
|
46
46
|
readonly dropdownShow: "always" | "focus";
|
|
@@ -91,11 +91,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
91
91
|
};
|
|
92
92
|
labelKey: {
|
|
93
93
|
required: true;
|
|
94
|
-
type:
|
|
94
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
95
95
|
};
|
|
96
96
|
valueKey: {
|
|
97
97
|
required: true;
|
|
98
|
-
type:
|
|
98
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
99
99
|
};
|
|
100
100
|
name: {
|
|
101
101
|
default: undefined;
|
|
@@ -274,11 +274,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
274
274
|
};
|
|
275
275
|
labelKey: {
|
|
276
276
|
required: true;
|
|
277
|
-
type:
|
|
277
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
278
278
|
};
|
|
279
279
|
valueKey: {
|
|
280
280
|
required: true;
|
|
281
|
-
type:
|
|
281
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
282
282
|
};
|
|
283
283
|
name: {
|
|
284
284
|
default: undefined;
|
|
@@ -389,7 +389,9 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
389
389
|
open: () => void;
|
|
390
390
|
close: () => void;
|
|
391
391
|
keywords: import("vue").ComputedRef<string>;
|
|
392
|
-
option: RawOption;
|
|
392
|
+
option: RawOption | null;
|
|
393
|
+
value: import("@/types").OptionValue;
|
|
394
|
+
label: string;
|
|
393
395
|
selected: boolean;
|
|
394
396
|
active: boolean;
|
|
395
397
|
}) => any) | undefined;
|
|
@@ -433,8 +435,8 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
433
435
|
readonly options: RawOption[];
|
|
434
436
|
readonly hasError: boolean;
|
|
435
437
|
readonly visibleFocus: boolean;
|
|
436
|
-
readonly labelKey: string;
|
|
437
|
-
readonly valueKey: string;
|
|
438
|
+
readonly labelKey: string | ((option: RawOption) => string);
|
|
439
|
+
readonly valueKey: string | ((option: RawOption) => string);
|
|
438
440
|
readonly loading: boolean;
|
|
439
441
|
readonly loadingBottom: boolean;
|
|
440
442
|
readonly dropdownShow: "always" | "focus";
|
|
@@ -485,11 +487,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
485
487
|
};
|
|
486
488
|
labelKey: {
|
|
487
489
|
required: true;
|
|
488
|
-
type:
|
|
490
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
489
491
|
};
|
|
490
492
|
valueKey: {
|
|
491
493
|
required: true;
|
|
492
|
-
type:
|
|
494
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
493
495
|
};
|
|
494
496
|
name: {
|
|
495
497
|
default: undefined;
|
|
@@ -668,11 +670,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
668
670
|
};
|
|
669
671
|
labelKey: {
|
|
670
672
|
required: true;
|
|
671
|
-
type:
|
|
673
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
672
674
|
};
|
|
673
675
|
valueKey: {
|
|
674
676
|
required: true;
|
|
675
|
-
type:
|
|
677
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
676
678
|
};
|
|
677
679
|
name: {
|
|
678
680
|
default: undefined;
|
|
@@ -783,7 +785,9 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
783
785
|
open: () => void;
|
|
784
786
|
close: () => void;
|
|
785
787
|
keywords: import("vue").ComputedRef<string>;
|
|
786
|
-
option: RawOption;
|
|
788
|
+
option: RawOption | null;
|
|
789
|
+
value: import("@/types").OptionValue;
|
|
790
|
+
label: string;
|
|
787
791
|
selected: boolean;
|
|
788
792
|
active: boolean;
|
|
789
793
|
}) => any) | undefined;
|
|
@@ -809,7 +813,9 @@ declare var __VLS_14: {
|
|
|
809
813
|
open: () => void;
|
|
810
814
|
close: () => void;
|
|
811
815
|
keywords: import("vue").ComputedRef<string>;
|
|
812
|
-
option: RawOption;
|
|
816
|
+
option: RawOption | null;
|
|
817
|
+
value: import("@/types").OptionValue;
|
|
818
|
+
label: string;
|
|
813
819
|
selected: boolean;
|
|
814
820
|
active: boolean;
|
|
815
821
|
}, __VLS_16: {
|
|
@@ -845,11 +851,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
845
851
|
};
|
|
846
852
|
labelKey: {
|
|
847
853
|
required: true;
|
|
848
|
-
type:
|
|
854
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
849
855
|
};
|
|
850
856
|
valueKey: {
|
|
851
857
|
required: true;
|
|
852
|
-
type:
|
|
858
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
853
859
|
};
|
|
854
860
|
name: {
|
|
855
861
|
default: undefined;
|
|
@@ -950,11 +956,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
950
956
|
};
|
|
951
957
|
labelKey: {
|
|
952
958
|
required: true;
|
|
953
|
-
type:
|
|
959
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
954
960
|
};
|
|
955
961
|
valueKey: {
|
|
956
962
|
required: true;
|
|
957
|
-
type:
|
|
963
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
958
964
|
};
|
|
959
965
|
name: {
|
|
960
966
|
default: undefined;
|
|
@@ -1061,11 +1067,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
1061
1067
|
};
|
|
1062
1068
|
labelKey: {
|
|
1063
1069
|
required: true;
|
|
1064
|
-
type:
|
|
1070
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
1065
1071
|
};
|
|
1066
1072
|
valueKey: {
|
|
1067
1073
|
required: true;
|
|
1068
|
-
type:
|
|
1074
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
1069
1075
|
};
|
|
1070
1076
|
name: {
|
|
1071
1077
|
default: undefined;
|
|
@@ -1158,11 +1164,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
1158
1164
|
};
|
|
1159
1165
|
labelKey: {
|
|
1160
1166
|
required: true;
|
|
1161
|
-
type:
|
|
1167
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
1162
1168
|
};
|
|
1163
1169
|
valueKey: {
|
|
1164
1170
|
required: true;
|
|
1165
|
-
type:
|
|
1171
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
1166
1172
|
};
|
|
1167
1173
|
name: {
|
|
1168
1174
|
default: undefined;
|
|
@@ -33,8 +33,8 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
33
33
|
readonly options: RawOption[];
|
|
34
34
|
readonly hasError: boolean;
|
|
35
35
|
readonly visibleFocus: boolean;
|
|
36
|
-
readonly labelKey: string;
|
|
37
|
-
readonly valueKey: string;
|
|
36
|
+
readonly labelKey: string | ((option: RawOption) => string);
|
|
37
|
+
readonly valueKey: string | ((option: RawOption) => string);
|
|
38
38
|
readonly loading: boolean;
|
|
39
39
|
readonly loadingBottom: boolean;
|
|
40
40
|
readonly dropdownShow: "always" | "focus";
|
|
@@ -85,11 +85,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
85
85
|
};
|
|
86
86
|
labelKey: {
|
|
87
87
|
required: true;
|
|
88
|
-
type:
|
|
88
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
89
89
|
};
|
|
90
90
|
valueKey: {
|
|
91
91
|
required: true;
|
|
92
|
-
type:
|
|
92
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
93
93
|
};
|
|
94
94
|
name: {
|
|
95
95
|
default: undefined;
|
|
@@ -268,11 +268,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
268
268
|
};
|
|
269
269
|
labelKey: {
|
|
270
270
|
required: true;
|
|
271
|
-
type:
|
|
271
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
272
272
|
};
|
|
273
273
|
valueKey: {
|
|
274
274
|
required: true;
|
|
275
|
-
type:
|
|
275
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
276
276
|
};
|
|
277
277
|
name: {
|
|
278
278
|
default: undefined;
|
|
@@ -383,7 +383,9 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
383
383
|
open: () => void;
|
|
384
384
|
close: () => void;
|
|
385
385
|
keywords: import("vue").ComputedRef<string>;
|
|
386
|
-
option: RawOption;
|
|
386
|
+
option: RawOption | null;
|
|
387
|
+
value: import("@/types").OptionValue;
|
|
388
|
+
label: string;
|
|
387
389
|
selected: boolean;
|
|
388
390
|
active: boolean;
|
|
389
391
|
}) => any) | undefined;
|
|
@@ -427,8 +429,8 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
427
429
|
readonly options: RawOption[];
|
|
428
430
|
readonly hasError: boolean;
|
|
429
431
|
readonly visibleFocus: boolean;
|
|
430
|
-
readonly labelKey: string;
|
|
431
|
-
readonly valueKey: string;
|
|
432
|
+
readonly labelKey: string | ((option: RawOption) => string);
|
|
433
|
+
readonly valueKey: string | ((option: RawOption) => string);
|
|
432
434
|
readonly loading: boolean;
|
|
433
435
|
readonly loadingBottom: boolean;
|
|
434
436
|
readonly dropdownShow: "always" | "focus";
|
|
@@ -479,11 +481,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
479
481
|
};
|
|
480
482
|
labelKey: {
|
|
481
483
|
required: true;
|
|
482
|
-
type:
|
|
484
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
483
485
|
};
|
|
484
486
|
valueKey: {
|
|
485
487
|
required: true;
|
|
486
|
-
type:
|
|
488
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
487
489
|
};
|
|
488
490
|
name: {
|
|
489
491
|
default: undefined;
|
|
@@ -662,11 +664,11 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
662
664
|
};
|
|
663
665
|
labelKey: {
|
|
664
666
|
required: true;
|
|
665
|
-
type:
|
|
667
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
666
668
|
};
|
|
667
669
|
valueKey: {
|
|
668
670
|
required: true;
|
|
669
|
-
type:
|
|
671
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
670
672
|
};
|
|
671
673
|
name: {
|
|
672
674
|
default: undefined;
|
|
@@ -777,7 +779,9 @@ declare const autocomplete: import("vue").Ref<({
|
|
|
777
779
|
open: () => void;
|
|
778
780
|
close: () => void;
|
|
779
781
|
keywords: import("vue").ComputedRef<string>;
|
|
780
|
-
option: RawOption;
|
|
782
|
+
option: RawOption | null;
|
|
783
|
+
value: import("@/types").OptionValue;
|
|
784
|
+
label: string;
|
|
781
785
|
selected: boolean;
|
|
782
786
|
active: boolean;
|
|
783
787
|
}) => any) | undefined;
|
|
@@ -800,7 +804,9 @@ declare var __VLS_10: {
|
|
|
800
804
|
open: () => void;
|
|
801
805
|
close: () => void;
|
|
802
806
|
keywords: import("vue").ComputedRef<string>;
|
|
803
|
-
option: RawOption;
|
|
807
|
+
option: RawOption | null;
|
|
808
|
+
value: import("@/types").OptionValue;
|
|
809
|
+
label: string;
|
|
804
810
|
selected: boolean;
|
|
805
811
|
active: boolean;
|
|
806
812
|
}, __VLS_12: {
|
|
@@ -839,7 +845,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
839
845
|
};
|
|
840
846
|
field: {
|
|
841
847
|
required: true;
|
|
842
|
-
type:
|
|
848
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
843
849
|
};
|
|
844
850
|
required: {
|
|
845
851
|
default: boolean;
|
|
@@ -923,7 +929,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
923
929
|
};
|
|
924
930
|
field: {
|
|
925
931
|
required: true;
|
|
926
|
-
type:
|
|
932
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
927
933
|
};
|
|
928
934
|
required: {
|
|
929
935
|
default: boolean;
|
|
@@ -1021,7 +1027,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
1021
1027
|
};
|
|
1022
1028
|
field: {
|
|
1023
1029
|
required: true;
|
|
1024
|
-
type:
|
|
1030
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
1025
1031
|
};
|
|
1026
1032
|
required: {
|
|
1027
1033
|
default: boolean;
|
|
@@ -1106,7 +1112,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
1106
1112
|
};
|
|
1107
1113
|
field: {
|
|
1108
1114
|
required: true;
|
|
1109
|
-
type:
|
|
1115
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
1110
1116
|
};
|
|
1111
1117
|
required: {
|
|
1112
1118
|
default: boolean;
|
|
@@ -53,8 +53,8 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
53
53
|
readonly hasError: boolean;
|
|
54
54
|
readonly visibleFocus: boolean;
|
|
55
55
|
readonly url: string;
|
|
56
|
-
readonly labelKey: string;
|
|
57
|
-
readonly valueKey: string;
|
|
56
|
+
readonly labelKey: string | ((option: RawOption) => string);
|
|
57
|
+
readonly valueKey: string | ((option: RawOption) => string);
|
|
58
58
|
readonly dropdownShow: "always" | "focus";
|
|
59
59
|
readonly showModelValue: boolean;
|
|
60
60
|
readonly focusOnMount: boolean;
|
|
@@ -99,11 +99,11 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
99
99
|
};
|
|
100
100
|
labelKey: {
|
|
101
101
|
required: true;
|
|
102
|
-
type:
|
|
102
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
103
103
|
};
|
|
104
104
|
valueKey: {
|
|
105
105
|
required: true;
|
|
106
|
-
type:
|
|
106
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
107
107
|
};
|
|
108
108
|
name: {
|
|
109
109
|
default: undefined;
|
|
@@ -260,11 +260,11 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
260
260
|
};
|
|
261
261
|
labelKey: {
|
|
262
262
|
required: true;
|
|
263
|
-
type:
|
|
263
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
264
264
|
};
|
|
265
265
|
valueKey: {
|
|
266
266
|
required: true;
|
|
267
|
-
type:
|
|
267
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
268
268
|
};
|
|
269
269
|
name: {
|
|
270
270
|
default: undefined;
|
|
@@ -354,7 +354,9 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
354
354
|
open: () => void;
|
|
355
355
|
close: () => void;
|
|
356
356
|
keywords: import("vue").ComputedRef<string>;
|
|
357
|
-
option: RawOption;
|
|
357
|
+
option: RawOption | null;
|
|
358
|
+
value: import("@/types").OptionValue;
|
|
359
|
+
label: string;
|
|
358
360
|
selected: boolean;
|
|
359
361
|
active: boolean;
|
|
360
362
|
}) => any) | undefined;
|
|
@@ -404,8 +406,8 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
404
406
|
readonly hasError: boolean;
|
|
405
407
|
readonly visibleFocus: boolean;
|
|
406
408
|
readonly url: string;
|
|
407
|
-
readonly labelKey: string;
|
|
408
|
-
readonly valueKey: string;
|
|
409
|
+
readonly labelKey: string | ((option: RawOption) => string);
|
|
410
|
+
readonly valueKey: string | ((option: RawOption) => string);
|
|
409
411
|
readonly dropdownShow: "always" | "focus";
|
|
410
412
|
readonly showModelValue: boolean;
|
|
411
413
|
readonly focusOnMount: boolean;
|
|
@@ -450,11 +452,11 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
450
452
|
};
|
|
451
453
|
labelKey: {
|
|
452
454
|
required: true;
|
|
453
|
-
type:
|
|
455
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
454
456
|
};
|
|
455
457
|
valueKey: {
|
|
456
458
|
required: true;
|
|
457
|
-
type:
|
|
459
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
458
460
|
};
|
|
459
461
|
name: {
|
|
460
462
|
default: undefined;
|
|
@@ -611,11 +613,11 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
611
613
|
};
|
|
612
614
|
labelKey: {
|
|
613
615
|
required: true;
|
|
614
|
-
type:
|
|
616
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
615
617
|
};
|
|
616
618
|
valueKey: {
|
|
617
619
|
required: true;
|
|
618
|
-
type:
|
|
620
|
+
type: import("vue").PropType<string | ((option: RawOption) => string)>;
|
|
619
621
|
};
|
|
620
622
|
name: {
|
|
621
623
|
default: undefined;
|
|
@@ -705,7 +707,9 @@ declare const autocompleteFetch: import("vue").Ref<({
|
|
|
705
707
|
open: () => void;
|
|
706
708
|
close: () => void;
|
|
707
709
|
keywords: import("vue").ComputedRef<string>;
|
|
708
|
-
option: RawOption;
|
|
710
|
+
option: RawOption | null;
|
|
711
|
+
value: import("@/types").OptionValue;
|
|
712
|
+
label: string;
|
|
709
713
|
selected: boolean;
|
|
710
714
|
active: boolean;
|
|
711
715
|
}) => any) | undefined;
|
|
@@ -736,7 +740,9 @@ declare var __VLS_10: {
|
|
|
736
740
|
open: () => void;
|
|
737
741
|
close: () => void;
|
|
738
742
|
keywords: import("vue").ComputedRef<string>;
|
|
739
|
-
option: RawOption;
|
|
743
|
+
option: RawOption | null;
|
|
744
|
+
value: import("@/types").OptionValue;
|
|
745
|
+
label: string;
|
|
740
746
|
selected: boolean;
|
|
741
747
|
active: boolean;
|
|
742
748
|
}, __VLS_12: {
|
|
@@ -10,11 +10,7 @@ declare function onUpdate(value: RawOption | RawOption[] | null | undefined, clo
|
|
|
10
10
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
11
11
|
declare var __VLS_5: {
|
|
12
12
|
newValue: any;
|
|
13
|
-
}, __VLS_17:
|
|
14
|
-
option: any;
|
|
15
|
-
active: any;
|
|
16
|
-
size: "xs" | "sm" | "base";
|
|
17
|
-
};
|
|
13
|
+
}, __VLS_17: any;
|
|
18
14
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
19
15
|
button?: (props: typeof __VLS_5) => any;
|
|
20
16
|
} & {
|
|
@@ -39,11 +35,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
39
35
|
};
|
|
40
36
|
labelKey: {
|
|
41
37
|
default: string;
|
|
42
|
-
type:
|
|
38
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
43
39
|
};
|
|
44
40
|
valueKey: {
|
|
45
41
|
default: string;
|
|
46
|
-
type:
|
|
42
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
47
43
|
};
|
|
48
44
|
size: {
|
|
49
45
|
type: PropType<"xs" | "sm" | "base">;
|
|
@@ -93,11 +89,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
93
89
|
};
|
|
94
90
|
labelKey: {
|
|
95
91
|
default: string;
|
|
96
|
-
type:
|
|
92
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
97
93
|
};
|
|
98
94
|
valueKey: {
|
|
99
95
|
default: string;
|
|
100
|
-
type:
|
|
96
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
101
97
|
};
|
|
102
98
|
size: {
|
|
103
99
|
type: PropType<"xs" | "sm" | "base">;
|
|
@@ -129,8 +125,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
129
125
|
options: RawOption[] | undefined;
|
|
130
126
|
modelValue: RawOption | RawOption[] | null | undefined;
|
|
131
127
|
url: string;
|
|
132
|
-
labelKey: string;
|
|
133
|
-
valueKey: string;
|
|
128
|
+
labelKey: string | ((option: RawOption) => string);
|
|
129
|
+
valueKey: string | ((option: RawOption) => string);
|
|
134
130
|
emptyOptionLabel: string;
|
|
135
131
|
multiple: boolean;
|
|
136
132
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -153,11 +149,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
153
149
|
};
|
|
154
150
|
labelKey: {
|
|
155
151
|
default: string;
|
|
156
|
-
type:
|
|
152
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
157
153
|
};
|
|
158
154
|
valueKey: {
|
|
159
155
|
default: string;
|
|
160
|
-
type:
|
|
156
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
161
157
|
};
|
|
162
158
|
size: {
|
|
163
159
|
type: PropType<"xs" | "sm" | "base">;
|
|
@@ -200,11 +196,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
200
196
|
};
|
|
201
197
|
labelKey: {
|
|
202
198
|
default: string;
|
|
203
|
-
type:
|
|
199
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
204
200
|
};
|
|
205
201
|
valueKey: {
|
|
206
202
|
default: string;
|
|
207
|
-
type:
|
|
203
|
+
type: PropType<string | ((option: RawOption) => string)>;
|
|
208
204
|
};
|
|
209
205
|
size: {
|
|
210
206
|
type: PropType<"xs" | "sm" | "base">;
|
|
@@ -236,8 +232,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
236
232
|
options: RawOption[] | undefined;
|
|
237
233
|
modelValue: RawOption | RawOption[] | null | undefined;
|
|
238
234
|
url: string;
|
|
239
|
-
labelKey: string;
|
|
240
|
-
valueKey: string;
|
|
235
|
+
labelKey: string | ((option: RawOption) => string);
|
|
236
|
+
valueKey: string | ((option: RawOption) => string);
|
|
241
237
|
emptyOptionLabel: string;
|
|
242
238
|
multiple: boolean;
|
|
243
239
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|