@smartbit4all/ng-client 1.0.13 → 1.0.14

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.
@@ -3509,15 +3509,7 @@ class UiActionService {
3509
3509
  uiActionRequest.params['model'] = this.uiActionModel.serviceToUse.getModel();
3510
3510
  }
3511
3511
  try {
3512
- if (options && options.nodeId && options.widgetId) {
3513
- await this.uiActionModel.serviceToUse.performWidgetActionRequest(uiActionRequest, options.widgetId, options.nodeId);
3514
- }
3515
- else if (options && options.widgetId) {
3516
- await this.uiActionModel.serviceToUse.performWidgetMainActionRequest(uiActionRequest, options.widgetId);
3517
- }
3518
- else {
3519
- await this.uiActionModel.serviceToUse.performUiActionRequest(uiActionRequest);
3520
- }
3512
+ await this.uiActionModel.serviceToUse.performUiActionRequest(uiActionRequest, options?.widgetId, options?.nodeId);
3521
3513
  if (this.uiActionModel.descriptor?.feedbackType === UiActionFeedbackType.Snackbar) {
3522
3514
  this.showSavedSnackbar(uiAction);
3523
3515
  }
@@ -3831,14 +3823,16 @@ let SmartComponentApiClient = class SmartComponentApiClient {
3831
3823
  getModel() {
3832
3824
  return this.data;
3833
3825
  }
3834
- async performUiActionRequest(uiActionRequest) {
3835
- await this.viewContext.performAction(this.uuid, uiActionRequest);
3836
- }
3837
- async performWidgetActionRequest(uiActionRequest, widgetId, nodeId) {
3838
- await this.viewContext.performWidgetAction(this.uuid, widgetId, nodeId, uiActionRequest);
3839
- }
3840
- async performWidgetMainActionRequest(uiActionRequest, widgetId) {
3841
- await this.viewContext.performWidgetMainAction(this.uuid, widgetId, uiActionRequest);
3826
+ async performUiActionRequest(uiActionRequest, widgetId, nodeId) {
3827
+ if (widgetId && nodeId) {
3828
+ await this.viewContext.performWidgetAction(this.uuid, widgetId, nodeId, uiActionRequest);
3829
+ }
3830
+ else if (widgetId) {
3831
+ await this.viewContext.performWidgetMainAction(this.uuid, widgetId, uiActionRequest);
3832
+ }
3833
+ else {
3834
+ await this.viewContext.performAction(this.uuid, uiActionRequest);
3835
+ }
3842
3836
  }
3843
3837
  handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
3844
3838
  throw new Error('handleSpecificDemandsAsynchronously method not implemented.');