@ditojs/admin 2.65.0 → 2.67.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.67.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",
|
|
@@ -42,36 +42,36 @@
|
|
|
42
42
|
"not ie_mob > 0"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ditojs/ui": "^2.
|
|
46
|
-
"@ditojs/utils": "^2.
|
|
45
|
+
"@ditojs/ui": "^2.67.0",
|
|
46
|
+
"@ditojs/utils": "^2.67.0",
|
|
47
47
|
"@kyvg/vue3-notification": "^3.4.2",
|
|
48
48
|
"@lk77/vue3-color": "^3.0.6",
|
|
49
|
-
"@tiptap/core": "^3.
|
|
50
|
-
"@tiptap/extension-blockquote": "^3.
|
|
51
|
-
"@tiptap/extension-bold": "^3.
|
|
52
|
-
"@tiptap/extension-bullet-list": "^3.
|
|
53
|
-
"@tiptap/extension-code": "^3.
|
|
54
|
-
"@tiptap/extension-code-block": "^3.
|
|
55
|
-
"@tiptap/extension-document": "^3.
|
|
56
|
-
"@tiptap/extension-hard-break": "^3.
|
|
57
|
-
"@tiptap/extension-heading": "^3.
|
|
58
|
-
"@tiptap/extension-history": "^3.
|
|
59
|
-
"@tiptap/extension-horizontal-rule": "^3.
|
|
60
|
-
"@tiptap/extension-italic": "^3.
|
|
61
|
-
"@tiptap/extension-link": "^3.
|
|
62
|
-
"@tiptap/extension-list": "^3.
|
|
63
|
-
"@tiptap/extension-list-item": "^3.
|
|
64
|
-
"@tiptap/extension-ordered-list": "^3.
|
|
65
|
-
"@tiptap/extension-paragraph": "^3.
|
|
66
|
-
"@tiptap/extension-strike": "^3.
|
|
67
|
-
"@tiptap/extension-subscript": "^3.
|
|
68
|
-
"@tiptap/extension-superscript": "^3.
|
|
69
|
-
"@tiptap/extension-text": "^3.
|
|
70
|
-
"@tiptap/extension-text-style": "^3.
|
|
71
|
-
"@tiptap/extension-underline": "^3.
|
|
72
|
-
"@tiptap/extensions": "^3.
|
|
73
|
-
"@tiptap/pm": "^3.
|
|
74
|
-
"@tiptap/vue-3": "^3.
|
|
49
|
+
"@tiptap/core": "^3.13.0",
|
|
50
|
+
"@tiptap/extension-blockquote": "^3.13.0",
|
|
51
|
+
"@tiptap/extension-bold": "^3.13.0",
|
|
52
|
+
"@tiptap/extension-bullet-list": "^3.13.0",
|
|
53
|
+
"@tiptap/extension-code": "^3.13.0",
|
|
54
|
+
"@tiptap/extension-code-block": "^3.13.0",
|
|
55
|
+
"@tiptap/extension-document": "^3.13.0",
|
|
56
|
+
"@tiptap/extension-hard-break": "^3.13.0",
|
|
57
|
+
"@tiptap/extension-heading": "^3.13.0",
|
|
58
|
+
"@tiptap/extension-history": "^3.13.0",
|
|
59
|
+
"@tiptap/extension-horizontal-rule": "^3.13.0",
|
|
60
|
+
"@tiptap/extension-italic": "^3.13.0",
|
|
61
|
+
"@tiptap/extension-link": "^3.13.0",
|
|
62
|
+
"@tiptap/extension-list": "^3.13.0",
|
|
63
|
+
"@tiptap/extension-list-item": "^3.13.0",
|
|
64
|
+
"@tiptap/extension-ordered-list": "^3.13.0",
|
|
65
|
+
"@tiptap/extension-paragraph": "^3.13.0",
|
|
66
|
+
"@tiptap/extension-strike": "^3.13.0",
|
|
67
|
+
"@tiptap/extension-subscript": "^3.13.0",
|
|
68
|
+
"@tiptap/extension-superscript": "^3.13.0",
|
|
69
|
+
"@tiptap/extension-text": "^3.13.0",
|
|
70
|
+
"@tiptap/extension-text-style": "^3.13.0",
|
|
71
|
+
"@tiptap/extension-underline": "^3.13.0",
|
|
72
|
+
"@tiptap/extensions": "^3.13.0",
|
|
73
|
+
"@tiptap/pm": "^3.13.0",
|
|
74
|
+
"@tiptap/vue-3": "^3.13.0",
|
|
75
75
|
"@vueuse/integrations": "^14.1.0",
|
|
76
76
|
"codeflask": "^1.4.1",
|
|
77
77
|
"filesize": "^11.0.13",
|
|
@@ -81,17 +81,17 @@
|
|
|
81
81
|
"sortablejs": "^1.15.6",
|
|
82
82
|
"tinycolor2": "^1.6.0",
|
|
83
83
|
"tippy.js": "^6.3.7",
|
|
84
|
-
"tiptap-footnotes": "^3.0.
|
|
85
|
-
"type-fest": "^5.
|
|
84
|
+
"tiptap-footnotes": "^3.0.1",
|
|
85
|
+
"type-fest": "^5.3.0",
|
|
86
86
|
"vue": "^3.5.25",
|
|
87
87
|
"vue-multiselect": "^3.4.0",
|
|
88
88
|
"vue-router": "^4.6.3",
|
|
89
89
|
"vue-upload-component": "^3.1.17"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@ditojs/build": "^2.
|
|
92
|
+
"@ditojs/build": "^2.67.0",
|
|
93
93
|
"typescript": "^5.9.3",
|
|
94
|
-
"vite": "^7.2.
|
|
94
|
+
"vite": "^7.2.6"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "893f5c0dc46ab7a84a2161a3635405dceb650dad"
|
|
97
97
|
}
|
|
@@ -18,6 +18,11 @@ export default {
|
|
|
18
18
|
mixins: [DataMixin],
|
|
19
19
|
|
|
20
20
|
computed: {
|
|
21
|
+
// @overridable
|
|
22
|
+
multiple() {
|
|
23
|
+
return false
|
|
24
|
+
},
|
|
25
|
+
|
|
21
26
|
selectedValue: {
|
|
22
27
|
get() {
|
|
23
28
|
const convertValue = value => {
|
|
@@ -32,9 +37,10 @@ export default {
|
|
|
32
37
|
: value
|
|
33
38
|
}
|
|
34
39
|
|
|
35
|
-
const value =
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
const value =
|
|
41
|
+
this.multiple && isArray(this.value)
|
|
42
|
+
? this.value.map(convertValue).filter(value => value !== null)
|
|
43
|
+
: convertValue(this.value)
|
|
38
44
|
|
|
39
45
|
if (
|
|
40
46
|
// As soon as the options are available, and...
|
|
@@ -59,9 +65,10 @@ export default {
|
|
|
59
65
|
? this.getOptionForValue(value)
|
|
60
66
|
: value
|
|
61
67
|
|
|
62
|
-
this.value =
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
this.value =
|
|
69
|
+
this.multiple && isArray(value)
|
|
70
|
+
? value.map(convertValue)
|
|
71
|
+
: convertValue(value)
|
|
65
72
|
}
|
|
66
73
|
},
|
|
67
74
|
|
|
@@ -273,9 +280,10 @@ export default {
|
|
|
273
280
|
// TODO: Convert to using `relateBy`:
|
|
274
281
|
const processRelate = value => (value ? { id: value.id } : value)
|
|
275
282
|
// Selected options can be both objects & arrays, e.g. 'checkboxes':
|
|
276
|
-
value =
|
|
277
|
-
|
|
278
|
-
|
|
283
|
+
value =
|
|
284
|
+
this.multiple && isArray(value)
|
|
285
|
+
? value.map(processRelate)
|
|
286
|
+
: processRelate(value)
|
|
279
287
|
}
|
|
280
288
|
return value
|
|
281
289
|
}
|