@dynamicforms/vuetify-inputs 0.5.13 → 0.6.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
@@ -222,6 +222,8 @@ export declare interface BaseProps<T = any> {
222
222
  cssClass?: string;
223
223
  clearable?: boolean;
224
224
  passthroughAttrs?: Record<string, any>;
225
+ density?: FieldDensity;
226
+ variant?: FieldVariant;
225
227
  }
226
228
 
227
229
  export declare type BreakpointNames = (typeof responsiveBreakpoints)[number];
@@ -529,6 +531,10 @@ export declare interface DynamicFormsInputsOptions extends VuetifyInputsSettings
529
531
  registerVuetifyComponents: boolean;
530
532
  }
531
533
 
534
+ export declare type FieldDensity = 'default' | 'comfortable' | 'compact' | 'inline';
535
+
536
+ export declare type FieldVariant = 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
537
+
532
538
  export declare interface FileComms {
533
539
  /**
534
540
  * upload is called when a file is added to the input and needs to be uploaded to the backend for storage
@@ -619,11 +625,13 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
619
625
  visibility: ComputedRef<default_2.DisplayMode>;
620
626
  label: ComputedRef<Label>;
621
627
  touched: Ref<boolean, boolean>;
628
+ density: FieldDensity;
629
+ densityClass: ComputedRef<string>;
622
630
  vuetifyBindings: ComputedRef< {
623
631
  name: string | undefined;
624
632
  class: string;
625
- density: "default";
626
- variant: "underlined";
633
+ density: VuetifyDensity;
634
+ variant: FieldVariant;
627
635
  label: string;
628
636
  messages: string | undefined;
629
637
  errorMessages: string | undefined;
@@ -667,8 +675,11 @@ export declare namespace VuetifyComponents {
667
675
  }
668
676
  }
669
677
 
678
+ export declare type VuetifyDensity = 'default' | 'comfortable' | 'compact';
679
+
670
680
  export declare interface VuetifyInputsSettings {
671
- defaultVariant?: 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
681
+ defaultVariant?: FieldVariant;
682
+ defaultDensity?: FieldDensity;
672
683
  }
673
684
 
674
685
  export declare const vuetifyInputsSettingsKey: unique symbol;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.5.13",
4
+ "version": "0.6.0",
5
5
  "type": "module",
6
6
  "description": "Visual components for data entry using @dynamicforms/vue-forms",
7
7
  "author": "Jure Erznožnik",