@dynamicforms/vuetify-inputs 0.11.3 → 0.11.4

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
@@ -14,6 +14,7 @@ import { Day } from 'date-fns';
14
14
  import { default as default_2 } from '@dynamicforms/vue-forms';
15
15
  import { DefaultInputSlot } from 'vuetify/lib/components/VField/VField';
16
16
  import { DefineComponent } from 'vue';
17
+ import { Editor } from '../node_modules/@tiptap/vue-3/dist';
17
18
  import { Era } from 'date-fns';
18
19
  import { FirstWeekContainsDate } from 'date-fns';
19
20
  import { FormatDistanceFn } from 'date-fns';
@@ -377,7 +378,8 @@ export declare const defaultBaseProps: {
377
378
  export declare const defaultDisplayStyle = ActionDisplayStyle.BUTTON;
378
379
 
379
380
  export declare const DfActions: DefineComponent<DfActionsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DfActionsProps> & Readonly<{}>, {
380
- buttonSize: string | number;
381
+ buttonSize: VuetifyButtonSize;
382
+ buttonDensity: VuetifyDensity;
381
383
  showAsGroup: "no" | "grouped" | "grouped-no-borders";
382
384
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
383
385
 
@@ -385,7 +387,9 @@ declare interface DfActionsProps {
385
387
  /** The actions to draw, this library's `Action` or a bare `@dynamicforms/vue-forms` one: what each button
386
388
  * renders as is read off the action's value, and a value stating nothing renders as the defaults. */
387
389
  actions: MaybeRef<Action_2[]>;
388
- buttonSize?: string | number;
390
+ buttonSize?: VuetifyButtonSize;
391
+ /** Forwarded to each button's `density` prop. See https://vuetifyjs.com/en/api/v-btn/#props-density */
392
+ buttonDensity?: VuetifyDensity;
389
393
  showAsGroup?: ShowAsGroup;
390
394
  }
391
395
 
@@ -547,7 +551,8 @@ export declare namespace DfInputComponents {
547
551
  */
548
552
  export declare const dfInputComponentsByTag: {
549
553
  readonly 'df-actions': DefineComponent<DfActionsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DfActionsProps> & Readonly<{}>, {
550
- buttonSize: string | number;
554
+ buttonSize: VuetifyButtonSize;
555
+ buttonDensity: VuetifyDensity;
551
556
  showAsGroup: "no" | "grouped" | "grouped-no-borders";
552
557
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
553
558
  readonly 'df-checkbox': DefineComponent<DfCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -644,7 +649,7 @@ export declare const dfInputComponentsByTag: {
644
649
  modelValue?: string;
645
650
  minHeight?: string;
646
651
  disabled?: boolean;
647
- toolbarButtonSize?: string | number;
652
+ toolbarButtonSize?: VuetifyButtonSize;
648
653
  }> & Readonly<{
649
654
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
650
655
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -653,8 +658,31 @@ export declare const dfInputComponentsByTag: {
653
658
  minHeight: string;
654
659
  modelValue: string;
655
660
  disabled: boolean;
656
- toolbarButtonSize: string | number;
657
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
661
+ toolbarButtonSize: VuetifyButtonSize;
662
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
663
+ toolbarRef: CreateComponentPublicInstanceWithMixins<Readonly<{
664
+ editor?: Editor;
665
+ buttonSize?: VuetifyButtonSize;
666
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
667
+ buttonSize: VuetifyButtonSize;
668
+ editor: Editor;
669
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
670
+ imageInput: HTMLInputElement;
671
+ }, HTMLDivElement, ComponentProvideOptions, {
672
+ P: {};
673
+ B: {};
674
+ D: {};
675
+ C: {};
676
+ M: {};
677
+ Defaults: {};
678
+ }, Readonly<{
679
+ editor?: Editor;
680
+ buttonSize?: VuetifyButtonSize;
681
+ }> & Readonly<{}>, {}, {}, {}, {}, {
682
+ buttonSize: VuetifyButtonSize;
683
+ editor: Editor;
684
+ }> | null;
685
+ }, HTMLDivElement, ComponentProvideOptions, {
658
686
  P: {};
659
687
  B: {};
660
688
  D: {};
@@ -665,14 +693,14 @@ export declare const dfInputComponentsByTag: {
665
693
  modelValue?: string;
666
694
  minHeight?: string;
667
695
  disabled?: boolean;
668
- toolbarButtonSize?: string | number;
696
+ toolbarButtonSize?: VuetifyButtonSize;
669
697
  }> & Readonly<{
670
698
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
671
699
  }>, {}, {}, {}, {}, {
672
700
  minHeight: string;
673
701
  modelValue: string;
674
702
  disabled: boolean;
675
- toolbarButtonSize: string | number;
703
+ toolbarButtonSize: VuetifyButtonSize;
676
704
  }> | null;
677
705
  }, any>;
678
706
  readonly 'df-select': {
@@ -813,7 +841,7 @@ $editor: CreateComponentPublicInstanceWithMixins<Readonly<{
813
841
  modelValue?: string;
814
842
  minHeight?: string;
815
843
  disabled?: boolean;
816
- toolbarButtonSize?: string | number;
844
+ toolbarButtonSize?: VuetifyButtonSize;
817
845
  }> & Readonly<{
818
846
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
819
847
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -822,8 +850,31 @@ toolbarButtonSize?: string | number;
822
850
  minHeight: string;
823
851
  modelValue: string;
824
852
  disabled: boolean;
825
- toolbarButtonSize: string | number;
826
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
853
+ toolbarButtonSize: VuetifyButtonSize;
854
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
855
+ toolbarRef: CreateComponentPublicInstanceWithMixins<Readonly<{
856
+ editor?: Editor;
857
+ buttonSize?: VuetifyButtonSize;
858
+ }> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
859
+ buttonSize: VuetifyButtonSize;
860
+ editor: Editor;
861
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
862
+ imageInput: HTMLInputElement;
863
+ }, HTMLDivElement, ComponentProvideOptions, {
864
+ P: {};
865
+ B: {};
866
+ D: {};
867
+ C: {};
868
+ M: {};
869
+ Defaults: {};
870
+ }, Readonly<{
871
+ editor?: Editor;
872
+ buttonSize?: VuetifyButtonSize;
873
+ }> & Readonly<{}>, {}, {}, {}, {}, {
874
+ buttonSize: VuetifyButtonSize;
875
+ editor: Editor;
876
+ }> | null;
877
+ }, HTMLDivElement, ComponentProvideOptions, {
827
878
  P: {};
828
879
  B: {};
829
880
  D: {};
@@ -834,14 +885,14 @@ Defaults: {};
834
885
  modelValue?: string;
835
886
  minHeight?: string;
836
887
  disabled?: boolean;
837
- toolbarButtonSize?: string | number;
888
+ toolbarButtonSize?: VuetifyButtonSize;
838
889
  }> & Readonly<{
839
890
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
840
891
  }>, {}, {}, {}, {}, {
841
892
  minHeight: string;
842
893
  modelValue: string;
843
894
  disabled: boolean;
844
- toolbarButtonSize: string | number;
895
+ toolbarButtonSize: VuetifyButtonSize;
845
896
  }> | null;
846
897
  }, any>;
847
898
 
@@ -849,7 +900,7 @@ declare interface DfRtfEditorProps extends BaseProps {
849
900
  minHeight?: string;
850
901
  /** Size of the toolbar's buttons, forwarded to each one's `size` prop (`v-btn`'s, or `<df-actions>`'s
851
902
  * `buttonSize` for the grouped clusters). See https://vuetifyjs.com/en/api/v-btn/#props-size */
852
- toolbarButtonSize?: string | number;
903
+ toolbarButtonSize?: VuetifyButtonSize;
853
904
  }
854
905
 
855
906
  export declare const DfSelect: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1185,6 +1236,12 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
1185
1236
  }>;
1186
1237
  };
1187
1238
 
1239
+ /** Vuetify's own `size` prop (`v-btn`, `v-icon`, ...) also accepts an arbitrary CSS length or number, so this
1240
+ * keeps that but still offers the named sizes for autocomplete: `(string & {})` is a plain `string` to the type
1241
+ * checker (any string is still assignable) but not to a union with string literals, which is what makes an IDE
1242
+ * suggest the literals instead of collapsing them into `string`. */
1243
+ export declare type VuetifyButtonSize = 'x-small' | 'small' | 'default' | 'large' | 'x-large' | (string & {}) | number;
1244
+
1188
1245
  export declare namespace VuetifyComponents {
1189
1246
  export {
1190
1247
  VAutocomplete,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.11.3",
4
+ "version": "0.11.4",
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",