@koumoul/vjsf 2.10.0 → 2.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/.babelrc +2 -1
- package/dist/main.js +1 -1
- package/dist/third-party.js +6 -12
- package/lib/VJsfNoDeps.js +3 -1
- package/lib/utils/options.js +10 -10
- package/package.json +29 -34
- package/webpack.config.js +5 -11
package/lib/VJsfNoDeps.js
CHANGED
|
@@ -63,6 +63,8 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
fullOptions() {
|
|
65
65
|
const _global = (typeof window !== 'undefined' && window) || (typeof global !== 'undefined' && global) || {}
|
|
66
|
+
defaultOptions.locale = (this.$vuetify.lang && this.$vuetify.lang.current) || 'en'
|
|
67
|
+
defaultOptions.defaultLocale = (this.$vuetify.lang && this.$vuetify.lang.defaultLocale) || 'en'
|
|
66
68
|
const fullOptions = Object.assign({}, defaultOptions, this.options || {}, this.resolvedSchema['x-options'] || {})
|
|
67
69
|
|
|
68
70
|
fullOptions.markdown = fullOptions.markdown ||
|
|
@@ -118,7 +120,7 @@ export default {
|
|
|
118
120
|
fullOptions.icons = { ...fullOptions.defaultIcons, ...fullOptions.icons }
|
|
119
121
|
}
|
|
120
122
|
|
|
121
|
-
fullOptions.messages = { ...(localizedMessages[fullOptions.locale] || localizedMessages.en), ...fullOptions.messages }
|
|
123
|
+
fullOptions.messages = { ...(localizedMessages[fullOptions.defaultLocale] || localizedMessages.en), ...(localizedMessages[fullOptions.locale] || localizedMessages.en), ...fullOptions.messages }
|
|
122
124
|
fullOptions.formats = { ...formats, ...fullOptions.formats }
|
|
123
125
|
if (fullOptions.deleteReadOnly) fullOptions.hideReadOnly = true
|
|
124
126
|
return fullOptions
|
package/lib/utils/options.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mdiCalendar, mdiClock, mdiInformation, mdiPlus, mdiPencil, mdiDelete } from '@mdi/js'
|
|
2
2
|
|
|
3
3
|
export const defaultOptions = {
|
|
4
|
-
locale: '
|
|
5
|
-
defaultLocale: '
|
|
4
|
+
locale: '',
|
|
5
|
+
defaultLocale: '',
|
|
6
6
|
rootDisplay: '',
|
|
7
7
|
objectContainerClass: '',
|
|
8
8
|
sectionsClass: 'pl-2 pt-2',
|
|
@@ -130,10 +130,10 @@ export const localizedMessages = {
|
|
|
130
130
|
required: 'Esta información es requerida',
|
|
131
131
|
noData: 'No se encontraron valores coincidentes',
|
|
132
132
|
search: 'Buscar...',
|
|
133
|
-
minimum: 'El valor debe ser mayor o igual que {
|
|
134
|
-
exclusiveMinimum: 'El valor debe ser mayor que {
|
|
133
|
+
minimum: 'El valor debe ser mayor o igual que {minimum}',
|
|
134
|
+
exclusiveMinimum: 'El valor debe ser mayor que {exclusiveMinimum}',
|
|
135
135
|
maximum: 'El valor debe ser menor o igual a {maximum}',
|
|
136
|
-
exclusiveMaximum: 'El valor debe ser inferior a {
|
|
136
|
+
exclusiveMaximum: 'El valor debe ser inferior a {exclusiveMaximum}',
|
|
137
137
|
minLength: '{minLength} caracteres mínimo',
|
|
138
138
|
maxLength: '{maxLength} caractères máximo',
|
|
139
139
|
minItems: 'Al menos {minItems} articulos',
|
|
@@ -145,10 +145,10 @@ export const localizedMessages = {
|
|
|
145
145
|
required: 'Diese Informationen sind erforderlich',
|
|
146
146
|
noData: 'Keine passenden Artikel',
|
|
147
147
|
search: 'Suche...',
|
|
148
|
-
minimum: 'Der Wert muss größer oder gleich {
|
|
148
|
+
minimum: 'Der Wert muss größer oder gleich {minimum} sein',
|
|
149
149
|
exclusiveMinimum: 'Der Wert muss größer als {exclusiveMinimum} sein',
|
|
150
|
-
maximum: 'Der Wert muss kleiner oder gleich {
|
|
151
|
-
exclusiveMaximum: 'Der Wert muss kleiner als {
|
|
150
|
+
maximum: 'Der Wert muss kleiner oder gleich {maximum} sein',
|
|
151
|
+
exclusiveMaximum: 'Der Wert muss kleiner als {exclusiveMaximum} sein',
|
|
152
152
|
minLength: 'Mindestens {minLength} Zeichen',
|
|
153
153
|
maxLength: 'Maximal {maxLength} Zeichen',
|
|
154
154
|
minItems: 'Mindestens {minItems} Elemente',
|
|
@@ -178,7 +178,7 @@ export const localizedMessages = {
|
|
|
178
178
|
minimum: 'Değer {minimum} dan büyük olmalı',
|
|
179
179
|
exclusiveMinimum: 'Değer {exclusiveMinimum} dan büyük olmalı',
|
|
180
180
|
maximum: 'Değer, {maximum} değerinden küçük veya ona eşit olmalıdır',
|
|
181
|
-
exclusiveMaximum: 'Değer {
|
|
181
|
+
exclusiveMaximum: 'Değer {exclusiveMaximum} dan küçük olmalı',
|
|
182
182
|
minLength: '{minLength} asgari karakter sayısı',
|
|
183
183
|
maxLength: '{maxLength} azami karakter sayısı',
|
|
184
184
|
minItems: 'En az seçenek sayısı {minItems}',
|
|
@@ -193,7 +193,7 @@ export const localizedMessages = {
|
|
|
193
193
|
minimum: 'De waarde moet groter zijn dan of gelijk zijn aan {minimum}',
|
|
194
194
|
exclusiveMinimum: 'Waarde moet meer zijn dan {exclusiveMinimum}',
|
|
195
195
|
maximum: 'De waarde moet lager zijn dan of gelijk zijn aan {maximum}',
|
|
196
|
-
exclusiveMaximum: 'Waarde moet minder zijn dan {
|
|
196
|
+
exclusiveMaximum: 'Waarde moet minder zijn dan {exclusiveMaximum}',
|
|
197
197
|
minLength: 'Minimaal {minLength} tekens',
|
|
198
198
|
maxLength: 'Maximaal {maxLength} tekens',
|
|
199
199
|
minItems: 'Minimaal {minItems} antwoorden',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"scripts": {
|
|
@@ -46,38 +46,36 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/koumoul-dev/vuetify-jsonschema-form#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@mdi/js": "^
|
|
50
|
-
"ajv": "^8.
|
|
49
|
+
"@mdi/js": "^6.5.95",
|
|
50
|
+
"ajv": "^8.9.0",
|
|
51
51
|
"ajv-formats": "^2.1.1",
|
|
52
|
-
"ajv-i18n": "^4.
|
|
53
|
-
"debounce": "^1.2.
|
|
52
|
+
"ajv-i18n": "^4.2.0",
|
|
53
|
+
"debounce": "^1.2.1",
|
|
54
|
+
"debug": "^4.3.3",
|
|
54
55
|
"fast-copy": "^2.1.1",
|
|
55
|
-
"fast-equals": "^2.0.
|
|
56
|
-
"markdown-it": "^
|
|
57
|
-
"match-all": "^1.2.
|
|
58
|
-
"object-hash": "^2.
|
|
59
|
-
"property-expr": "^2.0.
|
|
56
|
+
"fast-equals": "^2.0.4",
|
|
57
|
+
"markdown-it": "^12.3.2",
|
|
58
|
+
"match-all": "^1.2.6",
|
|
59
|
+
"object-hash": "^2.2.0",
|
|
60
|
+
"property-expr": "^2.0.5",
|
|
60
61
|
"vuedraggable": "^2.24.3"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
|
-
"@babel/
|
|
64
|
-
"@babel/
|
|
65
|
-
"@babel/preset-env": "^7.5.5",
|
|
64
|
+
"@babel/core": "^7.16.12",
|
|
65
|
+
"@babel/preset-env": "^7.16.11",
|
|
66
66
|
"@koumoul/data-fair-search-widget": "^0.3.0",
|
|
67
67
|
"@koumoul/gh-pages-multi": "^0.6.0",
|
|
68
|
-
"@mdi/font": "^
|
|
68
|
+
"@mdi/font": "^6.5.95",
|
|
69
69
|
"@nuxtjs/axios": "^5.13.6",
|
|
70
70
|
"@nuxtjs/vuetify": "^1.12.3",
|
|
71
71
|
"@toast-ui/vue-editor": "^2.5.1",
|
|
72
|
-
"@vue/test-utils": "^1.0
|
|
73
|
-
"axios": "^0.
|
|
72
|
+
"@vue/test-utils": "^1.3.0",
|
|
73
|
+
"axios": "^0.25.0",
|
|
74
74
|
"babel-core": "^7.0.0-bridge.0",
|
|
75
|
-
"babel-eslint": "^10.0
|
|
76
|
-
"babel-
|
|
77
|
-
"babel-loader": "^8.0.6",
|
|
78
|
-
"babel-polyfill": "^6.26.0",
|
|
75
|
+
"babel-eslint": "^10.1.0",
|
|
76
|
+
"babel-loader": "^8.2.3",
|
|
79
77
|
"brace": "^0.11.1",
|
|
80
|
-
"easymde": "^2.
|
|
78
|
+
"easymde": "^2.16.1",
|
|
81
79
|
"eslint": "^6.1.0",
|
|
82
80
|
"eslint-config-standard": "^13.0.1",
|
|
83
81
|
"eslint-plugin-import": "^2.18.2",
|
|
@@ -85,26 +83,23 @@
|
|
|
85
83
|
"eslint-plugin-node": "^9.1.0",
|
|
86
84
|
"eslint-plugin-promise": "^4.2.1",
|
|
87
85
|
"eslint-plugin-standard": "^4.0.0",
|
|
88
|
-
"eslint-plugin-vue": "^
|
|
89
|
-
"
|
|
90
|
-
"highlight.js": "^10.4.1",
|
|
91
|
-
"hjson": "^3.1.2",
|
|
86
|
+
"eslint-plugin-vue": "^7.20.0",
|
|
87
|
+
"highlight.js": "^11.4.0",
|
|
92
88
|
"jest": "^26.1.0",
|
|
93
89
|
"jest-serializer-vue": "^2.0.2",
|
|
94
|
-
"mini-css-extract-plugin": "^
|
|
95
|
-
"nuxt": "^2.15.
|
|
90
|
+
"mini-css-extract-plugin": "^1.6.2",
|
|
91
|
+
"nuxt": "^2.15.8",
|
|
96
92
|
"random-words": "^1.1.0",
|
|
97
|
-
"sanitize-html": "^2.
|
|
93
|
+
"sanitize-html": "^2.6.1",
|
|
98
94
|
"stringify-object": "^3.3.0",
|
|
99
95
|
"tiptap-vuetify": "^2.24.0",
|
|
100
96
|
"v-mask": "^2.3.0",
|
|
101
97
|
"vue-axios": "^2.1.5",
|
|
102
98
|
"vue-cropperjs": "^4.2.0",
|
|
103
|
-
"vue-jest": "^3.0.
|
|
104
|
-
"vue-template-compiler": "^2.6.
|
|
105
|
-
"vuetify": "^2.
|
|
106
|
-
"webpack": "^4.
|
|
107
|
-
"
|
|
108
|
-
"yaml": "^1.7.1"
|
|
99
|
+
"vue-jest": "^3.0.7",
|
|
100
|
+
"vue-template-compiler": "^2.6.14",
|
|
101
|
+
"vuetify": "^2.6.2",
|
|
102
|
+
"webpack-cli": "^4.9.1",
|
|
103
|
+
"yaml": "^1.10.2"
|
|
109
104
|
}
|
|
110
105
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const path = require('path')
|
|
2
|
-
const VueLoaderPlugin = require('vue-loader
|
|
2
|
+
const { VueLoaderPlugin } = require('vue-loader')
|
|
3
3
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
4
4
|
|
|
5
5
|
const base = {
|
|
@@ -8,22 +8,16 @@ const base = {
|
|
|
8
8
|
rules: [{
|
|
9
9
|
test: /\.js$/,
|
|
10
10
|
exclude: /(node_modules)/,
|
|
11
|
-
|
|
12
|
-
options: {
|
|
13
|
-
presets: ['@babel/preset-env']
|
|
14
|
-
}
|
|
11
|
+
use: 'babel-loader'
|
|
15
12
|
}, {
|
|
16
13
|
test: /\.vue$/,
|
|
17
|
-
|
|
14
|
+
use: 'vue-loader'
|
|
18
15
|
}, {
|
|
19
16
|
test: /\.css$/,
|
|
20
|
-
|
|
21
|
-
}, {
|
|
22
|
-
test: /\.less$/,
|
|
23
|
-
loader: [MiniCssExtractPlugin.loader, 'css-loader', 'less-loader']
|
|
17
|
+
use: [MiniCssExtractPlugin.loader, 'css-loader']
|
|
24
18
|
}, {
|
|
25
19
|
test: /\.(svg|eot|woff|ttf|woff2)$/,
|
|
26
|
-
|
|
20
|
+
use: 'file-loader'
|
|
27
21
|
}]
|
|
28
22
|
},
|
|
29
23
|
plugins: [
|