@smartbit4all/ng-client 3.3.193 → 3.3.195

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.
@@ -5213,8 +5213,11 @@ class UiActionToolbarComponent {
5213
5213
  if (this.uiActionModels) {
5214
5214
  let uiActionModelsWithDescriptions = [];
5215
5215
  for (const uiActionModel of this.uiActionModels) {
5216
- uiActionModel.descriptor = await this.manager.getActionDescriptor(uiActionModel.uiAction);
5217
- uiActionModelsWithDescriptions.push(uiActionModel);
5216
+ const uiAction = uiActionModel.uiAction;
5217
+ if (this.id === uiAction.toolbar) {
5218
+ uiActionModel.descriptor = await this.manager.getActionDescriptor(uiActionModel.uiAction);
5219
+ uiActionModelsWithDescriptions.push(uiActionModel);
5220
+ }
5218
5221
  }
5219
5222
  this.uiActionModelsWithDescriptions = uiActionModelsWithDescriptions;
5220
5223
  this.changeDetector.markForCheck();
@@ -7067,19 +7070,6 @@ class Table {
7067
7070
  }
7068
7071
  getValue(element, header) {
7069
7072
  return SmartObjectUtility.getValueByPath(element, header);
7070
- // let headers = header.split('.');
7071
- // if (headers.length > 1) {
7072
- // let value: any = element;
7073
- // for (let index = 0; index < headers.length; index++) {
7074
- // const element = headers[index];
7075
- // value = value[element];
7076
- // if (!value && index !== headers.length - 1) {
7077
- // return undefined;
7078
- // }
7079
- // }
7080
- // return value;
7081
- // }
7082
- // return element[header];
7083
7073
  }
7084
7074
  showButton(button, element) {
7085
7075
  if (button.showButtonIf) {
@@ -15523,7 +15513,9 @@ class SmartComponentApiClient {
15523
15513
  uiAction,
15524
15514
  };
15525
15515
  });
15526
- let toolbars = this.getAllSmartUiActionToolbars().filter((toolbar) => toolbar.id);
15516
+ const allToolbars = this.getAllSmartUiActionToolbars();
15517
+ let toolbars = allToolbars.filter((toolbar) => toolbar.id);
15518
+ let toolbarsWithoutId = this.getAllSmartUiActionToolbars().filter((toolbar) => toolbar.id === undefined || toolbar.id === null);
15527
15519
  let toolbarModels = new Map();
15528
15520
  toolbars.forEach((toolbar) => {
15529
15521
  toolbarModels.set(toolbar.id, []);
@@ -15545,6 +15537,9 @@ class SmartComponentApiClient {
15545
15537
  toolbar.uiActionModels = toolbarModels.get(toolbar.id);
15546
15538
  await toolbar.setUp();
15547
15539
  });
15540
+ toolbarsWithoutId.forEach(async (toolbar) => {
15541
+ await toolbar.setUp();
15542
+ });
15548
15543
  this.changeDetector?.detectChanges();
15549
15544
  }
15550
15545
  }