sprintify-ui 0.10.86 → 0.10.88

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.
Files changed (29) hide show
  1. package/dist/sprintify-ui.es.js +4611 -4502
  2. package/dist/types/components/BaseAutocomplete.vue.d.ts +88 -4
  3. package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +44 -4
  4. package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +88 -4
  5. package/dist/types/components/BaseBelongsTo.vue.d.ts +88 -4
  6. package/dist/types/components/BaseBelongsToFetch.vue.d.ts +58 -4
  7. package/dist/types/components/BaseHasMany.vue.d.ts +36 -0
  8. package/dist/types/components/BaseInput.vue.d.ts +2 -0
  9. package/dist/types/components/BaseTagAutocomplete.vue.d.ts +96 -10
  10. package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +52 -4
  11. package/dist/types/components/BaseTextarea.vue.d.ts +6 -0
  12. package/package.json +1 -1
  13. package/src/components/BaseAutocomplete.stories.js +10 -0
  14. package/src/components/BaseAutocomplete.vue +11 -1
  15. package/src/components/BaseAutocompleteDrawer.vue +52 -1
  16. package/src/components/BaseAutocompleteFetch.stories.js +6 -0
  17. package/src/components/BaseAutocompleteFetch.vue +10 -0
  18. package/src/components/BaseBelongsTo.stories.js +5 -0
  19. package/src/components/BaseBelongsTo.vue +10 -0
  20. package/src/components/BaseBelongsToFetch.stories.js +6 -0
  21. package/src/components/BaseBelongsToFetch.vue +6 -0
  22. package/src/components/BaseHasMany.stories.js +5 -0
  23. package/src/components/BaseHasMany.vue +10 -0
  24. package/src/components/BaseHasManyFetch.stories.js +12 -0
  25. package/src/components/BaseInput.vue +8 -5
  26. package/src/components/BaseTagAutocomplete.stories.js +5 -0
  27. package/src/components/BaseTagAutocomplete.vue +34 -1
  28. package/src/components/BaseTagAutocompleteFetch.stories.js +6 -0
  29. package/src/components/BaseTextarea.vue +4 -1
@@ -21,6 +21,8 @@ declare const drawer: import("vue").Ref<({
21
21
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
22
22
  keywords: string;
23
23
  loadingBottom: boolean;
24
+ optionColor: (option: RawOption) => string;
25
+ optionIcon: (option: RawOption) => string;
24
26
  twDrawer: string;
25
27
  }> & Omit<{
26
28
  readonly size: "xs" | "sm" | "md" | "lg" | "xl";
@@ -30,9 +32,11 @@ declare const drawer: import("vue").Ref<({
30
32
  readonly loadingBottom: boolean;
31
33
  readonly twDrawer: string;
32
34
  readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
35
+ readonly optionColor?: ((option: RawOption) => string) | undefined;
36
+ readonly optionIcon?: ((option: RawOption) => string) | undefined;
33
37
  readonly onSelect?: ((...args: any[]) => any) | undefined;
34
38
  readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
35
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer">;
39
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer">;
36
40
  $attrs: {
37
41
  [x: string]: unknown;
38
42
  };
@@ -72,6 +76,14 @@ declare const drawer: import("vue").Ref<({
72
76
  type: PropType<Size>;
73
77
  default: string;
74
78
  };
79
+ optionColor: {
80
+ default: undefined;
81
+ type: PropType<(option: RawOption) => string>;
82
+ };
83
+ optionIcon: {
84
+ default: undefined;
85
+ type: PropType<(option: RawOption) => string>;
86
+ };
75
87
  twDrawer: {
76
88
  type: StringConstructor;
77
89
  default: string;
@@ -91,6 +103,8 @@ declare const drawer: import("vue").Ref<({
91
103
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
92
104
  keywords: string;
93
105
  loadingBottom: boolean;
106
+ optionColor: (option: RawOption) => string;
107
+ optionIcon: (option: RawOption) => string;
94
108
  twDrawer: string;
95
109
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
96
110
  beforeCreate?: (() => void) | (() => void)[];
@@ -119,6 +133,8 @@ declare const drawer: import("vue").Ref<({
119
133
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
120
134
  keywords: string;
121
135
  loadingBottom: boolean;
136
+ optionColor: (option: RawOption) => string;
137
+ optionIcon: (option: RawOption) => string;
122
138
  twDrawer: string;
123
139
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
124
140
  selected: {
@@ -145,6 +161,14 @@ declare const drawer: import("vue").Ref<({
145
161
  type: PropType<Size>;
146
162
  default: string;
147
163
  };
164
+ optionColor: {
165
+ default: undefined;
166
+ type: PropType<(option: RawOption) => string>;
167
+ };
168
+ optionIcon: {
169
+ default: undefined;
170
+ type: PropType<(option: RawOption) => string>;
171
+ };
148
172
  twDrawer: {
149
173
  type: StringConstructor;
150
174
  default: string;
@@ -152,7 +176,7 @@ declare const drawer: import("vue").Ref<({
152
176
  }>> & Readonly<{
153
177
  onSelect?: ((...args: any[]) => any) | undefined;
154
178
  onScrollBottom?: ((...args: any[]) => any) | undefined;
155
- }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
179
+ }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
156
180
  onKeydown: (event: KeyboardEvent) => void;
157
181
  }> & {} & import("vue").ComponentCustomProperties & {} & {
158
182
  $slots: {
@@ -178,6 +202,8 @@ declare const drawer: import("vue").Ref<({
178
202
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
179
203
  keywords: string;
180
204
  loadingBottom: boolean;
205
+ optionColor: (option: RawOption) => string;
206
+ optionIcon: (option: RawOption) => string;
181
207
  twDrawer: string;
182
208
  }> & Omit<{
183
209
  readonly size: "xs" | "sm" | "md" | "lg" | "xl";
@@ -187,9 +213,11 @@ declare const drawer: import("vue").Ref<({
187
213
  readonly loadingBottom: boolean;
188
214
  readonly twDrawer: string;
189
215
  readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
216
+ readonly optionColor?: ((option: RawOption) => string) | undefined;
217
+ readonly optionIcon?: ((option: RawOption) => string) | undefined;
190
218
  readonly onSelect?: ((...args: any[]) => any) | undefined;
191
219
  readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
192
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer">;
220
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer">;
193
221
  $attrs: {
194
222
  [x: string]: unknown;
195
223
  };
@@ -229,6 +257,14 @@ declare const drawer: import("vue").Ref<({
229
257
  type: PropType<Size>;
230
258
  default: string;
231
259
  };
260
+ optionColor: {
261
+ default: undefined;
262
+ type: PropType<(option: RawOption) => string>;
263
+ };
264
+ optionIcon: {
265
+ default: undefined;
266
+ type: PropType<(option: RawOption) => string>;
267
+ };
232
268
  twDrawer: {
233
269
  type: StringConstructor;
234
270
  default: string;
@@ -248,6 +284,8 @@ declare const drawer: import("vue").Ref<({
248
284
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
249
285
  keywords: string;
250
286
  loadingBottom: boolean;
287
+ optionColor: (option: RawOption) => string;
288
+ optionIcon: (option: RawOption) => string;
251
289
  twDrawer: string;
252
290
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
253
291
  beforeCreate?: (() => void) | (() => void)[];
@@ -276,6 +314,8 @@ declare const drawer: import("vue").Ref<({
276
314
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
277
315
  keywords: string;
278
316
  loadingBottom: boolean;
317
+ optionColor: (option: RawOption) => string;
318
+ optionIcon: (option: RawOption) => string;
279
319
  twDrawer: string;
280
320
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
281
321
  selected: {
@@ -302,6 +342,14 @@ declare const drawer: import("vue").Ref<({
302
342
  type: PropType<Size>;
303
343
  default: string;
304
344
  };
345
+ optionColor: {
346
+ default: undefined;
347
+ type: PropType<(option: RawOption) => string>;
348
+ };
349
+ optionIcon: {
350
+ default: undefined;
351
+ type: PropType<(option: RawOption) => string>;
352
+ };
305
353
  twDrawer: {
306
354
  type: StringConstructor;
307
355
  default: string;
@@ -309,7 +357,7 @@ declare const drawer: import("vue").Ref<({
309
357
  }>> & Readonly<{
310
358
  onSelect?: ((...args: any[]) => any) | undefined;
311
359
  onScrollBottom?: ((...args: any[]) => any) | undefined;
312
- }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
360
+ }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
313
361
  onKeydown: (event: KeyboardEvent) => void;
314
362
  }> & {} & import("vue").ComponentCustomProperties & {} & {
315
363
  $slots: {
@@ -497,6 +545,14 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
497
545
  default(): string;
498
546
  type: PropType<string>;
499
547
  };
548
+ optionColor: {
549
+ default: undefined;
550
+ type: PropType<(option: RawOption) => string>;
551
+ };
552
+ optionIcon: {
553
+ default: undefined;
554
+ type: PropType<(option: RawOption) => string>;
555
+ };
500
556
  twInput: {
501
557
  default: undefined;
502
558
  type: PropType<string | string[]>;
@@ -641,6 +697,14 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
641
697
  default(): string;
642
698
  type: PropType<string>;
643
699
  };
700
+ optionColor: {
701
+ default: undefined;
702
+ type: PropType<(option: RawOption) => string>;
703
+ };
704
+ optionIcon: {
705
+ default: undefined;
706
+ type: PropType<(option: RawOption) => string>;
707
+ };
644
708
  twInput: {
645
709
  default: undefined;
646
710
  type: PropType<string | string[]>;
@@ -672,6 +736,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
672
736
  visibleFocus: boolean;
673
737
  loading: boolean;
674
738
  loadingBottom: boolean;
739
+ optionColor: (option: RawOption) => string;
740
+ optionIcon: (option: RawOption) => string;
675
741
  dropdownShow: "always" | "focus";
676
742
  showModelValue: boolean;
677
743
  focusOnMount: boolean;
@@ -776,6 +842,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
776
842
  default(): string;
777
843
  type: PropType<string>;
778
844
  };
845
+ optionColor: {
846
+ default: undefined;
847
+ type: PropType<(option: RawOption) => string>;
848
+ };
849
+ optionIcon: {
850
+ default: undefined;
851
+ type: PropType<(option: RawOption) => string>;
852
+ };
779
853
  twInput: {
780
854
  default: undefined;
781
855
  type: PropType<string | string[]>;
@@ -893,6 +967,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
893
967
  default(): string;
894
968
  type: PropType<string>;
895
969
  };
970
+ optionColor: {
971
+ default: undefined;
972
+ type: PropType<(option: RawOption) => string>;
973
+ };
974
+ optionIcon: {
975
+ default: undefined;
976
+ type: PropType<(option: RawOption) => string>;
977
+ };
896
978
  twInput: {
897
979
  default: undefined;
898
980
  type: PropType<string | string[]>;
@@ -924,6 +1006,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
924
1006
  visibleFocus: boolean;
925
1007
  loading: boolean;
926
1008
  loadingBottom: boolean;
1009
+ optionColor: (option: RawOption) => string;
1010
+ optionIcon: (option: RawOption) => string;
927
1011
  dropdownShow: "always" | "focus";
928
1012
  showModelValue: boolean;
929
1013
  focusOnMount: boolean;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { NormalizedOption } from '@/types';
2
+ import { NormalizedOption, RawOption } from '@/types';
3
3
  import BaseSkeleton from './BaseSkeleton.vue';
4
4
  import { Icon as BaseIcon } from '@iconify/vue';
5
5
  import BaseSpinnerSmall from '../svg/BaseSpinnerSmall.vue';
@@ -15,14 +15,16 @@ declare const onOptionMouseMove: import("lodash").DebouncedFuncLeading<(index: n
15
15
  declare const optionClass: (option: NormalizedOption) => "bg-white" | "bg-slate-200";
16
16
  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
+ declare const optionColorSizeClass: import("vue").ComputedRef<"mr-2 -ml-px h-3 w-3" | "mr-2 -ml-px h-2.5 w-2.5">;
19
+ declare const optionIconSizeClass: import("vue").ComputedRef<"mr-2 -ml-px h-3 w-3" | "mr-2 -ml-0.5 h-4 w-4">;
18
20
  declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
19
21
  declare var __VLS_1: {}, __VLS_3: {
20
- option: import("@/types").RawOption | null;
22
+ option: RawOption | null;
21
23
  value: import("@/types").OptionValue;
22
24
  label: string;
23
25
  selected: boolean;
24
26
  active: boolean;
25
- }, __VLS_12: {
27
+ }, __VLS_16: {
26
28
  options: NormalizedOption[];
27
29
  };
28
30
  type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
@@ -30,7 +32,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
30
32
  } & {
31
33
  option?: (props: typeof __VLS_3) => any;
32
34
  } & {
33
- footer?: (props: typeof __VLS_12) => any;
35
+ footer?: (props: typeof __VLS_16) => any;
34
36
  }>;
35
37
  declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
36
38
  selected: {
@@ -57,6 +59,14 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
57
59
  type: PropType<Size>;
58
60
  default: string;
59
61
  };
62
+ optionColor: {
63
+ default: undefined;
64
+ type: PropType<(option: RawOption) => string>;
65
+ };
66
+ optionIcon: {
67
+ default: undefined;
68
+ type: PropType<(option: RawOption) => string>;
69
+ };
60
70
  twDrawer: {
61
71
  type: StringConstructor;
62
72
  default: string;
@@ -75,6 +85,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
75
85
  optionClass: typeof optionClass;
76
86
  optionSizeClass: typeof optionSizeClass;
77
87
  optionIconClass: typeof optionIconClass;
88
+ optionColorSizeClass: typeof optionColorSizeClass;
89
+ optionIconSizeClass: typeof optionIconSizeClass;
78
90
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
79
91
  select: (...args: any[]) => void;
80
92
  scrollBottom: (...args: any[]) => void;
@@ -103,6 +115,14 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
103
115
  type: PropType<Size>;
104
116
  default: string;
105
117
  };
118
+ optionColor: {
119
+ default: undefined;
120
+ type: PropType<(option: RawOption) => string>;
121
+ };
122
+ optionIcon: {
123
+ default: undefined;
124
+ type: PropType<(option: RawOption) => string>;
125
+ };
106
126
  twDrawer: {
107
127
  type: StringConstructor;
108
128
  default: string;
@@ -117,6 +137,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
117
137
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
118
138
  keywords: string;
119
139
  loadingBottom: boolean;
140
+ optionColor: (option: RawOption) => string;
141
+ optionIcon: (option: RawOption) => string;
120
142
  twDrawer: string;
121
143
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
122
144
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -144,6 +166,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
144
166
  type: PropType<Size>;
145
167
  default: string;
146
168
  };
169
+ optionColor: {
170
+ default: undefined;
171
+ type: PropType<(option: RawOption) => string>;
172
+ };
173
+ optionIcon: {
174
+ default: undefined;
175
+ type: PropType<(option: RawOption) => string>;
176
+ };
147
177
  twDrawer: {
148
178
  type: StringConstructor;
149
179
  default: string;
@@ -178,6 +208,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
178
208
  type: PropType<Size>;
179
209
  default: string;
180
210
  };
211
+ optionColor: {
212
+ default: undefined;
213
+ type: PropType<(option: RawOption) => string>;
214
+ };
215
+ optionIcon: {
216
+ default: undefined;
217
+ type: PropType<(option: RawOption) => string>;
218
+ };
181
219
  twDrawer: {
182
220
  type: StringConstructor;
183
221
  default: string;
@@ -192,6 +230,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
192
230
  selected: NormalizedOption | NormalizedOption[] | null | undefined;
193
231
  keywords: string;
194
232
  loadingBottom: boolean;
233
+ optionColor: (option: RawOption) => string;
234
+ optionIcon: (option: RawOption) => string;
195
235
  twDrawer: string;
196
236
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
197
237
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -26,6 +26,8 @@ declare const autocomplete: import("vue").Ref<({
26
26
  visibleFocus: boolean;
27
27
  loading: boolean;
28
28
  loadingBottom: boolean;
29
+ optionColor: (option: RawOption) => string;
30
+ optionIcon: (option: RawOption) => string;
29
31
  dropdownShow: "always" | "focus";
30
32
  showModelValue: boolean;
31
33
  focusOnMount: boolean;
@@ -58,6 +60,8 @@ declare const autocomplete: import("vue").Ref<({
58
60
  readonly name?: string | undefined;
59
61
  readonly modelValue?: RawOption | null | undefined;
60
62
  readonly placeholder?: string | undefined;
63
+ readonly optionColor?: ((option: RawOption) => string) | undefined;
64
+ readonly optionIcon?: ((option: RawOption) => string) | undefined;
61
65
  readonly twInput?: string | string[] | undefined;
62
66
  readonly twSelect?: string | string[] | undefined;
63
67
  readonly onClose?: ((...args: any[]) => any) | undefined;
@@ -67,7 +71,7 @@ declare const autocomplete: import("vue").Ref<({
67
71
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
68
72
  readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
69
73
  readonly onTyping?: ((...args: any[]) => any) | undefined;
70
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect">;
74
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "optionColor" | "optionIcon" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect">;
71
75
  $attrs: {
72
76
  [x: string]: unknown;
73
77
  };
@@ -175,6 +179,14 @@ declare const autocomplete: import("vue").Ref<({
175
179
  default(): string;
176
180
  type: PropType<string>;
177
181
  };
182
+ optionColor: {
183
+ default: undefined;
184
+ type: PropType<(option: RawOption) => string>;
185
+ };
186
+ optionIcon: {
187
+ default: undefined;
188
+ type: PropType<(option: RawOption) => string>;
189
+ };
178
190
  twInput: {
179
191
  default: undefined;
180
192
  type: PropType<string | string[]>;
@@ -220,6 +232,8 @@ declare const autocomplete: import("vue").Ref<({
220
232
  visibleFocus: boolean;
221
233
  loading: boolean;
222
234
  loadingBottom: boolean;
235
+ optionColor: (option: RawOption) => string;
236
+ optionIcon: (option: RawOption) => string;
223
237
  dropdownShow: "always" | "focus";
224
238
  showModelValue: boolean;
225
239
  focusOnMount: boolean;
@@ -263,6 +277,8 @@ declare const autocomplete: import("vue").Ref<({
263
277
  visibleFocus: boolean;
264
278
  loading: boolean;
265
279
  loadingBottom: boolean;
280
+ optionColor: (option: RawOption) => string;
281
+ optionIcon: (option: RawOption) => string;
266
282
  dropdownShow: "always" | "focus";
267
283
  showModelValue: boolean;
268
284
  focusOnMount: boolean;
@@ -364,6 +380,14 @@ declare const autocomplete: import("vue").Ref<({
364
380
  default(): string;
365
381
  type: PropType<string>;
366
382
  };
383
+ optionColor: {
384
+ default: undefined;
385
+ type: PropType<(option: RawOption) => string>;
386
+ };
387
+ optionIcon: {
388
+ default: undefined;
389
+ type: PropType<(option: RawOption) => string>;
390
+ };
367
391
  twInput: {
368
392
  default: undefined;
369
393
  type: PropType<string | string[]>;
@@ -380,7 +404,7 @@ declare const autocomplete: import("vue").Ref<({
380
404
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
381
405
  onScrollBottom?: ((...args: any[]) => any) | undefined;
382
406
  onTyping?: ((...args: any[]) => any) | undefined;
383
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect")> & import("vue").ShallowUnwrapRef<{
407
+ }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "optionColor" | "optionIcon" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect")> & import("vue").ShallowUnwrapRef<{
384
408
  focus: () => void;
385
409
  blur: () => void;
386
410
  close: () => void;
@@ -434,6 +458,8 @@ declare const autocomplete: import("vue").Ref<({
434
458
  visibleFocus: boolean;
435
459
  loading: boolean;
436
460
  loadingBottom: boolean;
461
+ optionColor: (option: RawOption) => string;
462
+ optionIcon: (option: RawOption) => string;
437
463
  dropdownShow: "always" | "focus";
438
464
  showModelValue: boolean;
439
465
  focusOnMount: boolean;
@@ -466,6 +492,8 @@ declare const autocomplete: import("vue").Ref<({
466
492
  readonly name?: string | undefined;
467
493
  readonly modelValue?: RawOption | null | undefined;
468
494
  readonly placeholder?: string | undefined;
495
+ readonly optionColor?: ((option: RawOption) => string) | undefined;
496
+ readonly optionIcon?: ((option: RawOption) => string) | undefined;
469
497
  readonly twInput?: string | string[] | undefined;
470
498
  readonly twSelect?: string | string[] | undefined;
471
499
  readonly onClose?: ((...args: any[]) => any) | undefined;
@@ -475,7 +503,7 @@ declare const autocomplete: import("vue").Ref<({
475
503
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
476
504
  readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
477
505
  readonly onTyping?: ((...args: any[]) => any) | undefined;
478
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect">;
506
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "optionColor" | "optionIcon" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect">;
479
507
  $attrs: {
480
508
  [x: string]: unknown;
481
509
  };
@@ -583,6 +611,14 @@ declare const autocomplete: import("vue").Ref<({
583
611
  default(): string;
584
612
  type: PropType<string>;
585
613
  };
614
+ optionColor: {
615
+ default: undefined;
616
+ type: PropType<(option: RawOption) => string>;
617
+ };
618
+ optionIcon: {
619
+ default: undefined;
620
+ type: PropType<(option: RawOption) => string>;
621
+ };
586
622
  twInput: {
587
623
  default: undefined;
588
624
  type: PropType<string | string[]>;
@@ -628,6 +664,8 @@ declare const autocomplete: import("vue").Ref<({
628
664
  visibleFocus: boolean;
629
665
  loading: boolean;
630
666
  loadingBottom: boolean;
667
+ optionColor: (option: RawOption) => string;
668
+ optionIcon: (option: RawOption) => string;
631
669
  dropdownShow: "always" | "focus";
632
670
  showModelValue: boolean;
633
671
  focusOnMount: boolean;
@@ -671,6 +709,8 @@ declare const autocomplete: import("vue").Ref<({
671
709
  visibleFocus: boolean;
672
710
  loading: boolean;
673
711
  loadingBottom: boolean;
712
+ optionColor: (option: RawOption) => string;
713
+ optionIcon: (option: RawOption) => string;
674
714
  dropdownShow: "always" | "focus";
675
715
  showModelValue: boolean;
676
716
  focusOnMount: boolean;
@@ -772,6 +812,14 @@ declare const autocomplete: import("vue").Ref<({
772
812
  default(): string;
773
813
  type: PropType<string>;
774
814
  };
815
+ optionColor: {
816
+ default: undefined;
817
+ type: PropType<(option: RawOption) => string>;
818
+ };
819
+ optionIcon: {
820
+ default: undefined;
821
+ type: PropType<(option: RawOption) => string>;
822
+ };
775
823
  twInput: {
776
824
  default: undefined;
777
825
  type: PropType<string | string[]>;
@@ -788,7 +836,7 @@ declare const autocomplete: import("vue").Ref<({
788
836
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
789
837
  onScrollBottom?: ((...args: any[]) => any) | undefined;
790
838
  onTyping?: ((...args: any[]) => any) | undefined;
791
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect")> & import("vue").ShallowUnwrapRef<{
839
+ }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("filter" | "select" | "size" | "required" | "icon" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "loading" | "loadingBottom" | "optionColor" | "optionIcon" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "twSelect")> & import("vue").ShallowUnwrapRef<{
792
840
  focus: () => void;
793
841
  blur: () => void;
794
842
  close: () => void;
@@ -945,6 +993,14 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
945
993
  default: undefined;
946
994
  type: PropType<SelectConfiguration | undefined>;
947
995
  };
996
+ optionColor: {
997
+ default: undefined;
998
+ type: PropType<(option: RawOption) => string>;
999
+ };
1000
+ optionIcon: {
1001
+ default: undefined;
1002
+ type: PropType<(option: RawOption) => string>;
1003
+ };
948
1004
  twInput: {
949
1005
  default: undefined;
950
1006
  type: PropType<string | string[]>;
@@ -1050,6 +1106,14 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
1050
1106
  default: undefined;
1051
1107
  type: PropType<SelectConfiguration | undefined>;
1052
1108
  };
1109
+ optionColor: {
1110
+ default: undefined;
1111
+ type: PropType<(option: RawOption) => string>;
1112
+ };
1113
+ optionIcon: {
1114
+ default: undefined;
1115
+ type: PropType<(option: RawOption) => string>;
1116
+ };
1053
1117
  twInput: {
1054
1118
  default: undefined;
1055
1119
  type: PropType<string | string[]>;
@@ -1071,6 +1135,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
1071
1135
  placeholder: string;
1072
1136
  hasError: boolean;
1073
1137
  visibleFocus: boolean;
1138
+ optionColor: (option: RawOption) => string;
1139
+ optionIcon: (option: RawOption) => string;
1074
1140
  dropdownShow: "always" | "focus";
1075
1141
  showModelValue: boolean;
1076
1142
  focusOnMount: boolean;
@@ -1161,6 +1227,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
1161
1227
  default: undefined;
1162
1228
  type: PropType<SelectConfiguration | undefined>;
1163
1229
  };
1230
+ optionColor: {
1231
+ default: undefined;
1232
+ type: PropType<(option: RawOption) => string>;
1233
+ };
1234
+ optionIcon: {
1235
+ default: undefined;
1236
+ type: PropType<(option: RawOption) => string>;
1237
+ };
1164
1238
  twInput: {
1165
1239
  default: undefined;
1166
1240
  type: PropType<string | string[]>;
@@ -1258,6 +1332,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
1258
1332
  default: undefined;
1259
1333
  type: PropType<SelectConfiguration | undefined>;
1260
1334
  };
1335
+ optionColor: {
1336
+ default: undefined;
1337
+ type: PropType<(option: RawOption) => string>;
1338
+ };
1339
+ optionIcon: {
1340
+ default: undefined;
1341
+ type: PropType<(option: RawOption) => string>;
1342
+ };
1261
1343
  twInput: {
1262
1344
  default: undefined;
1263
1345
  type: PropType<string | string[]>;
@@ -1279,6 +1361,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
1279
1361
  placeholder: string;
1280
1362
  hasError: boolean;
1281
1363
  visibleFocus: boolean;
1364
+ optionColor: (option: RawOption) => string;
1365
+ optionIcon: (option: RawOption) => string;
1282
1366
  dropdownShow: "always" | "focus";
1283
1367
  showModelValue: boolean;
1284
1368
  focusOnMount: boolean;