@teammodlr/ui-kit 3.0.0-beta.9 → 3.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/lib/components/checkbox/Checkbox.vue.d.ts +4 -4
- package/lib/components/clearbutton/ClearButton.vue.d.ts +7 -0
- package/lib/components/clearbutton/style/ClearButton.css.d.ts +2 -0
- package/lib/components/clearbutton/style/index.d.ts +1 -0
- package/lib/components/colorpicker/ColorPicker.vue.d.ts +0 -1
- package/lib/components/colorpicker/style/ColorPicker.css.d.ts +1 -0
- package/lib/components/dialog/style/Dialog.css.d.ts +2 -0
- package/lib/components/drawer/Drawer.vue.d.ts +142 -0
- package/lib/components/drawer/style/Drawer.css.d.ts +33 -0
- package/lib/components/drawer/style/index.d.ts +1 -0
- package/lib/components/hovercard/HoverCard.vue.d.ts +122 -0
- package/lib/components/hovercard/style/HoverCard.css.d.ts +3 -0
- package/lib/components/hovercard/style/index.d.ts +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/input/Input.vue.d.ts +20 -5
- package/lib/components/input/style/Input.css.d.ts +4 -0
- package/lib/components/paneldialog/PanelDialog.vue.d.ts +167 -0
- package/lib/components/paneldialog/style/PanelDialog.css.d.ts +8 -0
- package/lib/components/paneldialog/style/index.d.ts +1 -0
- package/lib/components/popover/Popover.vue.d.ts +24 -0
- package/lib/components/radio/Radio.vue.d.ts +5 -5
- package/lib/components/radiobutton/RadioButton.vue.d.ts +4 -4
- package/lib/components/select/Select.vue.d.ts +72 -91
- package/lib/components/select/style/Select.css.d.ts +9 -1
- package/lib/components/switch/Switch.vue.d.ts +4 -4
- package/lib/components/textarea/Textarea.vue.d.ts +16 -5
- package/lib/components/textarea/style/Textarea.css.d.ts +2 -0
- package/lib/composables/useInput.d.ts +9 -2
- package/lib/index.cjs.js +3 -3
- package/lib/index.es.js +8491 -6431
- package/lib/style.css +1 -1
- package/lib/tsconfig.app.tsbuildinfo +1 -0
- package/package.json +7 -4
- package/src/components/cardcontextmenu/style/Dropdown.css.ts +7 -0
- package/src/components/clearbutton/ClearButton.vue +39 -0
- package/src/components/clearbutton/style/ClearButton.css.ts +37 -0
- package/src/components/clearbutton/style/index.ts +1 -0
- package/src/components/colorpicker/ColorPicker.vue +8 -11
- package/src/components/colorpicker/examples/basic.vue +8 -17
- package/src/components/colorpicker/style/ColorPicker.css.ts +6 -1
- package/src/components/dialog/Dialog.vue +2 -5
- package/src/components/dialog/style/Dialog.css.ts +30 -0
- package/src/components/drawer/Drawer.vue +276 -0
- package/src/components/drawer/examples/basic.vue +15 -0
- package/src/components/drawer/examples/custom-title.vue +21 -0
- package/src/components/drawer/examples/index.stories.ts +24 -0
- package/src/components/drawer/examples/index.ts +7 -0
- package/src/components/drawer/examples/no-mask.vue +15 -0
- package/src/components/drawer/examples/no-outside-close.vue +15 -0
- package/src/components/drawer/examples/placements.vue +28 -0
- package/src/components/drawer/examples/with-footer.vue +21 -0
- package/src/components/drawer/examples/with-trigger.vue +13 -0
- package/src/components/drawer/style/Drawer.css.ts +208 -0
- package/src/components/drawer/style/index.ts +1 -0
- package/src/components/dropdown/Dropdown.vue +1 -1
- package/src/components/hovercard/HoverCard.vue +163 -0
- package/src/components/hovercard/style/HoverCard.css.ts +175 -0
- package/src/components/hovercard/style/index.ts +1 -0
- package/src/components/index.ts +3 -0
- package/src/components/input/Input.vue +52 -4
- package/src/components/input/examples/clearable.vue +18 -0
- package/src/components/input/examples/index.stories.ts +3 -1
- package/src/components/input/examples/index.ts +1 -0
- package/src/components/input/style/Input.css.ts +19 -0
- package/src/components/messageprovider/MessageProvider.vue +33 -7
- package/src/components/paneldialog/PanelDialog.vue +500 -0
- package/src/components/paneldialog/examples/basic.vue +36 -0
- package/src/components/paneldialog/examples/index.stories.ts +22 -0
- package/src/components/paneldialog/examples/index.ts +2 -0
- package/src/components/paneldialog/examples/modal.vue +31 -0
- package/src/components/paneldialog/style/PanelDialog.css.ts +90 -0
- package/src/components/paneldialog/style/index.ts +1 -0
- package/src/components/popover/Popover.vue +6 -1
- package/src/components/select/Select.vue +122 -42
- package/src/components/select/examples/clearable.vue +18 -0
- package/src/components/select/examples/fill.vue +52 -0
- package/src/components/select/examples/index.stories.ts +3 -1
- package/src/components/select/examples/index.ts +2 -0
- package/src/components/select/style/Select.css.ts +140 -24
- package/src/components/tab/Tab.vue +1 -1
- package/src/components/tab/style/Tab.css.ts +6 -0
- package/src/components/textarea/Textarea.vue +40 -4
- package/src/components/textarea/examples/clearable.vue +16 -0
- package/src/components/textarea/examples/index.stories.ts +2 -1
- package/src/components/textarea/examples/index.ts +1 -0
- package/src/components/textarea/style/Textarea.css.ts +10 -0
- package/src/composables/useInput.ts +10 -2
|
@@ -21,11 +21,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
22
22
|
default: null;
|
|
23
23
|
};
|
|
24
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
24
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
25
25
|
name: StringConstructor;
|
|
26
26
|
readonly: BooleanConstructor;
|
|
27
27
|
required: BooleanConstructor;
|
|
28
|
-
error:
|
|
28
|
+
error: PropType<string | null | undefined>;
|
|
29
29
|
rules: {
|
|
30
30
|
readonly type: ArrayConstructor;
|
|
31
31
|
readonly default: () => never[];
|
|
@@ -40,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
disabled: import("vue").ComputedRef<any>;
|
|
41
41
|
name: import("vue").Ref<string | undefined>;
|
|
42
42
|
checked: import("vue").ComputedRef<boolean>;
|
|
43
|
-
pick: import("vue").WritableComputedRef<string | number | boolean | object | any[] | undefined>;
|
|
43
|
+
pick: import("vue").WritableComputedRef<string | number | boolean | object | any[] | null | undefined>;
|
|
44
44
|
radioRef: import("vue").Ref<HTMLElement | null>;
|
|
45
45
|
inputError: import("vue").ComputedRef<any>;
|
|
46
46
|
style: typeof style;
|
|
@@ -73,11 +73,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
74
74
|
default: null;
|
|
75
75
|
};
|
|
76
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
76
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
77
77
|
name: StringConstructor;
|
|
78
78
|
readonly: BooleanConstructor;
|
|
79
79
|
required: BooleanConstructor;
|
|
80
|
-
error:
|
|
80
|
+
error: PropType<string | null | undefined>;
|
|
81
81
|
rules: {
|
|
82
82
|
readonly type: ArrayConstructor;
|
|
83
83
|
readonly default: () => never[];
|
|
@@ -26,11 +26,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: () => void;
|
|
27
27
|
};
|
|
28
28
|
loading: BooleanConstructor;
|
|
29
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
29
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
30
30
|
name: StringConstructor;
|
|
31
31
|
readonly: BooleanConstructor;
|
|
32
32
|
required: BooleanConstructor;
|
|
33
|
-
error:
|
|
33
|
+
error: PropType<string | null | undefined>;
|
|
34
34
|
rules: {
|
|
35
35
|
readonly type: ArrayConstructor;
|
|
36
36
|
readonly default: () => never[];
|
|
@@ -73,11 +73,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
default: () => void;
|
|
74
74
|
};
|
|
75
75
|
loading: BooleanConstructor;
|
|
76
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
76
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
77
77
|
name: StringConstructor;
|
|
78
78
|
readonly: BooleanConstructor;
|
|
79
79
|
required: BooleanConstructor;
|
|
80
|
-
error:
|
|
80
|
+
error: PropType<string | null | undefined>;
|
|
81
81
|
rules: {
|
|
82
82
|
readonly type: ArrayConstructor;
|
|
83
83
|
readonly default: () => never[];
|
|
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
57
|
error: {
|
|
58
|
-
type:
|
|
58
|
+
type: PropType<string | null>;
|
|
59
59
|
};
|
|
60
60
|
allowBlank: {
|
|
61
61
|
type: BooleanConstructor;
|
|
@@ -73,16 +73,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
+
fill: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
noBorder: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
76
84
|
zIndex: {
|
|
77
85
|
type: NumberConstructor;
|
|
78
86
|
};
|
|
87
|
+
clearable: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
clearValue: {
|
|
92
|
+
type: PropType<string | number | boolean | object | null>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
79
95
|
showDataOptions: {
|
|
80
96
|
type: BooleanConstructor;
|
|
81
97
|
default: boolean;
|
|
82
98
|
};
|
|
83
99
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
84
100
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
85
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
101
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
86
102
|
name: StringConstructor;
|
|
87
103
|
readonly: BooleanConstructor;
|
|
88
104
|
required: BooleanConstructor;
|
|
@@ -92,7 +108,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
108
|
};
|
|
93
109
|
}, {
|
|
94
110
|
container: import("vue").Ref<HTMLElement | null>;
|
|
95
|
-
|
|
111
|
+
virtualListRef: import("vue").Ref<{
|
|
112
|
+
scrollToIndex: (index: number, opts?: {
|
|
113
|
+
align?: "start" | "center" | "end" | "nearest";
|
|
114
|
+
}) => void;
|
|
115
|
+
} | null>;
|
|
96
116
|
searchRef: import("vue").Ref<HTMLInputElement | undefined>;
|
|
97
117
|
selectRef: import("vue").Ref<HTMLElement | undefined>;
|
|
98
118
|
popper: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -127,13 +147,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
147
|
'm-select--multiple': boolean;
|
|
128
148
|
'm-select--error': any;
|
|
129
149
|
})[]>;
|
|
130
|
-
computedWrapperClasses: import("vue").ComputedRef<string
|
|
150
|
+
computedWrapperClasses: import("vue").ComputedRef<(string | {
|
|
151
|
+
[x: string]: boolean;
|
|
152
|
+
})[]>;
|
|
131
153
|
computedConsistentWidth: import("vue").ComputedRef<{
|
|
132
154
|
zIndex: number;
|
|
133
155
|
}>;
|
|
134
156
|
getSelectedLabel: (value: string | number | []) => any;
|
|
135
157
|
openSelect: (forceOpen?: boolean) => void;
|
|
136
|
-
removeSelected: (
|
|
158
|
+
removeSelected: (value: string | number) => void;
|
|
159
|
+
showClear: import("vue").ComputedRef<boolean>;
|
|
160
|
+
clearSelected: () => void;
|
|
137
161
|
inputError: import("vue").ComputedRef<any>;
|
|
138
162
|
transitionName: import("vue").ComputedRef<string>;
|
|
139
163
|
inputListeners: {};
|
|
@@ -146,90 +170,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
170
|
leaveTo: string;
|
|
147
171
|
};
|
|
148
172
|
toggleAllItems: () => void;
|
|
173
|
+
optionItemHeight: import("vue").ComputedRef<number>;
|
|
174
|
+
optionsHeight: import("vue").ComputedRef<number>;
|
|
175
|
+
optionSizeClass: import("vue").ComputedRef<string>;
|
|
176
|
+
fillRootClass: import("vue").ComputedRef<string | undefined>;
|
|
177
|
+
fillLabelClass: import("vue").ComputedRef<string | undefined>;
|
|
149
178
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
concat(...items: (string | ConcatArray<string>)[]): string[];
|
|
159
|
-
join(separator?: string): string;
|
|
160
|
-
reverse(): string[];
|
|
161
|
-
shift(): string | undefined;
|
|
162
|
-
slice(start?: number, end?: number): string[];
|
|
163
|
-
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[];
|
|
164
|
-
splice(start: number, deleteCount?: number): string[];
|
|
165
|
-
splice(start: number, deleteCount: number, ...items: string[]): string[];
|
|
166
|
-
unshift(...items: string[]): number;
|
|
167
|
-
indexOf(searchElement: string, fromIndex?: number): number;
|
|
168
|
-
lastIndexOf(searchElement: string, fromIndex?: number): number;
|
|
169
|
-
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
|
|
170
|
-
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
171
|
-
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
172
|
-
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
173
|
-
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
174
|
-
filter<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
175
|
-
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
176
|
-
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
177
|
-
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
178
|
-
reduce<U>(callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U;
|
|
179
|
-
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
180
|
-
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
181
|
-
reduceRight<U>(callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U;
|
|
182
|
-
find<S extends string>(predicate: (value: string, index: number, obj: string[]) => value is S, thisArg?: any): S | undefined;
|
|
183
|
-
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
184
|
-
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
185
|
-
fill(value: string, start?: number, end?: number): string[];
|
|
186
|
-
copyWithin(target: number, start: number, end?: number): string[];
|
|
187
|
-
entries(): IterableIterator<[number, string]>;
|
|
188
|
-
keys(): IterableIterator<number>;
|
|
189
|
-
values(): IterableIterator<string>;
|
|
190
|
-
includes(searchElement: string, fromIndex?: number): boolean;
|
|
191
|
-
flatMap<U, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U | ReadonlyArray<U>, thisArg?: This | undefined): U[];
|
|
192
|
-
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
193
|
-
[Symbol.iterator](): IterableIterator<string>;
|
|
194
|
-
[Symbol.unscopables]: {
|
|
195
|
-
[x: number]: boolean | undefined;
|
|
196
|
-
length?: boolean | undefined;
|
|
197
|
-
toString?: boolean | undefined;
|
|
198
|
-
toLocaleString?: boolean | undefined;
|
|
199
|
-
pop?: boolean | undefined;
|
|
200
|
-
push?: boolean | undefined;
|
|
201
|
-
concat?: boolean | undefined;
|
|
202
|
-
join?: boolean | undefined;
|
|
203
|
-
reverse?: boolean | undefined;
|
|
204
|
-
shift?: boolean | undefined;
|
|
205
|
-
slice?: boolean | undefined;
|
|
206
|
-
sort?: boolean | undefined;
|
|
207
|
-
splice?: boolean | undefined;
|
|
208
|
-
unshift?: boolean | undefined;
|
|
209
|
-
indexOf?: boolean | undefined;
|
|
210
|
-
lastIndexOf?: boolean | undefined;
|
|
211
|
-
every?: boolean | undefined;
|
|
212
|
-
some?: boolean | undefined;
|
|
213
|
-
forEach?: boolean | undefined;
|
|
214
|
-
map?: boolean | undefined;
|
|
215
|
-
filter?: boolean | undefined;
|
|
216
|
-
reduce?: boolean | undefined;
|
|
217
|
-
reduceRight?: boolean | undefined;
|
|
218
|
-
find?: boolean | undefined;
|
|
219
|
-
findIndex?: boolean | undefined;
|
|
220
|
-
fill?: boolean | undefined;
|
|
221
|
-
copyWithin?: boolean | undefined;
|
|
222
|
-
entries?: boolean | undefined;
|
|
223
|
-
keys?: boolean | undefined;
|
|
224
|
-
values?: boolean | undefined;
|
|
225
|
-
includes?: boolean | undefined;
|
|
226
|
-
flatMap?: boolean | undefined;
|
|
227
|
-
flat?: boolean | undefined;
|
|
228
|
-
[Symbol.iterator]?: boolean | undefined;
|
|
229
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
230
|
-
at?: boolean | undefined;
|
|
231
|
-
};
|
|
232
|
-
at(index: number): string | undefined;
|
|
179
|
+
'on-open': () => true;
|
|
180
|
+
'on-close': () => true;
|
|
181
|
+
clear: () => true;
|
|
182
|
+
'update:modelValue': (...args: any[]) => any;
|
|
183
|
+
blur: (...args: any[]) => any;
|
|
184
|
+
focus: (...args: any[]) => any;
|
|
185
|
+
input: (...args: any[]) => any;
|
|
186
|
+
change: (...args: any[]) => any;
|
|
233
187
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
234
188
|
label: {
|
|
235
189
|
type: StringConstructor;
|
|
@@ -283,7 +237,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
283
237
|
default: boolean;
|
|
284
238
|
};
|
|
285
239
|
error: {
|
|
286
|
-
type:
|
|
240
|
+
type: PropType<string | null>;
|
|
287
241
|
};
|
|
288
242
|
allowBlank: {
|
|
289
243
|
type: BooleanConstructor;
|
|
@@ -301,16 +255,32 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
301
255
|
type: BooleanConstructor;
|
|
302
256
|
default: boolean;
|
|
303
257
|
};
|
|
258
|
+
fill: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
noBorder: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
default: boolean;
|
|
265
|
+
};
|
|
304
266
|
zIndex: {
|
|
305
267
|
type: NumberConstructor;
|
|
306
268
|
};
|
|
269
|
+
clearable: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: boolean;
|
|
272
|
+
};
|
|
273
|
+
clearValue: {
|
|
274
|
+
type: PropType<string | number | boolean | object | null>;
|
|
275
|
+
default: undefined;
|
|
276
|
+
};
|
|
307
277
|
showDataOptions: {
|
|
308
278
|
type: BooleanConstructor;
|
|
309
279
|
default: boolean;
|
|
310
280
|
};
|
|
311
281
|
'onUpdate:value': PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
312
282
|
onUpdateValue: PropType<MaybeArray<OnUpdateValue> | undefined>;
|
|
313
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
283
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
314
284
|
name: StringConstructor;
|
|
315
285
|
readonly: BooleanConstructor;
|
|
316
286
|
required: BooleanConstructor;
|
|
@@ -319,9 +289,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
289
|
readonly default: () => never[];
|
|
320
290
|
};
|
|
321
291
|
}>> & {
|
|
322
|
-
|
|
292
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
295
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
296
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
297
|
+
onClear?: (() => any) | undefined;
|
|
298
|
+
"onOn-open"?: (() => any) | undefined;
|
|
299
|
+
"onOn-close"?: (() => any) | undefined;
|
|
323
300
|
}, {
|
|
324
301
|
size: Size;
|
|
302
|
+
fill: boolean;
|
|
325
303
|
multiple: boolean;
|
|
326
304
|
disabled: boolean;
|
|
327
305
|
readonly: boolean;
|
|
@@ -331,6 +309,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
309
|
max: number;
|
|
332
310
|
rules: unknown[];
|
|
333
311
|
placeholder: string;
|
|
312
|
+
clearable: boolean;
|
|
334
313
|
transitionName: string;
|
|
335
314
|
searchable: boolean;
|
|
336
315
|
optionValue: string;
|
|
@@ -339,6 +318,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
339
318
|
allowBlank: boolean;
|
|
340
319
|
selectAll: boolean;
|
|
341
320
|
portal: boolean;
|
|
321
|
+
noBorder: boolean;
|
|
322
|
+
clearValue: string | number | boolean | object | null;
|
|
342
323
|
showDataOptions: boolean;
|
|
343
324
|
}, {}>;
|
|
344
325
|
export default _default;
|
|
@@ -31,11 +31,19 @@ export declare const option: string;
|
|
|
31
31
|
export declare const optionFocused: string;
|
|
32
32
|
export declare const optionSelected: string;
|
|
33
33
|
export declare const optionLabel: string;
|
|
34
|
+
export declare const optionSizes: Record<"sm" | "md" | "lg" | "xs" | "xl", string>;
|
|
34
35
|
export declare const checkAll: string;
|
|
35
36
|
export declare const checkAllButton: string;
|
|
36
37
|
export declare const checkAllButtonActive: string;
|
|
37
38
|
export declare const optionIcon: string;
|
|
38
39
|
export declare const noResults: string;
|
|
39
|
-
export declare const
|
|
40
|
+
export declare const clear: string;
|
|
41
|
+
export declare const hasClear: string;
|
|
40
42
|
export declare const arrow: string;
|
|
41
43
|
export declare const arrowOpen: string;
|
|
44
|
+
export declare const fillRoot: string;
|
|
45
|
+
export declare const fill: string;
|
|
46
|
+
export declare const sizes: Record<"sm" | "md" | "lg" | "xs" | "xl", string>;
|
|
47
|
+
export declare const fillBase: string;
|
|
48
|
+
export declare const fillLabel: string;
|
|
49
|
+
export declare const noBorder: string;
|
|
@@ -17,11 +17,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
20
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
21
21
|
name: StringConstructor;
|
|
22
22
|
readonly: BooleanConstructor;
|
|
23
23
|
required: BooleanConstructor;
|
|
24
|
-
error:
|
|
24
|
+
error: PropType<string | null | undefined>;
|
|
25
25
|
rules: {
|
|
26
26
|
readonly type: ArrayConstructor;
|
|
27
27
|
readonly default: () => never[];
|
|
@@ -65,11 +65,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
type: BooleanConstructor;
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
|
-
modelValue: PropType<string | number | boolean | object | any[] |
|
|
68
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
69
69
|
name: StringConstructor;
|
|
70
70
|
readonly: BooleanConstructor;
|
|
71
71
|
required: BooleanConstructor;
|
|
72
|
-
error:
|
|
72
|
+
error: PropType<string | null | undefined>;
|
|
73
73
|
rules: {
|
|
74
74
|
readonly type: ArrayConstructor;
|
|
75
75
|
readonly default: () => never[];
|
|
@@ -34,14 +34,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
36
|
error: {
|
|
37
|
-
type:
|
|
37
|
+
type: PropType<string | null>;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
height: {
|
|
41
41
|
type: NumberConstructor;
|
|
42
42
|
default: number;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
clearable: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
45
49
|
name: StringConstructor;
|
|
46
50
|
required: BooleanConstructor;
|
|
47
51
|
rules: {
|
|
@@ -67,6 +71,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
71
|
textareaValue: import("vue").ComputedRef<string>;
|
|
68
72
|
inputError: import("vue").ComputedRef<any>;
|
|
69
73
|
style: typeof style;
|
|
74
|
+
showClear: import("vue").ComputedRef<boolean>;
|
|
75
|
+
onNativeInput: (event: Event) => void;
|
|
70
76
|
onClear: () => void;
|
|
71
77
|
validate: (value: any) => boolean;
|
|
72
78
|
setError: (value: string) => void;
|
|
@@ -106,14 +112,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
112
|
default: boolean;
|
|
107
113
|
};
|
|
108
114
|
error: {
|
|
109
|
-
type:
|
|
115
|
+
type: PropType<string | null>;
|
|
110
116
|
default: string;
|
|
111
117
|
};
|
|
112
118
|
height: {
|
|
113
119
|
type: NumberConstructor;
|
|
114
120
|
default: number;
|
|
115
121
|
};
|
|
116
|
-
|
|
122
|
+
clearable: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
117
127
|
name: StringConstructor;
|
|
118
128
|
required: BooleanConstructor;
|
|
119
129
|
rules: {
|
|
@@ -130,9 +140,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
140
|
readonly: boolean;
|
|
131
141
|
description: string;
|
|
132
142
|
required: boolean;
|
|
133
|
-
error: string;
|
|
143
|
+
error: string | null;
|
|
134
144
|
loading: boolean;
|
|
135
145
|
rules: unknown[];
|
|
136
146
|
placeholder: string;
|
|
147
|
+
clearable: boolean;
|
|
137
148
|
}, {}>;
|
|
138
149
|
export default _default;
|
|
@@ -13,6 +13,8 @@ export declare const base: string;
|
|
|
13
13
|
export declare const size: Record<"sm" | "md" | "lg" | "xs" | "xl", string>;
|
|
14
14
|
export declare const block: string;
|
|
15
15
|
export declare const disabled: string;
|
|
16
|
+
export declare const hasClear: string;
|
|
17
|
+
export declare const clear: string;
|
|
16
18
|
export declare const label: string;
|
|
17
19
|
export declare const description: string;
|
|
18
20
|
export declare const errorMessage: string;
|
|
@@ -4,6 +4,13 @@ export interface FormInput {
|
|
|
4
4
|
validate: (value: any) => void;
|
|
5
5
|
setError: (value: string) => void;
|
|
6
6
|
}
|
|
7
|
+
export interface InputEmitsMap {
|
|
8
|
+
'update:modelValue': (...args: any[]) => any;
|
|
9
|
+
blur: (...args: any[]) => any;
|
|
10
|
+
focus: (...args: any[]) => any;
|
|
11
|
+
input: (...args: any[]) => any;
|
|
12
|
+
change: (...args: any[]) => any;
|
|
13
|
+
}
|
|
7
14
|
export declare const useInput: {
|
|
8
15
|
(props: any, { focus, emit, withListeners }: {
|
|
9
16
|
focus: () => void;
|
|
@@ -23,11 +30,11 @@ export declare const useInput: {
|
|
|
23
30
|
};
|
|
24
31
|
emits(withListeners?: boolean): string[];
|
|
25
32
|
props(): {
|
|
26
|
-
readonly modelValue: PropType<string | number | boolean | object | any[] |
|
|
33
|
+
readonly modelValue: PropType<string | number | boolean | object | any[] | null | undefined>;
|
|
27
34
|
readonly name: StringConstructor;
|
|
28
35
|
readonly readonly: BooleanConstructor;
|
|
29
36
|
readonly required: BooleanConstructor;
|
|
30
|
-
readonly error:
|
|
37
|
+
readonly error: PropType<string | null | undefined>;
|
|
31
38
|
readonly rules: {
|
|
32
39
|
readonly type: ArrayConstructor;
|
|
33
40
|
readonly default: () => never[];
|