@ditojs/admin 2.85.1 → 2.86.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": "2.85.1",
3
+ "version": "2.86.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",
@@ -25,15 +25,13 @@
25
25
  "types/"
26
26
  ],
27
27
  "scripts": {
28
- "vite": "node --disable-warning=DEP0040 $(yarn bin vite)",
29
- "build": "yarn vite build",
30
- "watch": "yarn build --mode 'development' --watch",
31
- "prepare": "yarn build",
28
+ "build": "vite build",
29
+ "watch": "pnpm run build --mode 'development' --watch",
30
+ "prepare": "pnpm run build",
32
31
  "types": "tsc --noEmit types/index.d.ts"
33
32
  },
34
33
  "engines": {
35
- "node": ">= 20.0.0",
36
- "yarn": ">= 4.0.0"
34
+ "node": ">= 20.0.0"
37
35
  },
38
36
  "browserslist": [
39
37
  "> 1%",
@@ -42,8 +40,10 @@
42
40
  "not ie_mob > 0"
43
41
  ],
44
42
  "dependencies": {
45
- "@ditojs/ui": "^2.85.0",
46
- "@ditojs/utils": "^2.85.0",
43
+ "@ditojs/ui": "^2.86.0",
44
+ "@ditojs/utils": "^2.86.0"
45
+ },
46
+ "peerDependencies": {
47
47
  "@kyvg/vue3-notification": "^3.4.2",
48
48
  "@lk77/vue3-color": "^3.0.6",
49
49
  "@tiptap/core": "^3.20.1",
@@ -89,9 +89,9 @@
89
89
  "vue-upload-component": "^3.1.17"
90
90
  },
91
91
  "devDependencies": {
92
- "@ditojs/build": "^2.85.0",
92
+ "@ditojs/build": "^2.86.0",
93
93
  "typescript": "^5.9.3",
94
94
  "vite": "^7.3.1"
95
95
  },
96
- "gitHead": "2a442c0da86355cf67fa5e2077d121c2a62342d7"
96
+ "gitHead": "92bc92fbb077de992fe1422adee414b8a9967c09"
97
97
  }
@@ -345,6 +345,7 @@ export default DitoComponent.component('DitoTreeItem', {
345
345
  .dito-tree-label {
346
346
  display: flex;
347
347
  align-items: baseline;
348
+ gap: 0.25em;
348
349
  overflow: hidden;
349
350
  white-space: nowrap;
350
351
  }
@@ -102,12 +102,12 @@ export default {
102
102
  }
103
103
  },
104
104
 
105
- beforeRouteUpdate(to, from, next) {
106
- this?.beforeRouteChange(to, from, next)
105
+ beforeRouteUpdate(to, from) {
106
+ return this?.beforeRouteChange(to, from)
107
107
  },
108
108
 
109
- beforeRouteLeave(to, from, next) {
110
- this?.beforeRouteChange(to, from, next)
109
+ beforeRouteLeave(to, from) {
110
+ return this?.beforeRouteChange(to, from)
111
111
  },
112
112
 
113
113
  created() {
@@ -123,7 +123,7 @@ export default {
123
123
  },
124
124
 
125
125
  methods: {
126
- beforeRouteChange(to, from, next) {
126
+ beforeRouteChange(to, from) {
127
127
  let ok = true
128
128
  const isClosing = (
129
129
  // Only handle this route change if the form is actually mapped to the
@@ -161,7 +161,7 @@ export default {
161
161
  }
162
162
  }
163
163
  }
164
- next(ok)
164
+ return ok
165
165
  },
166
166
 
167
167
  getRoutePath(recordPath) {