@dynamicforms/vuetify-inputs 0.3.3 → 0.4.1

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