@nativescript/core 8.2.5 → 8.2.6-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/application/application-common.d.ts +4 -0
  2. package/application/application-common.js +8 -0
  3. package/application/application-common.js.map +1 -1
  4. package/application/index.android.d.ts +2 -2
  5. package/application/index.android.js +10 -3
  6. package/application/index.android.js.map +1 -1
  7. package/application/index.ios.d.ts +2 -0
  8. package/application/index.ios.js +19 -8
  9. package/application/index.ios.js.map +1 -1
  10. package/connectivity/index.android.js +11 -10
  11. package/connectivity/index.android.js.map +1 -1
  12. package/connectivity/index.ios.js +3 -3
  13. package/connectivity/index.ios.js.map +1 -1
  14. package/core-types/index.js.map +1 -1
  15. package/css/CSS3Parser.js +16 -16
  16. package/css/CSS3Parser.js.map +1 -1
  17. package/file-system/file-system-access.ios.js +3 -3
  18. package/file-system/file-system-access.ios.js.map +1 -1
  19. package/file-system/index.js +8 -8
  20. package/file-system/index.js.map +1 -1
  21. package/http/http-request/index.ios.js +2 -2
  22. package/http/http-request/index.ios.js.map +1 -1
  23. package/image-asset/index.ios.js +2 -2
  24. package/image-asset/index.ios.js.map +1 -1
  25. package/image-source/index.android.js +4 -7
  26. package/image-source/index.android.js.map +1 -1
  27. package/image-source/index.ios.js +9 -15
  28. package/image-source/index.ios.js.map +1 -1
  29. package/index.d.ts +8 -2
  30. package/index.js +13 -2
  31. package/index.js.map +1 -1
  32. package/jest.config.d.ts +5 -0
  33. package/jest.config.js +6 -0
  34. package/jest.config.js.map +1 -0
  35. package/package.json +1 -1
  36. package/platform/index.android.d.ts +2 -2
  37. package/platform/index.ios.d.ts +2 -2
  38. package/platform/index.ios.js +1 -1
  39. package/platform/index.ios.js.map +1 -1
  40. package/platforms/android/core.aar +0 -0
  41. package/platforms/android/widgets-release.aar +0 -0
  42. package/platforms/ios/TNSWidgets.xcframework/Info.plist +19 -2
  43. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
  44. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
  45. package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  46. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
  47. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
  48. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
  49. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
  50. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +24 -0
  51. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
  52. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
  53. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
  54. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
  55. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
  56. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
  57. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
  58. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
  59. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
  60. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
  61. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
  62. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +24 -0
  63. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
  64. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
  65. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
  66. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
  67. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
  68. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
  69. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
  70. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
  71. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
  72. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  73. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
  74. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
  75. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +1 -1
  76. package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
  77. package/profiling/index.js +5 -5
  78. package/profiling/index.js.map +1 -1
  79. package/ui/action-bar/index.ios.js +8 -8
  80. package/ui/action-bar/index.ios.js.map +1 -1
  81. package/ui/activity-indicator/index.ios.js +1 -1
  82. package/ui/activity-indicator/index.ios.js.map +1 -1
  83. package/ui/animation/animation-interfaces.d.ts +1 -1
  84. package/ui/animation/index.ios.js +1 -1
  85. package/ui/animation/index.ios.js.map +1 -1
  86. package/ui/builder/xml2ui.js +8 -8
  87. package/ui/builder/xml2ui.js.map +1 -1
  88. package/ui/button/index.ios.js +11 -11
  89. package/ui/button/index.ios.js.map +1 -1
  90. package/ui/core/control-state-change/index.ios.js +1 -1
  91. package/ui/core/control-state-change/index.ios.js.map +1 -1
  92. package/ui/core/properties/index.js +45 -45
  93. package/ui/core/properties/index.js.map +1 -1
  94. package/ui/core/view/index.android.d.ts +1 -0
  95. package/ui/core/view/index.android.js +7 -4
  96. package/ui/core/view/index.android.js.map +1 -1
  97. package/ui/core/view/index.ios.d.ts +4 -2
  98. package/ui/core/view/index.ios.js +28 -11
  99. package/ui/core/view/index.ios.js.map +1 -1
  100. package/ui/core/view/view-helper/index.ios.js +2 -2
  101. package/ui/core/view-base/index.js +5 -6
  102. package/ui/core/view-base/index.js.map +1 -1
  103. package/ui/date-picker/index.ios.js +4 -4
  104. package/ui/date-picker/index.ios.js.map +1 -1
  105. package/ui/dialogs/index.ios.js +18 -18
  106. package/ui/dialogs/index.ios.js.map +1 -1
  107. package/ui/editable-text-base/index.android.d.ts +0 -1
  108. package/ui/editable-text-base/index.android.js +15 -14
  109. package/ui/editable-text-base/index.android.js.map +1 -1
  110. package/ui/editable-text-base/index.ios.js +38 -38
  111. package/ui/editable-text-base/index.ios.js.map +1 -1
  112. package/ui/frame/frame-common.d.ts +1 -1
  113. package/ui/frame/frame-common.js +15 -15
  114. package/ui/frame/frame-common.js.map +1 -1
  115. package/ui/frame/index.android.js +2 -1
  116. package/ui/frame/index.android.js.map +1 -1
  117. package/ui/frame/index.ios.js +17 -15
  118. package/ui/frame/index.ios.js.map +1 -1
  119. package/ui/gestures/index.ios.js +12 -12
  120. package/ui/gestures/index.ios.js.map +1 -1
  121. package/ui/gestures/touch-manager.js +2 -2
  122. package/ui/gestures/touch-manager.js.map +1 -1
  123. package/ui/html-view/index.ios.js +1 -1
  124. package/ui/html-view/index.ios.js.map +1 -1
  125. package/ui/image/index.ios.js +7 -7
  126. package/ui/image/index.ios.js.map +1 -1
  127. package/ui/label/index.ios.js +3 -3
  128. package/ui/label/index.ios.js.map +1 -1
  129. package/ui/layouts/root-layout/root-layout-common.js +2 -0
  130. package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
  131. package/ui/list-view/index.ios.js +1 -1
  132. package/ui/list-view/index.ios.js.map +1 -1
  133. package/ui/page/index.ios.d.ts +1 -0
  134. package/ui/page/index.ios.js +8 -3
  135. package/ui/page/index.ios.js.map +1 -1
  136. package/ui/proxy-view-container/index.d.ts +2 -0
  137. package/ui/proxy-view-container/index.js +28 -0
  138. package/ui/proxy-view-container/index.js.map +1 -1
  139. package/ui/segmented-bar/index.ios.js +5 -5
  140. package/ui/segmented-bar/index.ios.js.map +1 -1
  141. package/ui/slider/index.ios.js +1 -1
  142. package/ui/slider/index.ios.js.map +1 -1
  143. package/ui/styling/background-common.js +3 -3
  144. package/ui/styling/background-common.js.map +1 -1
  145. package/ui/styling/background.ios.js +2 -2
  146. package/ui/styling/background.ios.js.map +1 -1
  147. package/ui/styling/css-selector/index.js +8 -8
  148. package/ui/styling/css-selector/index.js.map +1 -1
  149. package/ui/styling/style/index.d.ts +1 -0
  150. package/ui/styling/style/index.js.map +1 -1
  151. package/ui/switch/index.android.js +8 -6
  152. package/ui/switch/index.android.js.map +1 -1
  153. package/ui/switch/index.ios.js +1 -1
  154. package/ui/switch/index.ios.js.map +1 -1
  155. package/ui/tab-view/index.ios.d.ts +1 -0
  156. package/ui/tab-view/index.ios.js +60 -30
  157. package/ui/tab-view/index.ios.js.map +1 -1
  158. package/ui/text-base/index.android.js +10 -1
  159. package/ui/text-base/index.android.js.map +1 -1
  160. package/ui/text-base/index.d.ts +5 -0
  161. package/ui/text-base/index.ios.js +28 -8
  162. package/ui/text-base/index.ios.js.map +1 -1
  163. package/ui/text-base/text-base-common.d.ts +3 -0
  164. package/ui/text-base/text-base-common.js +12 -0
  165. package/ui/text-base/text-base-common.js.map +1 -1
  166. package/ui/text-view/index.android.js +1 -11
  167. package/ui/text-view/index.android.js.map +1 -1
  168. package/ui/text-view/index.ios.js +1 -13
  169. package/ui/text-view/index.ios.js.map +1 -1
  170. package/ui/text-view/text-view-common.d.ts +0 -2
  171. package/ui/text-view/text-view-common.js +0 -6
  172. package/ui/text-view/text-view-common.js.map +1 -1
  173. package/ui/time-picker/index.ios.js +3 -3
  174. package/ui/time-picker/index.ios.js.map +1 -1
  175. package/ui/transition/fade-transition.ios.js +2 -2
  176. package/ui/transition/index.ios.js +1 -1
  177. package/ui/transition/index.ios.js.map +1 -1
  178. package/ui/transition/slide-transition.ios.js +3 -3
  179. package/ui/transition/slide-transition.ios.js.map +1 -1
  180. package/ui/web-view/index.ios.js +1 -1
  181. package/ui/web-view/index.ios.js.map +1 -1
  182. package/utils/index.android.d.ts +1 -1
  183. package/utils/index.android.js +1 -1
  184. package/utils/index.android.js.map +1 -1
  185. package/utils/index.ios.d.ts +1 -1
  186. package/utils/index.ios.js +1 -1
  187. package/utils/index.ios.js.map +1 -1
  188. package/utils/native-helper.android.d.ts +2 -0
  189. package/utils/native-helper.android.js +127 -0
  190. package/utils/native-helper.android.js.map +1 -1
  191. package/utils/native-helper.d.ts +22 -0
  192. package/utils/native-helper.ios.d.ts +3 -0
  193. package/utils/native-helper.ios.js +91 -1
  194. package/utils/native-helper.ios.js.map +1 -1
  195. package/utils/types.d.ts +12 -0
  196. package/utils/types.js +6 -0
  197. package/utils/types.js.map +1 -1
package/index.d.ts CHANGED
@@ -44,6 +44,8 @@ export declare const Application: {
44
44
  setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
45
45
  android: AndroidApplication;
46
46
  ios: iOSApplication;
47
+ suspended: boolean;
48
+ inBackground: boolean;
47
49
  };
48
50
  import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
49
51
  export declare const ApplicationSettings: {
@@ -103,8 +105,8 @@ export type { InstrumentationMode, TimerInfo } from './profiling';
103
105
  export { encoding } from './text';
104
106
  export * from './trace';
105
107
  export * from './ui';
106
- import { GC, isFontIconURI, isDataURI, isFileOrResourcePath, executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, executeOnUIThread, releaseNativeObject, getModuleName, openFile, openUrl, isRealDevice, layout, ad as androidUtils, iOSNativeHelper as iosUtils, Source, escapeRegexSymbols, convertString, dismissSoftInput, queueMacrotask, queueGC, throttle, debounce } from './utils';
107
- import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback } from './utils/types';
108
+ import { GC, isFontIconURI, isDataURI, isFileOrResourcePath, executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, executeOnUIThread, releaseNativeObject, getModuleName, openFile, openUrl, isRealDevice, layout, ad as androidUtils, iOSNativeHelper as iosUtils, Source, escapeRegexSymbols, convertString, dismissSoftInput, queueMacrotask, queueGC, throttle, debounce, dataSerialize, dataDeserialize } from './utils';
109
+ import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback, numberHasDecimals, numberIs64Bit } from './utils/types';
108
110
  export declare const Utils: {
109
111
  GC: typeof GC;
110
112
  RESOURCE_PREFIX: string;
@@ -132,6 +134,10 @@ export declare const Utils: {
132
134
  android: typeof androidUtils;
133
135
  ad: typeof androidUtils;
134
136
  ios: typeof iosUtils;
137
+ dataSerialize: typeof dataSerialize;
138
+ dataDeserialize: typeof dataDeserialize;
139
+ numberHasDecimals: typeof numberHasDecimals;
140
+ numberIs64Bit: typeof numberIs64Bit;
135
141
  setTimeout: typeof setTimeout;
136
142
  setInterval: typeof setInterval;
137
143
  clearInterval: typeof clearInterval;
package/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  import './globals';
4
4
  export { iOSApplication, AndroidApplication } from './application';
5
5
  import { fontScaleChangedEvent, launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent, suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent, systemAppearanceChanged, systemAppearanceChangedEvent, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, android as appAndroid, ios as iosApp, systemAppearance, setAutoSystemAppearanceChanged, ensureNativeApplication, setMaxRefreshRate } from './application';
6
+ import { inBackground, suspended } from './application/application-common';
6
7
  export const Application = {
7
8
  launchEvent,
8
9
  displayedEvent,
@@ -44,6 +45,12 @@ export const Application = {
44
45
  ensureNativeApplication();
45
46
  return iosApp;
46
47
  },
48
+ get suspended() {
49
+ return suspended;
50
+ },
51
+ get inBackground() {
52
+ return inBackground;
53
+ },
47
54
  };
48
55
  // Export all methods from "application-settings" as ApplicationSettings
49
56
  import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
@@ -102,8 +109,8 @@ export { encoding } from './text';
102
109
  import { setTimeout, setInterval, clearInterval, clearTimeout } from './timer';
103
110
  export * from './trace';
104
111
  export * from './ui';
105
- import { GC, isFontIconURI, isDataURI, isFileOrResourcePath, executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, executeOnUIThread, queueMacrotask, queueGC, debounce, throttle, releaseNativeObject, getModuleName, openFile, openUrl, isRealDevice, layout, ad as androidUtils, iOSNativeHelper as iosUtils, Source, RESOURCE_PREFIX, FILE_PREFIX, escapeRegexSymbols, convertString, dismissSoftInput } from './utils';
106
- import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback } from './utils/types';
112
+ import { GC, isFontIconURI, isDataURI, isFileOrResourcePath, executeOnMainThread, mainThreadify, isMainThread, dispatchToMainThread, executeOnUIThread, queueMacrotask, queueGC, debounce, throttle, releaseNativeObject, getModuleName, openFile, openUrl, isRealDevice, layout, ad as androidUtils, iOSNativeHelper as iosUtils, Source, RESOURCE_PREFIX, FILE_PREFIX, escapeRegexSymbols, convertString, dismissSoftInput, dataDeserialize, dataSerialize } from './utils';
113
+ import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback, numberHasDecimals, numberIs64Bit } from './utils/types';
107
114
  export const Utils = {
108
115
  GC,
109
116
  RESOURCE_PREFIX,
@@ -132,6 +139,10 @@ export const Utils = {
132
139
  // legacy (a lot of plugins use the shorthand "ad" Utils.ad instead of Utils.android)
133
140
  ad: androidUtils,
134
141
  ios: iosUtils,
142
+ dataSerialize,
143
+ dataDeserialize,
144
+ numberHasDecimals,
145
+ numberIs64Bit,
135
146
  setTimeout,
136
147
  setInterval,
137
148
  clearInterval,
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/core/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,mEAAmE;AACnE,OAAO,WAAW,CAAC;AAEnB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnE,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,oBAAoB,EAAE,WAAW,EAAE,OAAO,IAAI,UAAU,EAAE,GAAG,IAAI,MAAM,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrlB,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,mBAAmB;IACnB,YAAY;IACZ,WAAW;IACX,SAAS;IACT,cAAc;IACd,uBAAuB;IACvB,4BAA4B;IAC5B,uBAAuB;IACvB,qBAAqB;IACrB,iBAAiB;IAEjB,YAAY;IACZ,WAAW;IACX,aAAa,EAAE,cAAc;IAC7B,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,cAAc;IACd,UAAU;IACV,MAAM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a;IACb,YAAY;IACZ,oBAAoB;IACpB,cAAc;IACd,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,mBAAmB;IACnB,aAAa;IACb,kBAAkB;IAElB,aAAa;IACb,QAAQ;IACR,OAAO;IACP,YAAY;IAEZ,MAAM;IACN,OAAO,EAAE,YAAY;IACrB,qFAAqF;IACrF,EAAE,EAAE,YAAY;IAChB,GAAG,EAAE,QAAQ;IACb,aAAa;IACb,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,UAAU;IACV,WAAW;IACX,aAAa;IACb,YAAY;IACZ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,cAAc;IACd,YAAY;IACZ,SAAS;IACT,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;IACV,cAAc;IACd,gBAAgB;CAChB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ preset: string;
3
+ displayName: string;
4
+ };
5
+ export default _default;
package/jest.config.js ADDED
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ preset: '../../jest.preset.js',
4
+ displayName: 'core',
5
+ };
6
+ //# sourceMappingURL=jest.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../../../packages/core/jest.config.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,eAAe;IACd,MAAM,EAAE,sBAAsB;IAC9B,WAAW,EAAE,MAAM;CACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript/core",
3
- "version": "8.2.5",
3
+ "version": "8.2.6-alpha.2",
4
4
  "description": "A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.",
5
5
  "main": "index",
6
6
  "types": "index.d.ts",
@@ -36,6 +36,6 @@ declare class DeviceRef {
36
36
  }
37
37
  export declare const Device: DeviceRef;
38
38
  export declare const device: DeviceRef;
39
- export declare const isAndroid: boolean;
40
- export declare const isIOS: boolean;
39
+ export declare const isAndroid: any;
40
+ export declare const isIOS: any;
41
41
  export {};
@@ -32,6 +32,6 @@ export declare class Screen {
32
32
  static mainScreen: MainScreen;
33
33
  }
34
34
  export declare const screen: typeof Screen;
35
- export declare const isAndroid: boolean;
36
- export declare const isIOS: boolean;
35
+ export declare const isAndroid: any;
36
+ export declare const isIOS: any;
37
37
  export {};
@@ -30,7 +30,7 @@ class DeviceRef {
30
30
  }
31
31
  get deviceType() {
32
32
  if (!this._deviceType) {
33
- if (UIDevice.currentDevice.userInterfaceIdiom === 0 /* Phone */) {
33
+ if (UIDevice.currentDevice.userInterfaceIdiom === 0 /* UIUserInterfaceIdiom.Phone */) {
34
34
  this._deviceType = 'Phone';
35
35
  }
36
36
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../packages/core/platform/index.ios.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAE/B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACV,CAAC;AAEF,MAAM,SAAS;IAMd,IAAI,YAAY;QACf,OAAO,OAAO,CAAC;IAChB,CAAC;IAED,IAAI,EAAE;QACL,OAAO,aAAa,CAAC,GAAG,CAAC;IAC1B,CAAC;IAED,IAAI,SAAS;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;YACrB,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC;SACvD;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;IACxB,CAAC;IAED,IAAI,KAAK;QACR,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACjB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;SAC3C;QAED,OAAO,IA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
9
  <string>dSYMs</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64_x86_64-maccatalyst</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>TNSWidgets.framework</string>
14
14
  <key>SupportedArchitectures</key>
@@ -19,7 +19,7 @@
19
19
  <key>SupportedPlatform</key>
20
20
  <string>ios</string>
21
21
  <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
22
+ <string>maccatalyst</string>
23
23
  </dict>
24
24
  <dict>
25
25
  <key>DebugSymbolsPath</key>
@@ -35,6 +35,23 @@
35
35
  <key>SupportedPlatform</key>
36
36
  <string>ios</string>
37
37
  </dict>
38
+ <dict>
39
+ <key>DebugSymbolsPath</key>
40
+ <string>dSYMs</string>
41
+ <key>LibraryIdentifier</key>
42
+ <string>ios-arm64_x86_64-simulator</string>
43
+ <key>LibraryPath</key>
44
+ <string>TNSWidgets.framework</string>
45
+ <key>SupportedArchitectures</key>
46
+ <array>
47
+ <string>arm64</string>
48
+ <string>x86_64</string>
49
+ </array>
50
+ <key>SupportedPlatform</key>
51
+ <string>ios</string>
52
+ <key>SupportedPlatformVariant</key>
53
+ <string>simulator</string>
54
+ </dict>
38
55
  </array>
39
56
  <key>CFBundlePackageType</key>
40
57
  <string>XFWK</string>
@@ -0,0 +1,24 @@
1
+ //
2
+ // NSData+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 7.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSData (Async)
14
+
15
+ + (void)dataWithContentsOfFile:(nonnull NSString*)path
16
+ completion:(void (^) (NSData*))callback;
17
+
18
+ - (void)writeToFile:(nonnull NSString*) path
19
+ atomically:(BOOL)atomically
20
+ completion:(void (^) (void))callback;
21
+
22
+ @end
23
+
24
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,25 @@
1
+ //
2
+ // NSString+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 5.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSString (Async)
14
+
15
+ + (void)stringWithContentsOfFile:(nonnull NSString*)path
16
+ encoding:(NSStringEncoding)enc
17
+ completion:(void (^) (NSString*, NSError*))callback;
18
+
19
+ - (void)writeToFile:(nonnull NSString*) path
20
+ atomically:(BOOL)atomically
21
+ encoding:(NSStringEncoding)enc
22
+ completion:(void (^) (NSError*))callback;
23
+ @end
24
+
25
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,16 @@
1
+ //
2
+ // TNSLabel.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Hristo Hristov on 6/9/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface TNSLabel : UILabel
12
+
13
+ @property(nonatomic) UIEdgeInsets padding;
14
+ @property(nonatomic) UIEdgeInsets borderThickness;
15
+
16
+ @end
@@ -0,0 +1,29 @@
1
+ //
2
+ // TNSProcess.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 15/05/2017.
6
+ // Copyright © 2017 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #ifndef TNSProcess_h
10
+ #define TNSProcess_h
11
+
12
+ #import <Foundation/Foundation.h>
13
+
14
+ /**
15
+ * Get the milliseconds since the process started.
16
+ */
17
+ double __tns_uptime(void);
18
+
19
+ /**
20
+ * Provides access to NSLog. The runtime implementation of console.log is filtered in release.
21
+ * We rarely need to log in release but in cases such as when logging app startup times in release,
22
+ * this will be convenient shortcut to NSLog, NSLog is not exposed.
23
+ *
24
+ * Please note the {N} CLI may be filtering app output, prefixing the message with "CONSOLE LOG"
25
+ * will make the logs visible in "tns run ios --release" builds.
26
+ */
27
+ void __nslog(NSString* message);
28
+
29
+ #endif /* TNSProcess_h */
@@ -0,0 +1,24 @@
1
+ //
2
+ // TNSWidgets.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 4/27/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ //! Project version number for TNSWidgets.
12
+ FOUNDATION_EXPORT double TNSWidgetsVersionNumber;
13
+
14
+ //! Project version string for TNSWidgets.
15
+ FOUNDATION_EXPORT const unsigned char TNSWidgetsVersionString[];
16
+
17
+ // In this header, you should import all the public headers of your framework using statements like #import <TNSWidgets/PublicHeader.h>
18
+
19
+ #import "UIImage+TNSBlocks.h"
20
+ #import "UIView+PassThroughParent.h"
21
+ #import "TNSLabel.h"
22
+ #import "TNSProcess.h"
23
+ #import "NSString+Async.h"
24
+ #import "NSData+Async.h"
@@ -0,0 +1,26 @@
1
+ //
2
+ // UIImage+UIImage_Async.h
3
+ // TKImageAsync
4
+ //
5
+ // Created by Panayot Cankov on 4/18/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ @interface UIImage (TNSBlocks)
10
+
11
+ /**
12
+ * Similar to imageNamed: however it runs on a separate queue so the UI thread is not blocked.
13
+ * It also draws the UIImage in a small thumb to force decoding potentially avoiding UI hicckups when displayed.
14
+ */
15
+ + (void) tns_safeDecodeImageNamed: (NSString*) name completion: (void (^) (UIImage*))callback;
16
+
17
+ /**
18
+ * Same as imageNamed, however calls to this method are sinchronized to be thread safe in iOS8 along with calls to tns_safeImageNamed and tns_safeDecodeImageNamed:completion:
19
+ * imageNamed is thread safe in iOS 9 and later so in later versions this methods simply fallbacks to imageNamed:
20
+ */
21
+ + (UIImage*) tns_safeImageNamed: (NSString*) name;
22
+
23
+ + (void) tns_decodeImageWithData: (NSData*) data completion: (void (^) (UIImage*))callback;
24
+ + (void) tns_decodeImageWidthContentsOfFile: (NSString*) file completion: (void (^) (UIImage*))callback;
25
+
26
+ @end
@@ -0,0 +1,17 @@
1
+ //
2
+ // UIView+PassThroughParent.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Manol Donev on 21.08.18.
6
+ // Copyright © 2018 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+
12
+ @interface UIView (PassThroughParent)
13
+
14
+ - (BOOL) passThroughParent;
15
+ - (void) setPassThroughParent:(BOOL) passThroughParent;
16
+
17
+ @end
@@ -0,0 +1,6 @@
1
+ framework module TNSWidgets {
2
+ umbrella header "TNSWidgets.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -0,0 +1,17 @@
1
+ //
2
+ // NSObject+Swizzling.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Manol Donev on 21.08.18.
6
+ // Copyright © 2018 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <objc/runtime.h>
11
+
12
+
13
+ @interface NSObject (Swizzling)
14
+
15
+ + (void)swizzleInstanceMethodWithOriginalSelector:(SEL)originalSelector fromClass:(Class)classContainigOriginalSel withSwizzlingSelector:(SEL)swizzlingSelector;
16
+
17
+ @end
@@ -0,0 +1,18 @@
1
+ //
2
+ // UIView+PropertyBag.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Manol Donev on 21.08.18.
6
+ // Copyright © 2018 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <UIKit/UIKit.h>
11
+
12
+
13
+ @interface UIView (PropertyBag)
14
+
15
+ - (id) propertyValueForKey:(NSString*) key;
16
+ - (void) setPropertyValue:(id) value forKey:(NSString*) key;
17
+
18
+ @end
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildMachineOSBuild</key>
6
+ <string>21E258</string>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>TNSWidgets</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.nativescript.TNSWidgets</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>TNSWidgets</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>FMWK</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleSupportedPlatforms</key>
24
+ <array>
25
+ <string>MacOSX</string>
26
+ </array>
27
+ <key>CFBundleVersion</key>
28
+ <string>1</string>
29
+ <key>DTCompiler</key>
30
+ <string>com.apple.compilers.llvm.clang.1_0</string>
31
+ <key>DTPlatformBuild</key>
32
+ <string>13F17a</string>
33
+ <key>DTPlatformName</key>
34
+ <string>macosx</string>
35
+ <key>DTPlatformVersion</key>
36
+ <string>12.3</string>
37
+ <key>DTSDKBuild</key>
38
+ <string>21E226</string>
39
+ <key>DTSDKName</key>
40
+ <string>macosx12.3</string>
41
+ <key>DTXcode</key>
42
+ <string>1340</string>
43
+ <key>DTXcodeBuild</key>
44
+ <string>13F17a</string>
45
+ <key>LSMinimumSystemVersion</key>
46
+ <string>10.15</string>
47
+ <key>UIDeviceFamily</key>
48
+ <array>
49
+ <integer>2</integer>
50
+ </array>
51
+ </dict>
52
+ </plist>
@@ -0,0 +1,24 @@
1
+ //
2
+ // NSData+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 7.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSData (Async)
14
+
15
+ + (void)dataWithContentsOfFile:(nonnull NSString*)path
16
+ completion:(void (^) (NSData*))callback;
17
+
18
+ - (void)writeToFile:(nonnull NSString*) path
19
+ atomically:(BOOL)atomically
20
+ completion:(void (^) (void))callback;
21
+
22
+ @end
23
+
24
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,25 @@
1
+ //
2
+ // NSString+Async.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Peter Staev on 5.08.19.
6
+ // Copyright © 2019 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface NSString (Async)
14
+
15
+ + (void)stringWithContentsOfFile:(nonnull NSString*)path
16
+ encoding:(NSStringEncoding)enc
17
+ completion:(void (^) (NSString*, NSError*))callback;
18
+
19
+ - (void)writeToFile:(nonnull NSString*) path
20
+ atomically:(BOOL)atomically
21
+ encoding:(NSStringEncoding)enc
22
+ completion:(void (^) (NSError*))callback;
23
+ @end
24
+
25
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,16 @@
1
+ //
2
+ // TNSLabel.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Hristo Hristov on 6/9/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface TNSLabel : UILabel
12
+
13
+ @property(nonatomic) UIEdgeInsets padding;
14
+ @property(nonatomic) UIEdgeInsets borderThickness;
15
+
16
+ @end
@@ -0,0 +1,29 @@
1
+ //
2
+ // TNSProcess.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 15/05/2017.
6
+ // Copyright © 2017 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #ifndef TNSProcess_h
10
+ #define TNSProcess_h
11
+
12
+ #import <Foundation/Foundation.h>
13
+
14
+ /**
15
+ * Get the milliseconds since the process started.
16
+ */
17
+ double __tns_uptime(void);
18
+
19
+ /**
20
+ * Provides access to NSLog. The runtime implementation of console.log is filtered in release.
21
+ * We rarely need to log in release but in cases such as when logging app startup times in release,
22
+ * this will be convenient shortcut to NSLog, NSLog is not exposed.
23
+ *
24
+ * Please note the {N} CLI may be filtering app output, prefixing the message with "CONSOLE LOG"
25
+ * will make the logs visible in "tns run ios --release" builds.
26
+ */
27
+ void __nslog(NSString* message);
28
+
29
+ #endif /* TNSProcess_h */
@@ -0,0 +1,24 @@
1
+ //
2
+ // TNSWidgets.h
3
+ // TNSWidgets
4
+ //
5
+ // Created by Panayot Cankov on 4/27/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ //! Project version number for TNSWidgets.
12
+ FOUNDATION_EXPORT double TNSWidgetsVersionNumber;
13
+
14
+ //! Project version string for TNSWidgets.
15
+ FOUNDATION_EXPORT const unsigned char TNSWidgetsVersionString[];
16
+
17
+ // In this header, you should import all the public headers of your framework using statements like #import <TNSWidgets/PublicHeader.h>
18
+
19
+ #import "UIImage+TNSBlocks.h"
20
+ #import "UIView+PassThroughParent.h"
21
+ #import "TNSLabel.h"
22
+ #import "TNSProcess.h"
23
+ #import "NSString+Async.h"
24
+ #import "NSData+Async.h"
@@ -0,0 +1,26 @@
1
+ //
2
+ // UIImage+UIImage_Async.h
3
+ // TKImageAsync
4
+ //
5
+ // Created by Panayot Cankov on 4/18/16.
6
+ // Copyright © 2016 Telerik A D. All rights reserved.
7
+ //
8
+
9
+ @interface UIImage (TNSBlocks)
10
+
11
+ /**
12
+ * Similar to imageNamed: however it runs on a separate queue so the UI thread is not blocked.
13
+ * It also draws the UIImage in a small thumb to force decoding potentially avoiding UI hicckups when displayed.
14
+ */
15
+ + (void) tns_safeDecodeImageNamed: (NSString*) name completion: (void (^) (UIImage*))callback;
16
+
17
+ /**
18
+ * Same as imageNamed, however calls to this method are sinchronized to be thread safe in iOS8 along with calls to tns_safeImageNamed and tns_safeDecodeImageNamed:completion:
19
+ * imageNamed is thread safe in iOS 9 and later so in later versions this methods simply fallbacks to imageNamed:
20
+ */
21
+ + (UIImage*) tns_safeImageNamed: (NSString*) name;
22
+
23
+ + (void) tns_decodeImageWithData: (NSData*) data completion: (void (^) (UIImage*))callback;
24
+ + (void) tns_decodeImageWidthContentsOfFile: (NSString*) file completion: (void (^) (UIImage*))callback;
25
+
26
+ @end