@smartbit4all/ng-client 3.3.186 → 3.3.190

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.
Files changed (164) hide show
  1. package/esm2020/lib/session/api/api/session.service.mjs +1 -1
  2. package/esm2020/lib/session/api/encoder.mjs +1 -1
  3. package/esm2020/lib/session/api/model/accountInfo.mjs +1 -1
  4. package/esm2020/lib/session/api/model/apiError.mjs +1 -1
  5. package/esm2020/lib/session/api/model/authenticationProviderData.mjs +1 -1
  6. package/esm2020/lib/session/api/model/getAuthenticationProvidersResponse.mjs +1 -1
  7. package/esm2020/lib/session/api/model/models.mjs +1 -1
  8. package/esm2020/lib/session/api/model/refreshSessionRequest.mjs +1 -1
  9. package/esm2020/lib/session/api/model/session.mjs +1 -1
  10. package/esm2020/lib/session/api/model/sessionInfoData.mjs +1 -1
  11. package/esm2020/lib/session/api/model/userActivityLog.mjs +1 -1
  12. package/esm2020/lib/session/api/param.mjs +1 -1
  13. package/esm2020/lib/session/api/variables.mjs +1 -1
  14. package/esm2020/lib/smart-client/smart-component-api-client.mjs +29 -47
  15. package/esm2020/lib/smart-component-layout/api/api/api.mjs +1 -1
  16. package/esm2020/lib/smart-component-layout/api/api/default.service.mjs +1 -1
  17. package/esm2020/lib/smart-component-layout/api/api.module.mjs +1 -1
  18. package/esm2020/lib/smart-component-layout/api/configuration.mjs +1 -1
  19. package/esm2020/lib/smart-component-layout/api/encoder.mjs +1 -1
  20. package/esm2020/lib/smart-component-layout/api/index.mjs +1 -1
  21. package/esm2020/lib/smart-component-layout/api/model/componentType.mjs +1 -1
  22. package/esm2020/lib/smart-component-layout/api/model/componentWidgetType.mjs +1 -1
  23. package/esm2020/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
  24. package/esm2020/lib/smart-component-layout/api/model/models.mjs +1 -1
  25. package/esm2020/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
  26. package/esm2020/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
  27. package/esm2020/lib/smart-component-layout/api/param.mjs +1 -1
  28. package/esm2020/lib/smart-component-layout/api/variables.mjs +1 -1
  29. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBoolOperator.mjs +1 -1
  30. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderField.mjs +1 -1
  31. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderGroup.mjs +1 -1
  32. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionBuilderModel.mjs +1 -1
  33. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionData.mjs +1 -1
  34. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionDataType.mjs +1 -1
  35. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionField.mjs +1 -1
  36. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldList.mjs +1 -1
  37. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionFieldWidgetType.mjs +1 -1
  38. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionList.mjs +1 -1
  39. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperandData.mjs +1 -1
  40. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOperation.mjs +1 -1
  41. package/esm2020/lib/smart-filter/api/filter/model/filterExpressionOrderBy.mjs +1 -1
  42. package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
  43. package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
  44. package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
  45. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
  46. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
  47. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
  48. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
  49. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
  50. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
  51. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
  52. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
  53. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
  54. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
  55. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
  56. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
  57. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
  58. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
  59. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
  60. package/esm2020/lib/smart-filter-editor/api/model/smartFilterType.mjs +1 -1
  61. package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
  62. package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
  63. package/esm2020/lib/smart-filter-editor/smart-filter-editor.model.mjs +1 -1
  64. package/esm2020/lib/smart-filter-editor/smart-filter-editor.service.mjs +7 -11
  65. package/esm2020/lib/smart-form/api/api/api.mjs +1 -1
  66. package/esm2020/lib/smart-form/api/api/default.service.mjs +1 -1
  67. package/esm2020/lib/smart-form/api/api.module.mjs +1 -1
  68. package/esm2020/lib/smart-form/api/configuration.mjs +1 -1
  69. package/esm2020/lib/smart-form/api/encoder.mjs +1 -1
  70. package/esm2020/lib/smart-form/api/index.mjs +1 -1
  71. package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
  72. package/esm2020/lib/smart-form/api/model/propertyMapping.mjs +1 -1
  73. package/esm2020/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
  74. package/esm2020/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
  75. package/esm2020/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
  76. package/esm2020/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
  77. package/esm2020/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
  78. package/esm2020/lib/smart-form/api/model/valueChangeMode.mjs +1 -1
  79. package/esm2020/lib/smart-form/api/param.mjs +1 -1
  80. package/esm2020/lib/smart-form/api/variables.mjs +1 -1
  81. package/esm2020/lib/smart-grid/smart-grid.component.mjs +2 -4
  82. package/esm2020/lib/smart-table/tables/table.mjs +2 -2
  83. package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
  84. package/esm2020/lib/smart-tree/tree-api/configuration.mjs +1 -1
  85. package/esm2020/lib/smart-tree/tree-api/encoder.mjs +1 -1
  86. package/esm2020/lib/smart-tree/tree-api/param.mjs +1 -1
  87. package/esm2020/lib/smart-tree/tree-api/variables.mjs +1 -1
  88. package/esm2020/lib/view-context/api/api/api.mjs +1 -1
  89. package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
  90. package/esm2020/lib/view-context/api/api.module.mjs +1 -1
  91. package/esm2020/lib/view-context/api/configuration.mjs +1 -1
  92. package/esm2020/lib/view-context/api/encoder.mjs +1 -1
  93. package/esm2020/lib/view-context/api/index.mjs +1 -1
  94. package/esm2020/lib/view-context/api/model/closeResult.mjs +1 -1
  95. package/esm2020/lib/view-context/api/model/componentConstraint.mjs +1 -1
  96. package/esm2020/lib/view-context/api/model/componentModel.mjs +1 -1
  97. package/esm2020/lib/view-context/api/model/componentModelChange.mjs +1 -1
  98. package/esm2020/lib/view-context/api/model/dataChange.mjs +1 -1
  99. package/esm2020/lib/view-context/api/model/dataChangeEvent.mjs +1 -1
  100. package/esm2020/lib/view-context/api/model/dataChangeKind.mjs +1 -1
  101. package/esm2020/lib/view-context/api/model/downloadedFile.mjs +1 -1
  102. package/esm2020/lib/view-context/api/model/iconPosition.mjs +1 -1
  103. package/esm2020/lib/view-context/api/model/imageResource.mjs +1 -1
  104. package/esm2020/lib/view-context/api/model/link.mjs +1 -1
  105. package/esm2020/lib/view-context/api/model/messageData.mjs +1 -1
  106. package/esm2020/lib/view-context/api/model/messageOption.mjs +1 -1
  107. package/esm2020/lib/view-context/api/model/messageOptionType.mjs +1 -1
  108. package/esm2020/lib/view-context/api/model/messageResult.mjs +1 -1
  109. package/esm2020/lib/view-context/api/model/messageTextType.mjs +1 -1
  110. package/esm2020/lib/view-context/api/model/messageType.mjs +1 -1
  111. package/esm2020/lib/view-context/api/model/models.mjs +1 -1
  112. package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
  113. package/esm2020/lib/view-context/api/model/serverRequestExecutionStat.mjs +1 -1
  114. package/esm2020/lib/view-context/api/model/serverRequestTrack.mjs +1 -1
  115. package/esm2020/lib/view-context/api/model/serverRequestType.mjs +1 -1
  116. package/esm2020/lib/view-context/api/model/smartLinkData.mjs +1 -1
  117. package/esm2020/lib/view-context/api/model/statisticRecord.mjs +1 -1
  118. package/esm2020/lib/view-context/api/model/style.mjs +1 -1
  119. package/esm2020/lib/view-context/api/model/uiAction.mjs +1 -1
  120. package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
  121. package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +1 -1
  122. package/esm2020/lib/view-context/api/model/uiActionConstraint.mjs +1 -1
  123. package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +1 -1
  124. package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
  125. package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +1 -1
  126. package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +1 -1
  127. package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +1 -1
  128. package/esm2020/lib/view-context/api/model/uiActionTooltip.mjs +1 -1
  129. package/esm2020/lib/view-context/api/model/uiActionUploadDescriptor.mjs +1 -1
  130. package/esm2020/lib/view-context/api/model/valueSet.mjs +1 -1
  131. package/esm2020/lib/view-context/api/model/view.mjs +1 -1
  132. package/esm2020/lib/view-context/api/model/viewApiError.mjs +1 -1
  133. package/esm2020/lib/view-context/api/model/viewConstraint.mjs +1 -1
  134. package/esm2020/lib/view-context/api/model/viewContext.mjs +1 -1
  135. package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
  136. package/esm2020/lib/view-context/api/model/viewContextData.mjs +1 -1
  137. package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
  138. package/esm2020/lib/view-context/api/model/viewData.mjs +1 -1
  139. package/esm2020/lib/view-context/api/model/viewState.mjs +1 -1
  140. package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +1 -1
  141. package/esm2020/lib/view-context/api/model/viewType.mjs +1 -1
  142. package/esm2020/lib/view-context/api/param.mjs +1 -1
  143. package/esm2020/lib/view-context/api/variables.mjs +1 -1
  144. package/esm2020/lib/view-context/smart-view-context.service.mjs +22 -31
  145. package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
  146. package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
  147. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
  148. package/fesm2015/smartbit4all-ng-client.mjs +60 -92
  149. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  150. package/fesm2020/smartbit4all-ng-client.mjs +57 -90
  151. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  152. package/lib/smart-client/smart-component-api-client.d.ts +1 -1
  153. package/lib/smart-filter-editor/smart-filter-editor.model.d.ts +1 -1
  154. package/lib/smart-grid/smart-grid.component.d.ts +1 -1
  155. package/lib/view-context/smart-view-context.service.d.ts +3 -4
  156. package/package.json +1 -1
  157. package/smartbit4all-ng-client-3.3.190.tgz +0 -0
  158. package/src/lib/session/api/README.md +226 -226
  159. package/src/lib/smart-component-layout/api/README.md +226 -226
  160. package/src/lib/smart-filter-editor/api/README.md +226 -226
  161. package/src/lib/smart-form/api/README.md +226 -226
  162. package/src/lib/smart-tree/tree-api/README.md +226 -226
  163. package/src/lib/view-context/api/README.md +226 -226
  164. package/smartbit4all-ng-client-3.3.186.tgz +0 -0
@@ -2841,7 +2841,7 @@ class SmartViewContextService {
2841
2841
  openView(view) {
2842
2842
  let alreadyOpened = this.openedViewUuids.some((uuid) => uuid === view.uuid);
2843
2843
  if (alreadyOpened)
2844
- return undefined;
2844
+ return;
2845
2845
  let viewHandler = this.viewHandlers.find((handler) => handler.name === view.viewName);
2846
2846
  if (!viewHandler) {
2847
2847
  throw new Error(`SmartViewHandlerModel was not found by view name: ${view.viewName}`);
@@ -2911,10 +2911,15 @@ class SmartViewContextService {
2911
2911
  this.openedViewData.push(view);
2912
2912
  this.setUuidOfPage(view.viewName, view.uuid, viewHandler.componentName);
2913
2913
  this.uuidOfPageHasBeenChanged.next(view.viewName);
2914
- return {
2915
- state: ViewState.OPENED,
2916
- uuid: view.uuid,
2917
- };
2914
+ this.updateViewContext({
2915
+ updates: [
2916
+ {
2917
+ state: ViewState.OPENED,
2918
+ uuid: view.uuid,
2919
+ },
2920
+ ],
2921
+ uuid: this.viewContext?.uuid,
2922
+ });
2918
2923
  }
2919
2924
  closeView(view) {
2920
2925
  let viewHandler = this.viewHandlers.find((handler) => handler.name === view.viewName);
@@ -2946,57 +2951,43 @@ class SmartViewContextService {
2946
2951
  this.openedViewData.splice(index, 1);
2947
2952
  this.clearUuidOfPage(view.viewName, viewHandler.componentName);
2948
2953
  }
2949
- return {
2950
- state: ViewState.CLOSED,
2951
- uuid: view.uuid,
2952
- };
2953
- }
2954
- updateContext(updates) {
2955
2954
  this.updateViewContext({
2956
- updates,
2955
+ updates: [
2956
+ {
2957
+ state: ViewState.CLOSED,
2958
+ uuid: view.uuid,
2959
+ },
2960
+ ],
2957
2961
  uuid: this.viewContext?.uuid,
2958
2962
  });
2959
2963
  }
2960
2964
  async restoreViews(uuid) {
2961
- const updates = [];
2962
2965
  if (!this.viewContext) {
2963
2966
  await this.getViewContext(uuid);
2964
2967
  }
2965
- this.viewContext.views.filter((view) => view.state === ViewState.OPENED || view.state === ViewState.TO_OPEN).map((view) => {
2966
- const update = this.openView(view);
2967
- if (update) {
2968
- updates.push(update);
2969
- }
2968
+ this.viewContext.views.map((view) => {
2969
+ this.openView(view);
2970
2970
  });
2971
- if (updates.length > 0) {
2972
- this.updateContext(updates);
2973
- }
2974
2971
  }
2975
2972
  syncView() {
2976
- const updates = [];
2977
2973
  this.viewContext?.views.map((view) => {
2978
- let update = undefined;
2979
2974
  switch (view.state) {
2980
2975
  case ViewState.TO_OPEN:
2981
- update = this.openView(view);
2976
+ this.openView(view);
2982
2977
  break;
2983
2978
  case ViewState.TO_CLOSE:
2984
- update = this.closeView(view);
2979
+ this.closeView(view);
2985
2980
  break;
2986
2981
  }
2987
- if (update) {
2988
- updates.push(update);
2989
- }
2990
2982
  });
2991
2983
  const viewDataToClose = this.openedViewData.filter((viewData) => !this.viewContext?.views
2992
2984
  .flatMap((viewData) => viewData.uuid)
2993
2985
  .includes(viewData.uuid));
2994
2986
  if (viewDataToClose?.length) {
2995
2987
  viewDataToClose.map((viewData) => {
2996
- updates.push(this.closeView(viewData));
2988
+ this.closeView(viewData);
2997
2989
  });
2998
2990
  }
2999
- this.updateContext(updates);
3000
2991
  this.viewContext?.links?.map((data) => {
3001
2992
  const link = document.createElement('a');
3002
2993
  let target = '_blank'; // default
@@ -6700,7 +6691,7 @@ class Table {
6700
6691
  }
6701
6692
  customButtonClicked(event, button, element, btn, close) {
6702
6693
  event.stopPropagation();
6703
- if (btn.disabled) {
6694
+ if (btn?.disabled) {
6704
6695
  return;
6705
6696
  }
6706
6697
  if (button.type === SmartTableButtonType.MENU && btn === undefined)
@@ -10238,9 +10229,7 @@ class SmartGridComponent {
10238
10229
  async refresh() {
10239
10230
  this.setupToolbar();
10240
10231
  // will cause this.service.gridModelChanged to fire
10241
- if (this.uuid) {
10242
- await this.service.load(this.uuid, this.smartGrid.gridIdentifier);
10243
- }
10232
+ await this.service.load(this.uuid, this.smartGrid.gridIdentifier);
10244
10233
  }
10245
10234
  setupToolbar() {
10246
10235
  // check if toolbar is available _and_ need set up
@@ -15178,18 +15167,14 @@ class SmartFilterEditorService {
15178
15167
  this.reSubscribeToChange = new Subject();
15179
15168
  }
15180
15169
  async load() {
15181
- if (this.config.uuid) {
15182
- this.model = await this.service.load(this.config.uuid, this.config.identifier).toPromise();
15183
- this.modelChanged.next();
15184
- }
15170
+ this.model = await this.service.load(this.config.uuid, this.config.identifier).toPromise();
15171
+ this.modelChanged.next();
15185
15172
  }
15186
15173
  async peformWidgetAction(request) {
15187
- if (this.config.uuid) {
15188
- this.model = await this.service
15189
- .performWidgetAction(this.config.uuid, this.config.identifier, request)
15190
- .toPromise();
15191
- this.modelChanged.next();
15192
- }
15174
+ this.model = await this.service
15175
+ .performWidgetAction(this.config.uuid, this.config.identifier, request)
15176
+ .toPromise();
15177
+ this.modelChanged.next();
15193
15178
  }
15194
15179
  getModel() {
15195
15180
  return this.model;
@@ -15223,7 +15208,7 @@ class SmartComponentApiClient {
15223
15208
  this.renderer = renderer;
15224
15209
  this._destroy$ = new Subject();
15225
15210
  this.detectChange = new SmartSubject(this._destroy$);
15226
- this.componentModelLoaded = false;
15211
+ this._ngAfterViewInitPerformed = false;
15227
15212
  this.uiActionModels = [];
15228
15213
  this.dataChanged = new SmartSubject(this._destroy$);
15229
15214
  // Contained Widgets
@@ -15267,29 +15252,29 @@ class SmartComponentApiClient {
15267
15252
  firstUuid = false;
15268
15253
  }
15269
15254
  this._uuid = uuid;
15270
- this.getWidgets().forEach((ref, key) => {
15271
- if (ref instanceof SmartGridComponent) {
15272
- ref.uuid = this.componentModelLoaded ? uuid : undefined;
15273
- }
15274
- else if (ref instanceof SmartFilterEditorService) {
15275
- ref.config.uuid = this.componentModelLoaded ? uuid : undefined;
15276
- }
15277
- else if (!ref && !firstUuid) {
15278
- console.error(`Provided reference for ${key} is undefined on uuid change.`);
15279
- }
15280
- });
15281
- if (!this.uuidOfPageHasBeenChangedSubscription) {
15282
- this.uuidOfPageHasBeenChangedSubscription = this.viewContext.uuidOfPageHasBeenChanged
15283
- .pipe(takeUntil(this._destroy$))
15284
- .subscribe((pageName) => {
15285
- if (pageName === this.pageName) {
15286
- this.run();
15255
+ if (uuid) {
15256
+ this.getWidgets().forEach((ref, key) => {
15257
+ if (ref instanceof SmartGridComponent) {
15258
+ ref.uuid = uuid;
15259
+ }
15260
+ else if (ref instanceof SmartFilterEditorService) {
15261
+ ref.config.uuid = uuid;
15262
+ }
15263
+ else if (!ref && !firstUuid) {
15264
+ console.error(`Provided reference for ${key} is undefined on uuid change.`);
15287
15265
  }
15288
15266
  });
15267
+ if (!this.uuidOfPageHasBeenChangedSubscription) {
15268
+ this.uuidOfPageHasBeenChangedSubscription = this.viewContext.uuidOfPageHasBeenChanged
15269
+ .pipe(takeUntil(this._destroy$))
15270
+ .subscribe((pageName) => {
15271
+ if (pageName === this.pageName) {
15272
+ this.run();
15273
+ }
15274
+ });
15275
+ }
15289
15276
  }
15290
- if (uuid) {
15291
- this.viewContext.follow(this._uuid, this.detectChange);
15292
- }
15277
+ this.viewContext.follow(this._uuid, this.detectChange);
15293
15278
  }
15294
15279
  get model() {
15295
15280
  return this._model;
@@ -15520,17 +15505,9 @@ class SmartComponentApiClient {
15520
15505
  }
15521
15506
  }
15522
15507
  async load() {
15523
- this.componentModelLoaded = false;
15524
- const uuid = this.viewContext.getUuidOfPage(this.pageName);
15508
+ this.uuid = this.viewContext.getUuidOfPage(this.pageName);
15525
15509
  // this.model = await this.viewContext.load(this.uuid);
15526
- const change = await this.viewContext.load2(uuid);
15527
- this.componentModelLoaded = true;
15528
- this.uuid = uuid;
15529
- this.model = change.result;
15530
- if (this.model.widgets) {
15531
- // grids are already loaded in setUuid()
15532
- this.handleChangeWidgets(this.model.widgets, true);
15533
- }
15510
+ await this.viewContext.load2(this.uuid);
15534
15511
  }
15535
15512
  async executeUiAction(uiAction, options) {
15536
15513
  this.uiActionService.uiActionModel = {
@@ -15773,10 +15750,6 @@ class SmartComponentApiClient {
15773
15750
  }
15774
15751
  handleChanges(change) {
15775
15752
  try {
15776
- if (!this.componentModelLoaded) {
15777
- // initial load
15778
- return;
15779
- }
15780
15753
  if (change.changedWidgets) {
15781
15754
  this.handleChangeWidgets(change.changedWidgets);
15782
15755
  }
@@ -15820,27 +15793,21 @@ class SmartComponentApiClient {
15820
15793
  this.model = change.value;
15821
15794
  }
15822
15795
  }
15823
- handleChangeWidgets(changedWidgets, skipLoad = false) {
15796
+ handleChangeWidgets(changedWidgets) {
15824
15797
  let widgets = this.getWidgets();
15825
15798
  changedWidgets.forEach((key) => {
15826
15799
  const reference = widgets.get(key);
15827
15800
  if (reference instanceof SmartGridComponent) {
15828
15801
  this.setupGridServices(reference);
15829
- if (!skipLoad) {
15830
- reference.refresh();
15831
- }
15802
+ reference.refresh();
15832
15803
  }
15833
15804
  else if (reference instanceof SmarttreeGenericService) {
15834
- if (!skipLoad) {
15835
- reference.initialize();
15836
- }
15805
+ reference.initialize();
15837
15806
  }
15838
15807
  else if (reference instanceof SmartFilterEditorService) {
15839
- if (!skipLoad) {
15840
- reference.load();
15841
- }
15808
+ reference.load();
15842
15809
  }
15843
- else if (!skipLoad && reference === undefined) {
15810
+ else if (reference === undefined) {
15844
15811
  console.error(`Provided reference for ${key} is undefined.`);
15845
15812
  }
15846
15813
  });