sprintify-ui 0.10.13 → 0.10.15

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 (118) hide show
  1. package/README.md +4 -2
  2. package/dist/BaseCkeditor-C9d4NSCx.js +113 -0
  3. package/dist/sprintify-ui.es.js +14283 -81751
  4. package/dist/style.css +3 -3
  5. package/dist/types/components/BaseActionButtons.vue.d.ts +1 -1
  6. package/dist/types/components/BaseActionItem.vue.d.ts +7 -10
  7. package/dist/types/components/BaseAddressForm.vue.d.ts +1 -1
  8. package/dist/types/components/BaseAlert.vue.d.ts +24 -11
  9. package/dist/types/components/BaseApp.vue.d.ts +14 -12
  10. package/dist/types/components/BaseAssign.vue.d.ts +1 -1
  11. package/dist/types/components/BaseAutocomplete.vue.d.ts +642 -452
  12. package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +117 -22
  13. package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +1029 -410
  14. package/dist/types/components/BaseAvatar.vue.d.ts +1 -1
  15. package/dist/types/components/BaseAvatarGroup.vue.d.ts +1 -1
  16. package/dist/types/components/BaseBadge.vue.d.ts +23 -11
  17. package/dist/types/components/BaseBelongsTo.vue.d.ts +985 -409
  18. package/dist/types/components/BaseBelongsToFetch.vue.d.ts +750 -369
  19. package/dist/types/components/BaseBoolean.vue.d.ts +1 -1
  20. package/dist/types/components/BaseBreadcrumbs.vue.d.ts +1 -1
  21. package/dist/types/components/BaseButton.vue.d.ts +57 -13
  22. package/dist/types/components/BaseButtonGroup.vue.d.ts +166 -15
  23. package/dist/types/components/BaseCard.vue.d.ts +26 -12
  24. package/dist/types/components/BaseCardRow.vue.d.ts +20 -11
  25. package/dist/types/components/BaseCharacterCounter.vue.d.ts +1 -1
  26. package/dist/types/components/BaseCkeditor.vue.d.ts +32 -0
  27. package/dist/types/components/BaseClipboard.vue.d.ts +45 -13
  28. package/dist/types/components/BaseCollapse.vue.d.ts +41 -20
  29. package/dist/types/components/BaseContainer.vue.d.ts +16 -11
  30. package/dist/types/components/BaseCounter.vue.d.ts +1 -1
  31. package/dist/types/components/BaseCropper.vue.d.ts +55 -30
  32. package/dist/types/components/BaseDataIterator.vue.d.ts +43 -42
  33. package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +15 -12
  34. package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +1 -1
  35. package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +19 -10
  36. package/dist/types/components/BaseDataTable.vue.d.ts +2045 -735
  37. package/dist/types/components/BaseDataTableTemplate.vue.d.ts +563 -100
  38. package/dist/types/components/BaseDatePicker.vue.d.ts +1 -1
  39. package/dist/types/components/BaseDateSelect.vue.d.ts +1 -1
  40. package/dist/types/components/BaseDescriptionList.vue.d.ts +12 -12
  41. package/dist/types/components/BaseDescriptionListItem.vue.d.ts +16 -15
  42. package/dist/types/components/BaseDialog.vue.d.ts +114 -407
  43. package/dist/types/components/BaseDisplayRelativeTime.vue.d.ts +55 -13
  44. package/dist/types/components/BaseDraggable.vue.d.ts +21 -17
  45. package/dist/types/components/BaseDropdown.vue.d.ts +155 -17
  46. package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +134 -19
  47. package/dist/types/components/BaseField.vue.d.ts +103 -12
  48. package/dist/types/components/BaseFieldI18n.vue.d.ts +1 -1
  49. package/dist/types/components/BaseFilePicker.vue.d.ts +35 -16
  50. package/dist/types/components/BaseFilePickerCrop.vue.d.ts +87 -42
  51. package/dist/types/components/BaseFileUploader.vue.d.ts +195 -29
  52. package/dist/types/components/BaseForm.vue.d.ts +161 -20
  53. package/dist/types/components/BaseGantt.vue.d.ts +1130 -409
  54. package/dist/types/components/BaseHasMany.vue.d.ts +586 -345
  55. package/dist/types/components/BaseHasManyFetch.vue.d.ts +598 -249
  56. package/dist/types/components/BaseHeader.vue.d.ts +1 -1
  57. package/dist/types/components/BaseIconPicker.vue.d.ts +1 -1
  58. package/dist/types/components/BaseInputError.vue.d.ts +23 -11
  59. package/dist/types/components/BaseJsonReaderItem.vue.d.ts +1 -1
  60. package/dist/types/components/BaseLayoutNotificationItemContent.vue.d.ts +1 -1
  61. package/dist/types/components/BaseLayoutSidebar.vue.d.ts +127 -16
  62. package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +115 -13
  63. package/dist/types/components/BaseLayoutStacked.vue.d.ts +69 -22
  64. package/dist/types/components/BaseLayoutStackedConfigurable.vue.d.ts +120 -10
  65. package/dist/types/components/BaseLazy.vue.d.ts +20 -15
  66. package/dist/types/components/BaseMediaGallery.vue.d.ts +1 -1
  67. package/dist/types/components/BaseMediaGalleryItem.vue.d.ts +1 -1
  68. package/dist/types/components/BaseMediaItem.vue.d.ts +1 -1
  69. package/dist/types/components/BaseMediaLibrary.vue.d.ts +234 -34
  70. package/dist/types/components/BaseMediaList.vue.d.ts +1 -1
  71. package/dist/types/components/BaseMediaListItem.vue.d.ts +1 -1
  72. package/dist/types/components/BaseMediaPictures.vue.d.ts +1 -1
  73. package/dist/types/components/BaseMediaPicturesItem.vue.d.ts +1 -1
  74. package/dist/types/components/BaseMenu.vue.d.ts +233 -30
  75. package/dist/types/components/BaseMenuItem.vue.d.ts +1 -1
  76. package/dist/types/components/BaseModalCenter.vue.d.ts +88 -12
  77. package/dist/types/components/BaseModalSide.vue.d.ts +72 -12
  78. package/dist/types/components/BaseNavbar.vue.d.ts +88 -22
  79. package/dist/types/components/BaseNavbarItem.vue.d.ts +1 -1
  80. package/dist/types/components/BaseNavbarItemContent.vue.d.ts +1 -1
  81. package/dist/types/components/BaseNavbarSideItem.vue.d.ts +1 -1
  82. package/dist/types/components/BaseNavbarSideItemContent.vue.d.ts +1 -1
  83. package/dist/types/components/BasePagination.vue.d.ts +1 -1
  84. package/dist/types/components/BaseRadioGroup.vue.d.ts +113 -13
  85. package/dist/types/components/BaseReadMore.vue.d.ts +31 -12
  86. package/dist/types/components/BaseRichText.vue.d.ts +1 -1
  87. package/dist/types/components/BaseSelect.vue.d.ts +149 -12
  88. package/dist/types/components/BaseShortcut.vue.d.ts +1 -1
  89. package/dist/types/components/BaseSideNavigation.vue.d.ts +11 -12
  90. package/dist/types/components/BaseSideNavigationItem.vue.d.ts +22 -13
  91. package/dist/types/components/BaseSkeleton.vue.d.ts +3 -3
  92. package/dist/types/components/BaseStepper.vue.d.ts +1 -1
  93. package/dist/types/components/BaseSwitch.vue.d.ts +118 -10
  94. package/dist/types/components/BaseSystemAlert.vue.d.ts +58 -11
  95. package/dist/types/components/BaseTabItem.vue.d.ts +25 -16
  96. package/dist/types/components/BaseTable.vue.d.ts +29 -14
  97. package/dist/types/components/BaseTableBody.vue.d.ts +9 -12
  98. package/dist/types/components/BaseTableCell.vue.d.ts +40 -15
  99. package/dist/types/components/BaseTableColumn.vue.d.ts +2 -2
  100. package/dist/types/components/BaseTableHead.vue.d.ts +14 -12
  101. package/dist/types/components/BaseTableHeader.vue.d.ts +25 -14
  102. package/dist/types/components/BaseTableRow.vue.d.ts +40 -13
  103. package/dist/types/components/BaseTabs.vue.d.ts +16 -15
  104. package/dist/types/components/BaseTagAutocomplete.vue.d.ts +578 -199
  105. package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +803 -346
  106. package/dist/types/components/BaseTextareaAutoresize.vue.d.ts +1 -1
  107. package/dist/types/components/BaseTimeline.vue.d.ts +1 -1
  108. package/dist/types/components/BaseTimelineItem.vue.d.ts +1 -1
  109. package/dist/types/components/BaseToast.vue.d.ts +1 -1
  110. package/dist/types/components/BaseTooltip.vue.d.ts +41 -15
  111. package/dist/types/components/BaseUniqueCode.vue.d.ts +1 -1
  112. package/dist/types/stories/PageInputSizes.vue.d.ts +1 -1
  113. package/dist/types/stories/PageShow.vue.d.ts +1 -1
  114. package/dist/types/svg/BaseEmptyState.vue.d.ts +1 -1
  115. package/dist/types/svg/BaseSpinnerSmall.vue.d.ts +1 -1
  116. package/package.json +3 -4
  117. package/src/components/BaseCkeditor.vue +137 -0
  118. package/src/components/BaseRichText.vue +10 -100
@@ -1,208 +1,587 @@
1
1
  import { PropType, ComputedRef } from 'vue';
2
2
  import { NormalizedOption, RawOption } from '@/types';
3
+ import BaseAutocompleteDrawer from './BaseAutocompleteDrawer.vue';
4
+ import { t } from '@/i18n';
3
5
  import { Size } from '@/utils/sizes';
4
- declare function open(): void;
5
- declare function close(): void;
6
- declare function setKeywords(input: string): void;
7
- declare function focus(): void;
8
- declare function blur(): void;
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- items?(_: {
13
- items: NormalizedOption[];
14
- removeOption: (option: NormalizedOption) => void;
15
- disabled: boolean;
16
- }): any;
17
- empty?(_: {
18
- focus: typeof focus;
19
- blur: typeof blur;
20
- open: typeof open;
21
- close: typeof close;
22
- keywords: ComputedRef<string>;
23
- }): any;
24
- option?(_: {
25
- focus: typeof focus;
26
- blur: typeof blur;
27
- open: typeof open;
28
- close: typeof close;
29
- keywords: ComputedRef<string>;
6
+ declare const emit: (event: "close" | "open" | "update:modelValue" | "scrollBottom" | "typing", ...args: any[]) => void;
7
+ declare const drawer: import("vue").Ref<({
8
+ $: import("vue").ComponentInternalInstance;
9
+ $data: {};
10
+ $props: Partial<{
11
+ size: "xs" | "sm" | "md" | "lg" | "xl";
12
+ options: NormalizedOption[];
13
+ loading: boolean;
14
+ selected: NormalizedOption | NormalizedOption[] | null | undefined;
15
+ keywords: string;
16
+ loadingBottom: boolean;
17
+ twDrawer: string;
18
+ }> & Omit<{
19
+ readonly size: "xs" | "sm" | "md" | "lg" | "xl";
20
+ readonly options: NormalizedOption[];
21
+ readonly loading: boolean;
22
+ readonly keywords: string;
23
+ readonly loadingBottom: boolean;
24
+ readonly twDrawer: string;
25
+ readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
26
+ readonly onSelect?: ((...args: any[]) => any) | undefined;
27
+ readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
28
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer">;
29
+ $attrs: {
30
+ [x: string]: unknown;
31
+ };
32
+ $refs: {
33
+ [x: string]: unknown;
34
+ };
35
+ $slots: Readonly<{
36
+ [name: string]: import("vue").Slot<any> | undefined;
37
+ }>;
38
+ $root: import("vue").ComponentPublicInstance | null;
39
+ $parent: import("vue").ComponentPublicInstance | null;
40
+ $host: Element | null;
41
+ $emit: ((event: "select", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void);
42
+ $el: any;
43
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
44
+ selected: {
45
+ type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
46
+ default: undefined;
47
+ };
48
+ options: {
49
+ type: PropType<NormalizedOption[]>;
50
+ default(): never[];
51
+ };
52
+ keywords: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ loading: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ loadingBottom: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ size: {
65
+ type: PropType<Size>;
66
+ default: string;
67
+ };
68
+ twDrawer: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ }>> & Readonly<{
73
+ onSelect?: ((...args: any[]) => any) | undefined;
74
+ onScrollBottom?: ((...args: any[]) => any) | undefined;
75
+ }>, {
76
+ onKeydown: (event: KeyboardEvent) => void;
77
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
78
+ select: (...args: any[]) => void;
79
+ scrollBottom: (...args: any[]) => void;
80
+ }, string, {
81
+ size: "xs" | "sm" | "md" | "lg" | "xl";
82
+ options: NormalizedOption[];
83
+ loading: boolean;
84
+ selected: NormalizedOption | NormalizedOption[] | null | undefined;
85
+ keywords: string;
86
+ loadingBottom: boolean;
87
+ twDrawer: string;
88
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
89
+ beforeCreate?: (() => void) | (() => void)[];
90
+ created?: (() => void) | (() => void)[];
91
+ beforeMount?: (() => void) | (() => void)[];
92
+ mounted?: (() => void) | (() => void)[];
93
+ beforeUpdate?: (() => void) | (() => void)[];
94
+ updated?: (() => void) | (() => void)[];
95
+ activated?: (() => void) | (() => void)[];
96
+ deactivated?: (() => void) | (() => void)[];
97
+ beforeDestroy?: (() => void) | (() => void)[];
98
+ beforeUnmount?: (() => void) | (() => void)[];
99
+ destroyed?: (() => void) | (() => void)[];
100
+ unmounted?: (() => void) | (() => void)[];
101
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
102
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
103
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
104
+ };
105
+ $forceUpdate: () => void;
106
+ $nextTick: typeof import("vue").nextTick;
107
+ $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;
108
+ } & Readonly<{
109
+ size: "xs" | "sm" | "md" | "lg" | "xl";
110
+ options: NormalizedOption[];
111
+ loading: boolean;
112
+ selected: NormalizedOption | NormalizedOption[] | null | undefined;
113
+ keywords: string;
114
+ loadingBottom: boolean;
115
+ twDrawer: string;
116
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
117
+ selected: {
118
+ type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
119
+ default: undefined;
120
+ };
121
+ options: {
122
+ type: PropType<NormalizedOption[]>;
123
+ default(): never[];
124
+ };
125
+ keywords: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ loading: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ loadingBottom: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ size: {
138
+ type: PropType<Size>;
139
+ default: string;
140
+ };
141
+ twDrawer: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ }>> & Readonly<{
146
+ onSelect?: ((...args: any[]) => any) | undefined;
147
+ onScrollBottom?: ((...args: any[]) => any) | undefined;
148
+ }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
149
+ onKeydown: (event: KeyboardEvent) => void;
150
+ }> & {} & import("vue").ComponentCustomProperties & {} & {
151
+ $slots: {
152
+ empty?: ((props: {}) => any) | undefined;
153
+ option?: ((props: {
30
154
  option: RawOption;
31
155
  selected: boolean;
32
156
  active: boolean;
33
- }): any;
34
- footer?(_: {
35
- focus: typeof focus;
36
- blur: typeof blur;
37
- open: typeof open;
38
- close: typeof close;
39
- keywords: ComputedRef<string>;
157
+ }) => any) | undefined;
158
+ footer?: ((props: {
40
159
  options: NormalizedOption[];
41
- }): any;
42
- };
43
- refs: {
44
- autocomplete: HTMLDivElement;
45
- inputElement: HTMLInputElement;
46
- drawer: ({
47
- $: import("vue").ComponentInternalInstance;
48
- $data: {};
49
- $props: Partial<{
50
- size: "xs" | "sm" | "md" | "lg" | "xl";
51
- options: NormalizedOption[];
52
- loading: boolean;
53
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
54
- keywords: string;
55
- loadingBottom: boolean;
56
- twDrawer: string;
57
- }> & Omit<{
58
- readonly size: "xs" | "sm" | "md" | "lg" | "xl";
59
- readonly options: NormalizedOption[];
60
- readonly loading: boolean;
61
- readonly keywords: string;
62
- readonly loadingBottom: boolean;
63
- readonly twDrawer: string;
64
- readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
65
- readonly onSelect?: ((...args: any[]) => any) | undefined;
66
- readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
67
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer">;
68
- $attrs: {
69
- [x: string]: unknown;
70
- };
71
- $refs: {
72
- [x: string]: unknown;
73
- };
74
- $slots: Readonly<{
75
- [name: string]: import("vue").Slot<any> | undefined;
76
- }>;
77
- $root: import("vue").ComponentPublicInstance | null;
78
- $parent: import("vue").ComponentPublicInstance | null;
79
- $host: Element | null;
80
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void);
81
- $el: HTMLDivElement;
82
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
83
- selected: {
84
- type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
85
- default: undefined;
86
- };
87
- options: {
88
- type: PropType<NormalizedOption[]>;
89
- default(): never[];
90
- };
91
- keywords: {
92
- type: StringConstructor;
93
- default: string;
94
- };
95
- loading: {
96
- type: BooleanConstructor;
97
- default: boolean;
98
- };
99
- loadingBottom: {
100
- type: BooleanConstructor;
101
- default: boolean;
102
- };
103
- size: {
104
- type: PropType<Size>;
105
- default: string;
106
- };
107
- twDrawer: {
108
- type: StringConstructor;
109
- default: string;
110
- };
111
- }>> & Readonly<{
112
- onSelect?: ((...args: any[]) => any) | undefined;
113
- onScrollBottom?: ((...args: any[]) => any) | undefined;
114
- }>, {
115
- onKeydown: (event: KeyboardEvent) => void;
116
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
117
- select: (...args: any[]) => void;
118
- scrollBottom: (...args: any[]) => void;
119
- }, string, {
120
- size: "xs" | "sm" | "md" | "lg" | "xl";
121
- options: NormalizedOption[];
122
- loading: boolean;
123
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
124
- keywords: string;
125
- loadingBottom: boolean;
126
- twDrawer: string;
127
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
128
- beforeCreate?: (() => void) | (() => void)[];
129
- created?: (() => void) | (() => void)[];
130
- beforeMount?: (() => void) | (() => void)[];
131
- mounted?: (() => void) | (() => void)[];
132
- beforeUpdate?: (() => void) | (() => void)[];
133
- updated?: (() => void) | (() => void)[];
134
- activated?: (() => void) | (() => void)[];
135
- deactivated?: (() => void) | (() => void)[];
136
- beforeDestroy?: (() => void) | (() => void)[];
137
- beforeUnmount?: (() => void) | (() => void)[];
138
- destroyed?: (() => void) | (() => void)[];
139
- unmounted?: (() => void) | (() => void)[];
140
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
141
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
142
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
143
- };
144
- $forceUpdate: () => void;
145
- $nextTick: typeof import("vue").nextTick;
146
- $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;
147
- } & Readonly<{
148
- size: "xs" | "sm" | "md" | "lg" | "xl";
160
+ }) => any) | undefined;
161
+ };
162
+ }) | null, ({
163
+ $: import("vue").ComponentInternalInstance;
164
+ $data: {};
165
+ $props: Partial<{
166
+ size: "xs" | "sm" | "md" | "lg" | "xl";
167
+ options: NormalizedOption[];
168
+ loading: boolean;
169
+ selected: NormalizedOption | NormalizedOption[] | null | undefined;
170
+ keywords: string;
171
+ loadingBottom: boolean;
172
+ twDrawer: string;
173
+ }> & Omit<{
174
+ readonly size: "xs" | "sm" | "md" | "lg" | "xl";
175
+ readonly options: NormalizedOption[];
176
+ readonly loading: boolean;
177
+ readonly keywords: string;
178
+ readonly loadingBottom: boolean;
179
+ readonly twDrawer: string;
180
+ readonly selected?: NormalizedOption | NormalizedOption[] | null | undefined;
181
+ readonly onSelect?: ((...args: any[]) => any) | undefined;
182
+ readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
183
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer">;
184
+ $attrs: {
185
+ [x: string]: unknown;
186
+ };
187
+ $refs: {
188
+ [x: string]: unknown;
189
+ };
190
+ $slots: Readonly<{
191
+ [name: string]: import("vue").Slot<any> | undefined;
192
+ }>;
193
+ $root: import("vue").ComponentPublicInstance | null;
194
+ $parent: import("vue").ComponentPublicInstance | null;
195
+ $host: Element | null;
196
+ $emit: ((event: "select", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void);
197
+ $el: any;
198
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
199
+ selected: {
200
+ type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
201
+ default: undefined;
202
+ };
203
+ options: {
204
+ type: PropType<NormalizedOption[]>;
205
+ default(): never[];
206
+ };
207
+ keywords: {
208
+ type: StringConstructor;
209
+ default: string;
210
+ };
211
+ loading: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ loadingBottom: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ size: {
220
+ type: PropType<Size>;
221
+ default: string;
222
+ };
223
+ twDrawer: {
224
+ type: StringConstructor;
225
+ default: string;
226
+ };
227
+ }>> & Readonly<{
228
+ onSelect?: ((...args: any[]) => any) | undefined;
229
+ onScrollBottom?: ((...args: any[]) => any) | undefined;
230
+ }>, {
231
+ onKeydown: (event: KeyboardEvent) => void;
232
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
233
+ select: (...args: any[]) => void;
234
+ scrollBottom: (...args: any[]) => void;
235
+ }, string, {
236
+ size: "xs" | "sm" | "md" | "lg" | "xl";
237
+ options: NormalizedOption[];
238
+ loading: boolean;
239
+ selected: NormalizedOption | NormalizedOption[] | null | undefined;
240
+ keywords: string;
241
+ loadingBottom: boolean;
242
+ twDrawer: string;
243
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
244
+ beforeCreate?: (() => void) | (() => void)[];
245
+ created?: (() => void) | (() => void)[];
246
+ beforeMount?: (() => void) | (() => void)[];
247
+ mounted?: (() => void) | (() => void)[];
248
+ beforeUpdate?: (() => void) | (() => void)[];
249
+ updated?: (() => void) | (() => void)[];
250
+ activated?: (() => void) | (() => void)[];
251
+ deactivated?: (() => void) | (() => void)[];
252
+ beforeDestroy?: (() => void) | (() => void)[];
253
+ beforeUnmount?: (() => void) | (() => void)[];
254
+ destroyed?: (() => void) | (() => void)[];
255
+ unmounted?: (() => void) | (() => void)[];
256
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
257
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
258
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
259
+ };
260
+ $forceUpdate: () => void;
261
+ $nextTick: typeof import("vue").nextTick;
262
+ $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;
263
+ } & Readonly<{
264
+ size: "xs" | "sm" | "md" | "lg" | "xl";
265
+ options: NormalizedOption[];
266
+ loading: boolean;
267
+ selected: NormalizedOption | NormalizedOption[] | null | undefined;
268
+ keywords: string;
269
+ loadingBottom: boolean;
270
+ twDrawer: string;
271
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
272
+ selected: {
273
+ type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
274
+ default: undefined;
275
+ };
276
+ options: {
277
+ type: PropType<NormalizedOption[]>;
278
+ default(): never[];
279
+ };
280
+ keywords: {
281
+ type: StringConstructor;
282
+ default: string;
283
+ };
284
+ loading: {
285
+ type: BooleanConstructor;
286
+ default: boolean;
287
+ };
288
+ loadingBottom: {
289
+ type: BooleanConstructor;
290
+ default: boolean;
291
+ };
292
+ size: {
293
+ type: PropType<Size>;
294
+ default: string;
295
+ };
296
+ twDrawer: {
297
+ type: StringConstructor;
298
+ default: string;
299
+ };
300
+ }>> & Readonly<{
301
+ onSelect?: ((...args: any[]) => any) | undefined;
302
+ onScrollBottom?: ((...args: any[]) => any) | undefined;
303
+ }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
304
+ onKeydown: (event: KeyboardEvent) => void;
305
+ }> & {} & import("vue").ComponentCustomProperties & {} & {
306
+ $slots: {
307
+ empty?: ((props: {}) => any) | undefined;
308
+ option?: ((props: {
309
+ option: RawOption;
310
+ selected: boolean;
311
+ active: boolean;
312
+ }) => any) | undefined;
313
+ footer?: ((props: {
149
314
  options: NormalizedOption[];
150
- loading: boolean;
151
- selected: NormalizedOption | NormalizedOption[] | null | undefined;
152
- keywords: string;
153
- loadingBottom: boolean;
154
- twDrawer: string;
155
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
156
- selected: {
157
- type: PropType<NormalizedOption[] | NormalizedOption | null | undefined>;
158
- default: undefined;
159
- };
160
- options: {
161
- type: PropType<NormalizedOption[]>;
162
- default(): never[];
163
- };
164
- keywords: {
165
- type: StringConstructor;
166
- default: string;
167
- };
168
- loading: {
169
- type: BooleanConstructor;
170
- default: boolean;
171
- };
172
- loadingBottom: {
173
- type: BooleanConstructor;
174
- default: boolean;
175
- };
176
- size: {
177
- type: PropType<Size>;
178
- default: string;
179
- };
180
- twDrawer: {
181
- type: StringConstructor;
182
- default: string;
183
- };
184
- }>> & Readonly<{
185
- onSelect?: ((...args: any[]) => any) | undefined;
186
- onScrollBottom?: ((...args: any[]) => any) | undefined;
187
- }>, "onKeydown" | ("size" | "options" | "loading" | "selected" | "keywords" | "loadingBottom" | "twDrawer")> & import("vue").ShallowUnwrapRef<{
188
- onKeydown: (event: KeyboardEvent) => void;
189
- }> & {} & import("vue").ComponentCustomProperties & {} & {
190
- $slots: {
191
- empty?(_: {}): any;
192
- option?(_: {
193
- option: RawOption;
194
- selected: boolean;
195
- active: boolean;
196
- }): any;
197
- footer?(_: {
198
- options: NormalizedOption[];
199
- }): any;
200
- };
201
- }) | null;
202
- };
203
- rootEl: HTMLDivElement;
315
+ }) => any) | undefined;
316
+ };
317
+ }) | null>;
318
+ declare const keywords: import("vue").Ref<string, string>;
319
+ declare const autocomplete: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
320
+ declare const inputElement: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
321
+ declare const dropdownOpened: ComputedRef<boolean>;
322
+ declare const normalizedModelValue: ComputedRef<NormalizedOption[]>;
323
+ declare const filteredNormalizedOptions: ComputedRef<NormalizedOption[]>;
324
+ declare function open(): void;
325
+ declare function close(): void;
326
+ declare const onTextInput: (event: Event) => void;
327
+ declare const onTextKeydown: (event: KeyboardEvent) => void;
328
+ declare const onSelect: (option: NormalizedOption) => void;
329
+ declare function setKeywords(input: string): void;
330
+ declare function focus(): void;
331
+ declare function blur(): void;
332
+ declare const slotProps: {
333
+ focus: typeof focus;
334
+ blur: typeof blur;
335
+ open: typeof open;
336
+ close: typeof close;
337
+ keywords: ComputedRef<string>;
338
+ };
339
+ declare const removeOption: (option: NormalizedOption) => void;
340
+ declare const wrapperClass: ComputedRef<string | string[]>;
341
+ declare const inputClasses: ComputedRef<string[]>;
342
+ declare const selectionClass: (selection: NormalizedOption) => string;
343
+ declare const selectionDeleteClasses: ComputedRef<string>;
344
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
345
+ declare var __VLS_1: {
346
+ items: NormalizedOption[];
347
+ removeOption: (option: NormalizedOption) => void;
348
+ disabled: boolean;
349
+ }, __VLS_13: {
350
+ focus: typeof focus;
351
+ blur: typeof blur;
352
+ open: typeof open;
353
+ close: typeof close;
354
+ keywords: ComputedRef<string>;
355
+ }, __VLS_15: {
356
+ focus: typeof focus;
357
+ blur: typeof blur;
358
+ open: typeof open;
359
+ close: typeof close;
360
+ keywords: ComputedRef<string>;
361
+ option: RawOption;
362
+ selected: boolean;
363
+ active: boolean;
364
+ }, __VLS_17: {
365
+ focus: typeof focus;
366
+ blur: typeof blur;
367
+ open: typeof open;
368
+ close: typeof close;
369
+ keywords: ComputedRef<string>;
370
+ options: NormalizedOption[];
204
371
  };
205
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
372
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
373
+ items?: (props: typeof __VLS_1) => any;
374
+ } & {
375
+ empty?: (props: typeof __VLS_13) => any;
376
+ } & {
377
+ option?: (props: typeof __VLS_15) => any;
378
+ } & {
379
+ footer?: (props: typeof __VLS_17) => any;
380
+ }>;
381
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
382
+ modelValue: {
383
+ required: true;
384
+ type: PropType<RawOption[] | null>;
385
+ };
386
+ options: {
387
+ required: true;
388
+ type: PropType<RawOption[]>;
389
+ };
390
+ labelKey: {
391
+ required: true;
392
+ type: StringConstructor;
393
+ };
394
+ valueKey: {
395
+ required: true;
396
+ type: StringConstructor;
397
+ };
398
+ name: {
399
+ default: undefined;
400
+ type: StringConstructor;
401
+ };
402
+ placeholder: {
403
+ default: undefined;
404
+ type: StringConstructor;
405
+ };
406
+ loading: {
407
+ default: boolean;
408
+ type: BooleanConstructor;
409
+ };
410
+ loadingBottom: {
411
+ default: boolean;
412
+ type: BooleanConstructor;
413
+ };
414
+ required: {
415
+ default: undefined;
416
+ type: BooleanConstructor;
417
+ };
418
+ disabled: {
419
+ default: boolean;
420
+ type: BooleanConstructor;
421
+ };
422
+ max: {
423
+ default: undefined;
424
+ type: NumberConstructor;
425
+ };
426
+ filter: {
427
+ default: undefined;
428
+ type: PropType<(option: NormalizedOption) => boolean>;
429
+ };
430
+ hasError: {
431
+ default: boolean;
432
+ type: BooleanConstructor;
433
+ };
434
+ inline: {
435
+ default: boolean;
436
+ type: BooleanConstructor;
437
+ };
438
+ size: {
439
+ default: undefined;
440
+ type: PropType<Size>;
441
+ };
442
+ dropdownShow: {
443
+ default: string;
444
+ type: PropType<"focus" | "always">;
445
+ };
446
+ focusOnMount: {
447
+ default: boolean;
448
+ type: BooleanConstructor;
449
+ };
450
+ twContainer: {
451
+ default: string;
452
+ type: PropType<string | string[]>;
453
+ };
454
+ visibleFocus: {
455
+ default: boolean;
456
+ type: BooleanConstructor;
457
+ };
458
+ }>, {
459
+ BaseAutocompleteDrawer: typeof BaseAutocompleteDrawer;
460
+ t: typeof t;
461
+ emit: typeof emit;
462
+ drawer: typeof drawer;
463
+ keywords: typeof keywords;
464
+ autocomplete: typeof autocomplete;
465
+ inputElement: typeof inputElement;
466
+ dropdownOpened: typeof dropdownOpened;
467
+ normalizedModelValue: typeof normalizedModelValue;
468
+ filteredNormalizedOptions: typeof filteredNormalizedOptions;
469
+ open: typeof open;
470
+ onTextInput: typeof onTextInput;
471
+ onTextKeydown: typeof onTextKeydown;
472
+ onSelect: typeof onSelect;
473
+ slotProps: typeof slotProps;
474
+ removeOption: typeof removeOption;
475
+ wrapperClass: typeof wrapperClass;
476
+ inputClasses: typeof inputClasses;
477
+ selectionClass: typeof selectionClass;
478
+ selectionDeleteClasses: typeof selectionDeleteClasses;
479
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
480
+ close: (...args: any[]) => void;
481
+ open: (...args: any[]) => void;
482
+ "update:modelValue": (...args: any[]) => void;
483
+ scrollBottom: (...args: any[]) => void;
484
+ typing: (...args: any[]) => void;
485
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
486
+ modelValue: {
487
+ required: true;
488
+ type: PropType<RawOption[] | null>;
489
+ };
490
+ options: {
491
+ required: true;
492
+ type: PropType<RawOption[]>;
493
+ };
494
+ labelKey: {
495
+ required: true;
496
+ type: StringConstructor;
497
+ };
498
+ valueKey: {
499
+ required: true;
500
+ type: StringConstructor;
501
+ };
502
+ name: {
503
+ default: undefined;
504
+ type: StringConstructor;
505
+ };
506
+ placeholder: {
507
+ default: undefined;
508
+ type: StringConstructor;
509
+ };
510
+ loading: {
511
+ default: boolean;
512
+ type: BooleanConstructor;
513
+ };
514
+ loadingBottom: {
515
+ default: boolean;
516
+ type: BooleanConstructor;
517
+ };
518
+ required: {
519
+ default: undefined;
520
+ type: BooleanConstructor;
521
+ };
522
+ disabled: {
523
+ default: boolean;
524
+ type: BooleanConstructor;
525
+ };
526
+ max: {
527
+ default: undefined;
528
+ type: NumberConstructor;
529
+ };
530
+ filter: {
531
+ default: undefined;
532
+ type: PropType<(option: NormalizedOption) => boolean>;
533
+ };
534
+ hasError: {
535
+ default: boolean;
536
+ type: BooleanConstructor;
537
+ };
538
+ inline: {
539
+ default: boolean;
540
+ type: BooleanConstructor;
541
+ };
542
+ size: {
543
+ default: undefined;
544
+ type: PropType<Size>;
545
+ };
546
+ dropdownShow: {
547
+ default: string;
548
+ type: PropType<"focus" | "always">;
549
+ };
550
+ focusOnMount: {
551
+ default: boolean;
552
+ type: BooleanConstructor;
553
+ };
554
+ twContainer: {
555
+ default: string;
556
+ type: PropType<string | string[]>;
557
+ };
558
+ visibleFocus: {
559
+ default: boolean;
560
+ type: BooleanConstructor;
561
+ };
562
+ }>> & Readonly<{
563
+ onClose?: ((...args: any[]) => any) | undefined;
564
+ onOpen?: ((...args: any[]) => any) | undefined;
565
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
566
+ onScrollBottom?: ((...args: any[]) => any) | undefined;
567
+ onTyping?: ((...args: any[]) => any) | undefined;
568
+ }>, {
569
+ filter: (option: NormalizedOption) => boolean;
570
+ size: "xs" | "sm" | "md" | "lg" | "xl";
571
+ required: boolean;
572
+ inline: boolean;
573
+ disabled: boolean;
574
+ name: string;
575
+ placeholder: string;
576
+ hasError: boolean;
577
+ max: number;
578
+ visibleFocus: boolean;
579
+ loading: boolean;
580
+ loadingBottom: boolean;
581
+ dropdownShow: "always" | "focus";
582
+ focusOnMount: boolean;
583
+ twContainer: string | string[];
584
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
206
585
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
207
586
  modelValue: {
208
587
  required: true;
@@ -391,10 +770,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
391
770
  dropdownShow: "always" | "focus";
392
771
  focusOnMount: boolean;
393
772
  twContainer: string | string[];
394
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
395
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
773
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
774
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
396
775
  export default _default;
397
- type __VLS_WithTemplateSlots<T, S> = T & {
776
+ type __VLS_WithSlots<T, S> = T & {
398
777
  new (): {
399
778
  $slots: S;
400
779
  };