@symbiote-native/angular 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/babel-register-composed.cjs +11 -3
- package/build/angular/anchor-host-registry.d.ts +2 -0
- package/build/angular/anchor-host-registry.js +84 -0
- package/build/angular/anchor-host-registry.js.map +1 -0
- package/build/angular/components/input-accessory-view/index.d.ts +2 -1
- package/build/angular/components/input-accessory-view/index.js +28 -39
- package/build/angular/components/input-accessory-view/index.js.map +1 -1
- package/build/angular/components/scroll-view/projection.js +70 -48
- package/build/angular/components/scroll-view/projection.js.map +1 -1
- package/build/angular/components/scroll-view/shared.js +28 -25
- package/build/angular/components/scroll-view/shared.js.map +1 -1
- package/build/angular/components/scroll-view/sticky-header.d.ts +6 -7
- package/build/angular/components/scroll-view/sticky-header.js +82 -65
- package/build/angular/components/scroll-view/sticky-header.js.map +1 -1
- package/build/angular/components/touchable/index.d.ts +2 -5
- package/build/angular/components/touchable/index.js +36 -56
- package/build/angular/components/touchable/index.js.map +1 -1
- package/build/angular/components/virtualized-list/index.d.ts +5 -20
- package/build/angular/components/virtualized-list/index.js +145 -275
- package/build/angular/components/virtualized-list/index.js.map +1 -1
- package/build/angular/components/virtualized-section-list/index.js +2 -4
- package/build/angular/components/virtualized-section-list/index.js.map +1 -1
- package/build/angular/index.d.ts +2 -1
- package/build/angular/index.js +6 -1
- package/build/angular/index.js.map +1 -1
- package/build/angular/renderer/index.d.ts +0 -1
- package/build/angular/renderer/index.js +5 -60
- package/build/angular/renderer/index.js.map +1 -1
- package/package.json +8 -4
- package/src/anchor-host-registry.ts +88 -0
- package/src/components/input-accessory-view/index.ts +30 -39
- package/src/components/scroll-view/projection.ts +76 -46
- package/src/components/scroll-view/shared.ts +27 -19
- package/src/components/scroll-view/sticky-header.ts +89 -64
- package/src/components/touchable/index.ts +52 -66
- package/src/components/virtualized-list/index.ts +157 -368
- package/src/components/virtualized-section-list/index.ts +6 -3
- package/src/index.ts +6 -1
- package/src/renderer/index.ts +5 -63
- package/build/bootstrap.d.ts +0 -7
- package/build/bootstrap.js +0 -14
- package/build/components/activity-indicator/index.android.d.ts +0 -9
- package/build/components/activity-indicator/index.android.js +0 -64
- package/build/components/activity-indicator/index.d.ts +0 -1
- package/build/components/activity-indicator/index.ios.d.ts +0 -5
- package/build/components/activity-indicator/index.ios.js +0 -64
- package/build/components/activity-indicator/index.js +0 -3
- package/build/components/activity-indicator/shared.d.ts +0 -64
- package/build/components/activity-indicator/shared.js +0 -424
- package/build/components/button.d.ts +0 -60
- package/build/components/button.js +0 -456
- package/build/components/flat-list/index.d.ts +0 -119
- package/build/components/flat-list/index.js +0 -691
- package/build/components/image/index.android.d.ts +0 -7
- package/build/components/image/index.android.js +0 -88
- package/build/components/image/index.d.ts +0 -1
- package/build/components/image/index.ios.d.ts +0 -7
- package/build/components/image/index.ios.js +0 -88
- package/build/components/image/index.js +0 -2
- package/build/components/image/shared.d.ts +0 -101
- package/build/components/image/shared.js +0 -405
- package/build/components/image-background.d.ts +0 -78
- package/build/components/image-background.js +0 -583
- package/build/components/input-accessory-view/index.d.ts +0 -56
- package/build/components/input-accessory-view/index.js +0 -403
- package/build/components/keyboard-avoiding-view/index.d.ts +0 -79
- package/build/components/keyboard-avoiding-view/index.js +0 -504
- package/build/components/modal/index.d.ts +0 -89
- package/build/components/modal/index.js +0 -529
- package/build/components/pressable/index.d.ts +0 -120
- package/build/components/pressable/index.js +0 -639
- package/build/components/refresh-control/index.d.ts +0 -83
- package/build/components/refresh-control/index.js +0 -509
- package/build/components/safe-area-view/index.d.ts +0 -54
- package/build/components/safe-area-view/index.js +0 -388
- package/build/components/scroll-view/index.android.d.ts +0 -16
- package/build/components/scroll-view/index.android.js +0 -228
- package/build/components/scroll-view/index.d.ts +0 -3
- package/build/components/scroll-view/index.ios.d.ts +0 -6
- package/build/components/scroll-view/index.ios.js +0 -113
- package/build/components/scroll-view/index.js +0 -5
- package/build/components/scroll-view/projection.d.ts +0 -32
- package/build/components/scroll-view/projection.js +0 -311
- package/build/components/scroll-view/shared.d.ts +0 -225
- package/build/components/scroll-view/shared.js +0 -757
- package/build/components/scroll-view/sticky-header.d.ts +0 -38
- package/build/components/scroll-view/sticky-header.js +0 -257
- package/build/components/section-list/index.d.ts +0 -113
- package/build/components/section-list/index.js +0 -768
- package/build/components/switch/index.android.d.ts +0 -17
- package/build/components/switch/index.android.js +0 -107
- package/build/components/switch/index.d.ts +0 -1
- package/build/components/switch/index.ios.d.ts +0 -16
- package/build/components/switch/index.ios.js +0 -106
- package/build/components/switch/index.js +0 -3
- package/build/components/switch/shared.d.ts +0 -37
- package/build/components/switch/shared.js +0 -176
- package/build/components/text-input.d.ts +0 -150
- package/build/components/text-input.js +0 -821
- package/build/components/touchable/index.d.ts +0 -241
- package/build/components/touchable/index.js +0 -1672
- package/build/components/touchable-native-feedback/index.d.ts +0 -80
- package/build/components/touchable-native-feedback/index.js +0 -545
- package/build/components/virtualized-list/directives.d.ts +0 -41
- package/build/components/virtualized-list/directives.js +0 -249
- package/build/components/virtualized-list/index.d.ts +0 -265
- package/build/components/virtualized-list/index.js +0 -1343
- package/build/components/virtualized-section-list/directives.d.ts +0 -28
- package/build/components/virtualized-section-list/directives.js +0 -148
- package/build/components/virtualized-section-list/index.d.ts +0 -175
- package/build/components/virtualized-section-list/index.js +0 -854
- package/build/components.d.ts +0 -39
- package/build/components.js +0 -37
- package/build/create-portal/index.d.ts +0 -17
- package/build/create-portal/index.js +0 -128
- package/build/create-tunnel/index.d.ts +0 -29
- package/build/create-tunnel/index.js +0 -181
- package/build/descriptor-to-angular/index.d.ts +0 -19
- package/build/descriptor-to-angular/index.js +0 -186
- package/build/host-instance/index.d.ts +0 -2
- package/build/host-instance/index.js +0 -36
- package/build/index.d.ts +0 -21
- package/build/index.js +0 -40
- package/build/modules/animated/animated-leaf-binder/index.d.ts +0 -14
- package/build/modules/animated/animated-leaf-binder/index.js +0 -90
- package/build/modules/animated/animated-leaf-binder.d.ts +0 -14
- package/build/modules/animated/animated-leaf-binder.js +0 -90
- package/build/modules/animated/create-animated-component.d.ts +0 -48
- package/build/modules/animated/create-animated-component.js +0 -425
- package/build/modules/animated/index.d.ts +0 -51
- package/build/modules/animated/index.js +0 -58
- package/build/modules/app-registry/index.d.ts +0 -7
- package/build/modules/app-registry/index.js +0 -22
- package/build/modules/status-bar/index.d.ts +0 -17
- package/build/modules/status-bar/index.js +0 -121
- package/build/primitives/index.d.ts +0 -32
- package/build/primitives/index.js +0 -386
- package/build/primitives/shared.d.ts +0 -83
- package/build/primitives/shared.js +0 -230
- package/build/render/index.d.ts +0 -11
- package/build/render/index.js +0 -170
- package/build/renderer/index.d.ts +0 -38
- package/build/renderer/index.js +0 -355
- package/build/services/color-scheme.service.d.ts +0 -13
- package/build/services/color-scheme.service.js +0 -72
- package/build/services/index.d.ts +0 -2
- package/build/services/index.js +0 -2
- package/build/services/window-dimensions.service.d.ts +0 -13
- package/build/services/window-dimensions.service.js +0 -83
- package/src/__tests__/responder-change-detection.test.ts +0 -102
- package/src/__tests__/responder-nested-cd.test.ts +0 -113
- package/src/angular-gaps.test.ts +0 -142
- package/src/angular-imports.test.ts +0 -100
- package/src/components/activity-indicator/activity-indicator-class-style.test.ts +0 -44
- package/src/components/activity-indicator/activity-indicator.test.ts +0 -131
- package/src/components/flat-list/column-wrapper-style-class.test.ts +0 -116
- package/src/components/flat-list/flat-list-array-style.test.ts +0 -131
- package/src/components/flat-list/flat-list-class-style.test.ts +0 -74
- package/src/components/flat-list/flat-list-scroll-containment.test.ts +0 -107
- package/src/components/flat-list/flat-list.test.ts +0 -99
- package/src/components/image/image-class-style.test.ts +0 -46
- package/src/components/image-background-class-style.test.ts +0 -48
- package/src/components/image-background-style-class.test.ts +0 -79
- package/src/components/input-accessory-view/input-accessory-view.test.ts +0 -43
- package/src/components/keyboard-avoiding-view/keyboard-avoiding-view.test.ts +0 -54
- package/src/components/modal/modal.test.ts +0 -43
- package/src/components/pressable/pressable.test.ts +0 -85
- package/src/components/refresh-control/refresh-control.test.ts +0 -41
- package/src/components/safe-area-view/safe-area-view.test.ts +0 -43
- package/src/components/scroll-view/android-scroll-view-axis-projection.test.ts +0 -123
- package/src/components/scroll-view/content-container-style-class.test.ts +0 -75
- package/src/components/scroll-view/scroll-view-class-style.test.ts +0 -134
- package/src/components/scroll-view/scroll-view-projection.test.ts +0 -194
- package/src/components/switch/android-switch-class.test.ts +0 -42
- package/src/components/switch/switch.test.ts +0 -92
- package/src/components/text-input-class-style.test.ts +0 -54
- package/src/components/touchable/touchable.test.ts +0 -102
- package/src/components/touchable-native-feedback/touchable-native-feedback.test.ts +0 -49
- package/src/components/virtualized-list/virtualized-list-class-style.test.ts +0 -76
- package/src/components/virtualized-section-list/virtualized-section-list-class-style.test.ts +0 -60
- package/src/create-portal/create-portal.test.ts +0 -90
- package/src/create-tunnel/create-tunnel.test.ts +0 -120
- package/src/descriptor-to-angular/descriptor-outlet.test.ts +0 -94
- package/src/host-instance/host-instance.test.ts +0 -49
- package/src/modules/animated/animated-leaf-binder/animated-leaf-binder.test.ts +0 -116
- package/src/modules/animated/animated-leaf-binder.test.ts +0 -116
- package/src/modules/animated/animated-scroll-view.test.ts +0 -102
- package/src/modules/app-registry/app-registry.test.ts +0 -106
- package/src/modules/status-bar/status-bar.test.ts +0 -50
- package/src/render/render.test.ts +0 -147
- package/src/renderer/renderer.test.ts +0 -202
- package/src/services/services.test.ts +0 -163
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { imageStatics, renderImage, resolveAccessibilityProps, } from '@symbiote-native/components';
|
|
3
|
-
import { isSymbioteEvent, } from '@symbiote-native/engine';
|
|
4
|
-
export { setImageSourceResolver } from '@symbiote-native/components';
|
|
5
|
-
export const IMAGE_INPUTS = [
|
|
6
|
-
'source',
|
|
7
|
-
'defaultSource',
|
|
8
|
-
'loadingIndicatorSource',
|
|
9
|
-
'style',
|
|
10
|
-
'resizeMode',
|
|
11
|
-
'resizeMethod',
|
|
12
|
-
'tintColor',
|
|
13
|
-
'blurRadius',
|
|
14
|
-
'capInsets',
|
|
15
|
-
'fadeDuration',
|
|
16
|
-
'progressiveRenderingEnabled',
|
|
17
|
-
'src',
|
|
18
|
-
'srcSet',
|
|
19
|
-
'alt',
|
|
20
|
-
'width',
|
|
21
|
-
'height',
|
|
22
|
-
'crossOrigin',
|
|
23
|
-
'referrerPolicy',
|
|
24
|
-
'testID',
|
|
25
|
-
'nativeID',
|
|
26
|
-
'accessible',
|
|
27
|
-
'accessibilityLabel',
|
|
28
|
-
'accessibilityHint',
|
|
29
|
-
'accessibilityRole',
|
|
30
|
-
'accessibilityState',
|
|
31
|
-
'accessibilityValue',
|
|
32
|
-
'accessibilityActions',
|
|
33
|
-
'accessibilityLabelledBy',
|
|
34
|
-
'importantForAccessibility',
|
|
35
|
-
'accessibilityLiveRegion',
|
|
36
|
-
'screenReaderFocusable',
|
|
37
|
-
'accessibilityViewIsModal',
|
|
38
|
-
'accessibilityElementsHidden',
|
|
39
|
-
'accessibilityIgnoresInvertColors',
|
|
40
|
-
'accessibilityLanguage',
|
|
41
|
-
'accessibilityRespondsToUserInteraction',
|
|
42
|
-
'accessibilityShowsLargeContentViewer',
|
|
43
|
-
'accessibilityLargeContentTitle',
|
|
44
|
-
'role',
|
|
45
|
-
'ariaLabel: aria-label',
|
|
46
|
-
'ariaLabelledBy: aria-labelledby',
|
|
47
|
-
'ariaLive: aria-live',
|
|
48
|
-
'ariaHidden: aria-hidden',
|
|
49
|
-
'ariaBusy: aria-busy',
|
|
50
|
-
'ariaChecked: aria-checked',
|
|
51
|
-
'ariaDisabled: aria-disabled',
|
|
52
|
-
'ariaExpanded: aria-expanded',
|
|
53
|
-
'ariaSelected: aria-selected',
|
|
54
|
-
'ariaModal: aria-modal',
|
|
55
|
-
'ariaValueMax: aria-valuemax',
|
|
56
|
-
'ariaValueMin: aria-valuemin',
|
|
57
|
-
'ariaValueNow: aria-valuenow',
|
|
58
|
-
'ariaValueText: aria-valuetext',
|
|
59
|
-
'onAccessibilityAction',
|
|
60
|
-
'onAccessibilityTap',
|
|
61
|
-
'onMagicTap',
|
|
62
|
-
'onAccessibilityEscape',
|
|
63
|
-
'onLoadStart',
|
|
64
|
-
'onLoad',
|
|
65
|
-
'onLoadEnd',
|
|
66
|
-
'onError',
|
|
67
|
-
'onProgress',
|
|
68
|
-
'onPartialLoad',
|
|
69
|
-
];
|
|
70
|
-
export const IMAGE_OUTPUTS = [
|
|
71
|
-
'accessibilityAction',
|
|
72
|
-
'accessibilityTap',
|
|
73
|
-
'magicTap',
|
|
74
|
-
'accessibilityEscape',
|
|
75
|
-
'loadStart',
|
|
76
|
-
'load',
|
|
77
|
-
'loadEnd',
|
|
78
|
-
'error',
|
|
79
|
-
'progress',
|
|
80
|
-
'partialLoad',
|
|
81
|
-
];
|
|
82
|
-
function asSource(value) {
|
|
83
|
-
if (typeof value === 'number')
|
|
84
|
-
return value;
|
|
85
|
-
if (typeof value === 'object' && value !== null)
|
|
86
|
-
return value;
|
|
87
|
-
return undefined;
|
|
88
|
-
}
|
|
89
|
-
function asResizeMode(value) {
|
|
90
|
-
if (value === 'cover' ||
|
|
91
|
-
value === 'contain' ||
|
|
92
|
-
value === 'stretch' ||
|
|
93
|
-
value === 'repeat' ||
|
|
94
|
-
value === 'center') {
|
|
95
|
-
return value;
|
|
96
|
-
}
|
|
97
|
-
return undefined;
|
|
98
|
-
}
|
|
99
|
-
function asString(value) {
|
|
100
|
-
return typeof value === 'string' ? value : undefined;
|
|
101
|
-
}
|
|
102
|
-
function asNumber(value) {
|
|
103
|
-
return typeof value === 'number' ? value : undefined;
|
|
104
|
-
}
|
|
105
|
-
function asCrossOrigin(value) {
|
|
106
|
-
return value === 'anonymous' || value === 'use-credentials' ? value : undefined;
|
|
107
|
-
}
|
|
108
|
-
function asStyle(value) {
|
|
109
|
-
return typeof value === 'object' && value !== null ? value : undefined;
|
|
110
|
-
}
|
|
111
|
-
export function resolveImageProps(input) {
|
|
112
|
-
const passthrough = {
|
|
113
|
-
resizeMethod: input['resizeMethod'],
|
|
114
|
-
blurRadius: asNumber(input['blurRadius']),
|
|
115
|
-
capInsets: input['capInsets'],
|
|
116
|
-
fadeDuration: asNumber(input['fadeDuration']),
|
|
117
|
-
progressiveRenderingEnabled: typeof input['progressiveRenderingEnabled'] === 'boolean'
|
|
118
|
-
? input['progressiveRenderingEnabled']
|
|
119
|
-
: undefined,
|
|
120
|
-
testID: asString(input['testID']),
|
|
121
|
-
nativeID: asString(input['nativeID']),
|
|
122
|
-
accessible: typeof input['accessible'] === 'boolean' ? input['accessible'] : undefined,
|
|
123
|
-
accessibilityLabel: asString(input['accessibilityLabel']),
|
|
124
|
-
accessibilityHint: asString(input['accessibilityHint']),
|
|
125
|
-
accessibilityRole: input['accessibilityRole'],
|
|
126
|
-
accessibilityState: input['accessibilityState'],
|
|
127
|
-
accessibilityValue: input['accessibilityValue'],
|
|
128
|
-
accessibilityActions: input['accessibilityActions'],
|
|
129
|
-
accessibilityLabelledBy: input['accessibilityLabelledBy'],
|
|
130
|
-
importantForAccessibility: input['importantForAccessibility'],
|
|
131
|
-
accessibilityLiveRegion: input['accessibilityLiveRegion'],
|
|
132
|
-
screenReaderFocusable: typeof input['screenReaderFocusable'] === 'boolean'
|
|
133
|
-
? input['screenReaderFocusable']
|
|
134
|
-
: undefined,
|
|
135
|
-
accessibilityViewIsModal: typeof input['accessibilityViewIsModal'] === 'boolean'
|
|
136
|
-
? input['accessibilityViewIsModal']
|
|
137
|
-
: undefined,
|
|
138
|
-
accessibilityElementsHidden: typeof input['accessibilityElementsHidden'] === 'boolean'
|
|
139
|
-
? input['accessibilityElementsHidden']
|
|
140
|
-
: undefined,
|
|
141
|
-
accessibilityIgnoresInvertColors: typeof input['accessibilityIgnoresInvertColors'] === 'boolean'
|
|
142
|
-
? input['accessibilityIgnoresInvertColors']
|
|
143
|
-
: undefined,
|
|
144
|
-
accessibilityLanguage: asString(input['accessibilityLanguage']),
|
|
145
|
-
accessibilityRespondsToUserInteraction: typeof input['accessibilityRespondsToUserInteraction'] === 'boolean'
|
|
146
|
-
? input['accessibilityRespondsToUserInteraction']
|
|
147
|
-
: undefined,
|
|
148
|
-
accessibilityShowsLargeContentViewer: typeof input['accessibilityShowsLargeContentViewer'] === 'boolean'
|
|
149
|
-
? input['accessibilityShowsLargeContentViewer']
|
|
150
|
-
: undefined,
|
|
151
|
-
accessibilityLargeContentTitle: asString(input['accessibilityLargeContentTitle']),
|
|
152
|
-
role: input['role'],
|
|
153
|
-
'aria-label': asString(input['ariaLabel'] ?? input['aria-label']),
|
|
154
|
-
'aria-labelledby': asString(input['ariaLabelledBy'] ?? input['aria-labelledby']),
|
|
155
|
-
'aria-live': input['ariaLive'],
|
|
156
|
-
'aria-hidden': typeof input['ariaHidden'] === 'boolean' ? input['ariaHidden'] : undefined,
|
|
157
|
-
'aria-busy': typeof input['ariaBusy'] === 'boolean' ? input['ariaBusy'] : undefined,
|
|
158
|
-
'aria-checked': input['ariaChecked'],
|
|
159
|
-
'aria-disabled': typeof input['ariaDisabled'] === 'boolean' ? input['ariaDisabled'] : undefined,
|
|
160
|
-
'aria-expanded': typeof input['ariaExpanded'] === 'boolean' ? input['ariaExpanded'] : undefined,
|
|
161
|
-
'aria-selected': typeof input['ariaSelected'] === 'boolean' ? input['ariaSelected'] : undefined,
|
|
162
|
-
'aria-modal': typeof input['ariaModal'] === 'boolean' ? input['ariaModal'] : undefined,
|
|
163
|
-
'aria-valuemax': asNumber(input['ariaValueMax']),
|
|
164
|
-
'aria-valuemin': asNumber(input['ariaValueMin']),
|
|
165
|
-
'aria-valuenow': asNumber(input['ariaValueNow']),
|
|
166
|
-
'aria-valuetext': asString(input['ariaValueText']),
|
|
167
|
-
onAccessibilityAction: input['onAccessibilityAction'],
|
|
168
|
-
onAccessibilityTap: input['onAccessibilityTap'],
|
|
169
|
-
onMagicTap: input['onMagicTap'],
|
|
170
|
-
onAccessibilityEscape: input['onAccessibilityEscape'],
|
|
171
|
-
onLoadStart: input['onLoadStart'],
|
|
172
|
-
onLoad: input['onLoad'],
|
|
173
|
-
onLoadEnd: input['onLoadEnd'],
|
|
174
|
-
onError: input['onError'],
|
|
175
|
-
onProgress: input['onProgress'],
|
|
176
|
-
onPartialLoad: input['onPartialLoad'],
|
|
177
|
-
};
|
|
178
|
-
return renderImage({
|
|
179
|
-
source: asSource(input['source']),
|
|
180
|
-
defaultSource: asSource(input['defaultSource']),
|
|
181
|
-
loadingIndicatorSource: asSource(input['loadingIndicatorSource']),
|
|
182
|
-
style: asStyle(input['style']),
|
|
183
|
-
resizeMode: asResizeMode(input['resizeMode']),
|
|
184
|
-
tintColor: asString(input['tintColor']),
|
|
185
|
-
src: asString(input['src']),
|
|
186
|
-
srcSet: asString(input['srcSet']),
|
|
187
|
-
alt: asString(input['alt']),
|
|
188
|
-
width: asNumber(input['width']),
|
|
189
|
-
height: asNumber(input['height']),
|
|
190
|
-
crossOrigin: asCrossOrigin(input['crossOrigin']),
|
|
191
|
-
referrerPolicy: asString(input['referrerPolicy']),
|
|
192
|
-
passthrough: resolveAccessibilityProps(passthrough),
|
|
193
|
-
}).props;
|
|
194
|
-
}
|
|
195
|
-
export class ImageBase {
|
|
196
|
-
static getSize = imageStatics.getSize;
|
|
197
|
-
static getSizeWithHeaders = imageStatics.getSizeWithHeaders;
|
|
198
|
-
static prefetch = imageStatics.prefetch;
|
|
199
|
-
static abortPrefetch = imageStatics.abortPrefetch;
|
|
200
|
-
static queryCache = imageStatics.queryCache;
|
|
201
|
-
static resolveAssetSource = imageStatics.resolveAssetSource;
|
|
202
|
-
source;
|
|
203
|
-
defaultSource;
|
|
204
|
-
loadingIndicatorSource;
|
|
205
|
-
style;
|
|
206
|
-
resizeMode;
|
|
207
|
-
resizeMethod;
|
|
208
|
-
tintColor;
|
|
209
|
-
blurRadius;
|
|
210
|
-
capInsets;
|
|
211
|
-
fadeDuration;
|
|
212
|
-
progressiveRenderingEnabled;
|
|
213
|
-
src;
|
|
214
|
-
srcSet;
|
|
215
|
-
alt;
|
|
216
|
-
width;
|
|
217
|
-
height;
|
|
218
|
-
crossOrigin;
|
|
219
|
-
referrerPolicy;
|
|
220
|
-
testID;
|
|
221
|
-
nativeID;
|
|
222
|
-
accessible;
|
|
223
|
-
accessibilityLabel;
|
|
224
|
-
accessibilityHint;
|
|
225
|
-
accessibilityRole;
|
|
226
|
-
accessibilityState;
|
|
227
|
-
accessibilityValue;
|
|
228
|
-
accessibilityActions;
|
|
229
|
-
accessibilityLabelledBy;
|
|
230
|
-
importantForAccessibility;
|
|
231
|
-
accessibilityLiveRegion;
|
|
232
|
-
screenReaderFocusable;
|
|
233
|
-
accessibilityViewIsModal;
|
|
234
|
-
accessibilityElementsHidden;
|
|
235
|
-
accessibilityIgnoresInvertColors;
|
|
236
|
-
accessibilityLanguage;
|
|
237
|
-
accessibilityRespondsToUserInteraction;
|
|
238
|
-
accessibilityShowsLargeContentViewer;
|
|
239
|
-
accessibilityLargeContentTitle;
|
|
240
|
-
role;
|
|
241
|
-
ariaLabel;
|
|
242
|
-
ariaLabelledBy;
|
|
243
|
-
ariaLive;
|
|
244
|
-
ariaHidden;
|
|
245
|
-
ariaBusy;
|
|
246
|
-
ariaChecked;
|
|
247
|
-
ariaDisabled;
|
|
248
|
-
ariaExpanded;
|
|
249
|
-
ariaSelected;
|
|
250
|
-
ariaModal;
|
|
251
|
-
ariaValueMax;
|
|
252
|
-
ariaValueMin;
|
|
253
|
-
ariaValueNow;
|
|
254
|
-
ariaValueText;
|
|
255
|
-
onAccessibilityAction;
|
|
256
|
-
onAccessibilityTap;
|
|
257
|
-
onMagicTap;
|
|
258
|
-
onAccessibilityEscape;
|
|
259
|
-
onLoadStart;
|
|
260
|
-
onLoad;
|
|
261
|
-
onLoadEnd;
|
|
262
|
-
onError;
|
|
263
|
-
onProgress;
|
|
264
|
-
onPartialLoad;
|
|
265
|
-
accessibilityAction = new EventEmitter();
|
|
266
|
-
accessibilityTap = new EventEmitter();
|
|
267
|
-
magicTap = new EventEmitter();
|
|
268
|
-
accessibilityEscape = new EventEmitter();
|
|
269
|
-
loadStart = new EventEmitter();
|
|
270
|
-
load = new EventEmitter();
|
|
271
|
-
loadEnd = new EventEmitter();
|
|
272
|
-
error = new EventEmitter();
|
|
273
|
-
progress = new EventEmitter();
|
|
274
|
-
partialLoad = new EventEmitter();
|
|
275
|
-
handleAccessibilityAction(event) {
|
|
276
|
-
if (!isSymbioteEvent(event))
|
|
277
|
-
return;
|
|
278
|
-
this.onAccessibilityAction?.(event);
|
|
279
|
-
this.accessibilityAction.emit(event);
|
|
280
|
-
}
|
|
281
|
-
handleAccessibilityTap(event) {
|
|
282
|
-
if (!isSymbioteEvent(event))
|
|
283
|
-
return;
|
|
284
|
-
this.onAccessibilityTap?.(event);
|
|
285
|
-
this.accessibilityTap.emit(event);
|
|
286
|
-
}
|
|
287
|
-
handleMagicTap(event) {
|
|
288
|
-
if (!isSymbioteEvent(event))
|
|
289
|
-
return;
|
|
290
|
-
this.onMagicTap?.(event);
|
|
291
|
-
this.magicTap.emit(event);
|
|
292
|
-
}
|
|
293
|
-
handleAccessibilityEscape(event) {
|
|
294
|
-
if (!isSymbioteEvent(event))
|
|
295
|
-
return;
|
|
296
|
-
this.onAccessibilityEscape?.(event);
|
|
297
|
-
this.accessibilityEscape.emit(event);
|
|
298
|
-
}
|
|
299
|
-
handleLoadStart(event) {
|
|
300
|
-
if (!isSymbioteEvent(event))
|
|
301
|
-
return;
|
|
302
|
-
this.onLoadStart?.(event);
|
|
303
|
-
this.loadStart.emit(event);
|
|
304
|
-
}
|
|
305
|
-
handleLoad(event) {
|
|
306
|
-
if (!isSymbioteEvent(event))
|
|
307
|
-
return;
|
|
308
|
-
this.onLoad?.(event);
|
|
309
|
-
this.load.emit(event);
|
|
310
|
-
}
|
|
311
|
-
handleLoadEnd(event) {
|
|
312
|
-
if (!isSymbioteEvent(event))
|
|
313
|
-
return;
|
|
314
|
-
this.onLoadEnd?.(event);
|
|
315
|
-
this.loadEnd.emit(event);
|
|
316
|
-
}
|
|
317
|
-
handleError(event) {
|
|
318
|
-
if (!isSymbioteEvent(event))
|
|
319
|
-
return;
|
|
320
|
-
this.onError?.(event);
|
|
321
|
-
this.error.emit(event);
|
|
322
|
-
}
|
|
323
|
-
handleProgress(event) {
|
|
324
|
-
if (!isSymbioteEvent(event))
|
|
325
|
-
return;
|
|
326
|
-
this.onProgress?.(event);
|
|
327
|
-
this.progress.emit(event);
|
|
328
|
-
}
|
|
329
|
-
handlePartialLoad(event) {
|
|
330
|
-
if (!isSymbioteEvent(event))
|
|
331
|
-
return;
|
|
332
|
-
this.onPartialLoad?.(event);
|
|
333
|
-
this.partialLoad.emit(event);
|
|
334
|
-
}
|
|
335
|
-
get imageInputProps() {
|
|
336
|
-
return {
|
|
337
|
-
source: this.source,
|
|
338
|
-
defaultSource: this.defaultSource,
|
|
339
|
-
loadingIndicatorSource: this.loadingIndicatorSource,
|
|
340
|
-
style: this.style,
|
|
341
|
-
resizeMode: this.resizeMode,
|
|
342
|
-
resizeMethod: this.resizeMethod,
|
|
343
|
-
tintColor: this.tintColor,
|
|
344
|
-
blurRadius: this.blurRadius,
|
|
345
|
-
capInsets: this.capInsets,
|
|
346
|
-
fadeDuration: this.fadeDuration,
|
|
347
|
-
progressiveRenderingEnabled: this.progressiveRenderingEnabled,
|
|
348
|
-
src: this.src,
|
|
349
|
-
srcSet: this.srcSet,
|
|
350
|
-
alt: this.alt,
|
|
351
|
-
width: this.width,
|
|
352
|
-
height: this.height,
|
|
353
|
-
crossOrigin: this.crossOrigin,
|
|
354
|
-
referrerPolicy: this.referrerPolicy,
|
|
355
|
-
testID: this.testID,
|
|
356
|
-
nativeID: this.nativeID,
|
|
357
|
-
accessible: this.accessible,
|
|
358
|
-
accessibilityLabel: this.accessibilityLabel,
|
|
359
|
-
accessibilityHint: this.accessibilityHint,
|
|
360
|
-
accessibilityRole: this.accessibilityRole,
|
|
361
|
-
accessibilityState: this.accessibilityState,
|
|
362
|
-
accessibilityValue: this.accessibilityValue,
|
|
363
|
-
accessibilityActions: this.accessibilityActions,
|
|
364
|
-
accessibilityLabelledBy: this.accessibilityLabelledBy,
|
|
365
|
-
importantForAccessibility: this.importantForAccessibility,
|
|
366
|
-
accessibilityLiveRegion: this.accessibilityLiveRegion,
|
|
367
|
-
screenReaderFocusable: this.screenReaderFocusable,
|
|
368
|
-
accessibilityViewIsModal: this.accessibilityViewIsModal,
|
|
369
|
-
accessibilityElementsHidden: this.accessibilityElementsHidden,
|
|
370
|
-
accessibilityIgnoresInvertColors: this.accessibilityIgnoresInvertColors,
|
|
371
|
-
accessibilityLanguage: this.accessibilityLanguage,
|
|
372
|
-
accessibilityRespondsToUserInteraction: this.accessibilityRespondsToUserInteraction,
|
|
373
|
-
accessibilityShowsLargeContentViewer: this.accessibilityShowsLargeContentViewer,
|
|
374
|
-
accessibilityLargeContentTitle: this.accessibilityLargeContentTitle,
|
|
375
|
-
role: this.role,
|
|
376
|
-
ariaLabel: this.ariaLabel,
|
|
377
|
-
ariaLabelledBy: this.ariaLabelledBy,
|
|
378
|
-
ariaLive: this.ariaLive,
|
|
379
|
-
ariaHidden: this.ariaHidden,
|
|
380
|
-
ariaBusy: this.ariaBusy,
|
|
381
|
-
ariaChecked: this.ariaChecked,
|
|
382
|
-
ariaDisabled: this.ariaDisabled,
|
|
383
|
-
ariaExpanded: this.ariaExpanded,
|
|
384
|
-
ariaSelected: this.ariaSelected,
|
|
385
|
-
ariaModal: this.ariaModal,
|
|
386
|
-
ariaValueMax: this.ariaValueMax,
|
|
387
|
-
ariaValueMin: this.ariaValueMin,
|
|
388
|
-
ariaValueNow: this.ariaValueNow,
|
|
389
|
-
ariaValueText: this.ariaValueText,
|
|
390
|
-
onAccessibilityAction: this.onAccessibilityAction,
|
|
391
|
-
onAccessibilityTap: this.onAccessibilityTap,
|
|
392
|
-
onMagicTap: this.onMagicTap,
|
|
393
|
-
onAccessibilityEscape: this.onAccessibilityEscape,
|
|
394
|
-
onLoadStart: this.onLoadStart,
|
|
395
|
-
onLoad: this.onLoad,
|
|
396
|
-
onLoadEnd: this.onLoadEnd,
|
|
397
|
-
onError: this.onError,
|
|
398
|
-
onProgress: this.onProgress,
|
|
399
|
-
onPartialLoad: this.onPartialLoad,
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
get imageProps() {
|
|
403
|
-
return resolveImageProps(this.imageInputProps);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type IAccessibilityProps, type IAccessibilityStateValue, type IAriaProps, type IImageProps, type IImageSourceProp, type IResizeMode } from '@symbiote-native/components';
|
|
3
|
-
import { type IStyleProp, type ISymbioteEvent, type IViewStyle } from '@symbiote-native/engine';
|
|
4
|
-
export interface IAngularImageBackgroundProps extends Omit<IImageProps, 'style'> {
|
|
5
|
-
style?: IStyleProp<IViewStyle>;
|
|
6
|
-
imageStyle?: IStyleProp<IViewStyle> | string;
|
|
7
|
-
}
|
|
8
|
-
export type IAngularImageBackgroundInputs = Omit<IAngularImageBackgroundProps, 'onAccessibilityAction' | 'onAccessibilityTap' | 'onMagicTap' | 'onAccessibilityEscape' | 'onLoadStart' | 'onLoad' | 'onLoadEnd' | 'onError' | 'onProgress' | 'onPartialLoad'>;
|
|
9
|
-
export declare class ImageBackground implements IAngularImageBackgroundInputs {
|
|
10
|
-
readonly accessibilityAction: EventEmitter<ISymbioteEvent>;
|
|
11
|
-
readonly accessibilityTap: EventEmitter<ISymbioteEvent>;
|
|
12
|
-
readonly magicTap: EventEmitter<ISymbioteEvent>;
|
|
13
|
-
readonly accessibilityEscape: EventEmitter<ISymbioteEvent>;
|
|
14
|
-
readonly loadStart: EventEmitter<ISymbioteEvent>;
|
|
15
|
-
readonly load: EventEmitter<ISymbioteEvent>;
|
|
16
|
-
readonly loadEnd: EventEmitter<ISymbioteEvent>;
|
|
17
|
-
readonly error: EventEmitter<ISymbioteEvent>;
|
|
18
|
-
readonly progress: EventEmitter<ISymbioteEvent>;
|
|
19
|
-
readonly partialLoad: EventEmitter<ISymbioteEvent>;
|
|
20
|
-
source?: IImageSourceProp;
|
|
21
|
-
defaultSource?: IImageSourceProp;
|
|
22
|
-
loadingIndicatorSource?: IImageSourceProp;
|
|
23
|
-
style?: IStyleProp<IViewStyle>;
|
|
24
|
-
imageStyleValue?: IStyleProp<IViewStyle> | string;
|
|
25
|
-
resizeMode?: IResizeMode;
|
|
26
|
-
resizeMethod?: IImageProps['resizeMethod'];
|
|
27
|
-
tintColor?: string;
|
|
28
|
-
blurRadius?: number;
|
|
29
|
-
capInsets?: IImageProps['capInsets'];
|
|
30
|
-
fadeDuration?: number;
|
|
31
|
-
progressiveRenderingEnabled?: boolean;
|
|
32
|
-
src?: string;
|
|
33
|
-
srcSet?: string;
|
|
34
|
-
alt?: string;
|
|
35
|
-
width?: number;
|
|
36
|
-
height?: number;
|
|
37
|
-
crossOrigin?: 'anonymous' | 'use-credentials';
|
|
38
|
-
referrerPolicy?: string;
|
|
39
|
-
testID?: string;
|
|
40
|
-
nativeID?: string;
|
|
41
|
-
accessible?: boolean;
|
|
42
|
-
accessibilityLabel?: string;
|
|
43
|
-
accessibilityHint?: string;
|
|
44
|
-
accessibilityRole?: IAccessibilityProps['accessibilityRole'];
|
|
45
|
-
accessibilityState?: IAccessibilityStateValue;
|
|
46
|
-
accessibilityValue?: IAccessibilityProps['accessibilityValue'];
|
|
47
|
-
accessibilityActions?: IAccessibilityProps['accessibilityActions'];
|
|
48
|
-
accessibilityLabelledBy?: string | string[];
|
|
49
|
-
importantForAccessibility?: IAccessibilityProps['importantForAccessibility'];
|
|
50
|
-
accessibilityLiveRegion?: IAccessibilityProps['accessibilityLiveRegion'];
|
|
51
|
-
screenReaderFocusable?: boolean;
|
|
52
|
-
accessibilityViewIsModal?: boolean;
|
|
53
|
-
accessibilityElementsHidden?: boolean;
|
|
54
|
-
accessibilityIgnoresInvertColors?: boolean;
|
|
55
|
-
accessibilityLanguage?: string;
|
|
56
|
-
accessibilityRespondsToUserInteraction?: boolean;
|
|
57
|
-
accessibilityShowsLargeContentViewer?: boolean;
|
|
58
|
-
accessibilityLargeContentTitle?: string;
|
|
59
|
-
role?: IAriaProps['role'];
|
|
60
|
-
ariaLabel?: string;
|
|
61
|
-
ariaLabelledBy?: string;
|
|
62
|
-
ariaLive?: IAriaProps['aria-live'];
|
|
63
|
-
ariaHidden?: boolean;
|
|
64
|
-
ariaBusy?: boolean;
|
|
65
|
-
ariaChecked?: boolean | 'mixed';
|
|
66
|
-
ariaDisabled?: boolean;
|
|
67
|
-
ariaExpanded?: boolean;
|
|
68
|
-
ariaSelected?: boolean;
|
|
69
|
-
ariaModal?: boolean;
|
|
70
|
-
ariaValueMax?: number;
|
|
71
|
-
ariaValueMin?: number;
|
|
72
|
-
ariaValueNow?: number;
|
|
73
|
-
ariaValueText?: string;
|
|
74
|
-
private readonly elementRef;
|
|
75
|
-
get wrapperStyle(): unknown;
|
|
76
|
-
get imageStyle(): IStyleProp<IViewStyle> | undefined;
|
|
77
|
-
get folded(): Partial<IAngularImageBackgroundProps>;
|
|
78
|
-
}
|