@symbiote-native/angular 3.0.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -30
- package/build/angular/callback-host.d.ts +2 -5
- package/build/angular/callback-host.js +11 -36
- package/build/angular/callback-host.js.map +1 -1
- package/build/angular/change-detection-flush.d.ts +1 -0
- package/build/angular/change-detection-flush.js +58 -14
- package/build/angular/change-detection-flush.js.map +1 -1
- package/build/angular/components/flat-list/index.d.ts +4 -2
- package/build/angular/components/flat-list/index.js +28 -78
- package/build/angular/components/flat-list/index.js.map +1 -1
- package/build/angular/components/image-shared.d.ts +8 -2
- package/build/angular/components/modal/index.d.ts +1 -0
- package/build/angular/components/modal/index.js +23 -16
- package/build/angular/components/modal/index.js.map +1 -1
- package/build/angular/components/section-list/index.d.ts +3 -1
- package/build/angular/components/section-list/index.js +10 -2
- package/build/angular/components/section-list/index.js.map +1 -1
- package/build/angular/components/virtualized-list/directives.js +7 -4
- package/build/angular/components/virtualized-list/directives.js.map +1 -1
- package/build/angular/components/virtualized-list/index.d.ts +10 -2
- package/build/angular/components/virtualized-list/index.js +45 -25
- package/build/angular/components/virtualized-list/index.js.map +1 -1
- package/build/angular/components/virtualized-section-list/index.d.ts +5 -1
- package/build/angular/components/virtualized-section-list/index.js +10 -2
- package/build/angular/components/virtualized-section-list/index.js.map +1 -1
- package/build/angular/element-props.d.ts +16 -5
- package/build/angular/elements.d.ts +5 -21
- package/build/angular/elements.js +18 -26
- package/build/angular/elements.js.map +1 -1
- package/build/angular/index.d.ts +0 -1
- package/build/angular/index.js +5 -7
- package/build/angular/index.js.map +1 -1
- package/build/angular/renderer/index.d.ts +11 -0
- package/build/angular/renderer/index.js +97 -12
- package/build/angular/renderer/index.js.map +1 -1
- package/build/angular/runtime-matching.d.ts +0 -1
- package/build/angular/runtime-matching.js +6 -29
- package/build/angular/runtime-matching.js.map +1 -1
- package/package.json +6 -6
- package/src/callback-host.ts +10 -43
- package/src/change-detection-flush.ts +67 -14
- package/src/components/flat-list/index.ts +22 -54
- package/src/components/modal/index.ts +22 -16
- package/src/components/section-list/index.ts +4 -1
- package/src/components/virtualized-list/directives.ts +10 -8
- package/src/components/virtualized-list/index.ts +38 -13
- package/src/components/virtualized-section-list/index.ts +6 -1
- package/src/element-props.ts +22 -13
- package/src/elements.ts +21 -56
- package/src/index.ts +5 -7
- package/src/renderer/index.ts +107 -11
- package/src/runtime-matching.ts +6 -30
- package/build/angular/style-host.d.ts +0 -11
- package/build/angular/style-host.js +0 -86
- package/build/angular/style-host.js.map +0 -1
- package/src/style-host.ts +0 -94
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
// flat-list.test.ts). Fixed for both column modes:
|
|
14
14
|
// * Single column (numColumns <= 1): FlatList captures the app's `<ng-template vListItem>` (and
|
|
15
15
|
// vListHeader/vListFooter/vListEmpty/vListSeparator) with its OWN @ContentChild — a single,
|
|
16
|
-
// direct projection hop, which always resolves
|
|
17
|
-
//
|
|
18
|
-
//
|
|
16
|
+
// direct projection hop, which always resolves. The per-cell item and separator templates go
|
|
17
|
+
// straight in through VirtualizedList's `[itemTemplate]`/`[itemSeparatorTemplate]`, so a cell
|
|
18
|
+
// is ONE outlet deep (a re-stamp doubled every cell's embedded views); the once-per-list
|
|
19
|
+
// header/footer/empty slots are still re-stamped.
|
|
19
20
|
// * Multi column (numColumns > 1): same re-stamp, but the app's vListItem is typed for ItemT
|
|
20
21
|
// while the virtualized stream is rows (IRow<ItemT>), so a plain passthrough couldn't work
|
|
21
22
|
// regardless. The row vListItem lays out the N columns side by side (each cell stamps the
|
|
@@ -31,8 +32,8 @@
|
|
|
31
32
|
// in Angular, so they're absent from IFlatListProps per the per-adapter children/render split;
|
|
32
33
|
// everything else mirrors IVirtualizedListProps.
|
|
33
34
|
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, ContentChild, ElementRef, EventEmitter, Input, Output, ViewChild, inject, } from '@angular/core';
|
|
34
|
-
import { SINGLE_COLUMN, chunkIntoRows, expandRowViewability, firstItemOfRow, lastItemOfRow, rowKeyExtractor, } from '@symbiote-native/components';
|
|
35
|
-
import { dlog, flattenStyle, resolveClassName, } from '@symbiote-native/engine';
|
|
35
|
+
import { SINGLE_COLUMN, chunkIntoRows, expandRowViewability, firstItemOfRow, lastItemOfRow, removeClippedSubviewsOrDefault, rowKeyExtractor, } from '@symbiote-native/components';
|
|
36
|
+
import { Platform, dlog, flattenStyle, resolveClassName, } from '@symbiote-native/engine';
|
|
36
37
|
import { VirtualizedList, VListEmptyDirective, VListFooterDirective, VListHeaderDirective, VListItemDirective, VListSeparatorDirective, } from '../virtualized-list';
|
|
37
38
|
import { VListOutletDirective } from '../virtualized-list/directives';
|
|
38
39
|
import { stableAnchorStyle, SymbioteStyleInputDirective, ViewHost, } from '../../primitives';
|
|
@@ -58,14 +59,6 @@ const NOOP_SEPARATORS = {
|
|
|
58
59
|
unhighlight: () => undefined,
|
|
59
60
|
updateProps: () => undefined,
|
|
60
61
|
};
|
|
61
|
-
// Angular cannot preserve VListSeparatorDirective<ItemT>'s type parameter across this re-stamp
|
|
62
|
-
// reuse (the directive is matched structurally in FlatList's own template with no explicit type
|
|
63
|
-
// argument to pin ItemT to, so `let-leadingItem`/`let-trailingItem` arrive typed `unknown`) — even
|
|
64
|
-
// though VirtualizedList's own buildSeparatorContext always supplies a real ItemT value. The
|
|
65
|
-
// narrowest possible I/O-boundary cast for that gap; not a general-purpose unknown-to-T narrowing.
|
|
66
|
-
function asItem(value) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
62
|
export { VListEmptyDirective, VListFooterDirective, VListHeaderDirective, VListItemDirective, VListSeparatorDirective, } from '../virtualized-list';
|
|
70
63
|
export class FlatList {
|
|
71
64
|
constructor() {
|
|
@@ -104,6 +97,10 @@ export class FlatList {
|
|
|
104
97
|
this.viewableItemsChanged.emit(expandRowViewability(info, this.keyExtractor));
|
|
105
98
|
};
|
|
106
99
|
}
|
|
100
|
+
// FlatList.js always sends it, defaulted per platform.
|
|
101
|
+
get resolvedRemoveClippedSubviews() {
|
|
102
|
+
return removeClippedSubviewsOrDefault(this.removeClippedSubviews, Platform.OS);
|
|
103
|
+
}
|
|
107
104
|
get columns() {
|
|
108
105
|
return this.numColumns ?? SINGLE_COLUMN;
|
|
109
106
|
}
|
|
@@ -181,17 +178,6 @@ export class FlatList {
|
|
|
181
178
|
: undefined,
|
|
182
179
|
};
|
|
183
180
|
}
|
|
184
|
-
// Single-column separator context: leadingItem/trailingItem are already real items (no row
|
|
185
|
-
// wrapper to narrow through — see the asItem boundary comment above).
|
|
186
|
-
itemSeparatorContext(highlighted, leadingItem, trailingItem) {
|
|
187
|
-
const isHighlighted = highlighted === true;
|
|
188
|
-
return {
|
|
189
|
-
$implicit: isHighlighted,
|
|
190
|
-
highlighted: isHighlighted,
|
|
191
|
-
leadingItem: asItem(leadingItem),
|
|
192
|
-
trailingItem: asItem(trailingItem),
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
181
|
// ---- imperative handle (RN FlatList surface) — delegates to the inner VirtualizedList ----
|
|
196
182
|
scrollToOffset(params) {
|
|
197
183
|
this.listRef?.scrollToOffset(params);
|
|
@@ -224,7 +210,7 @@ export class FlatList {
|
|
|
224
210
|
this.listRef?.recordInteraction();
|
|
225
211
|
}
|
|
226
212
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FlatList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
227
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: FlatList, isStandalone: true, selector: "FlatList", inputs: { data: "data", testID: "testID", numColumns: "numColumns", columnWrapperStyle: "columnWrapperStyle", keyExtractor: "keyExtractor", getItemLayout: "getItemLayout", horizontal: "horizontal", inverted: "inverted", extraData: "extraData", onEndReachedThreshold: "onEndReachedThreshold", onStartReachedThreshold: "onStartReachedThreshold", refreshing: "refreshing", progressViewOffset: "progressViewOffset", viewabilityConfig: "viewabilityConfig", viewabilityConfigCallbackPairs: "viewabilityConfigCallbackPairs", initialNumToRender: "initialNumToRender", initialScrollIndex: "initialScrollIndex", maxToRenderPerBatch: "maxToRenderPerBatch", updateCellsBatchingPeriod: "updateCellsBatchingPeriod", windowSize: "windowSize", stickyHeaderIndices: "stickyHeaderIndices", maintainVisibleContentPosition: "maintainVisibleContentPosition", onScroll: "onScroll", onScrollBeginDrag: "onScrollBeginDrag", onScrollEndDrag: "onScrollEndDrag", onMomentumScrollBegin: "onMomentumScrollBegin", onMomentumScrollEnd: "onMomentumScrollEnd", scrollEventThrottle: "scrollEventThrottle", keyboardShouldPersistTaps: "keyboardShouldPersistTaps", keyboardDismissMode: "keyboardDismissMode", style: "style", contentContainerStyle: "contentContainerStyle" }, outputs: { endReached: "endReached", startReached: "startReached", refresh: "refresh", viewableItemsChanged: "viewableItemsChanged", scrollToIndexFailed: "scrollToIndexFailed" }, queries: [{ propertyName: "itemDir", first: true, predicate: VListItemDirective, descendants: true }, { propertyName: "headerDir", first: true, predicate: VListHeaderDirective, descendants: true }, { propertyName: "footerDir", first: true, predicate: VListFooterDirective, descendants: true }, { propertyName: "emptyDir", first: true, predicate: VListEmptyDirective, descendants: true }, { propertyName: "separatorDir", first: true, predicate: VListSeparatorDirective, descendants: true }], viewQueries: [{ propertyName: "listRef", first: true, predicate: VirtualizedList, descendants: true }], usesOnChanges: true, hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: `
|
|
213
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: FlatList, isStandalone: true, selector: "FlatList", inputs: { data: "data", testID: "testID", numColumns: "numColumns", columnWrapperStyle: "columnWrapperStyle", keyExtractor: "keyExtractor", getItemLayout: "getItemLayout", horizontal: "horizontal", inverted: "inverted", extraData: "extraData", onEndReachedThreshold: "onEndReachedThreshold", onStartReachedThreshold: "onStartReachedThreshold", refreshing: "refreshing", progressViewOffset: "progressViewOffset", viewabilityConfig: "viewabilityConfig", viewabilityConfigCallbackPairs: "viewabilityConfigCallbackPairs", initialNumToRender: "initialNumToRender", initialScrollIndex: "initialScrollIndex", maxToRenderPerBatch: "maxToRenderPerBatch", updateCellsBatchingPeriod: "updateCellsBatchingPeriod", windowSize: "windowSize", stickyHeaderIndices: "stickyHeaderIndices", maintainVisibleContentPosition: "maintainVisibleContentPosition", onScroll: "onScroll", onScrollBeginDrag: "onScrollBeginDrag", onScrollEndDrag: "onScrollEndDrag", onMomentumScrollBegin: "onMomentumScrollBegin", onMomentumScrollEnd: "onMomentumScrollEnd", scrollEventThrottle: "scrollEventThrottle", keyboardShouldPersistTaps: "keyboardShouldPersistTaps", keyboardDismissMode: "keyboardDismissMode", removeClippedSubviews: "removeClippedSubviews", nestedScrollEnabled: "nestedScrollEnabled", style: "style", contentContainerStyle: "contentContainerStyle" }, outputs: { endReached: "endReached", startReached: "startReached", refresh: "refresh", viewableItemsChanged: "viewableItemsChanged", scrollToIndexFailed: "scrollToIndexFailed" }, queries: [{ propertyName: "itemDir", first: true, predicate: VListItemDirective, descendants: true }, { propertyName: "headerDir", first: true, predicate: VListHeaderDirective, descendants: true }, { propertyName: "footerDir", first: true, predicate: VListFooterDirective, descendants: true }, { propertyName: "emptyDir", first: true, predicate: VListEmptyDirective, descendants: true }, { propertyName: "separatorDir", first: true, predicate: VListSeparatorDirective, descendants: true }], viewQueries: [{ propertyName: "listRef", first: true, predicate: VirtualizedList, descendants: true }], usesOnChanges: true, hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: `
|
|
228
214
|
@if (isMultiColumn) {
|
|
229
215
|
<VirtualizedList
|
|
230
216
|
[data]="rows"
|
|
@@ -262,6 +248,8 @@ export class FlatList {
|
|
|
262
248
|
[scrollEventThrottle]="scrollEventThrottle"
|
|
263
249
|
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
264
250
|
[keyboardDismissMode]="keyboardDismissMode"
|
|
251
|
+
[removeClippedSubviews]="resolvedRemoveClippedSubviews"
|
|
252
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
265
253
|
[testID]="testID"
|
|
266
254
|
[style]="resolvedStyle"
|
|
267
255
|
[contentContainerStyle]="contentContainerStyle"
|
|
@@ -346,21 +334,14 @@ export class FlatList {
|
|
|
346
334
|
[scrollEventThrottle]="scrollEventThrottle"
|
|
347
335
|
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
348
336
|
[keyboardDismissMode]="keyboardDismissMode"
|
|
337
|
+
[removeClippedSubviews]="resolvedRemoveClippedSubviews"
|
|
338
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
349
339
|
[testID]="testID"
|
|
350
340
|
[style]="resolvedStyle"
|
|
351
341
|
[contentContainerStyle]="contentContainerStyle"
|
|
342
|
+
[itemTemplate]="itemDir?.templateRef"
|
|
343
|
+
[itemSeparatorTemplate]="separatorDir?.templateRef"
|
|
352
344
|
>
|
|
353
|
-
<ng-template
|
|
354
|
-
vListItem
|
|
355
|
-
let-item
|
|
356
|
-
let-index="index"
|
|
357
|
-
let-separators="separators"
|
|
358
|
-
>
|
|
359
|
-
<ng-container
|
|
360
|
-
[vListOutlet]="itemDir?.templateRef"
|
|
361
|
-
[vListOutletContext]="{ $implicit: item, index, separators }"
|
|
362
|
-
></ng-container>
|
|
363
|
-
</ng-template>
|
|
364
345
|
@if (headerDir !== undefined) {
|
|
365
346
|
<ng-template vListHeader>
|
|
366
347
|
<ng-container [vListOutlet]="headerDir.templateRef"></ng-container>
|
|
@@ -376,24 +357,9 @@ export class FlatList {
|
|
|
376
357
|
<ng-container [vListOutlet]="emptyDir.templateRef"></ng-container>
|
|
377
358
|
</ng-template>
|
|
378
359
|
}
|
|
379
|
-
@if (separatorDir !== undefined) {
|
|
380
|
-
<ng-template
|
|
381
|
-
vListSeparator
|
|
382
|
-
let-highlighted="highlighted"
|
|
383
|
-
let-leadingItem="leadingItem"
|
|
384
|
-
let-trailingItem="trailingItem"
|
|
385
|
-
>
|
|
386
|
-
<ng-container
|
|
387
|
-
[vListOutlet]="separatorDir.templateRef"
|
|
388
|
-
[vListOutletContext]="
|
|
389
|
-
itemSeparatorContext(highlighted, leadingItem, trailingItem)
|
|
390
|
-
"
|
|
391
|
-
></ng-container>
|
|
392
|
-
</ng-template>
|
|
393
|
-
}
|
|
394
360
|
</VirtualizedList>
|
|
395
361
|
}
|
|
396
|
-
`, isInline: true, dependencies: [{ kind: "component", type: VirtualizedList, selector: "VirtualizedList", inputs: ["data", "getItem", "getItemCount", "keyExtractor", "getItemLayout", "horizontal", "inverted", "extraData", "onEndReachedThreshold", "onStartReachedThreshold", "refreshing", "progressViewOffset", "refreshRequested", "viewabilityConfig", "viewabilityConfigCallbackPairs", "initialNumToRender", "initialScrollIndex", "maxToRenderPerBatch", "updateCellsBatchingPeriod", "windowSize", "stickyHeaderIndices", "maintainVisibleContentPosition", "onScroll", "onScrollBeginDrag", "onScrollEndDrag", "onMomentumScrollBegin", "onMomentumScrollEnd", "scrollEventThrottle", "keyboardShouldPersistTaps", "keyboardDismissMode", "style", "contentContainerStyle", "testID", "nativeID", "accessible", "accessibilityLabel", "accessibilityHint", "accessibilityRole", "accessibilityState", "accessibilityValue", "accessibilityActions", "accessibilityLabelledBy", "importantForAccessibility", "accessibilityLiveRegion", "screenReaderFocusable", "accessibilityViewIsModal", "accessibilityElementsHidden", "accessibilityIgnoresInvertColors", "accessibilityLanguage", "accessibilityRespondsToUserInteraction", "accessibilityShowsLargeContentViewer", "accessibilityLargeContentTitle", "role", "ariaLabel", "ariaLabelledBy", "ariaLive", "ariaHidden", "ariaBusy", "ariaChecked", "ariaDisabled", "ariaExpanded", "ariaSelected", "ariaModal", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText"], outputs: ["endReached", "startReached", "refresh", "viewableItemsChanged", "scrollToIndexFailed", "accessibilityAction", "accessibilityTap", "magicTap", "accessibilityEscape"] }, { kind: "directive", type: VListItemDirective, selector: "[vListItem]" }, { kind: "directive", type: VListHeaderDirective, selector: "[vListHeader]" }, { kind: "directive", type: VListFooterDirective, selector: "[vListFooter]" }, { kind: "directive", type: VListEmptyDirective, selector: "[vListEmpty]" }, { kind: "directive", type: VListSeparatorDirective, selector: "[vListSeparator]" }, { kind: "directive", type: VListOutletDirective, selector: "[vListOutlet]", inputs: ["vListOutlet", "vListOutletContext"] }, { kind: "component", type: ViewHost, selector: "view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
362
|
+
`, isInline: true, dependencies: [{ kind: "component", type: VirtualizedList, selector: "VirtualizedList", inputs: ["data", "getItem", "getItemCount", "keyExtractor", "getItemLayout", "horizontal", "inverted", "extraData", "onEndReachedThreshold", "onStartReachedThreshold", "refreshing", "progressViewOffset", "refreshRequested", "viewabilityConfig", "viewabilityConfigCallbackPairs", "initialNumToRender", "initialScrollIndex", "maxToRenderPerBatch", "updateCellsBatchingPeriod", "windowSize", "stickyHeaderIndices", "maintainVisibleContentPosition", "onScroll", "onScrollBeginDrag", "onScrollEndDrag", "onMomentumScrollBegin", "onMomentumScrollEnd", "scrollEventThrottle", "keyboardShouldPersistTaps", "keyboardDismissMode", "removeClippedSubviews", "nestedScrollEnabled", "style", "contentContainerStyle", "testID", "nativeID", "accessible", "accessibilityLabel", "accessibilityHint", "accessibilityRole", "accessibilityState", "accessibilityValue", "accessibilityActions", "accessibilityLabelledBy", "importantForAccessibility", "accessibilityLiveRegion", "screenReaderFocusable", "accessibilityViewIsModal", "accessibilityElementsHidden", "accessibilityIgnoresInvertColors", "accessibilityLanguage", "accessibilityRespondsToUserInteraction", "accessibilityShowsLargeContentViewer", "accessibilityLargeContentTitle", "role", "ariaLabel", "ariaLabelledBy", "ariaLive", "ariaHidden", "ariaBusy", "ariaChecked", "ariaDisabled", "ariaExpanded", "ariaSelected", "ariaModal", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText", "itemTemplate", "itemSeparatorTemplate"], outputs: ["endReached", "startReached", "refresh", "viewableItemsChanged", "scrollToIndexFailed", "accessibilityAction", "accessibilityTap", "magicTap", "accessibilityEscape"] }, { kind: "directive", type: VListItemDirective, selector: "[vListItem]" }, { kind: "directive", type: VListHeaderDirective, selector: "[vListHeader]" }, { kind: "directive", type: VListFooterDirective, selector: "[vListFooter]" }, { kind: "directive", type: VListEmptyDirective, selector: "[vListEmpty]" }, { kind: "directive", type: VListSeparatorDirective, selector: "[vListSeparator]" }, { kind: "directive", type: VListOutletDirective, selector: "[vListOutlet]", inputs: ["vListOutlet", "vListOutletContext"] }, { kind: "component", type: ViewHost, selector: "view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
397
363
|
}
|
|
398
364
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FlatList, decorators: [{
|
|
399
365
|
type: Component,
|
|
@@ -453,6 +419,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
453
419
|
[scrollEventThrottle]="scrollEventThrottle"
|
|
454
420
|
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
455
421
|
[keyboardDismissMode]="keyboardDismissMode"
|
|
422
|
+
[removeClippedSubviews]="resolvedRemoveClippedSubviews"
|
|
423
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
456
424
|
[testID]="testID"
|
|
457
425
|
[style]="resolvedStyle"
|
|
458
426
|
[contentContainerStyle]="contentContainerStyle"
|
|
@@ -537,21 +505,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
537
505
|
[scrollEventThrottle]="scrollEventThrottle"
|
|
538
506
|
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
539
507
|
[keyboardDismissMode]="keyboardDismissMode"
|
|
508
|
+
[removeClippedSubviews]="resolvedRemoveClippedSubviews"
|
|
509
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
540
510
|
[testID]="testID"
|
|
541
511
|
[style]="resolvedStyle"
|
|
542
512
|
[contentContainerStyle]="contentContainerStyle"
|
|
513
|
+
[itemTemplate]="itemDir?.templateRef"
|
|
514
|
+
[itemSeparatorTemplate]="separatorDir?.templateRef"
|
|
543
515
|
>
|
|
544
|
-
<ng-template
|
|
545
|
-
vListItem
|
|
546
|
-
let-item
|
|
547
|
-
let-index="index"
|
|
548
|
-
let-separators="separators"
|
|
549
|
-
>
|
|
550
|
-
<ng-container
|
|
551
|
-
[vListOutlet]="itemDir?.templateRef"
|
|
552
|
-
[vListOutletContext]="{ $implicit: item, index, separators }"
|
|
553
|
-
></ng-container>
|
|
554
|
-
</ng-template>
|
|
555
516
|
@if (headerDir !== undefined) {
|
|
556
517
|
<ng-template vListHeader>
|
|
557
518
|
<ng-container [vListOutlet]="headerDir.templateRef"></ng-container>
|
|
@@ -567,21 +528,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
567
528
|
<ng-container [vListOutlet]="emptyDir.templateRef"></ng-container>
|
|
568
529
|
</ng-template>
|
|
569
530
|
}
|
|
570
|
-
@if (separatorDir !== undefined) {
|
|
571
|
-
<ng-template
|
|
572
|
-
vListSeparator
|
|
573
|
-
let-highlighted="highlighted"
|
|
574
|
-
let-leadingItem="leadingItem"
|
|
575
|
-
let-trailingItem="trailingItem"
|
|
576
|
-
>
|
|
577
|
-
<ng-container
|
|
578
|
-
[vListOutlet]="separatorDir.templateRef"
|
|
579
|
-
[vListOutletContext]="
|
|
580
|
-
itemSeparatorContext(highlighted, leadingItem, trailingItem)
|
|
581
|
-
"
|
|
582
|
-
></ng-container>
|
|
583
|
-
</ng-template>
|
|
584
|
-
}
|
|
585
531
|
</VirtualizedList>
|
|
586
532
|
}
|
|
587
533
|
`,
|
|
@@ -657,6 +603,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
657
603
|
type: Input
|
|
658
604
|
}], keyboardDismissMode: [{
|
|
659
605
|
type: Input
|
|
606
|
+
}], removeClippedSubviews: [{
|
|
607
|
+
type: Input
|
|
608
|
+
}], nestedScrollEnabled: [{
|
|
609
|
+
type: Input
|
|
660
610
|
}], style: [{
|
|
661
611
|
type: Input
|
|
662
612
|
}], contentContainerStyle: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/flat-list/index.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,+FAA+F;AAC/F,oGAAoG;AACpG,uFAAuF;AACvF,4FAA4F;AAC5F,4EAA4E;AAC5E,EAAE;AACF,oGAAoG;AACpG,oGAAoG;AACpG,sFAAsF;AACtF,gGAAgG;AAChG,0FAA0F;AAC1F,mDAAmD;AACnD,kGAAkG;AAClG,gGAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/flat-list/index.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,+FAA+F;AAC/F,oGAAoG;AACpG,uFAAuF;AACvF,4FAA4F;AAC5F,4EAA4E;AAC5E,EAAE;AACF,oGAAoG;AACpG,oGAAoG;AACpG,sFAAsF;AACtF,gGAAgG;AAChG,0FAA0F;AAC1F,mDAAmD;AACnD,kGAAkG;AAClG,gGAAgG;AAChG,iGAAiG;AACjG,kGAAkG;AAClG,6FAA6F;AAC7F,sDAAsD;AACtD,+FAA+F;AAC/F,+FAA+F;AAC/F,8FAA8F;AAC9F,+FAA+F;AAC/F,iGAAiG;AACjG,gGAAgG;AAChG,kGAAkG;AAClG,EAAE;AACF,uFAAuF;AACvF,gGAAgG;AAChG,+FAA+F;AAC/F,iGAAiG;AACjG,+FAA+F;AAC/F,iDAAiD;AAEjD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,S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[];
|
|
|
9
9
|
export declare function isImageEventCallback(value: unknown): value is (event: ISymbioteEvent) => void;
|
|
10
10
|
export declare function resolveImageProps(input: Record<string, unknown>): Record<string, unknown>;
|
|
11
11
|
export declare abstract class ImageBase {
|
|
12
|
-
static readonly getSize:
|
|
13
|
-
|
|
12
|
+
static readonly getSize: {
|
|
13
|
+
(uri: string): Promise<import("@symbiote-native/engine").IImageSize>;
|
|
14
|
+
(uri: string, success: (width: number, height: number) => void, failure?: (error: unknown) => void): undefined;
|
|
15
|
+
};
|
|
16
|
+
static readonly getSizeWithHeaders: {
|
|
17
|
+
(uri: string, headers: Record<string, string>): Promise<import("@symbiote-native/engine").IImageSize>;
|
|
18
|
+
(uri: string, headers: Record<string, string>, success: (width: number, height: number) => void, failure?: (error: unknown) => void): undefined;
|
|
19
|
+
};
|
|
14
20
|
static readonly prefetch: (uri: string, callback?: (requestId: number) => void) => Promise<boolean>;
|
|
15
21
|
static readonly abortPrefetch: (requestId: number) => void;
|
|
16
22
|
static readonly queryCache: (uris: string[]) => Promise<Record<string, import("@symbiote-native/engine").IImageCacheStatus>>;
|
|
@@ -83,6 +83,7 @@ export declare class Modal implements IAngularModalInputs, OnInit, OnChanges, Do
|
|
|
83
83
|
private readonly hostPropsRevision;
|
|
84
84
|
private lastAnchorStyle;
|
|
85
85
|
ngOnChanges(changes: SimpleChanges): void;
|
|
86
|
+
handleDismiss(): void;
|
|
86
87
|
get shouldRender(): boolean;
|
|
87
88
|
private get descriptor();
|
|
88
89
|
ngDoCheck(): void;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
// through the same childSet as the rest of the tree (no second JS surface). The style math (the
|
|
3
3
|
// backdrop override, the container/host styles, the presentationStyle default), the visible gate,
|
|
4
4
|
// and the iOS keep-alive reducer all live framework-agnostic in @symbiote-native/components and are shared
|
|
5
|
-
// verbatim with React/Vue; here Angular supplies only the lifecycle: the keep-alive state
|
|
6
|
-
//
|
|
7
|
-
// that used the OLD state, the Angular twin of React's useEffect / Vue's post-flush watch — one
|
|
8
|
-
// keep-alive frame survives the visible→hidden transition), reusing renderModal's resolved props.
|
|
5
|
+
// verbatim with React/Vue; here Angular supplies only the lifecycle: the keep-alive state, armed on
|
|
6
|
+
// show (ngOnChanges) and dropped by the native dismiss on iOS, reusing renderModal's resolved props.
|
|
9
7
|
// The user children nest UNDER the container View via <ng-content>.
|
|
10
8
|
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Component, computed, ElementRef, EventEmitter, inject, Input, Output, signal, } from '@angular/core';
|
|
11
|
-
import { createInitialModalState, modalReducer, renderModal, resolveAccessibilityProps, shouldRenderModal, } from '@symbiote-native/components';
|
|
12
|
-
import { dlog, isSymbioteEvent, } from '@symbiote-native/engine';
|
|
9
|
+
import { createInitialModalState, isModalVisible, modalReducer, modalVisibilityAction, renderModal, resolveAccessibilityProps, shouldRenderModal, } from '@symbiote-native/components';
|
|
10
|
+
import { dlog, isSymbioteEvent, Platform, } from '@symbiote-native/engine';
|
|
13
11
|
import { anchorHostStyle, ModalHost, SymbioteHostPropsDirective, SymbioteStyleInputDirective, ViewHost, } from '../../primitives';
|
|
14
12
|
import * as i0 from "@angular/core";
|
|
15
13
|
import * as i1 from "../../primitives/shared";
|
|
@@ -23,8 +21,8 @@ export class Modal {
|
|
|
23
21
|
this.accessibilityTap = new EventEmitter();
|
|
24
22
|
this.magicTap = new EventEmitter();
|
|
25
23
|
this.accessibilityEscape = new EventEmitter();
|
|
26
|
-
// The iOS keep-alive (state/modal.ts):
|
|
27
|
-
// (
|
|
24
|
+
// The iOS keep-alive (state/modal.ts): after visible→hidden the node stays until the native
|
|
25
|
+
// onDismiss (`handleDismiss`) drops it.
|
|
28
26
|
this.state = createInitialModalState(false);
|
|
29
27
|
this.changeDetector = inject(ChangeDetectorRef);
|
|
30
28
|
// This component's OWN host — the non-painting anchor `class="..."` at the use site resolves
|
|
@@ -70,7 +68,7 @@ export class Modal {
|
|
|
70
68
|
});
|
|
71
69
|
}
|
|
72
70
|
ngOnInit() {
|
|
73
|
-
this.state = createInitialModalState(this.visible
|
|
71
|
+
this.state = createInitialModalState(isModalVisible(this.visible));
|
|
74
72
|
}
|
|
75
73
|
ngOnChanges(changes) {
|
|
76
74
|
// Before the keep-alive early-return below: this is the single moment Angular has finished
|
|
@@ -80,16 +78,25 @@ export class Modal {
|
|
|
80
78
|
// First change is reflected by the ngOnInit seed; only later toggles drive the keep-alive.
|
|
81
79
|
if (visibleChange === undefined || visibleChange.firstChange)
|
|
82
80
|
return;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
// Arms the iOS keep-alive on show; a hide is left to the native dismiss (state/modal.ts).
|
|
82
|
+
const action = modalVisibilityAction(isModalVisible(this.visible));
|
|
83
|
+
if (action === undefined)
|
|
84
|
+
return;
|
|
86
85
|
queueMicrotask(() => {
|
|
87
|
-
this.state = modalReducer(this.state,
|
|
86
|
+
this.state = modalReducer(this.state, action);
|
|
88
87
|
this.changeDetector.markForCheck();
|
|
89
88
|
});
|
|
90
89
|
}
|
|
90
|
+
// Modal.js: onDismiss is iOS-only — it drops the keep-alive, then tells the app.
|
|
91
|
+
handleDismiss() {
|
|
92
|
+
if (Platform.OS !== 'ios')
|
|
93
|
+
return;
|
|
94
|
+
this.state = modalReducer(this.state, { type: 'hide' });
|
|
95
|
+
this.changeDetector.markForCheck();
|
|
96
|
+
this.dismiss.emit();
|
|
97
|
+
}
|
|
91
98
|
get shouldRender() {
|
|
92
|
-
const render = shouldRenderModal(this.visible
|
|
99
|
+
const render = shouldRenderModal(isModalVisible(this.visible), this.state);
|
|
93
100
|
if (!render)
|
|
94
101
|
dlog('Modal hidden -> no node committed');
|
|
95
102
|
return render;
|
|
@@ -188,7 +195,7 @@ export class Modal {
|
|
|
188
195
|
<modal
|
|
189
196
|
[symbioteHostProps]="hostProps()"
|
|
190
197
|
(show)="show.emit()"
|
|
191
|
-
(dismiss)="
|
|
198
|
+
(dismiss)="handleDismiss()"
|
|
192
199
|
(requestClose)="requestClose.emit()"
|
|
193
200
|
(orientationChange)="emit(orientationChange, $event)"
|
|
194
201
|
>
|
|
@@ -215,7 +222,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
215
222
|
<modal
|
|
216
223
|
[symbioteHostProps]="hostProps()"
|
|
217
224
|
(show)="show.emit()"
|
|
218
|
-
(dismiss)="
|
|
225
|
+
(dismiss)="handleDismiss()"
|
|
219
226
|
(requestClose)="requestClose.emit()"
|
|
220
227
|
(orientationChange)="emit(orientationChange, $event)"
|
|
221
228
|
>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,gGAAgG;AAChG,kGAAkG;AAClG,2GAA2G;AAC3G,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,gGAAgG;AAChG,kGAAkG;AAClG,2GAA2G;AAC3G,oGAAoG;AACpG,qGAAqG;AACrG,oEAAoE;AAEpE,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,GAKP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,yBAAyB,EACzB,iBAAiB,GAQlB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,IAAI,EACJ,eAAe,EACf,QAAQ,GAIT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,SAAS,EACT,0BAA0B,EAC1B,2BAA2B,EAC3B,QAAQ,GACT,MAAM,kBAAkB,CAAC;;;AAuE1B,MAAM,OAAO,KA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,EAAE,2BAA2B,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE;qBAC9D;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,0BAA0B,CAAC;oBAC1D,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;GAcT;iBACF;;sBAEE,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAEL,KAAK;;sBAEL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;uBAAC,YAAY;;sBAClB,KAAK;uBAAC,iBAAiB;;sBACvB,KAAK;uBAAC,WAAW;;sBACjB,KAAK;uBAAC,aAAa;;sBACnB,KAAK;uBAAC,WAAW;;sBACjB,KAAK;uBAAC,cAAc;;sBACpB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,YAAY;;sBAClB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,eAAe;;sBACrB,KAAK;uBAAC,gBAAgB"}
|
|
@@ -51,6 +51,8 @@ export declare class SectionList<ItemT = unknown> implements ISectionListInputs<
|
|
|
51
51
|
scrollEventThrottle?: number;
|
|
52
52
|
keyboardShouldPersistTaps?: boolean | 'always' | 'never' | 'handled';
|
|
53
53
|
keyboardDismissMode?: 'none' | 'on-drag' | 'interactive';
|
|
54
|
+
removeClippedSubviews?: boolean;
|
|
55
|
+
nestedScrollEnabled?: boolean;
|
|
54
56
|
style?: IStyleProp<IViewStyle>;
|
|
55
57
|
contentContainerStyle?: IStyleProp<IViewStyle>;
|
|
56
58
|
testID?: string;
|
|
@@ -121,5 +123,5 @@ export declare class SectionList<ItemT = unknown> implements ISectionListInputs<
|
|
|
121
123
|
getScrollNode(): ISymbioteNode | null;
|
|
122
124
|
recordInteraction(): void;
|
|
123
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<SectionList<any>, never>;
|
|
124
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SectionList<any>, "SectionList", never, { "sections": { "alias": "sections"; "required": true; }; "keyExtractor": { "alias": "keyExtractor"; "required": false; }; "getItemLayout": { "alias": "getItemLayout"; "required": false; }; "stickySectionHeadersEnabled": { "alias": "stickySectionHeadersEnabled"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "onEndReachedThreshold": { "alias": "onEndReachedThreshold"; "required": false; }; "onStartReachedThreshold": { "alias": "onStartReachedThreshold"; "required": false; }; "refreshing": { "alias": "refreshing"; "required": false; }; "progressViewOffset": { "alias": "progressViewOffset"; "required": false; }; "initialNumToRender": { "alias": "initialNumToRender"; "required": false; }; "initialScrollIndex": { "alias": "initialScrollIndex"; "required": false; }; "maxToRenderPerBatch": { "alias": "maxToRenderPerBatch"; "required": false; }; "updateCellsBatchingPeriod": { "alias": "updateCellsBatchingPeriod"; "required": false; }; "windowSize": { "alias": "windowSize"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "maintainVisibleContentPosition": { "alias": "maintainVisibleContentPosition"; "required": false; }; "onScroll": { "alias": "onScroll"; "required": false; }; "onScrollBeginDrag": { "alias": "onScrollBeginDrag"; "required": false; }; "onScrollEndDrag": { "alias": "onScrollEndDrag"; "required": false; }; "onMomentumScrollBegin": { "alias": "onMomentumScrollBegin"; "required": false; }; "onMomentumScrollEnd": { "alias": "onMomentumScrollEnd"; "required": false; }; "scrollEventThrottle": { "alias": "scrollEventThrottle"; "required": false; }; "keyboardShouldPersistTaps": { "alias": "keyboardShouldPersistTaps"; "required": false; }; "keyboardDismissMode": { "alias": "keyboardDismissMode"; "required": false; }; "style": { "alias": "style"; "required": false; }; "contentContainerStyle": { "alias": "contentContainerStyle"; "required": false; }; "testID": { "alias": "testID"; "required": false; }; "nativeID": { "alias": "nativeID"; "required": false; }; "accessible": { "alias": "accessible"; "required": false; }; "accessibilityLabel": { "alias": "accessibilityLabel"; "required": false; }; "accessibilityHint": { "alias": "accessibilityHint"; "required": false; }; "accessibilityRole": { "alias": "accessibilityRole"; "required": false; }; "accessibilityState": { "alias": "accessibilityState"; "required": false; }; "accessibilityValue": { "alias": "accessibilityValue"; "required": false; }; "accessibilityActions": { "alias": "accessibilityActions"; "required": false; }; "accessibilityLabelledBy": { "alias": "accessibilityLabelledBy"; "required": false; }; "importantForAccessibility": { "alias": "importantForAccessibility"; "required": false; }; "accessibilityLiveRegion": { "alias": "accessibilityLiveRegion"; "required": false; }; "screenReaderFocusable": { "alias": "screenReaderFocusable"; "required": false; }; "accessibilityViewIsModal": { "alias": "accessibilityViewIsModal"; "required": false; }; "accessibilityElementsHidden": { "alias": "accessibilityElementsHidden"; "required": false; }; "accessibilityIgnoresInvertColors": { "alias": "accessibilityIgnoresInvertColors"; "required": false; }; "accessibilityLanguage": { "alias": "accessibilityLanguage"; "required": false; }; "accessibilityRespondsToUserInteraction": { "alias": "accessibilityRespondsToUserInteraction"; "required": false; }; "accessibilityShowsLargeContentViewer": { "alias": "accessibilityShowsLargeContentViewer"; "required": false; }; "accessibilityLargeContentTitle": { "alias": "accessibilityLargeContentTitle"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLive": { "alias": "ariaLive"; "required": false; }; "ariaHidden": { "alias": "ariaHidden"; "required": false; }; "ariaBusy": { "alias": "ariaBusy"; "required": false; }; "ariaChecked": { "alias": "ariaChecked"; "required": false; }; "ariaDisabled": { "alias": "ariaDisabled"; "required": false; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; }; "ariaSelected": { "alias": "ariaSelected"; "required": false; }; "ariaModal": { "alias": "ariaModal"; "required": false; }; "ariaValueMax": { "alias": "ariaValueMax"; "required": false; }; "ariaValueMin": { "alias": "ariaValueMin"; "required": false; }; "ariaValueNow": { "alias": "ariaValueNow"; "required": false; }; "ariaValueText": { "alias": "ariaValueText"; "required": false; }; }, { "endReached": "endReached"; "startReached": "startReached"; "refresh": "refresh"; "accessibilityAction": "accessibilityAction"; "accessibilityTap": "accessibilityTap"; "magicTap": "magicTap"; "accessibilityEscape": "accessibilityEscape"; }, ["sectionItemDir", "sectionHeaderDir", "sectionFooterDir", "sectionSeparatorDir", "listHeaderDir", "listFooterDir", "listEmptyDir", "itemSeparatorDir"], never, true, [{ directive: typeof i1.SymbioteStyleInputDirective; inputs: { "style": "style"; }; outputs: {}; }]>;
|
|
126
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionList<any>, "SectionList", never, { "sections": { "alias": "sections"; "required": true; }; "keyExtractor": { "alias": "keyExtractor"; "required": false; }; "getItemLayout": { "alias": "getItemLayout"; "required": false; }; "stickySectionHeadersEnabled": { "alias": "stickySectionHeadersEnabled"; "required": false; }; "extraData": { "alias": "extraData"; "required": false; }; "onEndReachedThreshold": { "alias": "onEndReachedThreshold"; "required": false; }; "onStartReachedThreshold": { "alias": "onStartReachedThreshold"; "required": false; }; "refreshing": { "alias": "refreshing"; "required": false; }; "progressViewOffset": { "alias": "progressViewOffset"; "required": false; }; "initialNumToRender": { "alias": "initialNumToRender"; "required": false; }; "initialScrollIndex": { "alias": "initialScrollIndex"; "required": false; }; "maxToRenderPerBatch": { "alias": "maxToRenderPerBatch"; "required": false; }; "updateCellsBatchingPeriod": { "alias": "updateCellsBatchingPeriod"; "required": false; }; "windowSize": { "alias": "windowSize"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "maintainVisibleContentPosition": { "alias": "maintainVisibleContentPosition"; "required": false; }; "onScroll": { "alias": "onScroll"; "required": false; }; "onScrollBeginDrag": { "alias": "onScrollBeginDrag"; "required": false; }; "onScrollEndDrag": { "alias": "onScrollEndDrag"; "required": false; }; "onMomentumScrollBegin": { "alias": "onMomentumScrollBegin"; "required": false; }; "onMomentumScrollEnd": { "alias": "onMomentumScrollEnd"; "required": false; }; "scrollEventThrottle": { "alias": "scrollEventThrottle"; "required": false; }; "keyboardShouldPersistTaps": { "alias": "keyboardShouldPersistTaps"; "required": false; }; "keyboardDismissMode": { "alias": "keyboardDismissMode"; "required": false; }; "removeClippedSubviews": { "alias": "removeClippedSubviews"; "required": false; }; "nestedScrollEnabled": { "alias": "nestedScrollEnabled"; "required": false; }; "style": { "alias": "style"; "required": false; }; "contentContainerStyle": { "alias": "contentContainerStyle"; "required": false; }; "testID": { "alias": "testID"; "required": false; }; "nativeID": { "alias": "nativeID"; "required": false; }; "accessible": { "alias": "accessible"; "required": false; }; "accessibilityLabel": { "alias": "accessibilityLabel"; "required": false; }; "accessibilityHint": { "alias": "accessibilityHint"; "required": false; }; "accessibilityRole": { "alias": "accessibilityRole"; "required": false; }; "accessibilityState": { "alias": "accessibilityState"; "required": false; }; "accessibilityValue": { "alias": "accessibilityValue"; "required": false; }; "accessibilityActions": { "alias": "accessibilityActions"; "required": false; }; "accessibilityLabelledBy": { "alias": "accessibilityLabelledBy"; "required": false; }; "importantForAccessibility": { "alias": "importantForAccessibility"; "required": false; }; "accessibilityLiveRegion": { "alias": "accessibilityLiveRegion"; "required": false; }; "screenReaderFocusable": { "alias": "screenReaderFocusable"; "required": false; }; "accessibilityViewIsModal": { "alias": "accessibilityViewIsModal"; "required": false; }; "accessibilityElementsHidden": { "alias": "accessibilityElementsHidden"; "required": false; }; "accessibilityIgnoresInvertColors": { "alias": "accessibilityIgnoresInvertColors"; "required": false; }; "accessibilityLanguage": { "alias": "accessibilityLanguage"; "required": false; }; "accessibilityRespondsToUserInteraction": { "alias": "accessibilityRespondsToUserInteraction"; "required": false; }; "accessibilityShowsLargeContentViewer": { "alias": "accessibilityShowsLargeContentViewer"; "required": false; }; "accessibilityLargeContentTitle": { "alias": "accessibilityLargeContentTitle"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "ariaLive": { "alias": "ariaLive"; "required": false; }; "ariaHidden": { "alias": "ariaHidden"; "required": false; }; "ariaBusy": { "alias": "ariaBusy"; "required": false; }; "ariaChecked": { "alias": "ariaChecked"; "required": false; }; "ariaDisabled": { "alias": "ariaDisabled"; "required": false; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; }; "ariaSelected": { "alias": "ariaSelected"; "required": false; }; "ariaModal": { "alias": "ariaModal"; "required": false; }; "ariaValueMax": { "alias": "ariaValueMax"; "required": false; }; "ariaValueMin": { "alias": "ariaValueMin"; "required": false; }; "ariaValueNow": { "alias": "ariaValueNow"; "required": false; }; "ariaValueText": { "alias": "ariaValueText"; "required": false; }; }, { "endReached": "endReached"; "startReached": "startReached"; "refresh": "refresh"; "accessibilityAction": "accessibilityAction"; "accessibilityTap": "accessibilityTap"; "magicTap": "magicTap"; "accessibilityEscape": "accessibilityEscape"; }, ["sectionItemDir", "sectionHeaderDir", "sectionFooterDir", "sectionSeparatorDir", "listHeaderDir", "listFooterDir", "listEmptyDir", "itemSeparatorDir"], never, true, [{ directive: typeof i1.SymbioteStyleInputDirective; inputs: { "style": "style"; }; outputs: {}; }]>;
|
|
125
127
|
}
|
|
@@ -106,7 +106,7 @@ export class SectionList {
|
|
|
106
106
|
this.list?.recordInteraction();
|
|
107
107
|
}
|
|
108
108
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SectionList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: SectionList, isStandalone: true, selector: "SectionList", inputs: { sections: "sections", keyExtractor: "keyExtractor", getItemLayout: "getItemLayout", stickySectionHeadersEnabled: "stickySectionHeadersEnabled", extraData: "extraData", onEndReachedThreshold: "onEndReachedThreshold", onStartReachedThreshold: "onStartReachedThreshold", refreshing: "refreshing", progressViewOffset: "progressViewOffset", initialNumToRender: "initialNumToRender", initialScrollIndex: "initialScrollIndex", maxToRenderPerBatch: "maxToRenderPerBatch", updateCellsBatchingPeriod: "updateCellsBatchingPeriod", windowSize: "windowSize", inverted: "inverted", maintainVisibleContentPosition: "maintainVisibleContentPosition", onScroll: "onScroll", onScrollBeginDrag: "onScrollBeginDrag", onScrollEndDrag: "onScrollEndDrag", onMomentumScrollBegin: "onMomentumScrollBegin", onMomentumScrollEnd: "onMomentumScrollEnd", scrollEventThrottle: "scrollEventThrottle", keyboardShouldPersistTaps: "keyboardShouldPersistTaps", keyboardDismissMode: "keyboardDismissMode", style: "style", contentContainerStyle: "contentContainerStyle", testID: "testID", nativeID: "nativeID", accessible: "accessible", accessibilityLabel: "accessibilityLabel", accessibilityHint: "accessibilityHint", accessibilityRole: "accessibilityRole", accessibilityState: "accessibilityState", accessibilityValue: "accessibilityValue", accessibilityActions: "accessibilityActions", accessibilityLabelledBy: "accessibilityLabelledBy", importantForAccessibility: "importantForAccessibility", accessibilityLiveRegion: "accessibilityLiveRegion", screenReaderFocusable: "screenReaderFocusable", accessibilityViewIsModal: "accessibilityViewIsModal", accessibilityElementsHidden: "accessibilityElementsHidden", accessibilityIgnoresInvertColors: "accessibilityIgnoresInvertColors", accessibilityLanguage: "accessibilityLanguage", accessibilityRespondsToUserInteraction: "accessibilityRespondsToUserInteraction", accessibilityShowsLargeContentViewer: "accessibilityShowsLargeContentViewer", accessibilityLargeContentTitle: "accessibilityLargeContentTitle", role: "role", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaLive: "ariaLive", ariaHidden: "ariaHidden", ariaBusy: "ariaBusy", ariaChecked: "ariaChecked", ariaDisabled: "ariaDisabled", ariaExpanded: "ariaExpanded", ariaSelected: "ariaSelected", ariaModal: "ariaModal", ariaValueMax: "ariaValueMax", ariaValueMin: "ariaValueMin", ariaValueNow: "ariaValueNow", ariaValueText: "ariaValueText" }, outputs: { endReached: "endReached", startReached: "startReached", refresh: "refresh", accessibilityAction: "accessibilityAction", accessibilityTap: "accessibilityTap", magicTap: "magicTap", accessibilityEscape: "accessibilityEscape" }, queries: [{ propertyName: "sectionItemDir", first: true, predicate: VSectionItemDirective, descendants: true }, { propertyName: "sectionHeaderDir", first: true, predicate: VSectionHeaderDirective, descendants: true }, { propertyName: "sectionFooterDir", first: true, predicate: VSectionFooterDirective, descendants: true }, { propertyName: "sectionSeparatorDir", first: true, predicate: VSectionSeparatorDirective, descendants: true }, { propertyName: "listHeaderDir", first: true, predicate: VListHeaderDirective, descendants: true }, { propertyName: "listFooterDir", first: true, predicate: VListFooterDirective, descendants: true }, { propertyName: "listEmptyDir", first: true, predicate: VListEmptyDirective, descendants: true }, { propertyName: "itemSeparatorDir", first: true, predicate: VListSeparatorDirective, descendants: true }], viewQueries: [{ propertyName: "list", first: true, predicate: VirtualizedSectionList, descendants: true }], hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: `
|
|
109
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: SectionList, isStandalone: true, selector: "SectionList", inputs: { sections: "sections", keyExtractor: "keyExtractor", getItemLayout: "getItemLayout", stickySectionHeadersEnabled: "stickySectionHeadersEnabled", extraData: "extraData", onEndReachedThreshold: "onEndReachedThreshold", onStartReachedThreshold: "onStartReachedThreshold", refreshing: "refreshing", progressViewOffset: "progressViewOffset", initialNumToRender: "initialNumToRender", initialScrollIndex: "initialScrollIndex", maxToRenderPerBatch: "maxToRenderPerBatch", updateCellsBatchingPeriod: "updateCellsBatchingPeriod", windowSize: "windowSize", inverted: "inverted", maintainVisibleContentPosition: "maintainVisibleContentPosition", onScroll: "onScroll", onScrollBeginDrag: "onScrollBeginDrag", onScrollEndDrag: "onScrollEndDrag", onMomentumScrollBegin: "onMomentumScrollBegin", onMomentumScrollEnd: "onMomentumScrollEnd", scrollEventThrottle: "scrollEventThrottle", keyboardShouldPersistTaps: "keyboardShouldPersistTaps", keyboardDismissMode: "keyboardDismissMode", removeClippedSubviews: "removeClippedSubviews", nestedScrollEnabled: "nestedScrollEnabled", style: "style", contentContainerStyle: "contentContainerStyle", testID: "testID", nativeID: "nativeID", accessible: "accessible", accessibilityLabel: "accessibilityLabel", accessibilityHint: "accessibilityHint", accessibilityRole: "accessibilityRole", accessibilityState: "accessibilityState", accessibilityValue: "accessibilityValue", accessibilityActions: "accessibilityActions", accessibilityLabelledBy: "accessibilityLabelledBy", importantForAccessibility: "importantForAccessibility", accessibilityLiveRegion: "accessibilityLiveRegion", screenReaderFocusable: "screenReaderFocusable", accessibilityViewIsModal: "accessibilityViewIsModal", accessibilityElementsHidden: "accessibilityElementsHidden", accessibilityIgnoresInvertColors: "accessibilityIgnoresInvertColors", accessibilityLanguage: "accessibilityLanguage", accessibilityRespondsToUserInteraction: "accessibilityRespondsToUserInteraction", accessibilityShowsLargeContentViewer: "accessibilityShowsLargeContentViewer", accessibilityLargeContentTitle: "accessibilityLargeContentTitle", role: "role", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaLive: "ariaLive", ariaHidden: "ariaHidden", ariaBusy: "ariaBusy", ariaChecked: "ariaChecked", ariaDisabled: "ariaDisabled", ariaExpanded: "ariaExpanded", ariaSelected: "ariaSelected", ariaModal: "ariaModal", ariaValueMax: "ariaValueMax", ariaValueMin: "ariaValueMin", ariaValueNow: "ariaValueNow", ariaValueText: "ariaValueText" }, outputs: { endReached: "endReached", startReached: "startReached", refresh: "refresh", accessibilityAction: "accessibilityAction", accessibilityTap: "accessibilityTap", magicTap: "magicTap", accessibilityEscape: "accessibilityEscape" }, queries: [{ propertyName: "sectionItemDir", first: true, predicate: VSectionItemDirective, descendants: true }, { propertyName: "sectionHeaderDir", first: true, predicate: VSectionHeaderDirective, descendants: true }, { propertyName: "sectionFooterDir", first: true, predicate: VSectionFooterDirective, descendants: true }, { propertyName: "sectionSeparatorDir", first: true, predicate: VSectionSeparatorDirective, descendants: true }, { propertyName: "listHeaderDir", first: true, predicate: VListHeaderDirective, descendants: true }, { propertyName: "listFooterDir", first: true, predicate: VListFooterDirective, descendants: true }, { propertyName: "listEmptyDir", first: true, predicate: VListEmptyDirective, descendants: true }, { propertyName: "itemSeparatorDir", first: true, predicate: VListSeparatorDirective, descendants: true }], viewQueries: [{ propertyName: "list", first: true, predicate: VirtualizedSectionList, descendants: true }], hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: `
|
|
110
110
|
<VirtualizedSectionList
|
|
111
111
|
[sections]="sections"
|
|
112
112
|
[keyExtractor]="keyExtractor"
|
|
@@ -136,6 +136,8 @@ export class SectionList {
|
|
|
136
136
|
[scrollEventThrottle]="scrollEventThrottle"
|
|
137
137
|
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
138
138
|
[keyboardDismissMode]="keyboardDismissMode"
|
|
139
|
+
[removeClippedSubviews]="removeClippedSubviews"
|
|
140
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
139
141
|
[style]="resolvedStyle"
|
|
140
142
|
[contentContainerStyle]="contentContainerStyle"
|
|
141
143
|
[testID]="testID"
|
|
@@ -258,7 +260,7 @@ export class SectionList {
|
|
|
258
260
|
</ng-template>
|
|
259
261
|
}
|
|
260
262
|
</VirtualizedSectionList>
|
|
261
|
-
`, isInline: true, dependencies: [{ kind: "component", type: VirtualizedSectionList, selector: "VirtualizedSectionList", inputs: ["sections", "keyExtractor", "getItemLayout", "stickySectionHeadersEnabled", "extraData", "onEndReachedThreshold", "onStartReachedThreshold", "refreshing", "progressViewOffset", "refreshRequested", "initialNumToRender", "initialScrollIndex", "maxToRenderPerBatch", "updateCellsBatchingPeriod", "windowSize", "inverted", "maintainVisibleContentPosition", "onScroll", "onScrollBeginDrag", "onScrollEndDrag", "onMomentumScrollBegin", "onMomentumScrollEnd", "scrollEventThrottle", "keyboardShouldPersistTaps", "keyboardDismissMode", "style", "contentContainerStyle", "testID", "nativeID", "accessible", "accessibilityLabel", "accessibilityHint", "accessibilityRole", "accessibilityState", "accessibilityValue", "accessibilityActions", "accessibilityLabelledBy", "importantForAccessibility", "accessibilityLiveRegion", "screenReaderFocusable", "accessibilityViewIsModal", "accessibilityElementsHidden", "accessibilityIgnoresInvertColors", "accessibilityLanguage", "accessibilityRespondsToUserInteraction", "accessibilityShowsLargeContentViewer", "accessibilityLargeContentTitle", "role", "ariaLabel", "ariaLabelledBy", "ariaLive", "ariaHidden", "ariaBusy", "ariaChecked", "ariaDisabled", "ariaExpanded", "ariaSelected", "ariaModal", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText"], outputs: ["endReached", "startReached", "refresh", "accessibilityAction", "accessibilityTap", "magicTap", "accessibilityEscape"] }, { kind: "directive", type: VSectionItemDirective, selector: "[vSectionItem]" }, { kind: "directive", type: VSectionHeaderDirective, selector: "[vSectionHeader]" }, { kind: "directive", type: VSectionFooterDirective, selector: "[vSectionFooter]" }, { kind: "directive", type: VSectionSeparatorDirective, selector: "[vSectionSeparator]" }, { kind: "directive", type: VListHeaderDirective, selector: "[vListHeader]" }, { kind: "directive", type: VListFooterDirective, selector: "[vListFooter]" }, { kind: "directive", type: VListEmptyDirective, selector: "[vListEmpty]" }, { kind: "directive", type: VListSeparatorDirective, selector: "[vListSeparator]" }, { kind: "directive", type: VListOutletDirective, selector: "[vListOutlet]", inputs: ["vListOutlet", "vListOutletContext"] }], viewProviders: [provideGateDemand(() => SectionList)], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
263
|
+
`, isInline: true, dependencies: [{ kind: "component", type: VirtualizedSectionList, selector: "VirtualizedSectionList", inputs: ["sections", "keyExtractor", "getItemLayout", "stickySectionHeadersEnabled", "extraData", "onEndReachedThreshold", "onStartReachedThreshold", "refreshing", "progressViewOffset", "refreshRequested", "initialNumToRender", "initialScrollIndex", "maxToRenderPerBatch", "updateCellsBatchingPeriod", "windowSize", "inverted", "maintainVisibleContentPosition", "onScroll", "onScrollBeginDrag", "onScrollEndDrag", "onMomentumScrollBegin", "onMomentumScrollEnd", "scrollEventThrottle", "keyboardShouldPersistTaps", "keyboardDismissMode", "removeClippedSubviews", "nestedScrollEnabled", "style", "contentContainerStyle", "testID", "nativeID", "accessible", "accessibilityLabel", "accessibilityHint", "accessibilityRole", "accessibilityState", "accessibilityValue", "accessibilityActions", "accessibilityLabelledBy", "importantForAccessibility", "accessibilityLiveRegion", "screenReaderFocusable", "accessibilityViewIsModal", "accessibilityElementsHidden", "accessibilityIgnoresInvertColors", "accessibilityLanguage", "accessibilityRespondsToUserInteraction", "accessibilityShowsLargeContentViewer", "accessibilityLargeContentTitle", "role", "ariaLabel", "ariaLabelledBy", "ariaLive", "ariaHidden", "ariaBusy", "ariaChecked", "ariaDisabled", "ariaExpanded", "ariaSelected", "ariaModal", "ariaValueMax", "ariaValueMin", "ariaValueNow", "ariaValueText"], outputs: ["endReached", "startReached", "refresh", "accessibilityAction", "accessibilityTap", "magicTap", "accessibilityEscape"] }, { kind: "directive", type: VSectionItemDirective, selector: "[vSectionItem]" }, { kind: "directive", type: VSectionHeaderDirective, selector: "[vSectionHeader]" }, { kind: "directive", type: VSectionFooterDirective, selector: "[vSectionFooter]" }, { kind: "directive", type: VSectionSeparatorDirective, selector: "[vSectionSeparator]" }, { kind: "directive", type: VListHeaderDirective, selector: "[vListHeader]" }, { kind: "directive", type: VListFooterDirective, selector: "[vListFooter]" }, { kind: "directive", type: VListEmptyDirective, selector: "[vListEmpty]" }, { kind: "directive", type: VListSeparatorDirective, selector: "[vListSeparator]" }, { kind: "directive", type: VListOutletDirective, selector: "[vListOutlet]", inputs: ["vListOutlet", "vListOutletContext"] }], viewProviders: [provideGateDemand(() => SectionList)], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
262
264
|
}
|
|
263
265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SectionList, decorators: [{
|
|
264
266
|
type: Component,
|
|
@@ -312,6 +314,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
312
314
|
[scrollEventThrottle]="scrollEventThrottle"
|
|
313
315
|
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
314
316
|
[keyboardDismissMode]="keyboardDismissMode"
|
|
317
|
+
[removeClippedSubviews]="removeClippedSubviews"
|
|
318
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
315
319
|
[style]="resolvedStyle"
|
|
316
320
|
[contentContainerStyle]="contentContainerStyle"
|
|
317
321
|
[testID]="testID"
|
|
@@ -491,6 +495,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
491
495
|
type: Input
|
|
492
496
|
}], keyboardDismissMode: [{
|
|
493
497
|
type: Input
|
|
498
|
+
}], removeClippedSubviews: [{
|
|
499
|
+
type: Input
|
|
500
|
+
}], nestedScrollEnabled: [{
|
|
501
|
+
type: Input
|
|
494
502
|
}], style: [{
|
|
495
503
|
type: Input
|
|
496
504
|
}], contentContainerStyle: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/section-list/index.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,4FAA4F;AAC5F,iGAAiG;AACjG,+FAA+F;AAC/F,kDAAkD;AAClD,EAAE;AACF,kGAAkG;AAClG,2FAA2F;AAC3F,oGAAoG;AACpG,iGAAiG;AACjG,0FAA0F;AAC1F,kFAAkF;AAClF,kGAAkG;AAClG,EAAE;AACF,6FAA6F;AAC7F,mFAAmF;AACnF,iGAAiG;AACjG,+FAA+F;AAC/F,wFAAwF;AACxF,iGAAiG;AACjG,yFAAyF;AACzF,gGAAgG;AAChG,mGAAmG;AACnG,wEAAwE;AAExE,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,GACP,MAAM,eAAe,CAAC;AASvB,OAAO,EAKN,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,GAEvB,MAAM,6BAA6B,CAAC;AAiCrC,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/section-list/index.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,4FAA4F;AAC5F,iGAAiG;AACjG,+FAA+F;AAC/F,kDAAkD;AAClD,EAAE;AACF,kGAAkG;AAClG,2FAA2F;AAC3F,oGAAoG;AACpG,iGAAiG;AACjG,0FAA0F;AAC1F,kFAAkF;AAClF,kGAAkG;AAClG,EAAE;AACF,6FAA6F;AAC7F,mFAAmF;AACnF,iGAAiG;AACjG,+FAA+F;AAC/F,wFAAwF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;;sBACL,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBACN,MAAM;;sBAWN,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAIL,YAAY;uBAAC,qBAAqB;;sBAElC,YAAY;uBAAC,uBAAuB;;sBAEpC,YAAY;uBAAC,uBAAuB;;sBAEpC,YAAY;uBAAC,0BAA0B;;sBAEvC,YAAY;uBAAC,oBAAoB;;sBACjC,YAAY;uBAAC,oBAAoB;;sBACjC,YAAY;uBAAC,mBAAmB;;sBAChC,YAAY;uBAAC,uBAAuB;;sBAKpC,SAAS;uBAAC,sBAAsB"}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// @angular/core: create on template change, update the embedded view's context in place on a
|
|
25
25
|
// context change (no churn of the cell's own view across windowing recomputes).
|
|
26
26
|
import { Directive, Input, TemplateRef, ViewContainerRef, inject, } from '@angular/core';
|
|
27
|
-
import { dlog } from '@symbiote-native/engine';
|
|
27
|
+
import { dlog, isDebug } from '@symbiote-native/engine';
|
|
28
28
|
import { countAngular } from '../../diagnostics';
|
|
29
29
|
import * as i0 from "@angular/core";
|
|
30
30
|
let vListOutletInstanceCounter = 0;
|
|
@@ -112,7 +112,8 @@ export class VListOutletDirective {
|
|
|
112
112
|
}
|
|
113
113
|
ngOnChanges(changes) {
|
|
114
114
|
if (changes['templateRef'] !== undefined) {
|
|
115
|
-
|
|
115
|
+
if (isDebug())
|
|
116
|
+
dlog(`Angular VListOutlet#${this.instanceId} templateRef CHANGED (was=${changes['templateRef'].previousValue !== undefined} now=${this.templateRef !== undefined}) -> clear + recreate`);
|
|
116
117
|
this.viewContainer.clear();
|
|
117
118
|
countAngular('outletCreates');
|
|
118
119
|
this.viewRef =
|
|
@@ -123,14 +124,16 @@ export class VListOutletDirective {
|
|
|
123
124
|
}
|
|
124
125
|
if (this.viewRef !== null && this.context !== undefined) {
|
|
125
126
|
countAngular('outletUpdates');
|
|
126
|
-
|
|
127
|
+
if (isDebug())
|
|
128
|
+
dlog(`Angular VListOutlet#${this.instanceId} context updated, markForCheck`);
|
|
127
129
|
this.updateContext(this.viewRef.context, this.context);
|
|
128
130
|
this.viewRef.markForCheck();
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
133
|
ngOnDestroy() {
|
|
132
134
|
countAngular('outletDestroys');
|
|
133
|
-
|
|
135
|
+
if (isDebug())
|
|
136
|
+
dlog(`Angular VListOutlet#${this.instanceId} destroyed`);
|
|
134
137
|
this.viewContainer.clear();
|
|
135
138
|
}
|
|
136
139
|
// Copy the new context's fields onto the live embedded view's context object (whose identity the
|