@dynamicforms/vuetify-inputs 0.1.17 → 0.2.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
@@ -66,7 +66,7 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
66
66
 
67
67
  export declare class Action {
68
68
  readonly name: string;
69
- displayStyle: ResponsiveRenderOptions;
69
+ displayStyle: ResponsiveLabelRenderOptions;
70
70
  formAction: Action_2;
71
71
  constructor(data: ActionJSON, formAction: Action_2);
72
72
  get label(): string | undefined;
@@ -104,7 +104,7 @@ export declare interface ActionJSON {
104
104
  name?: string;
105
105
  label?: string;
106
106
  icon?: string;
107
- displayStyle?: BreakpointsJSON;
107
+ displayStyle?: BreakpointsJSON<LabelRenderOptions>;
108
108
  field_name?: string;
109
109
  }
110
110
 
@@ -131,17 +131,9 @@ export declare interface BaseProps<T = any> {
131
131
  clearable?: boolean;
132
132
  }
133
133
 
134
- export declare interface BreakpointJSON {
135
- renderAs?: ActionDisplayStyle;
136
- showLabel?: boolean;
137
- showIcon?: boolean;
138
- label?: string;
139
- }
140
-
141
134
  export declare type BreakpointNames = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
142
135
 
143
- export declare interface BreakpointsJSON extends BreakpointJSON, Partial<Record<BreakpointNames, BreakpointJSON>> {
144
- }
136
+ export declare type BreakpointsJSON<T extends Record<string, any>> = T & Partial<Record<BreakpointNames, T>>;
145
137
 
146
138
  export declare const defaultBaseProps: {
147
139
  enabled: undefined;
@@ -330,6 +322,13 @@ export declare type FileProgressCallback = (loaded: number, total: number) => vo
330
322
 
331
323
  export declare const InputBase: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
332
324
 
325
+ export declare interface LabelRenderOptions {
326
+ renderAs?: ActionDisplayStyle;
327
+ showLabel?: boolean;
328
+ showIcon?: boolean;
329
+ label?: string;
330
+ }
331
+
333
332
  export declare const MessagesWidget: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
334
333
 
335
334
  declare interface Props {
@@ -380,11 +379,15 @@ declare interface Props_9 extends BaseProps {
380
379
  maxRows?: number;
381
380
  }
382
381
 
383
- declare class ResponsiveRenderOptions {
382
+ export declare class ResponsiveLabelRenderOptions extends ResponsiveRenderOptions<LabelRenderOptions> {
383
+ protected cleanBreakpoint(bp?: LabelRenderOptions, defaultIfEmpty?: boolean): LabelRenderOptions | null;
384
+ }
385
+
386
+ export declare abstract class ResponsiveRenderOptions<T extends Record<string, any>> {
384
387
  private readonly _value;
385
- constructor(data: BreakpointsJSON | undefined, label?: string);
386
- getOptionsForBreakpoint(breakpoint: BreakpointNames): BreakpointJSON;
387
- private static cleanBreakpoint;
388
+ constructor(data?: BreakpointsJSON<T>);
389
+ getOptionsForBreakpoint(breakpoint: BreakpointNames): T;
390
+ protected abstract cleanBreakpoint(bp?: T, defaultIfEmpty?: boolean): T | null;
388
391
  }
389
392
 
390
393
  export declare interface SelectChoice {