sprintify-ui 0.10.87 → 0.11.0

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 (116) hide show
  1. package/dist/{BaseCkeditor-Laq0HbvP.js → BaseCkeditor-Dcqohrsz.js} +14 -14
  2. package/dist/sprintify-ui.es.js +12480 -12553
  3. package/dist/style.css +2 -2
  4. package/dist/types/components/BaseActionItem.vue.d.ts +11 -5
  5. package/dist/types/components/BaseAddressForm.vue.d.ts +1 -1
  6. package/dist/types/components/BaseAlert.vue.d.ts +3 -21
  7. package/dist/types/components/BaseApp.vue.d.ts +2 -9
  8. package/dist/types/components/BaseAutocomplete.vue.d.ts +19 -643
  9. package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +21 -104
  10. package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +26 -1045
  11. package/dist/types/components/BaseAvatarGroup.vue.d.ts +1 -1
  12. package/dist/types/components/BaseBadge.vue.d.ts +3 -20
  13. package/dist/types/components/BaseBelongsTo.vue.d.ts +19 -1022
  14. package/dist/types/components/BaseBelongsToFetch.vue.d.ts +10 -745
  15. package/dist/types/components/BaseButton.vue.d.ts +6 -77
  16. package/dist/types/components/BaseButtonGroup.vue.d.ts +3 -159
  17. package/dist/types/components/BaseCard.vue.d.ts +2 -23
  18. package/dist/types/components/BaseCardRow.vue.d.ts +2 -16
  19. package/dist/types/components/BaseCkeditor.vue.d.ts +1 -1
  20. package/dist/types/components/BaseClipboard.vue.d.ts +2 -42
  21. package/dist/types/components/BaseCollapse.vue.d.ts +2 -26
  22. package/dist/types/components/BaseContainer.vue.d.ts +2 -12
  23. package/dist/types/components/BaseCounter.vue.d.ts +1 -1
  24. package/dist/types/components/BaseCropper.vue.d.ts +3 -35
  25. package/dist/types/components/BaseDataIterator.vue.d.ts +18 -11
  26. package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +2 -10
  27. package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +2 -16
  28. package/dist/types/components/BaseDataTable.vue.d.ts +54 -2141
  29. package/dist/types/components/BaseDataTableTemplate.vue.d.ts +2 -584
  30. package/dist/types/components/BaseDatePicker.vue.d.ts +2 -2
  31. package/dist/types/components/BaseDescriptionList.vue.d.ts +2 -7
  32. package/dist/types/components/BaseDescriptionListItem.vue.d.ts +2 -9
  33. package/dist/types/components/BaseDialog.vue.d.ts +3 -110
  34. package/dist/types/components/BaseDisplayRelativeTime.vue.d.ts +2 -51
  35. package/dist/types/components/BaseDraggable.vue.d.ts +2 -18
  36. package/dist/types/components/BaseDropdown.vue.d.ts +2 -147
  37. package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +3 -124
  38. package/dist/types/components/BaseField.vue.d.ts +3 -99
  39. package/dist/types/components/BaseFilePicker.vue.d.ts +2 -28
  40. package/dist/types/components/BaseFilePickerCrop.vue.d.ts +2 -80
  41. package/dist/types/components/BaseFileUploader.vue.d.ts +3 -173
  42. package/dist/types/components/BaseForm.vue.d.ts +3 -150
  43. package/dist/types/components/BaseGantt.vue.d.ts +40 -1141
  44. package/dist/types/components/BaseHasMany.vue.d.ts +18 -577
  45. package/dist/types/components/BaseHasManyFetch.vue.d.ts +3 -589
  46. package/dist/types/components/BaseInput.vue.d.ts +3 -3
  47. package/dist/types/components/BaseInputError.vue.d.ts +2 -19
  48. package/dist/types/components/BaseInputPercent.vue.d.ts +1 -1
  49. package/dist/types/components/BaseLayoutSidebar.vue.d.ts +2 -112
  50. package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +2 -113
  51. package/dist/types/components/BaseLayoutStacked.vue.d.ts +2 -52
  52. package/dist/types/components/BaseLayoutStackedConfigurable.vue.d.ts +2 -117
  53. package/dist/types/components/BaseLazy.vue.d.ts +2 -13
  54. package/dist/types/components/BaseMediaGallery.vue.d.ts +3 -3
  55. package/dist/types/components/BaseMediaGalleryItem.vue.d.ts +1 -1
  56. package/dist/types/components/BaseMediaLibrary.vue.d.ts +3 -207
  57. package/dist/types/components/BaseMediaList.vue.d.ts +3 -3
  58. package/dist/types/components/BaseMediaListItem.vue.d.ts +1 -1
  59. package/dist/types/components/BaseMediaPictures.vue.d.ts +3 -3
  60. package/dist/types/components/BaseMediaPicturesItem.vue.d.ts +1 -1
  61. package/dist/types/components/BaseMenu.vue.d.ts +2 -209
  62. package/dist/types/components/BaseMenuItem.vue.d.ts +1 -1
  63. package/dist/types/components/BaseModalCenter.vue.d.ts +2 -83
  64. package/dist/types/components/BaseModalSide.vue.d.ts +2 -80
  65. package/dist/types/components/BaseNavbar.vue.d.ts +2 -83
  66. package/dist/types/components/BasePassword.vue.d.ts +1 -1
  67. package/dist/types/components/BaseRadioGroup.vue.d.ts +2 -107
  68. package/dist/types/components/BaseReadMore.vue.d.ts +2 -28
  69. package/dist/types/components/BaseRichText.vue.d.ts +1 -1
  70. package/dist/types/components/BaseSelect.vue.d.ts +4 -148
  71. package/dist/types/components/BaseShortcut.vue.d.ts +1 -1
  72. package/dist/types/components/BaseSideNavigation.vue.d.ts +2 -7
  73. package/dist/types/components/BaseSideNavigationItem.vue.d.ts +3 -19
  74. package/dist/types/components/BaseSkeleton.vue.d.ts +1 -1
  75. package/dist/types/components/BaseSwitch.vue.d.ts +3 -120
  76. package/dist/types/components/BaseSystemAlert.vue.d.ts +3 -55
  77. package/dist/types/components/BaseTabItem.vue.d.ts +4 -27
  78. package/dist/types/components/BaseTable.vue.d.ts +3 -24
  79. package/dist/types/components/BaseTableBody.vue.d.ts +2 -4
  80. package/dist/types/components/BaseTableCell.vue.d.ts +6 -36
  81. package/dist/types/components/BaseTableColumn.vue.d.ts +4 -4
  82. package/dist/types/components/BaseTableHead.vue.d.ts +2 -9
  83. package/dist/types/components/BaseTableHeader.vue.d.ts +4 -40
  84. package/dist/types/components/BaseTableRow.vue.d.ts +4 -38
  85. package/dist/types/components/BaseTabs.vue.d.ts +2 -16
  86. package/dist/types/components/BaseTagAutocomplete.vue.d.ts +25 -571
  87. package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +3 -796
  88. package/dist/types/components/BaseTextarea.vue.d.ts +1 -1
  89. package/dist/types/components/BaseTextareaAutoresize.vue.d.ts +1 -1
  90. package/dist/types/components/BaseTimePicker.vue.d.ts +1 -1
  91. package/dist/types/components/BaseTooltip.vue.d.ts +2 -35
  92. package/dist/types/services/gantt/types.d.ts +18 -8
  93. package/package.json +6 -9
  94. package/src/changelog.mdx +1 -1
  95. package/src/components/BaseAssign.mdx +1 -1
  96. package/src/components/BaseAutocomplete.stories.js +10 -0
  97. package/src/components/BaseAutocomplete.vue +11 -1
  98. package/src/components/BaseAutocompleteDrawer.vue +52 -1
  99. package/src/components/BaseAutocompleteFetch.stories.js +6 -0
  100. package/src/components/BaseAutocompleteFetch.vue +15 -0
  101. package/src/components/BaseBelongsTo.stories.js +5 -0
  102. package/src/components/BaseBelongsTo.vue +10 -0
  103. package/src/components/BaseBelongsToFetch.stories.js +6 -0
  104. package/src/components/BaseBelongsToFetch.vue +9 -0
  105. package/src/components/BaseForm.mdx +1 -1
  106. package/src/components/BaseGantt.mdx +79 -0
  107. package/src/components/BaseGantt.stories.js +25 -10
  108. package/src/components/BaseGantt.vue +192 -58
  109. package/src/components/BaseHasMany.stories.js +5 -0
  110. package/src/components/BaseHasMany.vue +10 -0
  111. package/src/components/BaseHasManyFetch.stories.js +12 -0
  112. package/src/components/BaseTagAutocomplete.stories.js +5 -0
  113. package/src/components/BaseTagAutocomplete.vue +34 -1
  114. package/src/components/BaseTagAutocompleteFetch.stories.js +6 -0
  115. package/src/services/gantt/format.ts +30 -7
  116. package/src/services/gantt/types.ts +18 -8
@@ -1,4 +1,3 @@
1
- import BaseAutocompleteFetch from './BaseAutocompleteFetch.vue';
2
1
  import { RawOption, SelectConfiguration } from '@/types';
3
2
  import { Size } from '@/utils/sizes';
4
3
  type __VLS_Props = {
@@ -23,717 +22,10 @@ type __VLS_Props = {
23
22
  showRemoveButton?: boolean;
24
23
  emptyOptionLabel?: string;
25
24
  select?: SelectConfiguration;
25
+ optionColor?: (option: RawOption) => string;
26
+ optionIcon?: (option: RawOption) => string;
27
+ icon?: string;
26
28
  };
27
- declare const autocompleteFetch: import("vue").Ref<({
28
- $: import("vue").ComponentInternalInstance;
29
- $data: {};
30
- $props: Partial<{
31
- select: SelectConfiguration | undefined;
32
- size: "xs" | "sm" | "md" | "lg" | "xl";
33
- required: boolean;
34
- inline: boolean;
35
- disabled: boolean;
36
- name: string;
37
- modelValue: RawOption | null | undefined;
38
- placeholder: string;
39
- hasError: boolean;
40
- visibleFocus: boolean;
41
- dropdownShow: "always" | "focus";
42
- showModelValue: boolean;
43
- focusOnMount: boolean;
44
- showEmptyOption: boolean;
45
- showRemoveButton: boolean;
46
- emptyOptionLabel: string;
47
- twInput: string | string[];
48
- queryKey: string;
49
- }> & Omit<{
50
- readonly required: boolean;
51
- readonly inline: boolean;
52
- readonly disabled: boolean;
53
- readonly hasError: boolean;
54
- readonly visibleFocus: boolean;
55
- readonly url: string;
56
- readonly labelKey: string | ((option: RawOption) => string);
57
- readonly valueKey: string | ((option: RawOption) => string);
58
- readonly dropdownShow: "always" | "focus";
59
- readonly showModelValue: boolean;
60
- readonly focusOnMount: boolean;
61
- readonly showEmptyOption: boolean;
62
- readonly showRemoveButton: boolean;
63
- readonly queryKey: string;
64
- readonly select?: SelectConfiguration | undefined;
65
- readonly size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
66
- readonly name?: string | undefined;
67
- readonly modelValue?: RawOption | null | undefined;
68
- readonly placeholder?: string | undefined;
69
- readonly emptyOptionLabel?: string | undefined;
70
- readonly twInput?: string | string[] | undefined;
71
- readonly onFocus?: ((...args: any[]) => any) | undefined;
72
- readonly onClear?: ((...args: any[]) => any) | undefined;
73
- readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
74
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
75
- readonly onTyping?: ((...args: any[]) => any) | undefined;
76
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "select" | "size" | "required" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "queryKey">;
77
- $attrs: {
78
- [x: string]: unknown;
79
- };
80
- $refs: {
81
- [x: string]: unknown;
82
- };
83
- $slots: Readonly<{
84
- [name: string]: import("vue").Slot<any> | undefined;
85
- }>;
86
- $root: import("vue").ComponentPublicInstance | null;
87
- $parent: import("vue").ComponentPublicInstance | null;
88
- $host: Element | null;
89
- $emit: ((event: "focus", ...args: any[]) => void) & ((event: "clear", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void) & ((event: "typing", ...args: any[]) => void);
90
- $el: any;
91
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
92
- modelValue: {
93
- default: undefined;
94
- type: import("vue").PropType<RawOption | null | undefined>;
95
- };
96
- url: {
97
- required: true;
98
- type: StringConstructor;
99
- };
100
- labelKey: {
101
- required: true;
102
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
103
- };
104
- valueKey: {
105
- required: true;
106
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
107
- };
108
- name: {
109
- default: undefined;
110
- type: StringConstructor;
111
- };
112
- placeholder: {
113
- default: undefined;
114
- type: StringConstructor;
115
- };
116
- required: {
117
- default: boolean;
118
- type: BooleanConstructor;
119
- };
120
- disabled: {
121
- default: boolean;
122
- type: BooleanConstructor;
123
- };
124
- queryKey: {
125
- default: string;
126
- type: StringConstructor;
127
- };
128
- hasError: {
129
- default: boolean;
130
- type: BooleanConstructor;
131
- };
132
- inline: {
133
- default: boolean;
134
- type: BooleanConstructor;
135
- };
136
- size: {
137
- default: undefined;
138
- type: import("vue").PropType<Size>;
139
- };
140
- dropdownShow: {
141
- default: string;
142
- type: import("vue").PropType<"focus" | "always">;
143
- };
144
- showModelValue: {
145
- default: boolean;
146
- type: BooleanConstructor;
147
- };
148
- visibleFocus: {
149
- default: boolean;
150
- type: BooleanConstructor;
151
- };
152
- focusOnMount: {
153
- default: boolean;
154
- type: BooleanConstructor;
155
- };
156
- showEmptyOption: {
157
- default: boolean;
158
- type: BooleanConstructor;
159
- };
160
- showRemoveButton: {
161
- default: boolean;
162
- type: BooleanConstructor;
163
- };
164
- emptyOptionLabel: {
165
- default: undefined;
166
- type: StringConstructor;
167
- };
168
- select: {
169
- default: undefined;
170
- type: import("vue").PropType<SelectConfiguration | undefined>;
171
- };
172
- twInput: {
173
- default: undefined;
174
- type: import("vue").PropType<string | string[]>;
175
- };
176
- }>> & Readonly<{
177
- onFocus?: ((...args: any[]) => any) | undefined;
178
- onClear?: ((...args: any[]) => any) | undefined;
179
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
180
- onScrollBottom?: ((...args: any[]) => any) | undefined;
181
- onTyping?: ((...args: any[]) => any) | undefined;
182
- }>, {
183
- focus: () => void | undefined;
184
- blur: () => void | undefined;
185
- open: () => void | undefined;
186
- close: () => void | undefined;
187
- setKeywords: (input: string) => void | undefined;
188
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
189
- focus: (...args: any[]) => void;
190
- clear: (...args: any[]) => void;
191
- "update:modelValue": (...args: any[]) => void;
192
- scrollBottom: (...args: any[]) => void;
193
- typing: (...args: any[]) => void;
194
- }, string, {
195
- select: SelectConfiguration | undefined;
196
- size: "xs" | "sm" | "md" | "lg" | "xl";
197
- required: boolean;
198
- inline: boolean;
199
- disabled: boolean;
200
- name: string;
201
- modelValue: RawOption | null | undefined;
202
- placeholder: string;
203
- hasError: boolean;
204
- visibleFocus: boolean;
205
- dropdownShow: "always" | "focus";
206
- showModelValue: boolean;
207
- focusOnMount: boolean;
208
- showEmptyOption: boolean;
209
- showRemoveButton: boolean;
210
- emptyOptionLabel: string;
211
- twInput: string | string[];
212
- queryKey: string;
213
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
214
- beforeCreate?: (() => void) | (() => void)[];
215
- created?: (() => void) | (() => void)[];
216
- beforeMount?: (() => void) | (() => void)[];
217
- mounted?: (() => void) | (() => void)[];
218
- beforeUpdate?: (() => void) | (() => void)[];
219
- updated?: (() => void) | (() => void)[];
220
- activated?: (() => void) | (() => void)[];
221
- deactivated?: (() => void) | (() => void)[];
222
- beforeDestroy?: (() => void) | (() => void)[];
223
- beforeUnmount?: (() => void) | (() => void)[];
224
- destroyed?: (() => void) | (() => void)[];
225
- unmounted?: (() => void) | (() => void)[];
226
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
227
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
228
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
229
- };
230
- $forceUpdate: () => void;
231
- $nextTick: typeof import("vue").nextTick;
232
- $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;
233
- } & Readonly<{
234
- select: SelectConfiguration | undefined;
235
- size: "xs" | "sm" | "md" | "lg" | "xl";
236
- required: boolean;
237
- inline: boolean;
238
- disabled: boolean;
239
- name: string;
240
- modelValue: RawOption | null | undefined;
241
- placeholder: string;
242
- hasError: boolean;
243
- visibleFocus: boolean;
244
- dropdownShow: "always" | "focus";
245
- showModelValue: boolean;
246
- focusOnMount: boolean;
247
- showEmptyOption: boolean;
248
- showRemoveButton: boolean;
249
- emptyOptionLabel: string;
250
- twInput: string | string[];
251
- queryKey: string;
252
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
253
- modelValue: {
254
- default: undefined;
255
- type: import("vue").PropType<RawOption | null | undefined>;
256
- };
257
- url: {
258
- required: true;
259
- type: StringConstructor;
260
- };
261
- labelKey: {
262
- required: true;
263
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
264
- };
265
- valueKey: {
266
- required: true;
267
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
268
- };
269
- name: {
270
- default: undefined;
271
- type: StringConstructor;
272
- };
273
- placeholder: {
274
- default: undefined;
275
- type: StringConstructor;
276
- };
277
- required: {
278
- default: boolean;
279
- type: BooleanConstructor;
280
- };
281
- disabled: {
282
- default: boolean;
283
- type: BooleanConstructor;
284
- };
285
- queryKey: {
286
- default: string;
287
- type: StringConstructor;
288
- };
289
- hasError: {
290
- default: boolean;
291
- type: BooleanConstructor;
292
- };
293
- inline: {
294
- default: boolean;
295
- type: BooleanConstructor;
296
- };
297
- size: {
298
- default: undefined;
299
- type: import("vue").PropType<Size>;
300
- };
301
- dropdownShow: {
302
- default: string;
303
- type: import("vue").PropType<"focus" | "always">;
304
- };
305
- showModelValue: {
306
- default: boolean;
307
- type: BooleanConstructor;
308
- };
309
- visibleFocus: {
310
- default: boolean;
311
- type: BooleanConstructor;
312
- };
313
- focusOnMount: {
314
- default: boolean;
315
- type: BooleanConstructor;
316
- };
317
- showEmptyOption: {
318
- default: boolean;
319
- type: BooleanConstructor;
320
- };
321
- showRemoveButton: {
322
- default: boolean;
323
- type: BooleanConstructor;
324
- };
325
- emptyOptionLabel: {
326
- default: undefined;
327
- type: StringConstructor;
328
- };
329
- select: {
330
- default: undefined;
331
- type: import("vue").PropType<SelectConfiguration | undefined>;
332
- };
333
- twInput: {
334
- default: undefined;
335
- type: import("vue").PropType<string | string[]>;
336
- };
337
- }>> & Readonly<{
338
- onFocus?: ((...args: any[]) => any) | undefined;
339
- onClear?: ((...args: any[]) => any) | undefined;
340
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
341
- onScrollBottom?: ((...args: any[]) => any) | undefined;
342
- onTyping?: ((...args: any[]) => any) | undefined;
343
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("select" | "size" | "required" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "queryKey")> & import("vue").ShallowUnwrapRef<{
344
- focus: () => void | undefined;
345
- blur: () => void | undefined;
346
- open: () => void | undefined;
347
- close: () => void | undefined;
348
- setKeywords: (input: string) => void | undefined;
349
- }> & {} & import("vue").ComponentCustomProperties & {} & {
350
- $slots: {
351
- option?: ((props: {
352
- focus: () => void;
353
- blur: () => void;
354
- open: () => void;
355
- close: () => void;
356
- keywords: import("vue").ComputedRef<string>;
357
- option: RawOption | null;
358
- value: import("@/types").OptionValue;
359
- label: string;
360
- selected: boolean;
361
- active: boolean;
362
- }) => any) | undefined;
363
- footer?: ((props: {
364
- keywords: string;
365
- focus: () => void;
366
- blur: () => void;
367
- open: () => void;
368
- close: () => void;
369
- options: import("@/types").NormalizedOption[];
370
- }) => any) | undefined;
371
- empty?: ((props: {
372
- firstSearch: boolean;
373
- focus: () => void;
374
- blur: () => void;
375
- open: () => void;
376
- close: () => void;
377
- keywords: import("vue").ComputedRef<string>;
378
- }) => any) | undefined;
379
- };
380
- }) | null, ({
381
- $: import("vue").ComponentInternalInstance;
382
- $data: {};
383
- $props: Partial<{
384
- select: SelectConfiguration | undefined;
385
- size: "xs" | "sm" | "md" | "lg" | "xl";
386
- required: boolean;
387
- inline: boolean;
388
- disabled: boolean;
389
- name: string;
390
- modelValue: RawOption | null | undefined;
391
- placeholder: string;
392
- hasError: boolean;
393
- visibleFocus: boolean;
394
- dropdownShow: "always" | "focus";
395
- showModelValue: boolean;
396
- focusOnMount: boolean;
397
- showEmptyOption: boolean;
398
- showRemoveButton: boolean;
399
- emptyOptionLabel: string;
400
- twInput: string | string[];
401
- queryKey: string;
402
- }> & Omit<{
403
- readonly required: boolean;
404
- readonly inline: boolean;
405
- readonly disabled: boolean;
406
- readonly hasError: boolean;
407
- readonly visibleFocus: boolean;
408
- readonly url: string;
409
- readonly labelKey: string | ((option: RawOption) => string);
410
- readonly valueKey: string | ((option: RawOption) => string);
411
- readonly dropdownShow: "always" | "focus";
412
- readonly showModelValue: boolean;
413
- readonly focusOnMount: boolean;
414
- readonly showEmptyOption: boolean;
415
- readonly showRemoveButton: boolean;
416
- readonly queryKey: string;
417
- readonly select?: SelectConfiguration | undefined;
418
- readonly size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
419
- readonly name?: string | undefined;
420
- readonly modelValue?: RawOption | null | undefined;
421
- readonly placeholder?: string | undefined;
422
- readonly emptyOptionLabel?: string | undefined;
423
- readonly twInput?: string | string[] | undefined;
424
- readonly onFocus?: ((...args: any[]) => any) | undefined;
425
- readonly onClear?: ((...args: any[]) => any) | undefined;
426
- readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
427
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
428
- readonly onTyping?: ((...args: any[]) => any) | undefined;
429
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "select" | "size" | "required" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "queryKey">;
430
- $attrs: {
431
- [x: string]: unknown;
432
- };
433
- $refs: {
434
- [x: string]: unknown;
435
- };
436
- $slots: Readonly<{
437
- [name: string]: import("vue").Slot<any> | undefined;
438
- }>;
439
- $root: import("vue").ComponentPublicInstance | null;
440
- $parent: import("vue").ComponentPublicInstance | null;
441
- $host: Element | null;
442
- $emit: ((event: "focus", ...args: any[]) => void) & ((event: "clear", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void) & ((event: "typing", ...args: any[]) => void);
443
- $el: any;
444
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
445
- modelValue: {
446
- default: undefined;
447
- type: import("vue").PropType<RawOption | null | undefined>;
448
- };
449
- url: {
450
- required: true;
451
- type: StringConstructor;
452
- };
453
- labelKey: {
454
- required: true;
455
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
456
- };
457
- valueKey: {
458
- required: true;
459
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
460
- };
461
- name: {
462
- default: undefined;
463
- type: StringConstructor;
464
- };
465
- placeholder: {
466
- default: undefined;
467
- type: StringConstructor;
468
- };
469
- required: {
470
- default: boolean;
471
- type: BooleanConstructor;
472
- };
473
- disabled: {
474
- default: boolean;
475
- type: BooleanConstructor;
476
- };
477
- queryKey: {
478
- default: string;
479
- type: StringConstructor;
480
- };
481
- hasError: {
482
- default: boolean;
483
- type: BooleanConstructor;
484
- };
485
- inline: {
486
- default: boolean;
487
- type: BooleanConstructor;
488
- };
489
- size: {
490
- default: undefined;
491
- type: import("vue").PropType<Size>;
492
- };
493
- dropdownShow: {
494
- default: string;
495
- type: import("vue").PropType<"focus" | "always">;
496
- };
497
- showModelValue: {
498
- default: boolean;
499
- type: BooleanConstructor;
500
- };
501
- visibleFocus: {
502
- default: boolean;
503
- type: BooleanConstructor;
504
- };
505
- focusOnMount: {
506
- default: boolean;
507
- type: BooleanConstructor;
508
- };
509
- showEmptyOption: {
510
- default: boolean;
511
- type: BooleanConstructor;
512
- };
513
- showRemoveButton: {
514
- default: boolean;
515
- type: BooleanConstructor;
516
- };
517
- emptyOptionLabel: {
518
- default: undefined;
519
- type: StringConstructor;
520
- };
521
- select: {
522
- default: undefined;
523
- type: import("vue").PropType<SelectConfiguration | undefined>;
524
- };
525
- twInput: {
526
- default: undefined;
527
- type: import("vue").PropType<string | string[]>;
528
- };
529
- }>> & Readonly<{
530
- onFocus?: ((...args: any[]) => any) | undefined;
531
- onClear?: ((...args: any[]) => any) | undefined;
532
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
533
- onScrollBottom?: ((...args: any[]) => any) | undefined;
534
- onTyping?: ((...args: any[]) => any) | undefined;
535
- }>, {
536
- focus: () => void | undefined;
537
- blur: () => void | undefined;
538
- open: () => void | undefined;
539
- close: () => void | undefined;
540
- setKeywords: (input: string) => void | undefined;
541
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
542
- focus: (...args: any[]) => void;
543
- clear: (...args: any[]) => void;
544
- "update:modelValue": (...args: any[]) => void;
545
- scrollBottom: (...args: any[]) => void;
546
- typing: (...args: any[]) => void;
547
- }, string, {
548
- select: SelectConfiguration | undefined;
549
- size: "xs" | "sm" | "md" | "lg" | "xl";
550
- required: boolean;
551
- inline: boolean;
552
- disabled: boolean;
553
- name: string;
554
- modelValue: RawOption | null | undefined;
555
- placeholder: string;
556
- hasError: boolean;
557
- visibleFocus: boolean;
558
- dropdownShow: "always" | "focus";
559
- showModelValue: boolean;
560
- focusOnMount: boolean;
561
- showEmptyOption: boolean;
562
- showRemoveButton: boolean;
563
- emptyOptionLabel: string;
564
- twInput: string | string[];
565
- queryKey: string;
566
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
567
- beforeCreate?: (() => void) | (() => void)[];
568
- created?: (() => void) | (() => void)[];
569
- beforeMount?: (() => void) | (() => void)[];
570
- mounted?: (() => void) | (() => void)[];
571
- beforeUpdate?: (() => void) | (() => void)[];
572
- updated?: (() => void) | (() => void)[];
573
- activated?: (() => void) | (() => void)[];
574
- deactivated?: (() => void) | (() => void)[];
575
- beforeDestroy?: (() => void) | (() => void)[];
576
- beforeUnmount?: (() => void) | (() => void)[];
577
- destroyed?: (() => void) | (() => void)[];
578
- unmounted?: (() => void) | (() => void)[];
579
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
580
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
581
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
582
- };
583
- $forceUpdate: () => void;
584
- $nextTick: typeof import("vue").nextTick;
585
- $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;
586
- } & Readonly<{
587
- select: SelectConfiguration | undefined;
588
- size: "xs" | "sm" | "md" | "lg" | "xl";
589
- required: boolean;
590
- inline: boolean;
591
- disabled: boolean;
592
- name: string;
593
- modelValue: RawOption | null | undefined;
594
- placeholder: string;
595
- hasError: boolean;
596
- visibleFocus: boolean;
597
- dropdownShow: "always" | "focus";
598
- showModelValue: boolean;
599
- focusOnMount: boolean;
600
- showEmptyOption: boolean;
601
- showRemoveButton: boolean;
602
- emptyOptionLabel: string;
603
- twInput: string | string[];
604
- queryKey: string;
605
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
606
- modelValue: {
607
- default: undefined;
608
- type: import("vue").PropType<RawOption | null | undefined>;
609
- };
610
- url: {
611
- required: true;
612
- type: StringConstructor;
613
- };
614
- labelKey: {
615
- required: true;
616
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
617
- };
618
- valueKey: {
619
- required: true;
620
- type: import("vue").PropType<string | ((option: RawOption) => string)>;
621
- };
622
- name: {
623
- default: undefined;
624
- type: StringConstructor;
625
- };
626
- placeholder: {
627
- default: undefined;
628
- type: StringConstructor;
629
- };
630
- required: {
631
- default: boolean;
632
- type: BooleanConstructor;
633
- };
634
- disabled: {
635
- default: boolean;
636
- type: BooleanConstructor;
637
- };
638
- queryKey: {
639
- default: string;
640
- type: StringConstructor;
641
- };
642
- hasError: {
643
- default: boolean;
644
- type: BooleanConstructor;
645
- };
646
- inline: {
647
- default: boolean;
648
- type: BooleanConstructor;
649
- };
650
- size: {
651
- default: undefined;
652
- type: import("vue").PropType<Size>;
653
- };
654
- dropdownShow: {
655
- default: string;
656
- type: import("vue").PropType<"focus" | "always">;
657
- };
658
- showModelValue: {
659
- default: boolean;
660
- type: BooleanConstructor;
661
- };
662
- visibleFocus: {
663
- default: boolean;
664
- type: BooleanConstructor;
665
- };
666
- focusOnMount: {
667
- default: boolean;
668
- type: BooleanConstructor;
669
- };
670
- showEmptyOption: {
671
- default: boolean;
672
- type: BooleanConstructor;
673
- };
674
- showRemoveButton: {
675
- default: boolean;
676
- type: BooleanConstructor;
677
- };
678
- emptyOptionLabel: {
679
- default: undefined;
680
- type: StringConstructor;
681
- };
682
- select: {
683
- default: undefined;
684
- type: import("vue").PropType<SelectConfiguration | undefined>;
685
- };
686
- twInput: {
687
- default: undefined;
688
- type: import("vue").PropType<string | string[]>;
689
- };
690
- }>> & Readonly<{
691
- onFocus?: ((...args: any[]) => any) | undefined;
692
- onClear?: ((...args: any[]) => any) | undefined;
693
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
694
- onScrollBottom?: ((...args: any[]) => any) | undefined;
695
- onTyping?: ((...args: any[]) => any) | undefined;
696
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("select" | "size" | "required" | "inline" | "disabled" | "name" | "modelValue" | "placeholder" | "hasError" | "visibleFocus" | "dropdownShow" | "showModelValue" | "focusOnMount" | "showEmptyOption" | "showRemoveButton" | "emptyOptionLabel" | "twInput" | "queryKey")> & import("vue").ShallowUnwrapRef<{
697
- focus: () => void | undefined;
698
- blur: () => void | undefined;
699
- open: () => void | undefined;
700
- close: () => void | undefined;
701
- setKeywords: (input: string) => void | undefined;
702
- }> & {} & import("vue").ComponentCustomProperties & {} & {
703
- $slots: {
704
- option?: ((props: {
705
- focus: () => void;
706
- blur: () => void;
707
- open: () => void;
708
- close: () => void;
709
- keywords: import("vue").ComputedRef<string>;
710
- option: RawOption | null;
711
- value: import("@/types").OptionValue;
712
- label: string;
713
- selected: boolean;
714
- active: boolean;
715
- }) => any) | undefined;
716
- footer?: ((props: {
717
- keywords: string;
718
- focus: () => void;
719
- blur: () => void;
720
- open: () => void;
721
- close: () => void;
722
- options: import("@/types").NormalizedOption[];
723
- }) => any) | undefined;
724
- empty?: ((props: {
725
- firstSearch: boolean;
726
- focus: () => void;
727
- blur: () => void;
728
- open: () => void;
729
- close: () => void;
730
- keywords: import("vue").ComputedRef<string>;
731
- }) => any) | undefined;
732
- };
733
- }) | null>;
734
- declare const model: import("vue").Ref<RawOption | null, RawOption | null>;
735
- declare function onUpdate(newModel: RawOption | null): void;
736
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
737
29
  declare var __VLS_10: {
738
30
  focus: () => void;
739
31
  blur: () => void;
@@ -760,43 +52,13 @@ declare var __VLS_10: {
760
52
  close: () => void;
761
53
  options: import("@/types").NormalizedOption[];
762
54
  };
763
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
55
+ type __VLS_Slots = {} & {
764
56
  option?: (props: typeof __VLS_10) => any;
765
57
  } & {
766
58
  empty?: (props: typeof __VLS_12) => any;
767
59
  } & {
768
60
  footer?: (props: typeof __VLS_14) => any;
769
- }>;
770
- declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
771
- BaseAutocompleteFetch: typeof BaseAutocompleteFetch;
772
- autocompleteFetch: typeof autocompleteFetch;
773
- model: typeof model;
774
- onUpdate: typeof onUpdate;
775
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
776
- "update:modelValue": (...args: any[]) => void;
777
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
778
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
779
- }>, {
780
- select: SelectConfiguration;
781
- size: Size;
782
- required: boolean;
783
- inline: boolean;
784
- disabled: boolean;
785
- name: string;
786
- modelValue: string | number | null;
787
- placeholder: string;
788
- hasError: boolean;
789
- visibleFocus: boolean;
790
- primaryKey: string;
791
- dropdownShow: "focus" | "always";
792
- showModelValue: boolean;
793
- focusOnMount: boolean;
794
- showEmptyOption: boolean;
795
- showRemoveButton: boolean;
796
- emptyOptionLabel: string;
797
- showRouteUrl: (id: string | number) => string;
798
- currentModel: RawOption | null;
799
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
+ };
800
62
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
801
63
  focus: () => void | undefined;
802
64
  blur: () => void | undefined;
@@ -809,16 +71,19 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
809
71
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
810
72
  }>, {
811
73
  select: SelectConfiguration;
74
+ placeholder: string;
75
+ inline: boolean;
812
76
  size: Size;
813
77
  required: boolean;
814
- inline: boolean;
78
+ icon: string;
815
79
  disabled: boolean;
816
80
  name: string;
817
81
  modelValue: string | number | null;
818
- placeholder: string;
819
82
  hasError: boolean;
820
83
  visibleFocus: boolean;
821
84
  primaryKey: string;
85
+ optionColor: (option: RawOption) => string;
86
+ optionIcon: (option: RawOption) => string;
822
87
  dropdownShow: "focus" | "always";
823
88
  showModelValue: boolean;
824
89
  focusOnMount: boolean;