@firestitch/list 18.0.52 → 18.0.54
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.
- package/app/classes/list-controller.d.ts +2 -1
- package/app/components/list/list.component.d.ts +2 -1
- package/esm2022/app/classes/list-controller.mjs +7 -4
- package/esm2022/app/components/list/list.component.mjs +1 -1
- package/fesm2022/firestitch-list.mjs +6 -3
- package/fesm2022/firestitch-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4499,9 +4499,8 @@ class List {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
this._initFilters();
|
|
4501
4501
|
}
|
|
4502
|
-
reload(
|
|
4502
|
+
reload() {
|
|
4503
4503
|
this._loading$.next(true);
|
|
4504
|
-
this._filtersQuery.next(query);
|
|
4505
4504
|
this.dataController.setOperation(FsListState.Reload);
|
|
4506
4505
|
this._fetch$.next(null);
|
|
4507
4506
|
return this._fetchComplete$
|
|
@@ -4894,7 +4893,7 @@ class List {
|
|
|
4894
4893
|
autoReload: this.autoReload,
|
|
4895
4894
|
init: this._filterInit.bind(this),
|
|
4896
4895
|
change: this._filterChange.bind(this),
|
|
4897
|
-
reload: (this._config.reload ?? true) ? this.
|
|
4896
|
+
reload: (this._config.reload ?? true) ? this._filterReload.bind(this) : null,
|
|
4898
4897
|
sortChange: this._filterSort.bind(this),
|
|
4899
4898
|
heading: this.heading,
|
|
4900
4899
|
subheading: this.subheading,
|
|
@@ -4905,6 +4904,10 @@ class List {
|
|
|
4905
4904
|
};
|
|
4906
4905
|
}
|
|
4907
4906
|
}
|
|
4907
|
+
_filterReload(query) {
|
|
4908
|
+
this._filtersQuery.next(query);
|
|
4909
|
+
this.reload();
|
|
4910
|
+
}
|
|
4908
4911
|
/**
|
|
4909
4912
|
* Callback when Filter has been initialized
|
|
4910
4913
|
*
|