@dynamicforms/vuetify-inputs 0.9.2 → 0.10.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/dynamicforms-vuetify-inputs.css +1 -1
- package/dist/dynamicforms-vuetify-inputs.js +2343 -1375
- 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 +43 -26
- package/package.json +22 -5
- package/readme.md +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ 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 '@ckeditor/ckeditor5-core';
|
|
18
17
|
import { Era } from 'date-fns';
|
|
19
18
|
import { FirstWeekContainsDate } from 'date-fns';
|
|
20
19
|
import { FormatDistanceFn } from 'date-fns';
|
|
@@ -300,11 +299,6 @@ export declare type BreakpointNames = (typeof responsiveBreakpoints)[number];
|
|
|
300
299
|
*/
|
|
301
300
|
export declare type BreakpointsJSON<T extends Record<string, any>, B extends Record<string, any> = T> = T & Partial<Record<BreakpointNames, B>>;
|
|
302
301
|
|
|
303
|
-
export declare const ckEditorLanguage: {
|
|
304
|
-
language: string;
|
|
305
|
-
translations: undefined;
|
|
306
|
-
};
|
|
307
|
-
|
|
308
302
|
export declare const DateTimeLocaleConfig: {
|
|
309
303
|
dateTimeLocale: Ref<{
|
|
310
304
|
code: string;
|
|
@@ -609,17 +603,13 @@ export declare const dfInputComponentsByTag: {
|
|
|
609
603
|
disabled?: boolean;
|
|
610
604
|
}> & Readonly<{
|
|
611
605
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
612
|
-
}>, {
|
|
613
|
-
onEditorReady: (editorReady: Editor) => void;
|
|
614
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
606
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
615
607
|
"update:modelValue": (value: string) => any;
|
|
616
608
|
}, PublicProps, {
|
|
617
609
|
minHeight: string;
|
|
618
610
|
modelValue: string;
|
|
619
611
|
disabled: boolean;
|
|
620
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
621
|
-
editorElement: HTMLDivElement;
|
|
622
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
612
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
623
613
|
P: {};
|
|
624
614
|
B: {};
|
|
625
615
|
D: {};
|
|
@@ -632,9 +622,7 @@ export declare const dfInputComponentsByTag: {
|
|
|
632
622
|
disabled?: boolean;
|
|
633
623
|
}> & Readonly<{
|
|
634
624
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
635
|
-
}>, {
|
|
636
|
-
onEditorReady: (editorReady: Editor) => void;
|
|
637
|
-
}, {}, {}, {}, {
|
|
625
|
+
}>, {}, {}, {}, {}, {
|
|
638
626
|
minHeight: string;
|
|
639
627
|
modelValue: string;
|
|
640
628
|
disabled: boolean;
|
|
@@ -780,17 +768,13 @@ minHeight?: string;
|
|
|
780
768
|
disabled?: boolean;
|
|
781
769
|
}> & Readonly<{
|
|
782
770
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
783
|
-
}>, {
|
|
784
|
-
onEditorReady: (editorReady: Editor) => void;
|
|
785
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
771
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
786
772
|
"update:modelValue": (value: string) => any;
|
|
787
773
|
}, PublicProps, {
|
|
788
774
|
minHeight: string;
|
|
789
775
|
modelValue: string;
|
|
790
776
|
disabled: boolean;
|
|
791
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
792
|
-
editorElement: HTMLDivElement;
|
|
793
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
777
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
794
778
|
P: {};
|
|
795
779
|
B: {};
|
|
796
780
|
D: {};
|
|
@@ -803,9 +787,7 @@ minHeight?: string;
|
|
|
803
787
|
disabled?: boolean;
|
|
804
788
|
}> & Readonly<{
|
|
805
789
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
806
|
-
}>, {
|
|
807
|
-
onEditorReady: (editorReady: Editor) => void;
|
|
808
|
-
}, {}, {}, {}, {
|
|
790
|
+
}>, {}, {}, {}, {}, {
|
|
809
791
|
minHeight: string;
|
|
810
792
|
modelValue: string;
|
|
811
793
|
disabled: boolean;
|
|
@@ -934,8 +916,6 @@ export declare interface SelectChoice {
|
|
|
934
916
|
|
|
935
917
|
export declare type SelectFetchChoices<T1 = any, T2 = any> = (queryValue?: T1, idValue?: T2) => Promise<SelectChoice[]>;
|
|
936
918
|
|
|
937
|
-
export declare function setCkEditorLanguage(language: string, translations: any): void;
|
|
938
|
-
|
|
939
919
|
declare type ShowAsGroup = 'no' | 'grouped' | 'grouped-no-borders';
|
|
940
920
|
|
|
941
921
|
export declare const translatableStrings: {
|
|
@@ -959,6 +939,43 @@ export declare const translatableStrings: {
|
|
|
959
939
|
Spoiler: string;
|
|
960
940
|
CodeDark: string;
|
|
961
941
|
CodeBright: string;
|
|
942
|
+
Undo: string;
|
|
943
|
+
Redo: string;
|
|
944
|
+
SelectAll: string;
|
|
945
|
+
Bold: string;
|
|
946
|
+
Italic: string;
|
|
947
|
+
HorizontalLine: string;
|
|
948
|
+
Blockquote: string;
|
|
949
|
+
BulletedList: string;
|
|
950
|
+
NumberedList: string;
|
|
951
|
+
Outdent: string;
|
|
952
|
+
Indent: string;
|
|
953
|
+
AlignLeft: string;
|
|
954
|
+
AlignCenter: string;
|
|
955
|
+
AlignRight: string;
|
|
956
|
+
AlignJustify: string;
|
|
957
|
+
Link: string;
|
|
958
|
+
LinkUrl: string;
|
|
959
|
+
LinkApply: string;
|
|
960
|
+
LinkRemove: string;
|
|
961
|
+
Image: string;
|
|
962
|
+
ImageUrl: string;
|
|
963
|
+
ImageUpload: string;
|
|
964
|
+
ImageInsert: string;
|
|
965
|
+
Table: string;
|
|
966
|
+
TableInsert: string;
|
|
967
|
+
TableAddRowAbove: string;
|
|
968
|
+
TableAddRowBelow: string;
|
|
969
|
+
TableDeleteRow: string;
|
|
970
|
+
TableAddColumnBefore: string;
|
|
971
|
+
TableAddColumnAfter: string;
|
|
972
|
+
TableDeleteColumn: string;
|
|
973
|
+
TableToggleHeaderRow: string;
|
|
974
|
+
TableDeleteTable: string;
|
|
975
|
+
Style: string;
|
|
976
|
+
MediaEmbed: string;
|
|
977
|
+
MediaEmbedUrl: string;
|
|
978
|
+
MediaEmbedInsert: string;
|
|
962
979
|
};
|
|
963
980
|
|
|
964
981
|
export declare function translateStrings(translationCallback: (s: string) => string): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamicforms/vuetify-inputs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
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",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "vite build",
|
|
26
26
|
"test": "vitest run --coverage",
|
|
27
|
+
"test:e2e": "playwright test",
|
|
27
28
|
"lint": "eslint src --fix && vue-tsc --noEmit",
|
|
28
29
|
"lint:ci": "eslint src && vue-tsc --noEmit",
|
|
29
30
|
"docs:dev": "npm run docs:dev -w docs",
|
|
@@ -55,10 +56,20 @@
|
|
|
55
56
|
"url": "https://github.com/dynamicforms/vuetify-inputs/issues"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
|
-
"@ckeditor/ckeditor5-vue": "^7.0.0",
|
|
59
59
|
"@dynamicforms/vue-forms": "^0.17.0",
|
|
60
60
|
"@mdi/font": "^7.4.47",
|
|
61
|
-
"
|
|
61
|
+
"@tiptap/core": "^3.30.2",
|
|
62
|
+
"@tiptap/extension-image": "^3.30.2",
|
|
63
|
+
"@tiptap/extension-link": "^3.30.2",
|
|
64
|
+
"@tiptap/extension-placeholder": "^3.30.2",
|
|
65
|
+
"@tiptap/extension-table": "^3.30.2",
|
|
66
|
+
"@tiptap/extension-table-cell": "^3.30.2",
|
|
67
|
+
"@tiptap/extension-table-header": "^3.30.2",
|
|
68
|
+
"@tiptap/extension-table-row": "^3.30.2",
|
|
69
|
+
"@tiptap/extension-text-align": "^3.30.2",
|
|
70
|
+
"@tiptap/pm": "^3.30.2",
|
|
71
|
+
"@tiptap/starter-kit": "^3.30.2",
|
|
72
|
+
"@tiptap/vue-3": "^3.30.2",
|
|
62
73
|
"date-fns": "^4.1.0",
|
|
63
74
|
"lodash-es": "^4.17.12",
|
|
64
75
|
"vitepress-plugin-crosslinks": "^1.0.0",
|
|
@@ -68,14 +79,15 @@
|
|
|
68
79
|
"vuetify": "^3.9"
|
|
69
80
|
},
|
|
70
81
|
"devDependencies": {
|
|
82
|
+
"@playwright/test": "^1.62.1",
|
|
71
83
|
"@types/lodash-es": "^4.17.12",
|
|
72
84
|
"@types/markdown-it-attrs": "^4.1.3",
|
|
73
|
-
"@types/node": "^
|
|
85
|
+
"@types/node": "^26",
|
|
74
86
|
"@vitejs/plugin-vue": "^6",
|
|
75
87
|
"@vitest/coverage-v8": "^3",
|
|
76
88
|
"@vue/test-utils": "^2.2.4",
|
|
77
89
|
"@vue/tsconfig": "^0.7.0",
|
|
78
|
-
"eslint-config-velis": "^
|
|
90
|
+
"eslint-config-velis": "^3",
|
|
79
91
|
"jsdom": "^26.0.0",
|
|
80
92
|
"markdown-it-attrs": "^4.3.1",
|
|
81
93
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
@@ -85,5 +97,10 @@
|
|
|
85
97
|
"vite-plugin-eslint": "^1.8.1",
|
|
86
98
|
"vitest": "^3",
|
|
87
99
|
"vue-tsc": "^2"
|
|
100
|
+
},
|
|
101
|
+
"allowScripts": {
|
|
102
|
+
"@parcel/watcher@2.6.0": true,
|
|
103
|
+
"esbuild@0.28.2": true,
|
|
104
|
+
"unrs-resolver@1.12.2": true
|
|
88
105
|
}
|
|
89
106
|
}
|
package/readme.md
CHANGED
|
@@ -66,10 +66,9 @@ consistent appearance.
|
|
|
66
66
|
- **Selection**: static choices or an async `fetchChoices`, single or multiple, chips with icons, free values with
|
|
67
67
|
`allowTags`
|
|
68
68
|
- **Uploads**: a `FileComms` object with upload progress, delete and a periodic touch
|
|
69
|
-
- **Rich text**: a
|
|
70
|
-
- **Localisable**: `translateStrings()` replaces the library's own strings,
|
|
71
|
-
|
|
72
|
-
with
|
|
69
|
+
- **Rich text**: TipTap with a Vuetify toolbar, inside the same field frame as every other input
|
|
70
|
+
- **Localisable**: `translateStrings()` replaces the library's own strings, including every RTF editor toolbar
|
|
71
|
+
label, and `DateTimeLocaleConfig` sets the date-fns locale dates are formatted and parsed with
|
|
73
72
|
- **TypeScript**: every component's props are an exported interface, and the definitions ship with the build
|
|
74
73
|
|
|
75
74
|
## Installation
|