@ditojs/admin 2.44.0 → 2.45.1
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.45.1",
|
|
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,8 +39,8 @@
|
|
|
39
39
|
"not ie_mob > 0"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ditojs/ui": "^2.
|
|
43
|
-
"@ditojs/utils": "^2.
|
|
42
|
+
"@ditojs/ui": "^2.45.0",
|
|
43
|
+
"@ditojs/utils": "^2.45.0",
|
|
44
44
|
"@kyvg/vue3-notification": "^3.4.1",
|
|
45
45
|
"@lk77/vue3-color": "^3.0.6",
|
|
46
46
|
"@tiptap/core": "^2.11.5",
|
|
@@ -72,22 +72,22 @@
|
|
|
72
72
|
"filesize": "^10.1.6",
|
|
73
73
|
"filesize-parser": "^1.5.1",
|
|
74
74
|
"focus-trap": "^7.6.4",
|
|
75
|
-
"nanoid": "^5.1.
|
|
75
|
+
"nanoid": "^5.1.5",
|
|
76
76
|
"sortablejs": "^1.15.6",
|
|
77
77
|
"tinycolor2": "^1.6.0",
|
|
78
78
|
"tippy.js": "^6.3.7",
|
|
79
79
|
"tiptap-footnotes": "^2.0.3",
|
|
80
|
-
"type-fest": "^4.
|
|
80
|
+
"type-fest": "^4.38.0",
|
|
81
81
|
"vue": "^3.5.13",
|
|
82
82
|
"vue-multiselect": "^3.2.0",
|
|
83
83
|
"vue-router": "^4.5.0",
|
|
84
84
|
"vue-upload-component": "^3.1.17"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@ditojs/build": "^2.
|
|
87
|
+
"@ditojs/build": "^2.45.0",
|
|
88
88
|
"typescript": "^5.8.2",
|
|
89
|
-
"vite": "^6.2.
|
|
89
|
+
"vite": "^6.2.3"
|
|
90
90
|
},
|
|
91
91
|
"types": "types",
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "6de5398fb812c9cbc030761e3ef82cac9a030117"
|
|
93
93
|
}
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
DitoDraggable(
|
|
77
77
|
v-if="childrenSchema"
|
|
78
78
|
v-show="opened"
|
|
79
|
-
:modelValue="updateOrder(childrenSchema, childrenList)"
|
|
80
79
|
:options="getDraggableOptions(true)"
|
|
81
80
|
:draggable="childrenDraggable"
|
|
81
|
+
:modelValue="updateOrder(childrenSchema, childrenList)"
|
|
82
82
|
@update:modelValue="value => (childrenList = value)"
|
|
83
83
|
)
|
|
84
84
|
DitoTreeItem(
|
|
@@ -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: {
|
|
@@ -167,8 +168,10 @@ export default DitoComponent.component('DitoTreeItem', {
|
|
|
167
168
|
set(value) {
|
|
168
169
|
const name = this.childrenSchema?.name
|
|
169
170
|
if (name) {
|
|
171
|
+
this.updateOrder(this.childrenSchema, value)
|
|
170
172
|
// eslint-disable-next-line vue/no-mutating-props
|
|
171
173
|
this.data[name] = value
|
|
174
|
+
this.$emit('update:data', value)
|
|
172
175
|
}
|
|
173
176
|
}
|
|
174
177
|
},
|
|
@@ -202,27 +205,19 @@ export default DitoComponent.component('DitoTreeItem', {
|
|
|
202
205
|
const { editPath } = this.container
|
|
203
206
|
const childrenOpen = !this.path && childrenSchema.open
|
|
204
207
|
// Build a children list with child meta information for the template.
|
|
205
|
-
return
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
return {
|
|
219
|
-
data,
|
|
220
|
-
path,
|
|
221
|
-
open,
|
|
222
|
-
active
|
|
223
|
-
}
|
|
224
|
-
})
|
|
225
|
-
)
|
|
208
|
+
return childrenList.map((data, index) => {
|
|
209
|
+
const path = (
|
|
210
|
+
childrenSchema.path &&
|
|
211
|
+
`${this.path}/${childrenSchema.path}/${index}`
|
|
212
|
+
)
|
|
213
|
+
const open = (
|
|
214
|
+
childrenOpen ||
|
|
215
|
+
// Only count as "in edit path" when it's not the full edit path.
|
|
216
|
+
editPath.startsWith(path) && path.length < editPath.length
|
|
217
|
+
)
|
|
218
|
+
const active = editPath === path
|
|
219
|
+
return { data, path, open, active }
|
|
220
|
+
})
|
|
226
221
|
}
|
|
227
222
|
return []
|
|
228
223
|
},
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
)
|
|
39
39
|
DitoDraggable(
|
|
40
40
|
tag="tbody"
|
|
41
|
-
:modelValue="updateOrder(sourceSchema, listData, paginationRange)"
|
|
42
41
|
:options="getDraggableOptions()"
|
|
43
42
|
:draggable="draggable"
|
|
43
|
+
:modelValue="updateOrder(sourceSchema, listData, paginationRange)"
|
|
44
44
|
@update:modelValue="value => (listData = value)"
|
|
45
45
|
)
|
|
46
46
|
tr(
|