@smartbit4all/ng-client 1.0.26 → 1.0.27
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/view-context/smart-ui-action/ui-action-toolbar.component.mjs +4 -6
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +4 -3
- package/fesm2015/smartbit4all-ng-client.mjs +15 -14
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +6 -7
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.27.tgz +0 -0
- package/smartbit4all-ng-client-1.0.26.tgz +0 -0
|
@@ -3475,7 +3475,7 @@ class UiActionService {
|
|
|
3475
3475
|
}
|
|
3476
3476
|
uiActionRequest = response.uiActionRequest;
|
|
3477
3477
|
}
|
|
3478
|
-
this.performAction(uiAction, uiActionRequest, options);
|
|
3478
|
+
await this.performAction(uiAction, uiActionRequest, options);
|
|
3479
3479
|
}
|
|
3480
3480
|
async handleInputType(inputType, uiAction, uiActionRequest, inputTypeName) {
|
|
3481
3481
|
switch (inputType) {
|
|
@@ -3523,7 +3523,8 @@ class UiActionService {
|
|
|
3523
3523
|
return uiActionRequest;
|
|
3524
3524
|
}
|
|
3525
3525
|
async performAction(uiAction, uiActionRequest, options) {
|
|
3526
|
-
if (!uiActionRequest.params ||
|
|
3526
|
+
if (!uiActionRequest.params ||
|
|
3527
|
+
(uiActionRequest.params && !Object.keys(uiActionRequest.params).length)) {
|
|
3527
3528
|
uiActionRequest.params = {
|
|
3528
3529
|
model: this.uiActionModel.serviceToUse.getModel(),
|
|
3529
3530
|
};
|
|
@@ -3587,19 +3588,17 @@ class UiActionToolbarComponent {
|
|
|
3587
3588
|
return uiActionModel;
|
|
3588
3589
|
}));
|
|
3589
3590
|
}
|
|
3590
|
-
onActionClicked(event, uiActionModel) {
|
|
3591
|
+
async onActionClicked(event, uiActionModel) {
|
|
3591
3592
|
event.stopPropagation();
|
|
3592
3593
|
if (this.pressedButtonActive) {
|
|
3593
3594
|
this.pressedButtonActive = false;
|
|
3594
|
-
setTimeout(() => {
|
|
3595
|
-
this.pressedButtonActive = true;
|
|
3596
|
-
}, 1000);
|
|
3597
3595
|
this.service.uiActionModel = uiActionModel;
|
|
3598
3596
|
let options = {
|
|
3599
3597
|
nodeId: uiActionModel.nodeId,
|
|
3600
3598
|
widgetId: uiActionModel.widgetId,
|
|
3601
3599
|
};
|
|
3602
|
-
this.service.execute(uiActionModel.uiAction, options);
|
|
3600
|
+
await this.service.execute(uiActionModel.uiAction, options);
|
|
3601
|
+
this.pressedButtonActive = true;
|
|
3603
3602
|
}
|
|
3604
3603
|
}
|
|
3605
3604
|
onActionDoubleClicked(event, uiActionModel) {
|