@firestitch/filter 12.12.1 → 12.12.2

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.
@@ -1706,14 +1706,6 @@ class FsFilterItemsStore {
1706
1706
  return params;
1707
1707
  }
1708
1708
  init(p) {
1709
- this._ready$
1710
- .pipe(take(1), takeUntil(this._destroy$))
1711
- .subscribe(() => {
1712
- this.items
1713
- .forEach((item) => {
1714
- item.init(item);
1715
- });
1716
- });
1717
1709
  this.items
1718
1710
  .forEach((item) => {
1719
1711
  item.initValues(p[item.name]);
@@ -2223,6 +2215,7 @@ class ExternalParamsController {
2223
2215
  this._savePersistedParams();
2224
2216
  }
2225
2217
  initItems() {
2218
+ this._itemsStore.ready$;
2226
2219
  this._pending$.next(true);
2227
2220
  if (this._savedFilters.enabled) {
2228
2221
  this._savedFilters
@@ -3789,13 +3782,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
3789
3782
  }] } });
3790
3783
 
3791
3784
  class FilterComponent {
3792
- constructor(_filterOverlay, _zone, _externalParams, _filterItems, _actions, _defaultConfig) {
3785
+ constructor(_defaultConfig, _filterOverlay, _zone, _externalParams, _filterItems, _actions) {
3786
+ this._defaultConfig = _defaultConfig;
3793
3787
  this._filterOverlay = _filterOverlay;
3794
3788
  this._zone = _zone;
3795
3789
  this._externalParams = _externalParams;
3796
3790
  this._filterItems = _filterItems;
3797
3791
  this._actions = _actions;
3798
- this._defaultConfig = _defaultConfig;
3799
3792
  this.showSortBy = true;
3800
3793
  this.showFilterInput = true;
3801
3794
  this.closed = new EventEmitter();
@@ -4083,6 +4076,13 @@ class FilterComponent {
4083
4076
  this.config.init(data, this._sort);
4084
4077
  }
4085
4078
  this._updateChipsVisibility();
4079
+ // Waiting for external ViewChilds
4080
+ setTimeout(() => {
4081
+ this.items
4082
+ .forEach((item) => {
4083
+ item.init(item);
4084
+ });
4085
+ });
4086
4086
  }
4087
4087
  clear(event = null) {
4088
4088
  if (event) {
@@ -4311,7 +4311,7 @@ class FilterComponent {
4311
4311
  this._hasFilterChips$.next(hasFilterChips);
4312
4312
  }
4313
4313
  }
4314
- FilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterComponent, deps: [{ token: FsFilterOverlayService }, { token: i0.NgZone }, { token: ExternalParamsController }, { token: FsFilterItemsStore }, { token: ActionsController }, { token: FS_FILTER_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4314
+ FilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterComponent, deps: [{ token: FS_FILTER_CONFIG, optional: true }, { token: FsFilterOverlayService }, { token: i0.NgZone }, { token: ExternalParamsController }, { token: FsFilterItemsStore }, { token: ActionsController }], target: i0.ɵɵFactoryTarget.Component });
4315
4315
  FilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FilterComponent, selector: "fs-filter", inputs: { setConfig: ["config", "setConfig"], setFilter: ["filter", "setFilter"], showSortBy: "showSortBy", showFilterInput: "showFilterInput" }, outputs: { closed: "closed", opened: "opened", ready: "ready" }, host: { properties: { "class.filters-open": "this.showFilterMenu", "class.window-desktop": "this.windowDesktop", "class.fs-filter": "this.fsFilterClass", "class.has-keyword": "this.hasKeyword" } }, providers: [
4316
4316
  FsFilterOverlayService,
4317
4317
  ExternalParamsController,
@@ -4341,12 +4341,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
4341
4341
  ],
4342
4342
  changeDetection: ChangeDetectionStrategy.OnPush,
4343
4343
  }]
4344
- }], ctorParameters: function () { return [{ type: FsFilterOverlayService }, { type: i0.NgZone }, { type: ExternalParamsController }, { type: FsFilterItemsStore }, { type: ActionsController }, { type: FsFilterConfig, decorators: [{
4344
+ }], ctorParameters: function () { return [{ type: FsFilterConfig, decorators: [{
4345
4345
  type: Optional
4346
4346
  }, {
4347
4347
  type: Inject,
4348
4348
  args: [FS_FILTER_CONFIG]
4349
- }] }]; }, propDecorators: { setConfig: [{
4349
+ }] }, { type: FsFilterOverlayService }, { type: i0.NgZone }, { type: ExternalParamsController }, { type: FsFilterItemsStore }, { type: ActionsController }]; }, propDecorators: { setConfig: [{
4350
4350
  type: Input,
4351
4351
  args: ['config']
4352
4352
  }], setFilter: [{