@dynamicforms/vuetify-inputs 0.6.5 → 0.7.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/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 = {
@@ -232,7 +233,10 @@ export declare type BreakpointNames = (typeof responsiveBreakpoints)[number];
232
233
 
233
234
  export declare type BreakpointsJSON<T extends Record<string, any>> = T & Partial<Record<BreakpointNames, T>>;
234
235
 
235
- declare type ClassTypes = string | string[] | Record<string, boolean>;
236
+ export declare const ckEditorLanguage: {
237
+ language: string;
238
+ translations: undefined;
239
+ };
236
240
 
237
241
  export declare const DateTimeLocaleConfig: {
238
242
  dateTimeLocale: Ref<{
@@ -303,6 +307,15 @@ export declare const DateTimeLocaleConfig: {
303
307
  setDateTimeLocale(locale: Locale | Ref<Locale>): void;
304
308
  };
305
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
+
306
319
  export declare const defaultBaseProps: {
307
320
  enabled: undefined;
308
321
  clearable: boolean;
@@ -427,6 +440,7 @@ export declare namespace DfInputComponents {
427
440
  DfDateTime,
428
441
  DfFile,
429
442
  DfInput,
443
+ _default as DFInputHint,
430
444
  DfRtfEditor,
431
445
  DfSelect,
432
446
  DfTextArea
@@ -576,14 +590,11 @@ export declare class Label {
576
590
  constructor(text: string, icon?: string | undefined, iconComponent?: string);
577
591
  }
578
592
 
579
- export declare const MessagesWidget: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
580
- classes: ClassTypes | ClassTypes[];
581
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
582
-
583
593
  declare interface Props {
584
- errors: ValidationError[];
585
- message: string;
586
- classes?: ClassTypes | ClassTypes[];
594
+ errors?: string | ValidationError[];
595
+ message?: string | ValidationError[];
596
+ errorClasses?: ClassTypes;
597
+ messageClasses?: ClassTypes;
587
598
  }
588
599
 
589
600
  export declare class ResponsiveActionRenderOptions extends ResponsiveRenderOptions<ActionRenderOptions> {
@@ -607,12 +618,31 @@ export declare interface SelectChoice {
607
618
 
608
619
  export declare type SelectFetchChoices<T1 = any, T2 = any> = (queryValue?: T1, idValue?: T2) => Promise<SelectChoice[]>;
609
620
 
621
+ export declare function setCkEditorLanguage(language: string, translations: any): void;
622
+
610
623
  declare type ShowAsGroup = 'no' | 'grouped' | 'grouped-no-borders';
611
624
 
612
625
  export declare const translatableStrings: {
613
626
  Yes: string;
614
627
  No: string;
615
628
  Close: string;
629
+ Paragraph: string;
630
+ Heading1: string;
631
+ Heading2: string;
632
+ Heading3: string;
633
+ Heading4: string;
634
+ Heading5: string;
635
+ Heading6: string;
636
+ Downloadable: string;
637
+ ArticleCategory: string;
638
+ Title: string;
639
+ Subtitle: string;
640
+ InfoBox: string;
641
+ SideQuote: string;
642
+ Marker: string;
643
+ Spoiler: string;
644
+ CodeDark: string;
645
+ CodeBright: string;
616
646
  };
617
647
 
618
648
  export declare function translateStrings(translationCallback: (s: string) => string): void;
@@ -624,6 +654,7 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
624
654
  valid: ComputedRef<boolean>;
625
655
  enabled: ComputedRef<boolean>;
626
656
  errors: ComputedRef<default_2.ValidationError[]>;
657
+ showErrors: ComputedRef<default_2.ValidationError[] | undefined>;
627
658
  visibility: ComputedRef<default_2.DisplayMode>;
628
659
  label: ComputedRef<Label>;
629
660
  touched: Ref<boolean, boolean>;
@@ -635,7 +666,6 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
635
666
  density: VuetifyDensity;
636
667
  variant: FieldVariant;
637
668
  label: string;
638
- messages: string | undefined;
639
669
  errorMessages: string | undefined;
640
670
  readonly: boolean;
641
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.5",
4
+ "version": "0.7.0",
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
  }