@one-paragon/angular-utilities 2.0.16 → 2.0.18
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/fesm2022/one-paragon-angular-utilities.mjs +5 -4
- package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
- package/http-request-state/HttpRequestStateStore.d.ts +4 -3
- package/package.json +1 -1
- package/table-builder/classes/table-store.d.ts +4 -4
- package/table-builder/components/table-container/table-container.d.ts +2 -2
- package/table-builder/directives/table-wrapper.directive.d.ts +1 -1
|
@@ -554,9 +554,10 @@ class HttpRequestStateStore extends ComponentStore {
|
|
|
554
554
|
selectHttpState$ = this.select(a => a.response);
|
|
555
555
|
$selectStatus = computed(() => this.$selectHttpState()?.status);
|
|
556
556
|
selectStatus$ = this.selectHttpState$.pipe(map(s => s.status));
|
|
557
|
-
$
|
|
558
|
-
$
|
|
559
|
-
$
|
|
557
|
+
$isSuccess = computed(() => isSuccessState(this.$selectHttpState()));
|
|
558
|
+
$isError = computed(() => isErrorState(this.$selectHttpState()));
|
|
559
|
+
$isInProgress = computed(() => this.$selectStatus() === HttpRequestStatus.inProgress);
|
|
560
|
+
$isNotStarted = computed(() => this.$selectStatus() === HttpRequestStatus.notStarted);
|
|
560
561
|
selectError$ = this.selectHttpState$.pipe(filter(isErrorState), map(state => state.error));
|
|
561
562
|
$selectError = computed(() => {
|
|
562
563
|
const state = this.$selectHttpState();
|
|
@@ -5642,7 +5643,7 @@ class TableContainerComponent {
|
|
|
5642
5643
|
return ({ value: updateSortState(prev.value.value, curr), timestamp: new Date().getTime() });
|
|
5643
5644
|
}
|
|
5644
5645
|
});
|
|
5645
|
-
$allData = computed(() => this.$tableBuilder()?.$data() || []);
|
|
5646
|
+
$allData = computed(() => (this.$tableBuilder()?.$initialized() && this.$tableBuilder()?.$data()) || []);
|
|
5646
5647
|
$allDataTimeStamped = computed(() => {
|
|
5647
5648
|
const data = this.$allData();
|
|
5648
5649
|
if (!data)
|