@ng-desktop/platform 0.5.0 → 0.7.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 +0 -1
- package/fesm2022/bridge.d.ts +5 -0
- package/fesm2022/bridge.js +1 -0
- package/fesm2022/css-style-parser.d.ts +16 -3
- package/fesm2022/css-style-parser.js +534 -104
- package/fesm2022/ecosystem-compat.d.ts +3 -5
- package/fesm2022/ecosystem-compat.js +16 -25
- package/fesm2022/index.d.ts +3 -1
- package/fesm2022/index.js +3 -1
- package/fesm2022/native-directives.d.ts +5 -2
- package/fesm2022/native-directives.js +17 -11
- package/fesm2022/native-element.d.ts +2 -0
- package/fesm2022/native-element.js +2 -0
- package/fesm2022/native-renderer.d.ts +4 -1
- package/fesm2022/native-renderer.js +88 -6
- package/fesm2022/system-providers.js +2 -1
- package/fesm2022/virtual-grid.component.d.ts +68 -0
- package/fesm2022/virtual-grid.component.js +324 -0
- package/fesm2022/virtual-layout.d.ts +71 -0
- package/fesm2022/virtual-layout.js +279 -0
- package/fesm2022/virtual-list.component.d.ts +25 -13
- package/fesm2022/virtual-list.component.js +156 -73
- package/package.json +1 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
function sanitizePositiveSize(value, fallback) {
|
|
2
|
+
if (!Number.isFinite(value)) {
|
|
3
|
+
return fallback;
|
|
4
|
+
}
|
|
5
|
+
return Math.max(1, value);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Binary Indexed Tree (Fenwick tree) supporting O(log n) updates, prefix sums, and offset lookups
|
|
9
|
+
* for variable-height virtualized lists and grids.
|
|
10
|
+
*/
|
|
11
|
+
export class FenwickOffsetTree {
|
|
12
|
+
sizes;
|
|
13
|
+
tree;
|
|
14
|
+
itemCount;
|
|
15
|
+
fallbackSize;
|
|
16
|
+
cachedTotal;
|
|
17
|
+
constructor(count = 0, defaultSize = 48) {
|
|
18
|
+
this.sizes = new Float64Array(0);
|
|
19
|
+
this.tree = new Float64Array(1);
|
|
20
|
+
this.itemCount = 0;
|
|
21
|
+
this.fallbackSize = sanitizePositiveSize(defaultSize, 48);
|
|
22
|
+
this.cachedTotal = 0;
|
|
23
|
+
this.reset(count, this.fallbackSize);
|
|
24
|
+
}
|
|
25
|
+
get length() {
|
|
26
|
+
return this.itemCount;
|
|
27
|
+
}
|
|
28
|
+
/** Rebuilds the tree in O(n) time from `count`, `defaultSize`, and optional per-index overrides. */
|
|
29
|
+
reset(count, defaultSize, overrides) {
|
|
30
|
+
const safeCount = Math.max(0, Math.floor(Number.isFinite(count) ? count : 0));
|
|
31
|
+
const safeDefault = sanitizePositiveSize(defaultSize, 48);
|
|
32
|
+
this.itemCount = safeCount;
|
|
33
|
+
this.fallbackSize = safeDefault;
|
|
34
|
+
this.sizes = new Float64Array(safeCount);
|
|
35
|
+
this.tree = new Float64Array(safeCount + 1);
|
|
36
|
+
let total = 0;
|
|
37
|
+
for (let idx = 0; idx < safeCount; idx += 1) {
|
|
38
|
+
const override = overrides?.get(idx);
|
|
39
|
+
const size = override !== undefined ? sanitizePositiveSize(override, safeDefault) : safeDefault;
|
|
40
|
+
this.sizes[idx] = size;
|
|
41
|
+
total += size;
|
|
42
|
+
this.tree[idx + 1] = size;
|
|
43
|
+
}
|
|
44
|
+
this.cachedTotal = total;
|
|
45
|
+
for (let pos = 1; pos <= safeCount; pos += 1) {
|
|
46
|
+
const parent = pos + (pos & -pos);
|
|
47
|
+
if (parent <= safeCount) {
|
|
48
|
+
this.tree[parent] = (this.tree[parent] ?? 0) + (this.tree[pos] ?? 0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/** Returns the height/size recorded for `index` in O(1). */
|
|
53
|
+
sizeOf(index) {
|
|
54
|
+
const idx = Math.floor(index);
|
|
55
|
+
if (idx < 0 || idx >= this.itemCount) {
|
|
56
|
+
return this.fallbackSize;
|
|
57
|
+
}
|
|
58
|
+
return this.sizes[idx] ?? this.fallbackSize;
|
|
59
|
+
}
|
|
60
|
+
/** Updates the height/size at `index` in O(log n); returns `true` when it changed. */
|
|
61
|
+
setSize(index, size) {
|
|
62
|
+
const idx = Math.floor(index);
|
|
63
|
+
if (!Number.isFinite(index) || idx < 0 || idx >= this.itemCount) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
const next = sanitizePositiveSize(size, this.fallbackSize);
|
|
67
|
+
const prev = this.sizes[idx] ?? this.fallbackSize;
|
|
68
|
+
if (Math.abs(next - prev) < 1e-6) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
const delta = next - prev;
|
|
72
|
+
this.sizes[idx] = next;
|
|
73
|
+
this.cachedTotal += delta;
|
|
74
|
+
for (let pos = idx + 1; pos <= this.itemCount; pos += pos & -pos) {
|
|
75
|
+
this.tree[pos] = (this.tree[pos] ?? 0) + delta;
|
|
76
|
+
}
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
/** Returns the exclusive prefix sum covering `[0, index)` in O(log n). */
|
|
80
|
+
offsetOf(index) {
|
|
81
|
+
if (this.itemCount === 0 || !Number.isFinite(index)) {
|
|
82
|
+
return 0;
|
|
83
|
+
}
|
|
84
|
+
const clamped = Math.max(0, Math.min(this.itemCount, Math.floor(index)));
|
|
85
|
+
let sum = 0;
|
|
86
|
+
for (let pos = clamped; pos > 0; pos -= pos & -pos) {
|
|
87
|
+
sum += this.tree[pos] ?? 0;
|
|
88
|
+
}
|
|
89
|
+
return sum;
|
|
90
|
+
}
|
|
91
|
+
/** Returns total size of all items in O(1). */
|
|
92
|
+
totalSize() {
|
|
93
|
+
return this.cachedTotal;
|
|
94
|
+
}
|
|
95
|
+
/** Returns the first 0-based index covering `offset` via O(log n) binary lifting. */
|
|
96
|
+
indexAtOffset(offset) {
|
|
97
|
+
if (this.itemCount === 0 || !Number.isFinite(offset) || offset <= 0) {
|
|
98
|
+
return 0;
|
|
99
|
+
}
|
|
100
|
+
if (offset >= this.cachedTotal) {
|
|
101
|
+
return this.itemCount - 1;
|
|
102
|
+
}
|
|
103
|
+
let maxBit = 1;
|
|
104
|
+
while (maxBit << 1 <= this.itemCount) {
|
|
105
|
+
maxBit <<= 1;
|
|
106
|
+
}
|
|
107
|
+
let pos = 0;
|
|
108
|
+
let acc = 0;
|
|
109
|
+
for (let bit = maxBit; bit > 0; bit >>= 1) {
|
|
110
|
+
const next = pos + bit;
|
|
111
|
+
if (next <= this.itemCount) {
|
|
112
|
+
const candidate = acc + (this.tree[next] ?? 0);
|
|
113
|
+
if (candidate <= offset) {
|
|
114
|
+
pos = next;
|
|
115
|
+
acc = candidate;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return Math.min(this.itemCount - 1, pos);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Computes the visible item slice and spacer heights for a fixed-row-height viewport.
|
|
124
|
+
*/
|
|
125
|
+
export function computeVirtualSliceRange(totalItems, scrollTop, viewportHeight, itemHeight, overscan = 4) {
|
|
126
|
+
const safeTotal = Math.max(0, Math.floor(totalItems));
|
|
127
|
+
if (safeTotal === 0) {
|
|
128
|
+
return {
|
|
129
|
+
startIndex: 0,
|
|
130
|
+
endIndex: 0,
|
|
131
|
+
totalItems: 0,
|
|
132
|
+
topSpacerHeight: 0,
|
|
133
|
+
bottomSpacerHeight: 0,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const safeItemHeight = sanitizePositiveSize(itemHeight, 1);
|
|
137
|
+
const safeViewport = Math.max(safeItemHeight, Number.isFinite(viewportHeight) ? viewportHeight : safeItemHeight);
|
|
138
|
+
const safeOverscan = Math.max(0, Math.floor(overscan));
|
|
139
|
+
const maxScrollTop = Math.max(0, safeTotal * safeItemHeight - safeViewport);
|
|
140
|
+
const clampedScrollTop = Math.min(Math.max(0, Number.isFinite(scrollTop) ? scrollTop : 0), maxScrollTop);
|
|
141
|
+
const firstVisible = Math.floor(clampedScrollTop / safeItemHeight);
|
|
142
|
+
const visibleCount = Math.ceil(safeViewport / safeItemHeight);
|
|
143
|
+
const startIndex = Math.max(0, firstVisible - safeOverscan);
|
|
144
|
+
const endIndex = Math.min(safeTotal, firstVisible + visibleCount + safeOverscan);
|
|
145
|
+
return {
|
|
146
|
+
startIndex,
|
|
147
|
+
endIndex,
|
|
148
|
+
totalItems: safeTotal,
|
|
149
|
+
topSpacerHeight: startIndex * safeItemHeight,
|
|
150
|
+
bottomSpacerHeight: (safeTotal - endIndex) * safeItemHeight,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Computes the visible item slice and exact top/bottom spacer heights from a variable-height `FenwickOffsetTree`.
|
|
155
|
+
*/
|
|
156
|
+
export function computeVariableVirtualSliceRange(tree, scrollTop, viewportHeight, overscan = 4) {
|
|
157
|
+
const safeTotal = tree.length;
|
|
158
|
+
if (safeTotal === 0) {
|
|
159
|
+
return {
|
|
160
|
+
startIndex: 0,
|
|
161
|
+
endIndex: 0,
|
|
162
|
+
totalItems: 0,
|
|
163
|
+
topSpacerHeight: 0,
|
|
164
|
+
bottomSpacerHeight: 0,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
const totalHeight = tree.totalSize();
|
|
168
|
+
const safeViewport = sanitizePositiveSize(viewportHeight, 1);
|
|
169
|
+
const safeOverscan = Math.max(0, Math.floor(overscan));
|
|
170
|
+
const maxScrollTop = Math.max(0, totalHeight - safeViewport);
|
|
171
|
+
const clampedScrollTop = Math.min(Math.max(0, Number.isFinite(scrollTop) ? scrollTop : 0), maxScrollTop);
|
|
172
|
+
const firstVisible = tree.indexAtOffset(clampedScrollTop);
|
|
173
|
+
const viewportBottom = clampedScrollTop + safeViewport;
|
|
174
|
+
const endVisible = viewportBottom >= totalHeight
|
|
175
|
+
? safeTotal
|
|
176
|
+
: Math.min(safeTotal, tree.indexAtOffset(Math.max(clampedScrollTop, viewportBottom - 1e-6)) + 1);
|
|
177
|
+
const startIndex = Math.max(0, firstVisible - safeOverscan);
|
|
178
|
+
const endIndex = Math.min(safeTotal, endVisible + safeOverscan);
|
|
179
|
+
return {
|
|
180
|
+
startIndex,
|
|
181
|
+
endIndex,
|
|
182
|
+
totalItems: safeTotal,
|
|
183
|
+
topSpacerHeight: Math.round(tree.offsetOf(startIndex)),
|
|
184
|
+
bottomSpacerHeight: Math.round(Math.max(0, totalHeight - tree.offsetOf(endIndex))),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function findRowAtVariableOffset(rowHeights, totalRows, rowGap, offset) {
|
|
188
|
+
if (offset <= 0) {
|
|
189
|
+
return 0;
|
|
190
|
+
}
|
|
191
|
+
let lo = 0;
|
|
192
|
+
let hi = totalRows - 1;
|
|
193
|
+
while (lo < hi) {
|
|
194
|
+
const mid = (lo + hi + 1) >> 1;
|
|
195
|
+
const rowStart = rowHeights.offsetOf(mid) + mid * rowGap;
|
|
196
|
+
if (rowStart <= offset) {
|
|
197
|
+
lo = mid;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
hi = mid - 1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return lo;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Computes the visible 2D item range, row span, responsive column count, and spacer heights for `<ng-virtual-grid>`.
|
|
207
|
+
*/
|
|
208
|
+
export function computeVirtualGridSliceRange(options) {
|
|
209
|
+
const safeTotal = Math.max(0, Math.floor(Number.isFinite(options.totalItems) ? options.totalItems : 0));
|
|
210
|
+
const safeColGap = Math.max(0, Number.isFinite(options.columnGap) ? options.columnGap : 0);
|
|
211
|
+
const safeRowGap = Math.max(0, Number.isFinite(options.rowGap) ? options.rowGap : 0);
|
|
212
|
+
const safeWidth = sanitizePositiveSize(options.viewportWidth, 320);
|
|
213
|
+
const safeMinColWidth = sanitizePositiveSize(options.minColumnWidth ?? 200, 200);
|
|
214
|
+
const safeRowHeight = sanitizePositiveSize(options.rowHeight, 48);
|
|
215
|
+
const safeViewportHeight = sanitizePositiveSize(options.viewportHeight, safeRowHeight);
|
|
216
|
+
const safeOverscan = Math.max(0, Math.floor(options.overscanRows ?? 2));
|
|
217
|
+
const columns = typeof options.columns === 'number' && Number.isFinite(options.columns) && options.columns >= 1
|
|
218
|
+
? Math.floor(options.columns)
|
|
219
|
+
: Math.max(1, Math.floor((safeWidth + safeColGap) / (safeMinColWidth + safeColGap)));
|
|
220
|
+
if (safeTotal === 0) {
|
|
221
|
+
return {
|
|
222
|
+
startIndex: 0,
|
|
223
|
+
endIndex: 0,
|
|
224
|
+
startRow: 0,
|
|
225
|
+
endRow: 0,
|
|
226
|
+
totalRows: 0,
|
|
227
|
+
columns,
|
|
228
|
+
totalItems: 0,
|
|
229
|
+
topSpacerHeight: 0,
|
|
230
|
+
bottomSpacerHeight: 0,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
const totalRows = Math.ceil(safeTotal / columns);
|
|
234
|
+
const rowHeights = options.rowHeights && options.rowHeights.length === totalRows ? options.rowHeights : null;
|
|
235
|
+
const gapTotal = Math.max(0, totalRows - 1) * safeRowGap;
|
|
236
|
+
const totalHeight = rowHeights
|
|
237
|
+
? rowHeights.totalSize() + gapTotal
|
|
238
|
+
: totalRows * safeRowHeight + gapTotal;
|
|
239
|
+
const maxScrollTop = Math.max(0, totalHeight - safeViewportHeight);
|
|
240
|
+
const clampedScrollTop = Math.min(Math.max(0, Number.isFinite(options.scrollTop) ? options.scrollTop : 0), maxScrollTop);
|
|
241
|
+
let firstVisibleRow;
|
|
242
|
+
let endVisibleRow;
|
|
243
|
+
if (rowHeights) {
|
|
244
|
+
firstVisibleRow = findRowAtVariableOffset(rowHeights, totalRows, safeRowGap, clampedScrollTop);
|
|
245
|
+
const viewportBottom = clampedScrollTop + safeViewportHeight;
|
|
246
|
+
endVisibleRow =
|
|
247
|
+
viewportBottom >= totalHeight
|
|
248
|
+
? totalRows
|
|
249
|
+
: Math.min(totalRows, findRowAtVariableOffset(rowHeights, totalRows, safeRowGap, Math.max(clampedScrollTop, viewportBottom - 1e-6)) + 1);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
const stride = safeRowHeight + safeRowGap;
|
|
253
|
+
firstVisibleRow = Math.min(totalRows - 1, Math.floor(clampedScrollTop / stride));
|
|
254
|
+
const lastOffset = Math.max(clampedScrollTop, clampedScrollTop + safeViewportHeight - 1e-6);
|
|
255
|
+
endVisibleRow = Math.min(totalRows, Math.floor(lastOffset / stride) + 1);
|
|
256
|
+
}
|
|
257
|
+
const startRow = Math.max(0, firstVisibleRow - safeOverscan);
|
|
258
|
+
const endRow = Math.min(totalRows, endVisibleRow + safeOverscan);
|
|
259
|
+
const startIndex = startRow * columns;
|
|
260
|
+
const endIndex = Math.min(safeTotal, endRow * columns);
|
|
261
|
+
const topSpacerHeight = rowHeights
|
|
262
|
+
? Math.round(rowHeights.offsetOf(startRow) + startRow * safeRowGap)
|
|
263
|
+
: Math.round(startRow * (safeRowHeight + safeRowGap));
|
|
264
|
+
const renderedEndOffset = rowHeights
|
|
265
|
+
? rowHeights.offsetOf(endRow) + Math.max(0, endRow - 1) * safeRowGap
|
|
266
|
+
: endRow * safeRowHeight + Math.max(0, endRow - 1) * safeRowGap;
|
|
267
|
+
const bottomSpacerHeight = Math.round(Math.max(0, totalHeight - renderedEndOffset));
|
|
268
|
+
return {
|
|
269
|
+
startIndex,
|
|
270
|
+
endIndex,
|
|
271
|
+
startRow,
|
|
272
|
+
endRow,
|
|
273
|
+
totalRows,
|
|
274
|
+
columns,
|
|
275
|
+
totalItems: safeTotal,
|
|
276
|
+
topSpacerHeight,
|
|
277
|
+
bottomSpacerHeight,
|
|
278
|
+
};
|
|
279
|
+
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { type VirtualSliceRange } from './virtual-layout';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
export interface VirtualSliceRange {
|
|
5
|
-
startIndex: number;
|
|
6
|
-
endIndex: number;
|
|
7
|
-
totalItems: number;
|
|
8
|
-
topSpacerHeight: number;
|
|
9
|
-
bottomSpacerHeight: number;
|
|
10
|
-
}
|
|
4
|
+
export { computeVirtualSliceRange, type VirtualSliceRange } from './virtual-layout';
|
|
11
5
|
/** Template context provided to each rendered item row in `<ng-virtual-list>`. */
|
|
12
6
|
export interface NativeVirtualItemContext<T> {
|
|
13
7
|
$implicit: T;
|
|
@@ -24,17 +18,15 @@ export interface NativeVirtualRowActivatedEvent<T> {
|
|
|
24
18
|
index: number;
|
|
25
19
|
item: T;
|
|
26
20
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Computes the visible item slice and spacer heights for a fixed-row-height viewport.
|
|
29
|
-
*/
|
|
30
|
-
export declare function computeVirtualSliceRange(totalItems: number, scrollTop: number, viewportHeight: number, itemHeight: number, overscan?: number): VirtualSliceRange;
|
|
31
21
|
/**
|
|
32
22
|
* Virtualized native desktop list component rendering only the visible viewport slice + overscan
|
|
33
23
|
* inside an `<ng-scroll>` + `<ng-list>` hierarchy to keep native widget counts bounded at scale.
|
|
24
|
+
* Supports fixed row heights as well as O(log n) Fenwick-tree variable/measured row heights.
|
|
34
25
|
*/
|
|
35
26
|
export declare class NativeVirtualListComponent<T = unknown> {
|
|
36
27
|
readonly items: import("@angular/core").InputSignal<readonly T[]>;
|
|
37
28
|
readonly itemHeight: import("@angular/core").InputSignal<number>;
|
|
29
|
+
readonly itemHeightResolver: import("@angular/core").InputSignal<((index: number, item: T) => number) | null>;
|
|
38
30
|
readonly viewportHeight: import("@angular/core").InputSignal<number>;
|
|
39
31
|
readonly overscan: import("@angular/core").InputSignal<number>;
|
|
40
32
|
readonly selectionMode: import("@angular/core").InputSignal<"none" | "single" | "browse" | "multiple">;
|
|
@@ -44,14 +36,34 @@ export declare class NativeVirtualListComponent<T = unknown> {
|
|
|
44
36
|
readonly projectedTemplate: import("@angular/core").Signal<TemplateRef<NativeVirtualItemContext<T>> | undefined>;
|
|
45
37
|
readonly rangeChange: import("@angular/core").OutputEmitterRef<VirtualSliceRange>;
|
|
46
38
|
readonly rowActivated: import("@angular/core").OutputEmitterRef<NativeVirtualRowActivatedEvent<T>>;
|
|
39
|
+
readonly scrollBottom: import("@angular/core").OutputEmitterRef<void>;
|
|
40
|
+
private readonly renderer;
|
|
41
|
+
private readonly scrollHost;
|
|
47
42
|
readonly scrollTop: import("@angular/core").WritableSignal<number>;
|
|
43
|
+
readonly measuredHeight: import("@angular/core").WritableSignal<number | null>;
|
|
44
|
+
readonly scrollToAttr: import("@angular/core").WritableSignal<string | undefined>;
|
|
45
|
+
private readonly heightTree;
|
|
46
|
+
private readonly measuredOverrides;
|
|
47
|
+
private readonly measureRevision;
|
|
48
48
|
readonly resolvedTemplate: import("@angular/core").Signal<TemplateRef<NativeVirtualItemContext<T>> | null>;
|
|
49
|
+
readonly effectiveHeight: import("@angular/core").Signal<number>;
|
|
50
|
+
readonly isVariableHeight: import("@angular/core").Signal<boolean>;
|
|
51
|
+
/** Builds/updates the Fenwick row-offset tree only when item heights or list contents change. */
|
|
52
|
+
private readonly heightTreeState;
|
|
49
53
|
readonly range: import("@angular/core").Signal<VirtualSliceRange>;
|
|
50
54
|
readonly visibleEntries: import("@angular/core").Signal<readonly NativeVirtualListEntry<T>[]>;
|
|
51
55
|
private lastEmittedRangeKey;
|
|
52
56
|
constructor();
|
|
57
|
+
/** Records a dynamic measured pixel height for row `index` and updates viewport offsets. */
|
|
58
|
+
measureItemHeight(index: number, height: number): void;
|
|
59
|
+
/** Clears all dynamically measured height overrides. */
|
|
60
|
+
resetMeasuredHeights(): void;
|
|
61
|
+
/** Returns the cumulative Y offset for row `index`. */
|
|
62
|
+
offsetForIndex(index: number): number;
|
|
63
|
+
/** Scrolls the native viewport to bring row `index` into view. */
|
|
64
|
+
scrollToIndex(index: number): void;
|
|
53
65
|
onNativeScroll(event: unknown): void;
|
|
54
66
|
onRowActivated(event: unknown): void;
|
|
55
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<NativeVirtualListComponent<any>, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NativeVirtualListComponent<any>, "ng-virtual-list", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "itemHeight": { "alias": "itemHeight"; "required": false; "isSignal": true; }; "viewportHeight": { "alias": "viewportHeight"; "required": false; "isSignal": true; }; "overscan": { "alias": "overscan"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "showSeparators": { "alias": "showSeparators"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "itemTemplateInput": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; }, { "rangeChange": "rangeChange"; "rowActivated": "rowActivated"; }, ["projectedTemplate"],
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NativeVirtualListComponent<any>, "ng-virtual-list", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "itemHeight": { "alias": "itemHeight"; "required": false; "isSignal": true; }; "itemHeightResolver": { "alias": "itemHeightResolver"; "required": false; "isSignal": true; }; "viewportHeight": { "alias": "viewportHeight"; "required": false; "isSignal": true; }; "overscan": { "alias": "overscan"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "showSeparators": { "alias": "showSeparators"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "itemTemplateInput": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; }, { "rangeChange": "rangeChange"; "rowActivated": "rowActivated"; "scrollBottom": "scrollBottom"; }, ["projectedTemplate"], ["[ngVirtualEmpty]"], true, never>;
|
|
57
69
|
}
|