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,473 +1,6 @@
1
1
  import { RawOption } from '@/types';
2
2
  import { PropType } from 'vue';
3
- import BaseTagAutocomplete from './BaseTagAutocomplete.vue';
4
3
  import { Size } from '@/utils/sizes';
5
- declare const tagAutocompleteFetch: import("vue").Ref<({
6
- $: import("vue").ComponentInternalInstance;
7
- $data: {};
8
- $props: Partial<{
9
- required: boolean;
10
- disabled: boolean;
11
- placeholder: string;
12
- hasError: boolean;
13
- max: number;
14
- focusOnMount: boolean;
15
- queryKey: string;
16
- }> & Omit<{
17
- readonly required: boolean;
18
- readonly disabled: boolean;
19
- readonly modelValue: RawOption[] | null;
20
- readonly hasError: boolean;
21
- readonly url: string;
22
- readonly labelKey: string | ((option: RawOption) => string);
23
- readonly valueKey: string | ((option: RawOption) => string);
24
- readonly focusOnMount: boolean;
25
- readonly queryKey: string;
26
- readonly placeholder?: string | undefined;
27
- readonly max?: number | undefined;
28
- readonly onFocus?: ((...args: any[]) => any) | undefined;
29
- readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
30
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
31
- readonly onTyping?: ((...args: any[]) => any) | undefined;
32
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "disabled" | "placeholder" | "hasError" | "max" | "focusOnMount" | "queryKey">;
33
- $attrs: {
34
- [x: string]: unknown;
35
- };
36
- $refs: {
37
- [x: string]: unknown;
38
- };
39
- $slots: Readonly<{
40
- [name: string]: import("vue").Slot<any> | undefined;
41
- }>;
42
- $root: import("vue").ComponentPublicInstance | null;
43
- $parent: import("vue").ComponentPublicInstance | null;
44
- $host: Element | null;
45
- $emit: ((event: "focus", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void) & ((event: "typing", ...args: any[]) => void);
46
- $el: any;
47
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
48
- modelValue: {
49
- required: true;
50
- type: PropType<RawOption[] | null>;
51
- };
52
- url: {
53
- required: true;
54
- type: StringConstructor;
55
- };
56
- labelKey: {
57
- required: true;
58
- type: PropType<string | ((option: RawOption) => string)>;
59
- };
60
- valueKey: {
61
- required: true;
62
- type: PropType<string | ((option: RawOption) => string)>;
63
- };
64
- placeholder: {
65
- default: undefined;
66
- type: StringConstructor;
67
- };
68
- required: {
69
- default: boolean;
70
- type: BooleanConstructor;
71
- };
72
- disabled: {
73
- default: boolean;
74
- type: BooleanConstructor;
75
- };
76
- max: {
77
- default: undefined;
78
- type: NumberConstructor;
79
- };
80
- queryKey: {
81
- default: string;
82
- type: StringConstructor;
83
- };
84
- hasError: {
85
- default: boolean;
86
- type: BooleanConstructor;
87
- };
88
- focusOnMount: {
89
- default: boolean;
90
- type: BooleanConstructor;
91
- };
92
- }>> & Readonly<{
93
- onFocus?: ((...args: any[]) => any) | undefined;
94
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
95
- onScrollBottom?: ((...args: any[]) => any) | undefined;
96
- onTyping?: ((...args: any[]) => any) | undefined;
97
- }>, {
98
- focus: () => void | undefined;
99
- blur: () => void | undefined;
100
- open: () => void | undefined;
101
- close: () => void | undefined;
102
- setKeywords: (input: string) => void | undefined;
103
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
104
- focus: (...args: any[]) => void;
105
- "update:modelValue": (...args: any[]) => void;
106
- scrollBottom: (...args: any[]) => void;
107
- typing: (...args: any[]) => void;
108
- }, string, {
109
- required: boolean;
110
- disabled: boolean;
111
- placeholder: string;
112
- hasError: boolean;
113
- max: number;
114
- focusOnMount: boolean;
115
- queryKey: string;
116
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
117
- beforeCreate?: (() => void) | (() => void)[];
118
- created?: (() => void) | (() => void)[];
119
- beforeMount?: (() => void) | (() => void)[];
120
- mounted?: (() => void) | (() => void)[];
121
- beforeUpdate?: (() => void) | (() => void)[];
122
- updated?: (() => void) | (() => void)[];
123
- activated?: (() => void) | (() => void)[];
124
- deactivated?: (() => void) | (() => void)[];
125
- beforeDestroy?: (() => void) | (() => void)[];
126
- beforeUnmount?: (() => void) | (() => void)[];
127
- destroyed?: (() => void) | (() => void)[];
128
- unmounted?: (() => void) | (() => void)[];
129
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
130
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
131
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
132
- };
133
- $forceUpdate: () => void;
134
- $nextTick: typeof import("vue").nextTick;
135
- $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;
136
- } & Readonly<{
137
- required: boolean;
138
- disabled: boolean;
139
- placeholder: string;
140
- hasError: boolean;
141
- max: number;
142
- focusOnMount: boolean;
143
- queryKey: string;
144
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
145
- modelValue: {
146
- required: true;
147
- type: PropType<RawOption[] | null>;
148
- };
149
- url: {
150
- required: true;
151
- type: StringConstructor;
152
- };
153
- labelKey: {
154
- required: true;
155
- type: PropType<string | ((option: RawOption) => string)>;
156
- };
157
- valueKey: {
158
- required: true;
159
- type: PropType<string | ((option: RawOption) => string)>;
160
- };
161
- placeholder: {
162
- default: undefined;
163
- type: StringConstructor;
164
- };
165
- required: {
166
- default: boolean;
167
- type: BooleanConstructor;
168
- };
169
- disabled: {
170
- default: boolean;
171
- type: BooleanConstructor;
172
- };
173
- max: {
174
- default: undefined;
175
- type: NumberConstructor;
176
- };
177
- queryKey: {
178
- default: string;
179
- type: StringConstructor;
180
- };
181
- hasError: {
182
- default: boolean;
183
- type: BooleanConstructor;
184
- };
185
- focusOnMount: {
186
- default: boolean;
187
- type: BooleanConstructor;
188
- };
189
- }>> & Readonly<{
190
- onFocus?: ((...args: any[]) => any) | undefined;
191
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
192
- onScrollBottom?: ((...args: any[]) => any) | undefined;
193
- onTyping?: ((...args: any[]) => any) | undefined;
194
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("required" | "disabled" | "placeholder" | "hasError" | "max" | "focusOnMount" | "queryKey")> & import("vue").ShallowUnwrapRef<{
195
- focus: () => void | undefined;
196
- blur: () => void | undefined;
197
- open: () => void | undefined;
198
- close: () => void | undefined;
199
- setKeywords: (input: string) => void | undefined;
200
- }> & {} & import("vue").ComponentCustomProperties & {} & {
201
- $slots: {
202
- items?: ((props: {
203
- items: import("@/types").NormalizedOption[];
204
- removeOption: (option: import("@/types").NormalizedOption) => void;
205
- disabled: boolean;
206
- }) => any) | undefined;
207
- option?: ((props: {
208
- focus: () => void;
209
- blur: () => void;
210
- open: () => void;
211
- close: () => void;
212
- keywords: import("vue").ComputedRef<string>;
213
- option: RawOption | null;
214
- value: import("@/types").OptionValue;
215
- label: string;
216
- selected: boolean;
217
- active: boolean;
218
- }) => any) | undefined;
219
- footer?: ((props: {
220
- keywords: string;
221
- focus: () => void;
222
- blur: () => void;
223
- open: () => void;
224
- close: () => void;
225
- options: import("@/types").NormalizedOption[];
226
- }) => any) | undefined;
227
- empty?: ((props: {
228
- firstSearch: boolean;
229
- focus: () => void;
230
- blur: () => void;
231
- open: () => void;
232
- close: () => void;
233
- keywords: import("vue").ComputedRef<string>;
234
- }) => any) | undefined;
235
- };
236
- }) | null, ({
237
- $: import("vue").ComponentInternalInstance;
238
- $data: {};
239
- $props: Partial<{
240
- required: boolean;
241
- disabled: boolean;
242
- placeholder: string;
243
- hasError: boolean;
244
- max: number;
245
- focusOnMount: boolean;
246
- queryKey: string;
247
- }> & Omit<{
248
- readonly required: boolean;
249
- readonly disabled: boolean;
250
- readonly modelValue: RawOption[] | null;
251
- readonly hasError: boolean;
252
- readonly url: string;
253
- readonly labelKey: string | ((option: RawOption) => string);
254
- readonly valueKey: string | ((option: RawOption) => string);
255
- readonly focusOnMount: boolean;
256
- readonly queryKey: string;
257
- readonly placeholder?: string | undefined;
258
- readonly max?: number | undefined;
259
- readonly onFocus?: ((...args: any[]) => any) | undefined;
260
- readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
261
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
262
- readonly onTyping?: ((...args: any[]) => any) | undefined;
263
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "disabled" | "placeholder" | "hasError" | "max" | "focusOnMount" | "queryKey">;
264
- $attrs: {
265
- [x: string]: unknown;
266
- };
267
- $refs: {
268
- [x: string]: unknown;
269
- };
270
- $slots: Readonly<{
271
- [name: string]: import("vue").Slot<any> | undefined;
272
- }>;
273
- $root: import("vue").ComponentPublicInstance | null;
274
- $parent: import("vue").ComponentPublicInstance | null;
275
- $host: Element | null;
276
- $emit: ((event: "focus", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void) & ((event: "typing", ...args: any[]) => void);
277
- $el: any;
278
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
279
- modelValue: {
280
- required: true;
281
- type: PropType<RawOption[] | null>;
282
- };
283
- url: {
284
- required: true;
285
- type: StringConstructor;
286
- };
287
- labelKey: {
288
- required: true;
289
- type: PropType<string | ((option: RawOption) => string)>;
290
- };
291
- valueKey: {
292
- required: true;
293
- type: PropType<string | ((option: RawOption) => string)>;
294
- };
295
- placeholder: {
296
- default: undefined;
297
- type: StringConstructor;
298
- };
299
- required: {
300
- default: boolean;
301
- type: BooleanConstructor;
302
- };
303
- disabled: {
304
- default: boolean;
305
- type: BooleanConstructor;
306
- };
307
- max: {
308
- default: undefined;
309
- type: NumberConstructor;
310
- };
311
- queryKey: {
312
- default: string;
313
- type: StringConstructor;
314
- };
315
- hasError: {
316
- default: boolean;
317
- type: BooleanConstructor;
318
- };
319
- focusOnMount: {
320
- default: boolean;
321
- type: BooleanConstructor;
322
- };
323
- }>> & Readonly<{
324
- onFocus?: ((...args: any[]) => any) | undefined;
325
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
326
- onScrollBottom?: ((...args: any[]) => any) | undefined;
327
- onTyping?: ((...args: any[]) => any) | undefined;
328
- }>, {
329
- focus: () => void | undefined;
330
- blur: () => void | undefined;
331
- open: () => void | undefined;
332
- close: () => void | undefined;
333
- setKeywords: (input: string) => void | undefined;
334
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
335
- focus: (...args: any[]) => void;
336
- "update:modelValue": (...args: any[]) => void;
337
- scrollBottom: (...args: any[]) => void;
338
- typing: (...args: any[]) => void;
339
- }, string, {
340
- required: boolean;
341
- disabled: boolean;
342
- placeholder: string;
343
- hasError: boolean;
344
- max: number;
345
- focusOnMount: boolean;
346
- queryKey: string;
347
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
348
- beforeCreate?: (() => void) | (() => void)[];
349
- created?: (() => void) | (() => void)[];
350
- beforeMount?: (() => void) | (() => void)[];
351
- mounted?: (() => void) | (() => void)[];
352
- beforeUpdate?: (() => void) | (() => void)[];
353
- updated?: (() => void) | (() => void)[];
354
- activated?: (() => void) | (() => void)[];
355
- deactivated?: (() => void) | (() => void)[];
356
- beforeDestroy?: (() => void) | (() => void)[];
357
- beforeUnmount?: (() => void) | (() => void)[];
358
- destroyed?: (() => void) | (() => void)[];
359
- unmounted?: (() => void) | (() => void)[];
360
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
361
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
362
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
363
- };
364
- $forceUpdate: () => void;
365
- $nextTick: typeof import("vue").nextTick;
366
- $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;
367
- } & Readonly<{
368
- required: boolean;
369
- disabled: boolean;
370
- placeholder: string;
371
- hasError: boolean;
372
- max: number;
373
- focusOnMount: boolean;
374
- queryKey: string;
375
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
376
- modelValue: {
377
- required: true;
378
- type: PropType<RawOption[] | null>;
379
- };
380
- url: {
381
- required: true;
382
- type: StringConstructor;
383
- };
384
- labelKey: {
385
- required: true;
386
- type: PropType<string | ((option: RawOption) => string)>;
387
- };
388
- valueKey: {
389
- required: true;
390
- type: PropType<string | ((option: RawOption) => string)>;
391
- };
392
- placeholder: {
393
- default: undefined;
394
- type: StringConstructor;
395
- };
396
- required: {
397
- default: boolean;
398
- type: BooleanConstructor;
399
- };
400
- disabled: {
401
- default: boolean;
402
- type: BooleanConstructor;
403
- };
404
- max: {
405
- default: undefined;
406
- type: NumberConstructor;
407
- };
408
- queryKey: {
409
- default: string;
410
- type: StringConstructor;
411
- };
412
- hasError: {
413
- default: boolean;
414
- type: BooleanConstructor;
415
- };
416
- focusOnMount: {
417
- default: boolean;
418
- type: BooleanConstructor;
419
- };
420
- }>> & Readonly<{
421
- onFocus?: ((...args: any[]) => any) | undefined;
422
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
423
- onScrollBottom?: ((...args: any[]) => any) | undefined;
424
- onTyping?: ((...args: any[]) => any) | undefined;
425
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("required" | "disabled" | "placeholder" | "hasError" | "max" | "focusOnMount" | "queryKey")> & import("vue").ShallowUnwrapRef<{
426
- focus: () => void | undefined;
427
- blur: () => void | undefined;
428
- open: () => void | undefined;
429
- close: () => void | undefined;
430
- setKeywords: (input: string) => void | undefined;
431
- }> & {} & import("vue").ComponentCustomProperties & {} & {
432
- $slots: {
433
- items?: ((props: {
434
- items: import("@/types").NormalizedOption[];
435
- removeOption: (option: import("@/types").NormalizedOption) => void;
436
- disabled: boolean;
437
- }) => any) | undefined;
438
- option?: ((props: {
439
- focus: () => void;
440
- blur: () => void;
441
- open: () => void;
442
- close: () => void;
443
- keywords: import("vue").ComputedRef<string>;
444
- option: RawOption | null;
445
- value: import("@/types").OptionValue;
446
- label: string;
447
- selected: boolean;
448
- active: boolean;
449
- }) => any) | undefined;
450
- footer?: ((props: {
451
- keywords: string;
452
- focus: () => void;
453
- blur: () => void;
454
- open: () => void;
455
- close: () => void;
456
- options: import("@/types").NormalizedOption[];
457
- }) => any) | undefined;
458
- empty?: ((props: {
459
- firstSearch: boolean;
460
- focus: () => void;
461
- blur: () => void;
462
- open: () => void;
463
- close: () => void;
464
- keywords: import("vue").ComputedRef<string>;
465
- }) => any) | undefined;
466
- };
467
- }) | null>;
468
- declare const models: import("vue").ComputedRef<RawOption[]>;
469
- declare function onUpdate(newModels: RawOption[]): void;
470
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
471
4
  declare var __VLS_10: {
472
5
  items: import("@/types").NormalizedOption[];
473
6
  removeOption: (option: import("@/types").NormalizedOption) => void;
@@ -497,7 +30,7 @@ declare var __VLS_10: {
497
30
  keywords: import("vue").ComputedRef<string>;
498
31
  options: import("@/types").NormalizedOption[];
499
32
  };
500
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
33
+ type __VLS_Slots = {} & {
501
34
  items?: (props: typeof __VLS_10) => any;
502
35
  } & {
503
36
  option?: (props: typeof __VLS_12) => any;
@@ -505,60 +38,8 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
505
38
  empty?: (props: typeof __VLS_14) => any;
506
39
  } & {
507
40
  footer?: (props: typeof __VLS_16) => any;
508
- }>;
509
- declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
510
- modelValue: {
511
- default: undefined;
512
- type: PropType<string[] | string | number | null | undefined>;
513
- };
514
- options: {
515
- required: true;
516
- type: PropType<RawOption[]>;
517
- };
518
- primaryKey: {
519
- default: string;
520
- type: StringConstructor;
521
- };
522
- field: {
523
- required: true;
524
- type: PropType<string | ((option: RawOption) => string)>;
525
- };
526
- required: {
527
- default: boolean;
528
- type: BooleanConstructor;
529
- };
530
- disabled: {
531
- default: boolean;
532
- type: BooleanConstructor;
533
- };
534
- name: {
535
- default: undefined;
536
- type: StringConstructor;
537
- };
538
- placeholder: {
539
- default: undefined;
540
- type: StringConstructor;
541
- };
542
- size: {
543
- default: undefined;
544
- type: PropType<Size>;
545
- };
546
- max: {
547
- default: undefined;
548
- type: NumberConstructor;
549
- };
550
- hasError: {
551
- default: boolean;
552
- type: BooleanConstructor;
553
- };
554
- }>, {
555
- BaseTagAutocomplete: typeof BaseTagAutocomplete;
556
- tagAutocompleteFetch: typeof tagAutocompleteFetch;
557
- models: typeof models;
558
- onUpdate: typeof onUpdate;
559
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
560
- "update:modelValue": (...args: any[]) => void;
561
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
+ };
42
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
562
43
  modelValue: {
563
44
  default: undefined;
564
45
  type: PropType<string[] | string | number | null | undefined>;
@@ -603,63 +84,13 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
603
84
  default: boolean;
604
85
  type: BooleanConstructor;
605
86
  };
606
- }>> & Readonly<{
607
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
608
- }>, {
609
- size: "xs" | "sm" | "md" | "lg" | "xl";
610
- required: boolean;
611
- disabled: boolean;
612
- name: string;
613
- modelValue: string | number | string[] | null | undefined;
614
- placeholder: string;
615
- hasError: boolean;
616
- max: number;
617
- primaryKey: string;
618
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
619
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
620
- modelValue: {
621
- default: undefined;
622
- type: PropType<string[] | string | number | null | undefined>;
623
- };
624
- options: {
625
- required: true;
626
- type: PropType<RawOption[]>;
627
- };
628
- primaryKey: {
629
- default: string;
630
- type: StringConstructor;
631
- };
632
- field: {
633
- required: true;
634
- type: PropType<string | ((option: RawOption) => string)>;
635
- };
636
- required: {
637
- default: boolean;
638
- type: BooleanConstructor;
639
- };
640
- disabled: {
641
- default: boolean;
642
- type: BooleanConstructor;
643
- };
644
- name: {
645
- default: undefined;
646
- type: StringConstructor;
647
- };
648
- placeholder: {
87
+ optionColor: {
649
88
  default: undefined;
650
- type: StringConstructor;
89
+ type: PropType<(option: RawOption) => string>;
651
90
  };
652
- size: {
91
+ optionIcon: {
653
92
  default: undefined;
654
- type: PropType<Size>;
655
- };
656
- max: {
657
- default: undefined;
658
- type: NumberConstructor;
659
- };
660
- hasError: {
661
- default: boolean;
662
- type: BooleanConstructor;
93
+ type: PropType<(option: RawOption) => string>;
663
94
  };
664
95
  }>, {
665
96
  focus: () => void | undefined;
@@ -714,18 +145,28 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
714
145
  default: boolean;
715
146
  type: BooleanConstructor;
716
147
  };
148
+ optionColor: {
149
+ default: undefined;
150
+ type: PropType<(option: RawOption) => string>;
151
+ };
152
+ optionIcon: {
153
+ default: undefined;
154
+ type: PropType<(option: RawOption) => string>;
155
+ };
717
156
  }>> & Readonly<{
718
157
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
719
158
  }>, {
159
+ placeholder: string;
720
160
  size: "xs" | "sm" | "md" | "lg" | "xl";
721
161
  required: boolean;
722
162
  disabled: boolean;
723
163
  name: string;
724
164
  modelValue: string | number | string[] | null | undefined;
725
- placeholder: string;
726
165
  hasError: boolean;
727
166
  max: number;
728
167
  primaryKey: string;
168
+ optionColor: (option: RawOption) => string;
169
+ optionIcon: (option: RawOption) => string;
729
170
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
730
171
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
731
172
  export default _default;