@akylas/nativescript 8.2.3 → 8.3.0-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.
- package/accessibility/index.ios.js +1 -1
- package/accessibility/index.ios.js.map +1 -1
- package/application/application-common.js.map +1 -1
- package/application/index.android.js.map +1 -1
- package/application/index.ios.d.ts +2 -0
- package/application/index.ios.js +7 -1
- package/application/index.ios.js.map +1 -1
- package/cli-hooks/before-checkForChanges.js +21 -16
- package/color/color-common.js +15 -9
- package/color/color-common.js.map +1 -1
- package/connectivity/index.android.js +11 -10
- package/connectivity/index.android.js.map +1 -1
- package/core-types/index.d.ts +1 -0
- package/core-types/index.js.map +1 -1
- package/css/LICENSE +9 -0
- package/css/Readme.md +278 -0
- package/css-value/LICENSE +9 -0
- package/css-value/Readme.md +45 -0
- package/css-value/UPGRADING.md +26 -0
- package/fetch/LICENSE +20 -0
- package/fetch/README.md +1 -0
- package/image-source/index.android.js +4 -7
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.ios.js +3 -9
- package/image-source/index.ios.js.map +1 -1
- package/index.d.ts +8 -2
- package/index.js +13 -2
- package/index.js.map +1 -1
- package/jest.config.d.ts +5 -0
- package/jest.config.js.map +1 -0
- package/js-libs/easysax/LICENSE +20 -0
- package/js-libs/easysax/README.md +46 -0
- package/js-libs/esprima/LICENSE.BSD +19 -0
- package/js-libs/esprima/README.md +24 -0
- package/js-libs/polymer-expressions/LICENSE +27 -0
- package/js-libs/polymer-expressions/README.md +0 -0
- package/package.json +5 -13
- package/platforms/README.md +1 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +1 -1
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/ui/animation/animation-common.d.ts +7 -4
- package/ui/animation/animation-common.js +55 -117
- package/ui/animation/animation-common.js.map +1 -1
- package/ui/animation/animation-interfaces.d.ts +3 -2
- package/ui/animation/index.android.d.ts +15 -14
- package/ui/animation/index.android.js +94 -20
- package/ui/animation/index.android.js.map +1 -1
- package/ui/animation/index.ios.d.ts +33 -16
- package/ui/animation/index.ios.js +256 -202
- package/ui/animation/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.d.ts +0 -1
- package/ui/animation/keyframe-animation.js +51 -51
- package/ui/animation/keyframe-animation.js.map +1 -1
- package/ui/button/index.ios.js +1 -1
- package/ui/button/index.ios.js.map +1 -1
- package/ui/core/properties/index.d.ts +37 -6
- package/ui/core/properties/index.js +434 -643
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/view/index.d.ts +5 -0
- package/ui/core/view/index.ios.d.ts +4 -2
- package/ui/core/view/index.ios.js +33 -10
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +1 -0
- package/ui/core/view/view-common.js +6 -3
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.d.ts +2 -0
- package/ui/core/view/view-helper/index.ios.js +13 -4
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view-base/index.js +4 -5
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.js +2 -1
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/frame/frame-common.d.ts +1 -1
- package/ui/frame/frame-common.js +17 -17
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/index.android.js +6 -2
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.ios.js +2 -0
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/html-view/html-view-common.js +2 -1
- package/ui/html-view/html-view-common.js.map +1 -1
- package/ui/image/image-common.js +2 -2
- package/ui/image/image-common.js.map +1 -1
- package/ui/label/index.ios.js +2 -2
- package/ui/label/index.ios.js.map +1 -1
- package/ui/layouts/root-layout/root-layout-common.js +6 -4
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
- package/ui/list-view/list-view-common.js +2 -2
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/index.ios.d.ts +1 -0
- package/ui/page/index.ios.js +5 -0
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.js +2 -1
- package/ui/page/page-common.js.map +1 -1
- package/ui/proxy-view-container/index.d.ts +2 -0
- package/ui/proxy-view-container/index.js +28 -0
- package/ui/proxy-view-container/index.js.map +1 -1
- package/ui/search-bar/search-bar-common.js +3 -2
- package/ui/search-bar/search-bar-common.js.map +1 -1
- package/ui/segmented-bar/segmented-bar-common.js +2 -1
- package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
- package/ui/styling/css-animation-parser.js +3 -2
- package/ui/styling/css-animation-parser.js.map +1 -1
- package/ui/styling/font.ios.js +23 -2
- package/ui/styling/font.ios.js.map +1 -1
- package/ui/styling/style/index.d.ts +3 -1
- package/ui/styling/style/index.js +6 -0
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.d.ts +1 -0
- package/ui/styling/style-properties.js +57 -69
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.js +4 -10
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/switch/index.android.js +8 -6
- package/ui/switch/index.android.js.map +1 -1
- package/ui/switch/switch-common.js +2 -1
- package/ui/switch/switch-common.js.map +1 -1
- package/ui/tab-view/index.ios.d.ts +1 -0
- package/ui/tab-view/index.ios.js +54 -24
- package/ui/tab-view/index.ios.js.map +1 -1
- package/ui/tab-view/tab-view-common.js +5 -4
- package/ui/tab-view/tab-view-common.js.map +1 -1
- package/ui/text-base/index.android.js +1 -1
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.d.ts +5 -0
- package/ui/text-base/index.ios.js +4 -3
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-base/text-base-common.d.ts +3 -3
- package/ui/text-base/text-base-common.js +1 -1
- package/ui/text-base/text-base-common.js.map +1 -1
- package/ui/web-view/index.android.js +4 -2
- package/ui/web-view/index.android.js.map +1 -1
- package/utils/index.android.d.ts +1 -1
- package/utils/index.android.js +1 -1
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.d.ts +1 -1
- package/utils/index.ios.js +1 -1
- package/utils/index.ios.js.map +1 -1
- package/utils/mainthread-helper.ios.d.ts +1 -1
- package/utils/mainthread-helper.ios.js +7 -9
- package/utils/mainthread-helper.ios.js.map +1 -1
- package/utils/native-helper.android.d.ts +2 -0
- package/utils/native-helper.android.js +127 -0
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +22 -0
- package/utils/native-helper.ios.d.ts +3 -0
- package/utils/native-helper.ios.js +90 -0
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/types.d.ts +2 -0
- package/utils/types.js +6 -0
- package/utils/types.js.map +1 -1
- package/platforms/android/core.aar +0 -0
- package/platforms/android/nativescript.aar +0 -0
|
@@ -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,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>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleIdentifier</key>
|
|
8
|
+
<string>com.apple.xcode.dsym.org.nativescript.TNSWidgets</string>
|
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
10
|
+
<string>6.0</string>
|
|
11
|
+
<key>CFBundlePackageType</key>
|
|
12
|
+
<string>dSYM</string>
|
|
13
|
+
<key>CFBundleSignature</key>
|
|
14
|
+
<string>????</string>
|
|
15
|
+
<key>CFBundleShortVersionString</key>
|
|
16
|
+
<string>1.0</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1</string>
|
|
19
|
+
</dict>
|
|
20
|
+
</plist>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CubicBezierAnimationCurve as CubicBezierAnimationCurveDefinition, Animation as AnimationBaseDefinition } from '.';
|
|
2
2
|
import { AnimationDefinition, AnimationPromise as AnimationPromiseDefinition, PropertyAnimation } from './animation-interfaces';
|
|
3
|
+
import { View } from '../core/view';
|
|
3
4
|
export * from './animation-interfaces';
|
|
5
|
+
export declare function getPropertyFromKey(key: string, view: View): any;
|
|
4
6
|
export declare namespace Properties {
|
|
5
7
|
const opacity = "opacity";
|
|
6
8
|
const backgroundColor = "backgroundColor";
|
|
@@ -10,6 +12,7 @@ export declare namespace Properties {
|
|
|
10
12
|
const height = "height";
|
|
11
13
|
const width = "width";
|
|
12
14
|
}
|
|
15
|
+
export declare const AnimationNonAnimatableProperties: string[];
|
|
13
16
|
export declare class CubicBezierAnimationCurve implements CubicBezierAnimationCurveDefinition {
|
|
14
17
|
x1: number;
|
|
15
18
|
y1: number;
|
|
@@ -27,11 +30,11 @@ export declare abstract class AnimationBase implements AnimationBaseDefinition {
|
|
|
27
30
|
abstract _resolveAnimationCurve(curve: any): any;
|
|
28
31
|
protected _rejectAlreadyPlaying(): AnimationPromiseDefinition;
|
|
29
32
|
play(): AnimationPromiseDefinition;
|
|
30
|
-
|
|
33
|
+
protected fixupAnimationPromise(promise: AnimationPromiseDefinition): void;
|
|
31
34
|
cancel(): void;
|
|
32
35
|
get isPlaying(): boolean;
|
|
33
|
-
_resolveAnimationFinishedPromise(): void;
|
|
34
|
-
_rejectAnimationFinishedPromise(): void;
|
|
35
|
-
|
|
36
|
+
protected _resolveAnimationFinishedPromise(): void;
|
|
37
|
+
protected _rejectAnimationFinishedPromise(): void;
|
|
38
|
+
protected _createPropertyAnimations(animationDefinition: AnimationDefinition): Array<PropertyAnimation>;
|
|
36
39
|
static _getAnimationInfo(animation: PropertyAnimation): string;
|
|
37
40
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
// Requires.
|
|
2
|
-
import { Color } from '../../color';
|
|
3
2
|
import { Trace } from '../../trace';
|
|
4
|
-
import {
|
|
3
|
+
import { Style } from '../styling/style';
|
|
4
|
+
import { CssAnimationProperty, CssProperty, InheritedCssProperty, ShorthandProperty } from '../core/properties';
|
|
5
5
|
export * from './animation-interfaces';
|
|
6
|
+
export function getPropertyFromKey(key, view) {
|
|
7
|
+
return CssAnimationProperty.properties[key] || ShorthandProperty.properties[key] || InheritedCssProperty.properties[key] || CssProperty.properties[key] || Style.prototype[key] || Object.getPrototypeOf(view)[key];
|
|
8
|
+
}
|
|
6
9
|
export var Properties;
|
|
7
10
|
(function (Properties) {
|
|
8
11
|
Properties.opacity = 'opacity';
|
|
@@ -13,6 +16,7 @@ export var Properties;
|
|
|
13
16
|
Properties.height = 'height';
|
|
14
17
|
Properties.width = 'width';
|
|
15
18
|
})(Properties || (Properties = {}));
|
|
19
|
+
export const AnimationNonAnimatableProperties = ['duration', 'valueSource', 'delay', 'iterations', 'curve', 'target'];
|
|
16
20
|
export class CubicBezierAnimationCurve {
|
|
17
21
|
constructor(x1, y1, x2, y2) {
|
|
18
22
|
this.x1 = x1;
|
|
@@ -30,12 +34,12 @@ export class AnimationBase {
|
|
|
30
34
|
Trace.write('Analyzing ' + animationDefinitions.length + ' animation definitions...', Trace.categories.Animation);
|
|
31
35
|
}
|
|
32
36
|
this._propertyAnimations = new Array();
|
|
33
|
-
|
|
34
|
-
if (
|
|
35
|
-
|
|
37
|
+
animationDefinitions.forEach((animationDefinition) => {
|
|
38
|
+
if (animationDefinition.curve) {
|
|
39
|
+
animationDefinition.curve = this._resolveAnimationCurve(animationDefinition.curve);
|
|
36
40
|
}
|
|
37
|
-
this._propertyAnimations
|
|
38
|
-
}
|
|
41
|
+
this._propertyAnimations.push(...this._createPropertyAnimations(animationDefinition));
|
|
42
|
+
});
|
|
39
43
|
if (this._propertyAnimations.length === 0) {
|
|
40
44
|
throw new Error('Nothing to animate.');
|
|
41
45
|
}
|
|
@@ -97,127 +101,61 @@ export class AnimationBase {
|
|
|
97
101
|
this._isPlaying = false;
|
|
98
102
|
this._reject(new Error('Animation cancelled.'));
|
|
99
103
|
}
|
|
100
|
-
|
|
104
|
+
_createPropertyAnimations(animationDefinition) {
|
|
101
105
|
if (!animationDefinition.target) {
|
|
102
106
|
throw new Error('No animation target specified.');
|
|
103
107
|
}
|
|
108
|
+
const propertyAnimations = new Array();
|
|
104
109
|
for (const item in animationDefinition) {
|
|
105
110
|
const value = animationDefinition[item];
|
|
106
111
|
if (value === undefined) {
|
|
107
112
|
continue;
|
|
108
113
|
}
|
|
109
|
-
if ((item
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
else if (item === Properties.backgroundColor && !Color.isValid(animationDefinition.backgroundColor)) {
|
|
116
|
-
throw new Error(`Property ${item} must be valid color. Value: ${value}`);
|
|
117
|
-
}
|
|
118
|
-
else if (item === Properties.width || item === Properties.height) {
|
|
119
|
-
// Coerce input into a PercentLength object in case it's a string.
|
|
120
|
-
animationDefinition[item] = PercentLength.parse(value);
|
|
121
|
-
}
|
|
122
|
-
else if (item === Properties.rotate) {
|
|
123
|
-
const rotate = value;
|
|
124
|
-
if (typeof rotate !== 'number' && !(typeof rotate.x === 'number' && typeof rotate.y === 'number' && typeof rotate.z === 'number')) {
|
|
125
|
-
throw new Error(`Property ${rotate} must be valid number or Point3D. Value: ${value}`);
|
|
114
|
+
if (AnimationNonAnimatableProperties.indexOf(item) !== -1) {
|
|
115
|
+
if (item === 'duration' || item === 'delay' || item === 'iterations') {
|
|
116
|
+
if (typeof value !== 'number') {
|
|
117
|
+
throw new Error(`Property ${item} must be valid number. Value: ${value}`);
|
|
118
|
+
}
|
|
126
119
|
}
|
|
120
|
+
continue;
|
|
127
121
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (animationDefinition.opacity !== undefined) {
|
|
132
|
-
propertyAnimations.push({
|
|
133
|
-
target: animationDefinition.target,
|
|
134
|
-
property: Properties.opacity,
|
|
135
|
-
value: animationDefinition.opacity,
|
|
136
|
-
duration: animationDefinition.duration,
|
|
137
|
-
delay: animationDefinition.delay,
|
|
138
|
-
iterations: animationDefinition.iterations,
|
|
139
|
-
curve: animationDefinition.curve,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
// backgroundColor
|
|
143
|
-
if (animationDefinition.backgroundColor !== undefined) {
|
|
144
|
-
propertyAnimations.push({
|
|
145
|
-
target: animationDefinition.target,
|
|
146
|
-
property: Properties.backgroundColor,
|
|
147
|
-
value: typeof animationDefinition.backgroundColor === 'string' ? new Color(animationDefinition.backgroundColor) : animationDefinition.backgroundColor,
|
|
148
|
-
duration: animationDefinition.duration,
|
|
149
|
-
delay: animationDefinition.delay,
|
|
150
|
-
iterations: animationDefinition.iterations,
|
|
151
|
-
curve: animationDefinition.curve,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
// translate
|
|
155
|
-
if (animationDefinition.translate !== undefined) {
|
|
156
|
-
propertyAnimations.push({
|
|
157
|
-
target: animationDefinition.target,
|
|
158
|
-
property: Properties.translate,
|
|
159
|
-
value: animationDefinition.translate,
|
|
160
|
-
duration: animationDefinition.duration,
|
|
161
|
-
delay: animationDefinition.delay,
|
|
162
|
-
iterations: animationDefinition.iterations,
|
|
163
|
-
curve: animationDefinition.curve,
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
// scale
|
|
167
|
-
if (animationDefinition.scale !== undefined) {
|
|
168
|
-
propertyAnimations.push({
|
|
169
|
-
target: animationDefinition.target,
|
|
170
|
-
property: Properties.scale,
|
|
171
|
-
value: animationDefinition.scale,
|
|
172
|
-
duration: animationDefinition.duration,
|
|
173
|
-
delay: animationDefinition.delay,
|
|
174
|
-
iterations: animationDefinition.iterations,
|
|
175
|
-
curve: animationDefinition.curve,
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
// rotate
|
|
179
|
-
if (animationDefinition.rotate !== undefined) {
|
|
180
|
-
// Make sure the value of the rotation property is always Point3D
|
|
181
|
-
let rotationValue;
|
|
182
|
-
if (typeof animationDefinition.rotate === 'number') {
|
|
183
|
-
rotationValue = { x: 0, y: 0, z: animationDefinition.rotate };
|
|
122
|
+
let property = getPropertyFromKey(item, animationDefinition.target);
|
|
123
|
+
if (item === Properties.scale || item === Properties.translate) {
|
|
124
|
+
property = CssAnimationProperty.properties[item + 'X'];
|
|
184
125
|
}
|
|
185
|
-
|
|
186
|
-
|
|
126
|
+
if (property) {
|
|
127
|
+
let newValue = value;
|
|
128
|
+
const valueConverter = property.valueConverter;
|
|
129
|
+
if ((item === Properties.scale || item === Properties.translate) && typeof value !== 'object') {
|
|
130
|
+
throw new Error(`Property ${item} must be valid Pair. Value: ${value}`);
|
|
131
|
+
}
|
|
132
|
+
if (valueConverter) {
|
|
133
|
+
if (item === Properties.translate || item === Properties.rotate || item === Properties.scale) {
|
|
134
|
+
newValue = {};
|
|
135
|
+
if (Properties.rotate && typeof value !== 'object') {
|
|
136
|
+
newValue = { x: 0, y: 0, z: typeof value === 'string' ? valueConverter(value) : value };
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
Object.keys(value).forEach((k2) => {
|
|
140
|
+
newValue[k2] = typeof value[k2] === 'string' ? valueConverter(value[k2]) : value[k2];
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
newValue = typeof value === 'string' ? valueConverter(value) : value;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
propertyAnimations.push({
|
|
149
|
+
target: animationDefinition.target,
|
|
150
|
+
propertyName: item,
|
|
151
|
+
property,
|
|
152
|
+
value: newValue,
|
|
153
|
+
duration: animationDefinition.duration,
|
|
154
|
+
delay: animationDefinition.delay,
|
|
155
|
+
iterations: animationDefinition.iterations,
|
|
156
|
+
curve: animationDefinition.curve,
|
|
157
|
+
});
|
|
187
158
|
}
|
|
188
|
-
propertyAnimations.push({
|
|
189
|
-
target: animationDefinition.target,
|
|
190
|
-
property: Properties.rotate,
|
|
191
|
-
value: rotationValue,
|
|
192
|
-
duration: animationDefinition.duration,
|
|
193
|
-
delay: animationDefinition.delay,
|
|
194
|
-
iterations: animationDefinition.iterations,
|
|
195
|
-
curve: animationDefinition.curve,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
// height
|
|
199
|
-
if (animationDefinition.height !== undefined) {
|
|
200
|
-
propertyAnimations.push({
|
|
201
|
-
target: animationDefinition.target,
|
|
202
|
-
property: Properties.height,
|
|
203
|
-
value: animationDefinition.height,
|
|
204
|
-
duration: animationDefinition.duration,
|
|
205
|
-
delay: animationDefinition.delay,
|
|
206
|
-
iterations: animationDefinition.iterations,
|
|
207
|
-
curve: animationDefinition.curve,
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
// width
|
|
211
|
-
if (animationDefinition.width !== undefined) {
|
|
212
|
-
propertyAnimations.push({
|
|
213
|
-
target: animationDefinition.target,
|
|
214
|
-
property: Properties.width,
|
|
215
|
-
value: animationDefinition.width,
|
|
216
|
-
duration: animationDefinition.duration,
|
|
217
|
-
delay: animationDefinition.delay,
|
|
218
|
-
iterations: animationDefinition.iterations,
|
|
219
|
-
curve: animationDefinition.curve,
|
|
220
|
-
});
|
|
221
159
|
}
|
|
222
160
|
if (propertyAnimations.length === 0) {
|
|
223
161
|
throw new Error('No known animation properties specified');
|
|
@@ -227,7 +165,7 @@ export class AnimationBase {
|
|
|
227
165
|
static _getAnimationInfo(animation) {
|
|
228
166
|
return JSON.stringify({
|
|
229
167
|
target: animation.target.id,
|
|
230
|
-
|
|
168
|
+
propertyName: animation.propertyName,
|
|
231
169
|
value: animation.value,
|
|
232
170
|
duration: animation.duration,
|
|
233
171
|
delay: animation.delay,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation-common.js","sourceRoot":"","sources":["../../../../../packages/core/ui/animation/animation-common.ts"],"names":[],"mappings":"AAIA,YAAY;AACZ,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"animation-common.js","sourceRoot":"","sources":["../../../../../packages/core/ui/animation/animation-common.ts"],"names":[],"mappings":"AAIA,YAAY;AACZ,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGhH,cAAc,wBAAwB,CAAC;AAEvC,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,IAAU;IACzD,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,iBAAiB,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;AACrN,CAAC;AAED,MAAM,KAAW,UAAU,CAQ1B;AARD,WAAiB,UAAU;IACb,kBAAO,GAAG,SAAS,CAAC;IACpB,0BAAe,GAAG,iBAAiB,CAAC;IACpC,oBAAS,GAAG,WAAW,CAAC;IACxB,iBAAM,GAAG,QAAQ,CAAC;IAClB,gBAAK,GAAG,OAAO,CAAC;IAChB,iBAAM,GAAG,QAAQ,CAAC;IAClB,gBAAK,GAAG,OAAO,CAAC;AAC9B,CAAC,EARgB,UAAU,KAAV,UAAU,QAQ1B;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE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face Cancelable {
|
|
|
25
25
|
}
|
|
26
26
|
export interface PropertyAnimation {
|
|
27
27
|
target: View;
|
|
28
|
-
property:
|
|
28
|
+
property: any;
|
|
29
|
+
propertyName: string;
|
|
29
30
|
value: any;
|
|
30
31
|
duration?: number;
|
|
31
32
|
delay?: number;
|
|
@@ -56,5 +57,5 @@ export interface AnimationDefinitionInternal extends AnimationDefinition {
|
|
|
56
57
|
export interface IOSView extends View {
|
|
57
58
|
_suspendPresentationLayerUpdates(): any;
|
|
58
59
|
_resumePresentationLayerUpdates(): any;
|
|
59
|
-
|
|
60
|
+
_isPresentationLayerUpdateSuspended(): any;
|
|
60
61
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { AnimationDefinitionInternal, AnimationPromise } from './animation-common';
|
|
1
|
+
import { AnimationDefinitionInternal, AnimationPromise, PropertyAnimation } from './animation-common';
|
|
2
|
+
import { View } from '../core/view';
|
|
2
3
|
import { AnimationBase, CubicBezierAnimationCurve } from './animation-common';
|
|
3
4
|
export * from './animation-common';
|
|
4
5
|
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
|
5
6
|
export declare function _resolveAnimationCurve(curve: string | CubicBezierAnimationCurve | android.view.animation.Interpolator | android.view.animation.LinearInterpolator): android.view.animation.Interpolator;
|
|
6
7
|
export declare class Animation extends AnimationBase {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
protected _animatorListener: android.animation.Animator.AnimatorListener;
|
|
9
|
+
protected _nativeAnimatorsArray: any;
|
|
10
|
+
protected _animatorSet: android.animation.AnimatorSet;
|
|
11
|
+
protected _animators: Array<android.animation.Animator>;
|
|
12
|
+
protected _propertyUpdateCallbacks: Array<Function>;
|
|
13
|
+
protected _propertyResetCallbacks: Array<Function>;
|
|
14
|
+
protected _valueSource: 'animation' | 'keyframe';
|
|
15
|
+
protected _target: View;
|
|
16
|
+
protected _resetOnFinish: boolean;
|
|
16
17
|
constructor(animationDefinitions: Array<AnimationDefinitionInternal>, playSequentially?: boolean);
|
|
17
18
|
play(resetOnFinish?: boolean): AnimationPromise;
|
|
18
19
|
cancel(): void;
|
|
19
20
|
_resolveAnimationCurve(curve: string | CubicBezierAnimationCurve | android.view.animation.Interpolator): android.view.animation.Interpolator;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
protected _play(): void;
|
|
22
|
+
protected _onAndroidAnimationEnd(): void;
|
|
23
|
+
protected _onAndroidAnimationCancel(): void;
|
|
24
|
+
protected _createAnimators(propertyAnimation: PropertyAnimation): void;
|
|
24
25
|
}
|