@symbiote-native/angular 0.0.0-canary-20260724081123

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.
Files changed (276) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +157 -0
  3. package/babel-linker.cjs +7 -0
  4. package/babel-register-composed.cjs +127 -0
  5. package/bin/symbiote-angular-dev.cjs +93 -0
  6. package/build/angular/anchor-host-registry.d.ts +2 -0
  7. package/build/angular/anchor-host-registry.js +84 -0
  8. package/build/angular/anchor-host-registry.js.map +1 -0
  9. package/build/angular/bootstrap.d.ts +7 -0
  10. package/build/angular/bootstrap.js +15 -0
  11. package/build/angular/bootstrap.js.map +1 -0
  12. package/build/angular/components/activity-indicator/index.android.d.ts +12 -0
  13. package/build/angular/components/activity-indicator/index.android.js +21 -0
  14. package/build/angular/components/activity-indicator/index.android.js.map +1 -0
  15. package/build/angular/components/activity-indicator/index.d.ts +1 -0
  16. package/build/angular/components/activity-indicator/index.ios.d.ts +8 -0
  17. package/build/angular/components/activity-indicator/index.ios.js +21 -0
  18. package/build/angular/components/activity-indicator/index.ios.js.map +1 -0
  19. package/build/angular/components/activity-indicator/index.js +4 -0
  20. package/build/angular/components/activity-indicator/index.js.map +1 -0
  21. package/build/angular/components/activity-indicator/shared.d.ts +67 -0
  22. package/build/angular/components/activity-indicator/shared.js +260 -0
  23. package/build/angular/components/activity-indicator/shared.js.map +1 -0
  24. package/build/angular/components/button.d.ts +63 -0
  25. package/build/angular/components/button.js +332 -0
  26. package/build/angular/components/button.js.map +1 -0
  27. package/build/angular/components/flat-list/index.d.ts +122 -0
  28. package/build/angular/components/flat-list/index.js +688 -0
  29. package/build/angular/components/flat-list/index.js.map +1 -0
  30. package/build/angular/components/image/index.android.d.ts +10 -0
  31. package/build/angular/components/image/index.android.js +59 -0
  32. package/build/angular/components/image/index.android.js.map +1 -0
  33. package/build/angular/components/image/index.d.ts +1 -0
  34. package/build/angular/components/image/index.ios.d.ts +10 -0
  35. package/build/angular/components/image/index.ios.js +59 -0
  36. package/build/angular/components/image/index.ios.js.map +1 -0
  37. package/build/angular/components/image/index.js +3 -0
  38. package/build/angular/components/image/index.js.map +1 -0
  39. package/build/angular/components/image/shared.d.ts +101 -0
  40. package/build/angular/components/image/shared.js +406 -0
  41. package/build/angular/components/image/shared.js.map +1 -0
  42. package/build/angular/components/image-background.d.ts +81 -0
  43. package/build/angular/components/image-background.js +418 -0
  44. package/build/angular/components/image-background.js.map +1 -0
  45. package/build/angular/components/input-accessory-view/index.d.ts +60 -0
  46. package/build/angular/components/input-accessory-view/index.js +251 -0
  47. package/build/angular/components/input-accessory-view/index.js.map +1 -0
  48. package/build/angular/components/keyboard-avoiding-view/index.d.ts +82 -0
  49. package/build/angular/components/keyboard-avoiding-view/index.js +358 -0
  50. package/build/angular/components/keyboard-avoiding-view/index.js.map +1 -0
  51. package/build/angular/components/modal/index.d.ts +92 -0
  52. package/build/angular/components/modal/index.js +360 -0
  53. package/build/angular/components/modal/index.js.map +1 -0
  54. package/build/angular/components/pressable/index.d.ts +123 -0
  55. package/build/angular/components/pressable/index.js +420 -0
  56. package/build/angular/components/pressable/index.js.map +1 -0
  57. package/build/angular/components/refresh-control/index.d.ts +86 -0
  58. package/build/angular/components/refresh-control/index.js +342 -0
  59. package/build/angular/components/refresh-control/index.js.map +1 -0
  60. package/build/angular/components/safe-area-view/index.d.ts +57 -0
  61. package/build/angular/components/safe-area-view/index.js +248 -0
  62. package/build/angular/components/safe-area-view/index.js.map +1 -0
  63. package/build/angular/components/scroll-view/index.android.d.ts +21 -0
  64. package/build/angular/components/scroll-view/index.android.js +235 -0
  65. package/build/angular/components/scroll-view/index.android.js.map +1 -0
  66. package/build/angular/components/scroll-view/index.d.ts +3 -0
  67. package/build/angular/components/scroll-view/index.ios.d.ts +9 -0
  68. package/build/angular/components/scroll-view/index.ios.js +86 -0
  69. package/build/angular/components/scroll-view/index.ios.js.map +1 -0
  70. package/build/angular/components/scroll-view/index.js +6 -0
  71. package/build/angular/components/scroll-view/index.js.map +1 -0
  72. package/build/angular/components/scroll-view/projection.d.ts +32 -0
  73. package/build/angular/components/scroll-view/projection.js +334 -0
  74. package/build/angular/components/scroll-view/projection.js.map +1 -0
  75. package/build/angular/components/scroll-view/shared.d.ts +230 -0
  76. package/build/angular/components/scroll-view/shared.js +682 -0
  77. package/build/angular/components/scroll-view/shared.js.map +1 -0
  78. package/build/angular/components/scroll-view/sticky-header.d.ts +40 -0
  79. package/build/angular/components/scroll-view/sticky-header.js +225 -0
  80. package/build/angular/components/scroll-view/sticky-header.js.map +1 -0
  81. package/build/angular/components/section-list/index.d.ts +116 -0
  82. package/build/angular/components/section-list/index.js +641 -0
  83. package/build/angular/components/section-list/index.js.map +1 -0
  84. package/build/angular/components/switch/index.android.d.ts +20 -0
  85. package/build/angular/components/switch/index.android.js +70 -0
  86. package/build/angular/components/switch/index.android.js.map +1 -0
  87. package/build/angular/components/switch/index.d.ts +1 -0
  88. package/build/angular/components/switch/index.ios.d.ts +19 -0
  89. package/build/angular/components/switch/index.ios.js +69 -0
  90. package/build/angular/components/switch/index.ios.js.map +1 -0
  91. package/build/angular/components/switch/index.js +4 -0
  92. package/build/angular/components/switch/index.js.map +1 -0
  93. package/build/angular/components/switch/shared.d.ts +40 -0
  94. package/build/angular/components/switch/shared.js +127 -0
  95. package/build/angular/components/switch/shared.js.map +1 -0
  96. package/build/angular/components/text-input.d.ts +153 -0
  97. package/build/angular/components/text-input.js +599 -0
  98. package/build/angular/components/text-input.js.map +1 -0
  99. package/build/angular/components/touchable/index.d.ts +245 -0
  100. package/build/angular/components/touchable/index.js +1186 -0
  101. package/build/angular/components/touchable/index.js.map +1 -0
  102. package/build/angular/components/touchable-native-feedback/index.d.ts +83 -0
  103. package/build/angular/components/touchable-native-feedback/index.js +371 -0
  104. package/build/angular/components/touchable-native-feedback/index.js.map +1 -0
  105. package/build/angular/components/virtualized-list/directives.d.ts +54 -0
  106. package/build/angular/components/virtualized-list/directives.js +153 -0
  107. package/build/angular/components/virtualized-list/directives.js.map +1 -0
  108. package/build/angular/components/virtualized-list/index.d.ts +253 -0
  109. package/build/angular/components/virtualized-list/index.js +1031 -0
  110. package/build/angular/components/virtualized-list/index.js.map +1 -0
  111. package/build/angular/components/virtualized-section-list/directives.d.ts +37 -0
  112. package/build/angular/components/virtualized-section-list/directives.js +76 -0
  113. package/build/angular/components/virtualized-section-list/directives.js.map +1 -0
  114. package/build/angular/components/virtualized-section-list/index.d.ts +178 -0
  115. package/build/angular/components/virtualized-section-list/index.js +720 -0
  116. package/build/angular/components/virtualized-section-list/index.js.map +1 -0
  117. package/build/angular/components.d.ts +39 -0
  118. package/build/angular/components.js +38 -0
  119. package/build/angular/components.js.map +1 -0
  120. package/build/angular/create-portal/index.d.ts +22 -0
  121. package/build/angular/create-portal/index.js +74 -0
  122. package/build/angular/create-portal/index.js.map +1 -0
  123. package/build/angular/create-tunnel/index.d.ts +34 -0
  124. package/build/angular/create-tunnel/index.js +126 -0
  125. package/build/angular/create-tunnel/index.js.map +1 -0
  126. package/build/angular/descriptor-to-angular/index.d.ts +22 -0
  127. package/build/angular/descriptor-to-angular/index.js +142 -0
  128. package/build/angular/descriptor-to-angular/index.js.map +1 -0
  129. package/build/angular/host-instance/index.d.ts +2 -0
  130. package/build/angular/host-instance/index.js +37 -0
  131. package/build/angular/host-instance/index.js.map +1 -0
  132. package/build/angular/index.d.ts +22 -0
  133. package/build/angular/index.js +46 -0
  134. package/build/angular/index.js.map +1 -0
  135. package/build/angular/modules/animated/animated-leaf-binder/index.d.ts +14 -0
  136. package/build/angular/modules/animated/animated-leaf-binder/index.js +91 -0
  137. package/build/angular/modules/animated/animated-leaf-binder/index.js.map +1 -0
  138. package/build/angular/modules/animated/animated-leaf-binder.d.ts +14 -0
  139. package/build/angular/modules/animated/animated-leaf-binder.js +91 -0
  140. package/build/angular/modules/animated/animated-leaf-binder.js.map +1 -0
  141. package/build/angular/modules/animated/create-animated-component.d.ts +59 -0
  142. package/build/angular/modules/animated/create-animated-component.js +364 -0
  143. package/build/angular/modules/animated/create-animated-component.js.map +1 -0
  144. package/build/angular/modules/animated/index.d.ts +51 -0
  145. package/build/angular/modules/animated/index.js +59 -0
  146. package/build/angular/modules/animated/index.js.map +1 -0
  147. package/build/angular/modules/app-registry/index.d.ts +7 -0
  148. package/build/angular/modules/app-registry/index.js +23 -0
  149. package/build/angular/modules/app-registry/index.js.map +1 -0
  150. package/build/angular/modules/status-bar/index.d.ts +20 -0
  151. package/build/angular/modules/status-bar/index.js +59 -0
  152. package/build/angular/modules/status-bar/index.js.map +1 -0
  153. package/build/angular/primitives/index.d.ts +63 -0
  154. package/build/angular/primitives/index.js +189 -0
  155. package/build/angular/primitives/index.js.map +1 -0
  156. package/build/angular/primitives/shared.d.ts +88 -0
  157. package/build/angular/primitives/shared.js +171 -0
  158. package/build/angular/primitives/shared.js.map +1 -0
  159. package/build/angular/render/index.d.ts +11 -0
  160. package/build/angular/render/index.js +171 -0
  161. package/build/angular/render/index.js.map +1 -0
  162. package/build/angular/renderer/index.d.ts +37 -0
  163. package/build/angular/renderer/index.js +301 -0
  164. package/build/angular/renderer/index.js.map +1 -0
  165. package/build/angular/services/color-scheme.service.d.ts +16 -0
  166. package/build/angular/services/color-scheme.service.js +31 -0
  167. package/build/angular/services/color-scheme.service.js.map +1 -0
  168. package/build/angular/services/index.d.ts +2 -0
  169. package/build/angular/services/index.js +3 -0
  170. package/build/angular/services/index.js.map +1 -0
  171. package/build/angular/services/window-dimensions.service.d.ts +16 -0
  172. package/build/angular/services/window-dimensions.service.js +42 -0
  173. package/build/angular/services/window-dimensions.service.js.map +1 -0
  174. package/metro-config.cjs +48 -0
  175. package/metro-css-parser.cjs +13 -0
  176. package/package.json +80 -0
  177. package/src/__tests__/responder-change-detection.test.ts +102 -0
  178. package/src/__tests__/responder-nested-cd.test.ts +113 -0
  179. package/src/anchor-host-registry.ts +88 -0
  180. package/src/angular-gaps.test.ts +142 -0
  181. package/src/angular-imports.test.ts +100 -0
  182. package/src/bootstrap.ts +26 -0
  183. package/src/components/activity-indicator/activity-indicator-class-style.test.ts +44 -0
  184. package/src/components/activity-indicator/activity-indicator.test.ts +131 -0
  185. package/src/components/activity-indicator/index.android.ts +16 -0
  186. package/src/components/activity-indicator/index.ios.ts +17 -0
  187. package/src/components/activity-indicator/index.ts +4 -0
  188. package/src/components/activity-indicator/shared.ts +206 -0
  189. package/src/components/button.ts +193 -0
  190. package/src/components/flat-list/column-wrapper-style-class.test.ts +116 -0
  191. package/src/components/flat-list/flat-list-array-style.test.ts +131 -0
  192. package/src/components/flat-list/flat-list-class-style.test.ts +74 -0
  193. package/src/components/flat-list/flat-list-scroll-containment.test.ts +107 -0
  194. package/src/components/flat-list/flat-list.test.ts +99 -0
  195. package/src/components/flat-list/index.ts +574 -0
  196. package/src/components/image/image-class-style.test.ts +46 -0
  197. package/src/components/image/index.android.ts +48 -0
  198. package/src/components/image/index.ios.ts +48 -0
  199. package/src/components/image/index.ts +3 -0
  200. package/src/components/image/shared.ts +479 -0
  201. package/src/components/image-background-class-style.test.ts +48 -0
  202. package/src/components/image-background-style-class.test.ts +79 -0
  203. package/src/components/image-background.ts +270 -0
  204. package/src/components/input-accessory-view/index.ts +185 -0
  205. package/src/components/input-accessory-view/input-accessory-view.test.ts +43 -0
  206. package/src/components/keyboard-avoiding-view/index.ts +303 -0
  207. package/src/components/keyboard-avoiding-view/keyboard-avoiding-view.test.ts +54 -0
  208. package/src/components/modal/index.ts +299 -0
  209. package/src/components/modal/modal.test.ts +43 -0
  210. package/src/components/pressable/index.ts +373 -0
  211. package/src/components/pressable/pressable.test.ts +85 -0
  212. package/src/components/refresh-control/index.ts +284 -0
  213. package/src/components/refresh-control/refresh-control.test.ts +41 -0
  214. package/src/components/safe-area-view/index.ts +177 -0
  215. package/src/components/safe-area-view/safe-area-view.test.ts +43 -0
  216. package/src/components/scroll-view/android-scroll-view-axis-projection.test.ts +123 -0
  217. package/src/components/scroll-view/content-container-style-class.test.ts +75 -0
  218. package/src/components/scroll-view/index.android.ts +190 -0
  219. package/src/components/scroll-view/index.ios.ts +79 -0
  220. package/src/components/scroll-view/index.ts +7 -0
  221. package/src/components/scroll-view/projection.ts +414 -0
  222. package/src/components/scroll-view/scroll-view-class-style.test.ts +134 -0
  223. package/src/components/scroll-view/scroll-view-projection.test.ts +194 -0
  224. package/src/components/scroll-view/shared.ts +844 -0
  225. package/src/components/scroll-view/sticky-header.ts +255 -0
  226. package/src/components/section-list/index.ts +445 -0
  227. package/src/components/switch/android-switch-class.test.ts +42 -0
  228. package/src/components/switch/index.android.ts +61 -0
  229. package/src/components/switch/index.ios.ts +60 -0
  230. package/src/components/switch/index.ts +4 -0
  231. package/src/components/switch/shared.ts +197 -0
  232. package/src/components/switch/switch.test.ts +92 -0
  233. package/src/components/text-input-class-style.test.ts +54 -0
  234. package/src/components/text-input.ts +531 -0
  235. package/src/components/touchable/index.ts +629 -0
  236. package/src/components/touchable/touchable.test.ts +102 -0
  237. package/src/components/touchable-native-feedback/index.ts +254 -0
  238. package/src/components/touchable-native-feedback/touchable-native-feedback.test.ts +49 -0
  239. package/src/components/virtualized-list/directives.ts +168 -0
  240. package/src/components/virtualized-list/index.ts +992 -0
  241. package/src/components/virtualized-list/virtualized-list-class-style.test.ts +76 -0
  242. package/src/components/virtualized-section-list/directives.ts +90 -0
  243. package/src/components/virtualized-section-list/index.ts +601 -0
  244. package/src/components/virtualized-section-list/virtualized-section-list-class-style.test.ts +60 -0
  245. package/src/components.ts +149 -0
  246. package/src/create-portal/create-portal.test.ts +90 -0
  247. package/src/create-portal/index.ts +74 -0
  248. package/src/create-tunnel/create-tunnel.test.ts +120 -0
  249. package/src/create-tunnel/index.ts +136 -0
  250. package/src/descriptor-to-angular/descriptor-outlet.test.ts +94 -0
  251. package/src/descriptor-to-angular/index.ts +190 -0
  252. package/src/host-instance/host-instance.test.ts +49 -0
  253. package/src/host-instance/index.ts +36 -0
  254. package/src/index.ts +261 -0
  255. package/src/modules/animated/animated-leaf-binder/animated-leaf-binder.test.ts +116 -0
  256. package/src/modules/animated/animated-leaf-binder/index.ts +101 -0
  257. package/src/modules/animated/animated-leaf-binder.test.ts +116 -0
  258. package/src/modules/animated/animated-leaf-binder.ts +101 -0
  259. package/src/modules/animated/animated-scroll-view.test.ts +102 -0
  260. package/src/modules/animated/create-animated-component.ts +365 -0
  261. package/src/modules/animated/index.ts +105 -0
  262. package/src/modules/app-registry/app-registry.test.ts +106 -0
  263. package/src/modules/app-registry/index.ts +60 -0
  264. package/src/modules/status-bar/index.ts +57 -0
  265. package/src/modules/status-bar/status-bar.test.ts +50 -0
  266. package/src/primitives/index.ts +119 -0
  267. package/src/primitives/shared.ts +190 -0
  268. package/src/render/index.ts +235 -0
  269. package/src/render/render.test.ts +147 -0
  270. package/src/renderer/index.ts +347 -0
  271. package/src/renderer/renderer.test.ts +203 -0
  272. package/src/services/color-scheme.service.ts +27 -0
  273. package/src/services/index.ts +2 -0
  274. package/src/services/services.test.ts +163 -0
  275. package/src/services/window-dimensions.service.ts +41 -0
  276. package/tsconfig.angular.base.json +30 -0
@@ -0,0 +1,406 @@
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
+ }
406
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/components/image/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,yBAAyB,GAM1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,GAIhB,MAAM,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ClC,CAAC;IACJ,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IACjD,CAAC"}
@@ -0,0 +1,81 @@
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
+ import * as i0 from "@angular/core";
5
+ export interface IAngularImageBackgroundProps extends Omit<IImageProps, 'style'> {
6
+ style?: IStyleProp<IViewStyle>;
7
+ imageStyle?: IStyleProp<IViewStyle> | string;
8
+ }
9
+ export type IAngularImageBackgroundInputs = Omit<IAngularImageBackgroundProps, 'onAccessibilityAction' | 'onAccessibilityTap' | 'onMagicTap' | 'onAccessibilityEscape' | 'onLoadStart' | 'onLoad' | 'onLoadEnd' | 'onError' | 'onProgress' | 'onPartialLoad'>;
10
+ export declare class ImageBackground implements IAngularImageBackgroundInputs {
11
+ readonly accessibilityAction: EventEmitter<ISymbioteEvent>;
12
+ readonly accessibilityTap: EventEmitter<ISymbioteEvent>;
13
+ readonly magicTap: EventEmitter<ISymbioteEvent>;
14
+ readonly accessibilityEscape: EventEmitter<ISymbioteEvent>;
15
+ readonly loadStart: EventEmitter<ISymbioteEvent>;
16
+ readonly load: EventEmitter<ISymbioteEvent>;
17
+ readonly loadEnd: EventEmitter<ISymbioteEvent>;
18
+ readonly error: EventEmitter<ISymbioteEvent>;
19
+ readonly progress: EventEmitter<ISymbioteEvent>;
20
+ readonly partialLoad: EventEmitter<ISymbioteEvent>;
21
+ source?: IImageSourceProp;
22
+ defaultSource?: IImageSourceProp;
23
+ loadingIndicatorSource?: IImageSourceProp;
24
+ style?: IStyleProp<IViewStyle>;
25
+ imageStyleValue?: IStyleProp<IViewStyle> | string;
26
+ resizeMode?: IResizeMode;
27
+ resizeMethod?: IImageProps['resizeMethod'];
28
+ tintColor?: string;
29
+ blurRadius?: number;
30
+ capInsets?: IImageProps['capInsets'];
31
+ fadeDuration?: number;
32
+ progressiveRenderingEnabled?: boolean;
33
+ src?: string;
34
+ srcSet?: string;
35
+ alt?: string;
36
+ width?: number;
37
+ height?: number;
38
+ crossOrigin?: 'anonymous' | 'use-credentials';
39
+ referrerPolicy?: string;
40
+ testID?: string;
41
+ nativeID?: string;
42
+ accessible?: boolean;
43
+ accessibilityLabel?: string;
44
+ accessibilityHint?: string;
45
+ accessibilityRole?: IAccessibilityProps['accessibilityRole'];
46
+ accessibilityState?: IAccessibilityStateValue;
47
+ accessibilityValue?: IAccessibilityProps['accessibilityValue'];
48
+ accessibilityActions?: IAccessibilityProps['accessibilityActions'];
49
+ accessibilityLabelledBy?: string | string[];
50
+ importantForAccessibility?: IAccessibilityProps['importantForAccessibility'];
51
+ accessibilityLiveRegion?: IAccessibilityProps['accessibilityLiveRegion'];
52
+ screenReaderFocusable?: boolean;
53
+ accessibilityViewIsModal?: boolean;
54
+ accessibilityElementsHidden?: boolean;
55
+ accessibilityIgnoresInvertColors?: boolean;
56
+ accessibilityLanguage?: string;
57
+ accessibilityRespondsToUserInteraction?: boolean;
58
+ accessibilityShowsLargeContentViewer?: boolean;
59
+ accessibilityLargeContentTitle?: string;
60
+ role?: IAriaProps['role'];
61
+ ariaLabel?: string;
62
+ ariaLabelledBy?: string;
63
+ ariaLive?: IAriaProps['aria-live'];
64
+ ariaHidden?: boolean;
65
+ ariaBusy?: boolean;
66
+ ariaChecked?: boolean | 'mixed';
67
+ ariaDisabled?: boolean;
68
+ ariaExpanded?: boolean;
69
+ ariaSelected?: boolean;
70
+ ariaModal?: boolean;
71
+ ariaValueMax?: number;
72
+ ariaValueMin?: number;
73
+ ariaValueNow?: number;
74
+ ariaValueText?: string;
75
+ private readonly elementRef;
76
+ get wrapperStyle(): unknown;
77
+ get imageStyle(): IStyleProp<IViewStyle> | undefined;
78
+ get folded(): Partial<IAngularImageBackgroundProps>;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageBackground, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageBackground, "ImageBackground", never, { "source": { "alias": "source"; "required": false; }; "defaultSource": { "alias": "defaultSource"; "required": false; }; "loadingIndicatorSource": { "alias": "loadingIndicatorSource"; "required": false; }; "style": { "alias": "style"; "required": false; }; "imageStyleValue": { "alias": "imageStyle"; "required": false; }; "resizeMode": { "alias": "resizeMode"; "required": false; }; "resizeMethod": { "alias": "resizeMethod"; "required": false; }; "tintColor": { "alias": "tintColor"; "required": false; }; "blurRadius": { "alias": "blurRadius"; "required": false; }; "capInsets": { "alias": "capInsets"; "required": false; }; "fadeDuration": { "alias": "fadeDuration"; "required": false; }; "progressiveRenderingEnabled": { "alias": "progressiveRenderingEnabled"; "required": false; }; "src": { "alias": "src"; "required": false; }; "srcSet": { "alias": "srcSet"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "crossOrigin": { "alias": "crossOrigin"; "required": false; }; "referrerPolicy": { "alias": "referrerPolicy"; "required": false; }; "testID": { "alias": "testID"; "required": false; }; "nativeID": { "alias": "nativeID"; "required": false; }; "accessible": { "alias": "accessible"; "required": false; }; "accessibilityLabel": { "alias": "accessibilityLabel"; "required": false; }; "accessibilityHint": { "alias": "accessibilityHint"; "required": false; }; "accessibilityRole": { "alias": "accessibilityRole"; "required": false; }; "accessibilityState": { "alias": "accessibilityState"; "required": false; }; "accessibilityValue": { "alias": "accessibilityValue"; "required": false; }; "accessibilityActions": { "alias": "accessibilityActions"; "required": false; }; "accessibilityLabelledBy": { "alias": "accessibilityLabelledBy"; "required": false; }; "importantForAccessibility": { "alias": "importantForAccessibility"; "required": false; }; "accessibilityLiveRegion": { "alias": "accessibilityLiveRegion"; "required": false; }; "screenReaderFocusable": { "alias": "screenReaderFocusable"; "required": false; }; "accessibilityViewIsModal": { "alias": "accessibilityViewIsModal"; "required": false; }; "accessibilityElementsHidden": { "alias": "accessibilityElementsHidden"; "required": false; }; "accessibilityIgnoresInvertColors": { "alias": "accessibilityIgnoresInvertColors"; "required": false; }; "accessibilityLanguage": { "alias": "accessibilityLanguage"; "required": false; }; "accessibilityRespondsToUserInteraction": { "alias": "accessibilityRespondsToUserInteraction"; "required": false; }; "accessibilityShowsLargeContentViewer": { "alias": "accessibilityShowsLargeContentViewer"; "required": false; }; "accessibilityLargeContentTitle": { "alias": "accessibilityLargeContentTitle"; "required": false; }; "role": { "alias": "role"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; }; "ariaLive": { "alias": "aria-live"; "required": false; }; "ariaHidden": { "alias": "aria-hidden"; "required": false; }; "ariaBusy": { "alias": "aria-busy"; "required": false; }; "ariaChecked": { "alias": "aria-checked"; "required": false; }; "ariaDisabled": { "alias": "aria-disabled"; "required": false; }; "ariaExpanded": { "alias": "aria-expanded"; "required": false; }; "ariaSelected": { "alias": "aria-selected"; "required": false; }; "ariaModal": { "alias": "aria-modal"; "required": false; }; "ariaValueMax": { "alias": "aria-valuemax"; "required": false; }; "ariaValueMin": { "alias": "aria-valuemin"; "required": false; }; "ariaValueNow": { "alias": "aria-valuenow"; "required": false; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; }; }, { "accessibilityAction": "accessibilityAction"; "accessibilityTap": "accessibilityTap"; "magicTap": "magicTap"; "accessibilityEscape": "accessibilityEscape"; "loadStart": "loadStart"; "load": "load"; "loadEnd": "loadEnd"; "error": "error"; "progress": "progress"; "partialLoad": "partialLoad"; }, never, ["*"], true, never>;
81
+ }