@akylas/nativescript 8.5.2 → 8.5.9

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 (194) 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 +23 -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 +2 -2
  12. package/accessibility/index.android.js.map +1 -1
  13. package/accessibility/index.ios.js +2 -2
  14. package/accessibility/index.ios.js.map +1 -1
  15. package/application/application-common.d.ts +222 -41
  16. package/application/application-common.js +432 -149
  17. package/application/application-common.js.map +1 -1
  18. package/application/application-interfaces.d.ts +122 -32
  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 +64 -0
  23. package/application/application.android.js +508 -0
  24. package/application/application.android.js.map +1 -0
  25. package/application/application.d.ts +186 -0
  26. package/application/application.ios.d.ts +77 -0
  27. package/application/application.ios.js +372 -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 -460
  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 -506
  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 +5 -7
  39. package/connectivity/index.android.js.map +1 -1
  40. package/css/system-classes.js +4 -1
  41. package/css/system-classes.js.map +1 -1
  42. package/file-system/file-system-access.android.d.ts +18 -0
  43. package/file-system/file-system-access.android.js +205 -3
  44. package/file-system/file-system-access.android.js.map +1 -1
  45. package/file-system/file-system-access.d.ts +67 -0
  46. package/file-system/file-system-access.ios.d.ts +9 -0
  47. package/file-system/file-system-access.ios.js +106 -0
  48. package/file-system/file-system-access.ios.js.map +1 -1
  49. package/file-system/index.d.ts +31 -0
  50. package/file-system/index.js +197 -3
  51. package/file-system/index.js.map +1 -1
  52. package/global-types.d.ts +2 -2
  53. package/globals/index.js +2 -0
  54. package/globals/index.js.map +1 -1
  55. package/image-source/index.android.js +2 -2
  56. package/image-source/index.android.js.map +1 -1
  57. package/index.d.ts +12 -140
  58. package/index.js +15 -156
  59. package/index.js.map +1 -1
  60. package/module-name-resolver/index.js +5 -5
  61. package/module-name-resolver/index.js.map +1 -1
  62. package/module-name-resolver/non-bundle-workflow-compat.js +2 -2
  63. package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
  64. package/package.json +1 -1
  65. package/platform/index.android.js +5 -5
  66. package/platform/index.android.js.map +1 -1
  67. package/platforms/android/native-api-usage.json +2 -0
  68. package/platforms/android/widgets-release.aar +0 -0
  69. package/platforms/dist/package/platforms/android/widgets-release.aar +0 -0
  70. package/platforms/ios/TNSWidgets.xcframework/Info.plist +7 -7
  71. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  72. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  75. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  76. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  77. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  78. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +4 -4
  79. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  80. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
  81. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +1 -0
  82. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +4 -4
  83. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  84. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  85. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  86. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
  87. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
  88. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  89. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  90. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +14 -3
  91. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  92. package/references.d.ts +1 -1
  93. package/ui/action-bar/index.android.js +8 -6
  94. package/ui/action-bar/index.android.js.map +1 -1
  95. package/ui/animation/index.android.js +1 -1
  96. package/ui/animation/index.android.js.map +1 -1
  97. package/ui/animation/index.ios.js +3 -3
  98. package/ui/animation/index.ios.js.map +1 -1
  99. package/ui/button/index.android.js +3 -1
  100. package/ui/button/index.android.js.map +1 -1
  101. package/ui/core/view/index.android.js +5 -3
  102. package/ui/core/view/index.android.js.map +1 -1
  103. package/ui/core/view/index.ios.js +2 -1
  104. package/ui/core/view/index.ios.js.map +1 -1
  105. package/ui/core/view/view-helper/index.ios.js +5 -6
  106. package/ui/core/view/view-helper/index.ios.js.map +1 -1
  107. package/ui/date-picker/index.android.js +4 -2
  108. package/ui/date-picker/index.android.js.map +1 -1
  109. package/ui/date-picker/index.ios.js +29 -21
  110. package/ui/date-picker/index.ios.js.map +1 -1
  111. package/ui/dialogs/index.ios.js +10 -4
  112. package/ui/dialogs/index.ios.js.map +1 -1
  113. package/ui/editable-text-base/index.android.js +5 -5
  114. package/ui/editable-text-base/index.android.js.map +1 -1
  115. package/ui/frame/activity.android.js +2 -2
  116. package/ui/frame/activity.android.js.map +1 -1
  117. package/ui/frame/fragment.transitions.android.js +5 -2
  118. package/ui/frame/fragment.transitions.android.js.map +1 -1
  119. package/ui/frame/index.android.d.ts +2 -2
  120. package/ui/frame/index.android.js +62 -86
  121. package/ui/frame/index.android.js.map +1 -1
  122. package/ui/frame/index.ios.js +19 -6
  123. package/ui/frame/index.ios.js.map +1 -1
  124. package/ui/image/index.android.js +3 -1
  125. package/ui/image/index.android.js.map +1 -1
  126. package/ui/layouts/root-layout/root-layout-common.js +3 -2
  127. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  128. package/ui/list-picker/index.android.js +6 -2
  129. package/ui/list-picker/index.android.js.map +1 -1
  130. package/ui/list-view/index.android.js +8 -2
  131. package/ui/list-view/index.android.js.map +1 -1
  132. package/ui/page/index.d.ts +4 -4
  133. package/ui/page/index.ios.js +12 -3
  134. package/ui/page/index.ios.js.map +1 -1
  135. package/ui/search-bar/index.android.js +6 -2
  136. package/ui/search-bar/index.android.js.map +1 -1
  137. package/ui/segmented-bar/index.android.js +6 -2
  138. package/ui/segmented-bar/index.android.js.map +1 -1
  139. package/ui/slider/index.android.js +2 -1
  140. package/ui/slider/index.android.js.map +1 -1
  141. package/ui/styling/background.android.js +3 -5
  142. package/ui/styling/background.android.js.map +1 -1
  143. package/ui/styling/style-scope.js +5 -5
  144. package/ui/styling/style-scope.js.map +1 -1
  145. package/ui/switch/index.android.js +3 -1
  146. package/ui/switch/index.android.js.map +1 -1
  147. package/ui/tab-view/index.android.js +2 -2
  148. package/ui/tab-view/index.android.js.map +1 -1
  149. package/ui/tab-view/index.ios.js +8 -2
  150. package/ui/tab-view/index.ios.js.map +1 -1
  151. package/ui/text-base/formatted-string.d.ts +6 -0
  152. package/ui/text-base/formatted-string.js +27 -0
  153. package/ui/text-base/formatted-string.js.map +1 -1
  154. package/ui/text-base/index.ios.js +27 -18
  155. package/ui/text-base/index.ios.js.map +1 -1
  156. package/ui/text-base/span.d.ts +6 -0
  157. package/ui/text-base/span.js +18 -0
  158. package/ui/text-base/span.js.map +1 -1
  159. package/ui/text-field/index.ios.js +1 -1
  160. package/ui/text-field/index.ios.js.map +1 -1
  161. package/ui/time-picker/index.android.js +3 -1
  162. package/ui/time-picker/index.android.js.map +1 -1
  163. package/ui/transition/shared-transition-helper.ios.js +58 -41
  164. package/ui/transition/shared-transition-helper.ios.js.map +1 -1
  165. package/ui/transition/shared-transition.d.ts +6 -2
  166. package/ui/transition/shared-transition.js +1 -2
  167. package/ui/transition/shared-transition.js.map +1 -1
  168. package/utils/android/index.d.ts +21 -0
  169. package/utils/android/index.js +157 -0
  170. package/utils/android/index.js.map +1 -0
  171. package/utils/index.android.d.ts +8 -3
  172. package/utils/index.android.js +15 -10
  173. package/utils/index.android.js.map +1 -1
  174. package/utils/index.d.ts +7 -7
  175. package/utils/index.ios.d.ts +8 -3
  176. package/utils/index.ios.js +13 -8
  177. package/utils/index.ios.js.map +1 -1
  178. package/utils/ios/index.d.ts +36 -0
  179. package/utils/ios/index.js +279 -0
  180. package/utils/ios/index.js.map +1 -0
  181. package/utils/layout-helper/index.android.js +3 -3
  182. package/utils/layout-helper/index.android.js.map +1 -1
  183. package/utils/mainthread-helper.android.js +2 -2
  184. package/utils/mainthread-helper.android.js.map +1 -1
  185. package/utils/native-helper.android.d.ts +8 -23
  186. package/utils/native-helper.android.js +10 -169
  187. package/utils/native-helper.android.js.map +1 -1
  188. package/utils/native-helper.d.ts +272 -255
  189. package/utils/native-helper.ios.d.ts +8 -38
  190. package/utils/native-helper.ios.js +10 -295
  191. package/utils/native-helper.ios.js.map +1 -1
  192. package/utils/platform-check.d.ts +4 -0
  193. package/utils/platform-check.js +21 -0
  194. package/utils/platform-check.js.map +1 -0
@@ -1,162 +1,445 @@
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(rootView) {
226
+ this.setRootViewCSSClasses(rootView);
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
+ // Expose statically for backwards compat on AndroidApplication.on etc.
419
+ /**
420
+ * @deprecated Use `Application.android.on()` instead.
421
+ */
422
+ ApplicationCommon.on = globalEvents.on.bind(globalEvents);
423
+ /**
424
+ * @deprecated Use `Application.android.once()` instead.
425
+ */
426
+ ApplicationCommon.once = globalEvents.once.bind(globalEvents);
427
+ /**
428
+ * @deprecated Use `Application.android.off()` instead.
429
+ */
430
+ ApplicationCommon.off = globalEvents.off.bind(globalEvents);
431
+ /**
432
+ * @deprecated Use `Application.android.notify()` instead.
433
+ */
434
+ ApplicationCommon.notify = globalEvents.notify.bind(globalEvents);
435
+ /**
436
+ * @deprecated Use `Application.android.hasListeners()` instead.
437
+ */
438
+ ApplicationCommon.hasListeners = globalEvents.hasListeners.bind(globalEvents);
439
+ __decorate([
440
+ profile
441
+ ], ApplicationCommon.prototype, "notifyLaunch", null);
442
+ __decorate([
443
+ profile
444
+ ], ApplicationCommon.prototype, "createRootView", null);
162
445
  //# sourceMappingURL=application-common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-common.js","sourceRoot":"","sources":["../../../../packages/core/application/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AAI,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,kBAAkB;AAClB,MAAM,uBAAuB,GAAG;IAC/B,GAAG,QAAQ,CAAC,Y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