@dynamicforms/vuetify-inputs 0.5.13 → 0.6.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
@@ -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.1",
5
5
  "type": "module",
6
6
  "description": "Visual components for data entry using @dynamicforms/vue-forms",
7
7
  "author": "Jure Erznožnik",
package/readme.md CHANGED
@@ -5,8 +5,8 @@ Visual components based on Vuetify library to support @dynamicforms/vue-forms.
5
5
  ## Introduction
6
6
 
7
7
  `@dynamicforms/vuetify-inputs` provides input components for data entry that will be stored in form data. It is the
8
- visual implementation of logical concepts from
9
- [@dynamicforms/vue-forms](https://github.com/velis74/dynamicforms-vue-forms).
8
+ visual implementation of logical concepts from
9
+ [@dynamicforms/vue-forms](https://github.com/dynamicforms/vue-forms).
10
10
 
11
11
  ## Features
12
12
 
@@ -107,10 +107,16 @@ npm run docs:dev
107
107
 
108
108
  ## Available Components
109
109
 
110
+ - **InputBase**: The base component for all input elements
111
+ - **df-actions**: An actions group.
112
+ - **df-checkbox**: A checkbox component.
113
+ - **df-color**: A color input.
114
+ - **df-date-time**: A date and time selection component with configurable format and type.
115
+ - **df-file**: A file upload component with progress indication
116
+ - **df-input**: A general value input.
117
+ - **df-rtf-editor**: A RTF editor input.
110
118
  - **df-select**: A selection component supporting static or dynamic options, multiple selection, and tagging
111
119
  - **df-textarea**: A textarea component with configurable rows and validation
112
- - **df-file**: A file upload component with progress indication
113
- - **InputBase**: The base component for all input elements
114
120
 
115
121
  ## TypeScript Support
116
122