@smartbit4all/ng-client 1.1.6 → 1.1.8
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 +2 -1
- package/esm2020/lib/view-context/smart-view-context.service.mjs +53 -43
- package/fesm2015/smartbit4all-ng-client.mjs +53 -42
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +53 -42
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.1.8.tgz +0 -0
- package/smartbit4all-ng-client-1.1.6.tgz +0 -0
|
@@ -2377,55 +2377,65 @@ class SmartViewContextService {
|
|
|
2377
2377
|
return await this.view.downloadItem(uuid, item).toPromise();
|
|
2378
2378
|
}
|
|
2379
2379
|
async performAction(uuid, uiActionRequest) {
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
config: {
|
|
2384
|
-
uuid,
|
|
2385
|
-
uiActionRequest,
|
|
2386
|
-
},
|
|
2387
|
-
isCompleted,
|
|
2380
|
+
return await this._performAction({
|
|
2381
|
+
uuid,
|
|
2382
|
+
uiActionRequest,
|
|
2388
2383
|
});
|
|
2389
|
-
|
|
2384
|
+
// const isCompleted = new Subject<void>();
|
|
2385
|
+
// this.apiQueueService.addToQueue({
|
|
2386
|
+
// callback: this._performAction.bind(this),
|
|
2387
|
+
// config: {
|
|
2388
|
+
// uuid,
|
|
2389
|
+
// uiActionRequest,
|
|
2390
|
+
// },
|
|
2391
|
+
// isCompleted,
|
|
2392
|
+
// });
|
|
2393
|
+
// return await isCompleted.toPromise();
|
|
2390
2394
|
}
|
|
2391
2395
|
async performWidgetAction(uuid, widgetId, nodeId, uiActionRequest) {
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2396
|
+
return await this._performWidgetAction({ uuid, widgetId, nodeId, uiActionRequest });
|
|
2397
|
+
// const isCompleted = new Subject<void>();
|
|
2398
|
+
// this.apiQueueService.addToQueue({
|
|
2399
|
+
// callback: this._performWidgetAction.bind(this),
|
|
2400
|
+
// config: {
|
|
2401
|
+
// uuid,
|
|
2402
|
+
// widgetId,
|
|
2403
|
+
// nodeId,
|
|
2404
|
+
// uiActionRequest,
|
|
2405
|
+
// },
|
|
2406
|
+
// isCompleted,
|
|
2407
|
+
// });
|
|
2408
|
+
// return await isCompleted.toPromise();
|
|
2404
2409
|
}
|
|
2405
2410
|
async performWidgetMainAction(uuid, widgetId, uiActionRequest) {
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2411
|
+
return await this._performWidgetMainAction({ uuid, widgetId, uiActionRequest });
|
|
2412
|
+
// const isCompleted = new Subject<void>();
|
|
2413
|
+
// this.apiQueueService.addToQueue({
|
|
2414
|
+
// callback: this._performWidgetMainAction.bind(this),
|
|
2415
|
+
// config: {
|
|
2416
|
+
// uuid,
|
|
2417
|
+
// widgetId,
|
|
2418
|
+
// uiActionRequest,
|
|
2419
|
+
// },
|
|
2420
|
+
// isCompleted,
|
|
2421
|
+
// });
|
|
2422
|
+
// return await isCompleted.toPromise();
|
|
2417
2423
|
}
|
|
2418
2424
|
async dataChanged(uuid, dataChange) {
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
},
|
|
2428
|
-
|
|
2425
|
+
return await this._dataChanged({ uuid, dataChange });
|
|
2426
|
+
// const isCompleted = new Subject<void>();
|
|
2427
|
+
// this.apiQueueService.addToQueue(
|
|
2428
|
+
// {
|
|
2429
|
+
// callback: this._dataChanged.bind(this),
|
|
2430
|
+
// config: {
|
|
2431
|
+
// uuid,
|
|
2432
|
+
// dataChange,
|
|
2433
|
+
// },
|
|
2434
|
+
// isCompleted,
|
|
2435
|
+
// },
|
|
2436
|
+
// true
|
|
2437
|
+
// );
|
|
2438
|
+
// return await isCompleted.toPromise();
|
|
2429
2439
|
}
|
|
2430
2440
|
async _performAction(config) {
|
|
2431
2441
|
return await this.handlePerformActionResponse(await this.view.performAction(config.uuid, config.uiActionRequest).toPromise());
|
|
@@ -4173,6 +4183,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
4173
4183
|
this.handleConstraintChange(changes, changeKey);
|
|
4174
4184
|
}
|
|
4175
4185
|
});
|
|
4186
|
+
this.dataChanged.next();
|
|
4176
4187
|
}
|
|
4177
4188
|
if (!change.changedWidgets && !change.changes && change.value) {
|
|
4178
4189
|
this.model = change.value;
|