barsa-sap-ui 1.0.321 → 1.0.322
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/esm2020/lib/form-dialog/form-dialog.component.mjs +9 -4
- package/fesm2015/barsa-sap-ui.mjs +8 -3
- package/fesm2015/barsa-sap-ui.mjs.map +1 -1
- package/fesm2020/barsa-sap-ui.mjs +8 -3
- package/fesm2020/barsa-sap-ui.mjs.map +1 -1
- package/lib/form-dialog/form-dialog.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9439,6 +9439,9 @@ class FormDialogComponent extends BaseComponent {
|
|
|
9439
9439
|
this._setCaption(formPanelCtrlr);
|
|
9440
9440
|
this.formPanelCtrlr = formPanelCtrlr;
|
|
9441
9441
|
}
|
|
9442
|
+
get Adapter() {
|
|
9443
|
+
return this.formPanelCtrlr.Adapter;
|
|
9444
|
+
}
|
|
9442
9445
|
ngOnInit() {
|
|
9443
9446
|
super.ngOnInit();
|
|
9444
9447
|
const formPanelCtrlr = this.formPanelCtrlr;
|
|
@@ -9486,14 +9489,16 @@ class FormDialogComponent extends BaseComponent {
|
|
|
9486
9489
|
this.dialogRef = this._dialogService.open(this.dialogTemplateRef, setting);
|
|
9487
9490
|
}
|
|
9488
9491
|
onCancel() {
|
|
9492
|
+
const adapter = this.Adapter;
|
|
9493
|
+
adapter.fireEvent('ToolClick', adapter, { Key: 'Cancel' });
|
|
9489
9494
|
this._close();
|
|
9490
9495
|
}
|
|
9491
9496
|
onSave() {
|
|
9492
|
-
const adapter = this.
|
|
9497
|
+
const adapter = this.Adapter;
|
|
9493
9498
|
adapter.fireEvent('ToolClick', adapter, { Key: 'SaveAndClose' });
|
|
9494
9499
|
}
|
|
9495
9500
|
onOk() {
|
|
9496
|
-
const adapter = this.
|
|
9501
|
+
const adapter = this.Adapter;
|
|
9497
9502
|
adapter.fireEvent('ToolClick', adapter, { Key: 'Ok' });
|
|
9498
9503
|
}
|
|
9499
9504
|
onFormClose() {
|
|
@@ -9509,7 +9514,7 @@ class FormDialogComponent extends BaseComponent {
|
|
|
9509
9514
|
// @Input() RefreshFormPanelControl = (formpanelCtrlr) => {};
|
|
9510
9515
|
_close() {
|
|
9511
9516
|
// this.dialogRef.nativeElement.close();
|
|
9512
|
-
this.
|
|
9517
|
+
this.Adapter.Control.fireEvent('RequestForClose', this.Adapter.Control);
|
|
9513
9518
|
// this.dialogRef.close();
|
|
9514
9519
|
// this.dialogParams.close();
|
|
9515
9520
|
// this.dialogOpened = false;
|