@ditojs/admin 2.7.2 → 2.7.3
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 +481 -480
- package/dist/dito-admin.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/src/components/DitoDialog.vue +1 -1
- package/src/components/DitoErrors.vue +1 -1
- package/src/components/DitoForm.vue +1 -1
- package/src/components/DitoHeader.vue +1 -1
- package/src/components/DitoMenu.vue +1 -1
- package/src/components/DitoRoot.vue +8 -8
- package/src/components/DitoSchema.vue +1 -1
- package/src/mixins/TextMixin.js +12 -2
- package/src/styles/_button.scss +15 -12
- package/src/styles/_pulldown.scss +1 -1
- package/src/styles/_settings.scss +6 -3
- package/src/styles/_tippy.scss +5 -0
- package/src/types/DitoTypeMultiselect.vue +1 -0
- package/src/types/DitoTypeSelect.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
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.7.
|
|
36
|
+
"@ditojs/ui": "^2.7.3",
|
|
37
37
|
"@ditojs/utils": "^2.7.1",
|
|
38
38
|
"@kyvg/vue3-notification": "^2.9.0",
|
|
39
39
|
"@lk77/vue3-color": "^3.0.6",
|
|
@@ -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.10.0",
|
|
71
71
|
"vue": "^3.2.47",
|
|
72
72
|
"vue-multiselect": "^3.0.0-beta.1",
|
|
73
73
|
"vue-router": "^4.1.6",
|
|
@@ -80,10 +80,10 @@
|
|
|
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.5"
|
|
84
84
|
},
|
|
85
85
|
"types": "types",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "13bec1eda290997bdc10d110652180cdc9d3653b",
|
|
87
87
|
"scripts": {
|
|
88
88
|
"build": "vite build",
|
|
89
89
|
"watch": "yarn build --mode 'development' --watch",
|
|
@@ -109,7 +109,7 @@ export default DitoComponent.component('DitoMenu', {
|
|
|
109
109
|
display: block;
|
|
110
110
|
position: absolute;
|
|
111
111
|
width: var(--width);
|
|
112
|
-
z-index: $
|
|
112
|
+
z-index: $z-index-header;
|
|
113
113
|
transform: translateX(calc(var(--width) + 2 * $menu-spacing))
|
|
114
114
|
translateY(-$item-height);
|
|
115
115
|
|
|
@@ -104,14 +104,14 @@ export default DitoComponent.component('DitoRoot', {
|
|
|
104
104
|
|
|
105
105
|
tippyDelegate(this.$el, {
|
|
106
106
|
target: '.dito-info',
|
|
107
|
+
theme: 'info',
|
|
108
|
+
appendTo: 'parent',
|
|
109
|
+
animation: 'shift-away-subtle',
|
|
110
|
+
interactive: true,
|
|
111
|
+
delay: 250,
|
|
112
|
+
zIndex: '',
|
|
107
113
|
onCreate(instance) {
|
|
108
114
|
instance.setContent(instance.reference.dataset.info)
|
|
109
|
-
instance.setProps({
|
|
110
|
-
theme: 'info',
|
|
111
|
-
interactive: true,
|
|
112
|
-
animation: 'shift-away-subtle',
|
|
113
|
-
delay: 250
|
|
114
|
-
})
|
|
115
115
|
}
|
|
116
116
|
})
|
|
117
117
|
|
|
@@ -506,7 +506,7 @@ function addRoutes(router, routes) {
|
|
|
506
506
|
position: fixed;
|
|
507
507
|
top: 0;
|
|
508
508
|
left: 0;
|
|
509
|
-
z-index: $drag-overlay
|
|
509
|
+
z-index: $z-index-drag-overlay;
|
|
510
510
|
width: 100%;
|
|
511
511
|
height: 100%;
|
|
512
512
|
background: rgba(0, 0, 0, 0.25);
|
|
@@ -519,7 +519,7 @@ function addRoutes(router, routes) {
|
|
|
519
519
|
|
|
520
520
|
background: $content-color-background;
|
|
521
521
|
border-radius: $border-radius;
|
|
522
|
-
z-index: $drag-overlay
|
|
522
|
+
z-index: $z-index-drag-overlay + 1;
|
|
523
523
|
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, var(--shadow-alpha)));
|
|
524
524
|
}
|
|
525
525
|
|
|
@@ -811,7 +811,7 @@ export default DitoComponent.component('DitoSchema', {
|
|
|
811
811
|
top: 0;
|
|
812
812
|
left: 0;
|
|
813
813
|
right: 0;
|
|
814
|
-
z-index: $
|
|
814
|
+
z-index: $z-index-header;
|
|
815
815
|
// Turn off pointer events so that DitoTrail keeps receiving events...
|
|
816
816
|
pointer-events: none;
|
|
817
817
|
// ...but allow interaction with the tabs and buttons (e.g. clipboard)
|
package/src/mixins/TextMixin.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { isString } from '@ditojs/utils'
|
|
2
|
+
import { getDefaultValue } from '../utils/schema.js'
|
|
1
3
|
import { getSchemaAccessor } from '../utils/accessor.js'
|
|
2
4
|
|
|
3
5
|
// @vue/component
|
|
@@ -9,7 +11,15 @@ export default {
|
|
|
9
11
|
})
|
|
10
12
|
},
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
processValue(schema, value) {
|
|
15
|
+
if (schema.trim && value != null && isString(value)) {
|
|
16
|
+
// Text fields don't necessarily have a `String` value when `format()`
|
|
17
|
+
// without `parse()` is used.
|
|
18
|
+
value = value.trim()
|
|
19
|
+
}
|
|
20
|
+
if (value === '') {
|
|
21
|
+
value = getDefaultValue(schema)
|
|
22
|
+
}
|
|
23
|
+
return value
|
|
14
24
|
}
|
|
15
25
|
}
|
package/src/styles/_button.scss
CHANGED
|
@@ -131,17 +131,21 @@
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
&.dito-buttons-main
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
134
|
+
&.dito-buttons-main {
|
|
135
|
+
border-top: $border-style;
|
|
136
|
+
|
|
137
|
+
.dito-scroll > &:not(:empty) {
|
|
138
|
+
position: sticky;
|
|
139
|
+
bottom: 0;
|
|
140
|
+
width: 100%;
|
|
141
|
+
align-self: flex-end;
|
|
142
|
+
z-index: $z-index-main-buttons;
|
|
143
|
+
margin-bottom: -$content-padding;
|
|
144
|
+
margin-top: 2 * $content-padding;
|
|
145
|
+
box-shadow: 0 (-$content-padding) $content-padding (-$content-padding)
|
|
146
|
+
$color-shadow;
|
|
147
|
+
background: $content-color-background;
|
|
148
|
+
}
|
|
145
149
|
}
|
|
146
150
|
|
|
147
151
|
&.dito-buttons-round,
|
|
@@ -192,7 +196,6 @@
|
|
|
192
196
|
|
|
193
197
|
&.dito-button-clear {
|
|
194
198
|
width: 2em;
|
|
195
|
-
z-index: 1;
|
|
196
199
|
background: $color-white;
|
|
197
200
|
display: none;
|
|
198
201
|
|
|
@@ -50,7 +50,6 @@ $form-spacing-half: calc($form-spacing / 2);
|
|
|
50
50
|
// Header
|
|
51
51
|
$header-font-size: 14px;
|
|
52
52
|
$header-line-height: 1;
|
|
53
|
-
$header-z-index: 1000;
|
|
54
53
|
$header-padding-ver: $header-font-size;
|
|
55
54
|
$header-padding-hor: $content-padding;
|
|
56
55
|
$header-padding: $header-padding-ver $header-padding-hor;
|
|
@@ -70,8 +69,12 @@ $menu-padding-ver: $header-padding-ver - $menu-spacing;
|
|
|
70
69
|
$menu-padding-hor: $header-padding-hor - $menu-spacing;
|
|
71
70
|
$menu-padding: $menu-padding-ver $menu-padding-hor;
|
|
72
71
|
|
|
73
|
-
//
|
|
74
|
-
$
|
|
72
|
+
// Z-Indices
|
|
73
|
+
$z-index-dialog: 4000;
|
|
74
|
+
$z-index-drag-overlay: 3000;
|
|
75
|
+
$z-index-header: 2000;
|
|
76
|
+
$z-index-tippy: 750;
|
|
77
|
+
$z-index-main-buttons: 500;
|
|
75
78
|
|
|
76
79
|
// Patterns
|
|
77
80
|
$pattern-transparency-size: ($font-size - $border-width) * $input-height-factor;
|
package/src/styles/_tippy.scss
CHANGED