@ditojs/admin 1.13.1 → 1.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/admin",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
@@ -37,8 +37,8 @@
37
37
  "not ie_mob > 0"
38
38
  ],
39
39
  "dependencies": {
40
- "@ditojs/ui": "^1.13.1",
41
- "@ditojs/utils": "^1.13.1",
40
+ "@ditojs/ui": "^1.14.0",
41
+ "@ditojs/utils": "^1.14.0",
42
42
  "codeflask": "^1.4.1",
43
43
  "filesize": "^10.0.5",
44
44
  "filesize-parser": "^1.5.0",
@@ -48,26 +48,26 @@
48
48
  "tiptap-commands": "^1.17.1",
49
49
  "tiptap-extensions": "^1.35.2",
50
50
  "to-pascal-case": "^1.0.0",
51
- "vue": "^2.7.13",
51
+ "vue": "^2.7.14",
52
52
  "vue-color": "^2.8.1",
53
53
  "vue-js-modal": "^2.0.1",
54
54
  "vue-multiselect": "^2.1.6",
55
55
  "vue-notification": "^1.3.20",
56
56
  "vue-router": "^3.6.5",
57
57
  "vue-spinner": "^1.0.4",
58
- "vue-template-compiler": "^2.7.13",
59
- "vue-upload-component": "^2.8.22",
58
+ "vue-template-compiler": "^2.7.14",
59
+ "vue-upload-component": "^2.8.23",
60
60
  "vuedraggable": "^2.24.3"
61
61
  },
62
62
  "devDependencies": {
63
- "@ditojs/build": "^1.13.0",
63
+ "@ditojs/build": "^1.14.0",
64
64
  "pug": "^3.0.2",
65
- "sass": "1.55.0",
66
- "type-fest": "^3.1.0",
67
- "typescript": "^4.8.4",
68
- "vite": "^3.2.2",
65
+ "sass": "1.56.1",
66
+ "type-fest": "^3.2.0",
67
+ "typescript": "^4.9.3",
68
+ "vite": "^3.2.4",
69
69
  "vite-plugin-vue2": "^2.0.2"
70
70
  },
71
71
  "types": "types",
72
- "gitHead": "0c6a508e04ca915691c1fb0f3706827c8ecfe0ab"
72
+ "gitHead": "ba197ae5254deb657b2c3b5dab7a851f488e022a"
73
73
  }
@@ -288,8 +288,7 @@ export default DitoComponent.component('dito-form', {
288
288
  // @override ResourceMixin.setupData()
289
289
  setupData() {
290
290
  if (this.isCreating) {
291
- this.createdData = this.createdData ||
292
- this.createData(this.schema, this.type)
291
+ this.createdData ||= this.createData(this.schema, this.type)
293
292
  } else {
294
293
  this.ensureData()
295
294
  }
@@ -163,7 +163,7 @@ export function processComponent(api, schema, name, routes, level) {
163
163
  export function processRouteSchema(api, schema, name) {
164
164
  // Used for view and source schemas, see SourceMixin
165
165
  schema.name = name
166
- schema.path = schema.path || api.normalizePath(name)
166
+ schema.path ||= api.normalizePath(name)
167
167
  }
168
168
 
169
169
  export async function processSchemaComponents(api, schema, routes, level) {