@ethlete/query 3.0.0 → 3.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.
- package/esm2020/lib/directives/infinity-query-trigger.directive.mjs +3 -3
- package/esm2020/lib/directives/infinity-query.directive.mjs +11 -10
- package/esm2020/lib/directives/query.directive.mjs +3 -3
- package/esm2020/lib/query/query.types.mjs +1 -1
- package/esm2020/lib/query/query.utils.mjs +1 -1
- package/fesm2015/ethlete-query.mjs +16 -15
- package/fesm2015/ethlete-query.mjs.map +1 -1
- package/fesm2020/ethlete-query.mjs +16 -15
- package/fesm2020/ethlete-query.mjs.map +1 -1
- package/lib/directives/infinity-query.directive.d.ts +2 -2
- package/lib/query/query.types.d.ts +2 -1
- package/lib/query/query.utils.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1183,9 +1183,9 @@ class QueryDirective {
|
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
|
-
QueryDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1187
|
-
QueryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.
|
|
1188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1186
|
+
QueryDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: QueryDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ErrorHandler }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1187
|
+
QueryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: QueryDirective, isStandalone: true, selector: "[etQuery]", inputs: { query: ["etQuery", "query"], cache: ["etQueryCache", "cache"] }, ngImport: i0 });
|
|
1188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: QueryDirective, decorators: [{
|
|
1189
1189
|
type: Directive,
|
|
1190
1190
|
args: [{
|
|
1191
1191
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -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;
|
|
@@ -1512,9 +1512,9 @@ class InfinityQueryDirective {
|
|
|
1512
1512
|
this._data$.next([]);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
|
-
InfinityQueryDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1516
|
-
InfinityQueryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.
|
|
1517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1515
|
+
InfinityQueryDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InfinityQueryDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1516
|
+
InfinityQueryDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", 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
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InfinityQueryDirective, decorators: [{
|
|
1518
1518
|
type: Directive,
|
|
1519
1519
|
args: [{
|
|
1520
1520
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -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 {
|
|
@@ -1565,9 +1566,9 @@ class InfinityQueryTriggerDirective {
|
|
|
1565
1566
|
this._observer.observe(this._elementRef.nativeElement);
|
|
1566
1567
|
}
|
|
1567
1568
|
}
|
|
1568
|
-
InfinityQueryTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1569
|
-
InfinityQueryTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.
|
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1569
|
+
InfinityQueryTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InfinityQueryTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1570
|
+
InfinityQueryTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: InfinityQueryTriggerDirective, isStandalone: true, selector: "[etInfinityQueryTrigger], et-infinity-query-trigger", inputs: { scrollContainerSelector: "scrollContainerSelector" }, ngImport: i0 });
|
|
1571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: InfinityQueryTriggerDirective, decorators: [{
|
|
1571
1572
|
type: Directive,
|
|
1572
1573
|
args: [{
|
|
1573
1574
|
// eslint-disable-next-line @angular-eslint/directive-selector
|