@akylas/nativescript 8.4.9 → 8.5.8

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 (330) hide show
  1. package/accessibility/accessibility-css-helper.js +7 -8
  2. package/accessibility/accessibility-css-helper.js.map +1 -1
  3. package/accessibility/accessibility-properties.d.ts +4 -1
  4. package/accessibility/accessibility-properties.js +21 -0
  5. package/accessibility/accessibility-properties.js.map +1 -1
  6. package/accessibility/accessibility-service.android.js +23 -23
  7. package/accessibility/accessibility-service.android.js.map +1 -1
  8. package/accessibility/accessibility-service.ios.js +1 -1
  9. package/accessibility/accessibility-service.ios.js.map +1 -1
  10. package/accessibility/font-scale.android.js +1 -1
  11. package/accessibility/font-scale.android.js.map +1 -1
  12. package/accessibility/font-scale.ios.js +1 -1
  13. package/accessibility/font-scale.ios.js.map +1 -1
  14. package/accessibility/index.android.js +85 -85
  15. package/accessibility/index.android.js.map +1 -1
  16. package/accessibility/index.ios.js +2 -2
  17. package/accessibility/index.ios.js.map +1 -1
  18. package/application/application-common.d.ts +202 -41
  19. package/application/application-common.js +411 -149
  20. package/application/application-common.js.map +1 -1
  21. package/application/application-interfaces.d.ts +122 -32
  22. package/application/application-shims.d.ts +351 -0
  23. package/application/application-shims.js +353 -0
  24. package/application/application-shims.js.map +1 -0
  25. package/application/application.android.d.ts +64 -0
  26. package/application/application.android.js +438 -0
  27. package/application/application.android.js.map +1 -0
  28. package/application/application.d.ts +186 -0
  29. package/application/application.ios.d.ts +77 -0
  30. package/application/application.ios.js +363 -0
  31. package/application/application.ios.js.map +1 -0
  32. package/application/index.android.d.ts +2 -77
  33. package/application/index.android.js +2 -460
  34. package/application/index.android.js.map +1 -1
  35. package/application/index.d.ts +2 -759
  36. package/application/index.ios.d.ts +2 -65
  37. package/application/index.ios.js +2 -506
  38. package/application/index.ios.js.map +1 -1
  39. package/application-settings/index.android.js +2 -2
  40. package/application-settings/index.android.js.map +1 -1
  41. package/config/config.interface.d.ts +10 -0
  42. package/connectivity/index.android.js +24 -28
  43. package/connectivity/index.android.js.map +1 -1
  44. package/data/observable/index.d.ts +19 -18
  45. package/data/observable/index.js +9 -0
  46. package/data/observable/index.js.map +1 -1
  47. package/file-system/file-system-access.android.d.ts +21 -0
  48. package/file-system/file-system-access.android.js +235 -4
  49. package/file-system/file-system-access.android.js.map +1 -1
  50. package/file-system/file-system-access.d.ts +99 -0
  51. package/file-system/file-system-access.ios.d.ts +12 -0
  52. package/file-system/file-system-access.ios.js +168 -0
  53. package/file-system/file-system-access.ios.js.map +1 -1
  54. package/file-system/index.d.ts +34 -1
  55. package/file-system/index.js +257 -2
  56. package/file-system/index.js.map +1 -1
  57. package/fps-meter/fps-native.ios.js +15 -17
  58. package/fps-meter/fps-native.ios.js.map +1 -1
  59. package/global-types.d.ts +13 -5
  60. package/globals/index.js +2 -0
  61. package/globals/index.js.map +1 -1
  62. package/http/http-request/index.ios.js +8 -10
  63. package/http/http-request/index.ios.js.map +1 -1
  64. package/image-source/index.android.js +2 -2
  65. package/image-source/index.android.js.map +1 -1
  66. package/index.d.ts +12 -139
  67. package/index.js +15 -155
  68. package/index.js.map +1 -1
  69. package/module-name-resolver/index.js +5 -5
  70. package/module-name-resolver/index.js.map +1 -1
  71. package/module-name-resolver/non-bundle-workflow-compat.js +2 -2
  72. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
  73. package/package.json +1 -1
  74. package/platform/index.android.js +5 -5
  75. package/platform/index.android.js.map +1 -1
  76. package/platforms/android/native-api-usage.json +2 -0
  77. package/platforms/android/widgets-release.aar +0 -0
  78. package/platforms/ios/TNSWidgets.xcframework/Info.plist +7 -7
  79. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  80. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  81. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  82. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  83. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  84. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  85. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  86. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +4 -4
  87. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  88. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  89. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +1 -0
  90. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +4 -4
  91. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  92. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  93. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  94. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  95. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  96. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  97. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  98. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +14 -3
  99. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  100. package/timer/index.ios.js +17 -18
  101. package/timer/index.ios.js.map +1 -1
  102. package/ui/action-bar/index.android.js +16 -17
  103. package/ui/action-bar/index.android.js.map +1 -1
  104. package/ui/action-bar/index.ios.js +15 -17
  105. package/ui/action-bar/index.ios.js.map +1 -1
  106. package/ui/animation/animation-common.js +1 -0
  107. package/ui/animation/animation-common.js.map +1 -1
  108. package/ui/animation/animation-interfaces.d.ts +2 -0
  109. package/ui/animation/index.android.js +1 -1
  110. package/ui/animation/index.android.js.map +1 -1
  111. package/ui/animation/index.ios.d.ts +1 -3
  112. package/ui/animation/index.ios.js +113 -101
  113. package/ui/animation/index.ios.js.map +1 -1
  114. package/ui/builder/component-builder/index.js +1 -1
  115. package/ui/builder/component-builder/index.js.map +1 -1
  116. package/ui/builder/index.js +1 -1
  117. package/ui/builder/index.js.map +1 -1
  118. package/ui/button/index.android.js +12 -13
  119. package/ui/button/index.android.js.map +1 -1
  120. package/ui/core/control-state-change/index.ios.js +7 -9
  121. package/ui/core/control-state-change/index.ios.js.map +1 -1
  122. package/ui/core/view/index.android.js +157 -158
  123. package/ui/core/view/index.android.js.map +1 -1
  124. package/ui/core/view/index.d.ts +15 -0
  125. package/ui/core/view/index.ios.d.ts +1 -0
  126. package/ui/core/view/index.ios.js +96 -17
  127. package/ui/core/view/index.ios.js.map +1 -1
  128. package/ui/core/view/view-common.d.ts +10 -0
  129. package/ui/core/view/view-common.js +46 -6
  130. package/ui/core/view/view-common.js.map +1 -1
  131. package/ui/core/view/view-helper/index.ios.d.ts +0 -2
  132. package/ui/core/view/view-helper/index.ios.js +97 -165
  133. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  134. package/ui/core/view-base/index.d.ts +219 -1
  135. package/ui/core/view-base/index.js +170 -5
  136. package/ui/core/view-base/index.js.map +1 -1
  137. package/ui/date-picker/index.android.js +30 -31
  138. package/ui/date-picker/index.android.js.map +1 -1
  139. package/ui/date-picker/index.ios.js +17 -19
  140. package/ui/date-picker/index.ios.js.map +1 -1
  141. package/ui/dialogs/index.ios.js +10 -4
  142. package/ui/dialogs/index.ios.js.map +1 -1
  143. package/ui/editable-text-base/editable-text-base-common.d.ts +1 -0
  144. package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
  145. package/ui/editable-text-base/index.android.js +26 -28
  146. package/ui/editable-text-base/index.android.js.map +1 -1
  147. package/ui/editable-text-base/index.d.ts +7 -1
  148. package/ui/frame/activity.android.js +2 -2
  149. package/ui/frame/activity.android.js.map +1 -1
  150. package/ui/frame/fragment.transitions.android.js +110 -86
  151. package/ui/frame/fragment.transitions.android.js.map +1 -1
  152. package/ui/frame/fragment.transitions.d.ts +0 -4
  153. package/ui/frame/frame-common.d.ts +3 -3
  154. package/ui/frame/frame-common.js +14 -1
  155. package/ui/frame/frame-common.js.map +1 -1
  156. package/ui/frame/index.android.d.ts +4 -3
  157. package/ui/frame/index.android.js +67 -89
  158. package/ui/frame/index.android.js.map +1 -1
  159. package/ui/frame/index.ios.js +180 -151
  160. package/ui/frame/index.ios.js.map +1 -1
  161. package/ui/gestures/index.android.js +124 -121
  162. package/ui/gestures/index.android.js.map +1 -1
  163. package/ui/gestures/index.ios.js +47 -53
  164. package/ui/gestures/index.ios.js.map +1 -1
  165. package/ui/gestures/touch-manager.js +29 -32
  166. package/ui/gestures/touch-manager.js.map +1 -1
  167. package/ui/image/image-common.d.ts +2 -2
  168. package/ui/image/image-common.js.map +1 -1
  169. package/ui/image/index.android.js +12 -13
  170. package/ui/image/index.android.js.map +1 -1
  171. package/ui/image/index.d.ts +3 -2
  172. package/ui/image/index.ios.js.map +1 -1
  173. package/ui/image-cache/index.android.js +14 -13
  174. package/ui/image-cache/index.android.js.map +1 -1
  175. package/ui/image-cache/index.ios.js +17 -19
  176. package/ui/image-cache/index.ios.js.map +1 -1
  177. package/ui/index.d.ts +9 -2
  178. package/ui/index.js +8 -2
  179. package/ui/index.js.map +1 -1
  180. package/ui/layouts/layout-base.ios.js +4 -1
  181. package/ui/layouts/layout-base.ios.js.map +1 -1
  182. package/ui/layouts/root-layout/index.d.ts +1 -1
  183. package/ui/layouts/root-layout/root-layout-common.d.ts +16 -1
  184. package/ui/layouts/root-layout/root-layout-common.js +89 -62
  185. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  186. package/ui/list-picker/index.android.js +21 -23
  187. package/ui/list-picker/index.android.js.map +1 -1
  188. package/ui/list-picker/index.ios.js +32 -39
  189. package/ui/list-picker/index.ios.js.map +1 -1
  190. package/ui/list-view/index.android.js +105 -105
  191. package/ui/list-view/index.android.js.map +1 -1
  192. package/ui/list-view/index.ios.js +100 -116
  193. package/ui/list-view/index.ios.js.map +1 -1
  194. package/ui/page/index.ios.d.ts +0 -1
  195. package/ui/page/index.ios.js +150 -163
  196. package/ui/page/index.ios.js.map +1 -1
  197. package/ui/scroll-view/index.ios.js +20 -21
  198. package/ui/scroll-view/index.ios.js.map +1 -1
  199. package/ui/search-bar/index.android.js +38 -40
  200. package/ui/search-bar/index.android.js.map +1 -1
  201. package/ui/search-bar/index.ios.js +27 -33
  202. package/ui/search-bar/index.ios.js.map +1 -1
  203. package/ui/segmented-bar/index.android.js +40 -41
  204. package/ui/segmented-bar/index.android.js.map +1 -1
  205. package/ui/segmented-bar/index.ios.js +15 -17
  206. package/ui/segmented-bar/index.ios.js.map +1 -1
  207. package/ui/slider/index.android.js +23 -24
  208. package/ui/slider/index.android.js.map +1 -1
  209. package/ui/slider/index.ios.js +31 -37
  210. package/ui/slider/index.ios.js.map +1 -1
  211. package/ui/styling/background.android.js +3 -5
  212. package/ui/styling/background.android.js.map +1 -1
  213. package/ui/styling/style/index.d.ts +4 -1
  214. package/ui/styling/style/index.js.map +1 -1
  215. package/ui/styling/style-properties.d.ts +4 -4
  216. package/ui/styling/style-properties.js +7 -7
  217. package/ui/styling/style-properties.js.map +1 -1
  218. package/ui/styling/style-scope.js +6 -6
  219. package/ui/styling/style-scope.js.map +1 -1
  220. package/ui/switch/index.android.js +11 -12
  221. package/ui/switch/index.android.js.map +1 -1
  222. package/ui/switch/index.ios.js +15 -17
  223. package/ui/switch/index.ios.js.map +1 -1
  224. package/ui/tab-view/index.android.js +140 -137
  225. package/ui/tab-view/index.android.js.map +1 -1
  226. package/ui/tab-view/index.ios.js +68 -82
  227. package/ui/tab-view/index.ios.js.map +1 -1
  228. package/ui/text-base/formatted-string.d.ts +6 -0
  229. package/ui/text-base/formatted-string.js +27 -0
  230. package/ui/text-base/formatted-string.js.map +1 -1
  231. package/ui/text-base/index.android.js +59 -59
  232. package/ui/text-base/index.android.js.map +1 -1
  233. package/ui/text-base/index.ios.js +73 -51
  234. package/ui/text-base/index.ios.js.map +1 -1
  235. package/ui/text-base/span.d.ts +6 -0
  236. package/ui/text-base/span.js +18 -0
  237. package/ui/text-base/span.js.map +1 -1
  238. package/ui/text-field/index.ios.js +72 -66
  239. package/ui/text-field/index.ios.js.map +1 -1
  240. package/ui/text-view/index.ios.js +35 -45
  241. package/ui/text-view/index.ios.js.map +1 -1
  242. package/ui/time-picker/index.android.js +14 -15
  243. package/ui/time-picker/index.android.js.map +1 -1
  244. package/ui/time-picker/index.ios.js +17 -19
  245. package/ui/time-picker/index.ios.js.map +1 -1
  246. package/ui/transition/fade-transition.d.ts +1 -3
  247. package/ui/transition/fade-transition.ios.d.ts +14 -1
  248. package/ui/transition/fade-transition.ios.js +59 -24
  249. package/ui/transition/fade-transition.ios.js.map +1 -1
  250. package/ui/transition/index.android.d.ts +6 -4
  251. package/ui/transition/index.android.js +8 -5
  252. package/ui/transition/index.android.js.map +1 -1
  253. package/ui/transition/index.d.ts +58 -8
  254. package/ui/transition/index.ios.d.ts +6 -4
  255. package/ui/transition/index.ios.js +11 -6
  256. package/ui/transition/index.ios.js.map +1 -1
  257. package/ui/transition/modal-transition.android.d.ts +5 -0
  258. package/ui/transition/modal-transition.android.js +7 -0
  259. package/ui/transition/modal-transition.android.js.map +1 -0
  260. package/ui/transition/modal-transition.d.ts +2 -0
  261. package/ui/transition/modal-transition.ios.d.ts +34 -0
  262. package/ui/transition/modal-transition.ios.js +174 -0
  263. package/ui/transition/modal-transition.ios.js.map +1 -0
  264. package/ui/transition/page-transition.android.d.ts +7 -0
  265. package/ui/transition/page-transition.android.js +260 -0
  266. package/ui/transition/page-transition.android.js.map +1 -0
  267. package/ui/transition/page-transition.d.ts +2 -0
  268. package/ui/transition/page-transition.ios.d.ts +35 -0
  269. package/ui/transition/page-transition.ios.js +191 -0
  270. package/ui/transition/page-transition.ios.js.map +1 -0
  271. package/ui/transition/shared-transition-helper.android.d.ts +9 -0
  272. package/ui/transition/shared-transition-helper.android.js +10 -0
  273. package/ui/transition/shared-transition-helper.android.js.map +1 -0
  274. package/ui/transition/shared-transition-helper.d.ts +14 -0
  275. package/ui/transition/shared-transition-helper.ios.d.ts +14 -0
  276. package/ui/transition/shared-transition-helper.ios.js +524 -0
  277. package/ui/transition/shared-transition-helper.ios.js.map +1 -0
  278. package/ui/transition/shared-transition.d.ts +267 -0
  279. package/ui/transition/shared-transition.js +214 -0
  280. package/ui/transition/shared-transition.js.map +1 -0
  281. package/ui/transition/slide-transition.android.d.ts +1 -1
  282. package/ui/transition/slide-transition.android.js +1 -1
  283. package/ui/transition/slide-transition.android.js.map +1 -1
  284. package/ui/transition/slide-transition.d.ts +1 -1
  285. package/ui/transition/slide-transition.ios.d.ts +15 -2
  286. package/ui/transition/slide-transition.ios.js +84 -49
  287. package/ui/transition/slide-transition.ios.js.map +1 -1
  288. package/ui/web-view/index.android.js +57 -60
  289. package/ui/web-view/index.android.js.map +1 -1
  290. package/ui/web-view/index.ios.js +64 -79
  291. package/ui/web-view/index.ios.js.map +1 -1
  292. package/utils/android/index.d.ts +21 -0
  293. package/utils/android/index.js +157 -0
  294. package/utils/android/index.js.map +1 -0
  295. package/utils/common.d.ts +33 -0
  296. package/utils/common.js +70 -1
  297. package/utils/common.js.map +1 -1
  298. package/utils/index.android.d.ts +8 -3
  299. package/utils/index.android.js +15 -10
  300. package/utils/index.android.js.map +1 -1
  301. package/utils/index.d.ts +7 -7
  302. package/utils/index.ios.d.ts +8 -3
  303. package/utils/index.ios.js +13 -8
  304. package/utils/index.ios.js.map +1 -1
  305. package/utils/ios/index.d.ts +36 -0
  306. package/utils/ios/index.js +277 -0
  307. package/utils/ios/index.js.map +1 -0
  308. package/utils/layout-helper/index.android.js +3 -3
  309. package/utils/layout-helper/index.android.js.map +1 -1
  310. package/utils/mainthread-helper.android.js +2 -2
  311. package/utils/mainthread-helper.android.js.map +1 -1
  312. package/utils/native-helper.android.d.ts +8 -23
  313. package/utils/native-helper.android.js +10 -169
  314. package/utils/native-helper.android.js.map +1 -1
  315. package/utils/native-helper.d.ts +272 -219
  316. package/utils/native-helper.ios.d.ts +8 -22
  317. package/utils/native-helper.ios.js +10 -238
  318. package/utils/native-helper.ios.js.map +1 -1
  319. package/utils/number-utils.d.ts +10 -0
  320. package/utils/number-utils.js +12 -0
  321. package/utils/number-utils.js.map +1 -1
  322. package/utils/platform-check.d.ts +4 -0
  323. package/utils/platform-check.js +21 -0
  324. package/utils/platform-check.js.map +1 -0
  325. package/ui/builder/module-name-sanitizer.d.ts +0 -6
  326. package/ui/builder/module-name-sanitizer.js +0 -24
  327. package/ui/builder/module-name-sanitizer.js.map +0 -1
  328. package/ui/frame/fragment.transitions.ios.d.ts +0 -2
  329. package/ui/frame/fragment.transitions.ios.js +0 -85
  330. package/ui/frame/fragment.transitions.ios.js.map +0 -1
@@ -1,162 +1,424 @@
1
- // Require globals first so that snapshot takes __extends function.
2
- import '../globals';
3
- // Requires
4
- import * as bindableResources from '../ui/core/bindable/bindable-resources';
5
- import { CSSUtils } from '../css/system-classes';
1
+ import { initAccessibilityCssHelper } from '../accessibility/accessibility-css-helper';
2
+ import { initAccessibilityFontScale } from '../accessibility/font-scale';
6
3
  import { CoreTypes } from '../core-types';
4
+ import { CSSUtils } from '../css/system-classes';
5
+ import { Device } from '../platform';
6
+ import { profile } from '../profiling';
7
7
  import { Trace } from '../trace';
8
- export * from './application-interfaces';
9
- export function hasLaunched() {
10
- return global.NativeScriptGlobals && global.NativeScriptGlobals.launched;
11
- }
12
- export const launchEvent = 'launch';
13
- export const suspendEvent = 'suspend';
14
- export const displayedEvent = 'displayed';
15
- export const backgroundEvent = 'background';
16
- export const foregroundEvent = 'foreground';
17
- export const resumeEvent = 'resume';
18
- export const exitEvent = 'exit';
19
- export const lowMemoryEvent = 'lowMemory';
20
- export const uncaughtErrorEvent = 'uncaughtError';
21
- export const discardedErrorEvent = 'discardedError';
22
- export const orientationChangedEvent = 'orientationChanged';
23
- export const systemAppearanceChangedEvent = 'systemAppearanceChanged';
24
- export const fontScaleChangedEvent = 'fontScaleChanged';
25
- const ORIENTATION_CSS_CLASSES = [`${CSSUtils.CLASS_PREFIX}${CoreTypes.DeviceOrientation.portrait}`, `${CSSUtils.CLASS_PREFIX}${CoreTypes.DeviceOrientation.landscape}`, `${CSSUtils.CLASS_PREFIX}${CoreTypes.DeviceOrientation.unknown}`];
26
- const SYSTEM_APPEARANCE_CSS_CLASSES = [`${CSSUtils.CLASS_PREFIX}${CoreTypes.SystemAppearance.light}`, `${CSSUtils.CLASS_PREFIX}${CoreTypes.SystemAppearance.dark}`];
27
- let cssFile = './app.css';
28
- export function getResources() {
29
- return bindableResources.get();
30
- }
31
- export function setResources(res) {
32
- bindableResources.set(res);
33
- }
34
- export const android = undefined;
35
- export const ios = undefined;
36
- export const on = global.NativeScriptGlobals.events.on.bind(global.NativeScriptGlobals.events);
37
- export const off = global.NativeScriptGlobals.events.off.bind(global.NativeScriptGlobals.events);
38
- export const notify = global.NativeScriptGlobals.events.notify.bind(global.NativeScriptGlobals.events);
39
- export const hasListeners = global.NativeScriptGlobals.events.hasListeners.bind(global.NativeScriptGlobals.events);
40
- let app;
41
- export function setApplication(instance) {
42
- app = instance;
43
- // signal when the application instance is ready globally
44
- global.NativeScriptGlobals.appInstanceReady = true;
45
- }
46
- export function livesync(rootView, context) {
47
- notify({ eventName: 'livesync', object: app });
48
- const liveSyncCore = global.__onLiveSyncCore;
49
- let reapplyAppStyles = false;
50
- // ModuleContext is available only for Hot Module Replacement
51
- if (context && context.path) {
52
- const styleExtensions = ['css', 'scss'];
53
- const appStylesFullFileName = getCssFileName();
54
- const appStylesFileName = appStylesFullFileName.substring(0, appStylesFullFileName.lastIndexOf('.') + 1);
55
- reapplyAppStyles = styleExtensions.some((ext) => context.path === appStylesFileName.concat(ext));
56
- }
57
- // Handle application styles
58
- if (rootView && reapplyAppStyles) {
8
+ import { Builder } from '../ui/builder';
9
+ import * as bindableResources from '../ui/core/bindable/bindable-resources';
10
+ // prettier-ignore
11
+ const ORIENTATION_CSS_CLASSES = [
12
+ `${CSSUtils.CLASS_PREFIX}${CoreTypes.DeviceOrientation.portrait}`,
13
+ `${CSSUtils.CLASS_PREFIX}${CoreTypes.DeviceOrientation.landscape}`,
14
+ `${CSSUtils.CLASS_PREFIX}${CoreTypes.DeviceOrientation.unknown}`,
15
+ ];
16
+ // prettier-ignore
17
+ const SYSTEM_APPEARANCE_CSS_CLASSES = [
18
+ `${CSSUtils.CLASS_PREFIX}${CoreTypes.SystemAppearance.light}`,
19
+ `${CSSUtils.CLASS_PREFIX}${CoreTypes.SystemAppearance.dark}`,
20
+ ];
21
+ const globalEvents = global.NativeScriptGlobals.events;
22
+ export class ApplicationCommon {
23
+ /**
24
+ * @internal - should not be constructed by the user.
25
+ */
26
+ constructor() {
27
+ this.launchEvent = 'launch';
28
+ this.suspendEvent = 'suspend';
29
+ this.displayedEvent = 'displayed';
30
+ this.backgroundEvent = 'background';
31
+ this.foregroundEvent = 'foreground';
32
+ this.resumeEvent = 'resume';
33
+ this.exitEvent = 'exit';
34
+ this.lowMemoryEvent = 'lowMemory';
35
+ this.uncaughtErrorEvent = 'uncaughtError';
36
+ this.discardedErrorEvent = 'discardedError';
37
+ this.orientationChangedEvent = 'orientationChanged';
38
+ this.systemAppearanceChangedEvent = 'systemAppearanceChanged';
39
+ this.fontScaleChangedEvent = 'fontScaleChanged';
40
+ this.livesyncEvent = 'livesync';
41
+ this.loadAppCssEvent = 'loadAppCss';
42
+ this.cssChangedEvent = 'cssChanged';
43
+ // Application events go through the global events.
44
+ this.on = globalEvents.on.bind(globalEvents);
45
+ this.off = globalEvents.off.bind(globalEvents);
46
+ this.once = globalEvents.on.bind(globalEvents);
47
+ this.notify = globalEvents.notify.bind(globalEvents);
48
+ this.hasListeners = globalEvents.hasListeners.bind(globalEvents);
49
+ this.cssFile = './app.css';
50
+ /**
51
+ * Boolean to enable/disable systemAppearanceChanged
52
+ */
53
+ this.autoSystemAppearanceChanged = true;
54
+ this._inBackground = false;
55
+ this._suspended = false;
56
+ this.started = false;
57
+ global.NativeScriptGlobals.appInstanceReady = true;
58
+ global.__onUncaughtError = (error) => {
59
+ this.notify({
60
+ eventName: this.uncaughtErrorEvent,
61
+ object: this,
62
+ android: error,
63
+ ios: error,
64
+ error: error,
65
+ });
66
+ };
67
+ global.__onDiscardedError = (error) => {
68
+ this.notify({
69
+ eventName: this.discardedErrorEvent,
70
+ object: this,
71
+ error: error,
72
+ });
73
+ };
74
+ global.__onLiveSync = (context) => {
75
+ if (this.suspended) {
76
+ return;
77
+ }
78
+ const rootView = this.getRootView();
79
+ this.livesync(rootView, context);
80
+ };
81
+ }
82
+ /**
83
+ * @internal
84
+ */
85
+ livesync(rootView, context) {
86
+ this.notify({ eventName: this.livesyncEvent, object: this });
87
+ const liveSyncCore = global.__onLiveSyncCore;
88
+ let reapplyAppStyles = false;
89
+ // ModuleContext is available only for Hot Module Replacement
90
+ if (context && context.path) {
91
+ const styleExtensions = ['css', 'scss'];
92
+ const appStylesFullFileName = this.getCssFileName();
93
+ const appStylesFileName = appStylesFullFileName.substring(0, appStylesFullFileName.lastIndexOf('.') + 1);
94
+ reapplyAppStyles = styleExtensions.some((ext) => context.path === appStylesFileName.concat(ext));
95
+ }
96
+ // Handle application styles
97
+ if (rootView && reapplyAppStyles) {
98
+ rootView._onCssStateChange();
99
+ }
100
+ else if (liveSyncCore) {
101
+ liveSyncCore(context);
102
+ }
103
+ }
104
+ /**
105
+ * Applies the the `newCssClass` to the `rootView` and removes all other css classes from `cssClasses`
106
+ * previously applied to the `rootView`.
107
+ * @param rootView
108
+ * @param cssClasses
109
+ * @param newCssClass
110
+ */
111
+ applyCssClass(rootView, cssClasses, newCssClass) {
112
+ if (!rootView.cssClasses.has(newCssClass)) {
113
+ cssClasses.forEach((cssClass) => this.removeCssClass(rootView, cssClass));
114
+ this.addCssClass(rootView, newCssClass);
115
+ this.increaseStyleScopeApplicationCssSelectorVersion(rootView);
116
+ rootView._onCssStateChange();
117
+ if (Trace.isEnabled()) {
118
+ const rootCssClasses = Array.from(rootView.cssClasses);
119
+ Trace.write(`Applying root css class: ${newCssClass}. rootView css classes: ${rootCssClasses.join(' ')}`, Trace.categories.Style);
120
+ }
121
+ }
122
+ }
123
+ addCssClass(rootView, cssClass) {
124
+ CSSUtils.pushToSystemCssClasses(cssClass);
125
+ rootView.cssClasses.add(cssClass);
126
+ }
127
+ removeCssClass(rootView, cssClass) {
128
+ CSSUtils.removeSystemCssClass(cssClass);
129
+ rootView.cssClasses.delete(cssClass);
130
+ }
131
+ increaseStyleScopeApplicationCssSelectorVersion(rootView) {
132
+ const styleScope = rootView._styleScope ?? rootView?.currentPage?._styleScope;
133
+ if (styleScope) {
134
+ styleScope._increaseApplicationCssSelectorVersion();
135
+ }
136
+ }
137
+ setRootViewCSSClasses(rootView) {
138
+ const platform = Device.os.toLowerCase();
139
+ const deviceType = Device.deviceType.toLowerCase();
140
+ const orientation = this.orientation();
141
+ const systemAppearance = this.systemAppearance();
142
+ if (platform) {
143
+ CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${platform}`);
144
+ }
145
+ if (deviceType) {
146
+ CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${deviceType}`);
147
+ }
148
+ if (orientation) {
149
+ CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${orientation}`);
150
+ }
151
+ if (systemAppearance) {
152
+ CSSUtils.pushToSystemCssClasses(`${CSSUtils.CLASS_PREFIX}${systemAppearance}`);
153
+ }
154
+ rootView.cssClasses.add(CSSUtils.ROOT_VIEW_CSS_CLASS);
155
+ const rootViewCssClasses = CSSUtils.getSystemCssClasses();
156
+ rootViewCssClasses.forEach((c) => rootView.cssClasses.add(c));
157
+ this.increaseStyleScopeApplicationCssSelectorVersion(rootView);
59
158
  rootView._onCssStateChange();
159
+ if (Trace.isEnabled()) {
160
+ const rootCssClasses = Array.from(rootView.cssClasses);
161
+ Trace.write(`Setting root css classes: ${rootCssClasses.join(' ')}`, Trace.categories.Style);
162
+ }
60
163
  }
61
- else if (liveSyncCore) {
62
- liveSyncCore(context);
164
+ /**
165
+ * iOS Only
166
+ * Dynamically change the preferred frame rate
167
+ * For devices (iOS 15+) which support min/max/preferred frame rate you can specify ranges
168
+ * For devices (iOS < 15), you can specify the max frame rate
169
+ * see: https://developer.apple.com/documentation/quartzcore/optimizing_promotion_refresh_rates_for_iphone_13_pro_and_ipad_pro
170
+ * To use, ensure your Info.plist has:
171
+ * ```xml
172
+ * <key>CADisableMinimumFrameDurationOnPhone</key>
173
+ * <true/>
174
+ * ```
175
+ * @param options { min?: number; max?: number; preferred?: number }
176
+ */
177
+ setMaxRefreshRate(options) {
178
+ // implement in platform specific files (iOS only for now)
63
179
  }
64
- }
65
- export function setCssFileName(cssFileName) {
66
- cssFile = cssFileName;
67
- notify({
68
- eventName: 'cssChanged',
69
- object: app,
70
- cssFile: cssFileName,
71
- });
72
- }
73
- export function getCssFileName() {
74
- return cssFile;
75
- }
76
- export function loadAppCss() {
77
- try {
78
- notify({
79
- eventName: 'loadAppCss',
80
- object: app,
81
- cssFile: getCssFileName(),
180
+ /**
181
+ * @returns The main entry of the application
182
+ */
183
+ getMainEntry() {
184
+ return this.mainEntry;
185
+ }
186
+ notifyLaunch(additionalLanchEventData) {
187
+ const launchArgs = {
188
+ eventName: this.launchEvent,
189
+ object: this,
190
+ ios: this.ios,
191
+ android: this.android,
192
+ ...additionalLanchEventData,
193
+ };
194
+ this.notify(launchArgs);
195
+ this.loadAppCss();
196
+ return launchArgs.root;
197
+ }
198
+ createRootView(view, fireLaunchEvent = false, additionalLanchEventData) {
199
+ let rootView = view;
200
+ if (!rootView) {
201
+ if (fireLaunchEvent) {
202
+ rootView = this.notifyLaunch(additionalLanchEventData);
203
+ // useful for integrations that would like to set rootView asynchronously after app launch
204
+ if (rootView === null) {
205
+ return null;
206
+ }
207
+ }
208
+ if (!rootView) {
209
+ // try to navigate to the mainEntry (if specified)
210
+ if (!this.mainEntry) {
211
+ throw new Error('Main entry is missing. App cannot be started. Verify app bootstrap.');
212
+ }
213
+ rootView = Builder.createViewFromEntry(this.mainEntry);
214
+ }
215
+ }
216
+ return rootView;
217
+ }
218
+ getRootView() {
219
+ throw new Error('getRootView() Not implemented.');
220
+ }
221
+ resetRootView(entry) {
222
+ this.mainEntry = typeof entry === 'string' ? { moduleName: entry } : entry;
223
+ // rest of implementation is platform specific
224
+ }
225
+ initRootView() {
226
+ this.setRootViewCSSClasses(this.getRootView());
227
+ initAccessibilityCssHelper();
228
+ initAccessibilityFontScale();
229
+ }
230
+ /**
231
+ * Get application level static resources.
232
+ */
233
+ getResources() {
234
+ return bindableResources.get();
235
+ }
236
+ /**
237
+ * Set application level static resources.
238
+ */
239
+ setResources(res) {
240
+ bindableResources.set(res);
241
+ }
242
+ /**
243
+ * Sets css file name for the application.
244
+ */
245
+ setCssFileName(cssFileName) {
246
+ this.cssFile = cssFileName;
247
+ this.notify({
248
+ eventName: this.cssChangedEvent,
249
+ object: this,
250
+ cssFile: cssFileName,
82
251
  });
83
252
  }
84
- catch (e) {
85
- if (Trace.isEnabled()) {
86
- Trace.write(`The app CSS file ${getCssFileName()} couldn't be loaded!`, Trace.categories.Style, Trace.messageType.warn);
253
+ /**
254
+ * Gets css file name for the application.
255
+ */
256
+ getCssFileName() {
257
+ return this.cssFile;
258
+ }
259
+ /**
260
+ * Loads immediately the app.css.
261
+ * By default the app.css file is loaded shortly after "loaded".
262
+ * For the Android snapshot the CSS can be parsed during the snapshot generation,
263
+ * as the CSS does not depend on runtime APIs, and loadAppCss will be called explicitly.
264
+ */
265
+ loadAppCss() {
266
+ try {
267
+ this.notify({
268
+ eventName: this.loadAppCssEvent,
269
+ object: this,
270
+ ios: this.ios,
271
+ android: this.android,
272
+ cssFile: this.getCssFileName(),
273
+ });
274
+ }
275
+ catch (e) {
276
+ if (Trace.isEnabled()) {
277
+ Trace.write(`The app CSS file ${this.getCssFileName()} couldn't be loaded!`, Trace.categories.Style, Trace.messageType.warn);
278
+ }
87
279
  }
88
280
  }
89
- }
90
- function addCssClass(rootView, cssClass) {
91
- CSSUtils.pushToSystemCssClasses(cssClass);
92
- rootView.cssClasses.add(cssClass);
93
- }
94
- function removeCssClass(rootView, cssClass) {
95
- CSSUtils.removeSystemCssClass(cssClass);
96
- rootView.cssClasses.delete(cssClass);
97
- }
98
- function increaseStyleScopeApplicationCssSelectorVersion(rootView) {
99
- const styleScope = rootView._styleScope || (rootView.currentPage && rootView.currentPage._styleScope);
100
- if (styleScope) {
101
- styleScope._increaseApplicationCssSelectorVersion();
281
+ addCss(cssText, attributeScoped) {
282
+ this.notify({
283
+ eventName: this.cssChangedEvent,
284
+ object: this,
285
+ cssText: cssText,
286
+ });
287
+ if (!attributeScoped) {
288
+ const rootView = this.getRootView();
289
+ if (rootView) {
290
+ rootView._onCssStateChange();
291
+ }
292
+ }
102
293
  }
103
- }
104
- export function applyCssClass(rootView, cssClasses, newCssClass) {
105
- if (!rootView.cssClasses.has(newCssClass)) {
106
- cssClasses.forEach((cssClass) => removeCssClass(rootView, cssClass));
107
- addCssClass(rootView, newCssClass);
108
- increaseStyleScopeApplicationCssSelectorVersion(rootView);
109
- rootView._onCssStateChange();
294
+ run(entry) {
295
+ throw new Error('run() Not implemented.');
296
+ }
297
+ getOrientation() {
298
+ // override in platform specific Application class
299
+ throw new Error('getOrientation() not implemented');
300
+ }
301
+ setOrientation(value) {
302
+ if (this._orientation === value) {
303
+ return;
304
+ }
305
+ this._orientation = value;
306
+ this.orientationChanged(this.getRootView(), value);
307
+ this.notify({
308
+ eventName: this.orientationChangedEvent,
309
+ android: this.android,
310
+ ios: this.ios,
311
+ newValue: value,
312
+ object: this,
313
+ });
314
+ }
315
+ orientation() {
316
+ return (this._orientation ?? (this._orientation = this.getOrientation()));
317
+ }
318
+ orientationChanged(rootView, newOrientation) {
319
+ if (!rootView) {
320
+ return;
321
+ }
322
+ const newOrientationCssClass = `${CSSUtils.CLASS_PREFIX}${newOrientation}`;
323
+ this.applyCssClass(rootView, ORIENTATION_CSS_CLASSES, newOrientationCssClass);
324
+ const rootModalViews = rootView._getRootModalViews();
325
+ rootModalViews.forEach((rootModalView) => {
326
+ this.applyCssClass(rootModalView, ORIENTATION_CSS_CLASSES, newOrientationCssClass);
327
+ });
328
+ }
329
+ getNativeApplication() {
330
+ // override in platform specific Application class
331
+ throw new Error('getNativeApplication() not implemented');
332
+ }
333
+ hasLaunched() {
334
+ return global.NativeScriptGlobals && global.NativeScriptGlobals.launched;
335
+ }
336
+ getSystemAppearance() {
337
+ // override in platform specific Application class
338
+ throw new Error('getSystemAppearance() not implemented');
339
+ }
340
+ setSystemAppearance(value) {
341
+ if (this._systemAppearance === value) {
342
+ return;
343
+ }
344
+ this._systemAppearance = value;
345
+ this.systemAppearanceChanged(this.getRootView(), value);
346
+ this.notify({
347
+ eventName: this.systemAppearanceChangedEvent,
348
+ android: this.android,
349
+ ios: this.ios,
350
+ newValue: value,
351
+ object: this,
352
+ });
353
+ }
354
+ systemAppearance() {
355
+ // return cached value, or get it from the platform specific override
356
+ return (this._systemAppearance ?? (this._systemAppearance = this.getSystemAppearance()));
357
+ }
358
+ /**
359
+ * enable/disable systemAppearanceChanged
360
+ */
361
+ setAutoSystemAppearanceChanged(value) {
362
+ this.autoSystemAppearanceChanged = value;
363
+ }
364
+ /**
365
+ * Updates root view classes including those of modals
366
+ * @param rootView the root view
367
+ * @param newSystemAppearance the new appearance change
368
+ */
369
+ systemAppearanceChanged(rootView, newSystemAppearance) {
370
+ if (!rootView || !this.autoSystemAppearanceChanged) {
371
+ return;
372
+ }
373
+ const newSystemAppearanceCssClass = `${CSSUtils.CLASS_PREFIX}${newSystemAppearance}`;
374
+ this.applyCssClass(rootView, SYSTEM_APPEARANCE_CSS_CLASSES, newSystemAppearanceCssClass);
375
+ const rootModalViews = rootView._getRootModalViews();
376
+ rootModalViews.forEach((rootModalView) => {
377
+ this.applyCssClass(rootModalView, SYSTEM_APPEARANCE_CSS_CLASSES, newSystemAppearanceCssClass);
378
+ });
379
+ }
380
+ get inBackground() {
381
+ return this._inBackground;
382
+ }
383
+ setInBackground(value, additonalData) {
384
+ this._inBackground = value;
385
+ this.notify({
386
+ eventName: value ? this.backgroundEvent : this.foregroundEvent,
387
+ object: this,
388
+ ios: this.ios,
389
+ ...additonalData,
390
+ });
391
+ }
392
+ get suspended() {
393
+ return this._suspended;
394
+ }
395
+ setSuspended(value, additonalData) {
396
+ this._suspended = value;
397
+ this.notify({
398
+ eventName: value ? this.suspendEvent : this.resumeEvent,
399
+ object: this,
400
+ ios: this.ios,
401
+ android: this.android,
402
+ ...additonalData,
403
+ });
404
+ }
405
+ get android() {
406
+ return undefined;
407
+ }
408
+ get ios() {
409
+ return undefined;
410
+ }
411
+ get AndroidApplication() {
412
+ return this.android;
413
+ }
414
+ get iOSApplication() {
415
+ return this.ios;
110
416
  }
111
417
  }
112
- export function orientationChanged(rootView, newOrientation) {
113
- if (!rootView) {
114
- return;
115
- }
116
- const newOrientationCssClass = `${CSSUtils.CLASS_PREFIX}${newOrientation}`;
117
- applyCssClass(rootView, ORIENTATION_CSS_CLASSES, newOrientationCssClass);
118
- const rootModalViews = rootView._getRootModalViews();
119
- rootModalViews.forEach((rootModalView) => {
120
- applyCssClass(rootModalView, ORIENTATION_CSS_CLASSES, newOrientationCssClass);
121
- });
122
- }
123
- export let autoSystemAppearanceChanged = true;
124
- export function setAutoSystemAppearanceChanged(value) {
125
- autoSystemAppearanceChanged = value;
126
- }
127
- export function systemAppearanceChanged(rootView, newSystemAppearance) {
128
- if (!rootView || !autoSystemAppearanceChanged) {
129
- return;
130
- }
131
- const newSystemAppearanceCssClass = `${CSSUtils.CLASS_PREFIX}${newSystemAppearance}`;
132
- applyCssClass(rootView, SYSTEM_APPEARANCE_CSS_CLASSES, newSystemAppearanceCssClass);
133
- const rootModalViews = rootView._getRootModalViews();
134
- rootModalViews.forEach((rootModalView) => {
135
- applyCssClass(rootModalView, SYSTEM_APPEARANCE_CSS_CLASSES, newSystemAppearanceCssClass);
136
- });
137
- }
138
- export let inBackground = false;
139
- export let suspended = false;
140
- export function setInBackground(value) {
141
- inBackground = value;
142
- }
143
- export function setSuspended(value) {
144
- suspended = value;
145
- }
146
- global.__onUncaughtError = function (error) {
147
- notify({
148
- eventName: uncaughtErrorEvent,
149
- object: app,
150
- android: error,
151
- ios: error,
152
- error: error,
153
- });
154
- };
155
- global.__onDiscardedError = function (error) {
156
- notify({
157
- eventName: discardedErrorEvent,
158
- object: app,
159
- error: error,
160
- });
161
- };
418
+ __decorate([
419
+ profile
420
+ ], ApplicationCommon.prototype, "notifyLaunch", null);
421
+ __decorate([
422
+ profile
423
+ ], ApplicationCommon.prototype, "createRootView", null);
162
424
  //# sourceMappingURL=application-common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-common.js","sourceRoot":"","sources":["../../../../packages/core/application/application-common.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,YAAY,CAAC;AAQpB,WAAW;AACX,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,cAAc,0BAA0B,CAAC;AAEzC,MAAM,UAAU,WAAW;IAC1B,OAAO,MAAM,CAAC,mBAAmB,IAAI,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC;AAC1E,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AACpC,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAC1C,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC;AAChC,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAC1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,oBAAoB,CAAC;AAC5D,MAAM,CAAC,MAAM,4BAA4B,GAAG,yBAAyB,CAAC;AACtE,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAExD,MAAM,uBAAuB,GAAG,CAAC,GAAG,QAAQ,CAAC,YAAY,GAAG,SAAS,CAAC,iBAAiB,CAAC,QAAQ,E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,CAAC;IAC1F,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,IAAI,YAAY,GAAG,KAAK,CAAC;AAChC,MAAM,CAAC,IAAI,SAAS,GAAG,KAAK,CAAC;AAE7B,MAAM,UAAU,eAAe,CAAC,KAAc;IAC7C,YAAY,GAAG,KAAK,CAAC;AACtB,CAAC;AACD,MAAM,UAAU,YAAY,CAAC,KAAc;IAC1C,SAAS,GAAG,KAAK,CAAC;AACnB,CAAC;AAED,MAAM,CAAC,iBAAiB,GAAG,UAAU,KAAwB;IAC5D,MAAM,CAA0B;QAC/B,SAAS,EAAE,kBAAkB;QAC7B,MAAM,EAAE,GAAG;QACX,OAAO,EAAE,KAAK;QACd,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,KAAK;KACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,kBAAkB,GAAG,UAAU,KAAwB;IAC7D,MAAM,CAA0B;QAC/B,SAAS,EAAE,mBAAmB;QAC9B,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,KAAK;KACZ,CAAC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"application-common.js","sourceRoot":"","sources":["../../../../packages/core/application/application-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,iBAAiB,MAAM,wCAAwC,CAAC;AAQ5E,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