@dynamicforms/vuetify-inputs 0.3.2 → 0.4.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/dist/dynamicforms-vuetify-inputs.js +809 -773
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +13 -13
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +46 -3
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,9 +43,11 @@ import { WritableComputedRef } from 'vue';
|
|
|
43
43
|
declare const __VLS_component: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
44
44
|
"update:modelValue": (value: any) => any;
|
|
45
45
|
"click:clear": () => any;
|
|
46
|
+
blur: () => any;
|
|
46
47
|
}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
|
|
47
48
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
48
49
|
"onClick:clear"?: (() => any) | undefined;
|
|
50
|
+
onBlur?: (() => any) | undefined;
|
|
49
51
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
50
52
|
|
|
51
53
|
declare type __VLS_Props = {
|
|
@@ -55,12 +57,45 @@ declare type __VLS_Props = {
|
|
|
55
57
|
label: Label;
|
|
56
58
|
};
|
|
57
59
|
|
|
58
|
-
declare type __VLS_Props_2 = BaseProps
|
|
60
|
+
declare type __VLS_Props_2 = BaseProps & {
|
|
61
|
+
loading?: boolean;
|
|
62
|
+
};
|
|
59
63
|
|
|
60
64
|
declare function __VLS_template(): {
|
|
61
65
|
attrs: Partial<{}>;
|
|
62
66
|
slots: {
|
|
63
|
-
default?(_: {
|
|
67
|
+
default?(_: {
|
|
68
|
+
props: Record<string, unknown>;
|
|
69
|
+
isActive: Ref<boolean>;
|
|
70
|
+
isFocused: Ref<boolean>;
|
|
71
|
+
controlRef: Ref<HTMLElement | undefined>;
|
|
72
|
+
focus: () => void;
|
|
73
|
+
blur: () => void;
|
|
74
|
+
}): any;
|
|
75
|
+
loader?(_: {
|
|
76
|
+
color: string | undefined;
|
|
77
|
+
isActive: boolean;
|
|
78
|
+
}): any;
|
|
79
|
+
'prepend-inner'?(_: {
|
|
80
|
+
isActive: Ref<boolean>;
|
|
81
|
+
isFocused: Ref<boolean>;
|
|
82
|
+
controlRef: Ref<HTMLElement | undefined>;
|
|
83
|
+
focus: () => void;
|
|
84
|
+
blur: () => void;
|
|
85
|
+
}): any;
|
|
86
|
+
prepend?(_: {
|
|
87
|
+
id: ComputedRef<string>;
|
|
88
|
+
messagesId: ComputedRef<string>;
|
|
89
|
+
isDirty: ComputedRef<boolean>;
|
|
90
|
+
isDisabled: ComputedRef<boolean>;
|
|
91
|
+
isReadonly: ComputedRef<boolean>;
|
|
92
|
+
isPristine: Ref<boolean>;
|
|
93
|
+
isValid: ComputedRef<boolean | null>;
|
|
94
|
+
isValidating: Ref<boolean>;
|
|
95
|
+
reset: () => void;
|
|
96
|
+
resetValidation: () => void;
|
|
97
|
+
validate: () => void;
|
|
98
|
+
}): any;
|
|
64
99
|
};
|
|
65
100
|
refs: {};
|
|
66
101
|
rootEl: any;
|
|
@@ -299,7 +334,7 @@ export declare const DynamicFormsInputs: {
|
|
|
299
334
|
install: (app: App, options?: Partial<DynamicFormsInputsOptions>) => void;
|
|
300
335
|
};
|
|
301
336
|
|
|
302
|
-
export declare interface DynamicFormsInputsOptions {
|
|
337
|
+
export declare interface DynamicFormsInputsOptions extends VuetifyInputsSettings {
|
|
303
338
|
registerComponents: boolean;
|
|
304
339
|
registerVuetifyComponents: boolean;
|
|
305
340
|
}
|
|
@@ -430,6 +465,7 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
|
|
|
430
465
|
errors: ComputedRef<default_2.ValidationError[]>;
|
|
431
466
|
visibility: ComputedRef<default_2.DisplayMode>;
|
|
432
467
|
label: ComputedRef<Label>;
|
|
468
|
+
touched: Ref<boolean, boolean>;
|
|
433
469
|
vuetifyBindings: ComputedRef< {
|
|
434
470
|
name: string | undefined;
|
|
435
471
|
class: string;
|
|
@@ -437,6 +473,7 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
|
|
|
437
473
|
variant: "underlined";
|
|
438
474
|
label: string;
|
|
439
475
|
messages: string | undefined;
|
|
476
|
+
errorMessages: string | undefined;
|
|
440
477
|
readonly: boolean;
|
|
441
478
|
disabled: boolean;
|
|
442
479
|
placeholder: string;
|
|
@@ -476,4 +513,10 @@ export declare namespace VuetifyComponents {
|
|
|
476
513
|
}
|
|
477
514
|
}
|
|
478
515
|
|
|
516
|
+
export declare interface VuetifyInputsSettings {
|
|
517
|
+
defaultVariant?: 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export declare const vuetifyInputsSettingsKey: unique symbol;
|
|
521
|
+
|
|
479
522
|
export { }
|