@smartbit4all/ng-client 3.3.228 → 3.3.230

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.
@@ -15763,7 +15763,9 @@ class SmartComponentApiClient {
15763
15763
  if (identifier && !this.filterModelChangeSubjects.has(identifier)) {
15764
15764
  this.filterModelChangeSubjects.set(identifier, service.modelChanged);
15765
15765
  service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
15766
- this.initActions();
15766
+ if (this.getAllFilterUiActionToolbars().length > 0) {
15767
+ this.initActions();
15768
+ }
15767
15769
  });
15768
15770
  }
15769
15771
  }
@@ -15878,12 +15880,15 @@ class SmartComponentApiClient {
15878
15880
  ?.flatMap((form) => form.getToolbars())
15879
15881
  .filter((toolbar) => toolbar !== undefined || toolbar !== null)
15880
15882
  .forEach((toolbar) => toolbars.push(toolbar));
15881
- this.getAllSmartFilterEditorContentComponents()
15883
+ this.getAllFilterUiActionToolbars().forEach((toolbar) => toolbars.push(toolbar));
15884
+ return toolbars;
15885
+ }
15886
+ getAllFilterUiActionToolbars() {
15887
+ return this.getAllSmartFilterEditorContentComponents()
15882
15888
  ?.filter((filter) => filter.simpleFilterRef?.instance !== undefined)
15883
15889
  .flatMap((filter) => filter.simpleFilterRef?.instance.getToolbars())
15884
15890
  .filter((toolbar) => toolbar !== undefined || toolbar !== null)
15885
- .forEach((toolbar) => toolbars.push(toolbar));
15886
- return toolbars;
15891
+ .map((toolbar) => toolbar);
15887
15892
  }
15888
15893
  initData() {
15889
15894
  if (this.model?.data) {
@@ -16266,9 +16271,9 @@ class SmartComponentApiClient {
16266
16271
  }
16267
16272
  else if (reference instanceof SmartFilterEditorContentComponent) {
16268
16273
  this.setupFilterServices(reference);
16269
- if (!skipLoad) {
16270
- reference.service.load();
16271
- }
16274
+ //if (!skipLoad) { // filter is not loaded when setting uuid
16275
+ reference.service.load();
16276
+ //}
16272
16277
  }
16273
16278
  else if (!skipLoad && reference === undefined) {
16274
16279
  console.error(`Provided reference for ${key} is undefined.`);