@nativescript/core 8.5.3 → 8.5.4-alpha.1

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