@onehat/ui 0.3.204 → 0.3.206
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
|
@@ -56,6 +56,7 @@ export function ComboComponent(props) {
|
|
|
56
56
|
onGridAdd, // to hook into when menu adds (ComboEditor only)
|
|
57
57
|
onGridSave, // to hook into when menu saves (ComboEditor only)
|
|
58
58
|
onGridDelete, // to hook into when menu deletes (ComboEditor only)
|
|
59
|
+
newEntityDisplayProperty,
|
|
59
60
|
|
|
60
61
|
// withComponent
|
|
61
62
|
self,
|
|
@@ -685,6 +686,7 @@ export function ComboComponent(props) {
|
|
|
685
686
|
parent={self}
|
|
686
687
|
h={UiGlobals.mode === UI_MODE_WEB ? styles.FORM_COMBO_MENU_HEIGHT + 'px' : null}
|
|
687
688
|
newEntityDisplayValue={newEntityDisplayValue}
|
|
689
|
+
newEntityDisplayProperty={newEntityDisplayProperty}
|
|
688
690
|
disablePresetButtons={!isEditor}
|
|
689
691
|
alternateRowBackgrounds={false}
|
|
690
692
|
onChangeSelection={(selection) => {
|
|
@@ -439,6 +439,21 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
441
|
|
|
442
|
+
useEffect(() => {
|
|
443
|
+
if (!Repository) {
|
|
444
|
+
return () => {};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
function handleError(msg) {
|
|
448
|
+
alert(msg);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
Repository.on('error', handleError);
|
|
452
|
+
return () => {
|
|
453
|
+
Repository.off('error', handleError);
|
|
454
|
+
};
|
|
455
|
+
}, []);
|
|
456
|
+
|
|
442
457
|
useEffect(() => {
|
|
443
458
|
// When selection changes, set the mode appropriately
|
|
444
459
|
let mode;
|