@dynamicforms/vuetify-inputs 0.6.6 → 0.7.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
@@ -1,6 +1,7 @@
1
1
  import { Action as Action_2 } from '@dynamicforms/vue-forms';
2
2
  import { ActionValue } from '@dynamicforms/vue-forms';
3
3
  import { App } from 'vue';
4
+ import { ClassTypes } from '@dynamicforms/vue-forms';
4
5
  import { ComponentOptionsMixin } from 'vue';
5
6
  import { ComponentProvideOptions } from 'vue';
6
7
  import { ComputedRef } from 'vue';
@@ -78,13 +79,13 @@ fetchChoices: SelectFetchChoices;
78
79
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
79
80
 
80
81
  declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
82
+ blur: () => any;
81
83
  "update:modelValue": (value: any) => any;
82
84
  "click:clear": () => any;
83
- blur: () => any;
84
85
  }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
86
+ onBlur?: (() => any) | undefined;
85
87
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
86
88
  "onClick:clear"?: (() => any) | undefined;
87
- onBlur?: (() => any) | undefined;
88
89
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
89
90
 
90
91
  declare type __VLS_Props = {
@@ -237,8 +238,6 @@ export declare const ckEditorLanguage: {
237
238
  translations: undefined;
238
239
  };
239
240
 
240
- declare type ClassTypes = string | string[] | Record<string, boolean>;
241
-
242
241
  export declare const DateTimeLocaleConfig: {
243
242
  dateTimeLocale: Ref<{
244
243
  code: string;
@@ -308,6 +307,15 @@ export declare const DateTimeLocaleConfig: {
308
307
  setDateTimeLocale(locale: Locale | Ref<Locale>): void;
309
308
  };
310
309
 
310
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
311
+ errors: string | ValidationError[];
312
+ message: string | ValidationError[];
313
+ errorClasses: ClassTypes;
314
+ messageClasses: ClassTypes;
315
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
316
+ export { _default as DFInputHint }
317
+ export { _default as DfInputHint }
318
+
311
319
  export declare const defaultBaseProps: {
312
320
  enabled: undefined;
313
321
  clearable: boolean;
@@ -432,6 +440,7 @@ export declare namespace DfInputComponents {
432
440
  DfDateTime,
433
441
  DfFile,
434
442
  DfInput,
443
+ _default as DFInputHint,
435
444
  DfRtfEditor,
436
445
  DfSelect,
437
446
  DfTextArea
@@ -581,14 +590,11 @@ export declare class Label {
581
590
  constructor(text: string, icon?: string | undefined, iconComponent?: string);
582
591
  }
583
592
 
584
- export declare const MessagesWidget: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
585
- classes: ClassTypes | ClassTypes[];
586
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
587
-
588
593
  declare interface Props {
589
- errors: ValidationError[];
590
- message: string;
591
- classes?: ClassTypes | ClassTypes[];
594
+ errors?: string | ValidationError[];
595
+ message?: string | ValidationError[];
596
+ errorClasses?: ClassTypes;
597
+ messageClasses?: ClassTypes;
592
598
  }
593
599
 
594
600
  export declare class ResponsiveActionRenderOptions extends ResponsiveRenderOptions<ActionRenderOptions> {
@@ -648,6 +654,7 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
648
654
  valid: ComputedRef<boolean>;
649
655
  enabled: ComputedRef<boolean>;
650
656
  errors: ComputedRef<default_2.ValidationError[]>;
657
+ showErrors: ComputedRef<default_2.ValidationError[] | undefined>;
651
658
  visibility: ComputedRef<default_2.DisplayMode>;
652
659
  label: ComputedRef<Label>;
653
660
  touched: Ref<boolean, boolean>;
@@ -659,7 +666,6 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
659
666
  density: VuetifyDensity;
660
667
  variant: FieldVariant;
661
668
  label: string;
662
- messages: string | undefined;
663
669
  errorMessages: string | undefined;
664
670
  readonly: boolean;
665
671
  disabled: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.6.6",
4
+ "version": "0.7.1",
5
5
  "type": "module",
6
6
  "description": "Visual components for data entry using @dynamicforms/vue-forms",
7
7
  "author": "Jure Erznožnik",
@@ -43,7 +43,7 @@
43
43
  "issues": "https://github.com/dynamicforms/vuetify-inputs/issues",
44
44
  "peerDependencies": {
45
45
  "@ckeditor/ckeditor5-vue": "^7.0.0",
46
- "@dynamicforms/vue-forms": "^0.4.6",
46
+ "@dynamicforms/vue-forms": "^0.5.0",
47
47
  "@mdi/font": "^7.4.47",
48
48
  "ckeditor5": "^43.0.0",
49
49
  "date-fns": "^4.1.0",
@@ -71,17 +71,5 @@
71
71
  "vitest": "^3",
72
72
  "vue-tsc": "^2",
73
73
  "markdown-it-attrs": "^4.3.1"
74
- },
75
- "eslintConfig": {
76
- "extends": [
77
- "velis"
78
- ],
79
- "ignorePatterns": [
80
- "dist/*",
81
- "coverage/*",
82
- "node_modules/*",
83
- "docs/*",
84
- "vite.config.ts"
85
- ]
86
74
  }
87
75
  }