@firestitch/filter 12.0.1 → 12.0.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.
@@ -139,6 +139,7 @@ export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy
139
139
  search(event: any): void;
140
140
  reload(event?: any): void;
141
141
  getItem(name: any): BaseItem<any>;
142
+ fetchQueryParams(): void;
142
143
  /**
143
144
  * Call change callback and apply new filter values
144
145
  */
@@ -31,6 +31,7 @@ export declare class ExternalParamsController implements OnDestroy {
31
31
  reloadFiltersWithValues(params: IFilterExternalParams, shouldResetSavedFilters?: boolean): void;
32
32
  initItems(): void;
33
33
  _initItemsValues(): void;
34
+ fetchQueryParams(): void;
34
35
  private _initPersistance;
35
36
  private _initQueryParams;
36
37
  private _initSavedFilters;
@@ -2816,6 +2816,10 @@
2816
2816
  this._saveQueryParams();
2817
2817
  this._savePersistedParams();
2818
2818
  };
2819
+ ExternalParamsController.prototype.fetchQueryParams = function () {
2820
+ this._initQueryParams();
2821
+ this._itemsStore.updateItemsWithValues(this.params);
2822
+ };
2819
2823
  ExternalParamsController.prototype._initPersistance = function () {
2820
2824
  this._persistanceStore.init(this._config.persist, this._config.namespace, this._config.case);
2821
2825
  };
@@ -4891,6 +4895,9 @@
4891
4895
  return this.items
4892
4896
  .find(function (item) { return item.name === name; });
4893
4897
  };
4898
+ FilterComponent.prototype.fetchQueryParams = function () {
4899
+ this._externalParams.fetchQueryParams();
4900
+ };
4894
4901
  /**
4895
4902
  * Call change callback and apply new filter values
4896
4903
  */