@rebilly/revel 4.21.3 → 5.0.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.
- package/CHANGELOG.md +22 -47
- package/README.md +23 -14
- package/dist/common/date-picker-compat.d.ts +1 -0
- package/dist/common/datetime-formats.d.ts +28 -0
- package/dist/common/helpers/debounce.d.ts +2 -0
- package/dist/common/helpers/deep-clone.d.ts +2 -0
- package/dist/common/helpers/format-date.d.ts +4 -0
- package/dist/common/helpers/index.d.ts +6 -0
- package/dist/common/helpers/is-object.d.ts +2 -0
- package/dist/common/helpers/kebab-case.d.ts +2 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/r-avatar/r-avatar.vue.d.ts +86 -0
- package/dist/components/r-badge/r-badge.vue.d.ts +40 -0
- package/dist/components/r-button/r-button.vue.d.ts +195 -0
- package/dist/components/r-button-group/r-button-group.vue.d.ts +18 -0
- package/dist/components/r-checkbox/r-checkbox.vue.d.ts +148 -0
- package/dist/components/r-date-input/calendar-presets.d.ts +36 -0
- package/dist/components/r-date-input/r-calendar.vue.d.ts +159 -0
- package/dist/components/r-date-input/r-date-input.vue.d.ts +297 -0
- package/dist/components/r-date-input/r-date-range-button-group.vue.d.ts +167 -0
- package/dist/components/r-date-input/r-range-calendar.vue.d.ts +211 -0
- package/dist/components/r-date-input/shared-calendar-options.d.ts +64 -0
- package/dist/components/r-date-input/types.d.ts +8 -0
- package/dist/components/r-date-input/v-calendar.es.d.ts +459 -0
- package/dist/components/r-file-upload/r-file-upload.vue.d.ts +68 -0
- package/dist/components/r-grid/columnTypes/badge.vue.d.ts +42 -0
- package/dist/components/r-grid/columnTypes/date.vue.d.ts +25 -0
- package/dist/components/r-grid/columnTypes/index.d.ts +93 -0
- package/dist/components/r-grid/columnTypes/numeric.vue.d.ts +24 -0
- package/dist/components/r-grid/columnTypes/text.vue.d.ts +26 -0
- package/dist/components/r-grid/columnTypes/types.d.ts +24 -0
- package/dist/components/r-grid/helpers/color-generator.d.ts +4 -0
- package/dist/components/r-grid/r-grid.vue.d.ts +196 -0
- package/dist/components/r-icon/r-icon-sprites.d.ts +128 -0
- package/dist/components/r-icon/r-icon.vue.d.ts +61 -0
- package/dist/components/r-icon-button/r-icon-button.vue.d.ts +133 -0
- package/dist/components/r-img/r-img.vue.d.ts +96 -0
- package/dist/components/r-input/r-input.vue.d.ts +411 -0
- package/dist/components/r-loader/r-loader.vue.d.ts +55 -0
- package/dist/components/r-modal/r-modal.vue.d.ts +132 -0
- package/dist/components/r-month-picker/months.d.ts +1 -0
- package/dist/components/r-month-picker/r-month-picker.vue.d.ts +122 -0
- package/dist/components/r-pagination/r-pagination.vue.d.ts +97 -0
- package/dist/components/r-pagination/types.d.ts +8 -0
- package/dist/components/r-pagination-control/r-pagination-control.vue.d.ts +33 -0
- package/dist/components/r-popper/r-popper.vue.d.ts +275 -0
- package/dist/components/r-radio/r-radio.vue.d.ts +132 -0
- package/dist/components/r-repeater/r-repeater.vue.d.ts +58 -0
- package/dist/components/r-select/async-extension.d.ts +91 -0
- package/dist/components/r-select/r-select.vue.d.ts +733 -0
- package/dist/components/r-select/types.d.ts +29 -0
- package/dist/components/r-tabs/r-tab.vue.d.ts +70 -0
- package/dist/components/r-tabs/r-tabs.vue.d.ts +6983 -0
- package/dist/components/r-tabs/types.d.ts +23 -0
- package/dist/components/r-tile/r-tile.vue.d.ts +2 -0
- package/dist/components/r-toast/default-error-handler.d.ts +4 -0
- package/dist/components/r-toast/r-toast-manager.d.ts +17 -0
- package/dist/components/r-toast/r-toast.vue.d.ts +141 -0
- package/dist/components/r-toast/types.d.ts +19 -0
- package/dist/components/r-toggle/r-toggle.vue.d.ts +69 -0
- package/dist/directives/index.d.ts +8 -0
- package/dist/directives/r-click-outside/r-click-outside.d.ts +10 -0
- package/dist/directives/r-content/r-content.d.ts +9 -0
- package/dist/directives/r-fs-exclude.d.ts +7 -0
- package/dist/directives/r-lazy.d.ts +5 -0
- package/dist/directives/r-tooltip/r-tooltip.d.ts +12 -0
- package/dist/index.d.ts +20 -0
- package/dist/playground/Playground-copyme.vue.d.ts +2 -0
- package/dist/playground/main.d.ts +1 -0
- package/dist/revel.mjs +5577 -4744
- package/dist/revel.umd.js +115 -115
- package/dist/style.css +1 -1
- package/dist/styles/config.d.ts +32 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/tokens.d.ts +130 -0
- package/dist/types.d.ts +24 -0
- package/package.json +107 -85
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
import type { PropType, StyleValue } from 'vue';
|
|
2
|
+
import { AsyncExtension, type Config } from './async-extension';
|
|
3
|
+
import type { Query, OptionItem, Options, AsyncSearchFn, ComplexOptionItem } from './types';
|
|
4
|
+
import type { Nullable, ValidationState } from '../../types';
|
|
5
|
+
interface Message {
|
|
6
|
+
loading: string;
|
|
7
|
+
more: (count: number) => string;
|
|
8
|
+
max: (max: number) => string;
|
|
9
|
+
noOptions: string;
|
|
10
|
+
noResult: string;
|
|
11
|
+
}
|
|
12
|
+
interface State {
|
|
13
|
+
valueObject: Nullable<OptionItem>;
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
optimizedHeight: number;
|
|
16
|
+
pointer: number;
|
|
17
|
+
pointerDirty: boolean;
|
|
18
|
+
preferredOpenDirection: 'below' | 'above';
|
|
19
|
+
search: string;
|
|
20
|
+
messages: Message;
|
|
21
|
+
async: AsyncExtension;
|
|
22
|
+
}
|
|
23
|
+
type CustomlabelFn = (option: OptionItem, label: string) => boolean;
|
|
24
|
+
type TagValidatorFn = (option: ComplexOptionItem) => boolean;
|
|
25
|
+
declare const _default: import("vue").DefineComponent<{
|
|
26
|
+
/**
|
|
27
|
+
* Specify if no option can be selected
|
|
28
|
+
*/
|
|
29
|
+
allowEmpty: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Specify autocomplete value
|
|
35
|
+
*/
|
|
36
|
+
autocomplete: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* List of keys where default behavior will be ignored
|
|
42
|
+
*/
|
|
43
|
+
blockKeys: {
|
|
44
|
+
type: PropType<string[]>;
|
|
45
|
+
default(): never[];
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Specify if on select the search input should be cleaned up
|
|
49
|
+
*/
|
|
50
|
+
clearOnSelect: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Specify if the popper should be closed after selection
|
|
56
|
+
*/
|
|
57
|
+
closeOnSelect: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* If the option is an object specify what property should be used as a label, by default 'label'
|
|
63
|
+
*/
|
|
64
|
+
customLabel: {
|
|
65
|
+
type: PropType<CustomlabelFn>;
|
|
66
|
+
default(option: OptionItem, label: string): unknown;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Specify how to validate the select field
|
|
70
|
+
*/
|
|
71
|
+
validate: {
|
|
72
|
+
type: PropType<ValidationState>;
|
|
73
|
+
default: null;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Disable the select field
|
|
77
|
+
*/
|
|
78
|
+
disabled: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Change the help text
|
|
84
|
+
*/
|
|
85
|
+
helpText: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: null;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Specify if selected options should be hidden
|
|
91
|
+
*/
|
|
92
|
+
hideSelected: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* ID of select field
|
|
98
|
+
*/
|
|
99
|
+
id: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: () => string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Specify is the internal search enabled
|
|
105
|
+
*/
|
|
106
|
+
internalSearch: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Change the label of the select field
|
|
112
|
+
*/
|
|
113
|
+
label: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Specify the limit quantity of shown selected options
|
|
119
|
+
*/
|
|
120
|
+
limit: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Set the text which is shown when there are not shown options by limit
|
|
126
|
+
*/
|
|
127
|
+
limitText: {
|
|
128
|
+
type: FunctionConstructor;
|
|
129
|
+
default: (count: number) => string;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Set the loading state
|
|
133
|
+
*/
|
|
134
|
+
loading: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Specify maximum for selected options
|
|
140
|
+
*/
|
|
141
|
+
max: {
|
|
142
|
+
type: PropType<number | boolean>;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Specify max height of the popper
|
|
147
|
+
*/
|
|
148
|
+
maxHeight: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Specify is multiple mode is enabled
|
|
154
|
+
*/
|
|
155
|
+
multiple: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Change the name of select
|
|
161
|
+
*/
|
|
162
|
+
name: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Specify direction of shown popper
|
|
168
|
+
*/
|
|
169
|
+
openDirection: {
|
|
170
|
+
type: PropType<"bottom" | "top" | "below" | "above">;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Set the options of select field
|
|
175
|
+
*/
|
|
176
|
+
options: {
|
|
177
|
+
type: PropType<Options>;
|
|
178
|
+
default: () => never[];
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Specify height of options in the popper
|
|
182
|
+
*/
|
|
183
|
+
optionHeight: {
|
|
184
|
+
type: NumberConstructor;
|
|
185
|
+
default: number;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* If the option is an object specify what property should be used as a value, by default 'value'
|
|
189
|
+
*/
|
|
190
|
+
optionKey: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* If the option is an object specify what property should be used as a label, by default 'label'
|
|
196
|
+
*/
|
|
197
|
+
optionLabel: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Set the limit of available shown options
|
|
203
|
+
*/
|
|
204
|
+
optionsLimit: {
|
|
205
|
+
type: NumberConstructor;
|
|
206
|
+
default: number;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Specify if the first option should be preselected
|
|
210
|
+
*/
|
|
211
|
+
preselectFirst: {
|
|
212
|
+
type: BooleanConstructor;
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Specify if the search should be preserved
|
|
217
|
+
*/
|
|
218
|
+
preserveSearch: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Change the placeholder
|
|
224
|
+
*/
|
|
225
|
+
placeholder: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Specify if the selection should be reset
|
|
231
|
+
*/
|
|
232
|
+
resetAfter: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Specify if the field searchable
|
|
238
|
+
*/
|
|
239
|
+
searchable: {
|
|
240
|
+
type: BooleanConstructor;
|
|
241
|
+
default: boolean;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Specify if the no option label should be shown
|
|
245
|
+
*/
|
|
246
|
+
showNoOptions: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Specify if the no results label should be shown
|
|
252
|
+
*/
|
|
253
|
+
showNoResults: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Specify should the pointer be shown
|
|
259
|
+
*/
|
|
260
|
+
showPointer: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Specify tab index
|
|
266
|
+
*/
|
|
267
|
+
tabindex: {
|
|
268
|
+
type: NumberConstructor;
|
|
269
|
+
default: number;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Specify should the user create his own options - tags
|
|
273
|
+
*/
|
|
274
|
+
taggable: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
default: boolean;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Specify tag position
|
|
280
|
+
*/
|
|
281
|
+
tagPosition: {
|
|
282
|
+
type: StringConstructor;
|
|
283
|
+
default: string;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Specify how the tag is validating
|
|
287
|
+
*/
|
|
288
|
+
tagValidator: {
|
|
289
|
+
type: PropType<TagValidatorFn>;
|
|
290
|
+
default: () => true;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* The array of selected options
|
|
294
|
+
*/
|
|
295
|
+
modelValue: {
|
|
296
|
+
type: PropType<Nullable<OptionItem | Options>>;
|
|
297
|
+
default(): never[];
|
|
298
|
+
};
|
|
299
|
+
asyncGetInitValue: {
|
|
300
|
+
type: PropType<AsyncSearchFn>;
|
|
301
|
+
default: null;
|
|
302
|
+
};
|
|
303
|
+
asyncFind: {
|
|
304
|
+
type: PropType<AsyncSearchFn>;
|
|
305
|
+
default: null;
|
|
306
|
+
};
|
|
307
|
+
asyncConfig: {
|
|
308
|
+
type: PropType<Config>;
|
|
309
|
+
default: () => {};
|
|
310
|
+
};
|
|
311
|
+
asyncValuePropsKey: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
default: string;
|
|
314
|
+
};
|
|
315
|
+
}, unknown, State, {
|
|
316
|
+
computedLabel(): string;
|
|
317
|
+
computedOptions(): Options;
|
|
318
|
+
computedTrackBy(): string;
|
|
319
|
+
computedValue(): {} | null | undefined;
|
|
320
|
+
contentStyle(): {
|
|
321
|
+
display: string;
|
|
322
|
+
minWidth: string;
|
|
323
|
+
};
|
|
324
|
+
currentOptionLabel(): OptionItem | undefined;
|
|
325
|
+
filteredOptions(): OptionItem[];
|
|
326
|
+
hasContent(): boolean;
|
|
327
|
+
hasLabel(): boolean;
|
|
328
|
+
classes(): {
|
|
329
|
+
'r-is-error': boolean;
|
|
330
|
+
};
|
|
331
|
+
isInvalid(): boolean;
|
|
332
|
+
inputStyle(): StyleValue;
|
|
333
|
+
internalValue(): Options;
|
|
334
|
+
isAbove(): boolean;
|
|
335
|
+
isComplexOptions(): boolean;
|
|
336
|
+
isPlaceholderVisible(): boolean;
|
|
337
|
+
isSingleLabelVisible(): boolean;
|
|
338
|
+
optionKeys(): string[];
|
|
339
|
+
pointerPosition(): number;
|
|
340
|
+
primitiveValue(): {} | null | undefined;
|
|
341
|
+
singleValue(): OptionItem;
|
|
342
|
+
valueKeys(): unknown[];
|
|
343
|
+
visibleElements(): number;
|
|
344
|
+
visibleValues(): OptionItem[];
|
|
345
|
+
computedIsAsync(): true;
|
|
346
|
+
computedIsLoading(): boolean;
|
|
347
|
+
computedValueProps(): any;
|
|
348
|
+
computedAsyncLastOptions(): Options | undefined;
|
|
349
|
+
computedAsyncHasOptions(): boolean;
|
|
350
|
+
computedAsyncHasPrevOptions(): boolean;
|
|
351
|
+
computedAsyncHasNextOptions(): boolean;
|
|
352
|
+
displayNoResultsMessage(): boolean;
|
|
353
|
+
}, {
|
|
354
|
+
activate(): void;
|
|
355
|
+
addPointerElement({ key }: KeyboardEvent): void;
|
|
356
|
+
adjustPosition(): void;
|
|
357
|
+
deactivate(): void;
|
|
358
|
+
getOptionLabel(option: Nullable<OptionItem>): string | boolean | undefined;
|
|
359
|
+
getOptionValue(option: Nullable<OptionItem>): unknown;
|
|
360
|
+
getPrimitiveValueFromValue({ value, trackBy, multiple, }: {
|
|
361
|
+
value: unknown;
|
|
362
|
+
trackBy: string;
|
|
363
|
+
multiple: boolean;
|
|
364
|
+
}): {} | null | undefined;
|
|
365
|
+
getValue(): OptionItem | Options | null;
|
|
366
|
+
isExistingOption(query: string): boolean;
|
|
367
|
+
isSelected(option: OptionItem): boolean;
|
|
368
|
+
optionHighlight(index: number, option: OptionItem): {
|
|
369
|
+
'r-select-option-is-highlight': boolean;
|
|
370
|
+
'r-select-option-is-selected': boolean;
|
|
371
|
+
};
|
|
372
|
+
pointerAdjust(): void;
|
|
373
|
+
pointerBackward(): void;
|
|
374
|
+
pointerForward(): void;
|
|
375
|
+
pointerReset(): void;
|
|
376
|
+
pointerSet(index: number): void;
|
|
377
|
+
prepareCacheValuePrefix(value: unknown): string;
|
|
378
|
+
removeElement(option: OptionItem, shouldClose?: boolean): void;
|
|
379
|
+
preselect(): void;
|
|
380
|
+
removeLastElement(): void;
|
|
381
|
+
select(option: OptionItem, key?: string): void;
|
|
382
|
+
toggle(): void;
|
|
383
|
+
updateSearch(query: string): void;
|
|
384
|
+
handleAsyncFind(search: string): Promise<void>;
|
|
385
|
+
handleAsyncLoadNext(): Promise<void>;
|
|
386
|
+
handleAsyncLoadPrev(): Promise<void>;
|
|
387
|
+
handleAsyncLoadMore(count: number): Promise<void>;
|
|
388
|
+
handleAsyncLoadByQuery({ limit, offset }: Partial<Query>): Promise<void>;
|
|
389
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "tag" | "select" | "update:modelValue" | "open" | "async-loaded" | "search-change" | "remove")[], "close" | "tag" | "select" | "update:modelValue" | "open" | "async-loaded" | "search-change" | "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
390
|
+
/**
|
|
391
|
+
* Specify if no option can be selected
|
|
392
|
+
*/
|
|
393
|
+
allowEmpty: {
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
default: boolean;
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* Specify autocomplete value
|
|
399
|
+
*/
|
|
400
|
+
autocomplete: {
|
|
401
|
+
type: StringConstructor;
|
|
402
|
+
default: string;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* List of keys where default behavior will be ignored
|
|
406
|
+
*/
|
|
407
|
+
blockKeys: {
|
|
408
|
+
type: PropType<string[]>;
|
|
409
|
+
default(): never[];
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Specify if on select the search input should be cleaned up
|
|
413
|
+
*/
|
|
414
|
+
clearOnSelect: {
|
|
415
|
+
type: BooleanConstructor;
|
|
416
|
+
default: boolean;
|
|
417
|
+
};
|
|
418
|
+
/**
|
|
419
|
+
* Specify if the popper should be closed after selection
|
|
420
|
+
*/
|
|
421
|
+
closeOnSelect: {
|
|
422
|
+
type: BooleanConstructor;
|
|
423
|
+
default: boolean;
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* If the option is an object specify what property should be used as a label, by default 'label'
|
|
427
|
+
*/
|
|
428
|
+
customLabel: {
|
|
429
|
+
type: PropType<CustomlabelFn>;
|
|
430
|
+
default(option: OptionItem, label: string): unknown;
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* Specify how to validate the select field
|
|
434
|
+
*/
|
|
435
|
+
validate: {
|
|
436
|
+
type: PropType<ValidationState>;
|
|
437
|
+
default: null;
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Disable the select field
|
|
441
|
+
*/
|
|
442
|
+
disabled: {
|
|
443
|
+
type: BooleanConstructor;
|
|
444
|
+
default: boolean;
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* Change the help text
|
|
448
|
+
*/
|
|
449
|
+
helpText: {
|
|
450
|
+
type: StringConstructor;
|
|
451
|
+
default: null;
|
|
452
|
+
};
|
|
453
|
+
/**
|
|
454
|
+
* Specify if selected options should be hidden
|
|
455
|
+
*/
|
|
456
|
+
hideSelected: {
|
|
457
|
+
type: BooleanConstructor;
|
|
458
|
+
default: boolean;
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* ID of select field
|
|
462
|
+
*/
|
|
463
|
+
id: {
|
|
464
|
+
type: StringConstructor;
|
|
465
|
+
default: () => string;
|
|
466
|
+
};
|
|
467
|
+
/**
|
|
468
|
+
* Specify is the internal search enabled
|
|
469
|
+
*/
|
|
470
|
+
internalSearch: {
|
|
471
|
+
type: BooleanConstructor;
|
|
472
|
+
default: boolean;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Change the label of the select field
|
|
476
|
+
*/
|
|
477
|
+
label: {
|
|
478
|
+
type: StringConstructor;
|
|
479
|
+
default: string;
|
|
480
|
+
};
|
|
481
|
+
/**
|
|
482
|
+
* Specify the limit quantity of shown selected options
|
|
483
|
+
*/
|
|
484
|
+
limit: {
|
|
485
|
+
type: NumberConstructor;
|
|
486
|
+
default: number;
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* Set the text which is shown when there are not shown options by limit
|
|
490
|
+
*/
|
|
491
|
+
limitText: {
|
|
492
|
+
type: FunctionConstructor;
|
|
493
|
+
default: (count: number) => string;
|
|
494
|
+
};
|
|
495
|
+
/**
|
|
496
|
+
* Set the loading state
|
|
497
|
+
*/
|
|
498
|
+
loading: {
|
|
499
|
+
type: BooleanConstructor;
|
|
500
|
+
default: boolean;
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* Specify maximum for selected options
|
|
504
|
+
*/
|
|
505
|
+
max: {
|
|
506
|
+
type: PropType<number | boolean>;
|
|
507
|
+
default: boolean;
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* Specify max height of the popper
|
|
511
|
+
*/
|
|
512
|
+
maxHeight: {
|
|
513
|
+
type: NumberConstructor;
|
|
514
|
+
default: number;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Specify is multiple mode is enabled
|
|
518
|
+
*/
|
|
519
|
+
multiple: {
|
|
520
|
+
type: BooleanConstructor;
|
|
521
|
+
default: boolean;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* Change the name of select
|
|
525
|
+
*/
|
|
526
|
+
name: {
|
|
527
|
+
type: StringConstructor;
|
|
528
|
+
default: string;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Specify direction of shown popper
|
|
532
|
+
*/
|
|
533
|
+
openDirection: {
|
|
534
|
+
type: PropType<"bottom" | "top" | "below" | "above">;
|
|
535
|
+
default: string;
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Set the options of select field
|
|
539
|
+
*/
|
|
540
|
+
options: {
|
|
541
|
+
type: PropType<Options>;
|
|
542
|
+
default: () => never[];
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Specify height of options in the popper
|
|
546
|
+
*/
|
|
547
|
+
optionHeight: {
|
|
548
|
+
type: NumberConstructor;
|
|
549
|
+
default: number;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* If the option is an object specify what property should be used as a value, by default 'value'
|
|
553
|
+
*/
|
|
554
|
+
optionKey: {
|
|
555
|
+
type: StringConstructor;
|
|
556
|
+
default: string;
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* If the option is an object specify what property should be used as a label, by default 'label'
|
|
560
|
+
*/
|
|
561
|
+
optionLabel: {
|
|
562
|
+
type: StringConstructor;
|
|
563
|
+
default: string;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Set the limit of available shown options
|
|
567
|
+
*/
|
|
568
|
+
optionsLimit: {
|
|
569
|
+
type: NumberConstructor;
|
|
570
|
+
default: number;
|
|
571
|
+
};
|
|
572
|
+
/**
|
|
573
|
+
* Specify if the first option should be preselected
|
|
574
|
+
*/
|
|
575
|
+
preselectFirst: {
|
|
576
|
+
type: BooleanConstructor;
|
|
577
|
+
default: boolean;
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Specify if the search should be preserved
|
|
581
|
+
*/
|
|
582
|
+
preserveSearch: {
|
|
583
|
+
type: BooleanConstructor;
|
|
584
|
+
default: boolean;
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* Change the placeholder
|
|
588
|
+
*/
|
|
589
|
+
placeholder: {
|
|
590
|
+
type: StringConstructor;
|
|
591
|
+
default: string;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* Specify if the selection should be reset
|
|
595
|
+
*/
|
|
596
|
+
resetAfter: {
|
|
597
|
+
type: BooleanConstructor;
|
|
598
|
+
default: boolean;
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* Specify if the field searchable
|
|
602
|
+
*/
|
|
603
|
+
searchable: {
|
|
604
|
+
type: BooleanConstructor;
|
|
605
|
+
default: boolean;
|
|
606
|
+
};
|
|
607
|
+
/**
|
|
608
|
+
* Specify if the no option label should be shown
|
|
609
|
+
*/
|
|
610
|
+
showNoOptions: {
|
|
611
|
+
type: BooleanConstructor;
|
|
612
|
+
default: boolean;
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* Specify if the no results label should be shown
|
|
616
|
+
*/
|
|
617
|
+
showNoResults: {
|
|
618
|
+
type: BooleanConstructor;
|
|
619
|
+
default: boolean;
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Specify should the pointer be shown
|
|
623
|
+
*/
|
|
624
|
+
showPointer: {
|
|
625
|
+
type: BooleanConstructor;
|
|
626
|
+
default: boolean;
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* Specify tab index
|
|
630
|
+
*/
|
|
631
|
+
tabindex: {
|
|
632
|
+
type: NumberConstructor;
|
|
633
|
+
default: number;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* Specify should the user create his own options - tags
|
|
637
|
+
*/
|
|
638
|
+
taggable: {
|
|
639
|
+
type: BooleanConstructor;
|
|
640
|
+
default: boolean;
|
|
641
|
+
};
|
|
642
|
+
/**
|
|
643
|
+
* Specify tag position
|
|
644
|
+
*/
|
|
645
|
+
tagPosition: {
|
|
646
|
+
type: StringConstructor;
|
|
647
|
+
default: string;
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* Specify how the tag is validating
|
|
651
|
+
*/
|
|
652
|
+
tagValidator: {
|
|
653
|
+
type: PropType<TagValidatorFn>;
|
|
654
|
+
default: () => true;
|
|
655
|
+
};
|
|
656
|
+
/**
|
|
657
|
+
* The array of selected options
|
|
658
|
+
*/
|
|
659
|
+
modelValue: {
|
|
660
|
+
type: PropType<Nullable<OptionItem | Options>>;
|
|
661
|
+
default(): never[];
|
|
662
|
+
};
|
|
663
|
+
asyncGetInitValue: {
|
|
664
|
+
type: PropType<AsyncSearchFn>;
|
|
665
|
+
default: null;
|
|
666
|
+
};
|
|
667
|
+
asyncFind: {
|
|
668
|
+
type: PropType<AsyncSearchFn>;
|
|
669
|
+
default: null;
|
|
670
|
+
};
|
|
671
|
+
asyncConfig: {
|
|
672
|
+
type: PropType<Config>;
|
|
673
|
+
default: () => {};
|
|
674
|
+
};
|
|
675
|
+
asyncValuePropsKey: {
|
|
676
|
+
type: StringConstructor;
|
|
677
|
+
default: string;
|
|
678
|
+
};
|
|
679
|
+
}>> & {
|
|
680
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
681
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
682
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
683
|
+
onTag?: ((...args: any[]) => any) | undefined;
|
|
684
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
685
|
+
"onAsync-loaded"?: ((...args: any[]) => any) | undefined;
|
|
686
|
+
"onSearch-change"?: ((...args: any[]) => any) | undefined;
|
|
687
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
688
|
+
}, {
|
|
689
|
+
loading: boolean;
|
|
690
|
+
id: string;
|
|
691
|
+
name: string;
|
|
692
|
+
label: string;
|
|
693
|
+
max: number | boolean;
|
|
694
|
+
tabindex: number;
|
|
695
|
+
placeholder: string;
|
|
696
|
+
disabled: boolean;
|
|
697
|
+
modelValue: Nullable<OptionItem | Options>;
|
|
698
|
+
validate: ValidationState;
|
|
699
|
+
autocomplete: string;
|
|
700
|
+
multiple: boolean;
|
|
701
|
+
helpText: string;
|
|
702
|
+
limit: number;
|
|
703
|
+
asyncGetInitValue: AsyncSearchFn;
|
|
704
|
+
asyncFind: AsyncSearchFn;
|
|
705
|
+
options: Options;
|
|
706
|
+
allowEmpty: boolean;
|
|
707
|
+
blockKeys: string[];
|
|
708
|
+
clearOnSelect: boolean;
|
|
709
|
+
closeOnSelect: boolean;
|
|
710
|
+
customLabel: CustomlabelFn;
|
|
711
|
+
hideSelected: boolean;
|
|
712
|
+
internalSearch: boolean;
|
|
713
|
+
limitText: Function;
|
|
714
|
+
maxHeight: number;
|
|
715
|
+
openDirection: "bottom" | "top" | "below" | "above";
|
|
716
|
+
optionHeight: number;
|
|
717
|
+
optionKey: string;
|
|
718
|
+
optionLabel: string;
|
|
719
|
+
optionsLimit: number;
|
|
720
|
+
preselectFirst: boolean;
|
|
721
|
+
preserveSearch: boolean;
|
|
722
|
+
resetAfter: boolean;
|
|
723
|
+
searchable: boolean;
|
|
724
|
+
showNoOptions: boolean;
|
|
725
|
+
showNoResults: boolean;
|
|
726
|
+
showPointer: boolean;
|
|
727
|
+
taggable: boolean;
|
|
728
|
+
tagPosition: string;
|
|
729
|
+
tagValidator: TagValidatorFn;
|
|
730
|
+
asyncConfig: Config;
|
|
731
|
+
asyncValuePropsKey: string;
|
|
732
|
+
}>;
|
|
733
|
+
export default _default;
|