@symbiote-native/angular 3.1.3 → 3.3.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/babel-register-composed.cjs +1 -0
- package/build/angular/accessibility-events.d.ts +12 -0
- package/build/angular/accessibility-events.js +28 -0
- package/build/angular/accessibility-events.js.map +1 -0
- package/build/angular/accessibility-inputs.d.ts +40 -0
- package/build/angular/accessibility-inputs.js +130 -0
- package/build/angular/accessibility-inputs.js.map +1 -0
- package/build/angular/bootstrap.d.ts +3 -1
- package/build/angular/bootstrap.js +4 -1
- package/build/angular/bootstrap.js.map +1 -1
- package/build/angular/components/checkbox-props.d.ts +2 -0
- package/build/angular/components/checkbox-props.js +2 -0
- package/build/angular/components/checkbox-props.js.map +1 -0
- package/build/angular/components/flat-list/flat-list-template.d.ts +1 -0
- package/build/angular/components/flat-list/flat-list-template.js +158 -0
- package/build/angular/components/flat-list/flat-list-template.js.map +1 -0
- package/build/angular/components/flat-list/index.d.ts +6 -61
- package/build/angular/components/flat-list/index.js +26 -463
- package/build/angular/components/flat-list/index.js.map +1 -1
- package/build/angular/components/keyboard-avoiding-view/index.d.ts +4 -40
- package/build/angular/components/keyboard-avoiding-view/index.js +7 -131
- package/build/angular/components/keyboard-avoiding-view/index.js.map +1 -1
- package/build/angular/components/modal/index.d.ts +5 -41
- package/build/angular/components/modal/index.js +8 -133
- package/build/angular/components/modal/index.js.map +1 -1
- package/build/angular/components/section-list/index.d.ts +4 -51
- package/build/angular/components/section-list/index.js +18 -335
- package/build/angular/components/section-list/index.js.map +1 -1
- package/build/angular/components/virtualized-list/cell-registry.d.ts +35 -0
- package/build/angular/components/virtualized-list/cell-registry.js +133 -0
- package/build/angular/components/virtualized-list/cell-registry.js.map +1 -0
- package/build/angular/components/virtualized-list/index.d.ts +18 -253
- package/build/angular/components/virtualized-list/index.js +112 -1178
- package/build/angular/components/virtualized-list/index.js.map +1 -1
- package/build/angular/components/virtualized-list/list-a11y-forward.d.ts +1 -0
- package/build/angular/components/virtualized-list/list-a11y-forward.js +42 -0
- package/build/angular/components/virtualized-list/list-a11y-forward.js.map +1 -0
- package/build/angular/components/virtualized-list/list-bags.d.ts +32 -0
- package/build/angular/components/virtualized-list/list-bags.js +120 -0
- package/build/angular/components/virtualized-list/list-bags.js.map +1 -0
- package/build/angular/components/virtualized-list/list-effects.d.ts +31 -0
- package/build/angular/components/virtualized-list/list-effects.js +83 -0
- package/build/angular/components/virtualized-list/list-effects.js.map +1 -0
- package/build/angular/components/virtualized-list/list-events.d.ts +17 -0
- package/build/angular/components/virtualized-list/list-events.js +34 -0
- package/build/angular/components/virtualized-list/list-events.js.map +1 -0
- package/build/angular/components/virtualized-list/list-handle.d.ts +35 -0
- package/build/angular/components/virtualized-list/list-handle.js +61 -0
- package/build/angular/components/virtualized-list/list-handle.js.map +1 -0
- package/build/angular/components/virtualized-list/list-inputs.d.ts +78 -0
- package/build/angular/components/virtualized-list/list-inputs.js +150 -0
- package/build/angular/components/virtualized-list/list-inputs.js.map +1 -0
- package/build/angular/components/virtualized-list/list-props.d.ts +58 -0
- package/build/angular/components/virtualized-list/list-props.js +3 -0
- package/build/angular/components/virtualized-list/list-props.js.map +1 -0
- package/build/angular/components/virtualized-list/list-styles.d.ts +23 -0
- package/build/angular/components/virtualized-list/list-styles.js +26 -0
- package/build/angular/components/virtualized-list/list-styles.js.map +1 -0
- package/build/angular/components/virtualized-list/list-template.d.ts +1 -0
- package/build/angular/components/virtualized-list/list-template.js +176 -0
- package/build/angular/components/virtualized-list/list-template.js.map +1 -0
- package/build/angular/components/virtualized-section-list/index.d.ts +13 -70
- package/build/angular/components/virtualized-section-list/index.js +22 -455
- package/build/angular/components/virtualized-section-list/index.js.map +1 -1
- package/build/angular/components/virtualized-section-list/section-list-template.d.ts +1 -0
- package/build/angular/components/virtualized-section-list/section-list-template.js +107 -0
- package/build/angular/components/virtualized-section-list/section-list-template.js.map +1 -0
- package/build/angular/components.d.ts +1 -0
- package/build/angular/components.js.map +1 -1
- package/build/angular/descriptor-to-angular/descriptor-host.d.ts +8 -0
- package/build/angular/descriptor-to-angular/descriptor-host.js +38 -0
- package/build/angular/descriptor-to-angular/descriptor-host.js.map +1 -0
- package/build/angular/descriptor-to-angular/index.d.ts +1 -0
- package/build/angular/descriptor-to-angular/index.js +4 -0
- package/build/angular/descriptor-to-angular/index.js.map +1 -1
- package/build/angular/element-base.d.ts +153 -0
- package/build/angular/element-base.js +272 -0
- package/build/angular/element-base.js.map +1 -0
- package/build/angular/elements-controls.d.ts +165 -0
- package/build/angular/elements-controls.js +382 -0
- package/build/angular/elements-controls.js.map +1 -0
- package/build/angular/elements-layout.d.ts +122 -0
- package/build/angular/elements-layout.js +242 -0
- package/build/angular/elements-layout.js.map +1 -0
- package/build/angular/elements-press.d.ts +96 -0
- package/build/angular/elements-press.js +227 -0
- package/build/angular/elements-press.js.map +1 -0
- package/build/angular/elements.d.ts +6 -516
- package/build/angular/elements.js +8 -1091
- package/build/angular/elements.js.map +1 -1
- package/build/angular/finalization-registry.d.ts +4 -0
- package/build/angular/finalization-registry.js +17 -0
- package/build/angular/finalization-registry.js.map +1 -0
- package/build/angular/host-instance/index.d.ts +2 -0
- package/build/angular/host-instance/index.js +4 -4
- package/build/angular/host-instance/index.js.map +1 -1
- package/build/angular/index.d.ts +9 -4
- package/build/angular/index.js +8 -3
- package/build/angular/index.js.map +1 -1
- package/build/angular/native-view-base.d.ts +27 -0
- package/build/angular/native-view-base.js +69 -0
- package/build/angular/native-view-base.js.map +1 -0
- package/build/angular/render/index.d.ts +2 -1
- package/build/angular/render/index.js +46 -73
- package/build/angular/render/index.js.map +1 -1
- package/build/angular/services/connect-watched-signal.d.ts +2 -0
- package/build/angular/services/connect-watched-signal.js +9 -0
- package/build/angular/services/connect-watched-signal.js.map +1 -0
- package/build/angular/services/create-event-value-hook.d.ts +3 -0
- package/build/angular/services/create-event-value-hook.js +17 -0
- package/build/angular/services/create-event-value-hook.js.map +1 -0
- package/build/angular/services/create-resource-hook.d.ts +7 -0
- package/build/angular/services/create-resource-hook.js +20 -0
- package/build/angular/services/create-resource-hook.js.map +1 -0
- package/build/angular/services/index.d.ts +5 -0
- package/build/angular/services/index.js +5 -0
- package/build/angular/services/index.js.map +1 -1
- package/build/angular/services/inject-event.d.ts +6 -0
- package/build/angular/services/inject-event.js +24 -0
- package/build/angular/services/inject-event.js.map +1 -0
- package/build/angular/services/permissions-service-base.d.ts +14 -0
- package/build/angular/services/permissions-service-base.js +38 -0
- package/build/angular/services/permissions-service-base.js.map +1 -0
- package/package.json +6 -6
- package/src/accessibility-events.ts +13 -0
- package/src/accessibility-inputs.ts +89 -0
- package/src/bootstrap.ts +6 -2
- package/src/components/checkbox-props.ts +12 -0
- package/src/components/flat-list/flat-list-template.ts +159 -0
- package/src/components/flat-list/index.ts +30 -307
- package/src/components/keyboard-avoiding-view/index.ts +4 -78
- package/src/components/modal/index.ts +7 -80
- package/src/components/section-list/index.ts +21 -172
- package/src/components/virtualized-list/cell-registry.ts +199 -0
- package/src/components/virtualized-list/index.ts +145 -1181
- package/src/components/virtualized-list/list-a11y-forward.ts +42 -0
- package/src/components/virtualized-list/list-bags.ts +142 -0
- package/src/components/virtualized-list/list-effects.ts +116 -0
- package/src/components/virtualized-list/list-events.ts +31 -0
- package/src/components/virtualized-list/list-handle.ts +92 -0
- package/src/components/virtualized-list/list-inputs.ts +149 -0
- package/src/components/virtualized-list/list-props.ts +81 -0
- package/src/components/virtualized-list/list-styles.ts +62 -0
- package/src/components/virtualized-list/list-template.ts +175 -0
- package/src/components/virtualized-section-list/index.ts +40 -351
- package/src/components/virtualized-section-list/section-list-template.ts +108 -0
- package/src/components.ts +1 -0
- package/src/descriptor-to-angular/descriptor-host.ts +27 -0
- package/src/descriptor-to-angular/index.ts +5 -0
- package/src/element-base.ts +272 -0
- package/src/elements-controls.ts +282 -0
- package/src/elements-layout.ts +141 -0
- package/src/elements-press.ts +145 -0
- package/src/elements.ts +73 -788
- package/src/finalization-registry.ts +18 -0
- package/src/host-instance/index.ts +4 -4
- package/src/index.ts +18 -2
- package/src/native-view-base.ts +86 -0
- package/src/render/index.ts +76 -77
- package/src/services/connect-watched-signal.ts +15 -0
- package/src/services/create-event-value-hook.ts +24 -0
- package/src/services/create-resource-hook.ts +32 -0
- package/src/services/index.ts +5 -0
- package/src/services/inject-event.ts +52 -0
- package/src/services/permissions-service-base.ts +46 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/virtualized-section-list/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/virtualized-section-list/index.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,gGAAgG;AAChG,yEAAyE;AAEzE,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,KAAK,EACL,SAAS,EACT,MAAM,GAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,2BAA2B,EAC3B,yBAAyB,EACzB,eAAe,EACf,eAAe,GAQhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,IAAI,GAKL,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,GAG3B,MAAM,cAAc,CAAC;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eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE,iCAAiC;iBAC5C;;sBAQE,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;sBACxB,KAAK;;sBACL,KAAK;;sBAIL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAGL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBACL,KAAK;;sBAIL,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,YAAY;uBAAC,qBAAqB;;sBAElC,YAAY;uBAAC,uBAAuB;;sBAEpC,YAAY;uBAAC,uBAAuB;;sBAEpC,YAAY;uBAAC,0BAA0B;;sBAIvC,YAAY;uBAAC,oBAAoB;;sBACjC,YAAY;uBAAC,oBAAoB;;sBACjC,YAAY;uBAAC,mBAAmB;;sBAChC,YAAY;uBAAC,uBAAuB;;sBAIpC,SAAS;uBAAC,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VIRTUALIZED_SECTION_LIST_TEMPLATE = "\n <VirtualizedList\n [data]=\"flatEntries\"\n [getItem]=\"getEntry\"\n [getItemCount]=\"getEntryCount\"\n [keyExtractor]=\"entryKeyExtractor\"\n [getItemLayout]=\"entryItemLayout\"\n [stickyHeaderIndices]=\"stickyHeaderIndices\"\n [extraData]=\"extraData\"\n [inverted]=\"inverted\"\n [refreshing]=\"refreshing\"\n [progressViewOffset]=\"progressViewOffset\"\n [refreshRequested]=\"refreshRequested ?? refresh.observed\"\n (refresh)=\"resolvedOnRefresh?.()\"\n (endReached)=\"resolvedOnEndReached?.($event)\"\n [onEndReachedThreshold]=\"onEndReachedThreshold\"\n (startReached)=\"resolvedOnStartReached?.($event)\"\n [onStartReachedThreshold]=\"onStartReachedThreshold\"\n [initialNumToRender]=\"initialNumToRender\"\n [initialScrollIndex]=\"initialScrollIndex\"\n [maxToRenderPerBatch]=\"maxToRenderPerBatch\"\n [updateCellsBatchingPeriod]=\"updateCellsBatchingPeriod\"\n [windowSize]=\"windowSize\"\n [maintainVisibleContentPosition]=\"maintainVisibleContentPosition\"\n [onScroll]=\"onScroll\"\n [onScrollBeginDrag]=\"onScrollBeginDrag\"\n [onScrollEndDrag]=\"onScrollEndDrag\"\n [onMomentumScrollBegin]=\"onMomentumScrollBegin\"\n [onMomentumScrollEnd]=\"onMomentumScrollEnd\"\n [scrollEventThrottle]=\"scrollEventThrottle\"\n [keyboardShouldPersistTaps]=\"keyboardShouldPersistTaps\"\n [keyboardDismissMode]=\"keyboardDismissMode\"\n [removeClippedSubviews]=\"removeClippedSubviews\"\n [nestedScrollEnabled]=\"nestedScrollEnabled\"\n [style]=\"resolvedStyle\"\n [contentContainerStyle]=\"contentContainerStyle\"\n [testID]=\"testID\"\n [nativeID]=\"nativeID\"\n \n [accessible]=\"accessible\"\n [accessibilityLabel]=\"accessibilityLabel\"\n [accessibilityHint]=\"accessibilityHint\"\n [accessibilityRole]=\"accessibilityRole\"\n [accessibilityState]=\"accessibilityState\"\n [accessibilityValue]=\"accessibilityValue\"\n [accessibilityActions]=\"accessibilityActions\"\n [accessibilityLabelledBy]=\"accessibilityLabelledBy\"\n [importantForAccessibility]=\"importantForAccessibility\"\n [accessibilityLiveRegion]=\"accessibilityLiveRegion\"\n [screenReaderFocusable]=\"screenReaderFocusable\"\n [accessibilityViewIsModal]=\"accessibilityViewIsModal\"\n [accessibilityElementsHidden]=\"accessibilityElementsHidden\"\n [accessibilityIgnoresInvertColors]=\"accessibilityIgnoresInvertColors\"\n [accessibilityLanguage]=\"accessibilityLanguage\"\n [accessibilityRespondsToUserInteraction]=\"accessibilityRespondsToUserInteraction\"\n [accessibilityShowsLargeContentViewer]=\"accessibilityShowsLargeContentViewer\"\n [accessibilityLargeContentTitle]=\"accessibilityLargeContentTitle\"\n (accessibilityAction)=\"accessibilityAction.emit($event)\"\n (accessibilityTap)=\"accessibilityTap.emit($event)\"\n (magicTap)=\"magicTap.emit($event)\"\n (accessibilityEscape)=\"accessibilityEscape.emit($event)\"\n [role]=\"role\"\n [aria-label]=\"ariaLabel\"\n [aria-labelledby]=\"ariaLabelledBy\"\n [aria-live]=\"ariaLive\"\n [aria-hidden]=\"ariaHidden\"\n [aria-busy]=\"ariaBusy\"\n [aria-checked]=\"ariaChecked\"\n [aria-disabled]=\"ariaDisabled\"\n [aria-expanded]=\"ariaExpanded\"\n [aria-selected]=\"ariaSelected\"\n [aria-modal]=\"ariaModal\"\n [aria-valuemax]=\"ariaValueMax\"\n [aria-valuemin]=\"ariaValueMin\"\n [aria-valuenow]=\"ariaValueNow\"\n [aria-valuetext]=\"ariaValueText\"\n\n >\n <!-- The single synthesized cell template: dispatch per flattened entry tag -->\n <ng-template vListItem let-entry let-separators=\"separators\">\n @switch (entryKind(entry)) {\n @case ('header') {\n <ng-container\n [vListOutlet]=\"sectionHeaderDir?.templateRef\"\n [vListOutletContext]=\"sectionContextOf(entry)\"\n ></ng-container>\n }\n @case ('footer') {\n <ng-container\n [vListOutlet]=\"sectionFooterDir?.templateRef\"\n [vListOutletContext]=\"sectionContextOf(entry)\"\n ></ng-container>\n }\n @case ('section-separator') {\n <ng-container\n [vListOutlet]=\"sectionSeparatorDir?.templateRef\"\n ></ng-container>\n }\n @case ('item') {\n <ng-container\n [vListOutlet]=\"sectionItemDir?.templateRef\"\n [vListOutletContext]=\"itemContextOf(entry, separators)\"\n ></ng-container>\n }\n }\n </ng-template>\n\n <!-- List-level slots: forward the app's directives to the inner list -->\n @if (listHeaderDir !== undefined) {\n <ng-template vListHeader>\n <ng-container [vListOutlet]=\"listHeaderDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (listFooterDir !== undefined) {\n <ng-template vListFooter>\n <ng-container [vListOutlet]=\"listFooterDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (listEmptyDir !== undefined) {\n <ng-template vListEmpty>\n <ng-container [vListOutlet]=\"listEmptyDir.templateRef\"></ng-container>\n </ng-template>\n }\n <!-- Item separator: unwrap each flattened entry back to its item -->\n @if (itemSeparatorDir !== undefined) {\n <ng-template\n vListSeparator\n let-highlighted\n let-leadingItem=\"leadingItem\"\n let-trailingItem=\"trailingItem\"\n >\n <ng-container\n [vListOutlet]=\"itemSeparatorDir.templateRef\"\n [vListOutletContext]=\"\n itemSeparatorContextOf(highlighted, leadingItem, trailingItem)\n \"\n ></ng-container>\n </ng-template>\n }\n </VirtualizedList>\n";
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// One synthesized `vListItem` template switches on the flattened entry kind and stamps the matching
|
|
2
|
+
// app template, since the inner list renders every cell through a single one
|
|
3
|
+
import { LIST_ACCESSIBILITY_FORWARD } from '../virtualized-list/list-a11y-forward';
|
|
4
|
+
export const VIRTUALIZED_SECTION_LIST_TEMPLATE = `
|
|
5
|
+
<VirtualizedList
|
|
6
|
+
[data]="flatEntries"
|
|
7
|
+
[getItem]="getEntry"
|
|
8
|
+
[getItemCount]="getEntryCount"
|
|
9
|
+
[keyExtractor]="entryKeyExtractor"
|
|
10
|
+
[getItemLayout]="entryItemLayout"
|
|
11
|
+
[stickyHeaderIndices]="stickyHeaderIndices"
|
|
12
|
+
[extraData]="extraData"
|
|
13
|
+
[inverted]="inverted"
|
|
14
|
+
[refreshing]="refreshing"
|
|
15
|
+
[progressViewOffset]="progressViewOffset"
|
|
16
|
+
[refreshRequested]="refreshRequested ?? refresh.observed"
|
|
17
|
+
(refresh)="resolvedOnRefresh?.()"
|
|
18
|
+
(endReached)="resolvedOnEndReached?.($event)"
|
|
19
|
+
[onEndReachedThreshold]="onEndReachedThreshold"
|
|
20
|
+
(startReached)="resolvedOnStartReached?.($event)"
|
|
21
|
+
[onStartReachedThreshold]="onStartReachedThreshold"
|
|
22
|
+
[initialNumToRender]="initialNumToRender"
|
|
23
|
+
[initialScrollIndex]="initialScrollIndex"
|
|
24
|
+
[maxToRenderPerBatch]="maxToRenderPerBatch"
|
|
25
|
+
[updateCellsBatchingPeriod]="updateCellsBatchingPeriod"
|
|
26
|
+
[windowSize]="windowSize"
|
|
27
|
+
[maintainVisibleContentPosition]="maintainVisibleContentPosition"
|
|
28
|
+
[onScroll]="onScroll"
|
|
29
|
+
[onScrollBeginDrag]="onScrollBeginDrag"
|
|
30
|
+
[onScrollEndDrag]="onScrollEndDrag"
|
|
31
|
+
[onMomentumScrollBegin]="onMomentumScrollBegin"
|
|
32
|
+
[onMomentumScrollEnd]="onMomentumScrollEnd"
|
|
33
|
+
[scrollEventThrottle]="scrollEventThrottle"
|
|
34
|
+
[keyboardShouldPersistTaps]="keyboardShouldPersistTaps"
|
|
35
|
+
[keyboardDismissMode]="keyboardDismissMode"
|
|
36
|
+
[removeClippedSubviews]="removeClippedSubviews"
|
|
37
|
+
[nestedScrollEnabled]="nestedScrollEnabled"
|
|
38
|
+
[style]="resolvedStyle"
|
|
39
|
+
[contentContainerStyle]="contentContainerStyle"
|
|
40
|
+
[testID]="testID"
|
|
41
|
+
[nativeID]="nativeID"
|
|
42
|
+
${LIST_ACCESSIBILITY_FORWARD}
|
|
43
|
+
>
|
|
44
|
+
<!-- The single synthesized cell template: dispatch per flattened entry tag -->
|
|
45
|
+
<ng-template vListItem let-entry let-separators="separators">
|
|
46
|
+
@switch (entryKind(entry)) {
|
|
47
|
+
@case ('header') {
|
|
48
|
+
<ng-container
|
|
49
|
+
[vListOutlet]="sectionHeaderDir?.templateRef"
|
|
50
|
+
[vListOutletContext]="sectionContextOf(entry)"
|
|
51
|
+
></ng-container>
|
|
52
|
+
}
|
|
53
|
+
@case ('footer') {
|
|
54
|
+
<ng-container
|
|
55
|
+
[vListOutlet]="sectionFooterDir?.templateRef"
|
|
56
|
+
[vListOutletContext]="sectionContextOf(entry)"
|
|
57
|
+
></ng-container>
|
|
58
|
+
}
|
|
59
|
+
@case ('section-separator') {
|
|
60
|
+
<ng-container
|
|
61
|
+
[vListOutlet]="sectionSeparatorDir?.templateRef"
|
|
62
|
+
></ng-container>
|
|
63
|
+
}
|
|
64
|
+
@case ('item') {
|
|
65
|
+
<ng-container
|
|
66
|
+
[vListOutlet]="sectionItemDir?.templateRef"
|
|
67
|
+
[vListOutletContext]="itemContextOf(entry, separators)"
|
|
68
|
+
></ng-container>
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</ng-template>
|
|
72
|
+
|
|
73
|
+
<!-- List-level slots: forward the app's directives to the inner list -->
|
|
74
|
+
@if (listHeaderDir !== undefined) {
|
|
75
|
+
<ng-template vListHeader>
|
|
76
|
+
<ng-container [vListOutlet]="listHeaderDir.templateRef"></ng-container>
|
|
77
|
+
</ng-template>
|
|
78
|
+
}
|
|
79
|
+
@if (listFooterDir !== undefined) {
|
|
80
|
+
<ng-template vListFooter>
|
|
81
|
+
<ng-container [vListOutlet]="listFooterDir.templateRef"></ng-container>
|
|
82
|
+
</ng-template>
|
|
83
|
+
}
|
|
84
|
+
@if (listEmptyDir !== undefined) {
|
|
85
|
+
<ng-template vListEmpty>
|
|
86
|
+
<ng-container [vListOutlet]="listEmptyDir.templateRef"></ng-container>
|
|
87
|
+
</ng-template>
|
|
88
|
+
}
|
|
89
|
+
<!-- Item separator: unwrap each flattened entry back to its item -->
|
|
90
|
+
@if (itemSeparatorDir !== undefined) {
|
|
91
|
+
<ng-template
|
|
92
|
+
vListSeparator
|
|
93
|
+
let-highlighted
|
|
94
|
+
let-leadingItem="leadingItem"
|
|
95
|
+
let-trailingItem="trailingItem"
|
|
96
|
+
>
|
|
97
|
+
<ng-container
|
|
98
|
+
[vListOutlet]="itemSeparatorDir.templateRef"
|
|
99
|
+
[vListOutletContext]="
|
|
100
|
+
itemSeparatorContextOf(highlighted, leadingItem, trailingItem)
|
|
101
|
+
"
|
|
102
|
+
></ng-container>
|
|
103
|
+
</ng-template>
|
|
104
|
+
}
|
|
105
|
+
</VirtualizedList>
|
|
106
|
+
`;
|
|
107
|
+
//# sourceMappingURL=section-list-template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section-list-template.js","sourceRoot":"","sources":["../../../../src/components/virtualized-section-list/section-list-template.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,6EAA6E;AAE7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,MAAM,CAAC,MAAM,iCAAiC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsC3C,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgE/B,CAAC"}
|
|
@@ -22,6 +22,7 @@ export type { IAngularTouchableHighlightProps, IAngularTouchableOpacityProps, }
|
|
|
22
22
|
export type { IAngularTouchableWithoutFeedbackProps } from './components/touchable-without-feedback/touchable-without-feedback-props';
|
|
23
23
|
export type { IAngularScrollViewProps, IScrollViewHandle, } from './components/scroll-view-props';
|
|
24
24
|
export type { IButtonProps } from './components/button-props';
|
|
25
|
+
export type { ICheckboxProps } from './components/checkbox-props';
|
|
25
26
|
export { VirtualizedList, VListEmptyDirective, VListFooterDirective, VListHeaderDirective, VListItemDirective, VListSeparatorDirective, } from './components/virtualized-list';
|
|
26
27
|
export type { ICellLayout, ISeparatorProps, ISeparators, IViewabilityConfig, IViewabilityConfigCallbackPair, IViewableItemsChangedInfo, IViewToken, IVirtualizedListHandle, IVirtualizedListProps, IVListItemContext, IVListSeparatorContext, } from './components/virtualized-list';
|
|
27
28
|
export { FlatList } from './components/flat-list';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/components.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,gGAAgG;AAChG,+FAA+F;A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AAQ/C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAMxD,+FAA+F;AAC/F,OAAO,EACL,QAAQ,EACR,QAAQ,IAAI,IAAI,EAChB,QAAQ,EACR,QAAQ,IAAI,IAAI,EAChB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,EACb,sBAAsB,EACtB,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACT,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B;AAC1B,+FAA+F;AAC/F,8FAA8F;AAC9F,iGAAiG;AACjG,MAAM;AACN,2BAA2B;AAC3B,oGAAoG;AACpG,+FAA+F;AAC/F,6FAA6F;AAC7F,eAAe;AACf,4FAA4F;AAC5F,0FAA0F;AAC1F,oDAAoD;AACpD,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B,sFAAsF;AACtF,wFAAwF;AACxF,4CAA4C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDescriptor } from '@symbiote-native/components';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DescriptorHost {
|
|
4
|
+
node: IDescriptor;
|
|
5
|
+
leafOf(descriptor: IDescriptor): IDescriptor | undefined;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DescriptorHost, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DescriptorHost, "symbiote-descriptor-host", never, { "node": { "alias": "node"; "required": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { SymbioteHostPropsDirective, ViewHost } from '../primitives';
|
|
3
|
+
import { DescriptorOutlet } from './index';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
// Angular cannot project content into a node a Renderer2 loop built, so the root is a template
|
|
6
|
+
// `<view>` that takes the descriptor's props, and only the native leaf goes through the outlet
|
|
7
|
+
export class DescriptorHost {
|
|
8
|
+
// A native wrapper descriptor carries one own child at most, its absolute-fill native leaf
|
|
9
|
+
leafOf(descriptor) {
|
|
10
|
+
return descriptor.children.find(child => typeof child !== 'string');
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DescriptorHost, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: DescriptorHost, isStandalone: true, selector: "symbiote-descriptor-host", inputs: { node: "node" }, ngImport: i0, template: `<view [symbioteHostProps]="node.props">
|
|
14
|
+
@if (leafOf(node); as leaf) {
|
|
15
|
+
<symbiote-descriptor-outlet [node]="leaf" />
|
|
16
|
+
}
|
|
17
|
+
<ng-content />
|
|
18
|
+
</view>`, isInline: true, dependencies: [{ kind: "component", type: DescriptorOutlet, selector: "symbiote-descriptor-outlet", inputs: ["node"] }, { kind: "directive", type: SymbioteHostPropsDirective, selector: "[symbioteHostProps]", inputs: ["symbioteHostProps"], exportAs: ["symbioteHost"] }, { kind: "component", type: ViewHost, selector: "view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DescriptorHost, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{
|
|
23
|
+
selector: 'symbiote-descriptor-host',
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [DescriptorOutlet, SymbioteHostPropsDirective, ViewHost],
|
|
26
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
|
+
template: `<view [symbioteHostProps]="node.props">
|
|
28
|
+
@if (leafOf(node); as leaf) {
|
|
29
|
+
<symbiote-descriptor-outlet [node]="leaf" />
|
|
30
|
+
}
|
|
31
|
+
<ng-content />
|
|
32
|
+
</view>`,
|
|
33
|
+
}]
|
|
34
|
+
}], propDecorators: { node: [{
|
|
35
|
+
type: Input,
|
|
36
|
+
args: [{ required: true }]
|
|
37
|
+
}] } });
|
|
38
|
+
//# sourceMappingURL=descriptor-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptor-host.js","sourceRoot":"","sources":["../../../src/descriptor-to-angular/descriptor-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,EAAE,0BAA0B,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;;AAE3C,+FAA+F;AAC/F,+FAA+F;AAa/F,MAAM,OAAO,cAAc;IAGzB,2FAA2F;IAC3F,MAAM,CAAC,UAAuB;QAC5B,OAAO,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC;IACtE,CAAC;8GANU,cAAc;kGAAd,cAAc,8GAPf;;;;;UAKF,4DAPE,gBAAgB,yFAAE,0BAA0B,2HAAE,QAAQ;;2FASrD,cAAc;kBAZ1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,gBAAgB,EAAE,0BAA0B,EAAE,QAAQ,CAAC;oBACjE,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;UAKF;iBACT;;sBAEE,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE"}
|
|
@@ -6,6 +6,7 @@ export declare class DescriptorOutlet implements OnChanges, OnDestroy {
|
|
|
6
6
|
private readonly renderer;
|
|
7
7
|
private readonly hostNode;
|
|
8
8
|
private rendered;
|
|
9
|
+
get rootNode(): unknown;
|
|
9
10
|
ngOnChanges(changes: SimpleChanges): void;
|
|
10
11
|
ngOnDestroy(): void;
|
|
11
12
|
private patchRoot;
|
|
@@ -10,6 +10,10 @@ export class DescriptorOutlet {
|
|
|
10
10
|
this.renderer = inject(Renderer2);
|
|
11
11
|
this.hostNode = inject(ElementRef).nativeElement;
|
|
12
12
|
}
|
|
13
|
+
// The host node of the root element, for a component that calls a function of its native view
|
|
14
|
+
get rootNode() {
|
|
15
|
+
return this.rendered?.node ?? null;
|
|
16
|
+
}
|
|
13
17
|
ngOnChanges(changes) {
|
|
14
18
|
if (!('node' in changes) || this.node === undefined)
|
|
15
19
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/descriptor-to-angular/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,4FAA4F;AAC5F,6FAA6F;AAC7F,+FAA+F;AAC/F,oCAAoC;AAEpC,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,GAIV,MAAM,eAAe,CAAC;;AA4BvB,MAAM,OAAO,gBAAgB;IAN7B;QASmB,aAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAC7B,aAAQ,GACvB,MAAM,CAAsB,UAAU,CAAC,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/descriptor-to-angular/index.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,4FAA4F;AAC5F,6FAA6F;AAC7F,+FAA+F;AAC/F,oCAAoC;AAEpC,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,GAIV,MAAM,eAAe,CAAC;;AA4BvB,MAAM,OAAO,gBAAgB;IAN7B;QASmB,aAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;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AE;;2FAGD,gBAAgB;kBAN5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,4BAA4B;oBACtC,UAAU,EAAE,IAAI;oBAChB,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;sBAEE,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;AA2K3B,SAAS,WAAW,CAAC,IAAiB,EAAE,IAAiB;IACvD,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import type { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
+
import type { IElementProps } from './element-props';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* The shared half of every element directive: the prop surface all tags accept, and the ONE
|
|
7
|
+
* generic forward that puts a claimed binding back on the engine node.
|
|
8
|
+
*
|
|
9
|
+
* The forward is the deciding fact of this whole route. A binding claimed by a directive input
|
|
10
|
+
* never reaches `Renderer2.setProperty` on its own — Angular writes it to the directive instance
|
|
11
|
+
* — so without this loop a bare tag commits nothing at all. It stays generic on purpose: per-prop
|
|
12
|
+
* forwarding code is a component wrapper by another name, which is what this migration removes.
|
|
13
|
+
* `renderer.setProperty` lands in the adapter's own renderer, which routes the value through the
|
|
14
|
+
* engine's `routeProp` and applies the `id` -> `nativeID` alias.
|
|
15
|
+
*/
|
|
16
|
+
export declare abstract class SymbioteElement implements OnChanges {
|
|
17
|
+
private readonly renderer;
|
|
18
|
+
protected readonly host: ElementRef<any>;
|
|
19
|
+
testID?: IElementProps['testID'];
|
|
20
|
+
nativeID?: IElementProps['nativeID'];
|
|
21
|
+
id?: IElementProps['id'];
|
|
22
|
+
accessible?: IElementProps['accessible'];
|
|
23
|
+
accessibilityLabel?: IElementProps['accessibilityLabel'];
|
|
24
|
+
accessibilityHint?: IElementProps['accessibilityHint'];
|
|
25
|
+
accessibilityRole?: IElementProps['accessibilityRole'];
|
|
26
|
+
accessibilityState?: IElementProps['accessibilityState'];
|
|
27
|
+
accessibilityValue?: IElementProps['accessibilityValue'];
|
|
28
|
+
accessibilityActions?: IElementProps['accessibilityActions'];
|
|
29
|
+
accessibilityLabelledBy?: IElementProps['accessibilityLabelledBy'];
|
|
30
|
+
importantForAccessibility?: IElementProps['importantForAccessibility'];
|
|
31
|
+
accessibilityLiveRegion?: IElementProps['accessibilityLiveRegion'];
|
|
32
|
+
screenReaderFocusable?: IElementProps['screenReaderFocusable'];
|
|
33
|
+
accessibilityViewIsModal?: IElementProps['accessibilityViewIsModal'];
|
|
34
|
+
accessibilityElementsHidden?: IElementProps['accessibilityElementsHidden'];
|
|
35
|
+
accessibilityIgnoresInvertColors?: IElementProps['accessibilityIgnoresInvertColors'];
|
|
36
|
+
accessibilityLanguage?: IElementProps['accessibilityLanguage'];
|
|
37
|
+
accessibilityRespondsToUserInteraction?: IElementProps['accessibilityRespondsToUserInteraction'];
|
|
38
|
+
accessibilityShowsLargeContentViewer?: IElementProps['accessibilityShowsLargeContentViewer'];
|
|
39
|
+
accessibilityLargeContentTitle?: IElementProps['accessibilityLargeContentTitle'];
|
|
40
|
+
onAccessibilityAction?: IElementProps['onAccessibilityAction'];
|
|
41
|
+
onAccessibilityTap?: IElementProps['onAccessibilityTap'];
|
|
42
|
+
onMagicTap?: IElementProps['onMagicTap'];
|
|
43
|
+
onAccessibilityEscape?: IElementProps['onAccessibilityEscape'];
|
|
44
|
+
role?: IElementProps['role'];
|
|
45
|
+
'aria-label'?: IElementProps['aria-label'];
|
|
46
|
+
'aria-labelledby'?: IElementProps['aria-labelledby'];
|
|
47
|
+
'aria-live'?: IElementProps['aria-live'];
|
|
48
|
+
'aria-hidden'?: IElementProps['aria-hidden'];
|
|
49
|
+
'aria-busy'?: IElementProps['aria-busy'];
|
|
50
|
+
'aria-checked'?: IElementProps['aria-checked'];
|
|
51
|
+
'aria-disabled'?: IElementProps['aria-disabled'];
|
|
52
|
+
'aria-expanded'?: IElementProps['aria-expanded'];
|
|
53
|
+
'aria-selected'?: IElementProps['aria-selected'];
|
|
54
|
+
'aria-modal'?: IElementProps['aria-modal'];
|
|
55
|
+
'aria-valuemax'?: IElementProps['aria-valuemax'];
|
|
56
|
+
'aria-valuemin'?: IElementProps['aria-valuemin'];
|
|
57
|
+
'aria-valuenow'?: IElementProps['aria-valuenow'];
|
|
58
|
+
'aria-valuetext'?: IElementProps['aria-valuetext'];
|
|
59
|
+
onStartShouldSetResponder?: IElementProps['onStartShouldSetResponder'];
|
|
60
|
+
onStartShouldSetResponderCapture?: IElementProps['onStartShouldSetResponderCapture'];
|
|
61
|
+
onMoveShouldSetResponder?: IElementProps['onMoveShouldSetResponder'];
|
|
62
|
+
onMoveShouldSetResponderCapture?: IElementProps['onMoveShouldSetResponderCapture'];
|
|
63
|
+
onResponderGrant?: IElementProps['onResponderGrant'];
|
|
64
|
+
onResponderReject?: IElementProps['onResponderReject'];
|
|
65
|
+
onResponderStart?: IElementProps['onResponderStart'];
|
|
66
|
+
onResponderMove?: IElementProps['onResponderMove'];
|
|
67
|
+
onResponderEnd?: IElementProps['onResponderEnd'];
|
|
68
|
+
onResponderRelease?: IElementProps['onResponderRelease'];
|
|
69
|
+
onResponderTerminate?: IElementProps['onResponderTerminate'];
|
|
70
|
+
onResponderTerminationRequest?: IElementProps['onResponderTerminationRequest'];
|
|
71
|
+
pointerEvents?: IElementProps['pointerEvents'];
|
|
72
|
+
hitSlop?: IElementProps['hitSlop'];
|
|
73
|
+
focusable?: IElementProps['focusable'];
|
|
74
|
+
collapsable?: IElementProps['collapsable'];
|
|
75
|
+
removeClippedSubviews?: IElementProps['removeClippedSubviews'];
|
|
76
|
+
renderToHardwareTextureAndroid?: IElementProps['renderToHardwareTextureAndroid'];
|
|
77
|
+
shouldRasterizeIOS?: IElementProps['shouldRasterizeIOS'];
|
|
78
|
+
needsOffscreenAlphaCompositing?: IElementProps['needsOffscreenAlphaCompositing'];
|
|
79
|
+
style?: IElementProps['style'];
|
|
80
|
+
styleProp?: IElementProps['styleProp'];
|
|
81
|
+
class?: string;
|
|
82
|
+
onPress?: IElementProps['onPress'];
|
|
83
|
+
onPressIn?: IElementProps['onPressIn'];
|
|
84
|
+
onPressOut?: IElementProps['onPressOut'];
|
|
85
|
+
onPressMove?: IElementProps['onPressMove'];
|
|
86
|
+
onLongPress?: IElementProps['onLongPress'];
|
|
87
|
+
onLayout?: IElementProps['onLayout'];
|
|
88
|
+
onFocus?: IElementProps['onFocus'];
|
|
89
|
+
onBlur?: IElementProps['onBlur'];
|
|
90
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SymbioteElement, never>;
|
|
92
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SymbioteElement, never, never, { "testID": { "alias": "testID"; "required": false; }; "nativeID": { "alias": "nativeID"; "required": false; }; "id": { "alias": "id"; "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; }; "onAccessibilityAction": { "alias": "onAccessibilityAction"; "required": false; }; "onAccessibilityTap": { "alias": "onAccessibilityTap"; "required": false; }; "onMagicTap": { "alias": "onMagicTap"; "required": false; }; "onAccessibilityEscape": { "alias": "onAccessibilityEscape"; "required": false; }; "role": { "alias": "role"; "required": false; }; "aria-label": { "alias": "aria-label"; "required": false; }; "aria-labelledby": { "alias": "aria-labelledby"; "required": false; }; "aria-live": { "alias": "aria-live"; "required": false; }; "aria-hidden": { "alias": "aria-hidden"; "required": false; }; "aria-busy": { "alias": "aria-busy"; "required": false; }; "aria-checked": { "alias": "aria-checked"; "required": false; }; "aria-disabled": { "alias": "aria-disabled"; "required": false; }; "aria-expanded": { "alias": "aria-expanded"; "required": false; }; "aria-selected": { "alias": "aria-selected"; "required": false; }; "aria-modal": { "alias": "aria-modal"; "required": false; }; "aria-valuemax": { "alias": "aria-valuemax"; "required": false; }; "aria-valuemin": { "alias": "aria-valuemin"; "required": false; }; "aria-valuenow": { "alias": "aria-valuenow"; "required": false; }; "aria-valuetext": { "alias": "aria-valuetext"; "required": false; }; "onStartShouldSetResponder": { "alias": "onStartShouldSetResponder"; "required": false; }; "onStartShouldSetResponderCapture": { "alias": "onStartShouldSetResponderCapture"; "required": false; }; "onMoveShouldSetResponder": { "alias": "onMoveShouldSetResponder"; "required": false; }; "onMoveShouldSetResponderCapture": { "alias": "onMoveShouldSetResponderCapture"; "required": false; }; "onResponderGrant": { "alias": "onResponderGrant"; "required": false; }; "onResponderReject": { "alias": "onResponderReject"; "required": false; }; "onResponderStart": { "alias": "onResponderStart"; "required": false; }; "onResponderMove": { "alias": "onResponderMove"; "required": false; }; "onResponderEnd": { "alias": "onResponderEnd"; "required": false; }; "onResponderRelease": { "alias": "onResponderRelease"; "required": false; }; "onResponderTerminate": { "alias": "onResponderTerminate"; "required": false; }; "onResponderTerminationRequest": { "alias": "onResponderTerminationRequest"; "required": false; }; "pointerEvents": { "alias": "pointerEvents"; "required": false; }; "hitSlop": { "alias": "hitSlop"; "required": false; }; "focusable": { "alias": "focusable"; "required": false; }; "collapsable": { "alias": "collapsable"; "required": false; }; "removeClippedSubviews": { "alias": "removeClippedSubviews"; "required": false; }; "renderToHardwareTextureAndroid": { "alias": "renderToHardwareTextureAndroid"; "required": false; }; "shouldRasterizeIOS": { "alias": "shouldRasterizeIOS"; "required": false; }; "needsOffscreenAlphaCompositing": { "alias": "needsOffscreenAlphaCompositing"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleProp": { "alias": "styleProp"; "required": false; }; "class": { "alias": "class"; "required": false; }; "onPress": { "alias": "onPress"; "required": false; }; "onPressIn": { "alias": "onPressIn"; "required": false; }; "onPressOut": { "alias": "onPressOut"; "required": false; }; "onPressMove": { "alias": "onPressMove"; "required": false; }; "onLongPress": { "alias": "onLongPress"; "required": false; }; "onLayout": { "alias": "onLayout"; "required": false; }; "onFocus": { "alias": "onFocus"; "required": false; }; "onBlur": { "alias": "onBlur"; "required": false; }; }, {}, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The base for a tag whose app callback an engine behavior READS BACK inside the same microtask
|
|
96
|
+
* turn — `<text-input>`, `<switch>`, `<refresh-control>`. Zoneless change detection is a macrotask,
|
|
97
|
+
* so without this the behavior sees the PRE-event value and undoes the user; the full mechanism,
|
|
98
|
+
* and why this is `detectChanges()` on one view rather than `ApplicationRef.tick()`, is in
|
|
99
|
+
* `./change-detection-flush`.
|
|
100
|
+
*
|
|
101
|
+
* The directive is the only thing in the adapter that owns a `ChangeDetectorRef` for the view
|
|
102
|
+
* holding the binding, so it hands one to the renderer keyed on its own node.
|
|
103
|
+
*/
|
|
104
|
+
export declare abstract class ReadBackElement extends SymbioteElement implements OnDestroy {
|
|
105
|
+
private readonly detector;
|
|
106
|
+
private readonly errorHandler;
|
|
107
|
+
constructor();
|
|
108
|
+
private flush;
|
|
109
|
+
ngOnDestroy(): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReadBackElement, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReadBackElement, never, never, {}, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The `[(value)]` half of a controlled tag — `<switch>` and `<text-input>`.
|
|
115
|
+
*
|
|
116
|
+
* The one `@Output` in this file, and it is FORCED rather than chosen. `[(value)]` desugars to
|
|
117
|
+
* `[value]` + `(valueChange)`, and ngtsc requires both halves to resolve to the SAME target: a
|
|
118
|
+
* declared `value` input beside an event no directive claims is NG8007, "the property and event
|
|
119
|
+
* halves are not bound to the same target". So the sugar this adapter documents cannot work without
|
|
120
|
+
* the output existing, whatever the file header says about events in general.
|
|
121
|
+
*
|
|
122
|
+
* The bridge below is NOT what makes the binding work today, and the comment says so because the
|
|
123
|
+
* obvious reading is wrong: the file header's "an `@Output` CONSUMES the binding" holds for a
|
|
124
|
+
* COMPONENT, and an element is the other case — Angular attaches the renderer listener for the
|
|
125
|
+
* event as well, so `Renderer2.listen` still runs and the engine still hears the change. Measured
|
|
126
|
+
* under JIT by deleting this whole hook: every case in `renderer/two-way-value.test.ts` stayed
|
|
127
|
+
* green, delivery included, and exactly ONCE (nothing double-fires when both paths exist).
|
|
128
|
+
*
|
|
129
|
+
* It is kept because the measurement is JIT-only and this adapter has a recorded case of JIT and
|
|
130
|
+
* AOT resolving a binding differently (`test-harness-false-greens.md` §21). If AOT routes the event
|
|
131
|
+
* exclusively to the output, this hook is the only thing keeping `[(value)]` alive; if it routes to
|
|
132
|
+
* both, it is one extra listener on a control an app explicitly bound. Delete it once something
|
|
133
|
+
* executes the LINKED artifact and shows the renderer listener is attached there too.
|
|
134
|
+
*
|
|
135
|
+
* Opened only when something is SUBSCRIBED: the prop's PRESENCE is what a behavior reads to decide
|
|
136
|
+
* it is controlled, so a `<switch>` given a handler nobody asked for changes how it snaps back.
|
|
137
|
+
* `.observed` is readable from `ngOnInit` because Angular subscribes outputs in the creation pass,
|
|
138
|
+
* before the update pass runs the hook — observed directly (true for the two bound tags, false for
|
|
139
|
+
* an unbound one), not assumed.
|
|
140
|
+
*/
|
|
141
|
+
export declare abstract class ValueChangeElement extends ReadBackElement implements OnInit, OnDestroy {
|
|
142
|
+
private readonly valueRenderer;
|
|
143
|
+
private readonly valueHost;
|
|
144
|
+
private unlistenValue?;
|
|
145
|
+
/** `this.valueChange.observed` — the subclass owns the emitter so its payload type stays exact. */
|
|
146
|
+
protected abstract hasValueSubscriber(): boolean;
|
|
147
|
+
/** Narrows the engine's unwrapped value to the type THIS tag emits, then emits it. */
|
|
148
|
+
protected abstract emitValue(value: unknown): void;
|
|
149
|
+
ngOnInit(): void;
|
|
150
|
+
ngOnDestroy(): void;
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueChangeElement, never>;
|
|
152
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueChangeElement, never, never, {}, {}, never, never, true, never>;
|
|
153
|
+
}
|