@symbiote-native/angular 3.3.0 → 3.5.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-inputs.d.ts +2 -1
- package/build/angular/accessibility-inputs.js +4 -1
- package/build/angular/accessibility-inputs.js.map +1 -1
- package/build/angular/callback-host.d.ts +1 -1
- package/build/angular/callback-host.js +57 -9
- package/build/angular/callback-host.js.map +1 -1
- package/build/angular/components/flat-list/flat-list-handle.d.ts +35 -0
- package/build/angular/components/flat-list/flat-list-handle.js +48 -0
- package/build/angular/components/flat-list/flat-list-handle.js.map +1 -0
- package/build/angular/components/flat-list/flat-list-template.d.ts +1 -1
- package/build/angular/components/flat-list/flat-list-template.js +16 -0
- package/build/angular/components/flat-list/flat-list-template.js.map +1 -1
- package/build/angular/components/flat-list/index.d.ts +6 -30
- package/build/angular/components/flat-list/index.js +6 -36
- package/build/angular/components/flat-list/index.js.map +1 -1
- package/build/angular/components/image-inputs.d.ts +4 -0
- package/build/angular/components/image-inputs.js +81 -0
- package/build/angular/components/image-inputs.js.map +1 -0
- package/build/angular/components/image-props-resolve.d.ts +3 -0
- package/build/angular/components/image-props-resolve.js +133 -0
- package/build/angular/components/image-props-resolve.js.map +1 -0
- package/build/angular/components/image-shared.d.ts +8 -6
- package/build/angular/components/image-shared.js +23 -212
- package/build/angular/components/image-shared.js.map +1 -1
- package/build/angular/components/input-accessory-view-props.d.ts +4 -4
- package/build/angular/components/keyboard-avoiding-view/index.d.ts +3 -6
- package/build/angular/components/keyboard-avoiding-view/index.js +29 -56
- package/build/angular/components/keyboard-avoiding-view/index.js.map +1 -1
- package/build/angular/components/layout-conformance-props.d.ts +4 -0
- package/build/angular/components/layout-conformance-props.js +2 -0
- package/build/angular/components/layout-conformance-props.js.map +1 -0
- package/build/angular/components/modal/index.d.ts +6 -5
- package/build/angular/components/modal/index.js +17 -2
- package/build/angular/components/modal/index.js.map +1 -1
- package/build/angular/components/refresh-control-props.d.ts +7 -7
- package/build/angular/components/scroll-view-props.d.ts +8 -5
- package/build/angular/components/section-list/index.d.ts +17 -8
- package/build/angular/components/section-list/index.js +37 -28
- package/build/angular/components/section-list/index.js.map +1 -1
- package/build/angular/components/touchable-props.d.ts +2 -2
- package/build/angular/components/virtualized-list/cell-renderer-context.d.ts +12 -0
- package/build/angular/components/virtualized-list/cell-renderer-context.js +16 -0
- package/build/angular/components/virtualized-list/cell-renderer-context.js.map +1 -0
- package/build/angular/components/virtualized-list/directives.d.ts +26 -6
- package/build/angular/components/virtualized-list/directives.js +59 -5
- package/build/angular/components/virtualized-list/directives.js.map +1 -1
- package/build/angular/components/virtualized-list/index.d.ts +19 -15
- package/build/angular/components/virtualized-list/index.js +91 -61
- package/build/angular/components/virtualized-list/index.js.map +1 -1
- package/build/angular/components/virtualized-list/list-bags.d.ts +5 -1
- package/build/angular/components/virtualized-list/list-bags.js +31 -19
- package/build/angular/components/virtualized-list/list-bags.js.map +1 -1
- package/build/angular/components/virtualized-list/list-effects.d.ts +2 -2
- package/build/angular/components/virtualized-list/list-effects.js +17 -27
- package/build/angular/components/virtualized-list/list-effects.js.map +1 -1
- package/build/angular/components/virtualized-list/list-handle.d.ts +4 -1
- package/build/angular/components/virtualized-list/list-handle.js +13 -3
- package/build/angular/components/virtualized-list/list-handle.js.map +1 -1
- package/build/angular/components/virtualized-list/list-inputs.d.ts +19 -5
- package/build/angular/components/virtualized-list/list-inputs.js +47 -4
- package/build/angular/components/virtualized-list/list-inputs.js.map +1 -1
- package/build/angular/components/virtualized-list/list-props.d.ts +9 -3
- package/build/angular/components/virtualized-list/list-rows.d.ts +25 -0
- package/build/angular/components/virtualized-list/list-rows.js +25 -0
- package/build/angular/components/virtualized-list/list-rows.js.map +1 -0
- package/build/angular/components/virtualized-list/list-styles.d.ts +4 -0
- package/build/angular/components/virtualized-list/list-styles.js +10 -2
- package/build/angular/components/virtualized-list/list-styles.js.map +1 -1
- package/build/angular/components/virtualized-list/list-template.d.ts +1 -1
- package/build/angular/components/virtualized-list/list-template.js +159 -73
- package/build/angular/components/virtualized-list/list-template.js.map +1 -1
- package/build/angular/components/virtualized-list/nested-scope.d.ts +6 -0
- package/build/angular/components/virtualized-list/nested-scope.js +17 -0
- package/build/angular/components/virtualized-list/nested-scope.js.map +1 -0
- package/build/angular/components/virtualized-section-list/directives.d.ts +21 -9
- package/build/angular/components/virtualized-section-list/directives.js +8 -28
- package/build/angular/components/virtualized-section-list/directives.js.map +1 -1
- package/build/angular/components/virtualized-section-list/index.d.ts +39 -60
- package/build/angular/components/virtualized-section-list/index.js +67 -33
- package/build/angular/components/virtualized-section-list/index.js.map +1 -1
- package/build/angular/components/virtualized-section-list/section-cell.d.ts +29 -0
- package/build/angular/components/virtualized-section-list/section-cell.js +82 -0
- package/build/angular/components/virtualized-section-list/section-cell.js.map +1 -0
- package/build/angular/components/virtualized-section-list/section-list-props.d.ts +56 -0
- package/build/angular/components/virtualized-section-list/section-list-props.js +3 -0
- package/build/angular/components/virtualized-section-list/section-list-props.js.map +1 -0
- package/build/angular/components/virtualized-section-list/section-list-template.d.ts +1 -1
- package/build/angular/components/virtualized-section-list/section-list-template.js +34 -26
- package/build/angular/components/virtualized-section-list/section-list-template.js.map +1 -1
- package/build/angular/components.d.ts +7 -3
- package/build/angular/components.js +2 -1
- package/build/angular/components.js.map +1 -1
- package/build/angular/element-base.d.ts +17 -1
- package/build/angular/element-base.js +33 -1
- package/build/angular/element-base.js.map +1 -1
- package/build/angular/element-props.d.ts +7 -7
- package/build/angular/element-text-input-native.d.ts +27 -0
- package/build/angular/element-text-input-native.js +52 -0
- package/build/angular/element-text-input-native.js.map +1 -0
- package/build/angular/elements-controls.d.ts +8 -2
- package/build/angular/elements-controls.js +13 -1
- package/build/angular/elements-controls.js.map +1 -1
- package/build/angular/elements-layout.d.ts +20 -3
- package/build/angular/elements-layout.js +37 -3
- package/build/angular/elements-layout.js.map +1 -1
- package/build/angular/elements-press.d.ts +10 -3
- package/build/angular/elements-press.js +13 -1
- package/build/angular/elements-press.js.map +1 -1
- package/build/angular/elements.d.ts +3 -3
- package/build/angular/elements.js +3 -2
- package/build/angular/elements.js.map +1 -1
- package/build/angular/index.d.ts +15 -7
- package/build/angular/index.js +22 -25
- package/build/angular/index.js.map +1 -1
- package/build/angular/modules/animated/create-animated-component.d.ts +1 -1
- package/build/angular/modules/animated/create-animated-component.js +1 -1
- package/build/angular/modules/animated/create-animated-component.js.map +1 -1
- package/build/angular/modules/animated/index.d.ts +54 -41
- package/build/angular/modules/animated/index.js +2 -26
- package/build/angular/modules/animated/index.js.map +1 -1
- package/build/angular/modules/app-registry/index.d.ts +3 -3
- package/build/angular/modules/app-registry/index.js +2 -2
- package/build/angular/modules/app-registry/index.js.map +1 -1
- package/build/angular/modules/status-bar/index.d.ts +9 -5
- package/build/angular/modules/status-bar/index.js +21 -10
- package/build/angular/modules/status-bar/index.js.map +1 -1
- package/build/angular/primitives/index.d.ts +4 -0
- package/build/angular/primitives/index.js +12 -0
- package/build/angular/primitives/index.js.map +1 -1
- package/build/angular/render/index.d.ts +2 -2
- package/build/angular/render/index.js +10 -29
- package/build/angular/render/index.js.map +1 -1
- package/build/angular/root-tag.d.ts +4 -0
- package/build/angular/root-tag.js +10 -0
- package/build/angular/root-tag.js.map +1 -0
- package/build/angular/services/color-scheme.service.d.ts +1 -1
- package/package.json +6 -6
- package/src/accessibility-inputs.ts +3 -0
- package/src/callback-host.ts +56 -8
- package/src/components/flat-list/flat-list-handle.ts +64 -0
- package/src/components/flat-list/flat-list-template.ts +16 -0
- package/src/components/flat-list/index.ts +6 -48
- package/src/components/image-inputs.ts +94 -0
- package/src/components/image-props-resolve.ts +172 -0
- package/src/components/image-shared.ts +26 -291
- package/src/components/input-accessory-view-props.ts +12 -8
- package/src/components/keyboard-avoiding-view/index.ts +39 -79
- package/src/components/layout-conformance-props.ts +8 -0
- package/src/components/modal/index.ts +42 -20
- package/src/components/refresh-control-props.ts +29 -25
- package/src/components/scroll-view-props.ts +84 -76
- package/src/components/section-list/index.ts +34 -37
- package/src/components/touchable-props.ts +6 -2
- package/src/components/virtualized-list/cell-renderer-context.ts +36 -0
- package/src/components/virtualized-list/directives.ts +84 -8
- package/src/components/virtualized-list/index.ts +118 -85
- package/src/components/virtualized-list/list-bags.ts +38 -19
- package/src/components/virtualized-list/list-effects.ts +20 -32
- package/src/components/virtualized-list/list-handle.ts +17 -4
- package/src/components/virtualized-list/list-inputs.ts +47 -0
- package/src/components/virtualized-list/list-props.ts +57 -50
- package/src/components/virtualized-list/list-rows.ts +66 -0
- package/src/components/virtualized-list/list-styles.ts +30 -1
- package/src/components/virtualized-list/list-template.ts +159 -73
- package/src/components/virtualized-list/nested-scope.ts +22 -0
- package/src/components/virtualized-section-list/directives.ts +41 -40
- package/src/components/virtualized-section-list/index.ts +114 -118
- package/src/components/virtualized-section-list/section-cell.ts +109 -0
- package/src/components/virtualized-section-list/section-list-props.ts +79 -0
- package/src/components/virtualized-section-list/section-list-template.ts +34 -26
- package/src/components.ts +8 -0
- package/src/element-base.ts +17 -0
- package/src/element-props.ts +35 -33
- package/src/element-text-input-native.ts +31 -0
- package/src/elements-controls.ts +9 -1
- package/src/elements-layout.ts +27 -0
- package/src/elements-press.ts +10 -2
- package/src/elements.ts +3 -0
- package/src/index.ts +79 -22
- package/src/modules/animated/index.ts +2 -47
- package/src/modules/app-registry/index.ts +3 -1
- package/src/modules/status-bar/index.ts +24 -11
- package/src/primitives/index.ts +7 -0
- package/src/render/index.ts +23 -50
- package/src/root-tag.ts +14 -0
- package/src/services/color-scheme.service.ts +1 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// packing items into rows so the virtualized stream is rows, not items. The row shaping is shared
|
|
3
3
|
// with the React and Vue FlatLists, windowing and the scroll handle come from VirtualizedList
|
|
4
4
|
import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, inject, } from '@angular/core';
|
|
5
|
-
import { SINGLE_COLUMN, chunkIntoRows, expandRowViewability, firstItemOfRow, lastItemOfRow, removeClippedSubviewsOrDefault, rowKeyExtractor, } from '@symbiote-native/components';
|
|
5
|
+
import { SINGLE_COLUMN, arrayLikeLength, chunkIntoRows, expandRowViewability, firstItemOfRow, lastItemOfRow, removeClippedSubviewsOrDefault, rowKeyExtractor, } from '@symbiote-native/components';
|
|
6
6
|
import { Platform, dlog, flattenStyle, resolveClassName, } from '@symbiote-native/engine';
|
|
7
7
|
import { VirtualizedList, VListEmptyDirective, VListFooterDirective, VListHeaderDirective, VListItemDirective, VListSeparatorDirective, } from '../virtualized-list';
|
|
8
8
|
import { VListOutletDirective } from '../virtualized-list/directives';
|
|
9
|
-
import {
|
|
9
|
+
import { FlatListHandleBase } from './flat-list-handle';
|
|
10
10
|
import { provideGateDemand } from '../../gate-demand';
|
|
11
11
|
import { stableAnchorStyle, SymbioteStyleInputDirective, ViewHost, } from '../../primitives';
|
|
12
12
|
import { FLAT_LIST_TEMPLATE } from './flat-list-template';
|
|
@@ -32,7 +32,7 @@ const NOOP_SEPARATORS = {
|
|
|
32
32
|
updateProps: () => undefined,
|
|
33
33
|
};
|
|
34
34
|
export { VListEmptyDirective, VListFooterDirective, VListHeaderDirective, VListItemDirective, VListSeparatorDirective, } from '../virtualized-list';
|
|
35
|
-
export class FlatList extends
|
|
35
|
+
export class FlatList extends FlatListHandleBase {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
38
|
// This component's own host, the anchor `class="..."` resolves onto, not the inner list's
|
|
@@ -43,7 +43,7 @@ export class FlatList extends ListInputsBase {
|
|
|
43
43
|
this.columnCellStyle = { flex: 1 };
|
|
44
44
|
this.resolvedStyle = undefined;
|
|
45
45
|
this.getFlatItem = (_data, index) => this.data[index];
|
|
46
|
-
this.getFlatCount = (_data) => this.data
|
|
46
|
+
this.getFlatCount = (_data) => arrayLikeLength(this.data);
|
|
47
47
|
// With several columns the virtualized stream is rows
|
|
48
48
|
this.getRow = (_data, index) => this.rows[index];
|
|
49
49
|
this.getRowCount = (_data) => this.rows.length;
|
|
@@ -83,7 +83,7 @@ export class FlatList extends ListInputsBase {
|
|
|
83
83
|
this.rows = this.isMultiColumn
|
|
84
84
|
? chunkIntoRows(this.data, this.columns)
|
|
85
85
|
: [];
|
|
86
|
-
dlog(`Angular FlatList over ${this.data
|
|
86
|
+
dlog(`Angular FlatList over ${arrayLikeLength(this.data)} items, ${this.columns} column(s)`);
|
|
87
87
|
}
|
|
88
88
|
if (changes['viewabilityConfigCallbackPairs'] !== undefined ||
|
|
89
89
|
changes['numColumns'] !== undefined) {
|
|
@@ -126,38 +126,8 @@ export class FlatList extends ListInputsBase {
|
|
|
126
126
|
: undefined,
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
scrollToOffset(params) {
|
|
130
|
-
this.listRef?.scrollToOffset(params);
|
|
131
|
-
}
|
|
132
|
-
scrollToIndex(params) {
|
|
133
|
-
this.listRef?.scrollToIndex(params);
|
|
134
|
-
}
|
|
135
|
-
scrollToItem(params) {
|
|
136
|
-
this.listRef?.scrollToItem(params);
|
|
137
|
-
}
|
|
138
|
-
scrollToEnd(params) {
|
|
139
|
-
this.listRef?.scrollToEnd(params);
|
|
140
|
-
}
|
|
141
|
-
flashScrollIndicators() {
|
|
142
|
-
this.listRef?.flashScrollIndicators();
|
|
143
|
-
}
|
|
144
|
-
getNativeScrollRef() {
|
|
145
|
-
return this.listRef?.getNativeScrollRef() ?? null;
|
|
146
|
-
}
|
|
147
|
-
getScrollableNode() {
|
|
148
|
-
return this.listRef?.getScrollableNode() ?? null;
|
|
149
|
-
}
|
|
150
|
-
getScrollResponder() {
|
|
151
|
-
return this.listRef?.getScrollResponder() ?? null;
|
|
152
|
-
}
|
|
153
|
-
getScrollNode() {
|
|
154
|
-
return this.listRef?.getScrollNode() ?? null;
|
|
155
|
-
}
|
|
156
|
-
recordInteraction() {
|
|
157
|
-
this.listRef?.recordInteraction();
|
|
158
|
-
}
|
|
159
129
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FlatList, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
160
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: FlatList, isStandalone: true, selector: "FlatList", inputs: { data: "data", numColumns: "numColumns", columnWrapperStyle: "columnWrapperStyle" }, viewQueries: [{ propertyName: "listRef", first: true, predicate: VirtualizedList, descendants: true }], usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: "\n @if (isMultiColumn) {\n <VirtualizedList\n [data]=\"rows\"\n [getItem]=\"getRow\"\n [getItemCount]=\"getRowCount\"\n [keyExtractor]=\"rowKey\"\n [getItemLayout]=\"getItemLayout\"\n [horizontal]=\"horizontal\"\n [inverted]=\"inverted\"\n [extraData]=\"extraData\"\n (endReached)=\"endReached.emit($event)\"\n [onEndReachedThreshold]=\"onEndReachedThreshold\"\n (startReached)=\"startReached.emit($event)\"\n [onStartReachedThreshold]=\"onStartReachedThreshold\"\n (refresh)=\"refresh.emit()\"\n [refreshRequested]=\"refresh.observed\"\n [refreshing]=\"refreshing\"\n [progressViewOffset]=\"progressViewOffset\"\n (viewableItemsChanged)=\"rowViewableItemsChanged($event)\"\n [viewabilityConfig]=\"viewabilityConfig\"\n [viewabilityConfigCallbackPairs]=\"rowViewabilityPairs\"\n (scrollToIndexFailed)=\"scrollToIndexFailed.emit($event)\"\n [initialNumToRender]=\"initialNumToRender\"\n [initialScrollIndex]=\"initialScrollIndex\"\n [maxToRenderPerBatch]=\"maxToRenderPerBatch\"\n [updateCellsBatchingPeriod]=\"updateCellsBatchingPeriod\"\n [windowSize]=\"windowSize\"\n [stickyHeaderIndices]=\"stickyHeaderIndices\"\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]=\"resolvedRemoveClippedSubviews\"\n [nestedScrollEnabled]=\"nestedScrollEnabled\"\n [testID]=\"testID\"\n [nativeID]=\"nativeID\"\n [style]=\"resolvedStyle\"\n [contentContainerStyle]=\"contentContainerStyle\"\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 <ng-template vListItem let-row let-separators=\"separators\">\n <view [style]=\"rowStyle\">\n @for (cell of rowCells(row, separators); track cell.key) {\n <view [style]=\"columnCellStyle\">\n <ng-container\n [vListOutlet]=\"itemDir?.templateRef\"\n [vListOutletContext]=\"cell.context\"\n ></ng-container>\n </view>\n }\n </view>\n </ng-template>\n @if (headerDir !== undefined) {\n <ng-template vListHeader>\n <ng-container [vListOutlet]=\"headerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (footerDir !== undefined) {\n <ng-template vListFooter>\n <ng-container [vListOutlet]=\"footerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (emptyDir !== undefined) {\n <ng-template vListEmpty>\n <ng-container [vListOutlet]=\"emptyDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (separatorDir !== undefined) {\n <ng-template\n vListSeparator\n let-highlighted=\"highlighted\"\n let-leadingItem=\"leadingItem\"\n let-trailingItem=\"trailingItem\"\n >\n <ng-container\n [vListOutlet]=\"separatorDir.templateRef\"\n [vListOutletContext]=\"\n rowSeparatorContext(highlighted, leadingItem, trailingItem)\n \"\n ></ng-container>\n </ng-template>\n }\n </VirtualizedList>\n } @else {\n <VirtualizedList\n [data]=\"data\"\n [getItem]=\"getFlatItem\"\n [getItemCount]=\"getFlatCount\"\n [keyExtractor]=\"keyExtractor\"\n [getItemLayout]=\"getItemLayout\"\n [horizontal]=\"horizontal\"\n [inverted]=\"inverted\"\n [extraData]=\"extraData\"\n (endReached)=\"endReached.emit($event)\"\n [onEndReachedThreshold]=\"onEndReachedThreshold\"\n (startReached)=\"startReached.emit($event)\"\n [onStartReachedThreshold]=\"onStartReachedThreshold\"\n (refresh)=\"refresh.emit()\"\n [refreshRequested]=\"refresh.observed\"\n [refreshing]=\"refreshing\"\n [progressViewOffset]=\"progressViewOffset\"\n (viewableItemsChanged)=\"viewableItemsChanged.emit($event)\"\n [viewabilityConfig]=\"viewabilityConfig\"\n [viewabilityConfigCallbackPairs]=\"viewabilityConfigCallbackPairs\"\n (scrollToIndexFailed)=\"scrollToIndexFailed.emit($event)\"\n [initialNumToRender]=\"initialNumToRender\"\n [initialScrollIndex]=\"initialScrollIndex\"\n [maxToRenderPerBatch]=\"maxToRenderPerBatch\"\n [updateCellsBatchingPeriod]=\"updateCellsBatchingPeriod\"\n [windowSize]=\"windowSize\"\n [stickyHeaderIndices]=\"stickyHeaderIndices\"\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]=\"resolvedRemoveClippedSubviews\"\n [nestedScrollEnabled]=\"nestedScrollEnabled\"\n [testID]=\"testID\"\n [nativeID]=\"nativeID\"\n [style]=\"resolvedStyle\"\n [contentContainerStyle]=\"contentContainerStyle\"\n [itemTemplate]=\"itemDir?.templateRef\"\n [itemSeparatorTemplate]=\"separatorDir?.templateRef\"\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 @if (headerDir !== undefined) {\n <ng-template vListHeader>\n <ng-container [vListOutlet]=\"headerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (footerDir !== undefined) {\n <ng-template vListFooter>\n <ng-container [vListOutlet]=\"footerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (emptyDir !== undefined) {\n <ng-template vListEmpty>\n <ng-container [vListOutlet]=\"emptyDir.templateRef\"></ng-container>\n </ng-template>\n }\n </VirtualizedList>\n }\n", isInline: true, dependencies: [{ kind: "component", type: VirtualizedList, selector: "VirtualizedList" }, { 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" }], viewProviders: [provideGateDemand(() => FlatList)], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
130
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: FlatList, isStandalone: true, selector: "FlatList", inputs: { data: "data", numColumns: "numColumns", columnWrapperStyle: "columnWrapperStyle" }, viewQueries: [{ propertyName: "listRef", first: true, predicate: VirtualizedList, descendants: true }], usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i1.SymbioteStyleInputDirective, inputs: ["style", "style"] }], ngImport: i0, template: "\n @if (isMultiColumn) {\n <VirtualizedList\n [data]=\"rows\"\n [getItem]=\"getRow\"\n [getItemCount]=\"getRowCount\"\n [keyExtractor]=\"rowKey\"\n [getItemLayout]=\"getItemLayout\"\n [horizontal]=\"horizontal\"\n [inverted]=\"inverted\"\n [extraData]=\"extraData\"\n (endReached)=\"endReached.emit($event)\"\n [onEndReachedThreshold]=\"onEndReachedThreshold\"\n (startReached)=\"startReached.emit($event)\"\n [onStartReachedThreshold]=\"onStartReachedThreshold\"\n (refresh)=\"refresh.emit()\"\n [refreshRequested]=\"refresh.observed\"\n [refreshing]=\"refreshing\"\n [progressViewOffset]=\"progressViewOffset\"\n (viewableItemsChanged)=\"rowViewableItemsChanged($event)\"\n [viewabilityConfig]=\"viewabilityConfig\"\n [viewabilityConfigCallbackPairs]=\"rowViewabilityPairs\"\n (scrollToIndexFailed)=\"scrollToIndexFailed.emit($event)\"\n [initialNumToRender]=\"initialNumToRender\"\n [initialScrollIndex]=\"initialScrollIndex\"\n [maxToRenderPerBatch]=\"maxToRenderPerBatch\"\n [updateCellsBatchingPeriod]=\"updateCellsBatchingPeriod\"\n [windowSize]=\"windowSize\"\n [disableVirtualization]=\"disableVirtualization\"\n [stickyHeaderIndices]=\"stickyHeaderIndices\"\n [maintainVisibleContentPosition]=\"maintainVisibleContentPosition\"\n [onScroll]=\"onScroll\"\n [onScrollBeginDrag]=\"onScrollBeginDrag\"\n [onScrollEndDrag]=\"onScrollEndDrag\"\n [onMomentumScrollBegin]=\"onMomentumScrollBegin\"\n [onMomentumScrollEnd]=\"onMomentumScrollEnd\"\n [onContentSizeChange]=\"onContentSizeChange\"\n [scrollEventThrottle]=\"scrollEventThrottle\"\n [keyboardShouldPersistTaps]=\"keyboardShouldPersistTaps\"\n [keyboardDismissMode]=\"keyboardDismissMode\"\n [removeClippedSubviews]=\"resolvedRemoveClippedSubviews\"\n [nestedScrollEnabled]=\"nestedScrollEnabled\"\n [stickyHeaderHiddenOnScroll]=\"stickyHeaderHiddenOnScroll\"\n [innerViewRef]=\"innerViewRef\"\n [testID]=\"testID\"\n [nativeID]=\"nativeID\"\n [style]=\"resolvedStyle\"\n [contentContainerStyle]=\"contentContainerStyle\"\n [listHeaderComponentStyle]=\"listHeaderComponentStyle\"\n [listFooterComponentStyle]=\"listFooterComponentStyle\"\n [cellRendererTemplate]=\"cellRendererTpl\"\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 <ng-template vListItem let-row let-separators=\"separators\">\n <view [style]=\"rowStyle\">\n @for (cell of rowCells(row, separators); track cell.key) {\n <view [style]=\"columnCellStyle\">\n <ng-container\n [vListOutlet]=\"itemDir?.templateRef\"\n [vListOutletComponent]=\"itemComponent\"\n [vListOutletContext]=\"cell.context\"\n ></ng-container>\n </view>\n }\n </view>\n </ng-template>\n @if (headerDir !== undefined) {\n <ng-template vListHeader>\n <ng-container [vListOutlet]=\"headerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (footerDir !== undefined) {\n <ng-template vListFooter>\n <ng-container [vListOutlet]=\"footerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (emptyDir !== undefined) {\n <ng-template vListEmpty>\n <ng-container [vListOutlet]=\"emptyDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (separatorDir !== undefined) {\n <ng-template\n vListSeparator\n let-highlighted=\"highlighted\"\n let-leadingItem=\"leadingItem\"\n let-trailingItem=\"trailingItem\"\n >\n <ng-container\n [vListOutlet]=\"separatorDir.templateRef\"\n [vListOutletContext]=\"\n rowSeparatorContext(highlighted, leadingItem, trailingItem)\n \"\n ></ng-container>\n </ng-template>\n }\n </VirtualizedList>\n } @else {\n <VirtualizedList\n [data]=\"data\"\n [getItem]=\"getFlatItem\"\n [getItemCount]=\"getFlatCount\"\n [keyExtractor]=\"keyExtractor\"\n [getItemLayout]=\"getItemLayout\"\n [horizontal]=\"horizontal\"\n [inverted]=\"inverted\"\n [extraData]=\"extraData\"\n (endReached)=\"endReached.emit($event)\"\n [onEndReachedThreshold]=\"onEndReachedThreshold\"\n (startReached)=\"startReached.emit($event)\"\n [onStartReachedThreshold]=\"onStartReachedThreshold\"\n (refresh)=\"refresh.emit()\"\n [refreshRequested]=\"refresh.observed\"\n [refreshing]=\"refreshing\"\n [progressViewOffset]=\"progressViewOffset\"\n (viewableItemsChanged)=\"viewableItemsChanged.emit($event)\"\n [viewabilityConfig]=\"viewabilityConfig\"\n [viewabilityConfigCallbackPairs]=\"viewabilityConfigCallbackPairs\"\n (scrollToIndexFailed)=\"scrollToIndexFailed.emit($event)\"\n [initialNumToRender]=\"initialNumToRender\"\n [initialScrollIndex]=\"initialScrollIndex\"\n [maxToRenderPerBatch]=\"maxToRenderPerBatch\"\n [updateCellsBatchingPeriod]=\"updateCellsBatchingPeriod\"\n [windowSize]=\"windowSize\"\n [disableVirtualization]=\"disableVirtualization\"\n [stickyHeaderIndices]=\"stickyHeaderIndices\"\n [maintainVisibleContentPosition]=\"maintainVisibleContentPosition\"\n [onScroll]=\"onScroll\"\n [onScrollBeginDrag]=\"onScrollBeginDrag\"\n [onScrollEndDrag]=\"onScrollEndDrag\"\n [onMomentumScrollBegin]=\"onMomentumScrollBegin\"\n [onMomentumScrollEnd]=\"onMomentumScrollEnd\"\n [onContentSizeChange]=\"onContentSizeChange\"\n [scrollEventThrottle]=\"scrollEventThrottle\"\n [keyboardShouldPersistTaps]=\"keyboardShouldPersistTaps\"\n [keyboardDismissMode]=\"keyboardDismissMode\"\n [removeClippedSubviews]=\"resolvedRemoveClippedSubviews\"\n [nestedScrollEnabled]=\"nestedScrollEnabled\"\n [stickyHeaderHiddenOnScroll]=\"stickyHeaderHiddenOnScroll\"\n [innerViewRef]=\"innerViewRef\"\n [testID]=\"testID\"\n [nativeID]=\"nativeID\"\n [style]=\"resolvedStyle\"\n [contentContainerStyle]=\"contentContainerStyle\"\n [listHeaderComponentStyle]=\"listHeaderComponentStyle\"\n [listFooterComponentStyle]=\"listFooterComponentStyle\"\n [cellRendererTemplate]=\"cellRendererTpl\"\n [itemTemplate]=\"itemDir?.templateRef\"\n [listItemComponent]=\"listItemComponent\"\n [itemSeparatorTemplate]=\"separatorDir?.templateRef\"\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 @if (headerDir !== undefined) {\n <ng-template vListHeader>\n <ng-container [vListOutlet]=\"headerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (footerDir !== undefined) {\n <ng-template vListFooter>\n <ng-container [vListOutlet]=\"footerDir.templateRef\"></ng-container>\n </ng-template>\n }\n @if (emptyDir !== undefined) {\n <ng-template vListEmpty>\n <ng-container [vListOutlet]=\"emptyDir.templateRef\"></ng-container>\n </ng-template>\n }\n </VirtualizedList>\n }\n", isInline: true, dependencies: [{ kind: "component", type: VirtualizedList, selector: "VirtualizedList" }, { 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", "vListOutletComponent"] }, { kind: "component", type: ViewHost, selector: "view" }], viewProviders: [provideGateDemand(() => FlatList)], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
161
131
|
}
|
|
162
132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: FlatList, decorators: [{
|
|
163
133
|
type: Component,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/flat-list/index.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,kGAAkG;AAClG,8FAA8F;AAE9F,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,KAAK,EACL,SAAS,EACT,MAAM,GAIP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,8BAA8B,EAC9B,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/flat-list/index.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,kGAAkG;AAClG,8FAA8F;AAE9F,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,KAAK,EACL,SAAS,EACT,MAAM,GAIP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,aAAa,EACb,8BAA8B,EAC9B,eAAe,GAMhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,gBAAgB,GAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GAIxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO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C,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;8GA3IU,QAAQ;kGAAR,QAAQ,2MAgBR,eAAe,mrVA5BxB,eAAe,4DACf,kBAAkB,wDAClB,oBAAoB,0DACpB,oBAAoB,0DACpB,mBAAmB,yDACnB,uBAAuB,6DACvB,oBAAoB,iIACpB,QAAQ,sCAbK,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;;2FAkBvC,QAAQ;kBArBpB,SAAS;mBAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,UAAU,EAAE,IAAI;oBAChB,aAAa,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;oBAClD,cAAc,EAAE;wBACd,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE;qBAC9D;oBACD,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE;wBACP,eAAe;wBACf,kBAAkB;wBAClB,oBAAoB;wBACpB,oBAAoB;wBACpB,mBAAmB;wBACnB,uBAAuB;wBACvB,oBAAoB;wBACpB,QAAQ;qBACT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE,kBAAkB;iBAC7B;;sBAKE,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;;sBACxB,KAAK;;sBACL,KAAK;;sBAUL,SAAS;uBAAC,eAAe"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const IMAGE_INPUTS: string[];
|
|
2
|
+
type IImageOutput = 'accessibilityAction' | 'accessibilityTap' | 'magicTap' | 'accessibilityEscape' | 'loadStart' | 'load' | 'loadEnd' | 'error' | 'progress' | 'partialLoad';
|
|
3
|
+
export declare const IMAGE_OUTPUTS: IImageOutput[];
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// The input and output names of `Animated.Image`, kept apart from the prop fold so the list reads
|
|
2
|
+
// as one table
|
|
3
|
+
export const IMAGE_INPUTS = [
|
|
4
|
+
'source',
|
|
5
|
+
'defaultSource',
|
|
6
|
+
'loadingIndicatorSource',
|
|
7
|
+
'style',
|
|
8
|
+
'resizeMode',
|
|
9
|
+
'resizeMethod',
|
|
10
|
+
'resizeMultiplier',
|
|
11
|
+
'tintColor',
|
|
12
|
+
'blurRadius',
|
|
13
|
+
'capInsets',
|
|
14
|
+
'fadeDuration',
|
|
15
|
+
'progressiveRenderingEnabled',
|
|
16
|
+
'src',
|
|
17
|
+
'srcSet',
|
|
18
|
+
'alt',
|
|
19
|
+
'width',
|
|
20
|
+
'height',
|
|
21
|
+
'crossOrigin',
|
|
22
|
+
'referrerPolicy',
|
|
23
|
+
'testID',
|
|
24
|
+
'nativeID',
|
|
25
|
+
'accessible',
|
|
26
|
+
'accessibilityLabel',
|
|
27
|
+
'accessibilityHint',
|
|
28
|
+
'accessibilityRole',
|
|
29
|
+
'accessibilityState',
|
|
30
|
+
'accessibilityValue',
|
|
31
|
+
'accessibilityActions',
|
|
32
|
+
'accessibilityLabelledBy',
|
|
33
|
+
'importantForAccessibility',
|
|
34
|
+
'accessibilityLiveRegion',
|
|
35
|
+
'screenReaderFocusable',
|
|
36
|
+
'accessibilityViewIsModal',
|
|
37
|
+
'accessibilityElementsHidden',
|
|
38
|
+
'accessibilityIgnoresInvertColors',
|
|
39
|
+
'accessibilityLanguage',
|
|
40
|
+
'accessibilityRespondsToUserInteraction',
|
|
41
|
+
'accessibilityShowsLargeContentViewer',
|
|
42
|
+
'accessibilityLargeContentTitle',
|
|
43
|
+
'role',
|
|
44
|
+
'ariaLabel: aria-label',
|
|
45
|
+
'ariaLabelledBy: aria-labelledby',
|
|
46
|
+
'ariaLive: aria-live',
|
|
47
|
+
'ariaHidden: aria-hidden',
|
|
48
|
+
'ariaBusy: aria-busy',
|
|
49
|
+
'ariaChecked: aria-checked',
|
|
50
|
+
'ariaDisabled: aria-disabled',
|
|
51
|
+
'ariaExpanded: aria-expanded',
|
|
52
|
+
'ariaSelected: aria-selected',
|
|
53
|
+
'ariaModal: aria-modal',
|
|
54
|
+
'ariaValueMax: aria-valuemax',
|
|
55
|
+
'ariaValueMin: aria-valuemin',
|
|
56
|
+
'ariaValueNow: aria-valuenow',
|
|
57
|
+
'ariaValueText: aria-valuetext',
|
|
58
|
+
'onAccessibilityAction',
|
|
59
|
+
'onAccessibilityTap',
|
|
60
|
+
'onMagicTap',
|
|
61
|
+
'onAccessibilityEscape',
|
|
62
|
+
'onLoadStart',
|
|
63
|
+
'onLoad',
|
|
64
|
+
'onLoadEnd',
|
|
65
|
+
'onError',
|
|
66
|
+
'onProgress',
|
|
67
|
+
'onPartialLoad',
|
|
68
|
+
];
|
|
69
|
+
export const IMAGE_OUTPUTS = [
|
|
70
|
+
'accessibilityAction',
|
|
71
|
+
'accessibilityTap',
|
|
72
|
+
'magicTap',
|
|
73
|
+
'accessibilityEscape',
|
|
74
|
+
'loadStart',
|
|
75
|
+
'load',
|
|
76
|
+
'loadEnd',
|
|
77
|
+
'error',
|
|
78
|
+
'progress',
|
|
79
|
+
'partialLoad',
|
|
80
|
+
];
|
|
81
|
+
//# sourceMappingURL=image-inputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-inputs.js","sourceRoot":"","sources":["../../../src/components/image-inputs.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,eAAe;AAEf,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ;IACR,eAAe;IACf,wBAAwB;IACxB,OAAO;IACP,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,WAAW;IACX,cAAc;IACd,6BAA6B;IAC7B,KAAK;IACL,QAAQ;IACR,KAAK;IACL,OAAO;IACP,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;IACtB,yBAAyB;IACzB,2BAA2B;IAC3B,yBAAyB;IACzB,uBAAuB;IACvB,0BAA0B;IAC1B,6BAA6B;IAC7B,kCAAkC;IAClC,uBAAuB;IACvB,wCAAwC;IACxC,sCAAsC;IACtC,gCAAgC;IAChC,MAAM;IACN,uBAAuB;IACvB,iCAAiC;IACjC,qBAAqB;IACrB,yBAAyB;IACzB,qBAAqB;IACrB,2BAA2B;IAC3B,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,uBAAuB;IACvB,6BAA6B;IAC7B,6BAA6B;IAC7B,6BAA6B;IAC7B,+BAA+B;IAC/B,uBAAuB;IACvB,oBAAoB;IACpB,YAAY;IACZ,uBAAuB;IACvB,aAAa;IACb,QAAQ;IACR,WAAW;IACX,SAAS;IACT,YAAY;IACZ,eAAe;CAChB,CAAC;AAcF,MAAM,CAAC,MAAM,aAAa,GAAmB;IAC3C,qBAAqB;IACrB,kBAAkB;IAClB,UAAU;IACV,qBAAqB;IACrB,WAAW;IACX,MAAM;IACN,SAAS;IACT,OAAO;IACP,UAAU;IACV,aAAa;CACd,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// Narrows the untyped `Animated.Image` input bag into the props `renderImage` takes
|
|
2
|
+
import { renderImage, resolveAccessibilityProps, } from '@symbiote-native/components';
|
|
3
|
+
import { isBoolean, isNumber, isProcessableColor, isString, } from '@symbiote-native/engine';
|
|
4
|
+
function isAny() {
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
// Input key -> the guard its value must pass. A union, object or handler is checked by Angular's
|
|
8
|
+
// template type check, so it gets `isAny` and goes through as it came
|
|
9
|
+
const PASSTHROUGH_GUARDS = {
|
|
10
|
+
resizeMethod: isAny,
|
|
11
|
+
resizeMultiplier: isNumber,
|
|
12
|
+
blurRadius: isNumber,
|
|
13
|
+
capInsets: isAny,
|
|
14
|
+
fadeDuration: isNumber,
|
|
15
|
+
progressiveRenderingEnabled: isBoolean,
|
|
16
|
+
testID: isString,
|
|
17
|
+
nativeID: isString,
|
|
18
|
+
accessible: isBoolean,
|
|
19
|
+
accessibilityLabel: isString,
|
|
20
|
+
accessibilityHint: isString,
|
|
21
|
+
accessibilityRole: isAny,
|
|
22
|
+
accessibilityState: isAny,
|
|
23
|
+
accessibilityValue: isAny,
|
|
24
|
+
accessibilityActions: isAny,
|
|
25
|
+
accessibilityLabelledBy: isAny,
|
|
26
|
+
importantForAccessibility: isAny,
|
|
27
|
+
accessibilityLiveRegion: isAny,
|
|
28
|
+
screenReaderFocusable: isBoolean,
|
|
29
|
+
accessibilityViewIsModal: isBoolean,
|
|
30
|
+
accessibilityElementsHidden: isBoolean,
|
|
31
|
+
accessibilityIgnoresInvertColors: isBoolean,
|
|
32
|
+
accessibilityLanguage: isString,
|
|
33
|
+
accessibilityRespondsToUserInteraction: isBoolean,
|
|
34
|
+
accessibilityShowsLargeContentViewer: isBoolean,
|
|
35
|
+
accessibilityLargeContentTitle: isString,
|
|
36
|
+
role: isAny,
|
|
37
|
+
ariaLabel: isString,
|
|
38
|
+
ariaLabelledBy: isString,
|
|
39
|
+
ariaLive: isAny,
|
|
40
|
+
ariaHidden: isBoolean,
|
|
41
|
+
ariaBusy: isBoolean,
|
|
42
|
+
ariaChecked: isAny,
|
|
43
|
+
ariaDisabled: isBoolean,
|
|
44
|
+
ariaExpanded: isBoolean,
|
|
45
|
+
ariaSelected: isBoolean,
|
|
46
|
+
ariaModal: isBoolean,
|
|
47
|
+
ariaValueMax: isNumber,
|
|
48
|
+
ariaValueMin: isNumber,
|
|
49
|
+
ariaValueNow: isNumber,
|
|
50
|
+
ariaValueText: isString,
|
|
51
|
+
onAccessibilityAction: isAny,
|
|
52
|
+
onAccessibilityTap: isAny,
|
|
53
|
+
onMagicTap: isAny,
|
|
54
|
+
onAccessibilityEscape: isAny,
|
|
55
|
+
onLoadStart: isAny,
|
|
56
|
+
onLoad: isAny,
|
|
57
|
+
onLoadEnd: isAny,
|
|
58
|
+
onError: isAny,
|
|
59
|
+
onProgress: isAny,
|
|
60
|
+
onPartialLoad: isAny,
|
|
61
|
+
};
|
|
62
|
+
// The name a template binds -> the `aria-*` prop RN spells
|
|
63
|
+
const ARIA_PROP_NAMES = {
|
|
64
|
+
ariaLabel: 'aria-label',
|
|
65
|
+
ariaLabelledBy: 'aria-labelledby',
|
|
66
|
+
ariaLive: 'aria-live',
|
|
67
|
+
ariaHidden: 'aria-hidden',
|
|
68
|
+
ariaBusy: 'aria-busy',
|
|
69
|
+
ariaChecked: 'aria-checked',
|
|
70
|
+
ariaDisabled: 'aria-disabled',
|
|
71
|
+
ariaExpanded: 'aria-expanded',
|
|
72
|
+
ariaSelected: 'aria-selected',
|
|
73
|
+
ariaModal: 'aria-modal',
|
|
74
|
+
ariaValueMax: 'aria-valuemax',
|
|
75
|
+
ariaValueMin: 'aria-valuemin',
|
|
76
|
+
ariaValueNow: 'aria-valuenow',
|
|
77
|
+
ariaValueText: 'aria-valuetext',
|
|
78
|
+
};
|
|
79
|
+
const RESIZE_MODES = [
|
|
80
|
+
'cover',
|
|
81
|
+
'contain',
|
|
82
|
+
'stretch',
|
|
83
|
+
'repeat',
|
|
84
|
+
'center',
|
|
85
|
+
'none',
|
|
86
|
+
];
|
|
87
|
+
function narrowTo(value, guard) {
|
|
88
|
+
return guard(value) ? value : undefined;
|
|
89
|
+
}
|
|
90
|
+
function isSource(value) {
|
|
91
|
+
return (typeof value === 'number' || (typeof value === 'object' && value !== null));
|
|
92
|
+
}
|
|
93
|
+
function isStyle(value) {
|
|
94
|
+
return typeof value === 'object' && value !== null;
|
|
95
|
+
}
|
|
96
|
+
function isCrossOrigin(value) {
|
|
97
|
+
return value === 'anonymous' || value === 'use-credentials';
|
|
98
|
+
}
|
|
99
|
+
export function isImageEventCallback(value) {
|
|
100
|
+
return typeof value === 'function';
|
|
101
|
+
}
|
|
102
|
+
// An animated bag may carry the RN `aria-*` spelling instead of the name a template binds
|
|
103
|
+
function inputValue(input, key) {
|
|
104
|
+
const rnName = ARIA_PROP_NAMES[key];
|
|
105
|
+
return input[key] ?? (rnName === undefined ? undefined : input[rnName]);
|
|
106
|
+
}
|
|
107
|
+
function passthroughOf(input) {
|
|
108
|
+
const passthrough = {};
|
|
109
|
+
for (const [key, guard] of Object.entries(PASSTHROUGH_GUARDS)) {
|
|
110
|
+
const value = inputValue(input, key);
|
|
111
|
+
passthrough[ARIA_PROP_NAMES[key] ?? key] = guard(value) ? value : undefined;
|
|
112
|
+
}
|
|
113
|
+
return passthrough;
|
|
114
|
+
}
|
|
115
|
+
export function resolveImageProps(input) {
|
|
116
|
+
return renderImage({
|
|
117
|
+
source: narrowTo(input['source'], isSource),
|
|
118
|
+
defaultSource: narrowTo(input['defaultSource'], isSource),
|
|
119
|
+
loadingIndicatorSource: narrowTo(input['loadingIndicatorSource'], isSource),
|
|
120
|
+
style: narrowTo(input['style'], isStyle),
|
|
121
|
+
resizeMode: RESIZE_MODES.find(mode => mode === input['resizeMode']),
|
|
122
|
+
tintColor: narrowTo(input['tintColor'], isProcessableColor),
|
|
123
|
+
src: narrowTo(input['src'], isString),
|
|
124
|
+
srcSet: narrowTo(input['srcSet'], isString),
|
|
125
|
+
alt: narrowTo(input['alt'], isString),
|
|
126
|
+
width: narrowTo(input['width'], isNumber),
|
|
127
|
+
height: narrowTo(input['height'], isNumber),
|
|
128
|
+
crossOrigin: narrowTo(input['crossOrigin'], isCrossOrigin),
|
|
129
|
+
referrerPolicy: narrowTo(input['referrerPolicy'], isString),
|
|
130
|
+
passthrough: resolveAccessibilityProps(passthroughOf(input)),
|
|
131
|
+
}).props;
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=image-props-resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-props-resolve.js","sourceRoot":"","sources":["../../../src/components/image-props-resolve.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,OAAO,EACL,WAAW,EACX,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AK,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QACxC,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,YAAY,CAAC,CAAC;QACnE,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;QAC3D,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC;QACrC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;QAC3C,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC;QACrC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;QACzC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;QAC3C,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;QAC1D,cAAc,EAAE,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC;QAC3D,WAAW,EAAE,yBAAyB,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC7D,CAAC,CAAC,KAAK,CAAC;AACX,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { type IGatedAccessibilityEvent } from '../gate-demand';
|
|
3
|
-
import { type IAccessibilityProps, type IAriaProps, type IImageProps
|
|
3
|
+
import { type IAccessibilityProps, type IAriaProps, type IImageProps } from '@symbiote-native/components';
|
|
4
4
|
import { type ISymbioteEvent } from '@symbiote-native/engine';
|
|
5
5
|
export { setImageSourceResolver } from '@symbiote-native/components';
|
|
6
6
|
export type { IImageProps, IImageSource, IImageSourceProp, IResizeMode, IImageSize, IImageCacheStatus, } from '@symbiote-native/components';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export declare function isImageEventCallback(value: unknown): value is (event: ISymbioteEvent) => void;
|
|
10
|
-
export declare function resolveImageProps(input: Record<string, unknown>): Record<string, unknown>;
|
|
7
|
+
export { IMAGE_INPUTS, IMAGE_OUTPUTS } from './image-inputs';
|
|
8
|
+
export { isImageEventCallback, resolveImageProps } from './image-props-resolve';
|
|
11
9
|
export declare abstract class ImageBase {
|
|
12
10
|
static readonly getSize: {
|
|
13
11
|
(uri: string): Promise<import("@symbiote-native/engine").IImageSize>;
|
|
@@ -20,13 +18,14 @@ export declare abstract class ImageBase {
|
|
|
20
18
|
static readonly prefetch: (uri: string, callback?: (requestId: number) => void) => Promise<boolean>;
|
|
21
19
|
static readonly abortPrefetch: (requestId: number) => void;
|
|
22
20
|
static readonly queryCache: (uris: string[]) => Promise<Record<string, import("@symbiote-native/engine").IImageCacheStatus>>;
|
|
23
|
-
static readonly resolveAssetSource: (source: IImageSourceProp) => unknown;
|
|
21
|
+
static readonly resolveAssetSource: (source: import("@symbiote-native/engine").IImageSourceProp) => unknown;
|
|
24
22
|
source: unknown;
|
|
25
23
|
defaultSource: unknown;
|
|
26
24
|
loadingIndicatorSource: unknown;
|
|
27
25
|
style: unknown;
|
|
28
26
|
resizeMode: unknown;
|
|
29
27
|
resizeMethod: IImageProps['resizeMethod'];
|
|
28
|
+
resizeMultiplier: number | undefined;
|
|
30
29
|
tintColor: unknown;
|
|
31
30
|
blurRadius: number | undefined;
|
|
32
31
|
capInsets: IImageProps['capInsets'];
|
|
@@ -103,6 +102,9 @@ export declare abstract class ImageBase {
|
|
|
103
102
|
handleProgress(event: Event): void;
|
|
104
103
|
handlePartialLoad(event: Event): void;
|
|
105
104
|
protected get imageInputProps(): Record<string, unknown>;
|
|
105
|
+
private get sourceInputProps();
|
|
106
|
+
private get accessibilityInputProps();
|
|
107
|
+
private get handlerInputProps();
|
|
106
108
|
protected readonly inputsRevision: import("@angular/core").WritableSignal<number>;
|
|
107
109
|
protected bumpInputsRevision(): void;
|
|
108
110
|
readonly imageProps: import("@angular/core").Signal<Record<string, unknown>>;
|