@ditojs/admin 2.10.3 → 2.10.4
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.10.
|
|
3
|
+
"version": "2.10.4",
|
|
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",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"not ie_mob > 0"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ditojs/ui": "^2.10.
|
|
36
|
+
"@ditojs/ui": "^2.10.4",
|
|
37
37
|
"@ditojs/utils": "^2.10.0",
|
|
38
38
|
"@kyvg/vue3-notification": "^2.9.1",
|
|
39
39
|
"@lk77/vue3-color": "^3.0.6",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@tiptap/extension-underline": "^2.0.3",
|
|
59
59
|
"@tiptap/pm": "^2.0.3",
|
|
60
60
|
"@tiptap/vue-3": "^2.0.3",
|
|
61
|
-
"@vueuse/integrations": "^10.
|
|
61
|
+
"@vueuse/integrations": "^10.2.0",
|
|
62
62
|
"codeflask": "^1.4.1",
|
|
63
63
|
"filesize": "^10.0.7",
|
|
64
64
|
"filesize-parser": "^1.5.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"sortablejs": "^1.15.0",
|
|
68
68
|
"tinycolor2": "^1.6.0",
|
|
69
69
|
"tippy.js": "^6.3.7",
|
|
70
|
-
"type-fest": "^3.
|
|
70
|
+
"type-fest": "^3.12.0",
|
|
71
71
|
"vue": "^3.3.4",
|
|
72
72
|
"vue-multiselect": "^3.0.0-beta.2",
|
|
73
73
|
"vue-router": "^4.2.2",
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
79
79
|
"@vue/compiler-sfc": "^3.3.4",
|
|
80
80
|
"pug": "^3.0.2",
|
|
81
|
-
"sass": "1.63.
|
|
81
|
+
"sass": "1.63.6",
|
|
82
82
|
"typescript": "^5.1.3",
|
|
83
83
|
"vite": "^4.3.9"
|
|
84
84
|
},
|
|
85
85
|
"types": "types",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "556a24e2a9c72638f28b0bba24a880aea0a5944d",
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "vite build",
|
|
89
89
|
"watch": "yarn build --mode 'development' --watch",
|
|
@@ -151,9 +151,14 @@ export default DitoComponent.component('DitoClipboard', {
|
|
|
151
151
|
|
|
152
152
|
async onPaste() {
|
|
153
153
|
let data = await this.getClipboardData(true) // Report
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
try {
|
|
155
|
+
data = data && this.pasteData(data)
|
|
156
|
+
if (data) {
|
|
157
|
+
this.parentComponent.clipboardData = data
|
|
158
|
+
}
|
|
159
|
+
} catch (error) {
|
|
160
|
+
console.error(error)
|
|
161
|
+
alert(error.message)
|
|
157
162
|
}
|
|
158
163
|
}
|
|
159
164
|
}
|
|
@@ -65,7 +65,7 @@ export default DitoComponent.component('DitoCreateButton', {
|
|
|
65
65
|
|
|
66
66
|
creatableForms() {
|
|
67
67
|
const entries = Object.entries(this.forms).filter(
|
|
68
|
-
(
|
|
68
|
+
([, form]) => this.isFormCreatable(form)
|
|
69
69
|
)
|
|
70
70
|
return entries.length > 0
|
|
71
71
|
? Object.fromEntries(entries)
|