sprintify-ui 0.10.88 → 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 (103) hide show
  1. package/dist/{BaseCkeditor-Laq0HbvP.js → BaseCkeditor-Dcqohrsz.js} +14 -14
  2. package/dist/sprintify-ui.es.js +12566 -12743
  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 +4 -712
  9. package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +2 -125
  10. package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +12 -1115
  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 +4 -1091
  14. package/dist/types/components/BaseBelongsToFetch.vue.d.ts +6 -795
  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 +3 -598
  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 +4 -636
  87. package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +3 -844
  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/BaseAutocompleteFetch.vue +5 -0
  97. package/src/components/BaseBelongsToFetch.vue +3 -0
  98. package/src/components/BaseForm.mdx +1 -1
  99. package/src/components/BaseGantt.mdx +79 -0
  100. package/src/components/BaseGantt.stories.js +25 -10
  101. package/src/components/BaseGantt.vue +192 -58
  102. package/src/services/gantt/format.ts +30 -7
  103. package/src/services/gantt/types.ts +18 -8
@@ -1,423 +1,12 @@
1
1
  import { PropType, ComputedRef } from 'vue';
2
2
  import { NormalizedOption, RawOption, OptionValue } from '@/types';
3
- import { Icon as BaseIcon } from '@iconify/vue';
4
- import BaseAutocompleteDrawer from './BaseAutocompleteDrawer.vue';
5
3
  import { SelectConfiguration } from '@/types';
6
- import { t } from '@/i18n';
7
4
  import { Size } from '@/utils/sizes';
8
- import BaseInput from './BaseInput.vue';
9
- import BaseSelect from './BaseSelect.vue';
10
- declare const emit: (event: "close" | "select" | "open" | "clear" | "update:modelValue" | "scrollBottom" | "typing", ...args: any[]) => void;
11
- declare const hasErrorInternal: ComputedRef<boolean>, sizeInternal: ComputedRef<"xs" | "sm" | "md" | "lg" | "xl">;
12
- declare const inputRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
13
- declare const dropdownRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
14
- declare const drawer: import("vue").Ref<({
15
- $: import("vue").ComponentInternalInstance;
16
- $data: {};
17
- $props: Partial<{
18
- size: "xs" | "sm" | "md" | "lg" | "xl";
19
- options: NormalizedOption[];
20
- loading: boolean;
21
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
22
- keywords: string;
23
- loadingBottom: boolean;
24
- optionColor: (option: RawOption) => string;
25
- optionIcon: (option: RawOption) => string;
26
- twDrawer: string;
27
- }> & Omit<{
28
- readonly size: "xs" | "sm" | "md" | "lg" | "xl";
29
- readonly options: NormalizedOption[];
30
- readonly loading: boolean;
31
- readonly keywords: string;
32
- readonly loadingBottom: boolean;
33
- readonly twDrawer: string;
34
- readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
35
- readonly optionColor?: ((option: RawOption) => string) | undefined;
36
- readonly optionIcon?: ((option: RawOption) => string) | undefined;
37
- readonly onSelect?: ((...args: any[]) => any) | undefined;
38
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
39
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer">;
40
- $attrs: {
41
- [x: string]: unknown;
42
- };
43
- $refs: {
44
- [x: string]: unknown;
45
- };
46
- $slots: Readonly<{
47
- [name: string]: import("vue").Slot<any> | undefined;
48
- }>;
49
- $root: import("vue").ComponentPublicInstance | null;
50
- $parent: import("vue").ComponentPublicInstance | null;
51
- $host: Element | null;
52
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void);
53
- $el: any;
54
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
55
- selected: {
56
- type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
57
- default: undefined;
58
- };
59
- options: {
60
- type: PropType<NormalizedOption[]>;
61
- default(): never[];
62
- };
63
- keywords: {
64
- type: StringConstructor;
65
- default: string;
66
- };
67
- loading: {
68
- type: BooleanConstructor;
69
- default: boolean;
70
- };
71
- loadingBottom: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- size: {
76
- type: PropType<Size>;
77
- default: string;
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
- };
87
- twDrawer: {
88
- type: StringConstructor;
89
- default: string;
90
- };
91
- }>> & Readonly<{
92
- onSelect?: ((...args: any[]) => any) | undefined;
93
- onScrollBottom?: ((...args: any[]) => any) | undefined;
94
- }>, {
95
- onKeydown: (event: KeyboardEvent) => void;
96
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
97
- select: (...args: any[]) => void;
98
- scrollBottom: (...args: any[]) => void;
99
- }, string, {
100
- size: "xs" | "sm" | "md" | "lg" | "xl";
101
- options: NormalizedOption[];
102
- loading: boolean;
103
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
104
- keywords: string;
105
- loadingBottom: boolean;
106
- optionColor: (option: RawOption) => string;
107
- optionIcon: (option: RawOption) => string;
108
- twDrawer: string;
109
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
110
- beforeCreate?: (() => void) | (() => void)[];
111
- created?: (() => void) | (() => void)[];
112
- beforeMount?: (() => void) | (() => void)[];
113
- mounted?: (() => void) | (() => void)[];
114
- beforeUpdate?: (() => void) | (() => void)[];
115
- updated?: (() => void) | (() => void)[];
116
- activated?: (() => void) | (() => void)[];
117
- deactivated?: (() => void) | (() => void)[];
118
- beforeDestroy?: (() => void) | (() => void)[];
119
- beforeUnmount?: (() => void) | (() => void)[];
120
- destroyed?: (() => void) | (() => void)[];
121
- unmounted?: (() => void) | (() => void)[];
122
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
123
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
124
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
125
- };
126
- $forceUpdate: () => void;
127
- $nextTick: typeof import("vue").nextTick;
128
- $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;
129
- } & Readonly<{
130
- size: "xs" | "sm" | "md" | "lg" | "xl";
131
- options: NormalizedOption[];
132
- loading: boolean;
133
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
134
- keywords: string;
135
- loadingBottom: boolean;
136
- optionColor: (option: RawOption) => string;
137
- optionIcon: (option: RawOption) => string;
138
- twDrawer: string;
139
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
140
- selected: {
141
- type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
142
- default: undefined;
143
- };
144
- options: {
145
- type: PropType<NormalizedOption[]>;
146
- default(): never[];
147
- };
148
- keywords: {
149
- type: StringConstructor;
150
- default: string;
151
- };
152
- loading: {
153
- type: BooleanConstructor;
154
- default: boolean;
155
- };
156
- loadingBottom: {
157
- type: BooleanConstructor;
158
- default: boolean;
159
- };
160
- size: {
161
- type: PropType<Size>;
162
- default: string;
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
- };
172
- twDrawer: {
173
- type: StringConstructor;
174
- default: string;
175
- };
176
- }>> & Readonly<{
177
- onSelect?: ((...args: any[]) => any) | undefined;
178
- onScrollBottom?: ((...args: any[]) => any) | undefined;
179
- }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
180
- onKeydown: (event: KeyboardEvent) => void;
181
- }> & {} & import("vue").ComponentCustomProperties & {} & {
182
- $slots: {
183
- empty?: ((props: {}) => any) | undefined;
184
- option?: ((props: {
185
- option: RawOption | null;
186
- value: OptionValue;
187
- label: string;
188
- selected: boolean;
189
- active: boolean;
190
- }) => any) | undefined;
191
- footer?: ((props: {
192
- options: NormalizedOption[];
193
- }) => any) | undefined;
194
- };
195
- }) | null, ({
196
- $: import("vue").ComponentInternalInstance;
197
- $data: {};
198
- $props: Partial<{
199
- size: "xs" | "sm" | "md" | "lg" | "xl";
200
- options: NormalizedOption[];
201
- loading: boolean;
202
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
203
- keywords: string;
204
- loadingBottom: boolean;
205
- optionColor: (option: RawOption) => string;
206
- optionIcon: (option: RawOption) => string;
207
- twDrawer: string;
208
- }> & Omit<{
209
- readonly size: "xs" | "sm" | "md" | "lg" | "xl";
210
- readonly options: NormalizedOption[];
211
- readonly loading: boolean;
212
- readonly keywords: string;
213
- readonly loadingBottom: boolean;
214
- readonly twDrawer: string;
215
- readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
216
- readonly optionColor?: ((option: RawOption) => string) | undefined;
217
- readonly optionIcon?: ((option: RawOption) => string) | undefined;
218
- readonly onSelect?: ((...args: any[]) => any) | undefined;
219
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
220
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer">;
221
- $attrs: {
222
- [x: string]: unknown;
223
- };
224
- $refs: {
225
- [x: string]: unknown;
226
- };
227
- $slots: Readonly<{
228
- [name: string]: import("vue").Slot<any> | undefined;
229
- }>;
230
- $root: import("vue").ComponentPublicInstance | null;
231
- $parent: import("vue").ComponentPublicInstance | null;
232
- $host: Element | null;
233
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void);
234
- $el: any;
235
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
236
- selected: {
237
- type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
238
- default: undefined;
239
- };
240
- options: {
241
- type: PropType<NormalizedOption[]>;
242
- default(): never[];
243
- };
244
- keywords: {
245
- type: StringConstructor;
246
- default: string;
247
- };
248
- loading: {
249
- type: BooleanConstructor;
250
- default: boolean;
251
- };
252
- loadingBottom: {
253
- type: BooleanConstructor;
254
- default: boolean;
255
- };
256
- size: {
257
- type: PropType<Size>;
258
- default: string;
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
- };
268
- twDrawer: {
269
- type: StringConstructor;
270
- default: string;
271
- };
272
- }>> & Readonly<{
273
- onSelect?: ((...args: any[]) => any) | undefined;
274
- onScrollBottom?: ((...args: any[]) => any) | undefined;
275
- }>, {
276
- onKeydown: (event: KeyboardEvent) => void;
277
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
278
- select: (...args: any[]) => void;
279
- scrollBottom: (...args: any[]) => void;
280
- }, string, {
281
- size: "xs" | "sm" | "md" | "lg" | "xl";
282
- options: NormalizedOption[];
283
- loading: boolean;
284
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
285
- keywords: string;
286
- loadingBottom: boolean;
287
- optionColor: (option: RawOption) => string;
288
- optionIcon: (option: RawOption) => string;
289
- twDrawer: string;
290
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
291
- beforeCreate?: (() => void) | (() => void)[];
292
- created?: (() => void) | (() => void)[];
293
- beforeMount?: (() => void) | (() => void)[];
294
- mounted?: (() => void) | (() => void)[];
295
- beforeUpdate?: (() => void) | (() => void)[];
296
- updated?: (() => void) | (() => void)[];
297
- activated?: (() => void) | (() => void)[];
298
- deactivated?: (() => void) | (() => void)[];
299
- beforeDestroy?: (() => void) | (() => void)[];
300
- beforeUnmount?: (() => void) | (() => void)[];
301
- destroyed?: (() => void) | (() => void)[];
302
- unmounted?: (() => void) | (() => void)[];
303
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
304
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
305
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
306
- };
307
- $forceUpdate: () => void;
308
- $nextTick: typeof import("vue").nextTick;
309
- $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;
310
- } & Readonly<{
311
- size: "xs" | "sm" | "md" | "lg" | "xl";
312
- options: NormalizedOption[];
313
- loading: boolean;
314
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
315
- keywords: string;
316
- loadingBottom: boolean;
317
- optionColor: (option: RawOption) => string;
318
- optionIcon: (option: RawOption) => string;
319
- twDrawer: string;
320
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
321
- selected: {
322
- type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
323
- default: undefined;
324
- };
325
- options: {
326
- type: PropType<NormalizedOption[]>;
327
- default(): never[];
328
- };
329
- keywords: {
330
- type: StringConstructor;
331
- default: string;
332
- };
333
- loading: {
334
- type: BooleanConstructor;
335
- default: boolean;
336
- };
337
- loadingBottom: {
338
- type: BooleanConstructor;
339
- default: boolean;
340
- };
341
- size: {
342
- type: PropType<Size>;
343
- default: string;
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
- };
353
- twDrawer: {
354
- type: StringConstructor;
355
- default: string;
356
- };
357
- }>> & Readonly<{
358
- onSelect?: ((...args: any[]) => any) | undefined;
359
- onScrollBottom?: ((...args: any[]) => any) | undefined;
360
- }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "optionColor" | "optionIcon" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
361
- onKeydown: (event: KeyboardEvent) => void;
362
- }> & {} & import("vue").ComponentCustomProperties & {} & {
363
- $slots: {
364
- empty?: ((props: {}) => any) | undefined;
365
- option?: ((props: {
366
- option: RawOption | null;
367
- value: OptionValue;
368
- label: string;
369
- selected: boolean;
370
- active: boolean;
371
- }) => any) | undefined;
372
- footer?: ((props: {
373
- options: NormalizedOption[];
374
- }) => any) | undefined;
375
- };
376
- }) | null>;
377
- declare const keywords: import("vue").Ref<string, string>;
378
- declare const autocomplete: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
379
- declare const inputElement: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
380
- declare const dropdownOpened: ComputedRef<boolean>;
381
- declare const normalizedModelValue: ComputedRef<NormalizedOption | null>;
382
- declare const filteredNormalizedOptions: ComputedRef<NormalizedOption[]>;
383
5
  declare function open(): void;
384
6
  declare function close(): void;
385
- declare const onTextInput: (text: string) => void;
386
- declare const onTextKeydown: (event: KeyboardEvent) => void;
387
- declare const clear: () => void;
388
- declare function onSelect(normalizedModelValue: RawOption | null | undefined): void;
389
7
  declare function setKeywords(input: string): void;
390
8
  declare function focus(): void;
391
9
  declare function blur(): void;
392
- declare function highlight(): void;
393
- declare const selection: import("vue").Ref<OptionValue, OptionValue>;
394
- declare function onSelectChange(value: string | number | null | undefined): void;
395
- declare const slotProps: {
396
- focus: typeof focus;
397
- blur: typeof blur;
398
- open: typeof open;
399
- close: typeof close;
400
- keywords: ComputedRef<string>;
401
- };
402
- declare const inputRefWidth: ComputedRef<number>;
403
- declare const floatingStyles: Readonly<import("vue").Ref<{
404
- position: import("@floating-ui/utils").Strategy;
405
- top: string;
406
- left: string;
407
- transform?: string;
408
- willChange?: string;
409
- }, {
410
- position: import("@floating-ui/utils").Strategy;
411
- top: string;
412
- left: string;
413
- transform?: string;
414
- willChange?: string;
415
- }>>;
416
- declare const deleteButtonIconClasses: ComputedRef<string[]>;
417
- declare const inputClasses: ComputedRef<string | string[]>;
418
- declare const selectClasses: ComputedRef<string | string[]>;
419
- declare const showRemoveButtonInternal: ComputedRef<boolean | null>;
420
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
421
10
  declare var __VLS_37: {
422
11
  focus: typeof focus;
423
12
  blur: typeof blur;
@@ -443,310 +32,13 @@ declare var __VLS_37: {
443
32
  keywords: ComputedRef<string>;
444
33
  options: NormalizedOption[];
445
34
  };
446
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
35
+ type __VLS_Slots = {} & {
447
36
  empty?: (props: typeof __VLS_37) => any;
448
37
  } & {
449
38
  option?: (props: typeof __VLS_39) => any;
450
39
  } & {
451
40
  footer?: (props: typeof __VLS_41) => any;
452
- }>;
453
- declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
454
- modelValue: {
455
- default: undefined;
456
- type: PropType<RawOption | null | undefined>;
457
- };
458
- options: {
459
- required: true;
460
- type: PropType<RawOption[]>;
461
- };
462
- labelKey: {
463
- required: true;
464
- type: PropType<string | ((option: RawOption) => string)>;
465
- };
466
- valueKey: {
467
- required: true;
468
- type: PropType<string | ((option: RawOption) => string)>;
469
- };
470
- name: {
471
- default: undefined;
472
- type: StringConstructor;
473
- };
474
- size: {
475
- default: undefined;
476
- type: PropType<Size>;
477
- };
478
- placeholder: {
479
- default: undefined;
480
- type: StringConstructor;
481
- };
482
- loading: {
483
- default: boolean;
484
- type: BooleanConstructor;
485
- };
486
- loadingBottom: {
487
- default: boolean;
488
- type: BooleanConstructor;
489
- };
490
- required: {
491
- default: undefined;
492
- type: BooleanConstructor;
493
- };
494
- disabled: {
495
- default: boolean;
496
- type: BooleanConstructor;
497
- };
498
- filter: {
499
- default: undefined;
500
- type: PropType<(option: NormalizedOption, keywords: string) => boolean>;
501
- };
502
- hasError: {
503
- default: boolean;
504
- type: BooleanConstructor;
505
- };
506
- /** Inline dropdown. This is useful for BaseDropdownAutocomplete */
507
- inline: {
508
- default: boolean;
509
- type: BooleanConstructor;
510
- };
511
- dropdownShow: {
512
- default: string;
513
- type: PropType<"focus" | "always">;
514
- };
515
- showModelValue: {
516
- default: boolean;
517
- type: BooleanConstructor;
518
- };
519
- visibleFocus: {
520
- default: boolean;
521
- type: BooleanConstructor;
522
- };
523
- focusOnMount: {
524
- default: boolean;
525
- type: BooleanConstructor;
526
- };
527
- /** Show an 'empty option', should use with showModelValue = true for better UX */
528
- showEmptyOption: {
529
- default: boolean;
530
- type: BooleanConstructor;
531
- };
532
- showRemoveButton: {
533
- default: boolean;
534
- type: BooleanConstructor;
535
- };
536
- emptyOptionLabel: {
537
- default(): string;
538
- type: StringConstructor;
539
- };
540
- select: {
541
- default: undefined;
542
- type: PropType<SelectConfiguration | undefined>;
543
- };
544
- icon: {
545
- default(): string;
546
- type: PropType<string>;
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
- };
556
- twInput: {
557
- default: undefined;
558
- type: PropType<string | string[]>;
559
- };
560
- twSelect: {
561
- default: undefined;
562
- type: PropType<string | string[]>;
563
- };
564
- }>, {
565
- BaseIcon: typeof BaseIcon;
566
- BaseAutocompleteDrawer: typeof BaseAutocompleteDrawer;
567
- t: typeof t;
568
- BaseInput: typeof BaseInput;
569
- BaseSelect: typeof BaseSelect;
570
- emit: typeof emit;
571
- hasErrorInternal: typeof hasErrorInternal;
572
- sizeInternal: typeof sizeInternal;
573
- inputRef: typeof inputRef;
574
- dropdownRef: typeof dropdownRef;
575
- drawer: typeof drawer;
576
- keywords: typeof keywords;
577
- autocomplete: typeof autocomplete;
578
- inputElement: typeof inputElement;
579
- dropdownOpened: typeof dropdownOpened;
580
- normalizedModelValue: typeof normalizedModelValue;
581
- filteredNormalizedOptions: typeof filteredNormalizedOptions;
582
- open: typeof open;
583
- onTextInput: typeof onTextInput;
584
- onTextKeydown: typeof onTextKeydown;
585
- clear: typeof clear;
586
- onSelect: typeof onSelect;
587
- highlight: typeof highlight;
588
- selection: typeof selection;
589
- onSelectChange: typeof onSelectChange;
590
- slotProps: typeof slotProps;
591
- inputRefWidth: typeof inputRefWidth;
592
- floatingStyles: typeof floatingStyles;
593
- deleteButtonIconClasses: typeof deleteButtonIconClasses;
594
- inputClasses: typeof inputClasses;
595
- selectClasses: typeof selectClasses;
596
- showRemoveButtonInternal: typeof showRemoveButtonInternal;
597
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
598
- close: (...args: any[]) => void;
599
- select: (...args: any[]) => void;
600
- open: (...args: any[]) => void;
601
- clear: (...args: any[]) => void;
602
- "update:modelValue": (...args: any[]) => void;
603
- scrollBottom: (...args: any[]) => void;
604
- typing: (...args: any[]) => void;
605
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
606
- modelValue: {
607
- default: undefined;
608
- type: PropType<RawOption | null | undefined>;
609
- };
610
- options: {
611
- required: true;
612
- type: PropType<RawOption[]>;
613
- };
614
- labelKey: {
615
- required: true;
616
- type: PropType<string | ((option: RawOption) => string)>;
617
- };
618
- valueKey: {
619
- required: true;
620
- type: PropType<string | ((option: RawOption) => string)>;
621
- };
622
- name: {
623
- default: undefined;
624
- type: StringConstructor;
625
- };
626
- size: {
627
- default: undefined;
628
- type: PropType<Size>;
629
- };
630
- placeholder: {
631
- default: undefined;
632
- type: StringConstructor;
633
- };
634
- loading: {
635
- default: boolean;
636
- type: BooleanConstructor;
637
- };
638
- loadingBottom: {
639
- default: boolean;
640
- type: BooleanConstructor;
641
- };
642
- required: {
643
- default: undefined;
644
- type: BooleanConstructor;
645
- };
646
- disabled: {
647
- default: boolean;
648
- type: BooleanConstructor;
649
- };
650
- filter: {
651
- default: undefined;
652
- type: PropType<(option: NormalizedOption, keywords: string) => boolean>;
653
- };
654
- hasError: {
655
- default: boolean;
656
- type: BooleanConstructor;
657
- };
658
- /** Inline dropdown. This is useful for BaseDropdownAutocomplete */
659
- inline: {
660
- default: boolean;
661
- type: BooleanConstructor;
662
- };
663
- dropdownShow: {
664
- default: string;
665
- type: PropType<"focus" | "always">;
666
- };
667
- showModelValue: {
668
- default: boolean;
669
- type: BooleanConstructor;
670
- };
671
- visibleFocus: {
672
- default: boolean;
673
- type: BooleanConstructor;
674
- };
675
- focusOnMount: {
676
- default: boolean;
677
- type: BooleanConstructor;
678
- };
679
- /** Show an 'empty option', should use with showModelValue = true for better UX */
680
- showEmptyOption: {
681
- default: boolean;
682
- type: BooleanConstructor;
683
- };
684
- showRemoveButton: {
685
- default: boolean;
686
- type: BooleanConstructor;
687
- };
688
- emptyOptionLabel: {
689
- default(): string;
690
- type: StringConstructor;
691
- };
692
- select: {
693
- default: undefined;
694
- type: PropType<SelectConfiguration | undefined>;
695
- };
696
- icon: {
697
- default(): string;
698
- type: PropType<string>;
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
- };
708
- twInput: {
709
- default: undefined;
710
- type: PropType<string | string[]>;
711
- };
712
- twSelect: {
713
- default: undefined;
714
- type: PropType<string | string[]>;
715
- };
716
- }>> & Readonly<{
717
- onClose?: ((...args: any[]) => any) | undefined;
718
- onSelect?: ((...args: any[]) => any) | undefined;
719
- onOpen?: ((...args: any[]) => any) | undefined;
720
- onClear?: ((...args: any[]) => any) | undefined;
721
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
722
- onScrollBottom?: ((...args: any[]) => any) | undefined;
723
- onTyping?: ((...args: any[]) => any) | undefined;
724
- }>, {
725
- filter: (option: NormalizedOption, keywords: string) => boolean;
726
- select: SelectConfiguration | undefined;
727
- size: "xs" | "sm" | "md" | "lg" | "xl";
728
- required: boolean;
729
- icon: string;
730
- inline: boolean;
731
- disabled: boolean;
732
- name: string;
733
- modelValue: RawOption | null | undefined;
734
- placeholder: string;
735
- hasError: boolean;
736
- visibleFocus: boolean;
737
- loading: boolean;
738
- loadingBottom: boolean;
739
- optionColor: (option: RawOption) => string;
740
- optionIcon: (option: RawOption) => string;
741
- dropdownShow: "always" | "focus";
742
- showModelValue: boolean;
743
- focusOnMount: boolean;
744
- showEmptyOption: boolean;
745
- showRemoveButton: boolean;
746
- emptyOptionLabel: string;
747
- twInput: string | string[];
748
- twSelect: string | string[];
749
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ };
750
42
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
751
43
  modelValue: {
752
44
  default: undefined;
@@ -994,14 +286,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
994
286
  }>, {
995
287
  filter: (option: NormalizedOption, keywords: string) => boolean;
996
288
  select: SelectConfiguration | undefined;
289
+ placeholder: string;
290
+ inline: boolean;
997
291
  size: "xs" | "sm" | "md" | "lg" | "xl";
998
292
  required: boolean;
999
293
  icon: string;
1000
- inline: boolean;
1001
294
  disabled: boolean;
1002
295
  name: string;
1003
296
  modelValue: RawOption | null | undefined;
1004
- placeholder: string;
1005
297
  hasError: boolean;
1006
298
  visibleFocus: boolean;
1007
299
  loading: boolean;