@ditojs/admin 2.2.7 → 2.2.9
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 +769 -766
- package/dist/dito-admin.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/DitoTypeComponent.js +0 -1
- package/src/components/DitoButtons.vue +0 -1
- package/src/components/DitoContainer.vue +28 -13
- package/src/components/DitoDialog.vue +3 -1
- package/src/components/DitoForm.vue +4 -2
- package/src/components/DitoHeader.vue +2 -0
- package/src/components/DitoLabel.vue +0 -1
- package/src/components/DitoPane.vue +15 -3
- package/src/components/DitoPanel.vue +9 -4
- package/src/components/DitoRoot.vue +0 -9
- package/src/components/DitoSchema.vue +47 -38
- package/src/components/DitoSchemaInlined.vue +4 -7
- package/src/components/{DitoMenu.vue → DitoSidebar.vue} +2 -2
- package/src/components/DitoView.vue +3 -3
- package/src/components/index.js +1 -1
- package/src/mixins/DitoMixin.js +1 -1
- package/src/styles/_button.scss +2 -2
- package/src/types/DitoTypeCode.vue +0 -1
- package/src/types/DitoTypeComponent.vue +0 -1
- package/src/types/DitoTypeLabel.vue +1 -2
- package/src/types/DitoTypeList.vue +20 -1
- package/src/types/DitoTypeMarkup.vue +0 -2
- package/src/types/DitoTypeObject.vue +0 -2
- package/src/types/DitoTypePanel.vue +0 -1
- package/src/types/DitoTypeSection.vue +5 -2
- package/src/types/DitoTypeTextarea.vue +0 -1
- package/src/types/DitoTypeTreeList.vue +0 -2
- package/src/types/DitoTypeUpload.vue +0 -2
- package/src/utils/options.js +0 -1
- package/src/utils/schema.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template lang="pug">
|
|
2
2
|
.dito-section(:class="{ 'dito-section-labelled': !!schema.label }")
|
|
3
|
-
DitoPane.dito-
|
|
3
|
+
DitoPane.dito-section__pane(
|
|
4
4
|
:schema="getItemFormSchema(schema, item, context)"
|
|
5
5
|
:dataPath="dataPath"
|
|
6
6
|
:data="item"
|
|
@@ -20,7 +20,6 @@ export default DitoTypeComponent.register('section', {
|
|
|
20
20
|
ignoreMissingValue: schema => !schema.nested && !('default' in schema),
|
|
21
21
|
defaultNested: false,
|
|
22
22
|
generateLabel: false,
|
|
23
|
-
alignBottom: false,
|
|
24
23
|
|
|
25
24
|
computed: {
|
|
26
25
|
item() {
|
|
@@ -49,5 +48,9 @@ export default DitoTypeComponent.register('section', {
|
|
|
49
48
|
padding: $form-spacing;
|
|
50
49
|
box-sizing: border-box;
|
|
51
50
|
}
|
|
51
|
+
|
|
52
|
+
.dito-section__pane {
|
|
53
|
+
padding: 0;
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
</style>
|
package/src/utils/options.js
CHANGED
package/src/utils/schema.js
CHANGED
|
@@ -474,10 +474,6 @@ export function omitPadding(schema) {
|
|
|
474
474
|
return !!getTypeOptions(schema)?.omitPadding
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
export function alignBottom(schema) {
|
|
478
|
-
return !!getTypeOptions(schema)?.alignBottom
|
|
479
|
-
}
|
|
480
|
-
|
|
481
477
|
export function getDefaultValue(schema) {
|
|
482
478
|
// Support default values both on schema and on component level.
|
|
483
479
|
// NOTE: At the time of creation, components may not be instantiated, (e.g. if
|