@ditojs/admin 2.9.2 → 2.9.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/dist/dito-admin.es.js +6 -7
- package/dist/dito-admin.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +11 -11
- package/src/components/DitoCreateButton.vue +7 -0
- package/src/components/DitoDialog.vue +1 -1
- package/src/components/DitoNotifications.vue +14 -4
- package/src/components/DitoPanels.vue +1 -1
- package/src/styles/_settings.scss +1 -0
- package/src/utils/options.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.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,9 +33,9 @@
|
|
|
33
33
|
"not ie_mob > 0"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ditojs/ui": "^2.9.
|
|
36
|
+
"@ditojs/ui": "^2.9.3",
|
|
37
37
|
"@ditojs/utils": "^2.9.0",
|
|
38
|
-
"@kyvg/vue3-notification": "^2.9.
|
|
38
|
+
"@kyvg/vue3-notification": "^2.9.1",
|
|
39
39
|
"@lk77/vue3-color": "^3.0.6",
|
|
40
40
|
"@tiptap/core": "^2.0.3",
|
|
41
41
|
"@tiptap/extension-blockquote": "^2.0.3",
|
|
@@ -62,28 +62,28 @@
|
|
|
62
62
|
"codeflask": "^1.4.1",
|
|
63
63
|
"filesize": "^10.0.7",
|
|
64
64
|
"filesize-parser": "^1.5.0",
|
|
65
|
-
"focus-trap": "^7.4.
|
|
65
|
+
"focus-trap": "^7.4.1",
|
|
66
66
|
"nanoid": "^4.0.2",
|
|
67
67
|
"sortablejs": "^1.15.0",
|
|
68
68
|
"tinycolor2": "^1.6.0",
|
|
69
69
|
"tippy.js": "^6.3.7",
|
|
70
70
|
"type-fest": "^3.10.0",
|
|
71
|
-
"vue": "^3.2
|
|
72
|
-
"vue-multiselect": "^3.0.0-beta.
|
|
73
|
-
"vue-router": "^4.
|
|
71
|
+
"vue": "^3.3.2",
|
|
72
|
+
"vue-multiselect": "^3.0.0-beta.2",
|
|
73
|
+
"vue-router": "^4.2.0",
|
|
74
74
|
"vue-upload-component": "^3.1.8"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@ditojs/build": "^2.9.0",
|
|
78
|
-
"@vitejs/plugin-vue": "^4.2.
|
|
79
|
-
"@vue/compiler-sfc": "^3.2
|
|
78
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
79
|
+
"@vue/compiler-sfc": "^3.3.2",
|
|
80
80
|
"pug": "^3.0.2",
|
|
81
81
|
"sass": "1.62.1",
|
|
82
82
|
"typescript": "^5.0.4",
|
|
83
|
-
"vite": "^4.3.
|
|
83
|
+
"vite": "^4.3.7"
|
|
84
84
|
},
|
|
85
85
|
"types": "types",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "bb939da5847a9bc98d445de5dad49e7266a2d95b",
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "vite build",
|
|
89
89
|
"watch": "yarn build --mode 'development' --watch",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
role="dialog"
|
|
5
5
|
aria-expanded="true"
|
|
6
6
|
aria-modal="true"
|
|
7
|
-
:style="{ '--width': `${settings.width}px` }"
|
|
7
|
+
:style="{ '--width': settings.width ? `${settings.width}px` : null }"
|
|
8
8
|
@mouseup="onMouseUp"
|
|
9
9
|
)
|
|
10
10
|
UseFocusTrap.dito-dialog__focus-trap(:options="focusTrapOptions")
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
.dito-notifications__inner
|
|
6
6
|
VueNotifications(
|
|
7
7
|
ref="notifications"
|
|
8
|
-
position="none"
|
|
9
8
|
classes="dito-notification"
|
|
9
|
+
position=""
|
|
10
|
+
width=""
|
|
10
11
|
)
|
|
11
12
|
</template>
|
|
12
13
|
|
|
@@ -75,7 +76,12 @@ export default DitoComponent.component('DitoNotifications', {
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.dito-notifications {
|
|
79
|
+
$notification-width: 300px;
|
|
80
|
+
|
|
78
81
|
flex: 1;
|
|
82
|
+
z-index: $z-index-notifications;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
margin-left: $form-spacing;
|
|
79
85
|
// For the `@container` rule to work:
|
|
80
86
|
container-type: inline-size;
|
|
81
87
|
|
|
@@ -94,10 +100,11 @@ export default DitoComponent.component('DitoNotifications', {
|
|
|
94
100
|
position: absolute;
|
|
95
101
|
left: 0;
|
|
96
102
|
top: 0;
|
|
103
|
+
width: $notification-width;
|
|
97
104
|
|
|
98
|
-
@container (width <
|
|
105
|
+
@container (width < #{$notification-width + $content-padding}) {
|
|
99
106
|
left: unset;
|
|
100
|
-
right:
|
|
107
|
+
right: $content-padding;
|
|
101
108
|
}
|
|
102
109
|
}
|
|
103
110
|
|
|
@@ -107,7 +114,7 @@ export default DitoComponent.component('DitoNotifications', {
|
|
|
107
114
|
|
|
108
115
|
.dito-notification {
|
|
109
116
|
padding: 8px;
|
|
110
|
-
margin: $content-padding;
|
|
117
|
+
margin: $content-padding 0;
|
|
111
118
|
font-size: inherit;
|
|
112
119
|
color: $color-white;
|
|
113
120
|
border-radius: $border-radius;
|
|
@@ -119,6 +126,9 @@ export default DitoComponent.component('DitoNotifications', {
|
|
|
119
126
|
}
|
|
120
127
|
|
|
121
128
|
.notification-content {
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
word-break: break-all;
|
|
131
|
+
|
|
122
132
|
p {
|
|
123
133
|
margin: 0;
|
|
124
134
|
|