@dynamicforms/vuetify-inputs 0.10.5 → 0.11.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/index.d.ts CHANGED
@@ -34,6 +34,7 @@ import { Month } from 'date-fns';
34
34
  import { PublicProps } from 'vue';
35
35
  import { Quarter } from 'date-fns';
36
36
  import { Ref } from 'vue';
37
+ import { TranslateStringsCallback } from '@dynamicforms/translatable';
37
38
  import { useDisplay } from 'vuetify';
38
39
  import { ValidationError } from '@dynamicforms/vue-forms';
39
40
  import { VAutocomplete } from 'vuetify/components/VAutocomplete';
@@ -1058,9 +1059,73 @@ export declare const translatableStrings: {
1058
1059
  MediaEmbed: string;
1059
1060
  MediaEmbedUrl: string;
1060
1061
  MediaEmbedInsert: string;
1062
+ InvalidHexColor: string;
1061
1063
  };
1062
1064
 
1063
- export declare function translateStrings(translationCallback: (s: string) => string): void;
1065
+ export declare const translateStrings: (cb: TranslateStringsCallback< {
1066
+ Yes: string;
1067
+ No: string;
1068
+ Close: string;
1069
+ Paragraph: string;
1070
+ Heading1: string;
1071
+ Heading2: string;
1072
+ Heading3: string;
1073
+ Heading4: string;
1074
+ Heading5: string;
1075
+ Heading6: string;
1076
+ Downloadable: string;
1077
+ ArticleCategory: string;
1078
+ Title: string;
1079
+ Subtitle: string;
1080
+ InfoBox: string;
1081
+ SideQuote: string;
1082
+ Marker: string;
1083
+ Spoiler: string;
1084
+ CodeDark: string;
1085
+ CodeBright: string;
1086
+ Undo: string;
1087
+ Redo: string;
1088
+ SelectAll: string;
1089
+ Bold: string;
1090
+ Italic: string;
1091
+ HorizontalLine: string;
1092
+ Blockquote: string;
1093
+ BulletedList: string;
1094
+ NumberedList: string;
1095
+ Outdent: string;
1096
+ Indent: string;
1097
+ AlignLeft: string;
1098
+ AlignCenter: string;
1099
+ AlignRight: string;
1100
+ AlignJustify: string;
1101
+ Link: string;
1102
+ LinkUrl: string;
1103
+ LinkApply: string;
1104
+ LinkRemove: string;
1105
+ Image: string;
1106
+ ImageUrl: string;
1107
+ ImageUpload: string;
1108
+ ImageInsert: string;
1109
+ ImageDropHint: string;
1110
+ ImageReplace: string;
1111
+ ImageDownload: string;
1112
+ FileDownload: string;
1113
+ Table: string;
1114
+ TableInsert: string;
1115
+ TableAddRowAbove: string;
1116
+ TableAddRowBelow: string;
1117
+ TableDeleteRow: string;
1118
+ TableAddColumnBefore: string;
1119
+ TableAddColumnAfter: string;
1120
+ TableDeleteColumn: string;
1121
+ TableToggleHeaderRow: string;
1122
+ TableDeleteTable: string;
1123
+ Style: string;
1124
+ MediaEmbed: string;
1125
+ MediaEmbedUrl: string;
1126
+ MediaEmbedInsert: string;
1127
+ InvalidHexColor: string;
1128
+ }>) => void;
1064
1129
 
1065
1130
  export declare function useBreakpoint(): ComputedRef<"xs" | "sm" | "md" | "lg" | "xl">;
1066
1131
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.10.5",
4
+ "version": "0.11.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",
@@ -56,7 +56,8 @@
56
56
  "url": "https://github.com/dynamicforms/vuetify-inputs/issues"
57
57
  },
58
58
  "peerDependencies": {
59
- "@dynamicforms/vue-forms": "^0.17.0",
59
+ "@dynamicforms/translatable": "^0.1.0",
60
+ "@dynamicforms/vue-forms": "^1.0.0",
60
61
  "@mdi/font": "^7.4.47",
61
62
  "@tiptap/core": "^3.30.2",
62
63
  "@tiptap/extension-image": "^3.30.2",
@@ -84,7 +85,7 @@
84
85
  "@types/markdown-it-attrs": "^4.1.3",
85
86
  "@types/node": "^26",
86
87
  "@vitejs/plugin-vue": "^6",
87
- "@vitest/coverage-v8": "^3",
88
+ "@vitest/coverage-v8": "^4",
88
89
  "@vue/test-utils": "^2.2.4",
89
90
  "@vue/tsconfig": "^0.7.0",
90
91
  "eslint-config-velis": "^3",
@@ -92,10 +93,9 @@
92
93
  "markdown-it-attrs": "^4.3.1",
93
94
  "rollup-plugin-visualizer": "^5.14.0",
94
95
  "typescript": "^5",
95
- "vite": "^7",
96
+ "vite": "^8",
96
97
  "vite-plugin-dts": "^4",
97
- "vite-plugin-eslint": "^1.8.1",
98
- "vitest": "^3",
98
+ "vitest": "^4",
99
99
  "vue-tsc": "^2"
100
100
  },
101
101
  "allowScripts": {
package/readme.md CHANGED
@@ -68,7 +68,10 @@ consistent appearance.
68
68
  - **Uploads**: a `FileComms` object with upload progress, delete and a periodic touch
69
69
  - **Rich text**: TipTap with a Vuetify toolbar, inside the same field frame as every other input
70
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
71
+ label and `<df-image>`/`<df-file>`'s upload and download prompts, and `DateTimeLocaleConfig` sets the date-fns
72
+ locale dates are formatted and parsed with — see the
73
+ [localisation example](https://docs.velis.si/dynamicforms/vuetify-inputs/examples/localisation.html) for every
74
+ key and a worked example
72
75
  - **TypeScript**: every component's props are an exported interface, and the definitions ship with the build
73
76
 
74
77
  ## Installation