@churchillliving/se-ui-toolkit 6.53.9 → 6.53.11
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/bundles/churchillliving-se-ui-toolkit.umd.js +9 -4
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +10 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js +9 -4
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/grid/grid.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3394,6 +3394,10 @@
|
|
|
3394
3394
|
// set the row When adding the new Row on Grid
|
|
3395
3395
|
this.onGridRowAdd = new i0.EventEmitter();
|
|
3396
3396
|
this.isGridHidden = false;
|
|
3397
|
+
/**
|
|
3398
|
+
* open Dialog in grid
|
|
3399
|
+
*/
|
|
3400
|
+
this.setDialogData = true;
|
|
3397
3401
|
}
|
|
3398
3402
|
Object.defineProperty(GridComponent.prototype, "activeTestMode", {
|
|
3399
3403
|
set: function (val) {
|
|
@@ -4046,20 +4050,21 @@
|
|
|
4046
4050
|
this.sortDisabled = true;
|
|
4047
4051
|
this.onGridRowAdd.emit(row);
|
|
4048
4052
|
};
|
|
4049
|
-
/**
|
|
4050
|
-
* open Dialog in grid
|
|
4051
|
-
*/
|
|
4052
4053
|
GridComponent.prototype.openGridDialog = function (column, row) {
|
|
4053
4054
|
var _this = this;
|
|
4054
4055
|
this.onClickEvent(column, row);
|
|
4055
4056
|
setTimeout(function () {
|
|
4056
4057
|
var _a, _b, _c;
|
|
4058
|
+
if (_this.setDialogData) {
|
|
4059
|
+
column['parentDialogData'] = column.data.data;
|
|
4060
|
+
_this.setDialogData = false;
|
|
4061
|
+
}
|
|
4057
4062
|
if (column.data && column.data.data && row[column.field + '_obj']) {
|
|
4058
4063
|
column.data.data = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.dialogData;
|
|
4059
4064
|
}
|
|
4060
4065
|
if (column.component && column.data && _this.rowClickData) {
|
|
4061
4066
|
var keys = Object.keys(_this.rowClickData);
|
|
4062
|
-
column.data.data = autoSetLookupData(column.
|
|
4067
|
+
column.data.data = autoSetLookupData(column.parentDialogData, _this.rowClickData);
|
|
4063
4068
|
var ref = _this.dialogService.open(column.component, column.data);
|
|
4064
4069
|
var componentName = (_b = column.component) === null || _b === void 0 ? void 0 : _b.name;
|
|
4065
4070
|
if (componentName) {
|