@ditojs/admin 2.14.0 → 2.14.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/dist/dito-admin.es.js +52 -49
- package/dist/dito-admin.umd.js +2 -2
- package/package.json +34 -34
- package/src/utils/route.js +8 -3
- package/types/index.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.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",
|
|
@@ -33,57 +33,57 @@
|
|
|
33
33
|
"not ie_mob > 0"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ditojs/ui": "^2.14.
|
|
37
|
-
"@ditojs/utils": "^2.
|
|
36
|
+
"@ditojs/ui": "^2.14.1",
|
|
37
|
+
"@ditojs/utils": "^2.14.1",
|
|
38
38
|
"@kyvg/vue3-notification": "^3.0.2",
|
|
39
39
|
"@lk77/vue3-color": "^3.0.6",
|
|
40
|
-
"@tiptap/core": "^2.1.
|
|
41
|
-
"@tiptap/extension-blockquote": "^2.1.
|
|
42
|
-
"@tiptap/extension-bold": "^2.1.
|
|
43
|
-
"@tiptap/extension-bullet-list": "^2.1.
|
|
44
|
-
"@tiptap/extension-code": "^2.1.
|
|
45
|
-
"@tiptap/extension-code-block": "^2.1.
|
|
46
|
-
"@tiptap/extension-document": "^2.1.
|
|
47
|
-
"@tiptap/extension-hard-break": "^2.1.
|
|
48
|
-
"@tiptap/extension-heading": "^2.1.
|
|
49
|
-
"@tiptap/extension-history": "^2.1.
|
|
50
|
-
"@tiptap/extension-horizontal-rule": "^2.1.
|
|
51
|
-
"@tiptap/extension-italic": "^2.1.
|
|
52
|
-
"@tiptap/extension-link": "^2.1.
|
|
53
|
-
"@tiptap/extension-list-item": "^2.1.
|
|
54
|
-
"@tiptap/extension-ordered-list": "^2.1.
|
|
55
|
-
"@tiptap/extension-paragraph": "^2.1.
|
|
56
|
-
"@tiptap/extension-strike": "^2.1.
|
|
57
|
-
"@tiptap/extension-text": "^2.1.
|
|
58
|
-
"@tiptap/extension-underline": "^2.1.
|
|
59
|
-
"@tiptap/pm": "^2.1.
|
|
60
|
-
"@tiptap/vue-3": "^2.1.
|
|
61
|
-
"@vueuse/integrations": "^10.
|
|
40
|
+
"@tiptap/core": "^2.1.12",
|
|
41
|
+
"@tiptap/extension-blockquote": "^2.1.12",
|
|
42
|
+
"@tiptap/extension-bold": "^2.1.12",
|
|
43
|
+
"@tiptap/extension-bullet-list": "^2.1.12",
|
|
44
|
+
"@tiptap/extension-code": "^2.1.12",
|
|
45
|
+
"@tiptap/extension-code-block": "^2.1.12",
|
|
46
|
+
"@tiptap/extension-document": "^2.1.12",
|
|
47
|
+
"@tiptap/extension-hard-break": "^2.1.12",
|
|
48
|
+
"@tiptap/extension-heading": "^2.1.12",
|
|
49
|
+
"@tiptap/extension-history": "^2.1.12",
|
|
50
|
+
"@tiptap/extension-horizontal-rule": "^2.1.12",
|
|
51
|
+
"@tiptap/extension-italic": "^2.1.12",
|
|
52
|
+
"@tiptap/extension-link": "^2.1.12",
|
|
53
|
+
"@tiptap/extension-list-item": "^2.1.12",
|
|
54
|
+
"@tiptap/extension-ordered-list": "^2.1.12",
|
|
55
|
+
"@tiptap/extension-paragraph": "^2.1.12",
|
|
56
|
+
"@tiptap/extension-strike": "^2.1.12",
|
|
57
|
+
"@tiptap/extension-text": "^2.1.12",
|
|
58
|
+
"@tiptap/extension-underline": "^2.1.12",
|
|
59
|
+
"@tiptap/pm": "^2.1.12",
|
|
60
|
+
"@tiptap/vue-3": "^2.1.12",
|
|
61
|
+
"@vueuse/integrations": "^10.5.0",
|
|
62
62
|
"codeflask": "^1.4.1",
|
|
63
63
|
"filesize": "^10.1.0",
|
|
64
64
|
"filesize-parser": "^1.5.0",
|
|
65
|
-
"focus-trap": "^7.5.
|
|
66
|
-
"nanoid": "^5.0.
|
|
65
|
+
"focus-trap": "^7.5.4",
|
|
66
|
+
"nanoid": "^5.0.2",
|
|
67
67
|
"sortablejs": "^1.15.0",
|
|
68
68
|
"tinycolor2": "^1.6.0",
|
|
69
69
|
"tippy.js": "^6.3.7",
|
|
70
|
-
"type-fest": "^4.
|
|
71
|
-
"vue": "^3.3.
|
|
70
|
+
"type-fest": "^4.5.0",
|
|
71
|
+
"vue": "^3.3.6",
|
|
72
72
|
"vue-multiselect": "^3.0.0-beta.2",
|
|
73
73
|
"vue-router": "^4.2.5",
|
|
74
74
|
"vue-upload-component": "^3.1.8"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@ditojs/build": "^2.14.
|
|
77
|
+
"@ditojs/build": "^2.14.1",
|
|
78
78
|
"@vitejs/plugin-vue": "^4.4.0",
|
|
79
|
-
"@vue/compiler-sfc": "^3.3.
|
|
79
|
+
"@vue/compiler-sfc": "^3.3.6",
|
|
80
80
|
"pug": "^3.0.2",
|
|
81
|
-
"sass": "1.69.
|
|
81
|
+
"sass": "1.69.4",
|
|
82
82
|
"typescript": "^5.2.2",
|
|
83
|
-
"vite": "^4.
|
|
83
|
+
"vite": "^4.5.0"
|
|
84
84
|
},
|
|
85
85
|
"types": "types",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "f0bbe90cf7323bdc9a8020b0b2de0f77cd4403c4",
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "vite build",
|
|
89
89
|
"watch": "yarn build --mode 'development' --watch",
|
package/src/utils/route.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArray
|
|
1
|
+
import { isArray } from '@ditojs/utils'
|
|
2
2
|
|
|
3
3
|
export function formatQuery(query) {
|
|
4
4
|
const entries = query
|
|
@@ -12,8 +12,13 @@ export function formatQuery(query) {
|
|
|
12
12
|
// `formatQuery({ foo: [1, 2], bar: 3 })` => 'foo=1&foo=2&bar=3'.
|
|
13
13
|
entries.reduce(
|
|
14
14
|
(entries, [key, value]) => {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
if (isArray(value)) {
|
|
16
|
+
for (const val of value) {
|
|
17
|
+
// Prevent null or undefined values from becoming strings.
|
|
18
|
+
entries.push([key, val ?? ''])
|
|
19
|
+
}
|
|
20
|
+
} else if (value != null) {
|
|
21
|
+
entries.push([key, value])
|
|
17
22
|
}
|
|
18
23
|
return entries
|
|
19
24
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from '@ditojs/utils'
|
|
10
10
|
import { RequireAtLeastOne, SetOptional } from 'type-fest'
|
|
11
11
|
import { Component as VueComponent } from 'vue'
|
|
12
|
+
import { Router as VueRouter } from 'vue-router'
|
|
12
13
|
|
|
13
14
|
declare global {
|
|
14
15
|
const dito: DitoGlobal
|
|
@@ -1024,7 +1025,7 @@ export type DitoContext<$Item = any> = {
|
|
|
1024
1025
|
resource?: Resource
|
|
1025
1026
|
}): Promise<T>
|
|
1026
1027
|
format: typeof utilsFormat
|
|
1027
|
-
navigate
|
|
1028
|
+
navigate: VueRouter['push']
|
|
1028
1029
|
download: {
|
|
1029
1030
|
(url: string): void
|
|
1030
1031
|
(options: { url: string; filename: string }): void
|