@ditojs/admin 3.2.5 → 3.2.7
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.css +1 -1
- package/dist/dito-admin.es.js +218 -154
- package/dist/dito-admin.umd.js +5 -5
- package/package.json +5 -5
- package/src/DitoAdmin.js +4 -3
- package/src/components/DitoButtons.vue +4 -5
- package/src/components/DitoCreateButton.vue +1 -0
- package/src/components/DitoDialog.vue +16 -15
- package/src/components/DitoForm.vue +0 -2
- package/src/components/DitoLabel.vue +1 -0
- package/src/components/DitoPane.vue +1 -0
- package/src/components/DitoPanel.vue +2 -0
- package/src/components/DitoSchema.vue +1 -0
- package/src/components/DitoTreeItem.vue +52 -2
- package/src/mixins/OptionsMixin.js +15 -1
- package/src/mixins/ResourceMixin.js +22 -3
- package/src/styles/_button.scss +45 -46
- package/src/types/DitoTypeCode.vue +6 -3
- package/src/types/DitoTypeMarkup.vue +1 -0
- package/src/types/DitoTypeMultiselect.vue +61 -16
- package/src/types/DitoTypeTreeList.vue +2 -0
- package/src/utils/DataSchemaResolver.js +1 -1
- package/src/utils/options.js +2 -2
- package/src/utils/schema/data.js +5 -0
- package/types/index.d.ts +3 -2
package/src/utils/schema/data.js
CHANGED
|
@@ -527,6 +527,11 @@ export function processSchemaData(schema, data, {
|
|
|
527
527
|
if (wrapPrimitives && !isObject(item)) {
|
|
528
528
|
item = { [wrapPrimitives]: item }
|
|
529
529
|
}
|
|
530
|
+
if (!isObject(item)) {
|
|
531
|
+
// Values that aren't objects hold no data of the form's
|
|
532
|
+
// components, e.g. ones that `compute()` converts to objects.
|
|
533
|
+
return item
|
|
534
|
+
}
|
|
530
535
|
const itemDataPath =
|
|
531
536
|
index !== null
|
|
532
537
|
? getDataPath(componentDataPath, index)
|
package/types/index.d.ts
CHANGED
|
@@ -3043,9 +3043,10 @@ interface TreeSchema<$Item, $Type extends 'tree-list' | 'tree-object'>
|
|
|
3043
3043
|
name: string
|
|
3044
3044
|
}
|
|
3045
3045
|
/**
|
|
3046
|
-
*
|
|
3046
|
+
* The properties shown for tree nodes, displayed like the columns of
|
|
3047
|
+
* lists.
|
|
3047
3048
|
*/
|
|
3048
|
-
properties?:
|
|
3049
|
+
properties?: Columns<$Item>
|
|
3049
3050
|
/**
|
|
3050
3051
|
* Whether child nodes are expanded by default.
|
|
3051
3052
|
*/
|