@onehat/ui 0.3.248 → 0.3.250
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/package.json
CHANGED
|
@@ -475,9 +475,9 @@ function Form(props) {
|
|
|
475
475
|
}
|
|
476
476
|
const itemDefaults = item.defaults;
|
|
477
477
|
children = _.map(items, (item, ix) => {
|
|
478
|
-
return buildFromItem(item, ix, itemDefaults);
|
|
478
|
+
return buildFromItem(item, ix, {...defaults, ...itemDefaults});
|
|
479
479
|
});
|
|
480
|
-
return <Element key={ix} title={title} {...itemDefaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
480
|
+
return <Element key={ix} title={title} {...defaults} {...itemDefaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
if (!label && Repository && propertyDef?.title) {
|
|
@@ -302,7 +302,8 @@ export default function withSecondaryEditor(WrappedComponent, isTree = false) {
|
|
|
302
302
|
return;
|
|
303
303
|
}
|
|
304
304
|
if (secondaryUseRemoteDuplicate) {
|
|
305
|
-
|
|
305
|
+
const results = await onRemoteDuplicate();
|
|
306
|
+
return results;
|
|
306
307
|
}
|
|
307
308
|
const
|
|
308
309
|
entity = secondarySelection[0],
|
|
@@ -301,7 +301,8 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
if (useRemoteDuplicate) {
|
|
304
|
-
|
|
304
|
+
const results = await onRemoteDuplicate();
|
|
305
|
+
return results;
|
|
305
306
|
}
|
|
306
307
|
const
|
|
307
308
|
entity = selection[0],
|
|
@@ -126,9 +126,9 @@ function Viewer(props) {
|
|
|
126
126
|
}
|
|
127
127
|
const defaults = item.defaults;
|
|
128
128
|
children = _.map(items, (item, ix) => {
|
|
129
|
-
return buildFromItem(item, ix, defaults);
|
|
129
|
+
return buildFromItem(item, ix, {...defaults, ...itemDefaults});
|
|
130
130
|
});
|
|
131
|
-
return <Element key={ix} title={title} {...defaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
131
|
+
return <Element key={ix} title={title} {...defaults} {...itemDefaults} {...propsToPass} {...editorTypeProps}>{children}</Element>;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
if (!label && Repository && propertyDef?.title) {
|