ng-virtual-list 21.12.0 → 22.12.0
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/README.md +54 -40
- package/fesm2022/ng-virtual-list.mjs +444 -300
- package/fesm2022/ng-virtual-list.mjs.map +1 -1
- package/package.json +4 -4
- package/types/ng-virtual-list.d.ts +95 -95
|
@@ -20,7 +20,7 @@ var ScrollbarStates;
|
|
|
20
20
|
* NgScrollBarService
|
|
21
21
|
* Maximum performance for extremely large lists.
|
|
22
22
|
* It is based on algorithms for virtualization of screen objects.
|
|
23
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
23
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-bar/ng-scroll-bar.service.ts
|
|
24
24
|
* @author Evgenii Alexandrovich Grebennikov
|
|
25
25
|
* @email djonnyx@gmail.com
|
|
26
26
|
*/
|
|
@@ -38,10 +38,10 @@ class NgScrollBarService {
|
|
|
38
38
|
click(event) {
|
|
39
39
|
this._$click.next(event);
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
42
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
42
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarService, providedIn: 'root' });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarService, decorators: [{
|
|
45
45
|
type: Injectable,
|
|
46
46
|
args: [{
|
|
47
47
|
providedIn: 'root'
|
|
@@ -52,7 +52,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
52
52
|
* NgScrollBarService
|
|
53
53
|
* Maximum performance for extremely large lists.
|
|
54
54
|
* It is based on algorithms for virtualization of screen objects.
|
|
55
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
55
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-bar/ng-scroll-bar-public.service.ts
|
|
56
56
|
* @author Evgenii Alexandrovich Grebennikov
|
|
57
57
|
* @email djonnyx@gmail.com
|
|
58
58
|
*/
|
|
@@ -60,10 +60,10 @@ class NgScrollBarPublicService {
|
|
|
60
60
|
_internalService = inject(NgScrollBarService);
|
|
61
61
|
get $click() { return this._internalService.$click; }
|
|
62
62
|
get $state() { return this._internalService.$state; }
|
|
63
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
64
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarPublicService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
64
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarPublicService, providedIn: 'root' });
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarPublicService, decorators: [{
|
|
67
67
|
type: Injectable,
|
|
68
68
|
args: [{
|
|
69
69
|
providedIn: 'root'
|
|
@@ -72,7 +72,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Alignments
|
|
75
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
75
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/alignments.ts
|
|
76
76
|
* @author Evgenii Alexandrovich Grebennikov
|
|
77
77
|
* @email djonnyx@gmail.com
|
|
78
78
|
*/
|
|
@@ -84,7 +84,7 @@ var Alignments;
|
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* Action modes for collection elements.
|
|
87
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
87
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/collection-modes.ts
|
|
88
88
|
* @author Evgenii Alexandrovich Grebennikov
|
|
89
89
|
* @email djonnyx@gmail.com
|
|
90
90
|
*/
|
|
@@ -102,7 +102,7 @@ var CollectionModes;
|
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* Axis of the arrangement of virtual list elements.
|
|
105
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
105
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/directions.ts
|
|
106
106
|
* @author Evgenii Alexandrovich Grebennikov
|
|
107
107
|
* @email djonnyx@gmail.com
|
|
108
108
|
*/
|
|
@@ -120,7 +120,7 @@ var Directions;
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Focus Alignments.
|
|
123
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
123
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/focus-alignments.ts
|
|
124
124
|
* @author Evgenii Alexandrovich Grebennikov
|
|
125
125
|
* @email djonnyx@gmail.com
|
|
126
126
|
*/
|
|
@@ -134,7 +134,7 @@ var FocusAlignments;
|
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* Modes for collapsing list items.
|
|
137
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
137
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/collapsing-modes.ts
|
|
138
138
|
* @author Evgenii Alexandrovich Grebennikov
|
|
139
139
|
* @email djonnyx@gmail.com
|
|
140
140
|
*/
|
|
@@ -156,7 +156,7 @@ var CollapsingModes;
|
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* Mods for selecting list items.
|
|
159
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
159
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/selecting-modes.ts
|
|
160
160
|
* @author Evgenii Alexandrovich Grebennikov
|
|
161
161
|
* @email djonnyx@gmail.com
|
|
162
162
|
*/
|
|
@@ -178,7 +178,7 @@ var SelectingModes;
|
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* SnapToAtemAligns.
|
|
181
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
181
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/snap-to-item-aligns.ts
|
|
182
182
|
* @author Evgenii Alexandrovich Grebennikov
|
|
183
183
|
* @email djonnyx@gmail.com
|
|
184
184
|
*/
|
|
@@ -200,7 +200,7 @@ var SnapToItemAligns;
|
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Snapping method.
|
|
203
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
203
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/snapping-method.ts
|
|
204
204
|
* @author Evgenii Alexandrovich Grebennikov
|
|
205
205
|
* @email djonnyx@gmail.com
|
|
206
206
|
*/
|
|
@@ -218,7 +218,7 @@ var SnappingMethods;
|
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* SpreadingModes.
|
|
221
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
221
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/spreading-modes.ts
|
|
222
222
|
* @author Evgenii Alexandrovich Grebennikov
|
|
223
223
|
* @email djonnyx@gmail.com
|
|
224
224
|
*/
|
|
@@ -238,7 +238,7 @@ var SpreadingModes;
|
|
|
238
238
|
* TextDirections.
|
|
239
239
|
* RTL - right-to-left.
|
|
240
240
|
* LTR - left-to-right.
|
|
241
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
241
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/text-directions.ts
|
|
242
242
|
* @author Evgenii Alexandrovich Grebennikov
|
|
243
243
|
* @email djonnyx@gmail.com
|
|
244
244
|
*/
|
|
@@ -414,7 +414,7 @@ const Z_INDEX_NONE = '-1', Z_INDEX_0 = '0', Z_INDEX_1 = '1', Z_INDEX_2 = '2', Z_
|
|
|
414
414
|
const NGVL_INDEX = 'ngvl-index',
|
|
415
415
|
/**
|
|
416
416
|
* getListElementByIndex
|
|
417
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
417
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/get-element-by-index.ts
|
|
418
418
|
* @author Evgenii Alexandrovich Grebennikov
|
|
419
419
|
* @email djonnyx@gmail.com
|
|
420
420
|
*/
|
|
@@ -423,7 +423,7 @@ getListElementByIndex = (index) => {
|
|
|
423
423
|
},
|
|
424
424
|
/**
|
|
425
425
|
* getListElements
|
|
426
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
426
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/get-element-by-index.ts
|
|
427
427
|
* @author Evgenii Alexandrovich Grebennikov
|
|
428
428
|
* @email djonnyx@gmail.com
|
|
429
429
|
*/
|
|
@@ -433,7 +433,7 @@ getListElements = () => {
|
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
435
|
* createDisplayId
|
|
436
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
436
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/create-display-id.ts
|
|
437
437
|
* @author Evgenii Alexandrovich Grebennikov
|
|
438
438
|
* @email djonnyx@gmail.com
|
|
439
439
|
*/
|
|
@@ -443,7 +443,7 @@ const createDisplayId = (listId, id) => {
|
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* matrix3d
|
|
446
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
446
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-list-item/utils/matrix-3d.ts
|
|
447
447
|
* @author Evgenii Alexandrovich Grebennikov
|
|
448
448
|
* @email djonnyx@gmail.com
|
|
449
449
|
*/
|
|
@@ -463,7 +463,7 @@ const ID = 'id', NGVL_VISIBILITY = 'ngvl-visibility', MATRIX_3D_HIDDEN = matrix3
|
|
|
463
463
|
|
|
464
464
|
/**
|
|
465
465
|
* TrackBoxEvents
|
|
466
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
466
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/core/events/track-box-events.ts
|
|
467
467
|
* @author Evgenii Alexandrovich Grebennikov
|
|
468
468
|
* @email djonnyx@gmail.com
|
|
469
469
|
*/
|
|
@@ -475,7 +475,7 @@ var TrackBoxEvents;
|
|
|
475
475
|
|
|
476
476
|
/**
|
|
477
477
|
* Mods for selecting list items.
|
|
478
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
478
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/enums/selecting-modes-types.ts
|
|
479
479
|
* @author Evgenii Alexandrovich Grebennikov
|
|
480
480
|
* @email djonnyx@gmail.com
|
|
481
481
|
*/
|
|
@@ -584,7 +584,7 @@ const getSelectorByItemId = (id) => {
|
|
|
584
584
|
* NgVirtualListService
|
|
585
585
|
* Maximum performance for extremely large lists.
|
|
586
586
|
* It is based on algorithms for virtualization of screen objects.
|
|
587
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
587
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/ng-virtual-list.service.ts
|
|
588
588
|
* @author Evgenii Alexandrovich Grebennikov
|
|
589
589
|
* @email djonnyx@gmail.com
|
|
590
590
|
*/
|
|
@@ -983,10 +983,10 @@ class NgVirtualListService {
|
|
|
983
983
|
scrollToEnd(options) {
|
|
984
984
|
this._$scrollToEnd.next(options);
|
|
985
985
|
}
|
|
986
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
987
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
986
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
987
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListService, providedIn: 'root' });
|
|
988
988
|
}
|
|
989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListService, decorators: [{
|
|
990
990
|
type: Injectable,
|
|
991
991
|
args: [{
|
|
992
992
|
providedIn: 'root'
|
|
@@ -997,7 +997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
997
997
|
* NgVirtualListPublicService
|
|
998
998
|
* Maximum performance for extremely large lists.
|
|
999
999
|
* It is based on algorithms for virtualization of screen objects.
|
|
1000
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1000
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/ng-virtual-list-publick.service.ts
|
|
1001
1001
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1002
1002
|
* @email djonnyx@gmail.com
|
|
1003
1003
|
*/
|
|
@@ -1099,10 +1099,10 @@ class NgVirtualListPublicService {
|
|
|
1099
1099
|
scrollToEnd(options) {
|
|
1100
1100
|
this._internalService.scrollToEnd(options);
|
|
1101
1101
|
}
|
|
1102
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1103
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListPublicService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1103
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListPublicService, providedIn: 'root' });
|
|
1104
1104
|
}
|
|
1105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListPublicService, decorators: [{
|
|
1106
1106
|
type: Injectable,
|
|
1107
1107
|
args: [{
|
|
1108
1108
|
providedIn: 'root'
|
|
@@ -1111,13 +1111,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1111
1111
|
|
|
1112
1112
|
/**
|
|
1113
1113
|
* BaseVirtualListItemComponent
|
|
1114
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1114
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/list-item/base/base-virtual-list-item-component.ts
|
|
1115
1115
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1116
1116
|
* @email djonnyx@gmail.com
|
|
1117
1117
|
*/
|
|
1118
1118
|
class BaseVirtualListItemComponent {
|
|
1119
|
-
_item = viewChild('item',
|
|
1120
|
-
|
|
1119
|
+
_item = viewChild('item', /* @ts-ignore */
|
|
1120
|
+
...(ngDevMode ? [{ debugName: "_item" }] : /* istanbul ignore next */ []));
|
|
1121
|
+
_container = viewChild('container', /* @ts-ignore */
|
|
1122
|
+
...(ngDevMode ? [{ debugName: "_container" }] : /* istanbul ignore next */ []));
|
|
1121
1123
|
_apiService = inject(NgVirtualListPublicService);
|
|
1122
1124
|
_service = inject(NgVirtualListService);
|
|
1123
1125
|
_id;
|
|
@@ -1141,12 +1143,18 @@ class BaseVirtualListItemComponent {
|
|
|
1141
1143
|
}
|
|
1142
1144
|
get isSelected() { return this._isSelected; }
|
|
1143
1145
|
_isCollapsed = false;
|
|
1144
|
-
config = signal({},
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1146
|
+
config = signal({}, /* @ts-ignore */
|
|
1147
|
+
...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
|
|
1148
|
+
measures = signal(null, /* @ts-ignore */
|
|
1149
|
+
...(ngDevMode ? [{ debugName: "measures" }] : /* istanbul ignore next */ []));
|
|
1150
|
+
focused = signal(false, /* @ts-ignore */
|
|
1151
|
+
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
1152
|
+
part = signal(PART_DEFAULT_ITEM, /* @ts-ignore */
|
|
1153
|
+
...(ngDevMode ? [{ debugName: "part" }] : /* istanbul ignore next */ []));
|
|
1154
|
+
fxPart = signal(PART_DEFAULT_ITEM_FX, /* @ts-ignore */
|
|
1155
|
+
...(ngDevMode ? [{ debugName: "fxPart" }] : /* istanbul ignore next */ []));
|
|
1156
|
+
data = signal(null, /* @ts-ignore */
|
|
1157
|
+
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
1150
1158
|
_data = null;
|
|
1151
1159
|
set item(v) {
|
|
1152
1160
|
if (this._data === v || this._data?.id === -1 || !v) {
|
|
@@ -1186,7 +1194,8 @@ class BaseVirtualListItemComponent {
|
|
|
1186
1194
|
get visibility() {
|
|
1187
1195
|
return this._elementRef.nativeElement.style.visibility;
|
|
1188
1196
|
}
|
|
1189
|
-
itemRenderer = signal(undefined,
|
|
1197
|
+
itemRenderer = signal(undefined, /* @ts-ignore */
|
|
1198
|
+
...(ngDevMode ? [{ debugName: "itemRenderer" }] : /* istanbul ignore next */ []));
|
|
1190
1199
|
_renderer;
|
|
1191
1200
|
set renderer(v) {
|
|
1192
1201
|
if (this._renderer !== v) {
|
|
@@ -1218,17 +1227,20 @@ class BaseVirtualListItemComponent {
|
|
|
1218
1227
|
[CLASS_NAME_SNAPPED]: data?.config?.snapped ?? false, [CLASS_NAME_SNAPPED_OUT]: data?.config?.snappedOut ?? false,
|
|
1219
1228
|
[CLASS_NAME_FOCUS]: _focus,
|
|
1220
1229
|
};
|
|
1221
|
-
},
|
|
1230
|
+
}, /* @ts-ignore */
|
|
1231
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
1222
1232
|
this.index = computed(() => {
|
|
1223
1233
|
return this.config()?.tabIndex ?? -1;
|
|
1224
|
-
},
|
|
1234
|
+
}, /* @ts-ignore */
|
|
1235
|
+
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
1225
1236
|
this.templateContext = computed(() => {
|
|
1226
1237
|
const data = this.data(), measures = this.measures(), config = this.config();
|
|
1227
1238
|
return {
|
|
1228
1239
|
data: data?.data, prevData: data?.previouseData, nextData: data?.nextData, measures,
|
|
1229
1240
|
config, reseted: false, index: data?.index ?? -1, api: this._apiService,
|
|
1230
1241
|
};
|
|
1231
|
-
},
|
|
1242
|
+
}, /* @ts-ignore */
|
|
1243
|
+
...(ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []));
|
|
1232
1244
|
if (this._service.isVertical) {
|
|
1233
1245
|
this._elementRef.nativeElement.style.height = `${this._service.itemSize}px`;
|
|
1234
1246
|
}
|
|
@@ -1381,10 +1393,10 @@ class BaseVirtualListItemComponent {
|
|
|
1381
1393
|
styles.visibility = VISIBILITY_HIDDEN;
|
|
1382
1394
|
}
|
|
1383
1395
|
}
|
|
1384
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1385
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1396
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BaseVirtualListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1397
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BaseVirtualListItemComponent, isStandalone: false, selector: "ng-base-virtual-list-item", viewQueries: [{ propertyName: "_item", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "_container", first: true, predicate: ["container"], descendants: true, isSignal: true }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1386
1398
|
}
|
|
1387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BaseVirtualListItemComponent, decorators: [{
|
|
1388
1400
|
type: Component,
|
|
1389
1401
|
args: [{
|
|
1390
1402
|
selector: 'ng-base-virtual-list-item',
|
|
@@ -1399,7 +1411,7 @@ const DEFAULT_MAX_DISTANCE = 40;
|
|
|
1399
1411
|
* VirtualClickDirective
|
|
1400
1412
|
* Maximum performance for extremely large lists.
|
|
1401
1413
|
* It is based on algorithms for virtualization of screen objects.
|
|
1402
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1414
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/directives/item-click/item-click.directive.ts
|
|
1403
1415
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1404
1416
|
* @email djonnyx@gmail.com
|
|
1405
1417
|
*/
|
|
@@ -1434,10 +1446,10 @@ class VirtualClickDirective {
|
|
|
1434
1446
|
}));
|
|
1435
1447
|
})).subscribe();
|
|
1436
1448
|
}
|
|
1437
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1438
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VirtualClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1450
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: VirtualClickDirective, isStandalone: false, selector: "[virtualClick]", inputs: { maxDistance: ["maxClickDistance", "maxDistance"] }, outputs: { onVirtualClick: "onVirtualClick" }, ngImport: i0 });
|
|
1439
1451
|
}
|
|
1440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VirtualClickDirective, decorators: [{
|
|
1441
1453
|
type: Directive,
|
|
1442
1454
|
args: [{
|
|
1443
1455
|
selector: '[virtualClick]',
|
|
@@ -1452,12 +1464,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1452
1464
|
* Virtual list component.
|
|
1453
1465
|
* Maximum performance for extremely large lists.
|
|
1454
1466
|
* It is based on algorithms for virtualization of screen objects.
|
|
1455
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1467
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-list-item/ng-virtual-list-item.component.ts
|
|
1456
1468
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1457
1469
|
* @email djonnyx@gmail.com
|
|
1458
1470
|
*/
|
|
1459
1471
|
class NgVirtualListItemComponent extends BaseVirtualListItemComponent {
|
|
1460
|
-
maxClickDistance = signal(DEFAULT_CLICK_DISTANCE,
|
|
1472
|
+
maxClickDistance = signal(DEFAULT_CLICK_DISTANCE, /* @ts-ignore */
|
|
1473
|
+
...(ngDevMode ? [{ debugName: "maxClickDistance" }] : /* istanbul ignore next */ []));
|
|
1461
1474
|
_injector = inject(Injector);
|
|
1462
1475
|
constructor() {
|
|
1463
1476
|
super();
|
|
@@ -1625,10 +1638,10 @@ class NgVirtualListItemComponent extends BaseVirtualListItemComponent {
|
|
|
1625
1638
|
onClickHandler() {
|
|
1626
1639
|
this._service.virtualClick(this._data);
|
|
1627
1640
|
}
|
|
1628
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1629
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1641
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1642
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: NgVirtualListItemComponent, isStandalone: false, selector: "ng-virtual-list-item", host: { attributes: { "role": "listitem" }, classAttribute: "ngvl__item" }, usesInheritance: true, ngImport: i0, template: "@let renderer = itemRenderer();\r\n@let class = classes();\r\n<div #item class=\"ngvl-item\" [ngClass]=\"class\" [part]=\"part()\" [attr.ngvl-index]=\"index()\" [attr.ngvl-visibility]=\"visibility\" tabindex=\"-1\">\r\n @if (_blendColor) {\r\n <div class=\"ngvl-item__blend-color\" [style.--blend-color]=\"_blendColor\"></div>\r\n }\r\n <div #container virtualClick [part]=\"fxPart()\" [maxClickDistance]=\"maxClickDistance()\" class=\"ngvl-item__container\"\r\n [ngClass]=\"class\" (onVirtualClick)=\"onClickHandler()\">\r\n @if (renderer) {\r\n <ng-container [ngTemplateOutlet]=\"renderer\" [ngTemplateOutletContext]=\"templateContext()\" />\r\n }\r\n </div>\r\n</div>", styles: [":host{display:block;position:absolute;left:0;top:0;box-sizing:border-box;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;-moz-user-drag:none;text-rendering:optimizeSpeed;image-rendering:auto}.ngvl-item{position:relative;margin:0;padding:0;overflow:hidden;outline:none;width:inherit;height:inherit;box-sizing:border-box}.ngvl-item__blend-color{position:absolute;left:0;top:0;width:100%;height:100%;background-color:var(--blend-color);z-index:-1}.ngvl-item__container{margin:0;padding:0;width:100%;height:100%;box-sizing:border-box}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: VirtualClickDirective, selector: "[virtualClick]", inputs: ["maxClickDistance"], outputs: ["onVirtualClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1630
1643
|
}
|
|
1631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListItemComponent, decorators: [{
|
|
1632
1645
|
type: Component,
|
|
1633
1646
|
args: [{ selector: 'ng-virtual-list-item', host: {
|
|
1634
1647
|
'class': 'ngvl__item',
|
|
@@ -1638,7 +1651,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1638
1651
|
|
|
1639
1652
|
/**
|
|
1640
1653
|
* Simple debounce function.
|
|
1641
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1654
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/debounce.ts
|
|
1642
1655
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1643
1656
|
* @email djonnyx@gmail.com
|
|
1644
1657
|
* @param cb - Callback.
|
|
@@ -1699,7 +1712,7 @@ const debounce = (cb, debounceTime = 0, maxSkips = 0) => {
|
|
|
1699
1712
|
|
|
1700
1713
|
/**
|
|
1701
1714
|
* Switch css classes
|
|
1702
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1715
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/toggle-class-name.ts
|
|
1703
1716
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1704
1717
|
* @email djonnyx@gmail.com
|
|
1705
1718
|
*/
|
|
@@ -1714,7 +1727,7 @@ const toggleClassName = (el, className, removeClassName) => {
|
|
|
1714
1727
|
|
|
1715
1728
|
/**
|
|
1716
1729
|
* Scroll event.
|
|
1717
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1730
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/scroll-event.ts
|
|
1718
1731
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1719
1732
|
* @email djonnyx@gmail.com
|
|
1720
1733
|
*/
|
|
@@ -1903,7 +1916,7 @@ const CACHE_BOX_CHANGE_EVENT_NAME = 'change';
|
|
|
1903
1916
|
/**
|
|
1904
1917
|
* Cache map.
|
|
1905
1918
|
* Emits a change event on each mutation.
|
|
1906
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
1919
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/core/cache-map.ts
|
|
1907
1920
|
* @author Evgenii Alexandrovich Grebennikov
|
|
1908
1921
|
* @email djonnyx@gmail.com
|
|
1909
1922
|
*/
|
|
@@ -2000,7 +2013,7 @@ class CacheMap extends EventEmitter {
|
|
|
2000
2013
|
|
|
2001
2014
|
/**
|
|
2002
2015
|
* getServiceIdProp
|
|
2003
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
2016
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/core/utils/get-service-id-prop.ts
|
|
2004
2017
|
* @author Evgenii Alexandrovich Grebennikov
|
|
2005
2018
|
* @email djonnyx@gmail.com
|
|
2006
2019
|
*/
|
|
@@ -2012,7 +2025,7 @@ const getServiceIdProp = (trackBy) => {
|
|
|
2012
2025
|
* Tracks display items by property
|
|
2013
2026
|
* Maximum performance for extremely large lists.
|
|
2014
2027
|
* It is based on algorithms for virtualization of screen objects.
|
|
2015
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
2028
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/core/tracker.ts
|
|
2016
2029
|
* @author Evgenii Alexandrovich Grebennikov
|
|
2017
2030
|
* @email djonnyx@gmail.com
|
|
2018
2031
|
*/
|
|
@@ -2274,7 +2287,7 @@ const START_COLLECTION_PREFIX_ID = 'n', END_COLLECTION_PREFIX_ID = 'p', DEFAULT_
|
|
|
2274
2287
|
|
|
2275
2288
|
/**
|
|
2276
2289
|
* ItemDisplayMethods
|
|
2277
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
2290
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/core/enums/item-display-methods.ts
|
|
2278
2291
|
* @author Evgenii Alexandrovich Grebennikov
|
|
2279
2292
|
* @email djonnyx@gmail.com
|
|
2280
2293
|
*/
|
|
@@ -2288,7 +2301,7 @@ var ItemDisplayMethods;
|
|
|
2288
2301
|
|
|
2289
2302
|
/**
|
|
2290
2303
|
* An object that performs tracking, calculations and caching.
|
|
2291
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
2304
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/core/track-box.ts
|
|
2292
2305
|
* @author Evgenii Alexandrovich Grebennikov
|
|
2293
2306
|
* @email djonnyx@gmail.com
|
|
2294
2307
|
*/
|
|
@@ -3639,7 +3652,7 @@ const isSnappingMethodDefault = (method) => {
|
|
|
3639
3652
|
const HORIZONTAL_ALIASES = [Directions.HORIZONTAL, 'horizontal'], VERTICAL_ALIASES = [Directions.VERTICAL, 'vertical'];
|
|
3640
3653
|
/**
|
|
3641
3654
|
* Determines the axis membership of a virtual list
|
|
3642
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3655
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/is-direction.ts
|
|
3643
3656
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3644
3657
|
* @email djonnyx@gmail.com
|
|
3645
3658
|
*/
|
|
@@ -3653,7 +3666,7 @@ const isDirection = (src, expected) => {
|
|
|
3653
3666
|
const NONE_ALIASES$1 = [SelectingModes.NONE, 'none'], SELECT_ALIASES = [SelectingModes.SELECT, 'select'], MULTI_SELECT_ALIASES = [SelectingModes.MULTI_SELECT, 'multi-select'];
|
|
3654
3667
|
/**
|
|
3655
3668
|
* Defines the mode for selecting list items.
|
|
3656
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3669
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/is-select-mode.ts
|
|
3657
3670
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3658
3671
|
* @email djonnyx@gmail.com
|
|
3659
3672
|
*/
|
|
@@ -3670,7 +3683,7 @@ const isSelectMode = (src, expected) => {
|
|
|
3670
3683
|
const NONE_ALIASES = [CollapsingModes.NONE, 'none'], MULTIMPLE_ALIASES = [CollapsingModes.MULTI_COLLAPSE, 'multi-collapse'], ACCORDION_ALIASES = [CollapsingModes.ACCORDION, 'accordion'];
|
|
3671
3684
|
/**
|
|
3672
3685
|
* Defines the mode for collapsing list items.
|
|
3673
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3686
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/is-collapse-mode.ts
|
|
3674
3687
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3675
3688
|
* @email djonnyx@gmail.com
|
|
3676
3689
|
*/
|
|
@@ -3687,7 +3700,7 @@ const isCollapseMode = (src, expected) => {
|
|
|
3687
3700
|
const NORMAL_ALIASES$1 = [CollectionModes.NORMAL, 'normal'], LAZY_ALIASES = [CollectionModes.LAZY, 'lazy'];
|
|
3688
3701
|
/**
|
|
3689
3702
|
* Determines the axis membership of a virtual list
|
|
3690
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3703
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/is-collection-mode.ts
|
|
3691
3704
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3692
3705
|
* @email djonnyx@gmail.com
|
|
3693
3706
|
*/
|
|
@@ -3742,7 +3755,7 @@ const formatActualDisplayItems = (items, startOffset, endOffset, scrollSize, isV
|
|
|
3742
3755
|
|
|
3743
3756
|
/**
|
|
3744
3757
|
* isPercentageValue
|
|
3745
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3758
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/is-persentage-value.ts
|
|
3746
3759
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3747
3760
|
* @email djonnyx@gmail.com
|
|
3748
3761
|
*/
|
|
@@ -3756,7 +3769,7 @@ const isPercentageValue = (value) => {
|
|
|
3756
3769
|
const PERSENTS_100 = 100, PERSENTS_1 = 1, SIZE_PERSENT = '%', CHAR_NONE = '';
|
|
3757
3770
|
/**
|
|
3758
3771
|
* parseFloatOrPersentageValue
|
|
3759
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3772
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/parse-float-or-persentage-value.ts
|
|
3760
3773
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3761
3774
|
* @email djonnyx@gmail.com
|
|
3762
3775
|
*/
|
|
@@ -3784,7 +3797,7 @@ const calculate = (exp, reference, operator = 1) => {
|
|
|
3784
3797
|
};
|
|
3785
3798
|
/**
|
|
3786
3799
|
* parseArithmeticExpression
|
|
3787
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3800
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/parse-arithmetic-expression.ts
|
|
3788
3801
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3789
3802
|
* @email djonnyx@gmail.com
|
|
3790
3803
|
*/
|
|
@@ -3822,7 +3835,7 @@ const parseArithmeticExpression = (value, reference) => {
|
|
|
3822
3835
|
|
|
3823
3836
|
/**
|
|
3824
3837
|
* normalizeCollection
|
|
3825
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3838
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/normalize-collection.ts
|
|
3826
3839
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3827
3840
|
* @email djonnyx@gmail.com
|
|
3828
3841
|
*/
|
|
@@ -3864,7 +3877,7 @@ const normalizeCollection = (items, itemConfigMap, trackBy, divides) => {
|
|
|
3864
3877
|
const NORMAL_ALIASES = [SpreadingModes.NORMAL, 'normal'], INFINITY_ALIASES = [SpreadingModes.INFINITY, 'infinity'];
|
|
3865
3878
|
/**
|
|
3866
3879
|
* Determines the display mode of list items.
|
|
3867
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3880
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/is-select-mode.ts
|
|
3868
3881
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3869
3882
|
* @email djonnyx@gmail.com
|
|
3870
3883
|
*/
|
|
@@ -3896,7 +3909,7 @@ var ScrollerDirection$1;
|
|
|
3896
3909
|
* ScrollBox
|
|
3897
3910
|
* Maximum performance for extremely large lists.
|
|
3898
3911
|
* It is based on algorithms for virtualization of screen objects.
|
|
3899
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
3912
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/scroller/utils/scroll-box.ts
|
|
3900
3913
|
* @author Evgenii Alexandrovich Grebennikov
|
|
3901
3914
|
* @email djonnyx@gmail.com
|
|
3902
3915
|
*/
|
|
@@ -4037,7 +4050,7 @@ const SCROLL_EVENT$1 = new Event(SCROLLER_SCROLL);
|
|
|
4037
4050
|
|
|
4038
4051
|
/**
|
|
4039
4052
|
* calculateDirection
|
|
4040
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4053
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/calculate-direction.ts
|
|
4041
4054
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4042
4055
|
* @email djonnyx@gmail.com
|
|
4043
4056
|
*/
|
|
@@ -4054,7 +4067,7 @@ const calculateDirection = (buffer) => {
|
|
|
4054
4067
|
|
|
4055
4068
|
/**
|
|
4056
4069
|
* ScrollerDirection
|
|
4057
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4070
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/enums/scroller-direction.ts
|
|
4058
4071
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4059
4072
|
* @email djonnyx@gmail.com
|
|
4060
4073
|
*/
|
|
@@ -4068,7 +4081,7 @@ var ScrollerDirection;
|
|
|
4068
4081
|
* ScrollBox
|
|
4069
4082
|
* Maximum performance for extremely large lists.
|
|
4070
4083
|
* It is based on algorithms for virtualization of screen objects.
|
|
4071
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4084
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/scroll-box.ts
|
|
4072
4085
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4073
4086
|
* @email djonnyx@gmail.com
|
|
4074
4087
|
*/
|
|
@@ -4110,7 +4123,7 @@ class ScrollBox {
|
|
|
4110
4123
|
|
|
4111
4124
|
/**
|
|
4112
4125
|
* matrix3d
|
|
4113
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4126
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/matrix-3d.ts
|
|
4114
4127
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4115
4128
|
* @email djonnyx@gmail.com
|
|
4116
4129
|
*/
|
|
@@ -4125,7 +4138,7 @@ const matrix3d = (x, y) => {
|
|
|
4125
4138
|
|
|
4126
4139
|
/**
|
|
4127
4140
|
* getDir
|
|
4128
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4141
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/get-dir.ts
|
|
4129
4142
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4130
4143
|
* @email djonnyx@gmail.com
|
|
4131
4144
|
*/
|
|
@@ -4137,21 +4150,30 @@ const getDir = (p, c) => {
|
|
|
4137
4150
|
* BaseScrollView
|
|
4138
4151
|
* Maximum performance for extremely large lists.
|
|
4139
4152
|
* It is based on algorithms for virtualization of screen objects.
|
|
4140
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4153
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/base/base-scroll-view.component.ts
|
|
4141
4154
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4142
4155
|
* @email djonnyx@gmail.com
|
|
4143
4156
|
*/
|
|
4144
4157
|
class BaseScrollView {
|
|
4145
|
-
scrollContent = viewChild('scrollContent',
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4158
|
+
scrollContent = viewChild('scrollContent', /* @ts-ignore */
|
|
4159
|
+
...(ngDevMode ? [{ debugName: "scrollContent" }] : /* istanbul ignore next */ []));
|
|
4160
|
+
scrollViewport = viewChild('scrollViewport', /* @ts-ignore */
|
|
4161
|
+
...(ngDevMode ? [{ debugName: "scrollViewport" }] : /* istanbul ignore next */ []));
|
|
4162
|
+
direction = input(ScrollerDirection.VERTICAL, /* @ts-ignore */
|
|
4163
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
4164
|
+
startOffset = input(0, /* @ts-ignore */
|
|
4165
|
+
...(ngDevMode ? [{ debugName: "startOffset" }] : /* istanbul ignore next */ []));
|
|
4166
|
+
endOffset = input(0, /* @ts-ignore */
|
|
4167
|
+
...(ngDevMode ? [{ debugName: "endOffset" }] : /* istanbul ignore next */ []));
|
|
4168
|
+
alignmentStartOffset = input(0, /* @ts-ignore */
|
|
4169
|
+
...(ngDevMode ? [{ debugName: "alignmentStartOffset" }] : /* istanbul ignore next */ []));
|
|
4170
|
+
alignmentEndOffset = input(0, /* @ts-ignore */
|
|
4171
|
+
...(ngDevMode ? [{ debugName: "alignmentEndOffset" }] : /* istanbul ignore next */ []));
|
|
4172
|
+
isInfinity = input(false, /* @ts-ignore */
|
|
4173
|
+
...(ngDevMode ? [{ debugName: "isInfinity" }] : /* istanbul ignore next */ []));
|
|
4153
4174
|
isVertical;
|
|
4154
|
-
grabbing = signal(false,
|
|
4175
|
+
grabbing = signal(false, /* @ts-ignore */
|
|
4176
|
+
...(ngDevMode ? [{ debugName: "grabbing" }] : /* istanbul ignore next */ []));
|
|
4155
4177
|
_inversion = inject(SCROLL_VIEW_INVERSION);
|
|
4156
4178
|
_overscrollEnabled = inject(SCROLL_VIEW_OVERSCROLL_ENABLED);
|
|
4157
4179
|
_$updateScrollBar = new Subject();
|
|
@@ -4239,13 +4261,16 @@ class BaseScrollView {
|
|
|
4239
4261
|
}
|
|
4240
4262
|
return contentHeight < viewportHeight ? isVertical ? startOffset : 0 : ((contentHeight + this.alignmentEndOffset()) - viewportHeight);
|
|
4241
4263
|
}
|
|
4242
|
-
viewportBounds = signal({ width: 0, height: 0 },
|
|
4243
|
-
|
|
4264
|
+
viewportBounds = signal({ width: 0, height: 0 }, /* @ts-ignore */
|
|
4265
|
+
...(ngDevMode ? [{ debugName: "viewportBounds" }] : /* istanbul ignore next */ []));
|
|
4266
|
+
contentBounds = signal({ width: 0, height: 0 }, /* @ts-ignore */
|
|
4267
|
+
...(ngDevMode ? [{ debugName: "contentBounds" }] : /* istanbul ignore next */ []));
|
|
4244
4268
|
_isCoordinatesOverrided = false;
|
|
4245
4269
|
constructor() {
|
|
4246
4270
|
this.isVertical = computed(() => {
|
|
4247
4271
|
return this.direction() === ScrollerDirection.VERTICAL;
|
|
4248
|
-
},
|
|
4272
|
+
}, /* @ts-ignore */
|
|
4273
|
+
...(ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []));
|
|
4249
4274
|
}
|
|
4250
4275
|
tick() {
|
|
4251
4276
|
this.onResizeContent();
|
|
@@ -4313,10 +4338,10 @@ class BaseScrollView {
|
|
|
4313
4338
|
this.contentBounds.set({ width, height });
|
|
4314
4339
|
}
|
|
4315
4340
|
}
|
|
4316
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4317
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
4341
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BaseScrollView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4342
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BaseScrollView, isStandalone: true, selector: "base-scroll-view", inputs: { direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, startOffset: { classPropertyName: "startOffset", publicName: "startOffset", isSignal: true, isRequired: false, transformFunction: null }, endOffset: { classPropertyName: "endOffset", publicName: "endOffset", isSignal: true, isRequired: false, transformFunction: null }, alignmentStartOffset: { classPropertyName: "alignmentStartOffset", publicName: "alignmentStartOffset", isSignal: true, isRequired: false, transformFunction: null }, alignmentEndOffset: { classPropertyName: "alignmentEndOffset", publicName: "alignmentEndOffset", isSignal: true, isRequired: false, transformFunction: null }, isInfinity: { classPropertyName: "isInfinity", publicName: "isInfinity", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "scrollContent", first: true, predicate: ["scrollContent"], descendants: true, isSignal: true }, { propertyName: "scrollViewport", first: true, predicate: ["scrollViewport"], descendants: true, isSignal: true }], ngImport: i0, template: '', isInline: true });
|
|
4318
4343
|
}
|
|
4319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BaseScrollView, decorators: [{
|
|
4320
4345
|
type: Component,
|
|
4321
4346
|
args: [{
|
|
4322
4347
|
selector: 'base-scroll-view',
|
|
@@ -4326,7 +4351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
4326
4351
|
|
|
4327
4352
|
/**
|
|
4328
4353
|
* ScrollingDirection
|
|
4329
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4354
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/utils/scrolling-direction.ts
|
|
4330
4355
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4331
4356
|
* @email djonnyx@gmail.com
|
|
4332
4357
|
*/
|
|
@@ -4354,7 +4379,7 @@ class ScrollingDirection {
|
|
|
4354
4379
|
|
|
4355
4380
|
/**
|
|
4356
4381
|
* calculateVelocity
|
|
4357
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4382
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/utils/calculate-velocity.ts
|
|
4358
4383
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4359
4384
|
* @email djonnyx@gmail.com
|
|
4360
4385
|
*/
|
|
@@ -4367,21 +4392,29 @@ const calculateVelocity = (startPosition, currentPosition, timestamp) => {
|
|
|
4367
4392
|
* NgScrollView
|
|
4368
4393
|
* Maximum performance for extremely large lists.
|
|
4369
4394
|
* It is based on algorithms for virtualization of screen objects.
|
|
4370
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
4395
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-view/ng-scroll-view.component.ts
|
|
4371
4396
|
* @author Evgenii Alexandrovich Grebennikov
|
|
4372
4397
|
* @email djonnyx@gmail.com
|
|
4373
4398
|
*/
|
|
4374
4399
|
class NgScrollView extends BaseScrollView {
|
|
4375
4400
|
cdkScrollable;
|
|
4376
4401
|
_service = inject(NgVirtualListService);
|
|
4377
|
-
scrollBehavior = input(DEFAULT_SCROLL_BEHAVIOR,
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4402
|
+
scrollBehavior = input(DEFAULT_SCROLL_BEHAVIOR, /* @ts-ignore */
|
|
4403
|
+
...(ngDevMode ? [{ debugName: "scrollBehavior" }] : /* istanbul ignore next */ []));
|
|
4404
|
+
overscrollEnabled = input(DEFAULT_OVERSCROLL_ENABLED, /* @ts-ignore */
|
|
4405
|
+
...(ngDevMode ? [{ debugName: "overscrollEnabled" }] : /* istanbul ignore next */ []));
|
|
4406
|
+
scrollingSettings = input(DEFAULT_SCROLLING_SETTINGS, /* @ts-ignore */
|
|
4407
|
+
...(ngDevMode ? [{ debugName: "scrollingSettings" }] : /* istanbul ignore next */ []));
|
|
4408
|
+
snapToItem = input(DEFAULT_SNAP_TO_ITEM, /* @ts-ignore */
|
|
4409
|
+
...(ngDevMode ? [{ debugName: "snapToItem" }] : /* istanbul ignore next */ []));
|
|
4410
|
+
scrollingOneByOne = input(DEFAULT_SCROLLING_ONE_BY_ONE, /* @ts-ignore */
|
|
4411
|
+
...(ngDevMode ? [{ debugName: "scrollingOneByOne" }] : /* istanbul ignore next */ []));
|
|
4412
|
+
snapToItemAlign = input(DEFAULT_SNAP_TO_ITEM_ALIGN, /* @ts-ignore */
|
|
4413
|
+
...(ngDevMode ? [{ debugName: "snapToItemAlign" }] : /* istanbul ignore next */ []));
|
|
4414
|
+
snappingDistance = input(DEFAULT_SNAPPING_DISTANCE, /* @ts-ignore */
|
|
4415
|
+
...(ngDevMode ? [{ debugName: "snappingDistance" }] : /* istanbul ignore next */ []));
|
|
4416
|
+
animationParams = input(DEFAULT_ANIMATION_PARAMS, /* @ts-ignore */
|
|
4417
|
+
...(ngDevMode ? [{ debugName: "animationParams" }] : /* istanbul ignore next */ []));
|
|
4385
4418
|
_normalizeValueFromZero = inject(SCROLL_VIEW_NORMALIZE_VALUE_FROM_ZERO);
|
|
4386
4419
|
_isScrollsTo = false;
|
|
4387
4420
|
_scrollDirection = new ScrollingDirection();
|
|
@@ -5118,10 +5151,10 @@ class NgScrollView extends BaseScrollView {
|
|
|
5118
5151
|
this._animator.dispose();
|
|
5119
5152
|
}
|
|
5120
5153
|
}
|
|
5121
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5122
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
5154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollView, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NgScrollView, isStandalone: true, selector: "ng-scroll-view", inputs: { scrollBehavior: { classPropertyName: "scrollBehavior", publicName: "scrollBehavior", isSignal: true, isRequired: false, transformFunction: null }, overscrollEnabled: { classPropertyName: "overscrollEnabled", publicName: "overscrollEnabled", isSignal: true, isRequired: false, transformFunction: null }, scrollingSettings: { classPropertyName: "scrollingSettings", publicName: "scrollingSettings", isSignal: true, isRequired: false, transformFunction: null }, snapToItem: { classPropertyName: "snapToItem", publicName: "snapToItem", isSignal: true, isRequired: false, transformFunction: null }, scrollingOneByOne: { classPropertyName: "scrollingOneByOne", publicName: "scrollingOneByOne", isSignal: true, isRequired: false, transformFunction: null }, snapToItemAlign: { classPropertyName: "snapToItemAlign", publicName: "snapToItemAlign", isSignal: true, isRequired: false, transformFunction: null }, snappingDistance: { classPropertyName: "snappingDistance", publicName: "snappingDistance", isSignal: true, isRequired: false, transformFunction: null }, animationParams: { classPropertyName: "animationParams", publicName: "animationParams", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "cdkScrollable", first: true, predicate: ["scrollViewport"], descendants: true, read: CdkScrollable }], usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
5123
5156
|
}
|
|
5124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollView, decorators: [{
|
|
5125
5158
|
type: Component,
|
|
5126
5159
|
args: [{
|
|
5127
5160
|
selector: 'ng-scroll-view',
|
|
@@ -5138,31 +5171,47 @@ const DEFAULT_THICKNESS = 6, DEFAULT_SIZE = 6, PX = 'px', WIDTH = 'width', HEIGH
|
|
|
5138
5171
|
* ScrollBar component.
|
|
5139
5172
|
* Maximum performance for extremely large lists.
|
|
5140
5173
|
* It is based on algorithms for virtualization of screen objects.
|
|
5141
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
5174
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-scroll-bar/ng-scroll-bar.component.ts
|
|
5142
5175
|
* @author Evgenii Alexandrovich Grebennikov
|
|
5143
5176
|
* @email djonnyx@gmail.com
|
|
5144
5177
|
*/
|
|
5145
5178
|
class NgScrollBarComponent extends NgScrollView {
|
|
5146
|
-
_defaultRenderer = viewChild('defaultRenderer',
|
|
5179
|
+
_defaultRenderer = viewChild('defaultRenderer', /* @ts-ignore */
|
|
5180
|
+
...(ngDevMode ? [{ debugName: "_defaultRenderer" }] : /* istanbul ignore next */ []));
|
|
5147
5181
|
_scrollBarService = inject(NgScrollBarService);
|
|
5148
5182
|
_apiService = inject(NgScrollBarPublicService);
|
|
5149
|
-
loading = input(false,
|
|
5183
|
+
loading = input(false, /* @ts-ignore */
|
|
5184
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
5150
5185
|
onDrag = output();
|
|
5151
5186
|
onDragEnd = output();
|
|
5152
|
-
thumbGradientPositions = input([0, 0],
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5187
|
+
thumbGradientPositions = input([0, 0], /* @ts-ignore */
|
|
5188
|
+
...(ngDevMode ? [{ debugName: "thumbGradientPositions" }] : /* istanbul ignore next */ []));
|
|
5189
|
+
size = input(DEFAULT_SIZE, /* @ts-ignore */
|
|
5190
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5191
|
+
thickness = input(DEFAULT_THICKNESS, /* @ts-ignore */
|
|
5192
|
+
...(ngDevMode ? [{ debugName: "thickness" }] : /* istanbul ignore next */ []));
|
|
5193
|
+
scrollbarMinSize = input(0, /* @ts-ignore */
|
|
5194
|
+
...(ngDevMode ? [{ debugName: "scrollbarMinSize" }] : /* istanbul ignore next */ []));
|
|
5195
|
+
prepared = input(false, /* @ts-ignore */
|
|
5196
|
+
...(ngDevMode ? [{ debugName: "prepared" }] : /* istanbul ignore next */ []));
|
|
5197
|
+
langTextDir = input(DEFAULT_LANG_TEXT_DIR, /* @ts-ignore */
|
|
5198
|
+
...(ngDevMode ? [{ debugName: "langTextDir" }] : /* istanbul ignore next */ []));
|
|
5199
|
+
interactive = input(DEFAULT_SCROLLBAR_INTERACTIVE, /* @ts-ignore */
|
|
5200
|
+
...(ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []));
|
|
5201
|
+
overlapping = input(DEFAULT_OVERLAPPING_SCROLLBAR, /* @ts-ignore */
|
|
5202
|
+
...(ngDevMode ? [{ debugName: "overlapping" }] : /* istanbul ignore next */ []));
|
|
5203
|
+
show = input(false, /* @ts-ignore */
|
|
5204
|
+
...(ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []));
|
|
5205
|
+
params = input({}, /* @ts-ignore */
|
|
5206
|
+
...(ngDevMode ? [{ debugName: "params" }] : /* istanbul ignore next */ []));
|
|
5207
|
+
renderer = input(null, /* @ts-ignore */
|
|
5208
|
+
...(ngDevMode ? [{ debugName: "renderer" }] : /* istanbul ignore next */ []));
|
|
5209
|
+
thumbRenderer = signal(this._defaultRenderer() ?? null, /* @ts-ignore */
|
|
5210
|
+
...(ngDevMode ? [{ debugName: "thumbRenderer" }] : /* istanbul ignore next */ []));
|
|
5211
|
+
hoverState = signal(false, /* @ts-ignore */
|
|
5212
|
+
...(ngDevMode ? [{ debugName: "hoverState" }] : /* istanbul ignore next */ []));
|
|
5213
|
+
pressedState = signal(false, /* @ts-ignore */
|
|
5214
|
+
...(ngDevMode ? [{ debugName: "pressedState" }] : /* istanbul ignore next */ []));
|
|
5166
5215
|
templateContext;
|
|
5167
5216
|
styles;
|
|
5168
5217
|
thumbWidth;
|
|
@@ -5181,7 +5230,8 @@ class NgScrollBarComponent extends NgScrollView {
|
|
|
5181
5230
|
params: this.params() ?? {},
|
|
5182
5231
|
};
|
|
5183
5232
|
return context;
|
|
5184
|
-
},
|
|
5233
|
+
}, /* @ts-ignore */
|
|
5234
|
+
...(ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []));
|
|
5185
5235
|
const $renderer = toObservable(this.renderer).pipe(startWith(null)), $defaultRenderer = toObservable(this._defaultRenderer);
|
|
5186
5236
|
combineLatest([$renderer, $defaultRenderer]).pipe(takeUntilDestroyed(), switchMap$1(([renderer, defaultRenderer]) => {
|
|
5187
5237
|
return of((renderer ?? defaultRenderer) ?? null);
|
|
@@ -5196,10 +5246,12 @@ class NgScrollBarComponent extends NgScrollView {
|
|
|
5196
5246
|
})).subscribe();
|
|
5197
5247
|
this.thumbWidth = computed(() => {
|
|
5198
5248
|
return this.isVertical() ? this.thickness() : this.size();
|
|
5199
|
-
},
|
|
5249
|
+
}, /* @ts-ignore */
|
|
5250
|
+
...(ngDevMode ? [{ debugName: "thumbWidth" }] : /* istanbul ignore next */ []));
|
|
5200
5251
|
this.thumbHeight = computed(() => {
|
|
5201
5252
|
return this.isVertical() ? this.size() : this.thickness();
|
|
5202
|
-
},
|
|
5253
|
+
}, /* @ts-ignore */
|
|
5254
|
+
...(ngDevMode ? [{ debugName: "thumbHeight" }] : /* istanbul ignore next */ []));
|
|
5203
5255
|
const $wheel = this.$wheel;
|
|
5204
5256
|
$wheel.pipe(takeUntilDestroyed(), debounceTime(100), tap(() => {
|
|
5205
5257
|
const event = this.createDragEvent(true);
|
|
@@ -5245,7 +5297,8 @@ class NgScrollBarComponent extends NgScrollView {
|
|
|
5245
5297
|
[sizePropName]: `${show ? this.thickness() : 0}${PX}`,
|
|
5246
5298
|
[OPACITY]: show ? OPACITY_1 : OPACITY_0, [TRANSITION]: show ? TRANSITION_FADE_IN : NONE,
|
|
5247
5299
|
};
|
|
5248
|
-
},
|
|
5300
|
+
}, /* @ts-ignore */
|
|
5301
|
+
...(ngDevMode ? [{ debugName: "styles" }] : /* istanbul ignore next */ []));
|
|
5249
5302
|
effect(() => {
|
|
5250
5303
|
const el = this._elementRef.nativeElement;
|
|
5251
5304
|
if (!!el) {
|
|
@@ -5298,8 +5351,8 @@ class NgScrollBarComponent extends NgScrollView {
|
|
|
5298
5351
|
click(event) {
|
|
5299
5352
|
this._scrollBarService.click(event);
|
|
5300
5353
|
}
|
|
5301
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5302
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
5354
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5355
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: NgScrollBarComponent, isStandalone: false, selector: "ng-scroll-bar", inputs: { loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, thumbGradientPositions: { classPropertyName: "thumbGradientPositions", publicName: "thumbGradientPositions", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, thickness: { classPropertyName: "thickness", publicName: "thickness", isSignal: true, isRequired: false, transformFunction: null }, scrollbarMinSize: { classPropertyName: "scrollbarMinSize", publicName: "scrollbarMinSize", isSignal: true, isRequired: false, transformFunction: null }, prepared: { classPropertyName: "prepared", publicName: "prepared", isSignal: true, isRequired: false, transformFunction: null }, langTextDir: { classPropertyName: "langTextDir", publicName: "langTextDir", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, overlapping: { classPropertyName: "overlapping", publicName: "overlapping", isSignal: true, isRequired: false, transformFunction: null }, show: { classPropertyName: "show", publicName: "show", isSignal: true, isRequired: false, transformFunction: null }, params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: false, transformFunction: null }, renderer: { classPropertyName: "renderer", publicName: "renderer", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onDrag: "onDrag", onDragEnd: "onDragEnd" }, providers: [
|
|
5303
5356
|
{ provide: SCROLL_VIEW_INVERSION, useValue: true },
|
|
5304
5357
|
{ provide: SCROLL_VIEW_NORMALIZE_VALUE_FROM_ZERO, useValue: false },
|
|
5305
5358
|
{ provide: SCROLL_VIEW_OVERSCROLL_ENABLED, useValue: false },
|
|
@@ -5307,7 +5360,7 @@ class NgScrollBarComponent extends NgScrollView {
|
|
|
5307
5360
|
NgScrollBarPublicService,
|
|
5308
5361
|
], viewQueries: [{ propertyName: "_defaultRenderer", first: true, predicate: ["defaultRenderer"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@let grab = grabbing();\r\n<div #scrollViewport class=\"track\" part=\"scrollbar-track\" [ngStyle]=\"styles()\" [ngClass]=\"{grabbing: grab}\">\r\n <div #scrollContent class=\"thumb\" part=\"scrollbar-thumb\" [class.horizontal]=\"!isVertical()\"\r\n (pointerdown)=\"click($event)\">\r\n <ng-container [ngTemplateOutlet]=\"thumbRenderer()\" [ngTemplateOutletContext]=\"templateContext()\" />\r\n </div>\r\n</div>\r\n\r\n<ng-template #defaultRenderer let-api=\"api\" let-width=\"width\" let-height=\"height\" let-fillPositions=\"fillPositions\"\r\n let-params=\"params\">\r\n <div class=\"shape\" part=\"scrollbar-thumb__shape\" [style.width.px]=\"width\" [style.height.px]=\"height\"></div>\r\n</ng-template>", styles: [":host{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;width:100%;height:100%}.track{position:relative;overflow:hidden;width:100%;height:100%;cursor:grab}.track.grabbing{cursor:grabbing}.track .thumb{display:block;position:absolute;list-style:none;padding:0;margin:0;overflow:hidden}.track .thumb.prepared{overflow:hidden}.track .thumb.horizontal{top:0}.track .thumb .shape{box-sizing:border-box;pointer-events:none;background-color:#818181;border-radius:0;overflow:hidden}.track.grabbing .thumb{cursor:grabbing}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
5309
5362
|
}
|
|
5310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarComponent, decorators: [{
|
|
5311
5364
|
type: Component,
|
|
5312
5365
|
args: [{ selector: 'ng-scroll-bar', providers: [
|
|
5313
5366
|
{ provide: SCROLL_VIEW_INVERSION, useValue: true },
|
|
@@ -5323,13 +5376,15 @@ const RIGHT = 'right', DIR = 'dir';
|
|
|
5323
5376
|
* LocaleSensitiveDirective
|
|
5324
5377
|
* Maximum performance for extremely large lists.
|
|
5325
5378
|
* It is based on algorithms for virtualization of screen objects.
|
|
5326
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
5379
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/directives/locale-sensitive/locale-sensitive.directive.ts
|
|
5327
5380
|
* @author Evgenii Alexandrovich Grebennikov
|
|
5328
5381
|
* @email djonnyx@gmail.com
|
|
5329
5382
|
*/
|
|
5330
5383
|
class LocaleSensitiveDirective {
|
|
5331
|
-
langTextDir = input(TextDirections.LTR,
|
|
5332
|
-
|
|
5384
|
+
langTextDir = input(TextDirections.LTR, /* @ts-ignore */
|
|
5385
|
+
...(ngDevMode ? [{ debugName: "langTextDir" }] : /* istanbul ignore next */ []));
|
|
5386
|
+
listDir = input(ScrollerDirection$1.VERTICAL, /* @ts-ignore */
|
|
5387
|
+
...(ngDevMode ? [{ debugName: "listDir" }] : /* istanbul ignore next */ []));
|
|
5333
5388
|
_elementRef = inject((ElementRef));
|
|
5334
5389
|
constructor() {
|
|
5335
5390
|
const $langTextDir = toObservable(this.langTextDir), $listDir = toObservable(this.listDir);
|
|
@@ -5347,10 +5402,10 @@ class LocaleSensitiveDirective {
|
|
|
5347
5402
|
}
|
|
5348
5403
|
})).subscribe();
|
|
5349
5404
|
}
|
|
5350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5351
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
5405
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LocaleSensitiveDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5406
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: LocaleSensitiveDirective, isStandalone: false, selector: "[localeSensitive]", inputs: { langTextDir: { classPropertyName: "langTextDir", publicName: "langTextDir", isSignal: true, isRequired: false, transformFunction: null }, listDir: { classPropertyName: "listDir", publicName: "listDir", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
5352
5407
|
}
|
|
5353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LocaleSensitiveDirective, decorators: [{
|
|
5354
5409
|
type: Directive,
|
|
5355
5410
|
args: [{
|
|
5356
5411
|
selector: '[localeSensitive]',
|
|
@@ -5364,36 +5419,57 @@ const SCROLL_EVENT = new Event(SCROLLER_SCROLL);
|
|
|
5364
5419
|
* The scroller for the NgVirtualList item component
|
|
5365
5420
|
* Maximum performance for extremely large lists.
|
|
5366
5421
|
* It is based on algorithms for virtualization of screen objects.
|
|
5367
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
5422
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/scroller/ng-scroller.component.ts
|
|
5368
5423
|
* @author Evgenii Alexandrovich Grebennikov
|
|
5369
5424
|
* @email djonnyx@gmail.com
|
|
5370
5425
|
*/
|
|
5371
5426
|
class NgScrollerComponent extends NgScrollView {
|
|
5372
5427
|
scrollBar;
|
|
5373
|
-
filter = viewChild('filter',
|
|
5428
|
+
filter = viewChild('filter', /* @ts-ignore */
|
|
5429
|
+
...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
5374
5430
|
onScrollbarVisible = output();
|
|
5375
|
-
scrollbarEnabled = input(DEFAULT_SCROLLBAR_ENABLED,
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5431
|
+
scrollbarEnabled = input(DEFAULT_SCROLLBAR_ENABLED, /* @ts-ignore */
|
|
5432
|
+
...(ngDevMode ? [{ debugName: "scrollbarEnabled" }] : /* istanbul ignore next */ []));
|
|
5433
|
+
scrollbarInteractive = input(DEFAULT_SCROLLBAR_INTERACTIVE, /* @ts-ignore */
|
|
5434
|
+
...(ngDevMode ? [{ debugName: "scrollbarInteractive" }] : /* istanbul ignore next */ []));
|
|
5435
|
+
focusedElement = input(null, /* @ts-ignore */
|
|
5436
|
+
...(ngDevMode ? [{ debugName: "focusedElement" }] : /* istanbul ignore next */ []));
|
|
5437
|
+
overlappingScrollbar = input(DEFAULT_OVERLAPPING_SCROLLBAR, /* @ts-ignore */
|
|
5438
|
+
...(ngDevMode ? [{ debugName: "overlappingScrollbar" }] : /* istanbul ignore next */ []));
|
|
5439
|
+
content = input(/* @ts-ignore */
|
|
5440
|
+
...(ngDevMode ? [undefined, { debugName: "content" }] : /* istanbul ignore next */ []));
|
|
5441
|
+
loading = input(false, /* @ts-ignore */
|
|
5442
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
5443
|
+
classes = input({}, /* @ts-ignore */
|
|
5444
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
5445
|
+
scrollbarMinSize = input(DEFAULT_SCROLLBAR_MIN_SIZE, /* @ts-ignore */
|
|
5446
|
+
...(ngDevMode ? [{ debugName: "scrollbarMinSize" }] : /* istanbul ignore next */ []));
|
|
5447
|
+
scrollbarThickness = input(DEFAULT_SCROLLBAR_THICKNESS, /* @ts-ignore */
|
|
5448
|
+
...(ngDevMode ? [{ debugName: "scrollbarThickness" }] : /* istanbul ignore next */ []));
|
|
5449
|
+
scrollbarThumbRenderer = input(null, /* @ts-ignore */
|
|
5450
|
+
...(ngDevMode ? [{ debugName: "scrollbarThumbRenderer" }] : /* istanbul ignore next */ []));
|
|
5451
|
+
scrollbarThumbParams = input(null, /* @ts-ignore */
|
|
5452
|
+
...(ngDevMode ? [{ debugName: "scrollbarThumbParams" }] : /* istanbul ignore next */ []));
|
|
5453
|
+
motionBlur = input(DEFAULT_MOTION_BLUR, /* @ts-ignore */
|
|
5454
|
+
...(ngDevMode ? [{ debugName: "motionBlur" }] : /* istanbul ignore next */ []));
|
|
5455
|
+
maxMotionBlur = input(DEFAULT_MAX_MOTION_BLUR, /* @ts-ignore */
|
|
5456
|
+
...(ngDevMode ? [{ debugName: "maxMotionBlur" }] : /* istanbul ignore next */ []));
|
|
5457
|
+
motionBlurEnabled = input(DEFAULT_MOTION_BLUR_ENABLED, /* @ts-ignore */
|
|
5458
|
+
...(ngDevMode ? [{ debugName: "motionBlurEnabled" }] : /* istanbul ignore next */ []));
|
|
5389
5459
|
actualClasses;
|
|
5390
5460
|
containerClasses;
|
|
5391
|
-
thumbGradientPositions = signal([0, 0],
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5461
|
+
thumbGradientPositions = signal([0, 0], /* @ts-ignore */
|
|
5462
|
+
...(ngDevMode ? [{ debugName: "thumbGradientPositions" }] : /* istanbul ignore next */ []));
|
|
5463
|
+
thumbSize = signal(0, /* @ts-ignore */
|
|
5464
|
+
...(ngDevMode ? [{ debugName: "thumbSize" }] : /* istanbul ignore next */ []));
|
|
5465
|
+
scrollbarShow = signal(false, /* @ts-ignore */
|
|
5466
|
+
...(ngDevMode ? [{ debugName: "scrollbarShow" }] : /* istanbul ignore next */ []));
|
|
5467
|
+
preparedSignal = signal(false, /* @ts-ignore */
|
|
5468
|
+
...(ngDevMode ? [{ debugName: "preparedSignal" }] : /* istanbul ignore next */ []));
|
|
5469
|
+
langTextDir = signal(TextDirections.LTR, /* @ts-ignore */
|
|
5470
|
+
...(ngDevMode ? [{ debugName: "langTextDir" }] : /* istanbul ignore next */ []));
|
|
5471
|
+
listStyles = signal({ perspectiveOrigin: 'center' }, /* @ts-ignore */
|
|
5472
|
+
...(ngDevMode ? [{ debugName: "listStyles" }] : /* istanbul ignore next */ []));
|
|
5397
5473
|
_scrollBox = new ScrollBox$1();
|
|
5398
5474
|
get host() {
|
|
5399
5475
|
return this.scrollViewport()?.nativeElement;
|
|
@@ -5447,7 +5523,8 @@ class NgScrollerComponent extends NgScrollView {
|
|
|
5447
5523
|
}
|
|
5448
5524
|
}
|
|
5449
5525
|
get startLayoutOffset() { return this._startLayoutOffset; }
|
|
5450
|
-
viewInitialized = signal(false,
|
|
5526
|
+
viewInitialized = signal(false, /* @ts-ignore */
|
|
5527
|
+
...(ngDevMode ? [{ debugName: "viewInitialized" }] : /* istanbul ignore next */ []));
|
|
5451
5528
|
_isScrollbarUserAction = false;
|
|
5452
5529
|
get isScrollbarUserAction() {
|
|
5453
5530
|
return this._isScrollbarUserAction;
|
|
@@ -5494,11 +5571,13 @@ class NgScrollerComponent extends NgScrollView {
|
|
|
5494
5571
|
this.actualClasses = computed(() => {
|
|
5495
5572
|
const classes = this.classes(), direction = this.direction(), filtered = this.motionBlurEnabled();
|
|
5496
5573
|
return { ...classes, [direction]: true, grabbing: this.grabbing(), filtered };
|
|
5497
|
-
},
|
|
5574
|
+
}, /* @ts-ignore */
|
|
5575
|
+
...(ngDevMode ? [{ debugName: "actualClasses" }] : /* istanbul ignore next */ []));
|
|
5498
5576
|
this.containerClasses = computed(() => {
|
|
5499
5577
|
const { width: contentWidth, height: contentHeight } = this.contentBounds(), { width, height } = this.viewportBounds(), overlappingScrollbar = this.overlappingScrollbar(), isVertical = this.isVertical(), viewportSize = isVertical ? height : width, contentSize = isVertical ? contentHeight : contentWidth;
|
|
5500
5578
|
return { [this.direction()]: true, grabbing: this.grabbing(), enabled: this.scrollbarEnabled(), scrollable: contentSize > viewportSize, overlapping: overlappingScrollbar };
|
|
5501
|
-
},
|
|
5579
|
+
}, /* @ts-ignore */
|
|
5580
|
+
...(ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []));
|
|
5502
5581
|
effect(() => {
|
|
5503
5582
|
const viewInitialized = this.viewInitialized();
|
|
5504
5583
|
if (viewInitialized) {
|
|
@@ -5699,14 +5778,14 @@ class NgScrollerComponent extends NgScrollView {
|
|
|
5699
5778
|
}
|
|
5700
5779
|
return false;
|
|
5701
5780
|
}
|
|
5702
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5703
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5781
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5782
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: NgScrollerComponent, isStandalone: false, selector: "ng-scroller", inputs: { scrollbarEnabled: { classPropertyName: "scrollbarEnabled", publicName: "scrollbarEnabled", isSignal: true, isRequired: false, transformFunction: null }, scrollbarInteractive: { classPropertyName: "scrollbarInteractive", publicName: "scrollbarInteractive", isSignal: true, isRequired: false, transformFunction: null }, focusedElement: { classPropertyName: "focusedElement", publicName: "focusedElement", isSignal: true, isRequired: false, transformFunction: null }, overlappingScrollbar: { classPropertyName: "overlappingScrollbar", publicName: "overlappingScrollbar", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, scrollbarMinSize: { classPropertyName: "scrollbarMinSize", publicName: "scrollbarMinSize", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThickness: { classPropertyName: "scrollbarThickness", publicName: "scrollbarThickness", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThumbRenderer: { classPropertyName: "scrollbarThumbRenderer", publicName: "scrollbarThumbRenderer", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThumbParams: { classPropertyName: "scrollbarThumbParams", publicName: "scrollbarThumbParams", isSignal: true, isRequired: false, transformFunction: null }, motionBlur: { classPropertyName: "motionBlur", publicName: "motionBlur", isSignal: true, isRequired: false, transformFunction: null }, maxMotionBlur: { classPropertyName: "maxMotionBlur", publicName: "maxMotionBlur", isSignal: true, isRequired: false, transformFunction: null }, motionBlurEnabled: { classPropertyName: "motionBlurEnabled", publicName: "motionBlurEnabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onScrollbarVisible: "onScrollbarVisible" }, providers: [
|
|
5704
5783
|
{ provide: SCROLL_VIEW_INVERSION, useValue: false },
|
|
5705
5784
|
{ provide: SCROLL_VIEW_NORMALIZE_VALUE_FROM_ZERO, useValue: true },
|
|
5706
5785
|
{ provide: SCROLL_VIEW_OVERSCROLL_ENABLED, useValue: true },
|
|
5707
5786
|
], viewQueries: [{ propertyName: "filter", first: true, predicate: ["filter"], descendants: true, isSignal: true }, { propertyName: "scrollBar", first: true, predicate: ["scrollBar"], descendants: true, read: NgScrollBarComponent }], usesInheritance: true, ngImport: i0, template: "@let filtered = motionBlurEnabled();\r\n<div localeSensitive [langTextDir]=\"langTextDir()\" [listDir]=\"direction()\" class=\"ngvl__container\"\r\n [ngClass]=\"containerClasses()\">\r\n <svg part=\"viewport\" width=\"100%\" height=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <filter [id]=\"_filterId\">\r\n <feGaussianBlur #filter></feGaussianBlur>\r\n </filter>\r\n <foreignObject xmlns=\"http://www.w3.org/1999/xhtml\" width=\"100%\" height=\"100%\" class=\"ngvl__viewport\">\r\n <div class=\"ngvl__scroller-wrapper\" [class.filtered]=\"filtered\" [style.filter]=\"filtered ? _filter : 'unset'\">\r\n <div cdkScrollable #scrollViewport part=\"scroller\" class=\"ngvl__scroller\">\r\n <div #scrollContent [attr.aria-orientation]=\"direction()\"\r\n [attr.aria-activedescendant]=\"focusedElement()\" tabindex=\"0\" part=\"list\" class=\"ngvl__list\"\r\n [ngClass]=\"actualClasses()\" [ngStyle]=\"listStyles()\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n </foreignObject>\r\n </svg>\r\n @if (scrollbarEnabled()) {\r\n @let prepared = preparedSignal();\r\n <ng-scroll-bar #scrollBar [direction]=\"direction()\" [size]=\"thumbSize()\" [renderer]=\"scrollbarThumbRenderer()\"\r\n [thickness]=\"scrollbarThickness()\" [params]=\"scrollbarThumbParams()\" [loading]=\"loading()\" [overlapping]=\"overlappingScrollbar()\"\r\n [thumbGradientPositions]=\"thumbGradientPositions()\" [prepared]=\"prepared\" [interactive]=\"scrollbarInteractive()\"\r\n [show]=\"scrollbarShow() && scrollbarEnabled() && prepared\" [startOffset]=\"startOffset()\" [langTextDir]=\"langTextDir()\"\r\n [endOffset]=\"endOffset()\" [overscrollEnabled]=\"overscrollEnabled()\" [scrollBehavior]=\"scrollBehavior()\"\r\n [scrollbarMinSize]=\"scrollbarMinSize()\" (onDrag)=\"onScrollBarDragHandler($event)\"\r\n (onDragEnd)=\"onScrollBarDragEndHandler($event)\"></ng-scroll-bar>\r\n }\r\n</div>", styles: [":host{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none}.ngvl__container{position:relative;overflow:hidden;display:grid;width:100%;height:100%;cursor:grab}.ngvl__container.overlapping{position:relative;display:block}.ngvl__container.grabbing{cursor:grabbing}.ngvl__container.horizontal:not(.overlapping){grid-template-rows:1fr 0}.ngvl__container.horizontal{transition:grid-template-rows .1s ease-out}.ngvl__container.horizontal.scrollable.enabled:not(.overlapping){grid-template-rows:1fr auto}.ngvl__container.horizontal .ngvl__list{display:inline-flex}.ngvl__container.horizontal .ngvl__scroller-wrapper.filtered,.ngvl__container.horizontal .ngvl__scroller{overflow:unset}.ngvl__container.vertical:not(.overlapping){grid-template-columns:1fr 0}.ngvl__container.vertical{transition:grid-template-columns .1s ease-out}.ngvl__container.vertical.scrollable.enabled:not(.overlapping){grid-template-columns:1fr auto}.ngvl__container.vertical .ngvl__scroller-wrapper.filtered,.ngvl__container.vertical .ngvl__scroller{overflow:unset}.ngvl__container .ngvl__scroller-wrapper,.ngvl__container .ngvl__scroller{display:block;position:relative;overflow:hidden;width:100%;height:100%}.ngvl__container .ngvl__list{position:absolute;list-style:none;padding:0;margin:0;width:100%;height:100%;opacity:0}.ngvl__container .ngvl__list.prepared{opacity:1}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: NgScrollBarComponent, selector: "ng-scroll-bar", inputs: ["loading", "thumbGradientPositions", "size", "thickness", "scrollbarMinSize", "prepared", "langTextDir", "interactive", "overlapping", "show", "params", "renderer"], outputs: ["onDrag", "onDragEnd"] }, { kind: "directive", type: LocaleSensitiveDirective, selector: "[localeSensitive]", inputs: ["langTextDir", "listDir"] }, { kind: "directive", type: i4.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }] });
|
|
5708
5787
|
}
|
|
5709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollerComponent, decorators: [{
|
|
5710
5789
|
type: Component,
|
|
5711
5790
|
args: [{ selector: 'ng-scroller', providers: [
|
|
5712
5791
|
{ provide: SCROLL_VIEW_INVERSION, useValue: false },
|
|
@@ -5798,7 +5877,7 @@ const createItemData = (data, isVertical, bounds, boundsSize, dynamic, divides,
|
|
|
5798
5877
|
* PrerenderTrackBox
|
|
5799
5878
|
* Maximum performance for extremely large lists.
|
|
5800
5879
|
* It is based on algorithms for virtualization of screen objects.
|
|
5801
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
5880
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/prerender-container/core/prerender-track-box.ts
|
|
5802
5881
|
* @author Evgenii Alexandrovich Grebennikov
|
|
5803
5882
|
* @email djonnyx@gmail.com
|
|
5804
5883
|
*/
|
|
@@ -5922,7 +6001,7 @@ class PrerenderTrackBox extends EventEmitter {
|
|
|
5922
6001
|
* NgPrerenderVirtualListItemComponent
|
|
5923
6002
|
* Maximum performance for extremely large lists.
|
|
5924
6003
|
* It is based on algorithms for virtualization of screen objects.
|
|
5925
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
6004
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-list-item/ng-prerender-list-item.component.ts
|
|
5926
6005
|
* @author Evgenii Alexandrovich Grebennikov
|
|
5927
6006
|
* @email djonnyx@gmail.com
|
|
5928
6007
|
*/
|
|
@@ -5996,10 +6075,10 @@ class NgPrerenderVirtualListItemComponent extends NgVirtualListItemComponent {
|
|
|
5996
6075
|
styles.visibility = VISIBILITY_HIDDEN;
|
|
5997
6076
|
}
|
|
5998
6077
|
}
|
|
5999
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6000
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
6078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderVirtualListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6079
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: NgPrerenderVirtualListItemComponent, isStandalone: false, selector: "ng-prerender-virtual-list-item", host: { attributes: { "role": "listitem" }, classAttribute: "ngvl__item" }, usesInheritance: true, ngImport: i0, template: "@let renderer = itemRenderer();\r\n@let class = classes();\r\n<div #item class=\"ngvl-item\" [ngClass]=\"class\" [part]=\"part()\" [attr.ngvl-index]=\"index()\" [attr.ngvl-visibility]=\"visibility\" tabindex=\"-1\">\r\n @if (_blendColor) {\r\n <div class=\"ngvl-item__blend-color\" [style.--blend-color]=\"_blendColor\"></div>\r\n }\r\n <div #container virtualClick [part]=\"fxPart()\" [maxClickDistance]=\"maxClickDistance()\" class=\"ngvl-item__container\"\r\n [ngClass]=\"class\" (onVirtualClick)=\"onClickHandler()\">\r\n @if (renderer) {\r\n <ng-container [ngTemplateOutlet]=\"renderer\" [ngTemplateOutletContext]=\"templateContext()\" />\r\n }\r\n </div>\r\n</div>", styles: [":host{display:block;position:absolute;left:0;top:0;box-sizing:border-box;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;-moz-user-drag:none;text-rendering:optimizeSpeed;image-rendering:auto}.ngvl-item{position:relative;margin:0;padding:0;overflow:hidden;outline:none;width:inherit;height:inherit;box-sizing:border-box}.ngvl-item__blend-color{position:absolute;left:0;top:0;width:100%;height:100%;background-color:var(--blend-color);z-index:-1}.ngvl-item__container{margin:0;padding:0;width:100%;height:100%;box-sizing:border-box}\n", ":host{display:block;position:absolute!important;left:0;top:0;box-sizing:border-box;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;-moz-user-drag:none;pointer-events:none;-webkit-user-select:none;user-select:none;text-rendering:optimizeSpeed;image-rendering:pixelated}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: VirtualClickDirective, selector: "[virtualClick]", inputs: ["maxClickDistance"], outputs: ["onVirtualClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6001
6080
|
}
|
|
6002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderVirtualListItemComponent, decorators: [{
|
|
6003
6082
|
type: Component,
|
|
6004
6083
|
args: [{ selector: 'ng-prerender-virtual-list-item', host: {
|
|
6005
6084
|
'class': 'ngvl__item',
|
|
@@ -6011,19 +6090,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6011
6090
|
* NgPrerenderScrollerComponent
|
|
6012
6091
|
* Maximum performance for extremely large lists.
|
|
6013
6092
|
* It is based on algorithms for virtualization of screen objects.
|
|
6014
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
6093
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-scroller/ng-prerender-scroller.component.ts
|
|
6015
6094
|
* @author Evgenii Alexandrovich Grebennikov
|
|
6016
6095
|
* @email djonnyx@gmail.com
|
|
6017
6096
|
*/
|
|
6018
6097
|
class NgPrerenderScrollerComponent extends BaseScrollView {
|
|
6019
6098
|
scrollBar;
|
|
6020
|
-
langTextDir = signal(TextDirections.LTR,
|
|
6021
|
-
|
|
6022
|
-
|
|
6099
|
+
langTextDir = signal(TextDirections.LTR, /* @ts-ignore */
|
|
6100
|
+
...(ngDevMode ? [{ debugName: "langTextDir" }] : /* istanbul ignore next */ []));
|
|
6101
|
+
scrollbarEnabled = input(DEFAULT_SCROLLBAR_ENABLED, /* @ts-ignore */
|
|
6102
|
+
...(ngDevMode ? [{ debugName: "scrollbarEnabled" }] : /* istanbul ignore next */ []));
|
|
6103
|
+
classes = input({}, /* @ts-ignore */
|
|
6104
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
6023
6105
|
actualClasses;
|
|
6024
|
-
containerClasses = signal({},
|
|
6025
|
-
|
|
6026
|
-
|
|
6106
|
+
containerClasses = signal({}, /* @ts-ignore */
|
|
6107
|
+
...(ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []));
|
|
6108
|
+
thumbSize = signal(0, /* @ts-ignore */
|
|
6109
|
+
...(ngDevMode ? [{ debugName: "thumbSize" }] : /* istanbul ignore next */ []));
|
|
6110
|
+
scrollbarShow = signal(false, /* @ts-ignore */
|
|
6111
|
+
...(ngDevMode ? [{ debugName: "scrollbarShow" }] : /* istanbul ignore next */ []));
|
|
6027
6112
|
set x(v) {
|
|
6028
6113
|
if (v !== undefined && !Number.isNaN(v)) {
|
|
6029
6114
|
this._x = this._actualX = v;
|
|
@@ -6058,7 +6143,8 @@ class NgPrerenderScrollerComponent extends BaseScrollView {
|
|
|
6058
6143
|
this.actualClasses = computed(() => {
|
|
6059
6144
|
const classes = this.classes(), direction = this.direction();
|
|
6060
6145
|
return { ...classes, [direction]: true };
|
|
6061
|
-
},
|
|
6146
|
+
}, /* @ts-ignore */
|
|
6147
|
+
...(ngDevMode ? [{ debugName: "actualClasses" }] : /* istanbul ignore next */ []));
|
|
6062
6148
|
const $contentBounds = toObservable(this.contentBounds), $viewportBounds = toObservable(this.viewportBounds), $isVertical = toObservable(this.isVertical), $direction = toObservable(this.direction), $scrollbarEnabled = toObservable(this.scrollbarEnabled);
|
|
6063
6149
|
combineLatest([$direction, $scrollbarEnabled, $isVertical, $contentBounds, $viewportBounds]).pipe(takeUntilDestroyed(), tap(([direction, scrollbarEnabled]) => {
|
|
6064
6150
|
this.containerClasses.set({ [direction]: true, enabled: scrollbarEnabled, scrollable: scrollbarEnabled });
|
|
@@ -6095,14 +6181,14 @@ class NgPrerenderScrollerComponent extends BaseScrollView {
|
|
|
6095
6181
|
updateScrollBar() {
|
|
6096
6182
|
this._$updateScrollBar.next();
|
|
6097
6183
|
}
|
|
6098
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6099
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
6184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6185
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NgPrerenderScrollerComponent, isStandalone: false, selector: "ng-prerender-scroller", inputs: { scrollbarEnabled: { classPropertyName: "scrollbarEnabled", publicName: "scrollbarEnabled", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6100
6186
|
{ provide: SCROLL_VIEW_INVERSION, useValue: false },
|
|
6101
6187
|
{ provide: SCROLL_VIEW_NORMALIZE_VALUE_FROM_ZERO, useValue: true },
|
|
6102
6188
|
{ provide: SCROLL_VIEW_OVERSCROLL_ENABLED, useValue: false },
|
|
6103
6189
|
], viewQueries: [{ propertyName: "scrollBar", first: true, predicate: ["scrollBar"], descendants: true, read: NgScrollBarComponent }], usesInheritance: true, ngImport: i0, template: "<div localeSensitive [langTextDir]=\"langTextDir()\" [listDir]=\"direction()\" class=\"ngvl__container\"\r\n [ngClass]=\"containerClasses()\">\r\n <div #scrollViewport part=\"scroller\" class=\"ngvl__scroller\">\r\n <div #scrollContent part=\"list\" class=\"ngvl__list\" [ngClass]=\"actualClasses()\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{position:relative;overflow:hidden;-webkit-user-select:none;user-select:none}.ngvl__container{position:relative;overflow:hidden;display:grid;width:100%;height:100%;cursor:grab}.ngvl__container.overlapping{position:relative;display:block}.ngvl__container.grabbing{cursor:grabbing}.ngvl__container.horizontal:not(.overlapping){grid-template-rows:1fr 0}.ngvl__container.horizontal{transition:grid-template-rows .1s ease-out}.ngvl__container.horizontal.scrollable.enabled:not(.overlapping){grid-template-rows:1fr auto}.ngvl__container.horizontal .ngvl__list{display:inline-flex}.ngvl__container.horizontal .ngvl__scroller-wrapper.filtered,.ngvl__container.horizontal .ngvl__scroller{overflow:unset}.ngvl__container.vertical:not(.overlapping){grid-template-columns:1fr 0}.ngvl__container.vertical{transition:grid-template-columns .1s ease-out}.ngvl__container.vertical.scrollable.enabled:not(.overlapping){grid-template-columns:1fr auto}.ngvl__container.vertical .ngvl__scroller-wrapper.filtered,.ngvl__container.vertical .ngvl__scroller{overflow:unset}.ngvl__container .ngvl__scroller-wrapper,.ngvl__container .ngvl__scroller{display:block;position:relative;overflow:hidden;width:100%;height:100%}.ngvl__container .ngvl__list{position:absolute;list-style:none;padding:0;margin:0;width:100%;height:100%;opacity:0}.ngvl__container .ngvl__list.prepared{opacity:1}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: LocaleSensitiveDirective, selector: "[localeSensitive]", inputs: ["langTextDir", "listDir"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6104
6190
|
}
|
|
6105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderScrollerComponent, decorators: [{
|
|
6106
6192
|
type: Component,
|
|
6107
6193
|
args: [{ selector: 'ng-prerender-scroller', providers: [
|
|
6108
6194
|
{ provide: SCROLL_VIEW_INVERSION, useValue: false },
|
|
@@ -6118,27 +6204,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6118
6204
|
* NgPrerenderList
|
|
6119
6205
|
* Maximum performance for extremely large lists.
|
|
6120
6206
|
* It is based on algorithms for virtualization of screen objects.
|
|
6121
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
6207
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/components/ng-prerender-list/ng-prerender-list.component.ts
|
|
6122
6208
|
* @author Evgenii Alexandrovich Grebennikov
|
|
6123
6209
|
* @email djonnyx@gmail.com
|
|
6124
6210
|
*/
|
|
6125
6211
|
class NgPrerenderList {
|
|
6126
6212
|
_listContainerRef;
|
|
6127
|
-
enabled = input(false,
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6213
|
+
enabled = input(false, /* @ts-ignore */
|
|
6214
|
+
...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
|
|
6215
|
+
direction = input(DEFAULT_DIRECTION, /* @ts-ignore */
|
|
6216
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
6217
|
+
isVertical = input(true, /* @ts-ignore */
|
|
6218
|
+
...(ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []));
|
|
6219
|
+
scrollbarEnabled = input(DEFAULT_SCROLLBAR_ENABLED, /* @ts-ignore */
|
|
6220
|
+
...(ngDevMode ? [{ debugName: "scrollbarEnabled" }] : /* istanbul ignore next */ []));
|
|
6221
|
+
startOffset = input(0, /* @ts-ignore */
|
|
6222
|
+
...(ngDevMode ? [{ debugName: "startOffset" }] : /* istanbul ignore next */ []));
|
|
6223
|
+
endOffset = input(0, /* @ts-ignore */
|
|
6224
|
+
...(ngDevMode ? [{ debugName: "endOffset" }] : /* istanbul ignore next */ []));
|
|
6225
|
+
bounds = input.required(/* @ts-ignore */
|
|
6226
|
+
...(ngDevMode ? [{ debugName: "bounds" }] : /* istanbul ignore next */ []));
|
|
6227
|
+
dynamic = input(DEFAULT_DYNAMIC_SIZE, /* @ts-ignore */
|
|
6228
|
+
...(ngDevMode ? [{ debugName: "dynamic" }] : /* istanbul ignore next */ []));
|
|
6229
|
+
itemSize = input(DEFAULT_ITEM_SIZE, /* @ts-ignore */
|
|
6230
|
+
...(ngDevMode ? [{ debugName: "itemSize" }] : /* istanbul ignore next */ []));
|
|
6231
|
+
trackBy = input(TRACK_BY_PROPERTY_NAME, /* @ts-ignore */
|
|
6232
|
+
...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
|
|
6233
|
+
divides = input(DEFAULT_DIVIDES, /* @ts-ignore */
|
|
6234
|
+
...(ngDevMode ? [{ debugName: "divides" }] : /* istanbul ignore next */ []));
|
|
6235
|
+
itemRenderer = input(/* @ts-ignore */
|
|
6236
|
+
...(ngDevMode ? [undefined, { debugName: "itemRenderer" }] : /* istanbul ignore next */ []));
|
|
6237
|
+
itemComponentClass = input(NgPrerenderVirtualListItemComponent, /* @ts-ignore */
|
|
6238
|
+
...(ngDevMode ? [{ debugName: "itemComponentClass" }] : /* istanbul ignore next */ []));
|
|
6239
|
+
_items = signal(null, /* @ts-ignore */
|
|
6240
|
+
...(ngDevMode ? [{ debugName: "_items" }] : /* istanbul ignore next */ []));
|
|
6241
|
+
classes = signal({ prepared: true }, /* @ts-ignore */
|
|
6242
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
6142
6243
|
_$render = new Subject();
|
|
6143
6244
|
$render = this._$render.asObservable();
|
|
6144
6245
|
_$componentResize = new Subject();
|
|
@@ -6247,10 +6348,10 @@ class NgPrerenderList {
|
|
|
6247
6348
|
this._trackBox = null;
|
|
6248
6349
|
}
|
|
6249
6350
|
}
|
|
6250
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6251
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
6351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: NgPrerenderList, isStandalone: false, selector: "ng-prerender-list", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, isVertical: { classPropertyName: "isVertical", publicName: "isVertical", isSignal: true, isRequired: false, transformFunction: null }, scrollbarEnabled: { classPropertyName: "scrollbarEnabled", publicName: "scrollbarEnabled", isSignal: true, isRequired: false, transformFunction: null }, startOffset: { classPropertyName: "startOffset", publicName: "startOffset", isSignal: true, isRequired: false, transformFunction: null }, endOffset: { classPropertyName: "endOffset", publicName: "endOffset", isSignal: true, isRequired: false, transformFunction: null }, bounds: { classPropertyName: "bounds", publicName: "bounds", isSignal: true, isRequired: true, transformFunction: null }, dynamic: { classPropertyName: "dynamic", publicName: "dynamic", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, divides: { classPropertyName: "divides", publicName: "divides", isSignal: true, isRequired: false, transformFunction: null }, itemRenderer: { classPropertyName: "itemRenderer", publicName: "itemRenderer", isSignal: true, isRequired: false, transformFunction: null }, itemComponentClass: { classPropertyName: "itemComponentClass", publicName: "itemComponentClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "position: relative;" }, viewQueries: [{ propertyName: "_listContainerRef", first: true, predicate: ["renderersContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<ng-prerender-scroller #scroller class=\"ngvl__list-scroller\" [classes]=\"classes()\" [direction]=\"direction()\"\r\n [scrollbarEnabled]=\"scrollbarEnabled()\" [startOffset]=\"startOffset()\" [endOffset]=\"endOffset()\">\r\n <ng-container #renderersContainer></ng-container>\r\n</ng-prerender-scroller>", styles: [":host{position:relative;display:block;width:400px;overflow:hidden}:host(.horizontal){height:48px}:host(.vertical){height:320px}.ngvl__snapped-container{position:relative;width:100%;opacity:0}.ngvl__snapped-container.prepared{opacity:1}.ngvl__list-snapper{-webkit-tap-highlight-color:transparent;position:absolute;list-style:none;left:0;top:0;z-index:1}.ngvl__list-scroller{-webkit-tap-highlight-color:transparent;position:absolute;left:0;top:0;width:100%;height:100%;z-index:0}.ngvl__screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n", ":host{width:100%;height:100%}\n"], dependencies: [{ kind: "component", type: NgPrerenderScrollerComponent, selector: "ng-prerender-scroller", inputs: ["scrollbarEnabled", "classes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
|
|
6252
6353
|
}
|
|
6253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderList, decorators: [{
|
|
6254
6355
|
type: Component,
|
|
6255
6356
|
args: [{ selector: 'ng-prerender-list', host: {
|
|
6256
6357
|
'style': 'position: relative;'
|
|
@@ -6264,24 +6365,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6264
6365
|
* NgPrerenderContainer
|
|
6265
6366
|
* Maximum performance for extremely large lists.
|
|
6266
6367
|
* It is based on algorithms for virtualization of screen objects.
|
|
6267
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
6368
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/components/ng-prerender-container/ng-prerender-container.component.ts
|
|
6268
6369
|
* @author Evgenii Alexandrovich Grebennikov
|
|
6269
6370
|
* @email djonnyx@gmail.com
|
|
6270
6371
|
*/
|
|
6271
6372
|
class NgPrerenderContainer {
|
|
6272
|
-
_list = viewChild('list',
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6373
|
+
_list = viewChild('list', /* @ts-ignore */
|
|
6374
|
+
...(ngDevMode ? [{ debugName: "_list" }] : /* istanbul ignore next */ []));
|
|
6375
|
+
enabled = input(false, /* @ts-ignore */
|
|
6376
|
+
...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
|
|
6377
|
+
direction = input(DEFAULT_DIRECTION, /* @ts-ignore */
|
|
6378
|
+
...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
6379
|
+
isVertical = input(true, /* @ts-ignore */
|
|
6380
|
+
...(ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []));
|
|
6381
|
+
scrollbarEnabled = input(DEFAULT_SCROLLBAR_ENABLED, /* @ts-ignore */
|
|
6382
|
+
...(ngDevMode ? [{ debugName: "scrollbarEnabled" }] : /* istanbul ignore next */ []));
|
|
6383
|
+
startOffset = input(0, /* @ts-ignore */
|
|
6384
|
+
...(ngDevMode ? [{ debugName: "startOffset" }] : /* istanbul ignore next */ []));
|
|
6385
|
+
endOffset = input(0, /* @ts-ignore */
|
|
6386
|
+
...(ngDevMode ? [{ debugName: "endOffset" }] : /* istanbul ignore next */ []));
|
|
6387
|
+
bounds = input.required(/* @ts-ignore */
|
|
6388
|
+
...(ngDevMode ? [{ debugName: "bounds" }] : /* istanbul ignore next */ []));
|
|
6389
|
+
dynamic = input(DEFAULT_DYNAMIC_SIZE, /* @ts-ignore */
|
|
6390
|
+
...(ngDevMode ? [{ debugName: "dynamic" }] : /* istanbul ignore next */ []));
|
|
6391
|
+
itemSize = input(DEFAULT_ITEM_SIZE, /* @ts-ignore */
|
|
6392
|
+
...(ngDevMode ? [{ debugName: "itemSize" }] : /* istanbul ignore next */ []));
|
|
6393
|
+
trackBy = input(TRACK_BY_PROPERTY_NAME, /* @ts-ignore */
|
|
6394
|
+
...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
|
|
6395
|
+
divides = input(DEFAULT_DIVIDES, /* @ts-ignore */
|
|
6396
|
+
...(ngDevMode ? [{ debugName: "divides" }] : /* istanbul ignore next */ []));
|
|
6397
|
+
itemRenderer = input(/* @ts-ignore */
|
|
6398
|
+
...(ngDevMode ? [undefined, { debugName: "itemRenderer" }] : /* istanbul ignore next */ []));
|
|
6285
6399
|
$render;
|
|
6286
6400
|
get active() {
|
|
6287
6401
|
return this._list()?.active ?? false;
|
|
@@ -6308,10 +6422,10 @@ class NgPrerenderContainer {
|
|
|
6308
6422
|
list.off();
|
|
6309
6423
|
}
|
|
6310
6424
|
}
|
|
6311
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6312
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
6425
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderContainer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6426
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: NgPrerenderContainer, isStandalone: false, selector: "ng-prerender-container", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, isVertical: { classPropertyName: "isVertical", publicName: "isVertical", isSignal: true, isRequired: false, transformFunction: null }, scrollbarEnabled: { classPropertyName: "scrollbarEnabled", publicName: "scrollbarEnabled", isSignal: true, isRequired: false, transformFunction: null }, startOffset: { classPropertyName: "startOffset", publicName: "startOffset", isSignal: true, isRequired: false, transformFunction: null }, endOffset: { classPropertyName: "endOffset", publicName: "endOffset", isSignal: true, isRequired: false, transformFunction: null }, bounds: { classPropertyName: "bounds", publicName: "bounds", isSignal: true, isRequired: true, transformFunction: null }, dynamic: { classPropertyName: "dynamic", publicName: "dynamic", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, divides: { classPropertyName: "divides", publicName: "divides", isSignal: true, isRequired: false, transformFunction: null }, itemRenderer: { classPropertyName: "itemRenderer", publicName: "itemRenderer", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "position: relative;" }, viewQueries: [{ propertyName: "_list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-prerender-list #list [bounds]=\"bounds()!\" [direction]=\"direction()\" [dynamic]=\"dynamic()\" [divides]=\"divides()\"\r\n [isVertical]=\"isVertical()\" [itemSize]=\"itemSize()\" [trackBy]=\"trackBy()\" [itemRenderer]=\"itemRenderer()\"\r\n [startOffset]=\"startOffset()\" [endOffset]=\"endOffset()\" [scrollbarEnabled]=\"scrollbarEnabled()\"\r\n [enabled]=\"enabled()\" />", styles: [":host{position:relative;display:block;width:400px;overflow:hidden}:host(.horizontal){height:48px}:host(.vertical){height:320px}.ngvl__snapped-container{position:relative;width:100%;opacity:0}.ngvl__snapped-container.prepared{opacity:1}.ngvl__list-snapper{-webkit-tap-highlight-color:transparent;position:absolute;list-style:none;left:0;top:0;z-index:1}.ngvl__list-scroller{-webkit-tap-highlight-color:transparent;position:absolute;left:0;top:0;width:100%;height:100%;z-index:0}.ngvl__screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n", ":host{visibility:hidden;height:0!important;width:0!important;overflow:hidden}\n"], dependencies: [{ kind: "component", type: NgPrerenderList, selector: "ng-prerender-list", inputs: ["enabled", "direction", "isVertical", "scrollbarEnabled", "startOffset", "endOffset", "bounds", "dynamic", "itemSize", "trackBy", "divides", "itemRenderer", "itemComponentClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
|
|
6313
6427
|
}
|
|
6314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderContainer, decorators: [{
|
|
6315
6429
|
type: Component,
|
|
6316
6430
|
args: [{ selector: 'ng-prerender-container', host: {
|
|
6317
6431
|
'style': 'position: relative;'
|
|
@@ -6322,7 +6436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
6322
6436
|
* Virtual list component.
|
|
6323
6437
|
* Maximum performance for extremely large lists.
|
|
6324
6438
|
* It is based on algorithms for virtualization of screen objects.
|
|
6325
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
6439
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/ng-virtual-list.component.ts
|
|
6326
6440
|
* @author Evgenii Alexandrovich Grebennikov
|
|
6327
6441
|
* @email djonnyx@gmail.com
|
|
6328
6442
|
*/
|
|
@@ -6334,10 +6448,12 @@ class NgVirtualListComponent {
|
|
|
6334
6448
|
*/
|
|
6335
6449
|
get id() { return this._id; }
|
|
6336
6450
|
_service = inject(NgVirtualListService);
|
|
6337
|
-
_prerender = viewChild('prerender',
|
|
6451
|
+
_prerender = viewChild('prerender', /* @ts-ignore */
|
|
6452
|
+
...(ngDevMode ? [{ debugName: "_prerender" }] : /* istanbul ignore next */ []));
|
|
6338
6453
|
_listContainerRef;
|
|
6339
6454
|
_snapContainerRef;
|
|
6340
|
-
_scrollerComponent = viewChild('scroller',
|
|
6455
|
+
_scrollerComponent = viewChild('scroller', /* @ts-ignore */
|
|
6456
|
+
...(ngDevMode ? [{ debugName: "_scrollerComponent" }] : /* istanbul ignore next */ []));
|
|
6341
6457
|
_scroller;
|
|
6342
6458
|
_list;
|
|
6343
6459
|
/**
|
|
@@ -6528,7 +6644,8 @@ class NgVirtualListComponent {
|
|
|
6528
6644
|
return v;
|
|
6529
6645
|
},
|
|
6530
6646
|
};
|
|
6531
|
-
defaultItemValue = input(null,
|
|
6647
|
+
defaultItemValue = input(null, /* @ts-ignore */
|
|
6648
|
+
...(ngDevMode ? [{ debugName: "defaultItemValue" }] : /* istanbul ignore next */ []));
|
|
6532
6649
|
/**
|
|
6533
6650
|
* Sets the selected items.
|
|
6534
6651
|
*/
|
|
@@ -7074,7 +7191,8 @@ class NgVirtualListComponent {
|
|
|
7074
7191
|
* Rendering element template.
|
|
7075
7192
|
*/
|
|
7076
7193
|
itemRenderer = input.required({ ...(ngDevMode ? { debugName: "itemRenderer" } : /* istanbul ignore next */ {}), ...this._itemRendererOptions });
|
|
7077
|
-
_itemRenderer = signal(undefined,
|
|
7194
|
+
_itemRenderer = signal(undefined, /* @ts-ignore */
|
|
7195
|
+
...(ngDevMode ? [{ debugName: "_itemRenderer" }] : /* istanbul ignore next */ []));
|
|
7078
7196
|
_itemConfigMapOptions = {
|
|
7079
7197
|
transform: (v) => {
|
|
7080
7198
|
let valid = validateObject(v);
|
|
@@ -7107,7 +7225,7 @@ class NgVirtualListComponent {
|
|
|
7107
7225
|
* `collapsable` determines whether an element with a `sticky` property greater than zero can collapse and
|
|
7108
7226
|
* collapse elements in front that do not have a `sticky` property.
|
|
7109
7227
|
* `fullSize` determines the size of an element when rendering lists with cell divisions. If sticky is 1 or 2, fullSize automatically becomes true. The default value is false.
|
|
7110
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
7228
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/models/item-config-map.model.ts
|
|
7111
7229
|
* @author Evgenii Alexandrovich Grebennikov
|
|
7112
7230
|
* @email djonnyx@gmail.com
|
|
7113
7231
|
*/
|
|
@@ -7330,7 +7448,8 @@ class NgVirtualListComponent {
|
|
|
7330
7448
|
* $2 is the number of the last element of the screen collection.
|
|
7331
7449
|
*/
|
|
7332
7450
|
screenReaderMessage = input(DEFAULT_SCREEN_READER_MESSAGE, { ...(ngDevMode ? { debugName: "screenReaderMessage" } : /* istanbul ignore next */ {}), ...this._screenReaderMessageOptions });
|
|
7333
|
-
screenReaderFormattedMessage = signal(this.screenReaderMessage(),
|
|
7451
|
+
screenReaderFormattedMessage = signal(this.screenReaderMessage(), /* @ts-ignore */
|
|
7452
|
+
...(ngDevMode ? [{ debugName: "screenReaderFormattedMessage" }] : /* istanbul ignore next */ []));
|
|
7334
7453
|
_langTextDir = {
|
|
7335
7454
|
transform: (v) => {
|
|
7336
7455
|
const valid = validateString(v);
|
|
@@ -7356,36 +7475,54 @@ class NgVirtualListComponent {
|
|
|
7356
7475
|
get isVertical() {
|
|
7357
7476
|
return this._isVertical;
|
|
7358
7477
|
}
|
|
7359
|
-
focusedElement = signal(null,
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7478
|
+
focusedElement = signal(null, /* @ts-ignore */
|
|
7479
|
+
...(ngDevMode ? [{ debugName: "focusedElement" }] : /* istanbul ignore next */ []));
|
|
7480
|
+
classes = signal({}, /* @ts-ignore */
|
|
7481
|
+
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
7482
|
+
_actualItems = signal([], /* @ts-ignore */
|
|
7483
|
+
...(ngDevMode ? [{ debugName: "_actualItems" }] : /* istanbul ignore next */ []));
|
|
7484
|
+
_collapsedItemIds = signal([], /* @ts-ignore */
|
|
7485
|
+
...(ngDevMode ? [{ debugName: "_collapsedItemIds" }] : /* istanbul ignore next */ []));
|
|
7363
7486
|
_displayComponents = [];
|
|
7364
7487
|
_snappedDisplayComponents = [];
|
|
7365
|
-
_bounds = signal(null,
|
|
7488
|
+
_bounds = signal(null, /* @ts-ignore */
|
|
7489
|
+
...(ngDevMode ? [{ debugName: "_bounds" }] : /* istanbul ignore next */ []));
|
|
7366
7490
|
get bounds() { return this._bounds; }
|
|
7367
7491
|
_actualScrollbarEnabled;
|
|
7368
7492
|
_actualAlignment;
|
|
7369
7493
|
get actualAlignment() { return this._actualAlignment; }
|
|
7370
|
-
_actualItemSize = signal(DEFAULT_ITEM_SIZE,
|
|
7494
|
+
_actualItemSize = signal(DEFAULT_ITEM_SIZE, /* @ts-ignore */
|
|
7495
|
+
...(ngDevMode ? [{ debugName: "_actualItemSize" }] : /* istanbul ignore next */ []));
|
|
7371
7496
|
get actualItemSize() { return this._actualItemSize; }
|
|
7372
|
-
_actualMinItemSize = signal(DEFAULT_MIN_ITEM_SIZE,
|
|
7497
|
+
_actualMinItemSize = signal(DEFAULT_MIN_ITEM_SIZE, /* @ts-ignore */
|
|
7498
|
+
...(ngDevMode ? [{ debugName: "_actualMinItemSize" }] : /* istanbul ignore next */ []));
|
|
7373
7499
|
get actualMinItemSize() { return this._actualMinItemSize; }
|
|
7374
|
-
_actualMaxItemSize = signal(DEFAULT_MAX_ITEM_SIZE,
|
|
7500
|
+
_actualMaxItemSize = signal(DEFAULT_MAX_ITEM_SIZE, /* @ts-ignore */
|
|
7501
|
+
...(ngDevMode ? [{ debugName: "_actualMaxItemSize" }] : /* istanbul ignore next */ []));
|
|
7375
7502
|
get actualMaxItemSize() { return this._actualMaxItemSize; }
|
|
7376
|
-
_totalSize = signal(0,
|
|
7377
|
-
|
|
7503
|
+
_totalSize = signal(0, /* @ts-ignore */
|
|
7504
|
+
...(ngDevMode ? [{ debugName: "_totalSize" }] : /* istanbul ignore next */ []));
|
|
7505
|
+
_listBounds = signal(null, /* @ts-ignore */
|
|
7506
|
+
...(ngDevMode ? [{ debugName: "_listBounds" }] : /* istanbul ignore next */ []));
|
|
7378
7507
|
_$scrollSize = new BehaviorSubject(0);
|
|
7379
|
-
_isScrollStart = signal(true,
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7508
|
+
_isScrollStart = signal(true, /* @ts-ignore */
|
|
7509
|
+
...(ngDevMode ? [{ debugName: "_isScrollStart" }] : /* istanbul ignore next */ []));
|
|
7510
|
+
_isScrollEnd = signal(false, /* @ts-ignore */
|
|
7511
|
+
...(ngDevMode ? [{ debugName: "_isScrollEnd" }] : /* istanbul ignore next */ []));
|
|
7512
|
+
_precalculatedScrollStartOffset = signal(0, /* @ts-ignore */
|
|
7513
|
+
...(ngDevMode ? [{ debugName: "_precalculatedScrollStartOffset" }] : /* istanbul ignore next */ []));
|
|
7514
|
+
_precalculatedScrollEndOffset = signal(0, /* @ts-ignore */
|
|
7515
|
+
...(ngDevMode ? [{ debugName: "_precalculatedScrollEndOffset" }] : /* istanbul ignore next */ []));
|
|
7516
|
+
_actualScrollStartOffset = signal(0, /* @ts-ignore */
|
|
7517
|
+
...(ngDevMode ? [{ debugName: "_actualScrollStartOffset" }] : /* istanbul ignore next */ []));
|
|
7518
|
+
_actualScrollEndOffset = signal(0, /* @ts-ignore */
|
|
7519
|
+
...(ngDevMode ? [{ debugName: "_actualScrollEndOffset" }] : /* istanbul ignore next */ []));
|
|
7385
7520
|
_actualSnapScrollToStart;
|
|
7386
7521
|
_actualSnapScrollToEnd;
|
|
7387
|
-
_alignmentScrollStartOffset = signal(0,
|
|
7388
|
-
|
|
7522
|
+
_alignmentScrollStartOffset = signal(0, /* @ts-ignore */
|
|
7523
|
+
...(ngDevMode ? [{ debugName: "_alignmentScrollStartOffset" }] : /* istanbul ignore next */ []));
|
|
7524
|
+
_alignmentScrollEndOffset = signal(0, /* @ts-ignore */
|
|
7525
|
+
...(ngDevMode ? [{ debugName: "_alignmentScrollEndOffset" }] : /* istanbul ignore next */ []));
|
|
7389
7526
|
_resizeSnappedComponentHandler = () => {
|
|
7390
7527
|
const list = this._list(), scroller = this._scroller(), bounds = this._bounds(), snappedComponents = this._snappedDisplayComponents;
|
|
7391
7528
|
if (!!list && !!scroller && snappedComponents.length > 0) {
|
|
@@ -7524,7 +7661,8 @@ class NgVirtualListComponent {
|
|
|
7524
7661
|
this._isInfinity = computed(() => {
|
|
7525
7662
|
const mode = this.spreadingMode();
|
|
7526
7663
|
return isSpreadingMode(mode, SpreadingModes.INFINITY);
|
|
7527
|
-
},
|
|
7664
|
+
}, /* @ts-ignore */
|
|
7665
|
+
...(ngDevMode ? [{ debugName: "_isInfinity" }] : /* istanbul ignore next */ []));
|
|
7528
7666
|
const $isInfinity = toObservable(this._isInfinity);
|
|
7529
7667
|
$isInfinity.pipe(takeUntilDestroyed(), tap(v => {
|
|
7530
7668
|
this._trackBox.isInfinity = this._service.isInfinity = v;
|
|
@@ -7603,10 +7741,12 @@ class NgVirtualListComponent {
|
|
|
7603
7741
|
const $actualItemSize = toObservable(this._actualItemSize), $actualItems = toObservable(this._actualItems).pipe(takeUntilDestroyed(), distinctUntilChanged());
|
|
7604
7742
|
this._scroller = computed(() => {
|
|
7605
7743
|
return this._scrollerComponent()?.scrollViewport();
|
|
7606
|
-
},
|
|
7744
|
+
}, /* @ts-ignore */
|
|
7745
|
+
...(ngDevMode ? [{ debugName: "_scroller" }] : /* istanbul ignore next */ []));
|
|
7607
7746
|
this._list = computed(() => {
|
|
7608
7747
|
return this._scrollerComponent()?.scrollContent();
|
|
7609
|
-
},
|
|
7748
|
+
}, /* @ts-ignore */
|
|
7749
|
+
...(ngDevMode ? [{ debugName: "_list" }] : /* istanbul ignore next */ []));
|
|
7610
7750
|
this._service.$focusItem.pipe(takeUntilDestroyed(this._destroyRef), tap(params => {
|
|
7611
7751
|
const { element, position, align, behavior } = params;
|
|
7612
7752
|
this.focusItem(element, position, align, behavior);
|
|
@@ -7685,11 +7825,13 @@ class NgVirtualListComponent {
|
|
|
7685
7825
|
this._actualSnapScrollToStart = computed(() => {
|
|
7686
7826
|
const snapScrollToStart = this.snapScrollToStart(), spreadingMode = this.spreadingMode(), isInfinity = isSpreadingMode(spreadingMode, SpreadingModes.INFINITY);
|
|
7687
7827
|
return isInfinity ? false : snapScrollToStart;
|
|
7688
|
-
},
|
|
7828
|
+
}, /* @ts-ignore */
|
|
7829
|
+
...(ngDevMode ? [{ debugName: "_actualSnapScrollToStart" }] : /* istanbul ignore next */ []));
|
|
7689
7830
|
this._actualSnapScrollToEnd = computed(() => {
|
|
7690
7831
|
const snapScrollToEnd = this.snapScrollToEnd(), spreadingMode = this.spreadingMode(), isInfinity = isSpreadingMode(spreadingMode, SpreadingModes.INFINITY);
|
|
7691
7832
|
return isInfinity ? false : snapScrollToEnd;
|
|
7692
|
-
},
|
|
7833
|
+
}, /* @ts-ignore */
|
|
7834
|
+
...(ngDevMode ? [{ debugName: "_actualSnapScrollToEnd" }] : /* istanbul ignore next */ []));
|
|
7693
7835
|
const $viewInit = this.$viewInit, $prerenderContainer = toObservable(this._prerender);
|
|
7694
7836
|
const $prerender = $viewInit.pipe(takeUntilDestroyed(), filter$1(v => !!v), switchMap$1(v => {
|
|
7695
7837
|
return $prerenderContainer.pipe(takeUntilDestroyed(this._destroyRef), filter$1(v => !!v), switchMap$1(v => v.$render));
|
|
@@ -7919,11 +8061,13 @@ class NgVirtualListComponent {
|
|
|
7919
8061
|
this._actualAlignment = computed(() => {
|
|
7920
8062
|
const alignment = this.alignment(), spreadingMode = this.spreadingMode();
|
|
7921
8063
|
return isSpreadingMode(spreadingMode, SpreadingModes.INFINITY) ? Alignments.CENTER : alignment;
|
|
7922
|
-
},
|
|
8064
|
+
}, /* @ts-ignore */
|
|
8065
|
+
...(ngDevMode ? [{ debugName: "_actualAlignment" }] : /* istanbul ignore next */ []));
|
|
7923
8066
|
this._actualScrollbarEnabled = computed(() => {
|
|
7924
8067
|
const scrollbarEnabled = this.scrollbarEnabled(), spreadingMode = this.spreadingMode();
|
|
7925
8068
|
return isSpreadingMode(spreadingMode, SpreadingModes.INFINITY) ? false : scrollbarEnabled;
|
|
7926
|
-
},
|
|
8069
|
+
}, /* @ts-ignore */
|
|
8070
|
+
...(ngDevMode ? [{ debugName: "_actualScrollbarEnabled" }] : /* istanbul ignore next */ []));
|
|
7927
8071
|
const $alignment = toObservable(this._actualAlignment), $precalculatedScrollStartOffset = toObservable(this._precalculatedScrollStartOffset), $precalculatedScrollEndOffset = toObservable(this._precalculatedScrollEndOffset), $listBounds = toObservable(this._listBounds).pipe(filter$1(b => !!b)), $scrollSize = this._$scrollSize.asObservable(), $bufferSize = toObservable(this.bufferSize).pipe(map(v => v < 0 ? DEFAULT_BUFFER_SIZE : v)), $maxBufferSize = toObservable(this.maxBufferSize).pipe(map(v => v < 0 ? DEFAULT_BUFFER_SIZE : v)), $snapToItem = toObservable(this.snapToItem), $snapToItemAlign = toObservable(this.snapToItemAlign), $stickyEnabled = toObservable(this.stickyEnabled), $isLazy = toObservable(this.collectionMode).pipe(map(v => this.getIsLazy(v || DEFAULT_COLLECTION_MODE))), $enabledBufferOptimization = toObservable(this.enabledBufferOptimization), $snappingMethod = toObservable(this.snappingMethod).pipe(map(v => this.getIsSnappingMethodAdvanced(v || DEFAULT_SNAPPING_METHOD))), $collapsingMode = toObservable(this.collapsingMode), $selectingMode = toObservable(this.selectingMode), $selectedIds = toObservable(this.selectedIds), $collapsedIds = toObservable(this.collapsedIds).pipe(distinctUntilChanged(), map(v => Array.isArray(v) ? v : [])), $collapsedItemIds = toObservable(this._collapsedItemIds).pipe(distinctUntilChanged(), map(v => Array.isArray(v) ? v : [])), $itemTransform = toObservable(this.itemTransform), $screenReaderMessage = toObservable(this.screenReaderMessage), $displayItems = this._service.$displayItems, $cacheVersion = this._service.$cacheVersion;
|
|
7928
8072
|
$snapToItem.pipe(takeUntilDestroyed(), tap(v => {
|
|
7929
8073
|
this._service.snapToItem = v;
|
|
@@ -8901,10 +9045,10 @@ class NgVirtualListComponent {
|
|
|
8901
9045
|
}
|
|
8902
9046
|
}
|
|
8903
9047
|
}
|
|
8904
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8905
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: NgVirtualListComponent, isStandalone: false, selector: "ng-virtual-list", inputs: { scrollbarThickness: { classPropertyName: "scrollbarThickness", publicName: "scrollbarThickness", isSignal: true, isRequired: false, transformFunction: null }, scrollbarMinSize: { classPropertyName: "scrollbarMinSize", publicName: "scrollbarMinSize", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThumbRenderer: { classPropertyName: "scrollbarThumbRenderer", publicName: "scrollbarThumbRenderer", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThumbParams: { classPropertyName: "scrollbarThumbParams", publicName: "scrollbarThumbParams", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, waitForPreparation: { classPropertyName: "waitForPreparation", publicName: "waitForPreparation", isSignal: true, isRequired: false, transformFunction: null }, clickDistance: { classPropertyName: "clickDistance", publicName: "clickDistance", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, defaultItemValue: { classPropertyName: "defaultItemValue", publicName: "defaultItemValue", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, collapsedIds: { classPropertyName: "collapsedIds", publicName: "collapsedIds", isSignal: true, isRequired: false, transformFunction: null }, selectByClick: { classPropertyName: "selectByClick", publicName: "selectByClick", isSignal: true, isRequired: false, transformFunction: null }, collapseByClick: { classPropertyName: "collapseByClick", publicName: "collapseByClick", isSignal: true, isRequired: false, transformFunction: null }, snap: { classPropertyName: "snap", publicName: "snap", isSignal: true, isRequired: false, transformFunction: null }, stickyEnabled: { classPropertyName: "stickyEnabled", publicName: "stickyEnabled", isSignal: true, isRequired: false, transformFunction: null }, snapToEndTransitionInstantOffset: { classPropertyName: "snapToEndTransitionInstantOffset", publicName: "snapToEndTransitionInstantOffset", isSignal: true, isRequired: false, transformFunction: null }, scrollStartOffset: { classPropertyName: "scrollStartOffset", publicName: "scrollStartOffset", isSignal: true, isRequired: false, transformFunction: null }, scrollEndOffset: { classPropertyName: "scrollEndOffset", publicName: "scrollEndOffset", isSignal: true, isRequired: false, transformFunction: null }, snapScrollToStart: { classPropertyName: "snapScrollToStart", publicName: "snapScrollToStart", isSignal: true, isRequired: false, transformFunction: null }, snapScrollToEnd: { classPropertyName: "snapScrollToEnd", publicName: "snapScrollToEnd", isSignal: true, isRequired: false, transformFunction: null }, snapScrollToBottom: { classPropertyName: "snapScrollToBottom", publicName: "snapScrollToBottom", isSignal: true, isRequired: false, transformFunction: null }, scrollbarEnabled: { classPropertyName: "scrollbarEnabled", publicName: "scrollbarEnabled", isSignal: true, isRequired: false, transformFunction: null }, scrollbarInteractive: { classPropertyName: "scrollbarInteractive", publicName: "scrollbarInteractive", isSignal: true, isRequired: false, transformFunction: null }, overlappingScrollbar: { classPropertyName: "overlappingScrollbar", publicName: "overlappingScrollbar", isSignal: true, isRequired: false, transformFunction: null }, scrollBehavior: { classPropertyName: "scrollBehavior", publicName: "scrollBehavior", isSignal: true, isRequired: false, transformFunction: null }, scrollingSettings: { classPropertyName: "scrollingSettings", publicName: "scrollingSettings", isSignal: true, isRequired: false, transformFunction: null }, itemTransform: { classPropertyName: "itemTransform", publicName: "itemTransform", isSignal: true, isRequired: false, transformFunction: null }, snapToItem: { classPropertyName: "snapToItem", publicName: "snapToItem", isSignal: true, isRequired: false, transformFunction: null }, snapToItemAlign: { classPropertyName: "snapToItemAlign", publicName: "snapToItemAlign", isSignal: true, isRequired: false, transformFunction: null }, snappingDistance: { classPropertyName: "snappingDistance", publicName: "snappingDistance", isSignal: true, isRequired: false, transformFunction: null }, scrollingOneByOne: { classPropertyName: "scrollingOneByOne", publicName: "scrollingOneByOne", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, zIndexWhenSelecting: { classPropertyName: "zIndexWhenSelecting", publicName: "zIndexWhenSelecting", isSignal: true, isRequired: false, transformFunction: null }, spreadingMode: { classPropertyName: "spreadingMode", publicName: "spreadingMode", isSignal: true, isRequired: false, transformFunction: null }, divides: { classPropertyName: "divides", publicName: "divides", isSignal: true, isRequired: false, transformFunction: null }, motionBlur: { classPropertyName: "motionBlur", publicName: "motionBlur", isSignal: true, isRequired: false, transformFunction: null }, maxMotionBlur: { classPropertyName: "maxMotionBlur", publicName: "maxMotionBlur", isSignal: true, isRequired: false, transformFunction: null }, motionBlurEnabled: { classPropertyName: "motionBlurEnabled", publicName: "motionBlurEnabled", isSignal: true, isRequired: false, transformFunction: null }, animationParams: { classPropertyName: "animationParams", publicName: "animationParams", isSignal: true, isRequired: false, transformFunction: null }, overscrollEnabled: { classPropertyName: "overscrollEnabled", publicName: "overscrollEnabled", isSignal: true, isRequired: false, transformFunction: null }, enabledBufferOptimization: { classPropertyName: "enabledBufferOptimization", publicName: "enabledBufferOptimization", isSignal: true, isRequired: false, transformFunction: null }, itemRenderer: { classPropertyName: "itemRenderer", publicName: "itemRenderer", isSignal: true, isRequired: true, transformFunction: null }, itemConfigMap: { classPropertyName: "itemConfigMap", publicName: "itemConfigMap", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, minItemSize: { classPropertyName: "minItemSize", publicName: "minItemSize", isSignal: true, isRequired: false, transformFunction: null }, maxItemSize: { classPropertyName: "maxItemSize", publicName: "maxItemSize", isSignal: true, isRequired: false, transformFunction: null }, dynamicSize: { classPropertyName: "dynamicSize", publicName: "dynamicSize", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, collectionMode: { classPropertyName: "collectionMode", publicName: "collectionMode", isSignal: true, isRequired: false, transformFunction: null }, bufferSize: { classPropertyName: "bufferSize", publicName: "bufferSize", isSignal: true, isRequired: false, transformFunction: null }, maxBufferSize: { classPropertyName: "maxBufferSize", publicName: "maxBufferSize", isSignal: true, isRequired: false, transformFunction: null }, snappingMethod: { classPropertyName: "snappingMethod", publicName: "snappingMethod", isSignal: true, isRequired: false, transformFunction: null }, collapsingMode: { classPropertyName: "collapsingMode", publicName: "collapsingMode", isSignal: true, isRequired: false, transformFunction: null }, methodForSelecting: { classPropertyName: "methodForSelecting", publicName: "methodForSelecting", isSignal: true, isRequired: false, transformFunction: null }, selectingMode: { classPropertyName: "selectingMode", publicName: "selectingMode", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, screenReaderMessage: { classPropertyName: "screenReaderMessage", publicName: "screenReaderMessage", isSignal: true, isRequired: false, transformFunction: null }, langTextDir: { classPropertyName: "langTextDir", publicName: "langTextDir", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onScroll: "onScroll", onScrollEnd: "onScrollEnd", onViewportChange: "onViewportChange", onSnapItem: "onSnapItem", onItemClick: "onItemClick", onSelect: "onSelect", onCollapse: "onCollapse", onScrollReachStart: "onScrollReachStart", onScrollReachEnd: "onScrollReachEnd" }, host: { styleAttribute: "position: relative;" }, providers: [NgVirtualListService, NgVirtualListPublicService], viewQueries: [{ propertyName: "_prerender", first: true, predicate: ["prerender"], descendants: true, isSignal: true }, { propertyName: "_scrollerComponent", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "_listContainerRef", first: true, predicate: ["renderersContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "_snapContainerRef", first: true, predicate: ["snapRendererContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "@let scrollStartOffset = _actualScrollStartOffset();\r\n@let scrollEndOffset = _actualScrollEndOffset();\r\n@let alignmentScrollStartOffset = _alignmentScrollStartOffset();\r\n@let alignmentScrollEndOffset = _alignmentScrollEndOffset();\r\n\r\n<div aria-live=\"polite\" aria-atomic=\"true\" class=\"ngvl__screen-reader\">\r\n {{ screenReaderFormattedMessage() }}\r\n</div>\r\n\r\n<ng-prerender-container #prerender [bounds]=\"bounds()!\" [direction]=\"direction()\" [dynamic]=\"dynamicSize()\"\r\n [divides]=\"divides()\" [isVertical]=\"isVertical\" [itemSize]=\"actualItemSize()\" [trackBy]=\"trackBy()\"\r\n [itemRenderer]=\"itemRenderer()\" [startOffset]=\"scrollStartOffset\" [endOffset]=\"scrollEndOffset\"\r\n [scrollbarEnabled]=\"scroller.scrollbarShow()\" [enabled]=\"dynamicSize() && snapScrollToEnd()\" />\r\n\r\n@if (stickyEnabled()) {\r\n <div localeSensitive [langTextDir]=\"langTextDir()\" #snappedContainer class=\"ngvl__snapped-container\"\r\n [ngClass]=\"classes()\">\r\n <div #snapped part=\"snapped-item\" class=\"ngvl__list-snapper\">\r\n <ng-container #snapRendererContainer></ng-container>\r\n </div>\r\n </div>\r\n}\r\n\r\n<ng-scroller #scroller class=\"ngvl__list-scroller\" [classes]=\"classes()\" [startOffset]=\"scrollStartOffset\"\r\n [endOffset]=\"scrollEndOffset\" [alignmentStartOffset]=\"alignmentScrollStartOffset\" [alignmentEndOffset]=\"alignmentScrollEndOffset\"\r\n [direction]=\"direction()\" [scrollbarThumbRenderer]=\"scrollbarThumbRenderer()\" [isInfinity]=\"_isInfinity()\"\r\n [scrollbarThickness]=\"scrollbarThickness()\" [scrollbarThumbParams]=\"scrollbarThumbParams()\"\r\n [animationParams]=\"animationParams()\" [focusedElement]=\"focusedElement()\" [loading]=\"loading()\"\r\n [overscrollEnabled]=\"overscrollEnabled()\" [snappingDistance]=\"snappingDistance()\" [overlappingScrollbar]=\"overlappingScrollbar()\"\r\n [scrollbarEnabled]=\"_actualScrollbarEnabled()\" [scrollbarInteractive]=\"scrollbarInteractive()\" [snapToItem]=\"snapToItem()\"\r\n [snapToItemAlign]=\"snapToItemAlign()\" [scrollbarMinSize]=\"scrollbarMinSize()\" [scrollBehavior]=\"scrollBehavior()\"\r\n [scrollingSettings]=\"scrollingSettings()\" [scrollingOneByOne]=\"scrollingOneByOne()\" [motionBlur]=\"motionBlur()\"\r\n [maxMotionBlur]=\"maxMotionBlur()\" [motionBlurEnabled]=\"motionBlurEnabled()\">\r\n <ng-container #renderersContainer></ng-container>\r\n</ng-scroller>", styles: [":host{position:relative;display:block;width:400px;overflow:hidden}:host(.horizontal){height:48px}:host(.vertical){height:320px}.ngvl__snapped-container{position:relative;width:100%;opacity:0}.ngvl__snapped-container.prepared{opacity:1}.ngvl__list-snapper{-webkit-tap-highlight-color:transparent;position:absolute;list-style:none;left:0;top:0;z-index:1}.ngvl__list-scroller{-webkit-tap-highlight-color:transparent;position:absolute;left:0;top:0;width:100%;height:100%;z-index:0}.ngvl__screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: NgScrollerComponent, selector: "ng-scroller", inputs: ["scrollbarEnabled", "scrollbarInteractive", "focusedElement", "overlappingScrollbar", "content", "loading", "classes", "scrollbarMinSize", "scrollbarThickness", "scrollbarThumbRenderer", "scrollbarThumbParams", "motionBlur", "maxMotionBlur", "motionBlurEnabled"], outputs: ["onScrollbarVisible"] }, { kind: "component", type: NgPrerenderContainer, selector: "ng-prerender-container", inputs: ["enabled", "direction", "isVertical", "scrollbarEnabled", "startOffset", "endOffset", "bounds", "dynamic", "itemSize", "trackBy", "divides", "itemRenderer"] }, { kind: "directive", type: LocaleSensitiveDirective, selector: "[localeSensitive]", inputs: ["langTextDir", "listDir"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
|
|
9048
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9049
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: NgVirtualListComponent, isStandalone: false, selector: "ng-virtual-list", inputs: { scrollbarThickness: { classPropertyName: "scrollbarThickness", publicName: "scrollbarThickness", isSignal: true, isRequired: false, transformFunction: null }, scrollbarMinSize: { classPropertyName: "scrollbarMinSize", publicName: "scrollbarMinSize", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThumbRenderer: { classPropertyName: "scrollbarThumbRenderer", publicName: "scrollbarThumbRenderer", isSignal: true, isRequired: false, transformFunction: null }, scrollbarThumbParams: { classPropertyName: "scrollbarThumbParams", publicName: "scrollbarThumbParams", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, waitForPreparation: { classPropertyName: "waitForPreparation", publicName: "waitForPreparation", isSignal: true, isRequired: false, transformFunction: null }, clickDistance: { classPropertyName: "clickDistance", publicName: "clickDistance", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, defaultItemValue: { classPropertyName: "defaultItemValue", publicName: "defaultItemValue", isSignal: true, isRequired: false, transformFunction: null }, selectedIds: { classPropertyName: "selectedIds", publicName: "selectedIds", isSignal: true, isRequired: false, transformFunction: null }, collapsedIds: { classPropertyName: "collapsedIds", publicName: "collapsedIds", isSignal: true, isRequired: false, transformFunction: null }, selectByClick: { classPropertyName: "selectByClick", publicName: "selectByClick", isSignal: true, isRequired: false, transformFunction: null }, collapseByClick: { classPropertyName: "collapseByClick", publicName: "collapseByClick", isSignal: true, isRequired: false, transformFunction: null }, snap: { classPropertyName: "snap", publicName: "snap", isSignal: true, isRequired: false, transformFunction: null }, stickyEnabled: { classPropertyName: "stickyEnabled", publicName: "stickyEnabled", isSignal: true, isRequired: false, transformFunction: null }, snapToEndTransitionInstantOffset: { classPropertyName: "snapToEndTransitionInstantOffset", publicName: "snapToEndTransitionInstantOffset", isSignal: true, isRequired: false, transformFunction: null }, scrollStartOffset: { classPropertyName: "scrollStartOffset", publicName: "scrollStartOffset", isSignal: true, isRequired: false, transformFunction: null }, scrollEndOffset: { classPropertyName: "scrollEndOffset", publicName: "scrollEndOffset", isSignal: true, isRequired: false, transformFunction: null }, snapScrollToStart: { classPropertyName: "snapScrollToStart", publicName: "snapScrollToStart", isSignal: true, isRequired: false, transformFunction: null }, snapScrollToEnd: { classPropertyName: "snapScrollToEnd", publicName: "snapScrollToEnd", isSignal: true, isRequired: false, transformFunction: null }, snapScrollToBottom: { classPropertyName: "snapScrollToBottom", publicName: "snapScrollToBottom", isSignal: true, isRequired: false, transformFunction: null }, scrollbarEnabled: { classPropertyName: "scrollbarEnabled", publicName: "scrollbarEnabled", isSignal: true, isRequired: false, transformFunction: null }, scrollbarInteractive: { classPropertyName: "scrollbarInteractive", publicName: "scrollbarInteractive", isSignal: true, isRequired: false, transformFunction: null }, overlappingScrollbar: { classPropertyName: "overlappingScrollbar", publicName: "overlappingScrollbar", isSignal: true, isRequired: false, transformFunction: null }, scrollBehavior: { classPropertyName: "scrollBehavior", publicName: "scrollBehavior", isSignal: true, isRequired: false, transformFunction: null }, scrollingSettings: { classPropertyName: "scrollingSettings", publicName: "scrollingSettings", isSignal: true, isRequired: false, transformFunction: null }, itemTransform: { classPropertyName: "itemTransform", publicName: "itemTransform", isSignal: true, isRequired: false, transformFunction: null }, snapToItem: { classPropertyName: "snapToItem", publicName: "snapToItem", isSignal: true, isRequired: false, transformFunction: null }, snapToItemAlign: { classPropertyName: "snapToItemAlign", publicName: "snapToItemAlign", isSignal: true, isRequired: false, transformFunction: null }, snappingDistance: { classPropertyName: "snappingDistance", publicName: "snappingDistance", isSignal: true, isRequired: false, transformFunction: null }, scrollingOneByOne: { classPropertyName: "scrollingOneByOne", publicName: "scrollingOneByOne", isSignal: true, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, zIndexWhenSelecting: { classPropertyName: "zIndexWhenSelecting", publicName: "zIndexWhenSelecting", isSignal: true, isRequired: false, transformFunction: null }, spreadingMode: { classPropertyName: "spreadingMode", publicName: "spreadingMode", isSignal: true, isRequired: false, transformFunction: null }, divides: { classPropertyName: "divides", publicName: "divides", isSignal: true, isRequired: false, transformFunction: null }, motionBlur: { classPropertyName: "motionBlur", publicName: "motionBlur", isSignal: true, isRequired: false, transformFunction: null }, maxMotionBlur: { classPropertyName: "maxMotionBlur", publicName: "maxMotionBlur", isSignal: true, isRequired: false, transformFunction: null }, motionBlurEnabled: { classPropertyName: "motionBlurEnabled", publicName: "motionBlurEnabled", isSignal: true, isRequired: false, transformFunction: null }, animationParams: { classPropertyName: "animationParams", publicName: "animationParams", isSignal: true, isRequired: false, transformFunction: null }, overscrollEnabled: { classPropertyName: "overscrollEnabled", publicName: "overscrollEnabled", isSignal: true, isRequired: false, transformFunction: null }, enabledBufferOptimization: { classPropertyName: "enabledBufferOptimization", publicName: "enabledBufferOptimization", isSignal: true, isRequired: false, transformFunction: null }, itemRenderer: { classPropertyName: "itemRenderer", publicName: "itemRenderer", isSignal: true, isRequired: true, transformFunction: null }, itemConfigMap: { classPropertyName: "itemConfigMap", publicName: "itemConfigMap", isSignal: true, isRequired: false, transformFunction: null }, itemSize: { classPropertyName: "itemSize", publicName: "itemSize", isSignal: true, isRequired: false, transformFunction: null }, minItemSize: { classPropertyName: "minItemSize", publicName: "minItemSize", isSignal: true, isRequired: false, transformFunction: null }, maxItemSize: { classPropertyName: "maxItemSize", publicName: "maxItemSize", isSignal: true, isRequired: false, transformFunction: null }, dynamicSize: { classPropertyName: "dynamicSize", publicName: "dynamicSize", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null }, collectionMode: { classPropertyName: "collectionMode", publicName: "collectionMode", isSignal: true, isRequired: false, transformFunction: null }, bufferSize: { classPropertyName: "bufferSize", publicName: "bufferSize", isSignal: true, isRequired: false, transformFunction: null }, maxBufferSize: { classPropertyName: "maxBufferSize", publicName: "maxBufferSize", isSignal: true, isRequired: false, transformFunction: null }, snappingMethod: { classPropertyName: "snappingMethod", publicName: "snappingMethod", isSignal: true, isRequired: false, transformFunction: null }, collapsingMode: { classPropertyName: "collapsingMode", publicName: "collapsingMode", isSignal: true, isRequired: false, transformFunction: null }, methodForSelecting: { classPropertyName: "methodForSelecting", publicName: "methodForSelecting", isSignal: true, isRequired: false, transformFunction: null }, selectingMode: { classPropertyName: "selectingMode", publicName: "selectingMode", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, screenReaderMessage: { classPropertyName: "screenReaderMessage", publicName: "screenReaderMessage", isSignal: true, isRequired: false, transformFunction: null }, langTextDir: { classPropertyName: "langTextDir", publicName: "langTextDir", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onScroll: "onScroll", onScrollEnd: "onScrollEnd", onViewportChange: "onViewportChange", onSnapItem: "onSnapItem", onItemClick: "onItemClick", onSelect: "onSelect", onCollapse: "onCollapse", onScrollReachStart: "onScrollReachStart", onScrollReachEnd: "onScrollReachEnd" }, host: { styleAttribute: "position: relative;" }, providers: [NgVirtualListService, NgVirtualListPublicService], viewQueries: [{ propertyName: "_prerender", first: true, predicate: ["prerender"], descendants: true, isSignal: true }, { propertyName: "_scrollerComponent", first: true, predicate: ["scroller"], descendants: true, isSignal: true }, { propertyName: "_listContainerRef", first: true, predicate: ["renderersContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "_snapContainerRef", first: true, predicate: ["snapRendererContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "@let scrollStartOffset = _actualScrollStartOffset();\r\n@let scrollEndOffset = _actualScrollEndOffset();\r\n@let alignmentScrollStartOffset = _alignmentScrollStartOffset();\r\n@let alignmentScrollEndOffset = _alignmentScrollEndOffset();\r\n\r\n<div aria-live=\"polite\" aria-atomic=\"true\" class=\"ngvl__screen-reader\">\r\n {{ screenReaderFormattedMessage() }}\r\n</div>\r\n\r\n<ng-prerender-container #prerender [bounds]=\"bounds()!\" [direction]=\"direction()\" [dynamic]=\"dynamicSize()\"\r\n [divides]=\"divides()\" [isVertical]=\"isVertical\" [itemSize]=\"actualItemSize()\" [trackBy]=\"trackBy()\"\r\n [itemRenderer]=\"itemRenderer()\" [startOffset]=\"scrollStartOffset\" [endOffset]=\"scrollEndOffset\"\r\n [scrollbarEnabled]=\"scroller.scrollbarShow()\" [enabled]=\"dynamicSize() && snapScrollToEnd()\" />\r\n\r\n@if (stickyEnabled()) {\r\n <div localeSensitive [langTextDir]=\"langTextDir()\" #snappedContainer class=\"ngvl__snapped-container\"\r\n [ngClass]=\"classes()\">\r\n <div #snapped part=\"snapped-item\" class=\"ngvl__list-snapper\">\r\n <ng-container #snapRendererContainer></ng-container>\r\n </div>\r\n </div>\r\n}\r\n\r\n<ng-scroller #scroller class=\"ngvl__list-scroller\" [classes]=\"classes()\" [startOffset]=\"scrollStartOffset\"\r\n [endOffset]=\"scrollEndOffset\" [alignmentStartOffset]=\"alignmentScrollStartOffset\" [alignmentEndOffset]=\"alignmentScrollEndOffset\"\r\n [direction]=\"direction()\" [scrollbarThumbRenderer]=\"scrollbarThumbRenderer()\" [isInfinity]=\"_isInfinity()\"\r\n [scrollbarThickness]=\"scrollbarThickness()\" [scrollbarThumbParams]=\"scrollbarThumbParams()\"\r\n [animationParams]=\"animationParams()\" [focusedElement]=\"focusedElement()\" [loading]=\"loading()\"\r\n [overscrollEnabled]=\"overscrollEnabled()\" [snappingDistance]=\"snappingDistance()\" [overlappingScrollbar]=\"overlappingScrollbar()\"\r\n [scrollbarEnabled]=\"_actualScrollbarEnabled()\" [scrollbarInteractive]=\"scrollbarInteractive()\" [snapToItem]=\"snapToItem()\"\r\n [snapToItemAlign]=\"snapToItemAlign()\" [scrollbarMinSize]=\"scrollbarMinSize()\" [scrollBehavior]=\"scrollBehavior()\"\r\n [scrollingSettings]=\"scrollingSettings()\" [scrollingOneByOne]=\"scrollingOneByOne()\" [motionBlur]=\"motionBlur()\"\r\n [maxMotionBlur]=\"maxMotionBlur()\" [motionBlurEnabled]=\"motionBlurEnabled()\">\r\n <ng-container #renderersContainer></ng-container>\r\n</ng-scroller>", styles: [":host{position:relative;display:block;width:400px;overflow:hidden}:host(.horizontal){height:48px}:host(.vertical){height:320px}.ngvl__snapped-container{position:relative;width:100%;opacity:0}.ngvl__snapped-container.prepared{opacity:1}.ngvl__list-snapper{-webkit-tap-highlight-color:transparent;position:absolute;list-style:none;left:0;top:0;z-index:1}.ngvl__list-scroller{-webkit-tap-highlight-color:transparent;position:absolute;left:0;top:0;width:100%;height:100%;z-index:0}.ngvl__screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: NgScrollerComponent, selector: "ng-scroller", inputs: ["scrollbarEnabled", "scrollbarInteractive", "focusedElement", "overlappingScrollbar", "content", "loading", "classes", "scrollbarMinSize", "scrollbarThickness", "scrollbarThumbRenderer", "scrollbarThumbParams", "motionBlur", "maxMotionBlur", "motionBlurEnabled"], outputs: ["onScrollbarVisible"] }, { kind: "component", type: NgPrerenderContainer, selector: "ng-prerender-container", inputs: ["enabled", "direction", "isVertical", "scrollbarEnabled", "startOffset", "endOffset", "bounds", "dynamic", "itemSize", "trackBy", "divides", "itemRenderer"] }, { kind: "directive", type: LocaleSensitiveDirective, selector: "[localeSensitive]", inputs: ["langTextDir", "listDir"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
|
|
8906
9050
|
}
|
|
8907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListComponent, decorators: [{
|
|
8908
9052
|
type: Component,
|
|
8909
9053
|
args: [{ selector: 'ng-virtual-list', host: {
|
|
8910
9054
|
'style': 'position: relative;'
|
|
@@ -8918,11 +9062,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8918
9062
|
}], _scrollerComponent: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], onScroll: [{ type: i0.Output, args: ["onScroll"] }], onScrollEnd: [{ type: i0.Output, args: ["onScrollEnd"] }], onViewportChange: [{ type: i0.Output, args: ["onViewportChange"] }], onSnapItem: [{ type: i0.Output, args: ["onSnapItem"] }], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onCollapse: [{ type: i0.Output, args: ["onCollapse"] }], onScrollReachStart: [{ type: i0.Output, args: ["onScrollReachStart"] }], onScrollReachEnd: [{ type: i0.Output, args: ["onScrollReachEnd"] }], scrollbarThickness: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbarThickness", required: false }] }], scrollbarMinSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbarMinSize", required: false }] }], scrollbarThumbRenderer: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbarThumbRenderer", required: false }] }], scrollbarThumbParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbarThumbParams", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], waitForPreparation: [{ type: i0.Input, args: [{ isSignal: true, alias: "waitForPreparation", required: false }] }], clickDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "clickDistance", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], defaultItemValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultItemValue", required: false }] }], selectedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIds", required: false }] }], collapsedIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsedIds", required: false }] }], selectByClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectByClick", required: false }] }], collapseByClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseByClick", required: false }] }], snap: [{ type: i0.Input, args: [{ isSignal: true, alias: "snap", required: false }] }], stickyEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyEnabled", required: false }] }], snapToEndTransitionInstantOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapToEndTransitionInstantOffset", required: false }] }], scrollStartOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollStartOffset", required: false }] }], scrollEndOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollEndOffset", required: false }] }], snapScrollToStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapScrollToStart", required: false }] }], snapScrollToEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapScrollToEnd", required: false }] }], snapScrollToBottom: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapScrollToBottom", required: false }] }], scrollbarEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbarEnabled", required: false }] }], scrollbarInteractive: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollbarInteractive", required: false }] }], overlappingScrollbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlappingScrollbar", required: false }] }], scrollBehavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollBehavior", required: false }] }], scrollingSettings: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollingSettings", required: false }] }], itemTransform: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTransform", required: false }] }], snapToItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapToItem", required: false }] }], snapToItemAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "snapToItemAlign", required: false }] }], snappingDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "snappingDistance", required: false }] }], scrollingOneByOne: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollingOneByOne", required: false }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], zIndexWhenSelecting: [{ type: i0.Input, args: [{ isSignal: true, alias: "zIndexWhenSelecting", required: false }] }], spreadingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "spreadingMode", required: false }] }], divides: [{ type: i0.Input, args: [{ isSignal: true, alias: "divides", required: false }] }], motionBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionBlur", required: false }] }], maxMotionBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxMotionBlur", required: false }] }], motionBlurEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionBlurEnabled", required: false }] }], animationParams: [{ type: i0.Input, args: [{ isSignal: true, alias: "animationParams", required: false }] }], overscrollEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "overscrollEnabled", required: false }] }], enabledBufferOptimization: [{ type: i0.Input, args: [{ isSignal: true, alias: "enabledBufferOptimization", required: false }] }], itemRenderer: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemRenderer", required: true }] }], itemConfigMap: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemConfigMap", required: false }] }], itemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemSize", required: false }] }], minItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minItemSize", required: false }] }], maxItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItemSize", required: false }] }], dynamicSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "dynamicSize", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], collectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionMode", required: false }] }], bufferSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "bufferSize", required: false }] }], maxBufferSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBufferSize", required: false }] }], snappingMethod: [{ type: i0.Input, args: [{ isSignal: true, alias: "snappingMethod", required: false }] }], collapsingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsingMode", required: false }] }], methodForSelecting: [{ type: i0.Input, args: [{ isSignal: true, alias: "methodForSelecting", required: false }] }], selectingMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectingMode", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], screenReaderMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "screenReaderMessage", required: false }] }], langTextDir: [{ type: i0.Input, args: [{ isSignal: true, alias: "langTextDir", required: false }] }] } });
|
|
8919
9063
|
|
|
8920
9064
|
class LocaleSensitiveModule {
|
|
8921
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8922
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8923
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LocaleSensitiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9066
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: LocaleSensitiveModule, declarations: [LocaleSensitiveDirective], imports: [CommonModule], exports: [LocaleSensitiveDirective] });
|
|
9067
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LocaleSensitiveModule, imports: [CommonModule] });
|
|
8924
9068
|
}
|
|
8925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: LocaleSensitiveModule, decorators: [{
|
|
8926
9070
|
type: NgModule,
|
|
8927
9071
|
args: [{
|
|
8928
9072
|
declarations: [LocaleSensitiveDirective],
|
|
@@ -8933,11 +9077,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8933
9077
|
}] });
|
|
8934
9078
|
|
|
8935
9079
|
class VirtualClickModule {
|
|
8936
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8937
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8938
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9080
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VirtualClickModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9081
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: VirtualClickModule, declarations: [VirtualClickDirective], imports: [CommonModule], exports: [VirtualClickDirective] });
|
|
9082
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VirtualClickModule, imports: [CommonModule] });
|
|
8939
9083
|
}
|
|
8940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: VirtualClickModule, decorators: [{
|
|
8941
9085
|
type: NgModule,
|
|
8942
9086
|
args: [{
|
|
8943
9087
|
declarations: [VirtualClickDirective],
|
|
@@ -8948,11 +9092,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8948
9092
|
}] });
|
|
8949
9093
|
|
|
8950
9094
|
class NgVirtualListItemModule {
|
|
8951
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8952
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8953
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9096
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListItemModule, declarations: [NgVirtualListItemComponent], imports: [CommonModule, VirtualClickModule], exports: [NgVirtualListItemComponent] });
|
|
9097
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListItemModule, imports: [CommonModule, VirtualClickModule] });
|
|
8954
9098
|
}
|
|
8955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListItemModule, decorators: [{
|
|
8956
9100
|
type: NgModule,
|
|
8957
9101
|
args: [{
|
|
8958
9102
|
declarations: [NgVirtualListItemComponent],
|
|
@@ -8963,11 +9107,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8963
9107
|
}] });
|
|
8964
9108
|
|
|
8965
9109
|
class NgScrollBarModule {
|
|
8966
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8967
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8968
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9111
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarModule, declarations: [NgScrollBarComponent], imports: [CommonModule], exports: [NgScrollBarComponent] });
|
|
9112
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarModule, imports: [CommonModule] });
|
|
8969
9113
|
}
|
|
8970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollBarModule, decorators: [{
|
|
8971
9115
|
type: NgModule,
|
|
8972
9116
|
args: [{
|
|
8973
9117
|
declarations: [NgScrollBarComponent],
|
|
@@ -8978,11 +9122,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8978
9122
|
}] });
|
|
8979
9123
|
|
|
8980
9124
|
class NgScrollerModule {
|
|
8981
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8982
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8983
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9126
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgScrollerModule, declarations: [NgScrollerComponent], imports: [CommonModule, NgScrollBarModule, LocaleSensitiveModule, CdkScrollableModule], exports: [NgScrollerComponent] });
|
|
9127
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollerModule, imports: [CommonModule, NgScrollBarModule, LocaleSensitiveModule, CdkScrollableModule] });
|
|
8984
9128
|
}
|
|
8985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgScrollerModule, decorators: [{
|
|
8986
9130
|
type: NgModule,
|
|
8987
9131
|
args: [{
|
|
8988
9132
|
declarations: [NgScrollerComponent],
|
|
@@ -8993,11 +9137,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
8993
9137
|
}] });
|
|
8994
9138
|
|
|
8995
9139
|
class NgPrerenderVirtualListItemModule {
|
|
8996
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
8997
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
8998
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderVirtualListItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9141
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderVirtualListItemModule, declarations: [NgPrerenderVirtualListItemComponent], imports: [CommonModule, VirtualClickModule], exports: [NgPrerenderVirtualListItemComponent] });
|
|
9142
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderVirtualListItemModule, imports: [CommonModule, VirtualClickModule] });
|
|
8999
9143
|
}
|
|
9000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderVirtualListItemModule, decorators: [{
|
|
9001
9145
|
type: NgModule,
|
|
9002
9146
|
args: [{
|
|
9003
9147
|
declarations: [NgPrerenderVirtualListItemComponent],
|
|
@@ -9008,11 +9152,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
9008
9152
|
}] });
|
|
9009
9153
|
|
|
9010
9154
|
class NgPrerenderScrollerModule {
|
|
9011
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9012
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9013
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9155
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9156
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderScrollerModule, declarations: [NgPrerenderScrollerComponent], imports: [CommonModule, LocaleSensitiveModule], exports: [NgPrerenderScrollerComponent] });
|
|
9157
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderScrollerModule, imports: [CommonModule, LocaleSensitiveModule] });
|
|
9014
9158
|
}
|
|
9015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderScrollerModule, decorators: [{
|
|
9016
9160
|
type: NgModule,
|
|
9017
9161
|
args: [{
|
|
9018
9162
|
declarations: [NgPrerenderScrollerComponent],
|
|
@@ -9023,11 +9167,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
9023
9167
|
}] });
|
|
9024
9168
|
|
|
9025
9169
|
class NgPrerenderListModule {
|
|
9026
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9027
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9028
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9170
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9171
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderListModule, declarations: [NgPrerenderList], imports: [CommonModule, NgPrerenderVirtualListItemModule, NgPrerenderScrollerModule], exports: [NgPrerenderList] });
|
|
9172
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderListModule, imports: [CommonModule, NgPrerenderVirtualListItemModule, NgPrerenderScrollerModule] });
|
|
9029
9173
|
}
|
|
9030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderListModule, decorators: [{
|
|
9031
9175
|
type: NgModule,
|
|
9032
9176
|
args: [{
|
|
9033
9177
|
declarations: [NgPrerenderList],
|
|
@@ -9038,11 +9182,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
9038
9182
|
}] });
|
|
9039
9183
|
|
|
9040
9184
|
class NgPrerenderContainerModule {
|
|
9041
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9042
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9043
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9186
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderContainerModule, declarations: [NgPrerenderContainer], imports: [CommonModule, NgPrerenderListModule], exports: [NgPrerenderContainer] });
|
|
9187
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderContainerModule, imports: [CommonModule, NgPrerenderListModule] });
|
|
9044
9188
|
}
|
|
9045
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgPrerenderContainerModule, decorators: [{
|
|
9046
9190
|
type: NgModule,
|
|
9047
9191
|
args: [{
|
|
9048
9192
|
declarations: [NgPrerenderContainer],
|
|
@@ -9053,11 +9197,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
9053
9197
|
}] });
|
|
9054
9198
|
|
|
9055
9199
|
class NgVirtualListModule {
|
|
9056
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9057
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
9058
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
9200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9201
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListModule, declarations: [NgVirtualListComponent], imports: [CommonModule, NgVirtualListItemModule, NgScrollerModule, NgPrerenderContainerModule, LocaleSensitiveModule], exports: [NgVirtualListComponent] });
|
|
9202
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListModule, imports: [CommonModule, NgVirtualListItemModule, NgScrollerModule, NgPrerenderContainerModule, LocaleSensitiveModule] });
|
|
9059
9203
|
}
|
|
9060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
9204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NgVirtualListModule, decorators: [{
|
|
9061
9205
|
type: NgModule,
|
|
9062
9206
|
args: [{
|
|
9063
9207
|
declarations: [NgVirtualListComponent],
|
|
@@ -9070,7 +9214,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
9070
9214
|
const UNSET$4 = 'unset';
|
|
9071
9215
|
/**
|
|
9072
9216
|
* linear
|
|
9073
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
9217
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/transformations/linear.ts
|
|
9074
9218
|
* @author Evgenii Alexandrovich Grebennikov
|
|
9075
9219
|
* @email djonnyx@gmail.com
|
|
9076
9220
|
*/
|
|
@@ -9116,7 +9260,7 @@ const linear = (options) => {
|
|
|
9116
9260
|
const UNSET$3 = 'unset';
|
|
9117
9261
|
/**
|
|
9118
9262
|
* eventHorizon
|
|
9119
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
9263
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/transformations/event-horizon.ts
|
|
9120
9264
|
* @author Evgenii Alexandrovich Grebennikov
|
|
9121
9265
|
* @email djonnyx@gmail.com
|
|
9122
9266
|
*/
|
|
@@ -9162,7 +9306,7 @@ const eventHorizon = (options) => {
|
|
|
9162
9306
|
const UNSET$2 = 'unset', B_LIMIT$2 = 0.5;
|
|
9163
9307
|
/**
|
|
9164
9308
|
* deckOfCards
|
|
9165
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
9309
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/transformations/deck-of-cards.ts
|
|
9166
9310
|
* @author Evgenii Alexandrovich Grebennikov
|
|
9167
9311
|
* @email djonnyx@gmail.com
|
|
9168
9312
|
*/
|
|
@@ -9215,7 +9359,7 @@ const deckOfCards = (options) => {
|
|
|
9215
9359
|
const UNSET$1 = 'unset', B_LIMIT$1 = 0.5;
|
|
9216
9360
|
/**
|
|
9217
9361
|
* deckOfCards3D
|
|
9218
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
9362
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/transformations/deck-of-cards-3d.ts
|
|
9219
9363
|
* @author Evgenii Alexandrovich Grebennikov
|
|
9220
9364
|
* @email djonnyx@gmail.com
|
|
9221
9365
|
*/
|
|
@@ -9271,7 +9415,7 @@ const deckOfCards3D = (options) => {
|
|
|
9271
9415
|
const UNSET = 'unset', B_LIMIT = 0.5;
|
|
9272
9416
|
/**
|
|
9273
9417
|
* swipe3D
|
|
9274
|
-
* @link https://github.com/DjonnyX/ng-virtual-list/blob/
|
|
9418
|
+
* @link https://github.com/DjonnyX/ng-virtual-list/blob/22.x/projects/ng-virtual-list/src/lib/transformations/swipe-3d.ts
|
|
9275
9419
|
* @author Evgenii Alexandrovich Grebennikov
|
|
9276
9420
|
* @email djonnyx@gmail.com
|
|
9277
9421
|
*/
|