@ethlete/query 3.0.0 → 3.0.1
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/esm2020/lib/directives/infinity-query.directive.mjs +9 -8
- package/fesm2015/ethlete-query.mjs +8 -7
- package/fesm2015/ethlete-query.mjs.map +1 -1
- package/fesm2020/ethlete-query.mjs +8 -7
- package/fesm2020/ethlete-query.mjs.map +1 -1
- package/lib/directives/infinity-query.directive.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1368,7 +1368,7 @@ class InfinityQueryDirective {
|
|
|
1368
1368
|
this._queryConfigChanged$ = new Subject();
|
|
1369
1369
|
this._viewContext = {
|
|
1370
1370
|
$implicit: null,
|
|
1371
|
-
|
|
1371
|
+
etInfinityQuery: null,
|
|
1372
1372
|
loading: false,
|
|
1373
1373
|
error: null,
|
|
1374
1374
|
isFirstLoad: false,
|
|
@@ -1435,7 +1435,7 @@ class InfinityQueryDirective {
|
|
|
1435
1435
|
if (isQueryStateLoading(state) || isDelayed || (!didReceiveFirstData && isQueryStateSuccess(state))) {
|
|
1436
1436
|
this._viewContext.loading = true;
|
|
1437
1437
|
this._viewContext.error = null;
|
|
1438
|
-
this._viewContext.isFirstLoad = this.context.
|
|
1438
|
+
this._viewContext.isFirstLoad = this.context.etInfinityQuery === null;
|
|
1439
1439
|
}
|
|
1440
1440
|
else if (isQueryStateFailure(state)) {
|
|
1441
1441
|
this._viewContext.loading = false;
|
|
@@ -1451,7 +1451,7 @@ class InfinityQueryDirective {
|
|
|
1451
1451
|
else {
|
|
1452
1452
|
this._viewContext.loading = false;
|
|
1453
1453
|
this._viewContext.error = null;
|
|
1454
|
-
this._viewContext.
|
|
1454
|
+
this._viewContext.etInfinityQuery = null;
|
|
1455
1455
|
this._viewContext.$implicit = null;
|
|
1456
1456
|
this._viewContext.isFirstLoad = false;
|
|
1457
1457
|
this._viewContext.canLoadMore = false;
|
|
@@ -1466,7 +1466,7 @@ class InfinityQueryDirective {
|
|
|
1466
1466
|
.subscribe();
|
|
1467
1467
|
instance.data$
|
|
1468
1468
|
.pipe(skip(1), tap((data) => {
|
|
1469
|
-
this._viewContext.
|
|
1469
|
+
this._viewContext.etInfinityQuery = this._viewContext.$implicit = data;
|
|
1470
1470
|
this._data$.next(data);
|
|
1471
1471
|
if (!this._didReceiveFirstData$.getValue()) {
|
|
1472
1472
|
this._didReceiveFirstData$.next(true);
|
|
@@ -1501,7 +1501,7 @@ class InfinityQueryDirective {
|
|
|
1501
1501
|
this._queryConfigChanged$.next(true);
|
|
1502
1502
|
this._viewContext.loading = false;
|
|
1503
1503
|
this._viewContext.error = null;
|
|
1504
|
-
this._viewContext.
|
|
1504
|
+
this._viewContext.etInfinityQuery = null;
|
|
1505
1505
|
this._viewContext.$implicit = null;
|
|
1506
1506
|
this._viewContext.isFirstLoad = false;
|
|
1507
1507
|
this._viewContext.canLoadMore = false;
|
|
@@ -1513,7 +1513,7 @@ class InfinityQueryDirective {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
InfinityQueryDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: InfinityQueryDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1516
|
-
InfinityQueryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: InfinityQueryDirective, isStandalone: true, selector: "[etInfinityQuery]", inputs: { infinityQuery: "infinityQuery" }, providers: [{ provide: INFINITY_QUERY_TOKEN, useExisting: InfinityQueryDirective }, DestroyService], exportAs: ["etInfinityQuery"], hostDirectives: [{ directive: i1.DelayableDirective }], ngImport: i0 });
|
|
1516
|
+
InfinityQueryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: InfinityQueryDirective, isStandalone: true, selector: "[etInfinityQuery]", inputs: { infinityQuery: ["etInfinityQuery", "infinityQuery"] }, providers: [{ provide: INFINITY_QUERY_TOKEN, useExisting: InfinityQueryDirective }, DestroyService], exportAs: ["etInfinityQuery"], hostDirectives: [{ directive: i1.DelayableDirective }], ngImport: i0 });
|
|
1517
1517
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: InfinityQueryDirective, decorators: [{
|
|
1518
1518
|
type: Directive,
|
|
1519
1519
|
args: [{
|
|
@@ -1525,7 +1525,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
|
|
|
1525
1525
|
hostDirectives: [DelayableDirective],
|
|
1526
1526
|
}]
|
|
1527
1527
|
}], propDecorators: { infinityQuery: [{
|
|
1528
|
-
type: Input
|
|
1528
|
+
type: Input,
|
|
1529
|
+
args: ['etInfinityQuery']
|
|
1529
1530
|
}] } });
|
|
1530
1531
|
|
|
1531
1532
|
class InfinityQueryTriggerDirective {
|