@smartbit4all/ng-client 1.0.13 → 1.0.15
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-toolbar.component.mjs +6 -2
- 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 +16 -22
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +16 -18
- 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 +3 -3
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.15.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
|
}
|
|
@@ -3574,7 +3566,11 @@ class UiActionToolbarComponent {
|
|
|
3574
3566
|
onActionClicked(event, uiActionModel) {
|
|
3575
3567
|
event.stopPropagation();
|
|
3576
3568
|
this.service.uiActionModel = uiActionModel;
|
|
3577
|
-
|
|
3569
|
+
let options = {
|
|
3570
|
+
nodeId: uiActionModel.nodeId,
|
|
3571
|
+
widgetId: uiActionModel.widgetId,
|
|
3572
|
+
};
|
|
3573
|
+
this.service.execute(uiActionModel.uiAction, options);
|
|
3578
3574
|
}
|
|
3579
3575
|
getType(uiActionModel) {
|
|
3580
3576
|
switch (uiActionModel.descriptor?.type) {
|
|
@@ -3831,14 +3827,16 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
3831
3827
|
getModel() {
|
|
3832
3828
|
return this.data;
|
|
3833
3829
|
}
|
|
3834
|
-
async performUiActionRequest(uiActionRequest) {
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3830
|
+
async performUiActionRequest(uiActionRequest, widgetId, nodeId) {
|
|
3831
|
+
if (widgetId && nodeId) {
|
|
3832
|
+
await this.viewContext.performWidgetAction(this.uuid, widgetId, nodeId, uiActionRequest);
|
|
3833
|
+
}
|
|
3834
|
+
else if (widgetId) {
|
|
3835
|
+
await this.viewContext.performWidgetMainAction(this.uuid, widgetId, uiActionRequest);
|
|
3836
|
+
}
|
|
3837
|
+
else {
|
|
3838
|
+
await this.viewContext.performAction(this.uuid, uiActionRequest);
|
|
3839
|
+
}
|
|
3842
3840
|
}
|
|
3843
3841
|
handleSpecificDemandsAsynchronously(uiAction, uiActionRequest) {
|
|
3844
3842
|
throw new Error('handleSpecificDemandsAsynchronously method not implemented.');
|