@dynamicforms/vuetify-inputs 0.11.3 → 0.11.5
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/dynamicforms-vuetify-inputs.css +1 -1
- package/dist/dynamicforms-vuetify-inputs.js +964 -1021
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +84 -14
- package/package.json +1 -1
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:
|
|
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?:
|
|
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:
|
|
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,8 @@ export declare const dfInputComponentsByTag: {
|
|
|
644
649
|
modelValue?: string;
|
|
645
650
|
minHeight?: string;
|
|
646
651
|
disabled?: boolean;
|
|
647
|
-
toolbarButtonSize?:
|
|
652
|
+
toolbarButtonSize?: VuetifyButtonSize;
|
|
653
|
+
fontFamily?: string;
|
|
648
654
|
}> & Readonly<{
|
|
649
655
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
650
656
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -653,8 +659,32 @@ export declare const dfInputComponentsByTag: {
|
|
|
653
659
|
minHeight: string;
|
|
654
660
|
modelValue: string;
|
|
655
661
|
disabled: boolean;
|
|
656
|
-
toolbarButtonSize:
|
|
657
|
-
|
|
662
|
+
toolbarButtonSize: VuetifyButtonSize;
|
|
663
|
+
fontFamily: string;
|
|
664
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
665
|
+
toolbarRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
666
|
+
editor?: Editor;
|
|
667
|
+
buttonSize?: VuetifyButtonSize;
|
|
668
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
669
|
+
buttonSize: VuetifyButtonSize;
|
|
670
|
+
editor: Editor;
|
|
671
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
672
|
+
imageInput: HTMLInputElement;
|
|
673
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
674
|
+
P: {};
|
|
675
|
+
B: {};
|
|
676
|
+
D: {};
|
|
677
|
+
C: {};
|
|
678
|
+
M: {};
|
|
679
|
+
Defaults: {};
|
|
680
|
+
}, Readonly<{
|
|
681
|
+
editor?: Editor;
|
|
682
|
+
buttonSize?: VuetifyButtonSize;
|
|
683
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
684
|
+
buttonSize: VuetifyButtonSize;
|
|
685
|
+
editor: Editor;
|
|
686
|
+
}> | null;
|
|
687
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
658
688
|
P: {};
|
|
659
689
|
B: {};
|
|
660
690
|
D: {};
|
|
@@ -665,14 +695,16 @@ export declare const dfInputComponentsByTag: {
|
|
|
665
695
|
modelValue?: string;
|
|
666
696
|
minHeight?: string;
|
|
667
697
|
disabled?: boolean;
|
|
668
|
-
toolbarButtonSize?:
|
|
698
|
+
toolbarButtonSize?: VuetifyButtonSize;
|
|
699
|
+
fontFamily?: string;
|
|
669
700
|
}> & Readonly<{
|
|
670
701
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
671
702
|
}>, {}, {}, {}, {}, {
|
|
672
703
|
minHeight: string;
|
|
673
704
|
modelValue: string;
|
|
674
705
|
disabled: boolean;
|
|
675
|
-
toolbarButtonSize:
|
|
706
|
+
toolbarButtonSize: VuetifyButtonSize;
|
|
707
|
+
fontFamily: string;
|
|
676
708
|
}> | null;
|
|
677
709
|
}, any>;
|
|
678
710
|
readonly 'df-select': {
|
|
@@ -813,7 +845,8 @@ $editor: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
|
813
845
|
modelValue?: string;
|
|
814
846
|
minHeight?: string;
|
|
815
847
|
disabled?: boolean;
|
|
816
|
-
toolbarButtonSize?:
|
|
848
|
+
toolbarButtonSize?: VuetifyButtonSize;
|
|
849
|
+
fontFamily?: string;
|
|
817
850
|
}> & Readonly<{
|
|
818
851
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
819
852
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -822,8 +855,32 @@ toolbarButtonSize?: string | number;
|
|
|
822
855
|
minHeight: string;
|
|
823
856
|
modelValue: string;
|
|
824
857
|
disabled: boolean;
|
|
825
|
-
toolbarButtonSize:
|
|
826
|
-
|
|
858
|
+
toolbarButtonSize: VuetifyButtonSize;
|
|
859
|
+
fontFamily: string;
|
|
860
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
861
|
+
toolbarRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
862
|
+
editor?: Editor;
|
|
863
|
+
buttonSize?: VuetifyButtonSize;
|
|
864
|
+
}> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
865
|
+
buttonSize: VuetifyButtonSize;
|
|
866
|
+
editor: Editor;
|
|
867
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
868
|
+
imageInput: HTMLInputElement;
|
|
869
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
870
|
+
P: {};
|
|
871
|
+
B: {};
|
|
872
|
+
D: {};
|
|
873
|
+
C: {};
|
|
874
|
+
M: {};
|
|
875
|
+
Defaults: {};
|
|
876
|
+
}, Readonly<{
|
|
877
|
+
editor?: Editor;
|
|
878
|
+
buttonSize?: VuetifyButtonSize;
|
|
879
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
880
|
+
buttonSize: VuetifyButtonSize;
|
|
881
|
+
editor: Editor;
|
|
882
|
+
}> | null;
|
|
883
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
827
884
|
P: {};
|
|
828
885
|
B: {};
|
|
829
886
|
D: {};
|
|
@@ -834,14 +891,16 @@ Defaults: {};
|
|
|
834
891
|
modelValue?: string;
|
|
835
892
|
minHeight?: string;
|
|
836
893
|
disabled?: boolean;
|
|
837
|
-
toolbarButtonSize?:
|
|
894
|
+
toolbarButtonSize?: VuetifyButtonSize;
|
|
895
|
+
fontFamily?: string;
|
|
838
896
|
}> & Readonly<{
|
|
839
897
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
840
898
|
}>, {}, {}, {}, {}, {
|
|
841
899
|
minHeight: string;
|
|
842
900
|
modelValue: string;
|
|
843
901
|
disabled: boolean;
|
|
844
|
-
toolbarButtonSize:
|
|
902
|
+
toolbarButtonSize: VuetifyButtonSize;
|
|
903
|
+
fontFamily: string;
|
|
845
904
|
}> | null;
|
|
846
905
|
}, any>;
|
|
847
906
|
|
|
@@ -849,7 +908,12 @@ declare interface DfRtfEditorProps extends BaseProps {
|
|
|
849
908
|
minHeight?: string;
|
|
850
909
|
/** Size of the toolbar's buttons, forwarded to each one's `size` prop (`v-btn`'s, or `<df-actions>`'s
|
|
851
910
|
* `buttonSize` for the grouped clusters). See https://vuetifyjs.com/en/api/v-btn/#props-size */
|
|
852
|
-
toolbarButtonSize?:
|
|
911
|
+
toolbarButtonSize?: VuetifyButtonSize;
|
|
912
|
+
/** `font-family` of the editing area and its named block styles (Title, Subtitle, Info box, Side quote, article
|
|
913
|
+
* category). Defaults to `'inherit'`: the component loads no font of its own, so the editor renders in whatever
|
|
914
|
+
* font the surrounding page already set. Pass any valid CSS `font-family` value to override it; loading the
|
|
915
|
+
* font itself, if it isn't a system font, is the application's responsibility. */
|
|
916
|
+
fontFamily?: string;
|
|
853
917
|
}
|
|
854
918
|
|
|
855
919
|
export declare const DfSelect: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1185,6 +1249,12 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
|
|
|
1185
1249
|
}>;
|
|
1186
1250
|
};
|
|
1187
1251
|
|
|
1252
|
+
/** Vuetify's own `size` prop (`v-btn`, `v-icon`, ...) also accepts an arbitrary CSS length or number, so this
|
|
1253
|
+
* keeps that but still offers the named sizes for autocomplete: `(string & {})` is a plain `string` to the type
|
|
1254
|
+
* checker (any string is still assignable) but not to a union with string literals, which is what makes an IDE
|
|
1255
|
+
* suggest the literals instead of collapsing them into `string`. */
|
|
1256
|
+
export declare type VuetifyButtonSize = 'x-small' | 'small' | 'default' | 'large' | 'x-large' | (string & {}) | number;
|
|
1257
|
+
|
|
1188
1258
|
export declare namespace VuetifyComponents {
|
|
1189
1259
|
export {
|
|
1190
1260
|
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.
|
|
4
|
+
"version": "0.11.5",
|
|
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",
|