@dynamicforms/vuetify-inputs 0.7.13 → 0.8.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/dynamicforms-vuetify-inputs.css +1 -1
- package/dist/dynamicforms-vuetify-inputs.js +924 -924
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +27 -19
- package/package.json +3 -2
- package/readme.md +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ import { FormatPart } from 'date-fns';
|
|
|
20
20
|
import { FormatRelativeFn } from 'date-fns';
|
|
21
21
|
import { GlobalComponents } from 'vue';
|
|
22
22
|
import { GlobalDirectives } from 'vue';
|
|
23
|
-
import { IField } from '@dynamicforms/vue-forms';
|
|
24
23
|
import { IFieldConstructorParams } from '@dynamicforms/vue-forms';
|
|
25
24
|
import { Locale } from 'date-fns';
|
|
26
25
|
import { LocaleDayPeriod } from 'date-fns';
|
|
@@ -180,7 +179,6 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
180
179
|
};
|
|
181
180
|
|
|
182
181
|
export declare class Action extends Action_2<ActionBreakpointOptions> {
|
|
183
|
-
static create<T extends ActionBreakpointOptions = ActionBreakpointOptions>(params?: Partial<IFieldConstructorParams<T>>): Action;
|
|
184
182
|
getBreakpointValue(breakpoint: Ref<BreakpointNames>): ComputedRef<ActionRenderOptions>;
|
|
185
183
|
/** @see ActionRenderOptions.name */
|
|
186
184
|
get name(): string | undefined;
|
|
@@ -200,9 +198,9 @@ export declare class Action extends Action_2<ActionBreakpointOptions> {
|
|
|
200
198
|
get defaultReject(): boolean | undefined;
|
|
201
199
|
/** @see ActionRenderOptions.passthroughAttrs */
|
|
202
200
|
get passthroughAttrs(): Record<string, any> | undefined;
|
|
203
|
-
static closeAction(data?: Partial<
|
|
204
|
-
static yesAction(data?: Partial<
|
|
205
|
-
static noAction(data?: Partial<
|
|
201
|
+
static closeAction(data?: Partial<IFieldConstructorParams<ActionBreakpointOptions>>): Action;
|
|
202
|
+
static yesAction(data?: Partial<IFieldConstructorParams<ActionBreakpointOptions>>): Action;
|
|
203
|
+
static noAction(data?: Partial<IFieldConstructorParams<ActionBreakpointOptions>>): Action;
|
|
206
204
|
}
|
|
207
205
|
|
|
208
206
|
export declare type ActionBreakpointOptions = BreakpointsJSON<ActionRenderOptions>;
|
|
@@ -261,7 +259,7 @@ export declare interface BaseEmits<T = any> {
|
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
export declare interface BaseProps<T = any> {
|
|
264
|
-
control?: default_2.
|
|
262
|
+
control?: default_2.FieldBase<T>;
|
|
265
263
|
modelValue?: T;
|
|
266
264
|
label?: string | Label | MdString;
|
|
267
265
|
errors?: string[];
|
|
@@ -355,15 +353,6 @@ export declare const DateTimeLocaleConfig: {
|
|
|
355
353
|
setDateTimeLocale(locale: Locale | Ref<Locale>): void;
|
|
356
354
|
};
|
|
357
355
|
|
|
358
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
359
|
-
errors: string | ValidationError[];
|
|
360
|
-
message: string | ValidationError[];
|
|
361
|
-
errorClasses: ClassTypes;
|
|
362
|
-
messageClasses: ClassTypes;
|
|
363
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
364
|
-
export { _default as DFInputHint }
|
|
365
|
-
export { _default as DfInputHint }
|
|
366
|
-
|
|
367
356
|
export declare const defaultBaseProps: {
|
|
368
357
|
enabled: undefined;
|
|
369
358
|
clearable: boolean;
|
|
@@ -464,7 +453,7 @@ precision: number | null;
|
|
|
464
453
|
step: number;
|
|
465
454
|
min: number;
|
|
466
455
|
max: number;
|
|
467
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
456
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
468
457
|
|
|
469
458
|
export declare namespace DfInputComponentProps {
|
|
470
459
|
export {
|
|
@@ -488,13 +477,20 @@ export declare namespace DfInputComponents {
|
|
|
488
477
|
DfDateTime,
|
|
489
478
|
DfFile,
|
|
490
479
|
DfInput,
|
|
491
|
-
|
|
480
|
+
DfInputHint,
|
|
492
481
|
DfRtfEditor,
|
|
493
482
|
DfSelect,
|
|
494
483
|
DfTextArea
|
|
495
484
|
}
|
|
496
485
|
}
|
|
497
486
|
|
|
487
|
+
export declare const DfInputHint: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
488
|
+
errors: string | ValidationError[];
|
|
489
|
+
message: string | ValidationError[];
|
|
490
|
+
errorClasses: ClassTypes;
|
|
491
|
+
messageClasses: ClassTypes;
|
|
492
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
493
|
+
|
|
498
494
|
declare interface DfInputProps extends BaseProps {
|
|
499
495
|
inputType?: 'text' | 'password' | 'email' | 'url' | 'number';
|
|
500
496
|
precision?: number | null;
|
|
@@ -512,8 +508,8 @@ export declare const DfRtfEditor: DefineComponent<DfRtfEditorProps, {}, {}, {},
|
|
|
512
508
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
513
509
|
"onClick:clear"?: (() => any) | undefined;
|
|
514
510
|
}>, {
|
|
515
|
-
enabled: boolean;
|
|
516
511
|
minHeight: string;
|
|
512
|
+
enabled: boolean;
|
|
517
513
|
clearable: boolean;
|
|
518
514
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
519
515
|
$editor: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -579,7 +575,7 @@ enabled: boolean;
|
|
|
579
575
|
clearable: boolean;
|
|
580
576
|
rows: number;
|
|
581
577
|
maxRows: number;
|
|
582
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
578
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
583
579
|
|
|
584
580
|
declare interface DfTextAreaProps extends BaseProps {
|
|
585
581
|
rows?: number;
|
|
@@ -655,6 +651,13 @@ export declare abstract class ResponsiveRenderOptions<T extends Record<string, a
|
|
|
655
651
|
protected readonly _value: BreakpointsJSON<T>;
|
|
656
652
|
constructor(data?: BreakpointsJSON<T>);
|
|
657
653
|
getOptionsForBreakpoint(breakpoint: BreakpointNames): T;
|
|
654
|
+
/**
|
|
655
|
+
* Normalizes one breakpoint's options. The merge reads `null` and `undefined` as "this breakpoint says
|
|
656
|
+
* nothing about that field", so a field the breakpoint does not state has to come back as `undefined` rather
|
|
657
|
+
* than as an empty value - an empty array or string returned here reads as a breakpoint deliberately emptying
|
|
658
|
+
* what it inherited. The value returned for `defaultIfEmpty` carries every field the class merges, since the
|
|
659
|
+
* field set is taken from it.
|
|
660
|
+
*/
|
|
658
661
|
protected abstract cleanBreakpoint(bp?: T, defaultIfEmpty?: boolean): T | null;
|
|
659
662
|
}
|
|
660
663
|
|
|
@@ -704,6 +707,11 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
|
|
|
704
707
|
errors: ComputedRef<default_2.ValidationError[]>;
|
|
705
708
|
showErrors: ComputedRef<default_2.ValidationError[] | undefined>;
|
|
706
709
|
visibility: ComputedRef<default_2.DisplayMode>;
|
|
710
|
+
isRendered: ComputedRef<boolean>;
|
|
711
|
+
visibilityClass: ComputedRef< {
|
|
712
|
+
'd-none': boolean;
|
|
713
|
+
invisible: boolean;
|
|
714
|
+
}>;
|
|
707
715
|
label: ComputedRef<Label>;
|
|
708
716
|
touched: Ref<boolean, boolean>;
|
|
709
717
|
density: FieldDensity;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamicforms/vuetify-inputs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Vuetify input components with guaranteed visual consistency across all form fields — unified density/variant system, globally configurable, with inline mode for table cells. Built for @dynamicforms/vue-forms.",
|
|
7
7
|
"author": "Jure Erznožnik",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"build": "vite build",
|
|
25
25
|
"test": "vitest run --coverage",
|
|
26
26
|
"lint": "eslint src --fix && vue-tsc --noEmit",
|
|
27
|
+
"lint:ci": "eslint src && vue-tsc --noEmit",
|
|
27
28
|
"docs:dev": "npm run docs:dev -w docs",
|
|
28
29
|
"docs:build": "npm run docs:build -w docs",
|
|
29
30
|
"docs:preview": "npm run docs:preview -w docs"
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
54
|
"@ckeditor/ckeditor5-vue": "^7.0.0",
|
|
54
|
-
"@dynamicforms/vue-forms": "^0.
|
|
55
|
+
"@dynamicforms/vue-forms": "^0.6.0",
|
|
55
56
|
"@mdi/font": "^7.4.47",
|
|
56
57
|
"ckeditor5": "^43.0.0",
|
|
57
58
|
"date-fns": "^4.1.0",
|
package/readme.md
CHANGED
|
@@ -91,9 +91,9 @@ import { DfSelect, DfTextArea, DfFile } from '@dynamicforms/vuetify-inputs';
|
|
|
91
91
|
|
|
92
92
|
// Create a form with fields
|
|
93
93
|
const form = new Group({
|
|
94
|
-
country: Field
|
|
95
|
-
description: Field
|
|
96
|
-
document: Field
|
|
94
|
+
country: new Field({ value: null }),
|
|
95
|
+
description: new Field({ value: '' }),
|
|
96
|
+
document: new Field({ value: null })
|
|
97
97
|
});
|
|
98
98
|
|
|
99
99
|
// Define options for the select field
|
|
@@ -132,6 +132,7 @@ Detailed documentation is available at [https://docs.velis.si/dynamicforms/vueti
|
|
|
132
132
|
- **df-date-time**: A date and time selection component with configurable format and type.
|
|
133
133
|
- **df-file**: A file upload component with progress indication
|
|
134
134
|
- **df-input**: A general value input.
|
|
135
|
+
- **df-input-hint**: Renders a field's or a group's errors, falling back to its hint text.
|
|
135
136
|
- **df-rtf-editor**: A RTF editor input.
|
|
136
137
|
- **df-select**: A selection component supporting static or dynamic options, multiple selection, and tagging
|
|
137
138
|
- **df-text-area**: A textarea component with configurable rows and validation
|