@ditojs/admin 2.45.0 → 2.46.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.
|
|
3
|
+
"version": "2.46.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",
|
|
@@ -39,34 +39,34 @@
|
|
|
39
39
|
"not ie_mob > 0"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ditojs/ui": "^2.
|
|
43
|
-
"@ditojs/utils": "^2.
|
|
42
|
+
"@ditojs/ui": "^2.46.0",
|
|
43
|
+
"@ditojs/utils": "^2.46.0",
|
|
44
44
|
"@kyvg/vue3-notification": "^3.4.1",
|
|
45
45
|
"@lk77/vue3-color": "^3.0.6",
|
|
46
|
-
"@tiptap/core": "^2.11.
|
|
47
|
-
"@tiptap/extension-blockquote": "^2.11.
|
|
48
|
-
"@tiptap/extension-bold": "^2.11.
|
|
49
|
-
"@tiptap/extension-bullet-list": "^2.11.
|
|
50
|
-
"@tiptap/extension-code": "^2.11.
|
|
51
|
-
"@tiptap/extension-code-block": "^2.11.
|
|
52
|
-
"@tiptap/extension-document": "^2.11.
|
|
53
|
-
"@tiptap/extension-hard-break": "^2.11.
|
|
54
|
-
"@tiptap/extension-heading": "^2.11.
|
|
55
|
-
"@tiptap/extension-history": "^2.11.
|
|
56
|
-
"@tiptap/extension-horizontal-rule": "^2.11.
|
|
57
|
-
"@tiptap/extension-italic": "^2.11.
|
|
58
|
-
"@tiptap/extension-link": "^2.11.
|
|
59
|
-
"@tiptap/extension-list-item": "^2.11.
|
|
60
|
-
"@tiptap/extension-ordered-list": "^2.11.
|
|
61
|
-
"@tiptap/extension-paragraph": "^2.11.
|
|
62
|
-
"@tiptap/extension-strike": "^2.11.
|
|
63
|
-
"@tiptap/extension-subscript": "^2.11.
|
|
64
|
-
"@tiptap/extension-superscript": "^2.11.
|
|
65
|
-
"@tiptap/extension-text": "^2.11.
|
|
66
|
-
"@tiptap/extension-text-style": "^2.11.
|
|
67
|
-
"@tiptap/extension-underline": "^2.11.
|
|
68
|
-
"@tiptap/pm": "^2.11.
|
|
69
|
-
"@tiptap/vue-3": "^2.11.
|
|
46
|
+
"@tiptap/core": "^2.11.7",
|
|
47
|
+
"@tiptap/extension-blockquote": "^2.11.7",
|
|
48
|
+
"@tiptap/extension-bold": "^2.11.7",
|
|
49
|
+
"@tiptap/extension-bullet-list": "^2.11.7",
|
|
50
|
+
"@tiptap/extension-code": "^2.11.7",
|
|
51
|
+
"@tiptap/extension-code-block": "^2.11.7",
|
|
52
|
+
"@tiptap/extension-document": "^2.11.7",
|
|
53
|
+
"@tiptap/extension-hard-break": "^2.11.7",
|
|
54
|
+
"@tiptap/extension-heading": "^2.11.7",
|
|
55
|
+
"@tiptap/extension-history": "^2.11.7",
|
|
56
|
+
"@tiptap/extension-horizontal-rule": "^2.11.7",
|
|
57
|
+
"@tiptap/extension-italic": "^2.11.7",
|
|
58
|
+
"@tiptap/extension-link": "^2.11.7",
|
|
59
|
+
"@tiptap/extension-list-item": "^2.11.7",
|
|
60
|
+
"@tiptap/extension-ordered-list": "^2.11.7",
|
|
61
|
+
"@tiptap/extension-paragraph": "^2.11.7",
|
|
62
|
+
"@tiptap/extension-strike": "^2.11.7",
|
|
63
|
+
"@tiptap/extension-subscript": "^2.11.7",
|
|
64
|
+
"@tiptap/extension-superscript": "^2.11.7",
|
|
65
|
+
"@tiptap/extension-text": "^2.11.7",
|
|
66
|
+
"@tiptap/extension-text-style": "^2.11.7",
|
|
67
|
+
"@tiptap/extension-underline": "^2.11.7",
|
|
68
|
+
"@tiptap/pm": "^2.11.7",
|
|
69
|
+
"@tiptap/vue-3": "^2.11.7",
|
|
70
70
|
"@vueuse/integrations": "^13.0.0",
|
|
71
71
|
"codeflask": "^1.4.1",
|
|
72
72
|
"filesize": "^10.1.6",
|
|
@@ -84,10 +84,10 @@
|
|
|
84
84
|
"vue-upload-component": "^3.1.17"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@ditojs/build": "^2.
|
|
87
|
+
"@ditojs/build": "^2.46.0",
|
|
88
88
|
"typescript": "^5.8.2",
|
|
89
|
-
"vite": "^6.2.
|
|
89
|
+
"vite": "^6.2.4"
|
|
90
90
|
},
|
|
91
91
|
"types": "types",
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "7b8291912cfb1f1de8fe55dd7658ac544c23545a"
|
|
93
93
|
}
|
|
@@ -109,6 +109,7 @@ import { getNamedSchemas, hasFormSchema } from '../utils/schema.js'
|
|
|
109
109
|
// @vue/component
|
|
110
110
|
export default DitoComponent.component('DitoTreeItem', {
|
|
111
111
|
mixins: [ItemMixin, SortableMixin],
|
|
112
|
+
emits: ['update:data'],
|
|
112
113
|
inject: ['container'],
|
|
113
114
|
|
|
114
115
|
props: {
|
|
@@ -160,24 +161,17 @@ export default DitoComponent.component('DitoTreeItem', {
|
|
|
160
161
|
|
|
161
162
|
childrenList: {
|
|
162
163
|
get() {
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
// In order to fix reactivity for `updateOrder()` at root level of tree
|
|
166
|
-
// views, we need to access all order keys once, in order to track them
|
|
167
|
-
// for reactivity.
|
|
168
|
-
// TODO: Find a proper fix.
|
|
169
|
-
value?.map(child => child[orderKey])
|
|
170
|
-
return value
|
|
164
|
+
const name = this.childrenSchema?.name
|
|
165
|
+
return name && this.data[name]
|
|
171
166
|
},
|
|
172
167
|
|
|
173
168
|
set(value) {
|
|
174
169
|
const name = this.childrenSchema?.name
|
|
175
170
|
if (name) {
|
|
171
|
+
this.updateOrder(this.childrenSchema, value)
|
|
176
172
|
// eslint-disable-next-line vue/no-mutating-props
|
|
177
|
-
this.data[name] =
|
|
178
|
-
|
|
179
|
-
value
|
|
180
|
-
)
|
|
173
|
+
this.data[name] = value
|
|
174
|
+
this.$emit('update:data', value)
|
|
181
175
|
}
|
|
182
176
|
}
|
|
183
177
|
},
|