@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.
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +11 -9
- package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +2 -10
- package/fesm2015/smartbit4all-ng-client.mjs +11 -21
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +11 -17
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +1 -3
- package/lib/view-context/smart-ui-action/ui-action.model.d.ts +1 -3
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.14.tgz +0 -0
- package/smartbit4all-ng-client-1.0.13.tgz +0 -0
|
@@ -3509,15 +3509,7 @@ class UiActionService {
|
|
|
3509
3509
|
uiActionRequest.params['model'] = this.uiActionModel.serviceToUse.getModel();
|
|
3510
3510
|
}
|
|
3511
3511
|
try {
|
|
3512
|
-
|
|
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
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
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.');
|