@dynamicforms/vuetify-inputs 0.4.5 → 0.5.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.js +745 -742
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +14 -14
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +33 -33
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Action as Action_2 } from '@dynamicforms/vue-forms';
|
|
2
|
+
import { ActionValue } from '@dynamicforms/vue-forms';
|
|
2
3
|
import { App } from 'vue';
|
|
3
4
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
5
|
import { ComponentProvideOptions } from 'vue';
|
|
@@ -8,9 +9,10 @@ import { default as default_2 } from '@dynamicforms/vue-forms';
|
|
|
8
9
|
import { DefaultInputSlot } from 'vuetify/lib/components/VField/VField';
|
|
9
10
|
import { DefineComponent } from 'vue';
|
|
10
11
|
import { Editor } from '@ckeditor/ckeditor5-core';
|
|
11
|
-
import { ExecuteAction } from '@dynamicforms/vue-forms';
|
|
12
12
|
import { GlobalComponents } from 'vue';
|
|
13
13
|
import { GlobalDirectives } from 'vue';
|
|
14
|
+
import { IField } from '@dynamicforms/vue-forms';
|
|
15
|
+
import { IFieldConstructorParams } from '@dynamicforms/vue-forms';
|
|
14
16
|
import { PublicProps } from 'vue';
|
|
15
17
|
import { Ref } from 'vue';
|
|
16
18
|
import { useDisplay } from 'vuetify';
|
|
@@ -148,22 +150,22 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
|
|
151
|
-
export declare class Action {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
constructor(data: ActionJSON, formAction: Action_2);
|
|
153
|
+
export declare class Action extends Action_2<ActionBreakpointOptions> {
|
|
154
|
+
static create<T extends ActionBreakpointOptions = ActionBreakpointOptions>(params?: Partial<IFieldConstructorParams<T>>): Action;
|
|
155
|
+
getBreakpointValue(breakpoint: Ref<BreakpointNames>): ComputedRef<ActionRenderOptions>;
|
|
156
|
+
get name(): string | undefined;
|
|
156
157
|
get label(): string | undefined;
|
|
157
|
-
get
|
|
158
|
+
get showLabel(): boolean | undefined;
|
|
158
159
|
get icon(): string | undefined;
|
|
159
|
-
get
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
static
|
|
163
|
-
static
|
|
164
|
-
static noAction(data: ActionJSON, actionOrExecuteHandler?: Action_2 | ExecuteAction): Action;
|
|
160
|
+
get showIcon(): boolean | undefined;
|
|
161
|
+
get renderAs(): ActionDisplayStyle | undefined;
|
|
162
|
+
static closeAction(data?: Partial<IField<ActionBreakpointOptions>>): Action;
|
|
163
|
+
static yesAction(data?: Partial<IField<ActionBreakpointOptions>>): Action;
|
|
164
|
+
static noAction(data?: Partial<IField<ActionBreakpointOptions>>): Action;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
export declare type ActionBreakpointOptions = BreakpointsJSON<ActionRenderOptions>;
|
|
168
|
+
|
|
167
169
|
declare interface ActionComponentProps {
|
|
168
170
|
actions: Action[] | Ref<Action[]>;
|
|
169
171
|
buttonSize?: string | number;
|
|
@@ -184,16 +186,11 @@ export declare namespace ActionDisplayStyle {
|
|
|
184
186
|
export function isDefined(mode: number | string): boolean;
|
|
185
187
|
}
|
|
186
188
|
|
|
187
|
-
export declare interface
|
|
189
|
+
export declare interface ActionRenderOptions extends ActionValue {
|
|
188
190
|
name?: string;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
field_name?: string;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export declare interface ActionsJSON {
|
|
196
|
-
[key: string]: ActionJSON;
|
|
191
|
+
renderAs?: ActionDisplayStyle;
|
|
192
|
+
showLabel?: boolean;
|
|
193
|
+
showIcon?: boolean;
|
|
197
194
|
}
|
|
198
195
|
|
|
199
196
|
export declare interface BaseEmits<T = any> {
|
|
@@ -402,13 +399,6 @@ export declare class Label {
|
|
|
402
399
|
constructor(text: string, icon?: string | undefined, iconComponent?: string);
|
|
403
400
|
}
|
|
404
401
|
|
|
405
|
-
export declare interface LabelRenderOptions {
|
|
406
|
-
renderAs?: ActionDisplayStyle;
|
|
407
|
-
showLabel?: boolean;
|
|
408
|
-
showIcon?: boolean;
|
|
409
|
-
label?: string;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
402
|
export declare const MessagesWidget: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
413
403
|
|
|
414
404
|
declare interface Props {
|
|
@@ -459,12 +449,12 @@ declare interface Props_9 extends BaseProps {
|
|
|
459
449
|
maxRows?: number;
|
|
460
450
|
}
|
|
461
451
|
|
|
462
|
-
export declare
|
|
463
|
-
|
|
464
|
-
export declare class ResponsiveLabelRenderOptions extends ResponsiveRenderOptions<LabelRenderOptions> {
|
|
465
|
-
protected cleanBreakpoint(bp?: LabelRenderOptions, defaultIfEmpty?: boolean): LabelRenderOptions | null;
|
|
452
|
+
export declare class ResponsiveActionRenderOptions extends ResponsiveRenderOptions<ActionRenderOptions> {
|
|
453
|
+
protected cleanBreakpoint(bp?: ActionRenderOptions, defaultIfEmpty?: boolean): ActionRenderOptions | null;
|
|
466
454
|
}
|
|
467
455
|
|
|
456
|
+
export declare const responsiveBreakpoints: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
457
|
+
|
|
468
458
|
export declare abstract class ResponsiveRenderOptions<T extends Record<string, any>> {
|
|
469
459
|
protected readonly _value: BreakpointsJSON<T>;
|
|
470
460
|
constructor(data?: BreakpointsJSON<T>);
|
|
@@ -482,6 +472,16 @@ export declare type SelectFetchChoices<T1 = any, T2 = any> = (queryValue?: T1, i
|
|
|
482
472
|
|
|
483
473
|
declare type ShowAsGroup = 'no' | 'grouped' | 'grouped-no-borders';
|
|
484
474
|
|
|
475
|
+
export declare const translatableStrings: {
|
|
476
|
+
Yes: string;
|
|
477
|
+
No: string;
|
|
478
|
+
Close: string;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export declare function translateStrings(translationCallback: (s: string) => string): void;
|
|
482
|
+
|
|
483
|
+
export declare function useBreakpoint(): ComputedRef<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
484
|
+
|
|
485
485
|
export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmits<T>): {
|
|
486
486
|
value: WritableComputedRef<T, T>;
|
|
487
487
|
valid: ComputedRef<boolean>;
|