@ditojs/admin 2.2.9 → 2.2.10
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 +846 -834
- package/dist/dito-admin.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/DitoSchema.vue +1 -1
- package/src/mixins/TextMixin.js +15 -0
- package/src/types/DitoTypeText.vue +2 -0
- package/src/types/DitoTypeTextarea.vue +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.10",
|
|
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.2.
|
|
36
|
+
"@ditojs/ui": "^2.2.10",
|
|
37
37
|
"@ditojs/utils": "^2.2.0",
|
|
38
38
|
"@kyvg/vue3-notification": "^2.9.0",
|
|
39
39
|
"@lk77/vue3-color": "^3.0.6",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"vite": "^4.3.1"
|
|
83
83
|
},
|
|
84
84
|
"types": "types",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "8c6fffbc52edec642c72859dc280f3bb442b3bf1",
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "vite build",
|
|
88
88
|
"watch": "yarn build --mode 'development' --watch",
|
|
@@ -707,7 +707,7 @@ export default DitoComponent.component('DitoSchema', {
|
|
|
707
707
|
grid-row-end: none;
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
-
&.dito-scroll::after {
|
|
710
|
+
&.dito-scroll:has(.dito-pane:last-child)::after {
|
|
711
711
|
// Eat up negative margin of the last child to prevent overscroll.
|
|
712
712
|
content: '';
|
|
713
713
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getSchemaAccessor } from '../utils/accessor.js'
|
|
2
|
+
|
|
3
|
+
// @vue/component
|
|
4
|
+
export default {
|
|
5
|
+
computed: {
|
|
6
|
+
trim: getSchemaAccessor('trim', {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: false
|
|
9
|
+
})
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
processValue(schema, value) {
|
|
13
|
+
return schema.trim ? value?.trim() : value
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -16,6 +16,7 @@ InputField.dito-text(
|
|
|
16
16
|
|
|
17
17
|
<script>
|
|
18
18
|
import DitoTypeComponent from '../DitoTypeComponent.js'
|
|
19
|
+
import TextMixin from '../mixins/TextMixin'
|
|
19
20
|
import { InputField } from '@ditojs/ui/src'
|
|
20
21
|
|
|
21
22
|
const maskedPassword = '****************'
|
|
@@ -33,6 +34,7 @@ export default DitoTypeComponent.register(
|
|
|
33
34
|
],
|
|
34
35
|
// @vue/component
|
|
35
36
|
{
|
|
37
|
+
mixins: [TextMixin],
|
|
36
38
|
components: { InputField },
|
|
37
39
|
nativeField: true,
|
|
38
40
|
textField: true,
|
|
@@ -11,10 +11,12 @@ textarea.dito-textarea.dito-input(
|
|
|
11
11
|
|
|
12
12
|
<script>
|
|
13
13
|
import DitoTypeComponent from '../DitoTypeComponent.js'
|
|
14
|
+
import TextMixin from '../mixins/TextMixin'
|
|
14
15
|
import { getSchemaAccessor } from '../utils/accessor.js'
|
|
15
16
|
|
|
16
17
|
// @vue/component
|
|
17
18
|
export default DitoTypeComponent.register('textarea', {
|
|
19
|
+
mixins: [TextMixin],
|
|
18
20
|
nativeField: true,
|
|
19
21
|
textField: true,
|
|
20
22
|
|