@dynamicforms/vuetify-inputs 0.11.2 → 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,6 +649,7 @@ export declare const dfInputComponentsByTag: {
644
649
  modelValue?: string;
645
650
  minHeight?: string;
646
651
  disabled?: boolean;
652
+ toolbarButtonSize?: VuetifyButtonSize;
647
653
  }> & Readonly<{
648
654
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
649
655
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -652,7 +658,31 @@ export declare const dfInputComponentsByTag: {
652
658
  minHeight: string;
653
659
  modelValue: string;
654
660
  disabled: boolean;
655
- }, 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, {
656
686
  P: {};
657
687
  B: {};
658
688
  D: {};
@@ -663,12 +693,14 @@ export declare const dfInputComponentsByTag: {
663
693
  modelValue?: string;
664
694
  minHeight?: string;
665
695
  disabled?: boolean;
696
+ toolbarButtonSize?: VuetifyButtonSize;
666
697
  }> & Readonly<{
667
698
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
668
699
  }>, {}, {}, {}, {}, {
669
700
  minHeight: string;
670
701
  modelValue: string;
671
702
  disabled: boolean;
703
+ toolbarButtonSize: VuetifyButtonSize;
672
704
  }> | null;
673
705
  }, any>;
674
706
  readonly 'df-select': {
@@ -809,6 +841,7 @@ $editor: CreateComponentPublicInstanceWithMixins<Readonly<{
809
841
  modelValue?: string;
810
842
  minHeight?: string;
811
843
  disabled?: boolean;
844
+ toolbarButtonSize?: VuetifyButtonSize;
812
845
  }> & Readonly<{
813
846
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
814
847
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -817,7 +850,31 @@ disabled?: boolean;
817
850
  minHeight: string;
818
851
  modelValue: string;
819
852
  disabled: boolean;
820
- }, 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, {
821
878
  P: {};
822
879
  B: {};
823
880
  D: {};
@@ -828,17 +885,22 @@ Defaults: {};
828
885
  modelValue?: string;
829
886
  minHeight?: string;
830
887
  disabled?: boolean;
888
+ toolbarButtonSize?: VuetifyButtonSize;
831
889
  }> & Readonly<{
832
890
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
833
891
  }>, {}, {}, {}, {}, {
834
892
  minHeight: string;
835
893
  modelValue: string;
836
894
  disabled: boolean;
895
+ toolbarButtonSize: VuetifyButtonSize;
837
896
  }> | null;
838
897
  }, any>;
839
898
 
840
899
  declare interface DfRtfEditorProps extends BaseProps {
841
900
  minHeight?: string;
901
+ /** Size of the toolbar's buttons, forwarded to each one's `size` prop (`v-btn`'s, or `<df-actions>`'s
902
+ * `buttonSize` for the grouped clusters). See https://vuetifyjs.com/en/api/v-btn/#props-size */
903
+ toolbarButtonSize?: VuetifyButtonSize;
842
904
  }
843
905
 
844
906
  export declare const DfSelect: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1174,6 +1236,12 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
1174
1236
  }>;
1175
1237
  };
1176
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
+
1177
1245
  export declare namespace VuetifyComponents {
1178
1246
  export {
1179
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.2",
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",