@trudb/tru-common-lib 0.2.95 → 0.2.97
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.
|
@@ -2343,7 +2343,7 @@ class TruDesktopViewConfig {
|
|
|
2343
2343
|
entities = undefined;
|
|
2344
2344
|
entityIndex = 0;
|
|
2345
2345
|
entityRefs = '';
|
|
2346
|
-
|
|
2346
|
+
parentTableRefName = '';
|
|
2347
2347
|
isDirty = false;
|
|
2348
2348
|
isEditing = false;
|
|
2349
2349
|
isInvalid = false;
|
|
@@ -3983,8 +3983,8 @@ class TruDetailViewBase {
|
|
|
3983
3983
|
onAddEntity = (newEntity) => {
|
|
3984
3984
|
if (!newEntity)
|
|
3985
3985
|
newEntity = this.dataContext.entityAccess().add(this.entityType);
|
|
3986
|
-
if (this.view.
|
|
3987
|
-
newEntity[this.
|
|
3986
|
+
if (this.view.parentTableRefName)
|
|
3987
|
+
newEntity[this.view.parentTableRefName] = this.entity[this.view.parentTableRefName];
|
|
3988
3988
|
this.entities.splice(this.navigationIndex + 1, 0, newEntity);
|
|
3989
3989
|
this.navigateTo(this.navigationIndex + 1);
|
|
3990
3990
|
};
|
|
@@ -7491,7 +7491,7 @@ class TruDataGrid {
|
|
|
7491
7491
|
};
|
|
7492
7492
|
onCellDoubleClicked = (gridConfig) => {
|
|
7493
7493
|
if (gridConfig.colDef.cellClass === 'ag-pk-aligned-cell')
|
|
7494
|
-
this.config.rowHeaderDoubleClicked(gridConfig
|
|
7494
|
+
this.config.rowHeaderDoubleClicked(gridConfig);
|
|
7495
7495
|
};
|
|
7496
7496
|
onCellKeyDown = (params) => {
|
|
7497
7497
|
if (!params.event)
|